/* ============================================================
   CALIGO CREATIVE
   boutique film, photography & aerial
   ============================================================ */

/* Inlander by Edignwn Type. NOTE: the Demo cut is licensed for personal use
   only — swap in the full Inlander file before the site goes public. */
@font-face {
  font-family: "Inlander Rough";
  src: url("../fonts/Inlander_Rough.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Inlander";
  src: url("../fonts/inlander-demo.woff2") format("woff2");
  font-display: swap;
}

:root {
  --cream: #F8F2E4;
  --cream-2: #F0E7D3;
  --cream-3: #E6DAC0;
  --ink: #251D1A;
  --ink-2: #3A2F29;
  --muted: rgba(37, 29, 26, 0.64);
  --line: rgba(37, 29, 26, 0.16);
  --terra: #BB5120;
  --terra-deep: #A84A1F;
  --green: #3F6460;
  --brown: #734C37;

  --logo: "Inlander Rough", "Inlander", Georgia, serif;          /* the CALIGO wordmark */
  --display: "Inlander", Georgia, serif;                          /* headlines */
  --wide: "Fredoka", "Hanken Grotesk", Arial, sans-serif;         /* labels — stands in for Dumondi Expanded */
  --serif: "Gambetta", Georgia, "Times New Roman", serif;         /* long statements (Fontshare, ITF free license) */
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;  /* body */


  --pad: clamp(1.25rem, 3.6vw, 3.5rem);
  --hdr: 4.75rem;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
::selection { background: var(--terra); color: var(--cream); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 600;
  background: var(--ink); color: var(--cream); padding: 0.6rem 1rem; border-radius: 99px;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- type ---------- */
.serif { font-family: var(--serif); }
.wide { font-family: var(--wide); font-stretch: 125%; }

/* headlines: Inlander's lowercase are small caps, so sentence case reads as caps */
.display, .h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.display { font-size: clamp(2.5rem, 6.2vw, 6.6rem); }
.h2 { font-size: clamp(1.9rem, 4vw, 3.8rem); }
/* emphasis is never styled: one headline color, no italics */
em { font-style: normal; color: inherit; }

.lead {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.65rem, 3.3vw, 3.15rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: var(--wide);
  font-stretch: 125%;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
}
.eyebrow::before {
  content: "";
  width: 1.6em;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.no-rule::before { display: none; }
.intro__label, .split__label, .proj-story__label { align-self: start; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 1em 1.7em;
  border-radius: 99px;
  font-family: var(--wide);
  font-stretch: 125%;
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid currentColor;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform 0.4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ink { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--ink:hover { background: var(--terra); border-color: var(--terra); }
.btn--cream { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--cream:hover { background: transparent; color: var(--cream); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--wide);
  font-stretch: 125%;
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.link:hover::after { transform: scaleX(0); }
.link .arr { transition: transform 0.4s var(--ease); }
.link:hover .arr { transform: translateX(4px); }

/* ---------- grain: fixed behind the page, so it stays still while you scroll ----------
   z-index -1 keeps it under every section; anything with its own background covers it */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* a 320px tile of random single-pixel noise, shown at half size so each
     grain is one device pixel on retina screens */
  background-image: url("../media/grain.png");
  background-size: 160px;
}

/* ---------- page veil (transitions between pages) ---------- */
.veil { display: none; }
.js .veil {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  background-color: var(--terra);
  color: var(--cream);
  pointer-events: none;
  /* parked below the screen; it only covers the page when arriving from another page */
  transform: translateY(101%);
}
.js.veil-arrive .veil { transform: translateY(0); }
.js .veil.is-out { transform: translateY(-101%); transition: transform 1s var(--ease-io); }
.js .veil.is-in { transform: translateY(0); transition: transform 0.75s var(--ease-io); }
.js .veil.is-below { transform: translateY(101%); transition: none; }
.veil__mark { display: flex; align-items: center; gap: 0.7rem; }
.veil__mark img { width: 64px; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--hdr);
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: transform 0.55s var(--ease), background 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}
.site-header.is-hidden { transform: translateY(-110%); }
.site-header.is-solid {
  background: rgba(248, 242, 228, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; justify-self: start; }
/* the wing + C monogram */
.brand img { height: 36px; width: auto; transition: transform 0.6s var(--ease); transform-origin: 70% 50%; }
.brand:hover img { transform: rotate(-6deg) scale(1.04); }
.nav { display: flex; gap: clamp(1.4rem, 2.8vw, 2.6rem); }
.nav a {
  position: relative;
  font-family: var(--wide);
  font-stretch: 125%;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -0.75rem; top: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--terra);
  transform: translateY(-50%);
}
.header-cta { justify-self: end; padding: 0.85em 1.35em; font-size: 0.68rem; }

.menu-btn {
  display: none;
  justify-self: end;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  z-index: 130;
}
.menu-btn span { width: 26px; height: 1.5px; background: currentColor; transition: transform 0.45s var(--ease); }
.menu-btn.is-open span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background-color: var(--terra-deep);
  color: var(--cream);
  padding: calc(var(--hdr) + 2rem) var(--pad) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: circle(0% at calc(100% - 2.6rem) 2.4rem);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease-io), visibility 0s 0.8s;
}
.mobile-menu.is-open {
  clip-path: circle(150% at calc(100% - 2.6rem) 2.4rem);
  visibility: visible;
  transition: clip-path 0.8s var(--ease-io);
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--display);
  font-size: clamp(2.2rem, 10vw, 3.6rem);
  line-height: 1.12;
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.7s var(--ease);
}
.mobile-menu nav a small {
  font-family: var(--wide);
  font-stretch: 125%;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0.6;
}
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu.is-open nav a:nth-child(1) { transition-delay: 0.18s; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: 0.24s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: 0.30s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: 0.36s; }
.mobile-menu__foot { font-size: 0.9rem; opacity: 0.85; display: grid; gap: 0.3rem; }
body.menu-open .site-header { color: var(--cream); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; z-index: 130; }
body.menu-open .brand img { filter: brightness(0) invert(1); opacity: 0.92; }

/* ---------- home hero: the wordmark sits over a letterbox that opens to full frame ---------- */
.hero-x { position: relative; height: 230svh; }
.hero-x__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: calc(var(--hdr) + 0.2rem) var(--pad) var(--pad);
}
/* CALIGO + its small line sit above the video */
.hero-x__top { position: relative; z-index: 3; }
.wordmark-clip { overflow: hidden; }
.wordmark {
  font-family: var(--logo);
  font-weight: 400;
  color: var(--terra); /* the logo's own color */
  /* Inlander's caps run 0.72em above the baseline: a 0.56 line box plus 0.23em
     of top padding hugs them exactly, so nothing gets cropped */
  line-height: 0.56;
  padding-top: 0.23em;
  letter-spacing: 0.01em;
  white-space: nowrap;
  width: max-content;
  font-size: 18vw; /* JS fits this to the container width */
}
.wordmark span { display: inline-block; transform: translateY(1.05em); }
.is-ready .wordmark span { transform: none; transition: transform 1.2s var(--ease); }
.is-ready .wordmark span:nth-child(2) { transition-delay: 0.05s; }
.is-ready .wordmark span:nth-child(3) { transition-delay: 0.10s; }
.is-ready .wordmark span:nth-child(4) { transition-delay: 0.15s; }
.is-ready .wordmark span:nth-child(5) { transition-delay: 0.20s; }
.is-ready .wordmark span:nth-child(6) { transition-delay: 0.25s; }

/* small line under CALIGO, echoing "CREATIVE" in the lockup; fades out on scroll */
.hero-x__kicker {
  position: absolute;
  top: 100%;
  left: 50%;
  width: max-content;
  max-width: 90%;
  transform: translateX(-50%);
  margin-top: clamp(0.9rem, 1.6vw, 1.5rem);
  text-align: center;
  color: var(--cream);
  font-family: var(--wide);
  font-stretch: 125%;
  font-size: clamp(0.62rem, 0.8vw, 0.76rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(20, 14, 11, 0.45);
  text-wrap: balance;
  pointer-events: none;
}
.hero-x__kicker span { display: block; opacity: 0; transition: opacity 1s ease 0.8s; }
.is-ready .hero-x__kicker span { opacity: 1; }

/* the video starts tucked up behind the bottom third of the letters
   (--wm is the fitted wordmark size, set by JS) */
.hero-x__slot { flex: 1; margin-top: calc(var(--wm, 20vw) * -0.27); min-height: 160px; }
.hero-x__media {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  background: var(--ink);
  clip-path: inset(var(--t, 40%) var(--r, 4%) var(--b, 4%) var(--l, 4%) round var(--rad, 18px));
}
.hero-x__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* starts nudged down so the top of the frame shows in the letterbox,
     then settles to centre as the frame opens (--vy / --vs set by JS) */
  transform-origin: 50% 0;
  transform: translateY(var(--vy, 0px)) scale(var(--vs, 1.06));
}

/* ---------- intro ---------- */
.intro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem var(--pad);
  padding: clamp(6rem, 15vh, 11rem) var(--pad);
}
.intro__label { grid-column: 1 / span 3; padding-top: 0.9rem; }
.intro__body { grid-column: 1 / -1; }
.intro__body .lead { font-size: clamp(2.1rem, 4.6vw, 4.6rem); line-height: 1.12; max-width: 27ch; }
.intro__foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  max-width: 58rem;
}
.intro__foot p { color: var(--muted); max-width: 38ch; }
.intro__foot .link { align-self: end; justify-self: start; }

