/* ==========================================================================
   IMPRINT PRODUCTION
   Design tokens derived from Imprint Brand Guidelines, Phase 02 (Jan 2023).
   Brand colours are used verbatim; --ink is a derived shade of the brand
   dark (#292b2e) used as the cinema ground so the work is the light source.
   ========================================================================== */

/* ---------- Brand typeface (from guidelines: Cabrito Sans, EN) ---------- */
@font-face {
  font-family: "Cabrito Sans";
  src: url("../fonts/CabritoSans-ExtBold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Brand Arabic typeface (Imprint Arabic, SIL OFL) ----------
   The brand's Arabic face since 14 Nov 2026: Tajawal with rounded stroke
   ends, under the SIL Open Font License, which travels with it in
   assets/fonts/ImprintArabic-OFL.txt. Bahij, which the brand used before
   that, is licensed for non-commercial use only and must never be served
   from here. Only the Arabic passage asks for this face, so a browser
   fetches it on that page alone. */
@font-face {
  font-family: "Imprint Arabic";
  src: url("../fonts/ImprintArabic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Imprint Arabic";
  src: url("../fonts/ImprintArabic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand — primary */
  --blue-deep:  #0d4a72;
  --blue-light: #81adc1;
  /* Brand — secondary */
  --cream:  #edeae1;
  --sand:   #e7d7c7;
  --copper: #ba7c44;
  --ink-2:  #0a1b2b;
  /* Grounds, derived from the primary blue #0d4a72 so the site reads blue */
  --ink:    #071420;
  --ink-3:  #0c2033;
  --ink-4:  #103150;
  --hair:   rgba(129, 173, 193, 0.18);
  --hair-strong: rgba(129, 173, 193, 0.36);

  /* Type */
  --display: "Cabrito Sans", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --arabic: "Imprint Arabic", "Tajawal", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* floor lowered and the vw rate raised so the longest single word in the
     headline ('communication') still fits a 320px phone without overflow */
  --fs-display-xl: clamp(2.2rem, 9.5vw, 7.5rem);
  --fs-display-l:  clamp(2rem, 3.7vw, 3.35rem);
  --fs-display-m:  clamp(1.6rem, 3vw, 2.6rem);
  --fs-display-s:  clamp(1.25rem, 2vw, 1.6rem);
  --fs-lead:       clamp(1.02rem, 1.35vw, 1.28rem);
  --fs-body:       1rem;
  --fs-small:      0.875rem;
  --fs-mono:       0.6875rem;

  /* Space */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 144px;

  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1440px;
  /* The rhythm between sections. It used to put 260px of empty column between
     one section's last line and the next one's heading — a quarter of the
     screen, and four times the largest gap inside a section, so a short block
     like the services list read as mostly air. This lands every seam between
     195px and 232px: still unmistakably bigger than any gap within a section,
     without the page pausing for a quarter of a screen each time. */
  --section-y: clamp(64px, 7.5vw, 116px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--copper); color: var(--ink); }

/* ---------- Primitives ---------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Production-slug: the site's structural device. Borrowed from call sheets
   and slates — every unit of work carries client / format / year. */
.slug {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-light);
  font-weight: 500;
}
.slug--muted { color: rgba(237, 234, 225, 0.45); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s5);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--copper);
  flex: none;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: rgba(237, 234, 225, 0.72);
  max-width: 62ch;
  text-wrap: pretty;
}


/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  --btn-bd: var(--hair-strong);
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  padding: 15px 26px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
              border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--solid {
  --btn-bg: var(--copper);
  --btn-fg: #1a1207;
  --btn-bd: var(--copper);
  font-weight: 600;
}
.btn--solid:hover { --btn-bg: #cd8c4f; --btn-bd: #cd8c4f; }
.btn--ghost:hover { --btn-bd: var(--blue-light); --btn-fg: var(--blue-light); }
.btn__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; flex: none;
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease),
              backdrop-filter 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(7, 20, 32, 0.86);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--hair);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
/* The 2026 Symbol is portrait (249:400), not square like the old mark, so
   every instance is sized by height and lets the width follow. */
.brand__mark { width: auto; height: 34px; color: var(--cream); flex: none; }
.brand__mark svg { width: auto; height: 100%; display: block; }

/* The Signature lockup, used whole. Its English line is the smallest thing in
   it, so the height is set by what that line needs in order to stay readable,
   not by what happens to fit the bar. */
.brand__logo { display: block; width: auto; height: 42px; color: var(--cream); flex: none; }
.brand__logo svg { width: auto; height: 100%; display: block; }
.brand__logo--foot { height: 58px; }
@media (max-width: 560px) {
  .brand__logo { height: 34px; }
  .brand__logo--foot { height: 46px; }
}

.nav__links { display: flex; align-items: center; gap: var(--s6); }
.nav__link {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(237, 234, 225, 0.68);
  padding: 6px 0;
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: var(--cream); }
.nav__link:hover::after, .nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav__cta { margin-left: var(--s2); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--hair-strong);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 13px;
  width: 18px; height: 1.5px;
  background: var(--cream);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 18px; }
.nav__toggle span:nth-child(2) { top: 24px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* The full-screen menu replaced the old drop-down nav, so .nav__links stays
   inside the bar at every width. On a narrow phone the CTA pill would crowd
   the wordmark, and the menu carries Contact anyway, so only the toggle
   remains there. */
@media (max-width: 560px) {
  .nav__cta { display: none; }
}

/* ==========================================================================
   HERO — the aperture reveal.
   The frame opens through the fingerprint: the imprint is what lets you
   see the work. Built as a masked copy of the still that blooms outward,
   handing off to the full frame.
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 74px;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--ink); }
.hero__img,
.hero__aperture {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.hero__img { object-fit: cover; object-position: 62% 40%; opacity: 0; }
.hero__aperture {
  background-size: cover;
  background-position: 62% 40%;
  -webkit-mask-image: url("../brand/logo-mask.svg");
  mask-image: url("../brand/logo-mask.svg");
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center 46%; mask-position: center 46%;
  -webkit-mask-size: 0 0; mask-size: 0 0;
  opacity: 0;
}

/* The opening sequence is orchestrated in JS (Motion). CSS only sets the
   pre-roll state, and only when Motion is present to animate out of it. */
.motion-ready .hero__img { opacity: 0; }
.motion-ready .hero__reveal { opacity: 0; }

/* Colour grade over the still so type always holds. */
.hero__grade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(7,20,32,0.97) 0%, rgba(7,20,32,0.74) 34%, rgba(7,20,32,0.42) 62%, rgba(7,20,32,0.7) 100%),
    linear-gradient(to right, rgba(13,74,114,0.42) 0%, rgba(13,74,114,0) 58%);
}

