/* ==========================================================================
   Kiddoo Studio — brand tokens
   ========================================================================== */
/* Granse: personal-use licence only (1001fonts FFP). local() shows it on machines that have it installed;
   the woff2 files go in assets/fonts once a commercial web licence is bought from Yukita Creative. */
@font-face {
  font-family: "Granse";
  src: local("Granse Regular"), local("Granse-Regular"),
       url("../assets/fonts/Granse-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Granse";
  src: local("Granse Bold"), local("Granse-Bold"),
       url("../assets/fonts/Granse-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000;
  --white: #fff;
  --red: #d70000;
  --ink: #ececec;  /* hero type: a soft white so the red icons carry the colour */

  /* Granse Bold: headlines, titles, nav, buttons. Granse Regular: body, labels, meta.
     Instrument Serif: sentence-style lines. Poppins is the fallback until Granse ships as a web font. */
  --font-head: "Granse", "Poppins", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-body: "Granse", "Poppins", system-ui, sans-serif;

  /* type scale */
  --fs-label: clamp(10px, 0.78vw, 12px);
  --fs-nav: clamp(13px, 1.1vw, 17px);
  --fs-body: clamp(15px, 1.2vw, 18px);
  --fs-story: clamp(36px, 5.5vw, 88px);
  --fs-title: clamp(56px, 10vw, 180px);

  /* spacing */
  --gutter: clamp(16px, 2.6vw, 40px);
  --space-s: 12px;
  --space-m: 24px;
  --space-l: 64px;

  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

/* Lenis owns smooth scrolling; native smooth + snap would fight it */
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

.label {
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.label--red { color: var(--red); }

/* ==========================================================================
   Loader
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--red);
  display: grid; place-items: center;
}
.loader {
  --loader-exit: 1.1s;
  transition: transform var(--loader-exit) cubic-bezier(.83, 0, .17, 1);
}
.loader__logo {
  width: clamp(200px, 24vw, 340px);
  animation: loader-logo 1.1s cubic-bezier(.19, 1, .22, 1) both;
}
@keyframes loader-logo { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
.loader.is-leaving { transform: translateY(-100%); }
.loader.is-leaving .loader__logo { transform: translateY(-40px); opacity: 0; transition: transform .6s cubic-bezier(.83, 0, .17, 1), opacity .4s linear; }
.loader.is-done { display: none; }

/* ==========================================================================
   Top bar: logo left; Work, Services, How we work, About and Book a call right.
   Every item opens its own page.
   ========================================================================== */
:root { --bar-h: 72px; }
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-m);
  padding: 0 var(--gutter);
  background: var(--black);
  box-shadow: 0 1px 0 rgba(255,255,255,0);
  transition: box-shadow .3s linear;
}
.topbar.is-scrolled { box-shadow: 0 1px 0 rgba(255,255,255,.08); }

.topbar__brand { display: inline-flex; align-items: center; gap: 14px; flex: none; }
.topbar__mark { width: 40px; height: auto; fill: var(--white); }
.topbar__mark .p { fill: var(--black); }
.topbar__word { height: 20px; width: auto; }
.topbar__brand:focus-visible { outline: 1px solid var(--white); outline-offset: 6px; }
.topbar__brand:active { transform: scale(.98); }

.topbar__nav { display: flex; align-items: center; gap: clamp(20px, 2.2vw, 30px); }
.topbar__link {
  position: relative; padding: 6px 0;
  font-family: var(--font-body); font-size: 16px; font-weight: 400; letter-spacing: 0;
  color: rgba(255,255,255,.78);
  transition: color .2s linear;
}
.topbar__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease);
}
.topbar__link:hover, .topbar__link[aria-current="page"] { color: var(--white); }
.topbar__link:hover::after, .topbar__link:focus-visible::after, .topbar__link[aria-current="page"]::after { transform: scaleX(1); }
.topbar__link:focus-visible { outline: 1px solid var(--white); outline-offset: 6px; }
.topbar__link:active { transform: translateY(1px); }
.topbar__nav .btn { margin-left: clamp(4px, 1vw, 12px); }

.topbar__toggle {
  display: none; position: relative; width: 44px; height: 44px; margin-right: -10px;
}
.topbar__toggle i {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--white);
  transition: transform .4s var(--ease), opacity .2s linear;
}
.topbar__toggle i:nth-child(1) { top: 16px; }
.topbar__toggle i:nth-child(2) { top: 26px; }
.topbar__toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.topbar__toggle[aria-expanded="true"] i:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }
.topbar__toggle:focus-visible { outline: 1px solid var(--white); outline-offset: 2px; }
.topbar__toggle:active { transform: scale(.94); }

@media (max-width: 860px) {
  .topbar__toggle { display: block; }
  .topbar__nav {
    position: fixed; left: 0; right: 0; top: var(--bar-h);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) var(--space-m);
    background: var(--black); box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 24px 40px rgba(0,0,0,.5);
    opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
    transition: opacity .25s linear, transform .4s var(--ease), visibility 0s .4s;
  }
  .topbar.is-open .topbar__nav { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .25s linear, transform .4s var(--ease); }
  .topbar__link { font-size: 20px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .topbar__link::after { display: none; }
  .topbar__nav .btn { margin: var(--space-m) 0 0; align-self: flex-start; }
}

/* ==========================================================================
   Button: solid block, label + divider + arrow (Book a call, View project …)
   ========================================================================== */
.btn {
  --btn-h: 52px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: stretch; flex: none;
  height: var(--btn-h); border-radius: 8px;
  background: var(--ink); color: var(--black);
  font-family: var(--font-body); font-size: 16px; font-weight: 700; letter-spacing: 0; line-height: 1; text-transform: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 24px -12px rgba(255,255,255,.25);
  transition: transform .35s cubic-bezier(.34, 1.4, .64, 1);
}
/* hover brightens through an overlay, so only opacity animates */
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--white); opacity: 0; transition: opacity .2s linear; }
.btn__label { display: flex; align-items: center; padding: 0 22px; white-space: nowrap; }
.btn__arrow {
  display: grid; place-items: center; width: calc(var(--btn-h) + 4px);
  border-left: 1px solid rgba(0,0,0,.16);
}
.btn__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s cubic-bezier(.34, 1.4, .64, 1); }
.btn:hover::before, .btn:focus-visible::before { opacity: 1; }
.btn:hover .btn__arrow svg, .btn:focus-visible .btn__arrow svg { transform: translateX(4px); }
.btn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.btn:active { transform: scale(.97); }