/* ---------- services: stacking panels ---------- */
/* cards run edge to edge; only the heading keeps the page gutter */
.stack { padding: 0; }
/* hold time once the last card lands: sticky cards can use content space, not padding */
.stack::after { content: ""; display: block; height: var(--hold, 26vh); }
.stack__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding: 0 var(--pad) clamp(2rem, 5vh, 3.5rem);
}
.panel {
  --i: 0;
  position: sticky;
  top: calc(var(--hdr) + var(--i) * 1.15rem);
  height: calc(100svh - var(--hdr) - 3 * 1.15rem - 1rem);
  min-height: 560px;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--cream);
  transform-origin: 50% 0;
  transform: scale(var(--sc, 1));
  will-change: transform;
}
/* gaps sit above cards, never below: a sticky card's bottom margin must stay inside
   the section, which would unstick the earlier cards before the last one lands */
.panel + .panel { margin-top: 18vh; }
.panel::after {
  content: "";
  position: absolute; inset: 0;
  background: #120d0b;
  opacity: var(--dim, 0);
  pointer-events: none;
}
.panel--film { background-color: var(--ink); }
.panel--photo { background-color: var(--terra-deep); }
.panel--aerial { background-color: var(--green); }
.panel__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.5rem, 3.2vw, 3rem);
}
.panel__text { display: flex; flex-direction: column; min-height: 0; container-type: inline-size; }
.panel__top { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--wide); font-stretch: 125%; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; }
.panel__title {
  font-family: var(--display);
  font-weight: 400;
  /* "Photography" is ~7.5em wide in Inlander — keep the longest title inside its column */
  font-size: min(7rem, 12.8cqi);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-top: auto;
}
.panel__tag {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  margin-top: 0.6rem;
  opacity: 0.9;
}
.panel__desc { margin-top: 1.2rem; max-width: 40ch; font-size: 0.98rem; opacity: 0.86; }
.panel__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.5rem;
  margin-top: 1.4rem;
  font-size: 0.86rem;
}
.panel__list li { padding: 0.5rem 0; border-top: 1px solid rgba(248, 242, 228, 0.2); }
.panel__more { margin-top: 1.6rem; }
.panel__media {
  position: relative;
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  min-height: 0;
  background: rgba(0, 0, 0, 0.2);
}
.panel__media img, .panel__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.4s var(--ease);
}
.panel:hover .panel__media img, .panel:hover .panel__media video { transform: scale(1.0); }