.hero__body { padding-bottom: var(--s7); position: relative; }
.hero__title {
  font-size: var(--fs-display-xl);
  max-width: 15ch;
  margin-bottom: var(--s5);
}
.hero__title em { font-style: normal; color: var(--copper); }
.hero__lead { margin-bottom: var(--s6); max-width: 54ch; color: rgba(237,234,225,0.8); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }



/* Bottom rail — live proof, in call-sheet type. */
.hero__rail {
  border-top: 1px solid var(--hair);
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: var(--s5);
  align-items: center;
  padding: var(--s5) 0;
}
.rail__item { display: flex; flex-direction: column; gap: 6px; }
.rail__figure { font-family: var(--display); font-size: 1.5rem; line-height: 1; }
.hero__scroll {
  justify-self: end;
  display: flex; align-items: center; gap: var(--s3);
  color: rgba(237,234,225,0.5);
}
.hero__scroll svg { animation: nudge 2.6s var(--ease) infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

@media (max-width: 780px) {
  .hero__rail { grid-template-columns: repeat(2, 1fr); }
  .hero__scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready .hero__img,
  .motion-ready .hero__reveal { opacity: 1; }
  .hero__scroll svg { animation: none; }
}

/* ==========================================================================
   STRAP — the positioning line, given its own room
   ========================================================================== */
.strap {
  border-bottom: 1px solid var(--hair);
  background: var(--ink-3);
  padding-block: clamp(40px, 5vw, 72px);
}
.strap__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
}
.strap__line {
  font-size: clamp(1.5rem, 3.2vw, 2.75rem);
  color: var(--cream);
}
.strap__note { font-size: 1rem; }
@media (max-width: 860px) { .strap__inner { grid-template-columns: 1fr; } }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 104px); }

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: var(--s7);
  align-items: end;
  margin-bottom: var(--s8);
}
.section__title { font-size: var(--fs-display-l); }
@media (max-width: 860px) {
  .section__head { grid-template-columns: 1fr; gap: var(--s5); align-items: start; }
}

/* Reveal on scroll — Motion drives these. They stay visible unless Motion
   has actually loaded, so a failed module never leaves a blank page. */
.motion-ready .reveal { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .motion-ready .reveal { opacity: 1; }
}

/* ==========================================================================
   WORK
   ========================================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s6);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding-block: var(--s4);
}
.filter {
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(237,234,225,0.55);
  transition: color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.filter:hover, .filter:focus-visible { color: var(--copper); border-color: var(--copper); }
/* the selected one is already a copper pill — keep its label dark and readable */
.filter[aria-pressed="true"]:hover { color: #1a1207; }
.filter[aria-pressed="true"] {
  color: #1a1207;
  background: var(--copper);
  border-color: var(--copper);
  font-weight: 600;
}
.filter__count { opacity: 0.55; margin-left: 8px; }

.work__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(16px, 2vw, 28px);
  /* A 9:16 card is far taller than a 16:9 one. Without this, every card in
     its row stretches to match and the thumbnails distort. */
  align-items: start;
  /* Cards no longer all take the same number of columns, so let the browser
     pull a narrow card forward into a gap rather than leaving the row short. */
  grid-auto-flow: dense;
}
.card {
  /* Two landscape films to a row. A film at this width stands about 322px
     tall; a portrait card at one column stands about 340px, and a photograph
     at two columns about 465px — so a row of mixed work now reads as roughly
     one band instead of a tall card towering over short ones. */
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
/* .card--wide and .card--hero are gone: three cards to a row, every one the
   same width. */

.card__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-3);
  border: 1px solid var(--hair);
}
.card--still { grid-column: span 2; }
.card--still .card__frame { aspect-ratio: 4 / 5; }

/* 9:16 video in a single column, which lands it at roughly the height of the
   landscape card beside it rather than three times taller. */
.card--vertical { grid-column: span 1; }
.card--vertical .card__frame { aspect-ratio: 9 / 16; }

/* ---- The pre-rendered grid ------------------------------------------------
   tools/prerender.py writes the work into index.html and work.html as plain
   links, so a crawler, an AI assistant or a link preview that does not run
   scripts still reads the portfolio. app.js replaces them with the real
   buttons the moment it runs, so these two rules only have to hold for the
   first paint. */
a.card { text-decoration: none; color: inherit; }
/* Past the ninth card the written-in grid carries the rest of the work for a
   visitor without JavaScript. With JavaScript they are hidden immediately, so
   the page opens on the same nine cards the script is about to draw. */
.has-js .card--overflow { display: none; }

.card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.02);
  transition: transform 1.1s var(--ease-out), filter 0.6s var(--ease);
}
.card:hover .card__img, .card:focus-visible .card__img {
  transform: scale(1.045);
  filter: saturate(1.05) contrast(1.04);
}
.card__frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,20,32,0.7), rgba(7,20,32,0) 55%);
  opacity: 0.85;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.card:hover .card__frame::after { opacity: 0.55; }

.card__play {
  position: absolute;
  left: var(--s4); bottom: var(--s4);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(7,20,32,0.5);
  border: 1px solid var(--hair-strong);
  backdrop-filter: blur(6px);
  color: var(--cream);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              color 0.4s var(--ease), transform 0.4s var(--ease);
}
.card:hover .card__play, .card:focus-visible .card__play {
  background: var(--copper);
  border-color: var(--copper);
  color: #1a1207;
  transform: scale(1.06);
}
.card__dur {
  position: absolute;
  right: var(--s4); top: var(--s4);
  padding: 5px 9px;
  background: rgba(7,20,32,0.62);
  backdrop-filter: blur(6px);
  border: 1px solid var(--hair);
}
.card__meta { display: flex; flex-direction: column; gap: 7px; }
.card__client { color: var(--blue-light); }
.card__title {
  font-family: var(--display);
  font-size: var(--fs-display-s);
  line-height: 1.12;
  letter-spacing: -0.01em;
  transition: color 0.35s var(--ease);
}
.card:hover .card__title { color: var(--sand); }
.card__tags { display: flex; gap: var(--s3); flex-wrap: wrap; }