.btn--bar { --btn-h: 38px; font-size: 15px; border-radius: 7px; }
.btn--bar .btn__label { padding: 0 16px; }
.btn--sm { --btn-h: 42px; font-size: 14px; }
.btn--sm .btn__label { padding: 0 18px; }
/* on the red footer */
.btn--dark { background: var(--black); color: var(--white); box-shadow: 0 10px 30px -14px rgba(0,0,0,.6); }
.btn--dark::before { background: #1c1c1c; }
.btn--dark .btn__arrow { border-left-color: rgba(255,255,255,.18); }
.btn--dark:focus-visible { outline-color: var(--black); }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn__arrow svg, .btn::before, .topbar__nav, .topbar__toggle i, .topbar__link::after { transition: none; }
}

/* ==========================================================================
   Media blocks (video placeholders)
   ========================================================================== */
.media {
  position: absolute; inset: 0; overflow: hidden;
  background: #141414;
}
.media::before {
  /* placeholder tone; real video covers it */
  content: ""; position: absolute; inset: -10%;
  background:
    radial-gradient(60% 50% at 30% 35%, var(--tone-a, #3a2a20) 0%, transparent 70%),
    radial-gradient(50% 60% at 75% 70%, var(--tone-b, #1d1612) 0%, transparent 70%),
    #0d0d0d;
  transform: scale(var(--media-scale, 1));
  transition: transform .2s linear;
}
.media::after {
  /* darkening + grain so red type stays legible */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.05) 35%, rgba(0,0,0,.05) 65%, rgba(0,0,0,.45)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 2;
}
.media[data-tone="warm"]  { --tone-a: #4a3426; --tone-b: #2a1a12; }
.media[data-tone="amber"] { --tone-a: #5a3e1c; --tone-b: #2b1b0c; }
.media[data-tone="ember"] { --tone-a: #4b1f16; --tone-b: #221010; }
.media[data-tone="cool"]  { --tone-a: #23303d; --tone-b: #11171e; }
.media[data-tone="olive"] { --tone-a: #34331f; --tone-b: #18170e; }

.media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
  transform: scale(var(--media-scale, 1));
}
.media__ph {
  position: absolute; left: var(--gutter); top: calc(var(--gutter) + 56px);
  z-index: 3;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.35);
  border: 1px dashed rgba(255,255,255,.2);
  padding: 6px 10px; white-space: nowrap;
}
.media.has-video .media__ph { display: none; }
/* a still in place of a video (the Knot panel); scales with the scroll like the videos */
.media--still img {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover;
  transform: scale(var(--media-scale, 1)); transition: transform .2s linear;
}

/* ==========================================================================
   Panels
   ========================================================================== */
.panel {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 520px;
  overflow: hidden;
  scroll-snap-align: start;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.panel > *:not(.media) { position: relative; z-index: 5; }

/* giant wordmark */
.wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .8;
  letter-spacing: -.012em;
  white-space: nowrap;
  padding: 0 var(--gutter);
  user-select: none;
}
.wordmark span { display: inline-block; font-size: 22vw; }
.wordmark--red { color: var(--red); }
.wordmark--black { color: var(--black); }

/* hero */
.hero { display: flex; flex-direction: column; justify-content: flex-end; }
.hero .wordmark { padding-bottom: calc(var(--gutter) * .6); }
.hero__line {
  padding: 0 var(--gutter) calc(var(--space-m) + 1.5vw);
  font-size: var(--fs-label); font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase;
}

/* project */
.project {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center; text-align: center;
  padding: calc(var(--gutter) * 4) var(--gutter) var(--gutter);
}
.project__meta { align-self: end; padding-bottom: var(--space-m); }
.project__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-title);
  line-height: .86;
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: var(--red);
}
.project__foot {
  align-self: start;
  padding-top: var(--space-l);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-m);
}
.project__parts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.project__parts li {
  font-size: var(--fs-label); font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
}
.project__parts li::before { content: "● "; color: var(--red); font-size: .8em; }


/* ==========================================================================
   Stories
   ========================================================================== */
.stories {
  padding: calc(var(--gutter) * 4) var(--gutter) var(--gutter);
  scroll-snap-align: start;
}
.stories__head {
  display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-m);
  align-items: baseline;
  padding-bottom: var(--space-m);
  margin-bottom: var(--gutter);
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.stories__line {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(24px, 2.6vw, 40px); line-height: 1.15; letter-spacing: 0;
  max-width: 22ch;
}
.stories__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.story {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--gutter);
}
.story > *:not(.media) { position: relative; z-index: 5; }
.story__title {
  font-family: var(--font-head); font-weight: 700;
  font-size: var(--fs-story); line-height: .9; letter-spacing: -.005em;
  text-transform: uppercase; color: var(--red);
}
.story .media__ph { top: 50%; left: 50%; transform: translate(-50%, -50%); }
@media (max-width: 760px) { .media__ph { white-space: normal; max-width: calc(100% - 2 * var(--gutter)); } }


/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--red); color: var(--black);
  padding-top: calc(var(--gutter) * 1.5);
  scroll-snap-align: end;
}
.footer__cols {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: var(--space-m);
  padding: 0 var(--gutter) var(--space-l);
  text-align: center;
}
.footer__head {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(20px, 2vw, 30px); text-transform: uppercase; letter-spacing: -.01em;
  margin-bottom: 6px;
}
.footer__val { font-size: var(--fs-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.footer__val:hover { text-decoration: underline; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-m);
  padding: var(--space-m) var(--gutter) var(--gutter);
  font-size: var(--fs-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.clock { display: inline-flex; align-items: center; gap: 8px; }
.clock__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--black); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* ==========================================================================
   Reveals
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(var(--reveal-distance, 40px)); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity var(--reveal-duration, .8s) var(--ease), transform var(--reveal-duration, .8s) var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

/* ==========================================================================
   Page-load hero intro (runs as the loader lifts)
   ========================================================================== */
.hero .wordmark { transition: transform 1.4s cubic-bezier(.83, 0, .17, 1) .35s; }
body.is-loading .hero .wordmark { transform: translateY(110%); }
.hero__line { transition: opacity 1s linear 1s, transform 1.2s cubic-bezier(.19, 1, .22, 1) 1s; }
body.is-loading .hero__line { opacity: 0; transform: translateY(16px); }

/* ==========================================================================
   Hover-to-play: the panel tells you it's live
   ========================================================================== */
.media video { transition: opacity .4s linear; }
@media (hover: hover) and (pointer: fine) {
  .project .media::after, .story .media::after { transition: opacity .5s linear; }
  .project:hover .media::after, .story:hover .media::after { opacity: .55; }
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 760px) {
  html { scroll-snap-type: none; }
  .wordmark span { font-size: 23vw; }
  .project { padding-top: 120px; }
  .project__foot { padding-top: var(--space-m); }
  .stories { padding-top: var(--space-l); }
  .stories__head { grid-template-columns: 1fr; gap: 8px; }
  .stories__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; padding-bottom: var(--space-m); }
  .footer__cta { grid-column: 1 / -1; order: 3; padding-top: var(--space-s); }
  .footer__bottom { flex-wrap: wrap; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .loader, .loader__logo, .hero .wordmark, .hero__line { transition: none !important; animation: none !important; }
  body.is-loading .hero .wordmark, body.is-loading .hero__line { transform: none; opacity: 1; }
  .clock__dot { animation: none; }
  .media::before, .media video { transform: none !important; }
}

/* story titles link to their project pages */
.story__link { transition: opacity .3s linear; }
.story:hover .story__link { opacity: .8; }
.story__link:focus-visible { outline: 1px solid var(--red); outline-offset: 6px; }
.story__link:active { opacity: .6; }

/* ==========================================================================
   Book a call
   ========================================================================== */

/* ---------- Booking form (dialog built by js/booking.js) ---------- */
.book {
  width: min(820px, calc(100% - 2 * var(--gutter)));
  max-height: calc(100svh - 2 * var(--gutter));
  margin: auto; padding: 0;
  background: var(--black); color: var(--white);
  border: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 30px 80px rgba(215,0,0,.12);
  overflow-y: auto; overscroll-behavior: contain;
}
.book[open] { animation: book-in .7s cubic-bezier(.19, 1, .22, 1); }
@keyframes book-in { from { opacity: 0; transform: translateY(32px) scale(.98); } }
.book::backdrop { background: rgba(0,0,0,.72); animation: book-fade .4s linear; }
@keyframes book-fade { from { opacity: 0; } }

.book__form { padding: clamp(24px, 4vw, 48px); }
.book__title {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  color: var(--red); font-size: clamp(40px, 6vw, 80px); line-height: .9; letter-spacing: -.005em;
}
.book__intro { margin-top: 12px; color: rgba(255,255,255,.7); font-family: var(--font-serif); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.4; max-width: 34em; }

.book__set { border: 0; margin: 0; padding: 0; margin-top: clamp(28px, 4vw, 40px); }
.book__set legend { font-weight: 700; margin-bottom: 14px; padding: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.book__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px var(--space-m); }
.field--wide { grid-column: 1 / -1; }
.field input {
  width: 100%; font: inherit; color: var(--white);
  background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.3);
  padding: 12px 0; border-radius: 0;
  transition: border-color .3s;
}
.field input::placeholder { color: rgba(255,255,255,.45); }
.field input:hover { border-bottom-color: rgba(255,255,255,.6); }
.field input:focus { outline: none; border-bottom-color: var(--red); }
.field input:focus-visible { box-shadow: 0 1px 0 var(--red); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips + .chips, .phases + .chips { margin-top: 12px; }
.chip input, .phase input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
  font-size: .9em;
  transition: background-color .25s, box-shadow .25s, transform .3s var(--ease);
}
.chip:hover span { box-shadow: inset 0 0 0 1px var(--white); }
.chip:active span { transform: scale(.96); }
.chip input:checked + span { background: var(--red); box-shadow: none; }
.chip input:focus-visible + span { outline: 1px solid var(--white); outline-offset: 3px; }

.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.phase {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 18px 18px 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  transition: box-shadow .25s, background-color .25s, transform .3s var(--ease);
}
.phase::after {
  /* checkbox mark, top-right */
  content: ""; position: absolute; top: 18px; right: 18px; width: 16px; height: 16px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}
.phase:hover { box-shadow: inset 0 0 0 1px var(--white); }
.phase:active { transform: scale(.99); }
.phase:has(input:checked) { box-shadow: inset 0 0 0 1px var(--red); background: rgba(215,0,0,.08); }
.phase:has(input:checked)::after { background: var(--red); box-shadow: none; }
.phase:has(input:focus-visible) { outline: 1px solid var(--white); outline-offset: 3px; }
.phase__name {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(20px, 1.8vw, 27px); line-height: 1; letter-spacing: -.005em;
  padding-right: 26px; /* clear of the checkbox */
}
.phase:has(input:checked) .phase__name { color: var(--red); }
.phase__line { font-size: .85em; color: rgba(255,255,255,.7); line-height: 1.5; padding-right: 20px; }
.phase__items { margin-top: 6px; font-size: .8em; line-height: 1.6; color: rgba(255,255,255,.6); }
.phase__items li::before { content: "● "; color: var(--red); font-size: .7em; }

.book__error { margin-top: var(--space-m); color: var(--white); background: var(--red); padding: 10px 14px; font-size: .9em; }
.book__actions {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-m);
  margin-top: clamp(28px, 4vw, 40px); padding-top: var(--space-m);
  border-top: 1px solid rgba(255,255,255,.16);
}
.book__cancel { text-decoration: underline; text-underline-offset: 4px; color: rgba(255,255,255,.7); transition: color .25s; }
.book__cancel:hover, .book__cancel:focus-visible { color: var(--white); }
.book__cancel:focus-visible { outline: 1px solid var(--white); outline-offset: 4px; }
.book__cancel:active { opacity: .6; }

