/* ================= FONTS ================= */
@font-face {
  font-family: "Creato Display";
  src: url("../assets/fonts/CreatoDisplay-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Creato Display";
  src: url("../assets/fonts/CreatoDisplay-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Stretch Pro";
  src: url("../assets/fonts/StretchPro.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

/* ================= TOKENS ================= */
:root {
  --c-light: #F5F5F7;
  --c-dark: #000000;

  --f-body: "Creato Display", system-ui, sans-serif;
  --f-display: "Stretch Pro", "Creato Display", sans-serif;

  --pad-x: clamp(16px, 1.4vw, 28px);
  --nav-h: 56px;
  --nav-fs: 13px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ================= BASE ================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-width: none; /* hide the scrollbar (Firefox); page still scrolls */
}
html::-webkit-scrollbar { display: none; } /* Chrome, Safari, Edge */
body {
  font-family: var(--f-body);
  font-weight: 500;
  background: var(--c-light);
  color: var(--c-dark);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.dot {
  width: 0.62em; height: 0.62em;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}

/* ================= NAV ================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  /* transparent overlay: difference blend keeps it readable on light and dark */
  color: var(--c-light);
  mix-blend-mode: difference;
  font-size: var(--nav-fs);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.nav__links { display: flex; gap: clamp(32px, 6vw, 112px); }
.nav__links a,
.nav__cta { position: relative; }

/* underline hover */
.nav__links a::after,
.nav__cta::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__links a:hover::after,
.nav__cta:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta::after { left: 1.4em; }

/* Logo height = cap height of the nav text, so everything lines up */
.nav__logo { display: block; }
.nav__logo img {
  height: 0.76em;
  width: auto;
}

.nav__right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(32px, 6vw, 112px);
}
.nav__time { font-variant-numeric: tabular-nums; }
.nav__cta { display: inline-flex; align-items: center; gap: 0.8em; }

/* Mobile toggle */
/* ================= HERO ================= */
/* Layout: the phone sits in the middle; everything else lives in the
   left/right columns around it, so nothing covers the mockup. */
.hero {
  --hole: 26vw; /* width kept clear for the phone */
  --p: 0;       /* 0 → 1 as Selected Work slides over the hero (set in main.js) */
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: #000; /* matches the mockup background */
  color: var(--c-light);
}
/* image sits in a smaller centred window and fades out on every side */
.hero__media {
  transform: scale(calc(1 - var(--p) * .12));
  opacity: calc(1 - var(--p) * .7);
  position: absolute;
  top: var(--nav-h);
  bottom: 4svh;
  left: 20vw;
  right: 20vw;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 10%, #000 74%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 10%, #000 74%, transparent 100%);
          mask-composite: intersect;
}
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 52% 45%;
  animation: heroImg 1.6s var(--ease) both;
}

.hero__grid {
  transform: translateY(calc(var(--p) * -6svh));
  opacity: calc(1 - var(--p) * 1.4);
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr var(--hole) 1fr;
  grid-template-rows: 1fr auto 1fr auto;
  padding: var(--nav-h) var(--pad-x) var(--pad-x);
}

/* left: quick facts */
.hero__stats {
  grid-column: 1; grid-row: 2;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 3vw, 56px);
  animation: rise 1.6s var(--ease) .35s both;
}
.stat {
  display: flex;
  flex-direction: column; /* number on top, label underneath */
  gap: 10px;
  padding-left: 14px;
  border-left: 1px solid rgba(245, 245, 247, .3);
}
.stat__num {
  font-size: clamp(34px, 3.4vw, 60px);
  line-height: .82;
  letter-spacing: -0.04em;
}
.stat__label {
  font-size: 12px;
  line-height: 1.15;
  text-transform: uppercase;
  opacity: .75;
}

/* right: location, line about the studio, actions */
.hero__info {
  grid-column: 3; grid-row: 2;
  justify-self: end;
  width: min(100%, 300px);
  animation: rise 1.6s var(--ease) .45s both;
}
.hero__loc {
  display: flex; align-items: center; gap: .7em;
  font-size: var(--nav-fs);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero__desc {
  font-size: 14px;
  line-height: 1.4;
  opacity: .65;
  margin-bottom: 22px;
}
.hero__ctas { display: flex; align-items: center; gap: 24px; }

/* title: one word in each side column, bottom of the screen */
.hero__titlerow {
  grid-column: 1 / -1; grid-row: 4;
  display: grid;
  grid-template-columns: 1fr var(--hole) 1fr;
  align-items: end;
}
/* the h1 lays its two words straight into the row's grid */
.hero__title {
  display: contents;
  font-weight: 500;
  font-size: calc((100vw - var(--hole) - 2 * var(--pad-x)) / 2 / 7.3); /* 'MEMORABLE' ≈ 80% of its column */
  line-height: .8;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.hero__word { animation: rise 1.6s var(--ease) .2s both; }
.hero__word--l { grid-column: 1; justify-self: start; }
.hero__word--r { grid-column: 3; justify-self: end; animation-delay: .3s; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: var(--nav-fs);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* primary: small solid box, same type as the nav */
.btn--solid {
  padding: 12px 14px;
  border-radius: 2px;
  background: var(--c-light);
  color: var(--c-dark);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.btn--solid:hover { background: var(--c-dark); color: var(--c-light); }

/* secondary: plain text with the nav-style underline */
.btn--line { padding: 12px 0; }
.btn--line::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.btn--line:hover::after { transform: scaleX(0); transform-origin: right; }

/* scroll arrow: centred under the phone, between the two title words */
.hero__down {
  grid-column: 2; grid-row: 1;
  justify-self: center;
  align-self: center;
  padding: 6px;
  animation: rise 1.6s var(--ease) .55s both;
}
.hero__down svg { display: block; animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(6px); } }

@keyframes heroImg { from { opacity: 0; transform: scale(1.05); } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); filter: blur(14px); } }

/* ================= SELECTED WORK ================= */
.work {
  position: relative;
  z-index: 1; /* slides up over the pinned hero */
  background: var(--c-light);
  color: var(--c-dark);
  padding: clamp(110px, 13vw, 220px) var(--pad-x) clamp(64px, 8vw, 120px);
}
/* section title, same voice as the hero: big medium caps + count */
.work__intro {
  text-align: center;
  margin-bottom: clamp(72px, 9vw, 160px);
}
.work__title {
  font-weight: 500;
  font-size: clamp(44px, 7.4vw, 128px);
  line-height: .85;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
/* count sits at full title size, same colour */
.work__count {
  font-variant-numeric: tabular-nums;
}
.work__lede {
  margin-top: clamp(16px, 1.6vw, 24px);
  max-width: 34ch;
  margin-inline: auto;
  font-size: 14px;      /* same type as the hero description */
  line-height: 1.4;
  opacity: .4;
}



.work__grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--pad-x);
  row-gap: clamp(40px, 5vw, 80px);
}

.work-card { display: block; }
/* 'Soon' tag for upcoming projects, pushed to the end of the title line */
.work-card__title:has(.work-card__tag) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.work-card__tag {
  flex-shrink: 0;
  padding: 7px 10px;
  letter-spacing: 0;
  border-radius: 2px;
  background: var(--c-dark);
  color: var(--c-light);
  font-size: var(--nav-fs);
  line-height: 1;
  text-transform: uppercase;
}
.work-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  isolation: isolate; /* keeps the 2px corners clipped while the image zooms */
  background: #111;
}
.work-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter .8s var(--ease);
}
/* hover: image pushes in and dims a touch, a 'View project' tag follows the cursor */
.work-card:hover .work-card__media img { transform: scale(1.06); filter: brightness(.82); }
.work-card__view {
  position: absolute;
  left: var(--x, 50%); top: var(--y, 50%); /* follows the cursor (set in main.js) */
  z-index: 1;
  padding: 11px 14px;
  border-radius: 2px;
  background: var(--c-light);
  color: var(--c-dark);
  font-size: var(--nav-fs);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .45s var(--ease);
}
.work-card:hover .work-card__view { transform: translate(-50%, -50%) scale(1); }
.work-card__title { transition: transform .6s var(--ease); }
.work-card:hover .work-card__title { transform: translateX(6px); }
.work-card__services { transition: opacity .6s var(--ease); }
.work-card:hover .work-card__services { opacity: 1; }
@media (hover: none) { .work-card__view { display: none; } }
.work-card__title {
  margin-top: 18px;
  font-weight: 500;
  font-size: clamp(20px, 1.7vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.work-card__services {
  margin-top: 8px;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.3;
  opacity: .6;
}

/* ================= CONTACT ================= */
.contact {
  position: relative;
  z-index: 1;
  background: var(--c-dark);
  color: var(--c-light);
  padding: clamp(110px, 13vw, 220px) var(--pad-x) clamp(32px, 3vw, 48px);
}
.contact__title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-weight: 500;
  font-size: clamp(44px, 7.4vw, 128px);
  line-height: .85;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.contact__word + .contact__word { --base: .35s; }

.contact__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--pad-x) * 2);
  align-items: end;
  margin: clamp(72px, 9vw, 150px) 0 clamp(40px, 5vw, 72px);
}
.contact__lead {
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 14em;
}
.contact__note {
  max-width: 36ch;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.4;
  opacity: .55;
}
.js .contact__note[data-reveal="blur"].is-in { opacity: .55; }