@media (max-width: 1080px) {
  /* Four columns: two films a row still, photographs two, verticals one. */
  .work__grid { grid-template-columns: repeat(4, 1fr); }
  .card { grid-column: span 2; }
  .card--still { grid-column: span 2; }
  .card--vertical { grid-column: span 1; }
}
@media (max-width: 720px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .card, .card--still { grid-column: span 2; }
  .card--vertical { grid-column: span 1; }
}

.work__more { display: flex; justify-content: center; margin-top: var(--s8); }
.work__empty {
  padding: var(--s8) 0;
  text-align: center;
  color: rgba(237,234,225,0.5);
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(7, 20, 32, 0.95);
  backdrop-filter: blur(10px);
  opacity: 0;
  /* Invisible is not the same as gone. Without these the overlay stays laid
     out on top of the page and silently eats every click. `display: grid`
     above also beats the [hidden] attribute, so restore that too. */
  visibility: hidden;
  pointer-events: none;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox__inner { width: min(1180px, 100%); }
.lightbox__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--hair);
  overflow: hidden;
}
.lightbox__stage iframe, .lightbox__stage img {
  width: 100%; height: 100%; border: 0; object-fit: contain;
}

/* A 9:16 film in the 16:9 stage would sit as a thin strip between two black
   walls. Give the player a portrait stage instead, sized from the viewport
   height so a tall video can never run off the screen. */
.lightbox--vertical .lightbox__inner { width: min(calc(78vh * 9 / 16), 92vw); }
.lightbox--vertical .lightbox__stage { aspect-ratio: 9 / 16; }
.lightbox__bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4) var(--s6);
  align-items: baseline;
  justify-content: space-between;
  padding-top: var(--s5);
}
.lightbox__title { font-family: var(--display); font-size: var(--fs-display-s); }
.lightbox__close {
  position: absolute;
  top: clamp(12px, 3vw, 28px);
  right: clamp(12px, 3vw, 28px);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--hair-strong);
  background: rgba(7,20,32,0.6);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.lightbox__close:hover { background: var(--copper); color: #1a1207; transform: rotate(90deg); }

/* ==========================================================================
   PROOF — case studies
   ========================================================================== */


/* ==========================================================================
   SERVICES
   Was a cream panel; now it sits on the same blue ground as everything else
   so the ridge field runs behind it, which means light type throughout.
   ========================================================================== */
.services { color: var(--cream); }
.services .slug { color: var(--blue-light); }
.services .lead { color: rgba(237,234,225,0.72); }
.services .eyebrow::before { background: var(--copper); }

.svc { border-top: 1px solid var(--hair); }
.svc__item {
  display: grid;
  /* tightened: the name and its description sit close enough to read as one
     thought, instead of being flung to opposite sides of a wide screen */
  grid-template-columns: 52px 148px minmax(150px, 0.7fr) minmax(0, 1.1fr) 42px;
  gap: var(--s5);
  align-items: center;
  padding-block: clamp(18px, 2.2vw, 28px);
  border-bottom: 1px solid var(--hair);
  transition: background 0.5s var(--ease), padding-inline 0.5s var(--ease);
}
.svc__item:hover { background: rgba(129,173,193,0.09); padding-inline: var(--s5); }
.svc__idx { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.18em; color: var(--blue-light); padding-top: 8px; }
.svc__name { font-family: var(--display); font-size: clamp(1.25rem, 1.9vw, 1.7rem); line-height: 1.1; letter-spacing: -0.01em; }
/* The still for each service. It used to exist only as a card that trailed the
   pointer, which meant nobody on a phone ever saw it — and the services page
   had no photograph on it at all. It belongs in the row. */
.svc__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--hair);
  background: var(--ink-3);
}
.svc__thumb img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.03);
  transition: transform 0.6s var(--ease), filter 0.5s var(--ease);
}
.svc__item:hover .svc__thumb img { transform: scale(1.04); filter: saturate(1) contrast(1.05); }
.svc__list { display: flex; flex-wrap: wrap; gap: 6px; }
.svc__list li {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 11px;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  color: rgba(237,234,225,0.68);
}
.svc__go {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--hair-strong);
  display: grid; place-items: center;
  flex: none;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
              border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.svc__item:hover .svc__go {
  background: var(--blue-light); border-color: var(--blue-light);
  color: var(--ink); transform: rotate(-45deg);
}
@media (max-width: 1000px) {
  .svc__item { grid-template-columns: 56px 1fr; gap: var(--s4) var(--s5); align-items: start; }
  .svc__thumb { grid-column: 2; max-width: 320px; }
  .svc__name, .svc__list { grid-column: 2; }
  .svc__go { display: none; }
}
/* On a phone, the index column was taking a sixth of the screen away from the
   photograph. The number becomes a line of its own and the still runs edge to
   edge, which is the whole point of putting it there. */