@media (max-width: 760px) {
  .book { width: 100%; max-width: 100%; height: 100%; max-height: 100%; }
  .book__fields, .phases { grid-template-columns: 1fr; }
  .book__actions { position: sticky; bottom: 0; background: var(--black); padding-bottom: var(--space-s); }
}
@media (prefers-reduced-motion: reduce) {
  .book[open], .book::backdrop { animation: none; }
}

/* ==========================================================================
   Hero type: "We craft bold content with cinematic quality"
   Centred rows; footage windows and brand icons sit inline at cap height.
   Font size is set by fitHero() in main.js so the widest row fills ~90% of the width.
   ========================================================================== */
.hero {
  justify-content: center;
  padding: calc(var(--bar-h) + var(--gutter) * .5) var(--gutter) 0;
}
.hero-type {
  margin: auto 0;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  color: var(--ink);
}
.ht { display: flex; flex-direction: column; align-items: center; font-size: 9vw; line-height: .92; letter-spacing: 0; }
.ht-line { display: flex; align-items: center; justify-content: center; gap: .24em; }
/* every item is its own mask, so the rise-in works however the rows wrap */
.ht-i { display: inline-flex; flex-shrink: 0; align-items: center; overflow: hidden; padding: .04em 0 0; }
.ht-word { display: inline-flex; align-items: center; white-space: nowrap; }

.ht-ico { display: block; height: .74em; width: auto; fill: var(--red); overflow: visible; }
.ht-ico path { stroke: var(--red); stroke-width: 8; stroke-linejoin: round; }
.ht-ico--eyes { height: .74em; }
.ht-ico--eyes .pupil { fill: var(--black); transition: transform .5s cubic-bezier(.19, 1, .22, 1); }
.ht-ico--spark { height: .66em; }