/* form rows: label left, field right, thin line on top — like the reference */
.contact__form { border-bottom: 1px solid rgba(245, 245, 247, .16); }
.field {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--pad-x) * 2);
  padding: 22px 0 30px;
  border-top: 1px solid rgba(245, 245, 247, .16);
}
.field__label {
  padding-top: 14px;
  font-size: var(--nav-fs);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.field__req { margin-left: 3px; opacity: .5; }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 14px;
  border: 1px solid rgba(245, 245, 247, .22);
  border-radius: 2px;
  background: transparent;
  color: var(--c-light);
  font: inherit;
  font-size: 15px;
  line-height: 1.3;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(245, 245, 247, .35); }
.field input:hover,
.field textarea:hover,
.field select:hover { border-color: rgba(245, 245, 247, .45); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--c-light);
  background: rgba(245, 245, 247, .04);
}

/* selects: native control, custom arrow */
.select { position: relative; }
.select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}
.select select:invalid { color: rgba(245, 245, 247, .35); }
.select select option { color: var(--c-dark); background: var(--c-light); }
.select::after {
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 7px; height: 7px;
  margin-top: -5px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg);
  pointer-events: none;
  opacity: .7;
}

/* hidden spam trap: off-screen, never shown to people */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* errors appear only after a submit attempt */
.field__error { min-height: 0; margin-top: 8px; font-size: 12px; color: #ff8a80; }
.field__error:empty { display: none; }
.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select { border-color: #ff8a80; }

/* last row: agreement left, send button right */
.contact__submitrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--pad-x) * 2);
  align-items: start;
  padding: 26px 0 30px;
  border-top: 1px solid rgba(245, 245, 247, .16);
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--nav-fs);
  text-transform: uppercase;
  cursor: pointer;
}
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  position: relative;
  width: 18px; height: 18px;
  flex-shrink: 0;
  border: 1px solid rgba(245, 245, 247, .45);
  border-radius: 2px;
  transition: background-color .2s, border-color .2s;
}
.check input:checked + .check__box { background: var(--c-light); border-color: var(--c-light); }
.check input:checked + .check__box::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border-right: 2px solid var(--c-dark);
  border-bottom: 2px solid var(--c-dark);
  transform: rotate(45deg);
}
.check input:focus-visible + .check__box { outline: 2px solid var(--c-light); outline-offset: 2px; }
.contact__link { text-decoration: underline; text-underline-offset: 3px; }
.contact__privacy {
  max-width: 36ch;
  font-size: var(--nav-fs);
  line-height: 1.4;
  opacity: .55;
  text-wrap: balance;
}