@media (max-width: 560px) {
  .svc__item { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .svc__idx, .svc__thumb, .svc__name, .svc__list { grid-column: 1; }
  .svc__thumb { max-width: none; aspect-ratio: 16 / 9; }
  .svc__list { margin-top: var(--s2); }
}

/* --------------------------------------------------------------------------
   The compact list, used on the homepage only.

   The homepage is not the services page; it is a signpost to it. Carrying the
   full rhythm and every tag list there made the four services the tallest
   thing between the hero and the work, which is the wrong way round — the work
   is what anyone came to see. Here the row keeps its still and its name and
   nothing else, and the button underneath goes to the page that has the rest.
   -------------------------------------------------------------------------- */
.svc--compact .svc__list,
.svc--compact .svc__thumb { display: none; }
.svc--compact .svc__item {
  grid-template-columns: 52px minmax(0, 1fr) 32px;
  padding-block: clamp(10px, 1.2vw, 15px);
  align-items: center;
}
/* The arrow disc, not the type, was setting how tall each row stood. */
.svc--compact .svc__go { width: 30px; height: 30px; }
.svc--compact .svc__idx { padding-top: 0; }
.svc--compact .svc__name { font-size: clamp(1.1rem, 1.5vw, 1.35rem); }

@media (max-width: 560px) {
  .svc--compact .svc__item { grid-template-columns: 52px minmax(0, 1fr); gap: var(--s4); }
  .svc--compact .svc__idx { display: block; }
  .svc--compact .svc__name { grid-column: 2; }
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: clamp(32px,5vw,88px); align-items: start; }
@media (max-width: 940px) { .about { grid-template-columns: 1fr; } }

.definition {
  border-left: 2px solid var(--copper);
  padding-left: clamp(20px, 3vw, 40px);
  margin-bottom: var(--s7);
}
.definition__word { display: flex; align-items: baseline; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s4); }
.definition__term { font-family: var(--display); font-size: var(--fs-display-m); }
.definition__ar {
  font-size: var(--fs-display-m);
  color: var(--blue-light);
  font-family: var(--body);
  direction: rtl;
}
.definition__body { font-size: var(--fs-lead); color: var(--sand); line-height: 1.55; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
/* Three stats in two columns leaves one on its own; let it run the full width
   rather than sit next to a gap. */
.stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.stat { background: var(--ink); padding: clamp(20px,2.6vw,32px); display: flex; flex-direction: column; gap: 8px; }
.stat__num { font-family: var(--display); font-size: clamp(2rem,4vw,3.1rem); line-height: 0.95; color: var(--cream); }
.stat__num span { color: var(--copper); }

/* Behind the scenes — two frames from the profile, shown as a contact strip */
.bts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  margin-top: var(--s7);
}
/* bts3 is a wide frame, so it runs the full width under the two square ones */
.bts__wide { grid-column: 1 / -1; aspect-ratio: 2 / 1 !important; }
.bts img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--hair);
  filter: saturate(0.85) contrast(1.03);
  transition: filter 0.5s var(--ease);
}
.bts img:hover { filter: saturate(1) contrast(1.05); }

/* Founder */
.founder-card {
  margin-top: var(--s6);
  border: 1px solid var(--hair);
  background:
    linear-gradient(160deg, rgba(186,124,68,0.16), rgba(41,43,46,0) 58%),
    var(--ink-3);
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
}
.founder-card__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.founder-card__body { padding: clamp(22px, 2.8vw, 34px); }
.founder-card__name { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
@media (max-width: 620px) {
  .founder-card { grid-template-columns: 1fr; }
  .founder-card__img { aspect-ratio: 4 / 3; object-position: 50% 18%; }
}

/* ==========================================================================
   AWARD MEDALLIONS
   Each festival's own laurel sits in a disc. Hover or focus opens it and
   pushes out a concentric ring — the fingerprint's ridges, borrowed.
   ========================================================================== */
.awards {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 2.6vw, 40px) clamp(14px, 2.2vw, 34px);
  padding-top: var(--s6);
  border-top: 1px solid var(--hair);
}

.medal {
  position: relative;
  z-index: 1;
  width: clamp(84px, 8.4vw, 116px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: default;
  outline: none;
}

.medal__disc {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink-3);
  border: 1px solid var(--hair);
  /* transform is owned by Motion (spring); CSS only handles colour here */
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
}
.medal__disc img {
  width: 74%;
  height: 74%;
  object-fit: contain;
  opacity: 0.72;
  transition: opacity 0.45s var(--ease), transform 0.5s var(--ease-out);
}

/* the ridge that pushes out on hover */
.medal__ring {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--copper);
  opacity: 0;
  pointer-events: none;
}

.medal__year {
  color: rgba(237, 234, 225, 0.4);
  transition: color 0.4s var(--ease);
}

/* Detail card, revealed on hover / focus */
.medal__card {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 5;
  width: max(210px, 100%);
  transform: translate(-50%, 8px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--s4);
  background: rgba(7, 20, 32, 0.97);
  border: 1px solid var(--hair-strong);
  backdrop-filter: blur(8px);
  text-align: center;
  opacity: 0;
  /* display:none, not visibility:hidden — a hidden card still occupies layout,
     and the ones near the right edge were widening the whole page on mobile */
  display: none;
}
.medal__name {
  font-family: var(--display);
  font-size: 0.95rem;
  line-height: 1.2;
}
.medal__fest { font-size: 0.78rem; color: rgba(237, 234, 225, 0.58); line-height: 1.4; }
.medal__kind[data-kind="Winner"] { color: var(--copper); }

/* Open state — hover, focus, or focus inside */
.medal.is-open .medal__disc {
  background: var(--ink-2);
  border-color: var(--hair-strong);
}
.medal.is-open .medal__disc img { opacity: 1; }

.medal.is-open .medal__ring { animation: ridgePulse 1.4s var(--ease-out) infinite; }
@keyframes ridgePulse {
  0%   { opacity: 0.85; transform: scale(1); }
  100% { opacity: 0;    transform: scale(1.55); }
}

.medal.is-open .medal__year { color: var(--copper); }

.medal.is-open .medal__card {
  display: flex;
  opacity: 1;
  transform: translate(-50%, 0);
}
.medal:focus-visible .medal__disc { outline: 2px solid var(--copper); outline-offset: 4px; }

/* Cards near an edge flip inward. The class is set in JS from a real
   measurement, because which medal is rightmost changes as the row wraps. */
.medal.flip-right .medal__card { left: auto; right: 0; transform: translate(0, 8px); }
.medal.flip-right.is-open .medal__card { transform: translate(0, 0); }
.medal.flip-left .medal__card { left: 0; right: auto; transform: translate(0, 8px); }
.medal.flip-left.is-open .medal__card { transform: translate(0, 0); }

@media (prefers-reduced-motion: reduce) {
  .medal.is-open .medal__ring { animation: none; opacity: 0; }
}

@media (max-width: 520px) {
  .awards { gap: 20px 14px; justify-content: space-between; }
  .medal { width: calc(33.333% - 10px); }
  .medal__card { width: 190px; }
  .medal:nth-child(3n) .medal__card { left: auto; right: 0; transform: translate(0, 8px); }
  .medal:nth-child(3n).is-open .medal__card { transform: translate(0, 0); }
}


/* hovered / focused medal sits above every other row */
.medal:hover, .medal:focus-visible, .medal:focus-within, .medal.is-open { z-index: 20; }

/* ==========================================================================
   PLAY CURSOR — the pointer becomes the play control over the work grid
   ========================================================================== */
.playcursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 150;
  width: 62px; height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--copper);
  color: #1a1207;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}