/* ---------- FAQ (home) ---------- */
.faq { padding: clamp(5rem, 12vh, 9rem) var(--pad) 0; }
/* each topic folds shut; its questions fold inside it */
.faq__group { border-top: 1px solid var(--ink); }
.faq__group:last-of-type { border-bottom: 1px solid var(--ink); }
.faq__head {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.1rem, 2.6vh, 1.6rem) 0;
}
.faq__head::-webkit-details-marker { display: none; }
.faq__label {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.faq__count { font-family: var(--wide); font-stretch: 125%; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.faq__list { margin-left: 25%; padding-bottom: clamp(1.5rem, 4vh, 2.5rem); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child summary { padding-top: 0.2rem; }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.1rem 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.3;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 14px; height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] > summary .faq__icon::after,
.faq__group[open] > summary .faq__icon--lg::after { transform: rotate(0deg); }
.faq__icon--lg, .faq__icon--lg::before, .faq__icon--lg::after { width: 20px; }
.faq__icon--lg { height: 20px; }
.faq__item p { max-width: 62ch; color: var(--muted); padding: 0 2.5rem 1.4rem 0; }
.faq__item summary:hover { color: var(--ink-2); }

/* ---------- selected work (home) ---------- */
.selected { padding: clamp(5rem, 12vh, 9rem) var(--pad) clamp(3rem, 8vh, 6rem); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 7vh, 5rem);
}
.feature {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-bottom: clamp(5rem, 14vh, 10rem);
}
.feature:last-child { margin-bottom: 0; }
.feature__a { grid-column: 1 / span 8; }
.feature__b { grid-column: 9 / span 4; margin-top: 30%; }
.feature--flip .feature__a { grid-column: 5 / span 8; grid-row: 2; }
.feature--flip .feature__b { grid-column: 1 / span 4; grid-row: 2; margin-top: -8%; }
.feature__meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  align-items: baseline;
  grid-row: 1;
  margin-bottom: clamp(0.75rem, 2vh, 1.25rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.feature__num { grid-column: span 1; font-family: var(--wide); font-stretch: 125%; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; color: var(--muted); }
.feature__title {
  grid-column: span 7;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.3vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  transition: color 0.4s ease;
}
.feature__kind { grid-column: span 3; font-size: 0.88rem; color: var(--muted); }
.feature__go {
  grid-column: span 1;
  justify-self: end;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: grid;
  place-items: center;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.5s var(--ease);
}
.feature:hover .feature__go { background: var(--ink); color: var(--cream); transform: rotate(-45deg); }

/* image frames w/ clip reveal + hover zoom */
.frame { position: relative; overflow: hidden; border-radius: 6px; background: var(--cream-3); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
a:hover .frame img, .frame:hover img { transform: scale(1.035); }
.frame--land { aspect-ratio: 3 / 2; }
.frame--port { aspect-ratio: 2 / 3; }
.frame--wide { aspect-ratio: 16 / 9; }

[data-parallax] { transition: none !important; will-change: transform; }
[data-clip] { clip-path: inset(0 48.5% 0 48.5%); transition: clip-path 1.5s var(--ease-io); }
[data-clip] img { transform: scale(1.22); transition: transform 1.9s var(--ease-io); }
[data-clip].is-in { clip-path: inset(0 0 0 0); }
[data-clip].is-in img { transform: scale(1); }
a:hover [data-clip].is-in img { transform: scale(1.035); transition-duration: 1.4s; }

/* ---------- CTA panel ---------- */
.cta-wrap { padding: clamp(2rem, 6vh, 4rem) var(--pad) 0; }
.cta {
  position: relative;
  background-color: var(--terra-deep);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(3rem, 9vh, 6.5rem) clamp(1.5rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: end;
  overflow: hidden;
}
.cta .h2 { font-size: clamp(2.1rem, 4.6vw, 4.4rem); }
.cta__side { display: grid; gap: 1.4rem; justify-items: start; }
.cta__side p { opacity: 0.88; max-width: 34ch; }
.cta__mark {
  position: absolute;
  right: -2%;
  top: -12%;
  width: clamp(160px, 22vw, 320px);
  opacity: 0.08;
  pointer-events: none;
  transform: rotate(-14deg);
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(6rem, 14vw, 12rem);
  background-color: var(--ink);
  color: var(--cream);
  padding: clamp(0.5rem, 1.5vw, 1.5rem) var(--pad) 0;
}
/* the curved crown */
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: calc(-1 * clamp(3rem, 7vw, 7rem) + 1px);
  height: clamp(3rem, 7vw, 7rem);
  background-color: var(--ink);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.footer-logo img { width: min(760px, 86%); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-top: clamp(1.5rem, 3.5vw, 2.75rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(248, 242, 228, 0.16);
}
.footer-grid h4 {
  font-family: var(--wide); font-stretch: 125%;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; display: grid; gap: 0.45rem; font-size: 0.95rem; }
.footer-grid a { transition: opacity 0.3s ease; }
.footer-grid a:hover { opacity: 0.6; }
.footer-intro .lead { font-size: clamp(1.5rem, 2.4vw, 2.1rem); max-width: 16ch; }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0 1.6rem;
  font-size: 0.8rem;
  opacity: 0.6;
}
.footer-base button:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- inner page hero ---------- */
.page-hero { padding: calc(var(--hdr) + clamp(3.5rem, 10vh, 7rem)) var(--pad) clamp(3rem, 8vh, 5.5rem); }
.page-hero .eyebrow { margin-bottom: clamp(1.2rem, 3vh, 2rem); }
.page-hero__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem var(--pad);
  align-items: end;
}
.page-hero__title { grid-column: 1 / span 9; }
.page-hero__aside { grid-column: 10 / span 3; color: var(--muted); max-width: 32ch; }
.count {
  font-family: var(--wide); font-stretch: 125%;
  font-size: 0.22em;
  font-weight: 600;
  vertical-align: top;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-left: 0.3em;
  font-style: normal;
}

/* ---------- work index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 var(--pad) 1.5rem; }
.chip {
  font-family: var(--wide);
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.6em 1.2em;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.work-list { list-style: none; border-top: 1px solid var(--ink); margin: 0 var(--pad); }
.work-row { border-bottom: 1px solid var(--line); transition: opacity 0.4s ease; }
.work-row.is-hidden { display: none; }
.work-row__link {
  display: grid;
  grid-template-columns: 3rem 1fr 12rem 10rem 2.5rem;
  gap: 1.5rem;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: clamp(1.3rem, 3vh, 2.1rem) 0;
}
.work-row__num { font-family: var(--wide); font-stretch: 125%; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; color: var(--muted); }
.work-row__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.35rem, 3vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  transition: transform 0.6s var(--ease), color 0.4s ease;
}
.work-row__kind, .work-row__type { font-size: 0.88rem; color: var(--muted); }
.work-row__arrow { justify-self: end; transition: transform 0.5s var(--ease); }
.work-row__link:hover .work-row__title {
  transform: translateX(0.4em);
}
.work-row__link:hover .work-row__arrow { transform: rotate(-45deg); }
.work-row__thumb { display: none; }

.hover-preview {
  position: fixed;
  top: 0; left: 0;
  z-index: 90;
  width: clamp(220px, 22vw, 340px);
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%) scale(0.86) rotate(-3deg);
  transition: opacity 0.35s ease, transform 0.5s var(--ease);
  box-shadow: 0 30px 60px -20px rgba(37, 29, 26, 0.45);
}
.hover-preview.is-on { opacity: 1; transform: translateY(-50%) scale(1) rotate(-3deg); }
.hover-preview img { width: 100%; height: 100%; object-fit: cover; }

/* contact sheet */
.sheet { padding: clamp(5rem, 12vh, 9rem) var(--pad) 0; }
.sheet__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.sheet__item { position: relative; display: block; width: 100%; cursor: zoom-in; text-align: left; }
.sheet__item figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.sheet__item:nth-child(1) { grid-column: 1 / span 7; }
.sheet__item:nth-child(2) { grid-column: 8 / span 5; margin-top: 18%; }
.sheet__item:nth-child(3) { grid-column: 2 / span 4; }
.sheet__item:nth-child(4) { grid-column: 7 / span 6; margin-top: 10%; }
.sheet__item:nth-child(5) { grid-column: 1 / span 5; }
.sheet__item:nth-child(6) { grid-column: 6 / span 4; margin-top: 22%; }
.sheet__item:nth-child(7) { grid-column: 10 / span 3; margin-top: 6%; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(24, 18, 15, 0.94);
  display: grid;
  grid-template-columns: 4rem 1fr 4rem;
  align-items: center;
  padding: 4rem 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s 0.4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.4s ease; }
.lightbox img { max-width: 100%; max-height: calc(100svh - 8rem); margin: 0 auto; object-fit: contain; border-radius: 4px; }
.lightbox button { color: var(--cream); width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; transition: background 0.3s ease; }
.lightbox button:hover { background: rgba(248, 242, 228, 0.12); }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; }
.lightbox__count { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); color: var(--cream); font-family: var(--wide); font-stretch: 125%; font-size: 0.72rem; opacity: 0.7; letter-spacing: 0.1em; }

/* ---------- project page ---------- */
.proj-meta {
  grid-column: 10 / span 3;
  display: grid;
  gap: 1rem;
  font-size: 0.9rem;
}
.proj-meta div { padding-top: 0.75rem; border-top: 1px solid var(--line); }
.proj-meta dt { font-family: var(--wide); font-stretch: 125%; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem; }
.proj-hero-img { padding: 0 var(--pad); }
.proj-hero-img .frame { border-radius: var(--radius); }
.proj-hero-img .frame img { transform: scale(1.12); will-change: transform; }
.proj-story {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem var(--pad);
  padding: clamp(5rem, 12vh, 8rem) var(--pad);
}
.proj-story__label { grid-column: 1 / span 3; padding-top: 0.6rem; }
.proj-story__body { grid-column: 4 / span 7; }
.proj-story__body p + p { margin-top: 1.2rem; color: var(--muted); max-width: 52ch; }
.proj-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  padding: 0 var(--pad);
}
.proj-gallery figure { grid-column: 4 / span 6; }
.proj-gallery figcaption { margin-top: 0.7rem; font-size: 0.8rem; color: var(--muted); display: flex; justify-content: space-between; }
.next-proj {
  display: block;
  margin: clamp(6rem, 15vh, 10rem) var(--pad) 0;
  padding-top: 2rem;
  border-top: 1px solid var(--ink);
}
.next-proj .eyebrow { color: var(--muted); }
.next-proj__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-top: 1.2rem; }
.next-proj .display { font-size: clamp(2rem, 5.6vw, 5.6rem); transition: opacity 0.4s ease; }
.next-proj:hover .display { opacity: 0.6; }
.next-proj__thumb { width: clamp(140px, 18vw, 260px); flex: none; }