.contact__submit {
  width: 100%;
  padding: 18px;
  border-radius: 2px;
  background: var(--c-light);
  color: var(--c-dark);
  font-size: var(--nav-fs);
  line-height: 1;
  text-transform: uppercase;
  transition: opacity .3s var(--ease);
}
.contact__submit:hover { opacity: .85; }
.contact__submit:disabled { opacity: .5; cursor: default; }
.contact__status { margin-top: 12px; font-size: 14px; line-height: 1.4; }
.contact__status:empty { display: none; }

/* ================= FOOTER ================= */
.footer {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--c-light);
  color: var(--c-dark);
}
.footer__inner {
  min-height: clamp(520px, 72vh, 780px); /* shorter than a full screen */
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 8px) var(--pad-x) var(--pad-x);
  /* parallax: starts lifted, settles as the footer scrolls in (main.js) */
  transform: translate3d(0, var(--fy, 0px), 0);
  will-change: transform;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: calc(var(--pad-x) * 2);
}
.footer__label {
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 1;
  opacity: .45;
}
.footer__links { list-style: none; }
.footer__links a {
  display: inline-block;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.6;
  transition: opacity .3s var(--ease);
}
.footer__links a:hover { opacity: .5; }

/* studio statement — big text with a small tilted tag, like the Services intro */
.footer__statement {
  position: relative;
  max-width: 19em;
  padding-top: 6px;
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.footer__tag {
  position: absolute;
  top: -1em;
  left: 2.6em;
  padding: 4px 7px;
  border-radius: 2px;
  background: var(--c-dark);
  color: var(--c-light);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  transform: rotate(3deg); /* tilts the other way from the Services tag */
}

/* the mark, centred in the space */
.footer__mark {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 48px 0;
}
.footer__mark img {
  width: clamp(180px, 24vw, 420px);
  height: auto;
  filter: invert(1); /* white logo → black */
  transform: scale(var(--fs, 1));
  transform-origin: 50% 50%;
}

.footer__bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(var(--pad-x) * 2);
  font-size: 12px;
  line-height: 1.3;
}
.footer__bottom > :last-child { justify-self: end; }
.footer__top-link:hover { opacity: .5; }