.playcursor.is-still { background: var(--blue-light); }
.playcursor.is-still svg { display: none; }
.playcursor.is-still::after {
  content: "VIEW";
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  color: #10222b;
}



/* ==========================================================================
   CONTACT
   ========================================================================== */
/* A flat tone step, not a gradient wash: the panel should read as a different
   surface, which a step in tone does and a fade does not. */
.contact {
  position: relative;
  isolation: isolate;
  background: var(--ink-3);
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -14%;
  top: -26%;
  width: min(900px, 76vw);
  aspect-ratio: 1;
  background: url("../brand/echo-tile.svg") center / contain no-repeat;
  opacity: 0.4;
  pointer-events: none;
}
.contact__watermark { display: none; }
/* The form had a column of contact details beside it taking a third of the
   width for facts nobody reads before they have written their message. The
   details now sit under the form in small print, the way a footer carries the
   same information, and the form gets the room. Capped so the inputs stay a
   comfortable length to read across rather than running the full width. */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 880px;
  position: relative;
}

.details { display: flex; flex-direction: column; gap: var(--s6); }
.detail { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--hair); padding-top: var(--s4); }
.detail__value { font-family: var(--display); font-size: 1.18rem; line-height: 1.3; transition: color 0.3s var(--ease); word-break: break-word; }
a.detail__value:hover { color: var(--copper); }
.detail__note { font-size: var(--fs-small); color: rgba(237,234,225,0.55); }

/* The same details, set as a footnote strip under the form. */
.details--footnote {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--s5) var(--s6);
  margin-top: var(--s8);
  padding-top: var(--s5);
  border-top: 1px solid var(--hair);
}
.details--footnote .detail { border-top: none; padding-top: 0; gap: 5px; }
.details--footnote .detail__value {
  font-family: var(--body);
  font-size: var(--fs-small);
  line-height: 1.65;
  color: rgba(237, 234, 225, 0.72);
}
.details--footnote a.detail__value { width: fit-content; }
.details--footnote .detail__note { font-size: 0.75rem; line-height: 1.5; }

/* Form */
.form { display: grid; gap: var(--s5); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 9px; position: relative; }
/* The form is the one thing this section exists for, so it is the one place
   nothing is allowed to be faint. The labels were 11px uppercase mono tracked
   at 0.16em and set at 62% — legible in theory, squinted at in practice. */
.field__label {
  font-family: var(--body);
  /* Set to meet the lead sentence above the form: these are the questions
     being asked, so they read at the size of a sentence, not a caption. */
  font-size: 1.0625rem;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(237,234,225,0.86);
}
.field__label span { color: var(--copper); }
.field__input {
  /* A darker well than the panel it sits in, and a border strong enough to
     count as a control: the old 18% hairline measured 1.4:1 against the
     background, under the 3:1 a UI boundary needs to be seen at all. */
  background: rgba(4,12,20,0.88);
  border: 1px solid rgba(129,173,193,0.6);
  border-radius: 0;
  padding: 14px 16px;
  color: var(--cream);
  /* 16px is also the point below which iOS zooms the page in on focus. */
  font-size: 1rem;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
  width: 100%;
}
/* Was 30% — 2.4:1, below the 4.5:1 AA floor. This is the text that tells
   someone what to type, so it is the last thing that should be whispered. */
.field__input::placeholder { color: rgba(237,234,225,0.56); }
.field__input:hover { border-color: rgba(129,173,193,0.8); }
.field__input:focus {
  outline: none;
  border-color: var(--blue-light);
  background: rgba(7,20,32,0.85);
}
.field__input:focus-visible { outline: none; }
textarea.field__input { resize: vertical; min-height: 132px; line-height: 1.6; }
select.field__input {
  appearance: none;
  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 1l5 5 5-5' stroke='%2381adc1' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}
select.field__input option { background: var(--ink-2); color: var(--cream); }

.field.is-invalid .field__input { border-color: #d97757; }
.field__error {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  color: #e08a6b;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.field.is-invalid .field__error { opacity: 1; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__foot { display: flex; flex-wrap: wrap; gap: var(--s5); align-items: center; justify-content: space-between; }
.form__note { font-size: var(--fs-small); color: rgba(237,234,225,0.5); max-width: 40ch; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.form__status {
  border: 1px solid var(--hair);
  border-left: 2px solid var(--copper);
  padding: var(--s4) var(--s5);
  font-size: var(--fs-small);
  display: none;
}
.form__status.is-shown { display: block; }
.form__status.is-ok { border-left-color: var(--blue-light); }
.form__status.is-err { border-left-color: #d97757; }

/* Sent state */
.sent { display: none; flex-direction: column; gap: var(--s5); border: 1px solid var(--hair); padding: clamp(28px,4vw,48px); background: rgba(7,20,32,0.5); }
.sent.is-shown { display: flex; }
.sent__mark { width: auto; height: 62px; color: var(--copper); }
.sent__mark svg { width: auto; height: 100%; display: block; }
.sent__title { font-family: var(--display); font-size: var(--fs-display-m); }

/* ==========================================================================
   SCROLL PROGRESS
   ========================================================================== */
.nav__progress {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
  z-index: 2;
}

/* ==========================================================================
   BRAND RULE — hairline, mark, hairline. The divider carries the mark too.
   ========================================================================== */
.rule {
  display: flex;
  align-items: center;
  gap: var(--s5);
}
.rule__line { flex: 1; height: 1px; background: var(--hair); }
.rule__mark {
  width: auto; height: 24px;
  flex: none;
  color: var(--blue-light);
  opacity: 0.5;
}
.rule__mark svg { width: auto; height: 100%; display: block; }
.services + .rule .rule__mark,
.rule + .services { }

/* ==========================================================================
   CASE STUDIES — now openable
   ========================================================================== */

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid var(--hair);
  padding-block: var(--s8) var(--s7);
  background: var(--ink);
}
/* Echo — the 2026 brand pattern. The tile already carries its own low opacity,
   so it is placed once at a large size rather than tiled small, and faded out
   towards the top so it never competes with the closing line. */
.footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -6%;
  bottom: -34%;
  width: min(780px, 82vw);
  aspect-ratio: 1;
  background: url("../brand/echo-tile.svg") center / contain no-repeat;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to top, #000 42%, transparent 92%);
  mask-image: linear-gradient(to top, #000 42%, transparent 92%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .footer::before { will-change: auto; }
}

.footer__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5);
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--s8);
  border-bottom: 1px solid var(--hair);
}
.footer__cta-line { font-size: clamp(1.6rem, 3.4vw, 2.9rem); }

/* Three columns, not four. The Services and Explore lists that used to sit
   here only repeated the main menu; the footer now carries what the menu
   cannot — how to reach the studio and where it is. */
.footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 72px);
  padding-block: var(--s8);
}
.footer__col { display: flex; flex-direction: column; gap: var(--s4); }
.footer__blurb { color: rgba(237, 234, 225, 0.55); font-size: var(--fs-small); max-width: 34ch; line-height: 1.7; }
.footer__list { display: flex; flex-direction: column; gap: 10px; }
.footer__list a {
  color: rgba(237, 234, 225, 0.72);
  font-size: 0.9375rem;
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.footer__list a:hover { color: var(--copper); padding-left: 5px; }
.footer__social { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s5); }
/* The mark sits with its name rather than replacing it: an icon alone is a
   guess, and a guess is not a link anyone is sure of. */