.ht-tile {
  position: relative; display: block;
  width: 1.32em; height: .74em; overflow: hidden; background: #141414;
}
.ht-tile img { width: 100%; height: 100%; object-fit: cover; }
.ht-tile--wide { width: 1.78em; }   /* harbour panorama, 2.4:1 */
.ht-tile--photo { width: 1.09em; }  /* camera shot at its own 3:2-ish frame, nothing cropped */
.ht-ico--food { height: .72em; }
.ht-ico--plane { height: .78em; }  /* travel */
.ht-ico--food .chop { fill: none; stroke-width: 9; stroke-linecap: round; }  /* bowl and chopsticks */
.ht-tile .media::after { background: none; } /* no darkening: the windows stay in full colour */

/* load: items rise row by row */
.ht-word, .ht-tile { transition: transform 1.2s cubic-bezier(.83, 0, .17, 1) calc(.3s + var(--l) * .1s); }
body.is-loading .ht-word, body.is-loading .ht-tile { transform: translateY(118%); }

.hero__foot { display: flex; justify-content: space-between; gap: var(--space-m); padding: var(--space-m) 0 var(--gutter); }
.hero__foot .hero__line { padding: 0; }
.hero__scroll { color: rgba(255,255,255,.55); }

@media (max-width: 760px) {
  .hero { padding-top: 110px; }
  /* phones: one centred run that wraps where it needs to */
  .ht { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; column-gap: .24em; }
  .ht-line { display: contents; }
}
@media (prefers-reduced-motion: reduce) {
  .ht-word, .ht-tile { transition: none; }
  body.is-loading .ht-word, body.is-loading .ht-tile { transform: none; }
  .ht-ico--eyes .pupil { transition: none; }
}

/* ==========================================================================
   Our services · What we capture · How we work
   ========================================================================== */
.services, .capture, .process { --hair: rgba(255,255,255,.12); --muted: rgba(255,255,255,.5); --dim: #3a3a3a; }
.sec-head { padding: calc(var(--space-l) * 1.5) var(--gutter) var(--space-l); }
.sec-head .label { display: block; margin-bottom: var(--space-m); }
.sec-head__title {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(48px, 7vw, 120px); line-height: .9; letter-spacing: -.005em;
}

/* ---------- Services: the section pins while three steps scroll through ---------- */
.ps { position: relative; height: 360vh; }
.ps-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.ps-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: rgba(255,255,255,.08); }
.ps-bar b { position: absolute; inset: 0; background: var(--red); transform-origin: top; transform: scaleY(var(--gp, 0)); }
.ps-in { width: 100%; display: grid; grid-template-columns: minmax(150px, 14vw) 1fr; gap: var(--gutter); align-items: center; padding: 0 var(--gutter); }

.ps-side { display: grid; gap: 32px; }
.ps-count { font-size: var(--fs-label); letter-spacing: .14em; color: var(--muted); }
.ps-count b { display: block; margin-bottom: 6px; font-family: var(--font-head); font-weight: 700; font-size: clamp(48px, 5vw, 80px); line-height: 1; letter-spacing: 0; color: var(--red); }
.ps-rail { display: grid; gap: 16px; }
.ps-rail li { display: flex; gap: 12px; align-items: baseline; font-weight: 700; color: #5f5f5f; transition: color .4s, transform .5s var(--ease); }
.ps-rail .ps-n { font-size: var(--fs-label); font-weight: 400; letter-spacing: .1em; }
.ps-rail li.is-on { color: var(--white); transform: translateX(8px); }
.ps-rail li.is-on .ps-n { color: var(--red); }

.ps-stage { position: relative; height: min(76vh, 640px); }
.ps-step { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--gutter) * 1.5); align-items: center; pointer-events: none; }
.ps-step.is-on { pointer-events: auto; }
.ps-kicker { font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.ps-title {
  margin-top: 18px;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(48px, 6.4vw, 112px); line-height: .9; letter-spacing: -.005em;
}
.ps-title span { display: block; }
.ps-desc { margin-top: 22px; max-width: 22em; font-family: var(--font-serif); font-size: clamp(22px, 1.9vw, 30px); line-height: 1.25; color: rgba(255,255,255,.7); }
.ps-copy > * { opacity: 0; transform: translateY(30px); transition: opacity .6s linear, transform .9s cubic-bezier(.19, 1, .22, 1); }
.ps-copy .ps-title { transition-delay: .05s; }
.ps-copy .ps-desc { transition-delay: .12s; }
.ps-step.is-on .ps-copy > * { opacity: 1; transform: none; }
.ps-step.is-out .ps-copy > * { transform: translateY(-30px); transition-delay: 0s; }

/* the list rolls past a red line; the item on the line lights up */
.ps-tick {
  position: relative; height: 100%; overflow: hidden;
  opacity: 0; transition: opacity .5s linear;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.ps-step.is-on .ps-tick { opacity: 1; }
.ps-tick::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--red); opacity: .7; }
.ps-list { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(calc(-1 * (var(--lp, 0) * (var(--n) - 1) + .5) * var(--row))); --row: 96px; }
.ps-list li {
  display: flex; align-items: center; height: var(--row); padding-left: 28px; white-space: nowrap;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(22px, 2.1vw, 36px); line-height: 1.05;
  color: var(--dim); transition: color .35s, transform .45s var(--ease);
}
.ps-list li.is-hot { color: var(--white); transform: translateX(10px); }
.ps-list li.is-hot::before { content: ""; flex: none; width: 10px; height: 10px; margin: 0 18px 0 -28px; border-radius: 50%; background: var(--red); }

/* ---------- What we capture: picture tiles ---------- */
.capture { padding: 0 var(--gutter) var(--space-l); }
.sub-head {
  margin-bottom: 22px; padding-top: 22px; border-top: 1px solid var(--hair);
  font-family: var(--font-head); font-weight: 700; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.1;
}
.cap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-s); }
/* seven tiles: Documentaries runs two rows tall so the grid closes without a gap */
.cap.cap--tall { grid-column: 2; grid-row: span 2; aspect-ratio: auto; }
.cap {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 4 / 5; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--hair);
  display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(14px, 1.6vw, 24px);
  background: #111;
}
.cap > img, .cap > .media, .cap__ph {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s cubic-bezier(.19, 1, .22, 1);
}
.cap__ph {
  display: grid; place-items: center; padding: 20px; text-align: center;
  font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.3);
  background: radial-gradient(110% 80% at 70% 10%, var(--tint) 0%, rgba(17,17,17,0) 72%), #111;
}
.cap > .media::after { background: none; }
.cap::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 55%), linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 22%); }
.cap:hover > img, .cap:hover > .media, .cap:hover .cap__ph { transform: scale(1.04); }
.cap__tag { position: absolute; top: 14px; left: 14px; padding: 5px 8px 4px; background: var(--red); font-size: var(--fs-label); font-weight: 700; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--white); }
.cap__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(20px, 2vw, 32px); line-height: 1.05; }
.cap__line { margin-top: 6px; font-family: var(--font-serif); font-size: clamp(16px, 1.3vw, 20px); line-height: 1.3; color: rgba(255,255,255,.78); }