/* read by search engines and screen readers, not shown */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ================= LINE BREAKS ================= */
/* short paragraphs split into even lines — no one- or two-word last line */
.hero__desc,
.work__lede,
.footer__statement,
.services__lead,
.svc__desc,
.svc-card__desc,
.contact__note,
.contact__lead,
.showcase__sub { text-wrap: balance; }

/* keep a phrase on one line, so lines only break between phrases */
.phrase { white-space: nowrap; }

/* ================= SCROLL REVEALS ================= */
/* images / cards: a firm lift into place */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(70px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* small text: lifts further and sharpens out of a blur */
.js [data-reveal="blur"] {
  filter: blur(14px);
  transform: translateY(50px) scale(.98);
  transition: opacity 1.3s var(--ease), transform 1.6s var(--ease), filter 1.5s var(--ease);
}
.js [data-reveal="blur"].is-in { filter: blur(0); transform: none; }

/* split text: the element itself stays put, its letters/words do the moving */
.js [data-split][data-reveal] { opacity: 1; transform: none; filter: none; }
.js .work__lede[data-split] { opacity: .4; } /* keep its softer tone */
.split-w { display: inline-block; white-space: nowrap; }
.split-c,
[data-split="words"] .split-w {
  display: inline-block;
  will-change: transform, filter, opacity;
}

/* headings: each letter shoots up out of a heavy blur, fast stagger */
.js [data-split="chars"] .split-c {
  opacity: 0;
  filter: blur(18px);
  transform: translateY(65%) scaleY(1.3) skewY(6deg);
  transform-origin: 50% 100%;
  transition:
    opacity 1.2s var(--ease),
    filter 1.6s var(--ease),
    transform 1.7s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--i) * .065s + var(--base, 0s));
}
.js [data-split="chars"].is-in .split-c { opacity: 1; filter: blur(0); transform: none; }

/* paragraphs: words resolve from blur one after another */
.js [data-split="words"] .split-w {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(24px);
  transition: opacity 1.2s var(--ease), filter 1.4s var(--ease), transform 1.5s var(--ease);
  transition-delay: calc(var(--i) * .055s + var(--base, 0s));
}
.js [data-split="words"].is-in .split-w { opacity: 1; filter: blur(0); transform: none; }

/* second word of 'Creative Services' starts just after the first */
.services__word + .services__word { --base: .35s; }
/* the (08) count lands after the title letters */
.work__title .work__count { opacity: 0; filter: blur(14px); transition: opacity 1.2s var(--ease) .8s, filter 1.5s var(--ease) .8s; }
.work__title.is-in .work__count { opacity: 1; filter: blur(0); }