.sico { flex: none; }
.footer__social a, .detail__social { display: inline-flex; align-items: center; gap: 8px; }
.footer__social a {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(237, 234, 225, 0.72);
  border-bottom: 1px solid var(--hair-strong);
  padding-bottom: 4px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.footer__social a:hover { color: var(--copper); border-color: var(--copper); }
.footer__addr { color: rgba(237, 234, 225, 0.45); font-size: var(--fs-small); line-height: 1.7; margin-top: var(--s2); }
.footer__addr--lead { color: rgba(237, 234, 225, 0.72); margin-top: 0; }

/* On the two pages that already carry the contact panel, the footer sat one
   screen below it asking the same question and reprinting the same email,
   phone and address. The panel is the real invitation; here the footer stands
   down to the brand and the legal line. */
.footer--after-contact .footer__cta,
.footer--after-contact .footer__cols > .footer__col:not(:first-child) { display: none; }
.footer--after-contact .footer__cols { grid-template-columns: minmax(0, 1fr); padding-block: var(--s7); }
.footer--after-contact .footer__blurb { max-width: 46ch; }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4) var(--s6);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s5);
  border-top: 1px solid var(--hair);
}
.footer__legal { color: rgba(237, 234, 225, 0.4); }

@media (max-width: 900px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  /* the brand block reads better across the full width once it wraps */
  .footer__cols > .footer__col:first-child { grid-column: 1 / -1; }
  .footer::before { width: min(560px, 90vw); bottom: -30%; }
}
@media (max-width: 560px) {
  .footer__cols { grid-template-columns: 1fr; gap: var(--s6); }
}

/* Skip link */
.skip {
  position: absolute;
  left: var(--gutter); top: -100px;
  z-index: 300;
  background: var(--copper);
  color: #1a1207;
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: top 0.3s var(--ease);
}
.skip:focus { top: 12px; }

body.is-locked { overflow: hidden; }

/* ==========================================================================
   MOBILE POLISH
   ========================================================================== */
@media (max-width: 560px) {
  .hero__title { line-height: 0.98; }
  .hero__lead { font-size: 1rem; line-height: 1.55; }
  .hero__actions { gap: var(--s2); }
  .hero__actions .btn { flex: 1 1 140px; justify-content: center; padding: 14px 18px; letter-spacing: 0.1em; }
  .hero__rail { gap: var(--s4); padding-block: var(--s4); }
  .rail__figure { font-size: 1.3rem; }
  .filters { gap: 6px; padding-block: var(--s3); }
  .filter { padding: 8px 13px; letter-spacing: 0.1em; }
  .clients li::after { margin-left: var(--s4); }
  .bts { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CLIENT LOGO WALL
   Client marks sit on their own white plates so no brand gets recoloured.
   ========================================================================== */
.logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: clamp(8px, 1vw, 14px);
}
.logo {
  background: #fff;
  border-radius: 2px;
  padding: clamp(12px, 1.4vw, 18px);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.logo img {
  /* Every logo file is trimmed to its mark and re-padded into one shared
     720x370 canvas, so each brand already sits at the right optical weight.
     The box therefore takes the canvas's own ratio instead of a vw height:
     a fixed height made the box 1.95:1 on a wide screen but 3.19:1 on a
     narrow one, which shrank every mark at the sizes in between. `contain`
     is kept as a guarantee that nothing is ever cropped. */
  width: 100%;
  aspect-ratio: 640 / 329;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  /* The files now carry pure white, so the marks need no blend mode to hide
     scanned card stock, and no wash to hold them back. They read as printed. */
}
.logo:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,0.34); }

.logos__more {
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid var(--hair);
  color: rgba(237, 234, 225, 0.5);
  font-size: var(--fs-small);
  line-height: 1.9;
}
.logos__more .slug { margin-right: var(--s3); }