/* ---------- about ---------- */
.about-img { padding: 0 var(--pad); }
.about-img .frame { border-radius: var(--radius); aspect-ratio: 21 / 9; }
.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem var(--pad);
  padding: clamp(5rem, 12vh, 9rem) var(--pad);
}
.split__label { grid-column: 1 / span 3; padding-top: 0.75rem; }
.split__body { grid-column: 4 / span 8; }
.split__body .lead { max-width: 22ch; }
.split__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5rem; color: var(--muted); }

/* founders: photo + story */
.us {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem var(--pad);
  align-items: start;
  padding: 0 var(--pad) clamp(5rem, 12vh, 8rem);
}
.us__photo { grid-column: 1 / span 4; max-width: 380px; position: sticky; top: calc(var(--hdr) + 2rem); }
/* the source is a tall, low-res candid: crop to 2:3 from the top so faces stay in */
.us__photo .frame { aspect-ratio: 2 / 3; }
.us__photo img { object-position: 50% 12%; }
.us__photo figcaption {
  margin-top: 0.8rem;
  font-family: var(--wide);
  font-stretch: 125%;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.us__text { grid-column: 6 / span 7; padding-top: 0.5rem; }
.us__text .lead { max-width: 20ch; }
.us__body { margin-top: clamp(2rem, 5vh, 3rem); max-width: 58ch; color: var(--ink-2); font-size: 1.05rem; }
.us__body p + p { margin-top: 1.1rem; }
.us__sign {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  margin-top: 1.6rem !important;
}

/* who does what */
.roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 0 var(--pad);
}
.role {
  background-color: var(--cream-2);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem);
}
.role__title {
  font-family: var(--wide);
  font-stretch: 125%;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.role__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1;
  margin: 0.5rem 0 1.4rem;
}
.role ul { list-style: none; border-top: 1px solid var(--line); }
.role li { padding: 0.65rem 0; border-bottom: 1px solid var(--line); }