/* ================= SHOWCASE (full-height mockup) ================= */
.showcase {
  position: relative;
  z-index: 1; /* sits above the pinned hero like the other sections */
  height: 110vh; /* a little taller than the screen on desktop */
  min-height: 520px;
  overflow: hidden;
  background: #000; /* shows through the dimmed image */
}
/* short line bottom-left, over a soft dark fade */
.showcase::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent);
  pointer-events: none;
}
.showcase__caption {
  position: absolute;
  left: var(--pad-x);
  bottom: clamp(24px, 3.2vh, 36px); /* close to the bottom, with a little breathing room */
  z-index: 1;
  max-width: min(520px, 80vw);
  color: var(--c-light);
}
.showcase__title {
  text-wrap: balance; /* even line lengths, no lonely last word */
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.showcase__sub {
  margin-top: 12px;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.4;
  opacity: .65;
}
.js .showcase__sub[data-reveal="blur"].is-in { opacity: .65; }
.js .showcase__sub[data-reveal="blur"] { transition-delay: .5s; }
.showcase__pic { display: block; width: 100%; height: 100%; }
.showcase__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%; /* centred */
  opacity: .88; /* slightly dimmed over black so white text reads */
  transform: scale(var(--s, 1.12)); /* eases to 1 as it scrolls through (main.js) */
  will-change: transform;
}

/* ================= SERVICES ================= */
.services {
  position: relative;
  z-index: 1;
  background: var(--c-light);
  color: var(--c-dark);
  padding-top: clamp(110px, 13vw, 220px);
}

/* two-word title, one word at each edge, like the hero */
.services__titlerow { padding: 0 var(--pad-x); }
.services__title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-weight: 500;
  font-size: clamp(44px, 7.4vw, 128px);
  line-height: .85;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.services__word { display: inline-block; }