@media (max-width: 520px) {
  .logos { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   THE JOURNEY — shared narrative devices
   --------------------------------------------------------------------------
   The site is structured like a film, because that is the craft being sold.
   Sections are scenes; each opens on a slate; a perforation rail runs the
   length of the page so the whole thing reads as a strip of film.
   ========================================================================== */

/* ---------- Act spacing ---------- */
.act { position: relative; padding-block: var(--section-y); }
/* A short answer does not need a whole screen of air around it. */
.act--tight { padding-block: calc(var(--section-y) * 0.42); }

/* ---------- Running text ---------------------------------------------------
   The reset at the top of this file strips every margin and list marker,
   which is right for sections built out of components and wrong for a
   passage meant to be read. These passages are written straight into the
   HTML rather than drawn from data.js, so that a search engine or an AI
   assistant reads them without running a script. */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: var(--s4); }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.2;
  margin-top: var(--s7);
  color: var(--cream);
}
.prose h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.2;
  margin-top: var(--s6);
  color: var(--cream);
}
.prose p, .prose li {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(237, 234, 225, 0.72);
  text-wrap: pretty;
}
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: var(--s3); }
.prose li::marker { color: rgba(186, 124, 68, 0.95); }
.prose strong { color: var(--cream); font-weight: 600; }
.prose a { color: var(--copper); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover, .prose a:focus-visible { color: var(--cream); }

/* The Arabic passage. dir="rtl" on its wrapper turns the direction around;
   these give it the brand's Arabic face and the extra line height the script
   needs to stay comfortable. */
.prose--ar { font-family: var(--arabic); max-width: 72ch; }
.prose--ar h2, .prose--ar h3 { font-family: var(--arabic); font-weight: 700; }
.prose--ar p, .prose--ar li { font-size: 1.125rem; line-height: 1.95; }

/* ---------- 01 · THE BRIEF ---------- */
.brief { min-height: 190vh; position: relative; }
.brief__pin {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: var(--s6);
}
.brief__line {
  font-family: var(--display);
  font-size: clamp(2rem, 5.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.brief__line b { font-weight: 700; color: var(--copper); }
.brief__word { opacity: 0.3; transition: opacity 0.25s var(--ease); }
.brief__word.lit { opacity: 1; }
.brief__foot { max-width: 46ch; }
@media (max-width: 700px) { .brief { min-height: auto; } .brief__pin { position: static; min-height: 0; padding-block: var(--s8); } }

/* ---------- 02 · WHAT WE MAKE (pinned sequence) ---------- */
.stack { position: relative; }
.stack__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
}
.stack__panes { position: relative; height: clamp(280px, 46vh, 460px); }
.stack__pane {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s5);
  opacity: 0;
  visibility: hidden;
}
.stack__pane.is-live { opacity: 1; visibility: visible; }
.stack__idx { color: var(--copper); }
.stack__name {
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.stack__copy { max-width: 42ch; }
.stack__figs { position: relative; height: 100%; min-height: 260px; }
.stack__fig {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid var(--hair);
  opacity: 0;
  visibility: hidden;
}
.stack__fig.is-live { opacity: 1; visibility: visible; }
.stack__fig img { width: 100%; height: 100%; object-fit: cover; }

.stack__rail { display: flex; gap: 8px; margin-top: var(--s6); }
.stack__tick {
  height: 2px; flex: 1;
  background: var(--hair);
  position: relative; overflow: hidden;
}
.stack__tick i {
  position: absolute; inset: 0;
  background: var(--copper);
  transform: scaleX(0); transform-origin: left;
}
@media (max-width: 860px) {
  .stack { min-height: auto !important; }
  .stack__pin { position: static; height: auto; grid-template-columns: 1fr; padding-block: var(--s7); }
  .stack__panes { height: auto; }
  .stack__pane { position: static; opacity: 1; visibility: visible; padding-block: var(--s6); border-top: 1px solid var(--hair); }
  .stack__figs { display: none; }
  .stack__rail { display: none; }
}

/* ---------- 03 · THE WORK (horizontal reel) ---------- */
.reel { position: relative; background: var(--ink); }
.reel__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.reel__track {
  display: flex;
  gap: clamp(18px, 2.4vw, 40px);
  padding-inline: var(--gutter);
  will-change: transform;
}
.reel__card {
  flex: none;
  width: clamp(260px, 30vw, 460px);
  background: none; border: 0; padding: 0; text-align: left;
  color: inherit; cursor: pointer;
  display: flex; flex-direction: column; gap: var(--s4);
}
.reel__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--hair);
  background: var(--ink-3);
}
.reel__frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.55) contrast(1.02);
  transition: filter 0.6s var(--ease), transform 1s var(--ease-out);
}
.reel__card:hover .reel__frame img,
.reel__card:focus-visible .reel__frame img { filter: saturate(1); transform: scale(1.04); }
.reel__meta { display: flex; flex-direction: column; gap: 6px; }
.reel__title { font-family: var(--display); font-size: 1.1rem; line-height: 1.15; }
.reel__end {
  flex: none;
  width: clamp(260px, 26vw, 380px);
  display: grid; align-content: center; gap: var(--s5);
}
@media (max-width: 860px) {
  .reel { min-height: auto !important; }
  .reel__pin { position: static; height: auto; padding-block: var(--s7); }
  .reel__track {
    transform: none !important;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: var(--s4);
  }
  .reel__card { width: auto; }
  .reel__end { grid-column: span 2; width: auto; }
}
@media (max-width: 560px) {
  .reel__track { grid-template-columns: 1fr; }
  .reel__end { grid-column: span 1; }
}

/* ---------- Cold open: the reel, when one exists ---------- */

/* ---------- Sub-page top spacing (no full-bleed hero above) ---------- */
.page-top { padding-top: calc(74px + var(--section-y)); }

/* ---------- Process ladder (services page) ---------- */
.ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.ladder__step { background: var(--ink); padding: clamp(20px, 2.6vw, 32px); display: flex; flex-direction: column; gap: var(--s3); }
.ladder__name { font-family: var(--display); font-size: 1.15rem; line-height: 1.15; }
.ladder__step p { color: rgba(237,234,225,0.68); font-size: 0.95rem; line-height: 1.6; }

/* ---------- Reduced motion: un-pin the cinematic scenes entirely ---------- */
.motion-off .stack__pin { position: static; height: auto; grid-template-columns: 1fr; padding-block: var(--s7); }
.motion-off .stack__panes { height: auto; }
.motion-off .stack__pane { position: static; opacity: 1; visibility: visible; padding-block: var(--s6); border-top: 1px solid var(--hair); }
.motion-off .stack__figs, .motion-off .stack__rail { display: none; }
.motion-off .reel__pin { position: static; height: auto; padding-block: var(--s7); }
.motion-off .reel__track { transform: none !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s4); }
.motion-off .reel__card, .motion-off .reel__end { width: auto; }

/* ==========================================================================
   ECHO — the brand pattern, used on surfaces rather than as wallpaper
   --------------------------------------------------------------------------
   This replaced a canvas that redrew 34 wobbling rings on every animation
   frame to approximate a fingerprint. Two things were wrong with it: it was
   an imitation of a mark the brand already owns properly, and it ran behind
   every line of type on the site, where any pattern fights the reading.

   Echo is the real artwork and it appears only where a surface invites it:
   the closing footer and the contact panel. Elsewhere the ground stays flat,
   which is what lets those two moments register at all.
   ========================================================================== */

body > header, body > main, body > footer { position: relative; z-index: 1; }

/* Every dark section sits on the flat ground */
.act, .hero, .brief, main > section { background: transparent; }
.contact { background: var(--ink-2); }

