@font-face {
  font-family: Nunito;
  src: url('assets/fonts/nunito-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Nunito;
  src: url('assets/fonts/nunito-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Nunito;
  src: url('assets/fonts/nunito-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Nunito;
  src: url('assets/fonts/nunito-bold-italic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f5eadc;
  --ink: #3c271b;
  --accent: #974314;
  --line: #d8c0a9;
  --font: Nunito, system-ui, sans-serif;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #974314; outline-offset: 5px; }
.shell { width: min(1320px, calc(100% - 9vw)); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; padding: .6rem; background: white; z-index: 2; transform: translateY(-150%); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 88px; border-bottom: 1px solid var(--line); }
.brand img { width: 180px; height: auto; }
nav { display: flex; flex-wrap: wrap; gap: .2rem clamp(.75rem, 2.5vw, 2.3rem); }
nav a { font-size: .88rem; text-decoration: none; padding-block: .75rem; }
nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.hero { display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(3rem, 8vw, 8rem); }
.eyebrow, .tag { margin: 0; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .73rem; }
h1, h2, h3 { font-family: var(--font); font-weight: 700; margin: 0; }
h1 { font-size: clamp(3.1rem, 6.45vw, 6.8rem); line-height: .98; letter-spacing: -.045em; margin-top: 1.15rem; }
h1 em { color: var(--accent); }
.intro { margin: 1.35rem 0 1.85rem; color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.6rem; border-radius: 99px; padding: .85rem 1.2rem; font-size: .9rem; color: white; background: var(--accent); text-decoration: none; }
.button:hover { background: #72340f; }
.hero-stage { padding: clamp(.65rem, 1.6vw, 1.5rem); perspective: 1000px; border-radius: 10px; background: radial-gradient(ellipse at 15% 10%, #fdf2e2, transparent 65%), linear-gradient(140deg, #e9d5bf, #c59268); }
.hero-frame { overflow: hidden; border-radius: 5px; background: #ddc5ad; box-shadow: 0 12px 25px #44271035; }
.hero-frame img { width: 100%; height: auto; }
.work { scroll-margin-top: 1.5rem; padding-bottom: clamp(3.75rem, 8vw, 8rem); }
.section-head { border-top: 1px solid var(--line); padding-block: 1.25rem 1.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
h2 { font-size: clamp(2rem, 4.1vw, 4rem); line-height: 1.05; letter-spacing: -.045em; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters button { cursor: pointer; border: 1px solid var(--line); background: transparent; border-radius: 99px; color: var(--ink); padding: .65rem .9rem; font: inherit; font-size: .79rem; }
.filters button[aria-pressed="true"] { color: white; background: var(--accent); border-color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.35rem; }
.project a { display: block; text-decoration: none; }
.project-image { overflow: hidden; aspect-ratio: 16 / 10; border-radius: 5px; background: #e6cdb5; }
.project-image:empty { display: none; }
.project-image img { width: 100%; height: 100%; object-fit: cover; }
.project-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem .7rem; padding-block: .95rem; border-bottom: 1px solid var(--line); }
.project-copy .tag { grid-column: 1 / -1; color: var(--accent); }
.project-copy h3 { font-size: clamp(1.45rem, 2.4vw, 2.55rem); line-height: 1.08; }
.project a:hover h3 { text-decoration: underline; text-underline-offset: .14em; text-decoration-thickness: 1px; }
.arrow { font-size: 1.2rem; }
.footer { background: #452b1d; color: #f5eadc; }
.footer-inner { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1.7rem; padding-block: 3.6rem; }
.footer h2 { margin-top: .8rem; }
.footer-bottom { border-top: 1px solid #94735c; padding-block: 1.25rem; font-size: .82rem; }
@media (max-width: 790px) {
  .hero { grid-template-columns: 1fr; }
  .header { padding-block: .9rem; flex-wrap: wrap; gap: .45rem 1rem; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
}

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand img { width: 2.35rem; height: 2.35rem; border-radius: 5px; }
.brand span { font: 700 clamp(1.3rem, 2.8vw, 1.75rem)/1 var(--font); white-space: nowrap; }
nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }
.inner-page { padding-block: clamp(2.75rem, 7vw, 7rem); }
.page-intro { margin-bottom: clamp(2rem, 5vw, 4rem); }
.page-intro h1 { max-width: 18ch; }
.page-intro .intro { max-width: 47ch; line-height: 1.6; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.about-lead { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; margin-bottom: 2.5rem; }
.editorial-image { margin: 0; }
.editorial-image img { display: block; width: 100%; height: auto; border-radius: 6px; }
.editorial-image figcaption { margin-top: .6rem; color: var(--accent); font-size: .86rem; }
.project-detail { max-width: 1060px; }
.section-rule { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.5rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.feature-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature { border: 1px solid var(--line); background: #f0e0cf; border-radius: 6px; padding: clamp(1rem, 2.5vw, 2rem); min-width: 0; }
.feature h2, .feature h3 { font-size: clamp(1.45rem, 3vw, 2.4rem); line-height: 1.1; }
.feature .eyebrow { margin-bottom: .8rem; }
.feature p, .short-row p { color: var(--accent); line-height: 1.55; overflow-wrap: anywhere; }
.feature p:last-child, .short-row p:last-child { margin-bottom: 0; }
.short-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.action { display: block; width: min(100%, 190px); margin-bottom: .75rem; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.action .ground { stroke: #956644; stroke-width: 1.5; }
.action .figure { transform-origin: 68px 84px; }
@media (prefers-reduced-motion: no-preference) {
  .action-walk .figure { animation: field-step 1.7s ease-in-out 2; }
  .action-sketch .gesture, .action-observe .gesture { animation: field-gesture 2s ease-in-out 2; transform-origin: 68px 39px; }
}
@keyframes field-step { 50% { transform: translate(9px, -3px) rotate(4deg); } }
@keyframes field-gesture { 50% { transform: rotate(-6deg); } }
@media (max-width: 790px) {
  .about-lead { grid-template-columns: 1fr; gap: 0; }
  .page-intro h1 { font-size: clamp(2.55rem, 7vw, 4.5rem); }
}
@media (max-width: 670px) {
  .feature-grid, .feature-grid.two { grid-template-columns: 1fr; }
}
.team-grid img, .project-gallery img, .feature-grid.two > .feature img { width: 100%; height: auto; border-radius: 5px; }
.team-grid img, .feature-grid.two > .feature img { margin-bottom: 1rem; }
.team-grid img { aspect-ratio: 1; object-fit: cover; }
.project-gallery { align-items: start; }

/* Keep the hit area still while its visual layers move. */
.hero-stage, .project-image, .editorial-image, .feature {
  --pitch: 0deg;
  --yaw: 0deg;
  --scroll-pitch: 0deg;
  --scroll-lift: 0px;
  --light-x: 50%;
  --light-y: 50%;
  position: relative;
  perspective: 900px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-stage .hero-frame,
  .project-image img,
  .editorial-image img,
  .feature .action {
    transform: translateY(var(--scroll-lift))
      rotateX(calc(var(--pitch) + var(--scroll-pitch)))
      rotateY(var(--yaw));
    transition: transform .25s ease-out;
  }
  .hero-stage .hero-frame {
    box-shadow: 0 14px 32px #44271048;
  }
  .project-image[data-depth-active] img {
    transform: rotateX(var(--pitch)) rotateY(var(--yaw)) scale(1.035);
  }
  .editorial-image img { box-shadow: 0 14px 32px #44271025; }
  .feature .action { transform: translateZ(16px) rotateX(var(--pitch)) rotateY(var(--yaw)); }
  .hero-stage::after, .project-image::after, .editorial-image::after, .feature::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at var(--light-x) var(--light-y), #fff2df55, transparent 58%);
    opacity: 0;
    transition: opacity .25s ease-out;
  }
  .feature::after { background: radial-gradient(circle at var(--light-x) var(--light-y), #fffbef60, transparent 65%); }
  [data-depth-active]::after { opacity: 1; }
  .project a:focus-visible .project-image img { transform: rotateX(4deg) scale(1.035); }
  [data-depth-active] .hero-frame,
  .project-image[data-depth-active] img,
  .editorial-image[data-depth-active] img,
  .feature[data-depth-active] .action { transition-duration: 0s; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-stage, .editorial-image, .project-image, .feature {
    touch-action: pan-y pinch-zoom;
  }
  .feature > img,
  .feature > .action {
    transform: translateZ(16px) rotateX(var(--pitch)) rotateY(var(--yaw));
    transition: transform .22s ease-out;
  }
  .feature[data-depth-active] > img,
  .feature[data-depth-active] > .action { transition-duration: 0s; }
}

:root {
  --text-halo: 0 0 9px #d7975552;
  --image-halo: 0 3px 18px #cb8c4c38;
}

@media (prefers-reduced-motion: no-preference) {
  .entered-view {
    animation: text-enter .52s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms);
  }

  img.entered-view {
    animation-name: image-enter;
    animation-duration: .68s;
  }

  .button, nav a, .brand span, .project h3 {
    transition: text-shadow .22s ease;
  }

  .button:hover, nav a:hover, .brand:hover span, .project a:hover h3 {
    text-shadow: var(--text-halo);
  }

  .entered-view:focus-visible,
  .entered-view:focus-within,
  :focus-visible .entered-view {
    animation: none;
  }
}

@keyframes text-enter {
  from { opacity: .76; translate: 0 7px; }
  35% { text-shadow: var(--text-halo); }
  to { opacity: 1; translate: 0 0; }
}

@keyframes image-enter {
  from { opacity: .76; translate: 0 9px; }
  38% { filter: brightness(1.045) drop-shadow(var(--image-halo)); }
  to { opacity: 1; translate: 0 0; }
}

/* Keep the studio mark at the left while centering the page copy and galleries. */
body { text-align: center; }
.header nav { justify-content: center; }
.hero-copy, .page-intro { text-align: center; }
.page-intro h1, .page-intro .intro { margin-inline: auto; }
.inner-page h1 { max-width: min(100%, 21ch); overflow-wrap: anywhere; }
.section-head, .short-row, .footer-inner {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.filters { justify-content: center; }
.project-copy {
  display: block;
  position: relative;
  padding-inline: 2rem;
}
.project-copy h3 { margin-top: .35rem; }
.project-copy .arrow {
  position: absolute;
  inset-inline-end: .35rem;
  top: .9rem;
}
.portfolio-gallery { align-items: start; gap: clamp(1.4rem, 3vw, 3rem); }
.portfolio-figure a { display: block; border-radius: 6px; }
.portfolio-figure img { object-fit: contain; }
.portfolio-figure figcaption { padding-inline: .5rem; }
.feature .action { margin-inline: auto; }
@media (max-width: 790px) {
  .header nav { width: 100%; }
  .hero-copy { margin-inline: auto; }
}

:root { --accent: #974422; --ink: #402719; --paper: #f4efdf; --line: #d9bcaa; }
.header { border-bottom: 2px solid var(--accent); }
.brand img { height: 60px; width: 60px; aspect-ratio: 1; object-fit: contain; border-radius: 0; }
.brand span, .eyebrow, figcaption { color: var(--accent); }
.footer { background: #78371d; color: var(--paper); }
.footer .eyebrow { color: var(--paper); }
.brand-stream {
  position: fixed; top: 0; bottom: 0; left: 0; width: clamp(9px, 3.65vw, 60px);
  overflow: hidden; pointer-events: none; z-index: 1;
  background: repeating-radial-gradient(ellipse 105px 38vh at -100px 36%, transparent 0 24px, #97442228 25px 26px, transparent 27px 44px);
}
.brand-stream.right { left: auto; right: 0; }
.brand-stream b { position: absolute; top: 13vh; left: 6%; width: 88%; aspect-ratio: 1; perspective: 200px; }
.brand-stream i {
  position: absolute; width: 16.69%; height: 10.02%;
  background-image: url('assets/brand-mark.png'); background-size: 600% 1000%;
}
@media (prefers-reduced-motion: reduce) {
  .brand-stream b { background: url('assets/brand-mark.png') center / 100% 100% no-repeat; }
  .brand-stream i { display: none; }
}

.emblem-stage {
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--paper);
}
.emblem-stage img { width: min(46vw, 30vh, 260px); height: auto; }
.emblem-stage canvas { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .emblem-scene.ready { height: 225vh; height: 225svh; }
  .emblem-scene.ready .emblem-stage { position: sticky; top: 0; }
  .emblem-scene.ready .emblem-stage img { opacity: 0; }
  .emblem-scene.ready canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }
  .emblem-scene.ready[data-emblem="disperse"] { margin-bottom: -78vh; margin-bottom: -78svh; }
  .emblem-scene ~ .header, .emblem-scene ~ main, .emblem-scene ~ footer { position: relative; }
}
#work-title { font-size: clamp(2.4rem, 5vw, 4.8rem); margin: 0; }

.portfolio-fragments { display: none; }
.portfolio-motion .portfolio-fragments {
  display: block; position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 3; pointer-events: none;
}
.portfolio-motion .header { position: relative; z-index: 4; }

[data-emblem="disperse"] .emblem-stage {
  --opening-size: min(78vw, 48svh, 460px);
  position: relative;
}
[data-emblem="disperse"] .emblem-stage img { width: var(--opening-size); }
.emblem-scene.ready[data-emblem="disperse"] .emblem-stage { position: sticky; }
.scroll-signals {
  position: absolute;
  inset-inline: clamp(4px, 2vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.scroll-signals[hidden] { display: none; }
.scroll-signal {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .45rem;
  min-width: 44px;
  color: #98421d;
  font-size: clamp(.75rem, 1.2vw, .95rem);
  font-weight: 700;
  text-decoration: none;
  pointer-events: auto;
}
.scroll-signal svg { height: min(68px, 12svh); }
@media (max-width: 600px) {
  .scroll-signal span { width: 5ch; line-height: 1.15; }
  [data-emblem="disperse"] .emblem-stage {
    --opening-size: min(78vw, calc(96vw - 96px), 48svh, 460px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-signal svg { animation: turn-signal 1.15s steps(1, end) infinite; }
}
@keyframes turn-signal {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 4px #d08a47); }
  53% { opacity: .24; filter: none; }
}