/* ---------- How we work: detail box + step list ---------- */
.process { padding-bottom: calc(var(--space-l) * 1.5); }
.process .sec-head { padding-top: var(--space-l); }
.pr { display: grid; grid-template-columns: 1.15fr 1fr; gap: calc(var(--gutter) * 2); align-items: center; padding: 0 var(--gutter); }
.pr-box {
  position: relative; overflow: hidden; min-height: 420px;
  padding: clamp(28px, 3.4vw, 52px);
  border-radius: 4px; box-shadow: inset 0 0 0 1px var(--hair);
  background: radial-gradient(90% 80% at 20% 0%, rgba(215,0,0,.09), transparent 70%), #0b0b0b;
}
.pr-in { display: flex; flex-direction: column; gap: 16px; animation: prIn .5s cubic-bezier(.19, 1, .22, 1) both; }
@keyframes prIn { from { opacity: 0; transform: translateY(14px); } }
.pr-top { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.pr-ic { position: relative; flex: none; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hair); color: var(--red); }
.pr-ic::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--red); animation: prSpin 3.2s linear infinite; }
@keyframes prSpin { to { transform: rotate(360deg); } }
.pr-ic svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pr-count { font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pr-count b { color: var(--red); font-weight: 700; }
.pr-box h3 { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: clamp(32px, 3.4vw, 54px); line-height: .95; }
.pr-box p { max-width: 24em; font-family: var(--font-serif); font-size: clamp(20px, 1.6vw, 26px); line-height: 1.3; color: rgba(255,255,255,.75); }
.pr-inv { display: grid; gap: 14px; margin-top: 10px; }
.pr-inv li { display: flex; gap: 16px; align-items: baseline; }
.pr-inv li::before { content: ""; flex: none; width: 14px; height: 2px; background: var(--red); transform: translateY(-4px); }
.pr-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--red); transform-origin: 0 50%; animation: prBar 5s linear forwards; }
@keyframes prBar { from { transform: scaleX(0); } }

.pr-grp { padding-bottom: 10px; font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pr-grp:not(:first-child) { margin-top: 28px; }
.pr-row {
  position: relative; width: 100%;
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 16px 0; border-top: 1px solid var(--hair); text-align: left; color: #6a6a6a;
}
.pr-row::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s cubic-bezier(.6, 0, .2, 1); }
.pr-row .n { font-size: var(--fs-label); font-weight: 700; letter-spacing: .1em; transition: color .3s; }
.pr-row .t { font-family: var(--font-head); font-weight: 700; font-size: clamp(20px, 1.9vw, 30px); line-height: 1.1; transition: color .3s, transform .4s var(--ease); }
.pr-row .arr { width: 22px; height: 22px; color: var(--red); opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .4s var(--ease); }
.pr-row .arr svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pr-row:hover .t { color: var(--white); }
.pr-row:focus-visible { outline: 1px solid var(--red); outline-offset: 4px; }
.pr-row:active .t { transform: translateX(2px); }
.pr-row.is-on .n { color: var(--red); }
.pr-row.is-on .t { color: var(--white); transform: translateX(4px); }
.pr-row.is-on .arr { opacity: 1; transform: none; }
.pr-row.is-on::before { transform: scaleX(1); }