/* ==========================================================================
   FULL-SCREEN MENU
   ========================================================================== */
.nav__toggle { display: block; }          /* the menu is the nav at every size */
.nav__links--inline { display: none; }

.menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: linear-gradient(160deg, #0a2033 0%, #071420 60%);
  display: grid;
  /* `safe` matters on a short screen: once the list is taller than the
     viewport, plain `center` pushes its top above the scroll origin, where it
     can never be scrolled back into view. `safe` falls back to start. */
  align-content: safe center;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* The menu covers the page, so the nav has to climb above it — otherwise the
   toggle, which is the X that closes the menu, sits underneath the panel and
   cannot be clicked. Escape still worked; the mouse had no way out. */
body.is-locked .nav { z-index: 96; }

.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; visibility: visible; }
.menu__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(90px, 12vh, 150px);
}
@media (max-width: 780px) { .menu__grid { grid-template-columns: 1fr; gap: var(--s7); } }

.menu__group { display: flex; flex-direction: column; gap: var(--s4); }
.menu__label { margin-bottom: var(--s2); }

.menu__pages { display: flex; flex-direction: column; }
.menu__page {
  font-family: var(--display);
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  padding-block: clamp(6px, 1vw, 12px);
  color: var(--cream);
  position: relative;
  width: fit-content;
  transition: color 0.35s var(--ease), padding-left 0.45s var(--ease-out);
}
.menu__page::after {
  content: "";
  position: absolute; left: 0; bottom: 8px;
  width: 100%; height: 2px;
  background: var(--copper);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.menu__page:hover, .menu__page:focus-visible { color: var(--sand); padding-left: 18px; }
.menu__page:hover::after, .menu__page:focus-visible::after { transform: scaleX(1); }
.menu__page[aria-current="page"] { color: var(--blue-light); }

.menu__jumps { display: flex; flex-direction: column; gap: 2px; }
.menu__jump {
  display: flex;
  align-items: baseline;
  gap: var(--s4);
  padding: 13px 0;
  border-bottom: 1px solid var(--hair);
  color: rgba(237, 234, 225, 0.8);
  transition: color 0.3s var(--ease), padding-left 0.35s var(--ease);
}
.menu__jump:hover, .menu__jump:focus-visible { color: var(--copper); padding-left: 8px; }
.menu__jump b { font-weight: 500; }

.menu__foot {
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6);
  padding-top: var(--s6); margin-top: var(--s6);
  border-top: 1px solid var(--hair);
}
.menu__foot a { color: rgba(237,234,225,0.7); transition: color 0.3s var(--ease); }
.menu__foot a:hover { color: var(--copper); }

body.is-locked { overflow: hidden; }

/* ==========================================================================
   AWARDS — given real prominence
   ========================================================================== */
.awards-band {
  border: 1px solid var(--hair);
  background:
    radial-gradient(120% 140% at 15% 0%, rgba(13,74,114,0.55), rgba(7,20,32,0) 62%),
    var(--ink-3);
  padding: clamp(28px, 4vw, 60px);
}
.awards-band__head {
  display: flex; flex-wrap: wrap; gap: var(--s5) var(--s8);
  align-items: baseline; justify-content: space-between;
  padding-bottom: var(--s6); margin-bottom: var(--s7);
  border-bottom: 1px solid var(--hair);
}
.awards-band__count {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.86;
  color: var(--cream);
}
.awards-band__count span { color: var(--copper); }

.awards { border-top: 0; padding-top: 0; gap: clamp(24px, 3vw, 46px) clamp(18px, 2.4vw, 34px); }
.medal { width: clamp(104px, 10vw, 144px); }

/* Thirteen laurels, set as seven over six. Left to wrap on their own they fell
   6 / 6 / 1 and stranded a single medal on a row of its own. A fixed count is
   the only way to decide where the row breaks. */
.awards { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); justify-items: center; }
.medal { width: 100%; max-width: 144px; }
/* Thirteen divides into no row count evenly, so away from the desktop grid the
   laurels wrap freely and centre: a short last row then reads as placed rather
   than as a hole at the right-hand end. */
@media (max-width: 1100px) {
  .awards { display: flex; flex-wrap: wrap; justify-content: center; }
  .medal { width: clamp(66px, 17.5vw, 120px); max-width: none; }
}
.medal__disc { background: rgba(7,20,32,0.55); border-color: var(--hair-strong); }
.medal__disc img { width: 82%; height: 82%; opacity: 0.95; }   /* laurels read clearly at rest */
.medal__year { color: var(--blue-light); }

/* ---------- Hero showreel, playing silently behind the cold open ---------- */
.hero__reelframe {
  position: absolute; inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
  pointer-events: none;
}
.hero__reelframe.is-live { opacity: 1; }
/* The reel sits ON TOP of the still rather than hiding it. If the embed is
   blocked or never loads, the photograph is simply still there. */
.hero__reelframe { z-index: 2; }
.hero__img { z-index: 1; }
.hero__aperture { z-index: 3; }
.hero__reelframe iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;            /* 16:9 cover */
  min-height: 100vh; min-width: 177.78vh;
  /* scaled up so YouTube's title bar and end-cards sit outside the frame */
  transform: translate(-50%, -50%) scale(1.35);
  border: 0;
}

/* ---------- The brief line ---------- */
.brief__line {
  font-size: clamp(1.9rem, 4.6vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-top: var(--s5);
}
.brief__line b { font-weight: 700; color: var(--copper); }
.brief__word { opacity: 0.22; transition: opacity 0.5s var(--ease); }
.brief__word.lit { opacity: 1; }
.motion-off .brief__word { opacity: 1; }

/* ==========================================================================
   ACCESSIBILITY PASS
   ========================================================================== */

/* WCAG 2.2 Target Size: interactive text needs at least 24x24 CSS px.
   Footer links were 19px tall. */
.footer__list { gap: 2px; }
.footer__list a { display: inline-block; padding-block: 7px; }
.footer__links a { display: inline-block; padding-block: 6px; }
.hero__scroll { padding-block: 6px; }
.menu__foot a { display: inline-block; padding-block: 6px; }

/* Award detail was reachable by hover or keyboard only, so a touch user got
   nothing. On coarse pointers the disc is tapped open instead. */
@media (hover: none) {
  .medal { cursor: pointer; }
  .medal__card { width: min(240px, 78vw); }
}