.steps {
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--ink);
}
.steps li {
  display: grid;
  grid-template-columns: 4rem 1fr 1.3fr;
  gap: 1.5rem;
  padding: clamp(1.4rem, 3vh, 2.2rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.steps__n { font-family: var(--wide); font-stretch: 125%; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; color: var(--muted); }
.steps h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  line-height: 1.05;
}
.steps p { color: var(--muted); max-width: 44ch; }

.fit {
  background-color: var(--cream-2);
  border-radius: var(--radius);
  margin: 0 var(--pad);
  padding: clamp(3rem, 8vh, 5.5rem) clamp(1.5rem, 4vw, 4rem);
}
.fit h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin-bottom: 1.2rem;
}
.fit ul { list-style: none; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 5rem); }
.fit li {
  padding: 0.75rem 0 0.75rem 1.6rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.fit li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 0.7rem; height: 1px;
  background: var(--terra);
}

/* ---------- contact ---------- */
.contact {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem var(--pad);
  padding: calc(var(--hdr) + clamp(3.5rem, 10vh, 7rem)) var(--pad) 0;
}
.contact__side { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--hdr) + 2rem); }
.contact__side .display { font-size: clamp(2.4rem, 5vw, 4.8rem); margin: 1.4rem 0 1.6rem; }
.contact__side > p { color: var(--muted); max-width: 34ch; }
.contact__details { margin-top: 2.5rem; display: grid; gap: 1.1rem; }
.contact__details div { padding-top: 0.8rem; border-top: 1px solid var(--line); }
.contact__details dt { font-family: var(--wide); font-stretch: 125%; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem; }
.contact__details dd { font-size: 1.05rem; }
.contact__details a { transition: opacity 0.3s ease; }
.contact__details a:hover { opacity: 0.6; }

.form { grid-column: 7 / span 6; display: grid; gap: 2rem; padding-bottom: 2rem; }
.form fieldset { border: 0; min-width: 0; }
.form legend, .field > label, .field .label {
  display: block;
  font-family: var(--wide);
  font-stretch: 125%;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.field > label .opt, .field .label .opt { color: var(--muted); font-weight: 500; letter-spacing: 0.08em; text-transform: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.input, .textarea, .select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  padding: 0.55rem 0 0.7rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 400;
  border-radius: 0;
  transition: border-color 0.3s ease;
}
.input::placeholder, .textarea::placeholder { color: rgba(37, 29, 26, 0.32); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-bottom-color: var(--ink); }
.input:user-invalid, .textarea:user-invalid { border-bottom-color: var(--terra); }
.textarea { resize: vertical; min-height: 9rem; line-height: 1.4; }
.select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23251D1A' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  padding-right: 1.6rem;
}
/* custom dropdown (JS swaps it in for the native select on mouse/trackpad devices;
   the real <select> stays in the form, hidden, so submission is unchanged) */