/* intro: scattered labels on the left, big paragraph on the right */
.services__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--pad-x) * 2);
  padding: clamp(96px, 12vw, 200px) var(--pad-x) 0;
}
.services__lead { grid-column: 2; }
.services__lead {
  position: relative;
  max-width: 19em;
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.services__lead-tag {
  position: absolute;
  top: -1.25em;
  left: 2.4em;
  padding: 4px 7px;
  border-radius: 2px;
  background: var(--c-dark);
  color: var(--c-light);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  transform: rotate(-3deg);
}
.services__lead-tag img { display: block; height: 9px; width: auto; }

/* phone-only stacked cards (hidden on desktop) */
.services__cards { display: none; }
.svc-card + .svc-card { margin-top: 72px; }
/* inside each card: number, image, name, text follow one another */
.js .svc-card [data-reveal]:nth-child(2) { transition-delay: .14s; }
.js .svc-card [data-reveal]:nth-child(3) { transition-delay: .28s; }
.js .svc-card [data-reveal]:nth-child(4) { transition-delay: .42s; }
.svc-card__num {
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.svc-card__media {
  margin-top: 16px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  background: #111;
}
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-card__name {
  margin-top: 18px;
  font-weight: 500;
  font-size: 8.4vw;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.svc-card__desc {
  margin-top: 12px;
  max-width: 40ch;
  font-size: 15px;
  line-height: 1.4;
  opacity: .7;
}

/* tall track: one screen of scroll per service; the panel stays pinned */
.services__track {
  height: calc(var(--n) * 100svh);
  margin-top: clamp(64px, 8vw, 140px);
}
.services__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  /* big image = right half of the screen (starts exactly at the centre line) */
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) calc(50vw - var(--pad-x));
  gap: calc(var(--pad-x) * 2);
  padding: calc(var(--nav-h) + 24px) var(--pad-x) var(--pad-x);
}

/* left column: the active service */
.services__panels { display: grid; min-height: 0; }
.svc {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  visibility: hidden;
}
.svc.is-active { visibility: visible; }
.svc__name,
.svc__bottom > * {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(40px);
  transition: opacity .9s var(--ease), transform 1.3s var(--ease), filter 1.2s var(--ease);
}
.svc.is-active .svc__name,
.svc.is-active .svc__bottom > * { opacity: 1; filter: blur(0); transform: none; }
.svc.is-active .svc__desc { transition-delay: .14s; }
.svc.is-active .svc__thumb { transition-delay: .28s; }

.svc__name {
  font-weight: 500;
  font-size: clamp(28px, 2.6vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.svc__desc {
  max-width: 40ch;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.35;
}
.svc__thumb {
  width: 50%; /* half the left column */
  aspect-ratio: 4 / 3;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 2px;
  background: #111;
}
.svc__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* middle column: number, all services, more info */
.services__index { display: flex; flex-direction: column; min-height: 0; }
/* number: same type as the list and names (Creato Display Medium) */
.services__counter {
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.services__list {
  list-style: none;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.services__list button {
  margin-left: -6px;
  padding: 3px 6px;
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.2;
  text-align: left;
  color: rgba(0, 0, 0, .4);
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.services__list button:hover { color: var(--c-dark); }
.services__list button.is-active { background: var(--c-dark); color: var(--c-light); }

/* right column: big image, crossfades as you scroll */
.services__media {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  isolation: isolate;
  background: #111;
}
.services__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity .8s var(--ease), transform 1.4s var(--ease);
}
.services__media img.is-active { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .nav__links, .nav__time { display: none; } /* phones: logo · Let's connect · Menu */
  .nav { grid-template-columns: 1fr auto; }
  .nav__logo { grid-column: 1; justify-self: start; }
  .nav__right { gap: 20px; }
  .nav__cta::after { display: none; }

  /* phones: facts on top, phone in the middle band, words + info below */
  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto auto;
    padding-top: calc(var(--nav-h) + 12px);
  }
  .hero__stats { grid-row: 1; }
  .hero__media {
    top: calc(var(--nav-h) + 70px);
    bottom: 210px; /* room for the title + location line below */
    left: 0;
    right: 0;
    -webkit-mask-composite: source-over;
            mask-composite: add;
    /* fade top and bottom so the photo never ends on a hard edge */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 72%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 72%, transparent 100%);
  }
  .hero__titlerow {
    grid-row: 3;
    grid-template-columns: auto 1fr auto;
    margin-bottom: 20px;
  }
  .hero__title {
    /* both words on one line, edge to edge */
    font-size: calc((100vw - 2 * var(--pad-x)) / 11.8); /* MEMORABLE + WEBSITES ≈ 10.4em, leaving a clear gap between them */
  }
  .hero__word--r { grid-column: 3; }
  .hero__down { display: none; } /* no scroll arrow on phones */
  .hero__info { grid-column: 1; grid-row: 4; justify-self: stretch; width: auto; }
  /* phones: Let's connect lives in the nav, so no hero buttons */
  .hero__ctas { display: none; }
  .hero__desc { margin-bottom: 0; }

  /* phones: title + count on one line */
  .work__title { font-size: 9.2vw; }
  /* phones: services become stacked cards instead of the pinned panel */
  .services__title { font-size: 9.4vw; }
  .services__intro { grid-template-columns: 1fr; padding-top: 72px; }
  .services__lead { grid-column: 1; }
  .services__lead-tag { top: -1.7em; left: 0; }
  .services__track { display: none; }
  .services__cards {
    display: block;
    padding: 72px var(--pad-x) 96px;
  }

  /* phones: full screen, portrait image centred on the phone;
     darker image → soft fade + plain white caption */
  .showcase { height: 100svh; }
  .showcase__caption { bottom: var(--pad-x); }

  /* phones: contact rows stack — label above its field */
  .contact__title { font-size: 11vw; }
  .contact__intro { grid-template-columns: 1fr; gap: 16px; margin-top: 56px; }
  .field, .contact__submitrow { grid-template-columns: 1fr; gap: 12px; }
  .field__label { padding-top: 0; }
  .contact__submitrow { gap: 22px; }

  /* phones: footer columns stack */
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer__col--wide { grid-column: 1 / -1; }
  .footer__bottom { grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .footer__bottom > :nth-child(even) { justify-self: end; }
  .footer__inner { min-height: 100svh; }
  .footer__statement { margin-top: 20px; }
  .footer__tag { left: 0; top: -1.4em; }

  /* phones: one card per row */
  .work__grid { grid-template-columns: 1fr; }
}