@media (max-width: 960px) {
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr { grid-template-columns: 1fr; gap: var(--space-m); }
  .pr-box { min-height: 0; }
}
@media (max-width: 760px) {
  .ps-in { grid-template-columns: 1fr; gap: var(--space-m); }
  .ps-rail { display: none; }
  .ps-count b { display: inline; font-size: 28px; margin: 0; }
  .ps-stage { height: 70svh; }
  .ps-step { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: var(--space-m); align-items: start; }
  .ps-list { --row: 60px; }
  .ps-list li { font-size: 21px; }
  .cap { aspect-ratio: 3 / 4; }
  .cap.cap--tall { aspect-ratio: auto; }
  .cap__line { display: none; }
  .cap-grid { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .ps-copy > *, .ps-list li, .ps-tick, .pr-row .t, .pr-row::before { transition: none; }
  .pr-in, .pr-ic::before, .pr-bar { animation: none; }
}

/* whole Knot panel opens the case page; the words above it let clicks through */
.panel > .project__link { position: absolute; inset: 0; z-index: 4; }
.project:has(.project__link) > .project__meta,
.project:has(.project__link) > .project__title { pointer-events: none; }
.project__link:focus-visible { outline: 2px solid var(--red); outline-offset: -8px; }

/* ==========================================================================
   Testimonials: staggered cards. The middle card is lifted and red; side cards
   fan out with a slight tilt. Clicking one, the arrows, a swipe or ←/→ moves the row.
   ========================================================================== */
.quotes { --hair: rgba(255,255,255,.14); padding-bottom: var(--space-l); overflow: hidden; }
.tq { position: relative; height: 620px; }
.tq-stage { position: absolute; inset: 0; touch-action: pan-y; }
.tq-card {
  --size: 365px;
  position: absolute; left: 50%; top: 46%;
  width: var(--size); height: var(--size); padding: 32px;
  background: #111; border: 2px solid var(--hair);
  clip-path: polygon(50px 0%, calc(100% - 50px) 0%, 100% 50px, 100% 100%, calc(100% - 50px) 100%, 50px 100%, 0 100%, 0 0);
  cursor: pointer; user-select: none;
  transform: translate(-50%, -50%) translateX(calc(var(--size) / 1.5 * var(--pos))) translateY(var(--y)) rotate(var(--r));
  transition: transform .5s cubic-bezier(.34, 1.15, .64, 1);
}
.tq-card.is-jump { transition: none; }
/* the red fill fades in under the content, so only opacity animates */
.tq-card::before { content: ""; position: absolute; inset: -2px; background: var(--red); opacity: 0; transition: opacity .4s linear; }
.tq-card > * { position: relative; }
.tq-card.is-center { z-index: 10; border-color: var(--red); }
.tq-card.is-center::before { opacity: 1; }
.tq-card:not(.is-center):hover { border-color: rgba(215,0,0,.6); }
.tq-cut { position: absolute; right: -2px; top: 48px; width: 70.71px; height: 2px; background: var(--hair); transform: rotate(45deg); transform-origin: 100% 0; }
.tq-card.is-center .tq-cut { background: var(--red); }
.tq-thumb { display: block; width: 48px; height: 56px; margin-bottom: 18px; object-fit: cover; background: #222; box-shadow: 3px 3px 0 var(--black); }
.tq-quote { font-family: var(--font-serif); font-size: clamp(20px, 1.7vw, 26px); line-height: 1.2; }
.tq-by { position: absolute; left: 32px; right: 32px; bottom: 28px; font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.tq-card.is-center .tq-by { color: rgba(255,255,255,.85); }

.tq-nav { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 20; }
.tq-btn {
  display: grid; place-items: center; width: 56px; height: 56px;
  background: var(--black); color: var(--white); box-shadow: inset 0 0 0 2px var(--hair);
  transition: transform .3s var(--ease);
}
.tq-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tq-btn:hover { background: var(--red); box-shadow: none; }
.tq-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.tq-btn:active { transform: scale(.94); }

@media (max-width: 640px) {
  .tq { height: 520px; }
  .tq-card { --size: 290px; padding: 24px; }
  .tq-by { left: 24px; right: 24px; bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .tq-card, .tq-card::before, .tq-btn { transition: none; }
}

.footer__cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cta__note { font-size: var(--fs-label); font-weight: 400; letter-spacing: .04em; }

/* page content clears the fixed top bar */
main { padding-top: var(--bar-h); }
.hero { min-height: calc(100svh - var(--bar-h)); height: auto; padding-top: var(--gutter); }

/* ==========================================================================
   Services (2026-11-05): heading pins with the steps, so there is no empty
   screen between "What we do" and step 01. Steps carry a full paragraph.
   ========================================================================== */
.ps-pin {
  top: var(--bar-h); height: calc(100vh - var(--bar-h)); height: calc(100svh - var(--bar-h));
  flex-direction: column; align-items: stretch; justify-content: flex-start;
}
.sec-head.ps-head { flex: none; padding: clamp(20px, 4vh, 48px) var(--gutter) clamp(12px, 2.5vh, 28px); }
.ps-head .label { margin-bottom: 14px; }
.ps-head .sec-head__title { font-size: clamp(44px, 6vw, 104px); }
.ps-in { flex: none; align-items: center; }
.ps-stage { height: clamp(360px, calc(100svh - var(--bar-h) - 300px), 440px); }
.ps-step { align-items: center; }
.ps-title { margin-top: 12px; }
.ps-desc {
  margin-top: 16px; max-width: 36em;
  font-family: var(--font-body, inherit); font-size: clamp(15px, 1.05vw, 17px); line-height: 1.7;
  color: rgba(255,255,255,.72);
}
/* list rows sit closer; long items wrap onto a second line */
.ps-list { --row: 68px; }
.ps-list li { white-space: normal; font-size: clamp(20px, 1.7vw, 28px); line-height: 1.08; padding-right: 12px; }

/* phones: no pinning, the three steps stack and read top to bottom */
@media (max-width: 760px) {
  .ps { height: auto; }
  .ps-pin { position: relative; top: 0; height: auto; overflow: visible; }
  .ps-bar, .ps-side { display: none; }
  .ps-stage { height: auto; min-height: 0; display: grid; gap: calc(var(--space-l) * 1); }
  .ps-step { position: relative; inset: auto; display: block; pointer-events: auto; }
  .ps-copy > *, .ps-step.is-out .ps-copy > * { opacity: 1; transform: none; }
  .ps-tick { height: auto; opacity: 1; overflow: visible; -webkit-mask-image: none; mask-image: none; margin-top: var(--space-m); }
  .ps-tick::before { display: none; }
  .ps-list { position: static; transform: none; border-top: 1px solid var(--hair); }
  .ps-list li { height: auto; padding: 14px 0 14px 22px; border-bottom: 1px solid var(--hair); color: var(--white); font-size: 19px; position: relative; }
  .ps-list li::before, .ps-list li.is-hot::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin: -4px 0 0; border-radius: 50%; background: var(--red); }
  .ps-list li.is-hot { transform: none; }
}

/* ==========================================================================
   Why choose us: four reasons, name on the left, the reason on the right
   ========================================================================== */
.why { --hair: rgba(255,255,255,.12); padding-bottom: calc(var(--space-l) * 1.25); }
.why .sec-head { padding-top: var(--space-l); }
.why-list { margin: 0 var(--gutter); border-top: 1px solid var(--hair); }
.why-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: baseline;
  padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--hair);
}
.why-row__t {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(28px, 3.4vw, 56px); line-height: .95; letter-spacing: -.005em;
}
.why-row__d { max-width: 26em; font-family: var(--font-serif); font-size: clamp(19px, 1.6vw, 26px); line-height: 1.35; color: rgba(255,255,255,.72); }
@media (max-width: 760px) {
  .why-row { grid-template-columns: 1fr; gap: 10px; }
}
html{scroll-padding-top:var(--bar-h)}

/* ==========================================================================
   2026-11-05 (b)
   ========================================================================== */

/* ---------- Red button (Book a call) ---------- */
.btn--red { background: var(--red); color: var(--white); box-shadow: 0 10px 28px -14px rgba(215,0,0,.7); }
.btn--red::before { background: #b80000; }
.btn--red .btn__arrow { border-left-color: rgba(255,255,255,.28); }

/* ---------- Book a call pop-up, laid out like the reference ---------- */
html.book-open { overflow: hidden; }
dialog.book {
  width: min(880px, calc(100% - 2 * var(--gutter)));
  max-height: calc(100svh - 32px);
  background: #141414; border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 40px 100px -20px rgba(0,0,0,.9), 0 20px 60px -30px rgba(215,0,0,.25);
}
dialog.book::backdrop { background: rgba(0,0,0,.7); }
.book .book__form { padding: clamp(24px, 3.4vw, 44px); }
.book .book__title {
  font-family: var(--font-head); font-weight: 700; text-transform: none; color: var(--white);
  font-size: clamp(30px, 3vw, 42px); line-height: 1.05; letter-spacing: -.02em;
}
.book .book__intro { margin-top: 12px; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.7); }
.book .book__set { margin-top: clamp(24px, 3vw, 34px); }
.book .book__set legend { font-size: 17px; margin-bottom: 12px; }
.book .book__fields { gap: 12px; }
.book .field input {
  padding: 16px 18px; background: var(--black); border: 1px solid rgba(255,255,255,.14); border-radius: 8px;
  transition: border-color .2s linear;
}
.book .field input:hover { border-color: rgba(255,255,255,.32); }
.book .field input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.book .chip span { border-radius: 8px; padding: 12px 18px; font-size: 15px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.book .chip:hover span { box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.book .chip input:checked + span { background: var(--red); box-shadow: none; }
.book .phases { gap: 12px; }
.book .phase { border-radius: 10px; padding: 18px 20px 20px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.book .phase::after { border-radius: 5px; width: 20px; height: 20px; }
.book .phase:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.book .phase:has(input:checked) { box-shadow: inset 0 0 0 1px var(--red); background: rgba(215,0,0,.08); }
.book .phase__name { text-transform: none; font-size: 19px; letter-spacing: -.01em; }
.book .phase__items { margin-top: 10px; font-size: 15px; line-height: 1.75; color: rgba(255,255,255,.7); }
.book .phase__items li::before { content: "• "; color: rgba(255,255,255,.5); font-size: 1em; }
.book .book__actions { border-top: 0; padding-top: 0; }
.book .book__cancel { font: inherit; font-size: 17px; background: none; border: 0; padding: 8px 4px; color: rgba(255,255,255,.75); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.book .book__cancel:hover { color: var(--white); }
.book .book__cancel:focus-visible { outline: 1px solid var(--white); outline-offset: 4px; }
.book .book__cancel:active { opacity: .6; }
.book.book--inline { background: none; border-radius: 0; box-shadow: none; }
@media (max-width: 760px) {
  dialog.book { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .book .book__actions { background: #141414; padding: 12px 0; }
  .book.book--inline .book__actions { background: var(--black); }
}

/* ---------- Our services: background photo per stage, one paragraph per item ---------- */
.ps-pin { isolation: isolate; }
.ps-bgs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ps-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  filter: saturate(.75); opacity: 0; transform: scale(1.06);
  transition: opacity .9s linear, transform 1.6s cubic-bezier(.19, 1, .22, 1);
}
.ps-bg.is-on { opacity: .42; transform: none; }
/* dark wash so the type always reads: heaviest behind the copy, fades into black top and bottom */
.ps-bgs::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, #000 0%, rgba(0,0,0,.35) 22%, rgba(0,0,0,.35) 78%, #000 100%),
    linear-gradient(90deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.7) 100%);
}
.ps-head { padding-bottom: clamp(8px, 2vh, 20px); }
.ps-list li { color: rgba(255,255,255,.32); }
.ps-list li.is-hot { color: var(--white); }
/* the item's own paragraph is read by screen readers here; sighted visitors see it in .ps-descs */
.ps-li-d { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ps-descs { display: grid; margin-top: 18px; max-width: 30em; }
.ps-descs .ps-desc {
  grid-area: 1 / 1; margin: 0; max-width: none;
  font-family: var(--font-serif); font-size: clamp(21px, 1.75vw, 28px); line-height: 1.3; color: rgba(255,255,255,.88);
  opacity: 0; transform: translateY(12px);
  transition: opacity .35s linear, transform .6s cubic-bezier(.19, 1, .22, 1);
}
.ps-descs .ps-desc.is-on { opacity: 1; transform: none; transition-delay: .08s; }

@media (max-width: 760px) {
  .ps-bgs, .ps-descs { display: none; }
  .ps-step {
    padding: var(--space-m); border-radius: 6px; overflow: hidden;
    background: linear-gradient(180deg, rgba(0,0,0,.8), rgba(0,0,0,.9)), var(--bg) center / cover;
  }
  .ps-list li { display: block; color: var(--white); }
  .ps-li-t { display: block; }
  .ps-li-d {
    position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
    display: block; margin-top: 6px; font-family: var(--font-serif); font-weight: 400; font-size: 18px; line-height: 1.35; color: rgba(255,255,255,.78);
  }
  .ps-list li::before, .ps-list li.is-hot::before { top: 22px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ps-bg, .ps-descs .ps-desc { transition: none; }
}

/* ---------- What we capture: six tiles, three across ---------- */
.cap-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cap { aspect-ratio: 1 / 1; }
@media (max-width: 960px) { .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cap { aspect-ratio: 3 / 4; } }

/* ---------- Why choose us: icon beside each reason ---------- */
.why-row__h { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); }
.why-ic {
  flex: none; display: grid; place-items: center;
  width: clamp(48px, 4.2vw, 64px); height: clamp(48px, 4.2vw, 64px); border-radius: 50%;
  background: rgba(215,0,0,.1); box-shadow: inset 0 0 0 1px rgba(215,0,0,.45); color: var(--red);
}
.why-ic svg { width: 52%; height: 52%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.why-row { align-items: center; }
.ps-step:nth-child(1) { --bg: url(../assets/img/services/bg-1.webp); }
.ps-step:nth-child(2) { --bg: url(../assets/img/services/bg-2.webp); }
.ps-step:nth-child(3) { --bg: url(../assets/img/services/bg-3.webp); }

/* ==========================================================================
   2026-11-05 (c)
   ========================================================================== */

/* ---------- Loader: the logo's eyes look around (3D eyeballs) ---------- */
.loader__logo { position: relative; display: block; }
.loader__word { display: block; width: 100%; height: auto; clip-path: inset(0 37.2% 0 0); }
.loader__eyes { position: absolute; left: 63.9%; top: 11.8%; width: 33.6%; height: auto; overflow: visible; }
/* flat, like the wordmark: the pupils glance right, then left, and keep looking around while the page loads */
.ld-pupil { fill: var(--red); transform: translate(36px, -12px); animation: ld-look 2.4s cubic-bezier(.65, 0, .35, 1) .3s infinite; }
@keyframes ld-look {
  0%, 38%   { transform: translate(36px, -12px); }
  50%, 88%  { transform: translate(-38px, -14px); }
  100%      { transform: translate(36px, -12px); }
}
@media (prefers-reduced-motion: reduce) { .ld-pupil { animation: none; } }

/* ---------- Projects on the homepage: darker images so the names stand out ---------- */
/* dimmed by opacity over the black .media background (same look as brightness .62),
   so the hover can brighten it with an opacity fade */
.project .media, .story .media { background: #000; }
.project .media img, .story .media img { opacity: .62; transition: opacity .6s cubic-bezier(.19, 1, .22, 1); }
.project:hover .media img, .story:hover .media img,
.project:focus-within .media img, .story:focus-within .media img { opacity: .95; }

/* hover: the picture eases in, an arrow button turns up, the whole card is the link */
.project > .media, .story > .media { transition: transform 1.2s cubic-bezier(.19, 1, .22, 1); }
.go {
  position: absolute; z-index: 6; pointer-events: none;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--ink); color: var(--black);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.6);
  opacity: 0; transform: scale(.5) rotate(-45deg);
  transition: opacity .25s linear, transform .6s cubic-bezier(.34, 1.56, .64, 1);
}
.go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.project > .go { top: calc(var(--bar-h) + var(--gutter)); right: var(--gutter); }
.story > .go { top: var(--gutter); right: var(--gutter); }
.project:hover > .media, .story:hover > .media,
.project:focus-within > .media, .story:focus-within > .media { transform: scale(1.045); }
.project:hover > .go, .story:hover > .go,
.project:focus-within > .go, .story:focus-within > .go { opacity: 1; transform: none; }
.project:active > .go, .story:active > .go { transform: scale(.92); }
.project__title, .story__title { transition: transform .8s cubic-bezier(.19, 1, .22, 1); }
.project:hover .project__title { transform: scale(1.03); }
.story:hover .story__title { transform: translateX(8px); }
@media (hover: none) { .go { opacity: 1; transform: none; width: 48px; height: 48px; } }

.story__cover { position: absolute; inset: 0; z-index: 4; }
.story__cover:focus-visible { outline: 2px solid var(--red); outline-offset: -8px; }
.story__meta, .story__foot .tags { pointer-events: none; }
.story__foot { display: grid; gap: 18px; justify-items: start; }

/* ---------- Service tags ---------- */
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.story .tags { justify-content: flex-start; }
.tags li {
  padding: 9px 16px 8px; border-radius: 999px;
  background: rgba(236,236,236,.94); color: var(--black);
  font-size: 15px; font-weight: 500; line-height: 1.2; letter-spacing: -.005em;
  box-shadow: 0 6px 18px -10px rgba(0,0,0,.5);
}
.tags li:has(.soon) { background: rgba(0,0,0,.35); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
@media (max-width: 760px) { .tags li { font-size: 13px; padding: 7px 13px 6px; } }
@media (prefers-reduced-motion: reduce) {
  .project > .media, .story > .media, .go, .project__title, .story__title { transition: none; }
}
/* panels and stories lift their children with position: relative; these two must stay absolute */
.project > .go, .story > .go { position: absolute; z-index: 6; }
.story > .story__cover { position: absolute; inset: 0; z-index: 4; }

/* stories, like the reference: name top-left, arrow on the same line top-right, tags bottom-left */
.story__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-m); }
.story__top > .go { position: static; flex: none; margin-top: 4px; }
.story > .tags { pointer-events: none; }
.story:hover .story__top > .go, .story:focus-within .story__top > .go { opacity: 1; transform: none; }
.story:active .story__top > .go { transform: scale(.92); }

/* ---------- Homepage hero: the shader sits behind the type ---------- */
.panel > .hero-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero { background: var(--black); isolation: isolate; }

/* Footer: the brand wordmark (traced SVG, pupils are see-through so the red shows) and the Instagram link */
.footer__cols { position: relative; z-index: 1; }
.footer__logo { padding: 0 var(--gutter); }
.footer__logo img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.footer__val { display: inline-block; padding: 6px 2px; border-radius: 4px; }
.footer__val--ig { display: inline-flex; align-items: center; gap: 8px; }
.footer__val--ig .ig { flex: none; transform: translateY(-1px); }
.footer__val:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.footer__val:active { opacity: .6; }
@media (max-width: 560px) {
  .footer__cols { grid-template-columns: minmax(0, 1fr); gap: var(--space-s); }
  .footer__val { letter-spacing: .1em; overflow-wrap: anywhere; }
}
.footer__cta .cta__note { text-transform: uppercase; font-weight: 700; letter-spacing: .14em; }

/* ==========================================================================
   Phone menu: interactive hover links (js/navfx.js)
   On the desktop bar the extras are hidden and the letters read as plain text.
   ========================================================================== */
.nl__ch { display: inline-block; }
.nl__sub, .nl__img, .nl__arrow { display: none; }

@media (max-width: 860px) {
  .topbar__nav { max-height: calc(100svh - var(--bar-h)); overflow-y: auto; overflow-x: hidden; }
  .topbar__link.nl {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 0; color: var(--white);
    border-bottom: 0;
  }
  /* the row line: dim, brightens on hover */
  .topbar__link.nl::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: rgba(255,255,255,.12);
  }
  .topbar__link.nl::after {
    display: block; content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--white); opacity: 0; transform: none; transition: opacity .5s linear;
  }
  .nl__text { position: relative; z-index: 2; display: block; pointer-events: none; }
  .nl__h {
    display: block; white-space: nowrap;
    font-family: var(--font-head); font-weight: 700; font-size: clamp(30px, 9vw, 44px); line-height: 1; letter-spacing: -.02em;
    opacity: .55;
    transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), opacity .5s linear;
  }
  .nl__ch { transition: transform .55s cubic-bezier(.34, 1.56, .64, 1); }
  .nl__sub {
    display: block; margin-top: 8px;
    font-size: 14px; line-height: 1.4; color: var(--white); opacity: .55;
    transition: opacity .5s linear;
  }
  .nl__img {
    display: block; position: absolute; z-index: 1; left: 50%; top: 50%;
    width: clamp(128px, 36vw, 200px); aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 8px;
    box-shadow: 0 18px 40px -12px rgba(0,0,0,.8), 0 2px 8px rgba(215,0,0,.12);
    pointer-events: none;
    transform: translate(calc(-10% + var(--mx, 0px)), calc(-50% + var(--my, 0px))) rotate(-12.5deg) scale(0);
    transition: transform .6s cubic-bezier(.34, 1.56, .64, 1);
  }
  .nl__arrow { display: block; position: relative; z-index: 2; overflow: hidden; flex: none; pointer-events: none; }
  .nl__arrow > span { display: block; padding: 8px; opacity: 0; transform: translateX(100%); transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), opacity .35s linear; }
  .nl__arrow svg { display: block; width: 32px; height: 32px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

  /* hot: hover, keyboard focus or a finger press */
  .nl.is-hot::after { opacity: 1; }
  .nl.is-hot .nl__h { opacity: 1; transform: translateX(-16px); }
  .nl.is-hot .nl__ch { transform: translateX(16px); transition-delay: calc(.25s + var(--i) * .075s); }
  .nl.is-hot .nl__sub { opacity: 1; }
  .nl.is-hot .nl__img { transform: translate(calc(-10% + var(--mx, 0px)), calc(-50% + var(--my, 0px))) rotate(12.5deg) scale(1); }
  .nl.is-hot .nl__arrow > span { opacity: 1; transform: none; }
  .topbar__link.nl:focus-visible { outline: 1px solid var(--white); outline-offset: 4px; }
  .topbar__link.nl:active { transform: none; }
  .topbar__link.nl[aria-current="page"] .nl__h { opacity: 1; }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .nl__h, .nl__ch, .nl__img, .nl__arrow > span { transition: opacity .2s linear; }
  .nl.is-hot .nl__h, .nl.is-hot .nl__ch { transform: none; }
}
.stories__head > .stories__line:only-child { grid-column: 2; }
@media (max-width: 760px) { .stories__head > .stories__line:only-child { grid-column: auto; } }

/* What we capture: five tiles. Three squares on top, two wider tiles below, so the rows stay full. */
@media (min-width: 961px) {
  .cap-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cap-grid > .cap { grid-column: span 2; }
  .cap-grid > .cap:nth-child(4):nth-last-child(2), .cap-grid > .cap:nth-child(5):last-child { grid-column: span 3; aspect-ratio: 3 / 2; }
}
@media (max-width: 960px) {
  .cap-grid > .cap:nth-child(5):last-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
}