.dd { position: relative; }
.dd select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dd__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background-image: none;
  padding-right: 0;
}
.dd__btn.is-empty { color: rgba(37, 29, 26, 0.32); }
.dd__chev { width: 12px; flex: none; color: var(--ink); transition: transform 0.35s var(--ease); }
.dd.is-open .dd__chev { transform: rotate(180deg); }
.dd.is-open .dd__btn { border-bottom-color: var(--ink); }
.dd__list {
  list-style: none;
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  padding: 0.35rem;
  background: #FBF7EE;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 22px 44px -18px rgba(37, 29, 26, 0.35);
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.35s var(--ease), visibility 0s 0.35s;
}
.dd.is-open .dd__list { opacity: 1; transform: none; visibility: visible; transition: opacity 0.25s ease, transform 0.35s var(--ease); }
.dd__list:focus { outline: none; }
.dd__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.dd__opt.is-active { background: var(--cream-2); }
.dd__opt[aria-selected="true"]::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terra);
  flex: none;
}

.pills { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.pill-check { position: relative; }
.pill-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill-check span {
  display: inline-block;
  font-family: var(--wide);
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.75em 1.3em;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.pill-check:hover span { border-color: var(--ink); }
.pill-check input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pill-check input:focus-visible + span { outline: 2px solid var(--terra); outline-offset: 2px; }
.form__submit { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.form__submit .btn { font-size: 0.8rem; padding: 1.15em 2em; }
.form__note { font-size: 0.85rem; color: var(--muted); }
.form__status { font-size: 0.95rem; }
.form__status.is-error { color: var(--terra); }
.form-done {
  grid-column: 7 / span 6;
  display: none;
  align-content: start;
  gap: 1rem;
  padding-top: 1rem;
}
.form-done p { color: var(--muted); max-width: 40ch; }
.contact.is-sent .form { display: none; }
.contact.is-sent .form-done { display: grid; }

/* ---------- reel dialog ---------- */
.reel {
  border: 0;
  padding: 0;
  margin: auto;
  width: min(1200px, 92vw);
  max-height: 92vh;
  background: transparent;
  overflow: visible;
}
.reel::backdrop { background: rgba(24, 18, 15, 0.92); }
.reel video { width: 100%; border-radius: 10px; background: #000; }
.reel__close {
  position: absolute;
  top: -3.2rem;
  right: 0;
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.reel[open] { animation: reel-in 0.5s var(--ease); }
@keyframes reel-in { from { opacity: 0; transform: translateY(20px) scale(0.98); } }

/* ---------- reveals ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1.1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }

.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line__in { display: block; transform: translateY(110%); transition: transform 1.15s var(--ease); }
[data-lines].is-in .line__in { transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .work-row__link { grid-template-columns: 2.5rem 1fr 9rem 2rem; }
  .work-row__type { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-intro { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --hdr: 4.25rem; --radius: 18px; }
  .faq__list { margin-left: 0; }
  .faq__count { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .nav, .header-cta { display: none; }
  .menu-btn { display: flex; }

  .hero-x { height: 200svh; }

  .intro__label, .intro__body,
  .split__label, .split__body,
  .proj-story__label, .proj-story__body,
  .page-hero__title, .page-hero__aside, .proj-meta { grid-column: 1 / -1; }
  .intro__foot, .split__cols { grid-template-columns: 1fr; }

  .stack__head { flex-direction: column; align-items: flex-start; }
  .panel { height: auto; min-height: 0; top: calc(var(--hdr) + var(--i) * 0.8rem); }
  .panel + .panel { margin-top: 8vh; }
  .stack { --hold: 14vh; }
  .panel__inner { grid-template-columns: 1fr; }
  .panel__title { margin-top: 1.5rem; }
  .panel__media { aspect-ratio: 4 / 3; order: -1; }

  .feature__a, .feature--flip .feature__a { grid-column: 1 / -1; grid-row: auto; }
  .feature__b, .feature--flip .feature__b { grid-column: 4 / -1; grid-row: auto; margin-top: -25%; }
  .feature__meta { grid-template-columns: 2.5rem 1fr auto; }
  .feature__num, .feature__title, .feature__kind, .feature__go { grid-column: auto; }
  .feature__kind { grid-column: 2; grid-row: 2; }

  .cta { grid-template-columns: 1fr; }

  .work-row__link { grid-template-columns: 1fr 2rem; gap: 0.75rem; }
  .work-row__num, .work-row__kind { display: none; }
  .work-row__thumb { display: block; grid-column: 1 / -1; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; }
  .work-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .hover-preview { display: none; }

  .sheet__grid { grid-template-columns: 1fr 1fr; }
  .sheet__item:nth-child(n) { grid-column: auto; margin-top: 0; }
  .sheet__item:nth-child(1), .sheet__item:nth-child(4) { grid-column: 1 / -1; }

  .proj-gallery figure { grid-column: 2 / span 10; }
  .next-proj__row { flex-direction: column; align-items: flex-start; }

  .steps li { grid-template-columns: 2.5rem 1fr; }
  .steps p { grid-column: 2; }
  .fit ul { grid-template-columns: 1fr; }
  .us__photo, .us__text { grid-column: 1 / -1; position: static; }
  .us__photo { max-width: 320px; }
  .roles { grid-template-columns: 1fr; }

  .contact__side, .form, .form-done { grid-column: 1 / -1; position: static; }
  .field-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .panel__list { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
  .lightbox { grid-template-columns: 2.6rem 1fr 2.6rem; padding: 3rem 0.25rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  [data-reveal], .line__in, .wordmark span, .hero-x__kicker span { opacity: 1 !important; transform: none !important; }
  [data-clip] { clip-path: none !important; }
  [data-clip] img { transform: none !important; }
  .hero-x { height: auto; }
  .hero-x__sticky { position: relative; height: auto; min-height: 0; }
  .hero-x__slot { display: none; }
  .hero-x__media { position: relative; clip-path: none; aspect-ratio: 16 / 9; border-radius: var(--radius); margin-top: 1.5rem; }
  .hero-x__media video { transform: none; }
  .panel { position: relative; top: auto; transform: none !important; }
}

/* page-hero credits: call-sheet style facts beside the title */
.credits { max-width: none; color: var(--ink); }
.credits dl { border-top: 1px solid var(--ink); }
.credits dl div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.credits dt {
  font-family: var(--wide);
  font-stretch: 125%;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.credits dd { font-family: var(--serif); font-size: 1.12rem; line-height: 1.3; }
.credits__coords {
  margin-top: 0.85rem;
  font-family: var(--wide);
  font-stretch: 125%;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-align: right;
}
.page-hero__grid:has(.credits) .page-hero__title { grid-column: 1 / span 8; }
.credits.page-hero__aside { grid-column: 9 / span 4; }
@media (max-width: 900px) {
  .page-hero__grid:has(.credits) .page-hero__title,
  .credits.page-hero__aside { grid-column: 1 / -1; }
  .credits__coords { text-align: left; }
}

/* ==========================================================================
   Bold sections (daisycreative.co cues: ink-outlined frames, arches,
   full-bleed photos with a cream card floating on top)
   ========================================================================== */

/* outlined + arched frames */
.frame--line { border: 1.5px solid var(--ink); }
.frame--arch { display: block; aspect-ratio: 2 / 3; border-radius: 999px 999px var(--radius) var(--radius); border: 1.5px solid var(--ink); }

/* one whole section in the logo orange (never single words) */
.terra-section, .terra-section .eyebrow, .terra-section .muted, .terra-section p { color: var(--terra-deep); }
.terra-section .lead, .terra-section .h2, .terra-section .display { color: var(--terra); }
.terra-section .eyebrow::before { background: currentColor; }
.terra-section .link::after { background: currentColor; }

/* full-bleed campaign film */
.bleed-film { position: relative; overflow: hidden; background: #000; }
.bleed-film video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 100svh; object-fit: cover; }
.bleed-film__play {
  position: absolute;
  left: var(--pad);
  bottom: clamp(1.2rem, 3vw, 2.4rem);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 1.3rem 0.55rem 0.55rem;
  border-radius: 99px;
  background: var(--cream);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  font-family: var(--wide);
  font-stretch: 125%;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.5s var(--ease);
}
.bleed-film__play:hover { transform: translateY(-3px); }
.bleed-film__dot { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-size: 0.7rem; padding-left: 2px; }

/* full-bleed still */
.bleed-img { position: relative; overflow: hidden; aspect-ratio: 21 / 10; max-height: 92svh; width: 100%; }
.bleed-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }

/* vertical cuts */
.cuts { padding: clamp(6rem, 14vh, 10rem) var(--pad) 0; }
.cuts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 2.2rem); }
.cut { display: block; width: 100%; text-align: left; cursor: pointer; }
.cut:nth-child(2) { margin-top: clamp(2rem, 8vw, 7rem); }
.cut:nth-child(3) { margin-top: clamp(1rem, 3vw, 2.5rem); }
.cut__frame {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  border: 1.5px solid var(--ink);
  overflow: hidden;
  background: var(--cream-3);
}
.cut__frame video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.cut:hover .cut__frame video { transform: scale(1.03); }
.cut__frame::after {
  content: "\25B6";
  position: absolute;
  right: 1rem; bottom: 1rem;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  display: grid; place-items: center;
  font-size: 0.75rem;
  padding-left: 2px;
  transition: transform 0.5s var(--ease);
}
.cut:hover .cut__frame::after { transform: scale(1.12); }
.cut__cap { display: flex; justify-content: space-between; margin-top: 0.8rem; font-size: 0.8rem; color: var(--muted); }
.cut__cap span:first-child { font-family: var(--wide); font-stretch: 125%; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; }

/* product stills: arch + pair */
.details {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  padding: clamp(6rem, 14vh, 10rem) var(--pad) 0;
  align-items: start;
}
.details__arch { grid-column: 1 / span 5; grid-row: 1 / span 2; }
.details__text { grid-column: 7 / span 6; grid-row: 1; padding-top: clamp(1rem, 6vh, 4rem); }
.details__text .h2 { margin: 1.2rem 0 1.4rem; }
.details__text p:last-child { max-width: 40ch; }
.details__a { grid-column: 7 / span 3; grid-row: 2; margin-top: clamp(2rem, 6vh, 4rem); }
.details__b { grid-column: 10 / span 3; grid-row: 2; margin-top: clamp(5rem, 16vh, 10rem); }
.details a .frame { display: block; }

/* big stills gallery */
.kc-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  padding: clamp(6rem, 14vh, 10rem) var(--pad) 0;
  align-items: start;
}
.kc-gallery__i { display: block; cursor: zoom-in; }
.kc-gallery__i .frame { display: block; border-radius: 10px; }
.kc-gallery__i--full { grid-column: 1 / -1; }
.kc-gallery__i--full .frame { aspect-ratio: 21 / 10; border-radius: var(--radius); }
.kc-gallery__i:nth-child(2) { grid-column: 1 / span 4; }
.kc-gallery__i:nth-child(3) { grid-column: 5 / span 4; margin-top: 18%; }
.kc-gallery__i:nth-child(4) { grid-column: 9 / span 4; margin-top: 6%; }
.kc-gallery__i:nth-child(5) { grid-column: 1 / span 8; }
.kc-gallery__i:nth-child(6) { grid-column: 9 / span 4; margin-top: -14%; }

/* CTA: full-bleed photo with an outlined cream card on top */
.cta-photo {
  position: relative;
  overflow: hidden;
  min-height: min(92svh, 860px);
  display: grid;
  place-items: center;
  padding: clamp(4rem, 10vh, 7rem) var(--pad);
  margin-top: clamp(6rem, 14vh, 10rem);
}
.cta-photo__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.cta-photo__card {
  position: relative;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(2.2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4.5rem);
  max-width: 40rem;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.3rem;
  box-shadow: 0 30px 80px -30px rgba(24, 18, 15, 0.5);
}
.cta-photo__card .h2 { font-size: clamp(2rem, 4.2vw, 3.8rem); }
.cta-photo__card p { color: var(--muted); max-width: 38ch; }
.cta-photo + .site-footer, main:has(> .cta-photo:last-child) + .site-footer { margin-top: 0; }

/* tall films in the dialog */
.reel--tall { width: min(440px, 88vw); }
.reel--tall video { max-height: 86vh; aspect-ratio: 9 / 16; object-fit: contain; }

@media (max-width: 900px) {
  .cuts__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 68vw;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--pad));
    padding: 0 var(--pad) 0.5rem;
    scrollbar-width: none;
  }
  .cut { scroll-snap-align: center; }
  .cut:nth-child(n) { margin-top: 0; }
  .details { grid-template-columns: 1fr 1fr; }
  .details__arch { grid-column: 1 / -1; grid-row: auto; width: 82%; justify-self: center; }
  .details__text { grid-column: 1 / -1; grid-row: auto; padding-top: 1.5rem; }
  .details__a { grid-column: 1; grid-row: auto; margin-top: 0.5rem; }
  .details__b { grid-column: 2; grid-row: auto; margin-top: 3rem; }
  .kc-gallery { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .kc-gallery__i:nth-child(n) { grid-column: auto; margin-top: 0; }
  .kc-gallery__i--full, .kc-gallery__i:nth-child(5) { grid-column: 1 / -1 !important; }
  .kc-gallery__i--full .frame { aspect-ratio: 3 / 2; }
  .kc-gallery__i:nth-child(3) { margin-top: 2.5rem; }
  .bleed-img { aspect-ratio: 4 / 5; }
  .bleed-film video { aspect-ratio: 4 / 5; }
  .cta-photo { min-height: 80svh; }
}

