@font-face {
  font-family: "Playfair Display";
  src: url("./assets/fonts/playfair-display.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("./assets/fonts/source-sans-3.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --ink: #102f4e;
  --paper: #fcfaf6;
  --sand: #eee4d5;
  --clay: #a65d43;
  --link-hover: #87462f;
  --rule: #d3cbc4;
  --serif: "Playfair Display", Georgia, serif;
  --ease: cubic-bezier(.22,.72,.18,1);
  --edge: clamp(1.15rem, 4.3vw, 5.5rem);
  font: 100%/1.45 "Source Sans 3", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body, h1, h2, h3, p, ul, dl, dd { margin: 0; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
summary { cursor: pointer; }
:focus-visible { outline: 3px solid #bf653a; outline-offset: 4px; }
.wrap { width: min(calc(100% - 2 * var(--edge)), 94rem); margin-inline: auto; }
.skip { position: absolute; z-index: 10; left: 1rem; top: -6rem; background: white; color: var(--ink); padding: .75rem; }
.skip:focus { top: .5rem; }
section[id], article[id], footer[id] { scroll-margin-top: 1.5rem; }

.cover {
  position: relative; isolation: isolate; background: #443a35; color: #fffaf1;
}
.cover-film, .cover::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-film { z-index: -2; object-fit: cover; }
.cover::before {
  content: ""; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #171513aa, #17151322 28%, #17151322 76%, #17151370),
              radial-gradient(ellipse at 50% 52%, #16141294 12%, #16141280 55%, #16141250);
}
.cover > .wrap {
  position: relative; min-height: clamp(26rem, 62svh, 40rem);
  display: grid; grid-template-rows: auto 1fr;
}
.cover :focus-visible { outline-color: white; }
.mast {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: .15rem 1.5rem; padding-block: .75rem;
}
.mast .brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 550 1.4rem/1.2 var(--serif); letter-spacing: -.04em;
}
.brand img { width: 1.9rem; height: auto; filter: brightness(0) invert(1); }
.mast nav { display: flex; flex-wrap: wrap; gap: .25rem clamp(.9rem, 2.5vw, 2.6rem); }
.mast a, .footer-base a { display: inline-block; padding-block: .45rem; text-decoration: none; }
.mast, .cover-actions, .node .project-panel { --link-hover: #ffdcab; }
.cover-copy {
  align-self: center; justify-self: center; text-align: center;
  padding-block: 1.5rem 3.5rem;
}
.cover-copy h1 {
  font: 500 clamp(2.15rem, 4.6vw, 5.15rem)/1.06 var(--serif);
  letter-spacing: -.045em; text-wrap: balance;
}
.cover-copy h1 em { font-family: Georgia, serif; font-weight: 400; }
.cover-copy p {
  max-width: 53ch; margin: 1rem auto 1.3rem; font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.38; text-wrap: balance;
}
.cover-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; }
.cover-actions a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem;
  padding: .5rem 1.15rem; border: 1px solid #fff4dd; border-radius: .45rem;
  color: #fffaf1; background: #19181952; font-weight: 600; text-decoration: none;
}
.cover-actions a:first-child { --link-hover: #87462f; color: var(--ink); background: #f4e5ce; border-color: #f4e5ce; }
.cover-playback {
  position: absolute; bottom: .75rem; right: 0; width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center; border: 1px solid #ffffff80; border-radius: 50%;
  background: #17181785; color: white; cursor: pointer;
}
.cover-playback[hidden] { display: none; }
.cover-playback span { border-block: .35rem solid transparent; border-left: .55rem solid currentColor; }
.cover-playback.is-playing span { width: .58rem; height: .74rem; border: 0; border-inline: 3px solid; }
.inline-link span { display: inline-block; margin-left: .35em; }

h2 { font: 520 clamp(2.15rem, 3.5vw, 4rem)/1.12 var(--serif); letter-spacing: -.045em; }
.work { padding-block: clamp(2.5rem, 4vw, 4.8rem); }
.work > h2 { font-family: inherit; font-size: clamp(2rem, 3.4vw, 3.8rem); font-weight: 550; line-height: 1.08; letter-spacing: -.05em; }
.work > h2 { text-align: center; margin-bottom: clamp(1.5rem, 2.8vw, 3rem); }
.project { display: grid; grid-template-columns: minmax(0, 4fr) minmax(10rem, 1fr); align-items: center; gap: clamp(1rem, 3vw, 3rem); }
.project + .project { margin-top: clamp(1.2rem, 2vw, 2rem); }
.project-panel {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(12rem, .8fr);
  align-items: center; gap: clamp(1.25rem, 2.3vw, 2.75rem);
  padding: clamp(1.4rem, 2.2vw, 2.6rem); border-radius: clamp(1.8rem, 3vw, 3.4rem);
}
.flux .project-panel { background: #64699e; color: white; }
.flux-player { position: relative; min-width: 0; }
.flux-film { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: .8rem; background: #191c22; }
.flux-replay {
  position: absolute; inset-inline: 0; bottom: .75rem; width: max-content; margin-inline: auto;
  background: var(--paper); font: inherit;
  cursor: pointer;
}
.flux-replay[hidden] { display: none; }
.project-description { max-width: 28rem; }
.category { font-size: .86rem; opacity: .92; }
.project h3 { font-size: clamp(2.5rem, 3.8vw, 4.8rem); line-height: 1.12; letter-spacing: -.055em; font-weight: 600; }
.project-description > p:not(.category) { font-size: clamp(1.02rem, 1.18vw, 1.25rem); line-height: 1.44; margin: .8rem 0 1rem; }
.inline-link { font-weight: 600; }
.project-note { text-align: center; max-width: 22rem; margin: auto; }
.project-note p { font-size: clamp(1.02rem, 1.25vw, 1.35rem); line-height: 1.28; letter-spacing: -.01em; }
.outline {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem;
  padding: .55rem 1.3rem; border-radius: 5rem; text-decoration: none; font-weight: 600;
}
.outline { color: var(--ink); border: 1px solid #a69f99; margin-top: 1.05rem; line-height: 1.2; }
button.outline:is(:hover, :focus-visible, :active) { border-color: var(--ink); background: #eee7dd; }
.node { grid-template-columns: minmax(10rem, 1fr) minmax(0, 4fr); }
.node .project-panel { grid-column: 2; grid-row: 1; grid-template-columns: minmax(12rem, 1fr) minmax(0, 1.75fr); background: #172f3f; color: #fffaf3; }
.node .project-note { grid-column: 1; grid-row: 1; }
.node-art { display: block; border-radius: .9rem; }
.node-art img { width: 100%; height: auto; }

.studio, .people { padding-block: clamp(2.3rem, 4.1vw, 4.5rem); display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 8%; }
.studio {
  width: 100%;
  padding-inline: max(var(--edge), calc((100% - 94rem) / 2));
  background: linear-gradient(to bottom, var(--paper), var(--sand) 28% 72%, var(--paper));
}
@media (width > 40rem) {
  .studio-notes { order: -1; min-block-size: var(--reserved-panel-space, auto); }
}
.studio-intro p { max-width: 37rem; margin-top: 1rem; font-size: 1.16rem; }
.studio-notes details::details-content {
  content-visibility: visible;
  visibility: hidden; block-size: 0; opacity: 0; overflow: clip;
}
.studio-notes details[open]::details-content { visibility: visible; block-size: var(--panel-height, auto); opacity: 1; }
summary { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; border-bottom: 1px solid var(--rule); font-size: 1.1rem; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary span { display: grid; place-items: center; width: .8rem; height: .8rem; }
summary span::before, summary span::after {
  content: ""; grid-area: 1 / 1; width: .65rem; height: 1.5px; background: currentColor;
}
summary span::after { transform: rotate(90deg); }
details[open] summary span::after { transform: rotate(0deg); }
dl { display: flow-root; padding-bottom: 1.1rem; }
dt { font-weight: 650; color: var(--clay); margin-top: .6rem; }
.people { grid-template-columns: 1fr 2fr; }
.team { padding: 0; list-style: none; }
.team li { display: grid; grid-template-columns: 3.2rem 1fr auto; grid-template-rows: auto auto; gap: 0 1rem; align-items: center; padding: .8rem 0; }
.team li:first-child { padding-top: 0; }
.team img { width: 3.2rem; height: 3.2rem; border-radius: 50%; grid-row: 1 / 3; }
.team h3 { grid-column: 2; font-size: 1.3rem; letter-spacing: -.02em; }
.team p { grid-column: 2; color: #4c5860; }
.social { display: flex; gap: .8rem; grid-area: 1 / 3 / 3 / 4; }
.social a { text-decoration: underline; text-underline-offset: .22em; }
.footer { color: var(--ink); background: linear-gradient(to bottom, var(--paper), #e8dfd2 55%); }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .6rem 2rem; padding-block: clamp(2rem, 4vw, 3.5rem) clamp(1.2rem, 2.5vw, 2rem);
}
.mail {
  font: 500 clamp(1.15rem, 2vw, 1.85rem)/1.3 var(--serif); letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
a:any-link:is(:hover, :focus-visible) { color: var(--link-hover); }
.footer-base { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .studio-notes details::details-content {
    transition: block-size .26s var(--ease), opacity .22s ease, visibility .26s;
  }
  summary span::after { transition: transform .22s var(--ease); }
  a { transition: color .18s var(--ease); }
  .cover-actions a:active { transform: scale(.97); }
  button.outline {
    transition: transform .2s var(--ease), background-color .18s ease-out, border-color .18s ease-out;
  }
  @media (hover: hover) {
    button.outline:hover { transform: translateY(-2px); }
  }
  .outline:active { transform: scale(.97); transition-duration: .1s; }
}
@media (max-width: 68rem) {
  .project { grid-template-columns: minmax(0, 4fr) minmax(8.5rem, 1fr); gap: 1.1rem; }
  .node { grid-template-columns: minmax(8.5rem, 1fr) minmax(0, 4fr); }
  .project-panel { grid-template-columns: minmax(0, 1.5fr) minmax(10.5rem, 1fr); padding: 1.3rem; gap: 1.1rem; }
  .node .project-panel { grid-template-columns: minmax(10.5rem, 1fr) minmax(0, 1.5fr); }
}
@media (max-width: 52rem) {
  .project, .node { grid-template-columns: 1fr; gap: .65rem; }
  .node .project-panel, .node .project-note { grid-column: auto; grid-row: auto; }
  .project-note { display: flex; justify-content: space-between; gap: 1rem; align-items: center; max-width: none; width: 100%; text-align: left; padding: 0 .5rem; }
  .project-note p { max-width: 23rem; }
  .project-note .outline { margin: 0; flex-shrink: 0; }
  .project + .project { margin-top: 1.8rem; }
  .team li { grid-template-columns: 2.75rem 1fr; gap: .1rem .75rem; }
  .team img { width: 2.75rem; height: 2.75rem; }
  .social { grid-column: 2; grid-row: 3; }
}
@media (max-width: 40rem) {
  .cover > .wrap { min-height: clamp(21rem, min(62svh, 145vw), 40rem); }
  .cover-film { object-position: left bottom; }
  .cover::before { mask-image: linear-gradient(#000 76%, transparent 96%); }
  .mast { padding-block: .5rem; gap: .1rem 1rem; }
  .mast nav { gap: .75rem; font-size: .94rem; }
  .cover-copy { padding-block: 1.2rem 3.75rem; }
  .cover-copy h1 br { display: none; }
  .cover-actions { gap: .5rem; }
  .cover-actions a { font-size: .95rem; padding-inline: .65rem; }
  .cover-playback { bottom: .5rem; }
  .studio, .people { grid-template-columns: 1fr; gap: 1.1rem; }
}
@media (max-width: 40rem) and (max-height: 41rem) {
  .cover > .wrap { min-height: clamp(22rem, 74svh, 28rem); }
  .cover-copy { padding-block: .75rem 4.6rem; }
  .cover-copy p { margin-block: .7rem 1rem; }
}
@media (max-width: 37rem) {
  .project-panel, .node .project-panel { display: flex; flex-direction: column; align-items: stretch; padding: 1.05rem; border-radius: 1.8rem; }
  .project-description { max-width: none; padding: .35rem .35rem .6rem; }
  .project-description > p:not(.category) { margin: .45rem 0 .75rem; }
  .project-note { gap: .7rem; padding: .35rem .2rem; }
  .project-note p { font-size: 1rem; }
  .outline { font-size: .94rem; padding: .5rem .8rem; }
  .node .project-description { order: 2; }
}
@media (max-width: 22rem) {
  .work.wrap { width: calc(100% - 1rem); }
  .project-panel, .node .project-panel { padding: .65rem; }
}