/* home: the lead project gets the whole width */
.feature--big .feature__a { grid-column: 1 / -1; grid-row: 2; aspect-ratio: 21 / 10; border-radius: var(--radius); }
.feature--big .feature__b {
  grid-column: 10 / span 3;
  grid-row: 2;
  align-self: end;
  margin: 0 clamp(1rem, 3vw, 3rem) clamp(-6rem, -8vw, -3rem) 0;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

.feature--big .feature__title { font-size: clamp(1.6rem, 3.2vw, 3rem); }
@media (max-width: 900px) {
  .feature--big .feature__a { aspect-ratio: 4 / 3; }
  .feature--big .feature__b { grid-column: 8 / -1; margin: 0 0.75rem -2.5rem 0; }
}

/* ---------- project chapters (editorial page) ---------- */
.chapter { padding: clamp(6rem, 14vh, 10rem) 0 0; }
.chapter__head {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding-bottom: clamp(1.2rem, 3vh, 2rem);
  margin: 0 var(--pad);
  border-bottom: 1px solid var(--ink);
}
.chapter__head .h2 { font-size: clamp(2.4rem, 6vw, 5.8rem); }
.chapter__n { font-family: var(--wide); font-stretch: 125%; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; color: var(--muted); }
.chapter__bleed { display: block; margin-top: clamp(2rem, 5vh, 3.5rem); cursor: zoom-in; }

.pgrid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: clamp(2rem, 5vh, 3.5rem) var(--pad) 0;
}
.pgrid__i { display: block; grid-column: var(--c, auto); margin-top: var(--mt, 0); cursor: zoom-in; }
.pgrid__i .frame { display: block; border-radius: 10px; }
.pgrid__i .frame--arch { border-radius: 999px 999px var(--radius) var(--radius); }
.frame--tall { aspect-ratio: 4 / 5; }
.bleed-img--low img { object-position: 50% 70%; }

@media (max-width: 900px) {
  .pgrid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .pgrid__i { grid-column: auto; margin-top: 0; }
  .pgrid__i:nth-child(even) { margin-top: 2.5rem; }
  .pgrid__i:has(.frame--land), .pgrid__i:has(.frame--tall) { grid-column: 1 / -1; margin-top: 0; }
}
