/* =========================================================
   Day Dot Creative — design system
   ========================================================= */

:root {
  --bg: #f3f1ec;
  --bg-2: #e9e6df;
  --ink: #121415;
  --ink-2: #4a5155;
  --muted: #8b9195;
  --line: rgba(18, 20, 21, 0.14);
  --slate: #34464d;           /* from the DC monogram */
  --dark: #0e1112;
  --on-dark: #ecebe6;
  --on-dark-muted: #8d9497;
  --line-dark: rgba(236, 235, 230, 0.16);

  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;

  --gutter: clamp(16px, 3vw, 48px);
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--ink); color: var(--bg); }

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--muted);
}
.wrap { padding-inline: var(--gutter); }

/* ---------- custom cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--ink); mix-blend-mode: difference; filter: invert(1);
  display: grid; place-items: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), opacity .3s;
}
.cursor span {
  font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--bg);
  opacity: 0; transform: scale(.6); transition: opacity .3s, transform .45s var(--ease-out);
}
.cursor.is-label { width: 88px; height: 88px; margin: -44px 0 0 -44px; mix-blend-mode: normal; filter: none; background: var(--ink); }
.cursor.is-label span { opacity: 1; transform: none; }
.cursor.is-label.on-dark { background: var(--on-dark); }
.cursor.is-label.on-dark span { color: var(--ink); }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (hover: hover) and (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } }

/* ---------- preloader & page transition ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300; background: var(--dark); color: var(--on-dark);
  display: grid; place-items: center;
  transition: clip-path 1.1s var(--ease);
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader svg { width: min(180px, 40vw); overflow: visible; }
.loader path { fill: none; stroke: currentColor; stroke-width: 7; stroke-dasharray: 1; stroke-dashoffset: 1; }
.loader__count { position: absolute; left: var(--gutter); bottom: var(--gutter); font-size: 12px; letter-spacing: .14em; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.loader__name { position: absolute; right: var(--gutter); bottom: var(--gutter); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }

.curtain {
  position: fixed; inset: 0; z-index: 250; background: var(--dark); pointer-events: none;
  clip-path: inset(100% 0 0 0);
}
.curtain.is-in  { transition: clip-path .7s var(--ease); clip-path: inset(0 0 0 0); }
.curtain.is-out { transition: clip-path .9s var(--ease); clip-path: inset(0 0 100% 0); }

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  color: #000;
  transition: transform .6s var(--ease-out);
}
.header.is-hidden { transform: translateY(-110%); }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 500; letter-spacing: -0.01em; }
.logo svg { width: 46px; height: auto; }
.logo path { fill: none; stroke: currentColor; stroke-width: 9; }
.logo__word { font-size: 15px; }
.nav { display: flex; gap: clamp(18px, 3vw, 40px); font-size: 15px; }
.nav a { position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 560px) { .logo__word { display: none; } }

/* ---------- split text & reveals ---------- */
.line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.is-in .line > span, .line.is-in > span { transform: none; }

[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

[data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); }
[data-reveal="clip"] img { transform: scale(1.18); transition: transform 1.8s var(--ease-out); }
[data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }
[data-reveal="clip"].is-in img { transform: scale(1); }

/* ---------- hero (home) ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px var(--gutter) var(--gutter); }
.hero__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px;
  opacity: 0; transform: translateY(20px); transition: opacity 1.1s var(--ease-out) .45s, transform 1.1s var(--ease-out) .45s; }
.is-ready .hero__tags { opacity: 1; transform: none; }
.hero__tags li {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 99px;
  font-size: 13px; letter-spacing: .02em; color: #fff;
  border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.hero__title {
  font-size: clamp(3.4rem, 15vw, 17rem); line-height: .86; letter-spacing: -0.055em; font-weight: 500;
}
.hero__title .serif { letter-spacing: -0.03em; font-size: 1.06em; }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: clamp(28px, 5vh, 56px); }
.hero__intro { max-width: 34ch; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.45; color: var(--ink-2); }
.scroll-cue { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.scroll-cue i { width: 1px; height: 44px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (max-width: 720px) {
  .scroll-cue { display: none; }
}

/* ---------- expanding feature band ---------- */
.feature { position: relative; height: 180vh; }
.feature__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.feature__frame {
  position: absolute; inset: 0;
  clip-path: inset(var(--iy, 18%) var(--ix, 22%) var(--iy, 18%) var(--ix, 22%) round var(--r, 6px));
  will-change: clip-path;
}
.feature__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--s, 1.25)); will-change: transform; }
.feature__caption {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); color: #fff;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  opacity: var(--o, 0); transform: translateY(calc((1 - var(--o, 0)) * 20px));
}
.feature__caption h3 { font-size: clamp(28px, 4vw, 64px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.feature__caption .eyebrow { color: rgba(255,255,255,.75); }
.btn-pill {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 99px;
  border: 1px solid currentColor; font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background .4s var(--ease-out), color .4s var(--ease-out);
}
.btn-pill svg { width: 14px; transition: transform .5s var(--ease-out); }
.btn-pill:hover svg { transform: translateX(4px); }
.feature__caption .btn-pill:hover { background: #fff; color: var(--ink); }

/* ---------- statement ---------- */
.statement {
  min-height: 80vh; padding: clamp(120px, 18vw, 260px) var(--gutter);
  display: grid; place-items: center; text-align: center;
  background: #000; color: var(--on-dark);
}
.statement p {
  max-width: 22ch; font-size: clamp(30px, 4.4vw, 72px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 400;
}
.statement .w { opacity: .14; transition: opacity .25s linear; }
.statement .w.on { opacity: 1; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-inline: var(--gutter); }
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(40px, 5.4vw, 88px); font-weight: 400; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 12px; font-size: 14px; color: var(--ink-2); max-width: 22ch; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
}


/* ---------- work ---------- */
.work { padding: clamp(96px, 12vw, 180px) var(--gutter) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(48px, 6vw, 96px); }
.section-title { font-size: clamp(56px, 9vw, 150px); font-weight: 500; letter-spacing: -0.055em; line-height: .88; }
.section-title sup { font-size: .2em; letter-spacing: 0; vertical-align: top; position: relative; top: .5em; margin-left: .3em; font-weight: 400; color: var(--muted); }
.controls { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 36px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2);
  transition: background .35s var(--ease-out), color .35s var(--ease-out), border-color .35s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip sup { font-size: 10px; margin-left: 3px; opacity: .6; }
.view-toggle { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.view-toggle button[aria-pressed="true"] { color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(56px, 7vw, 120px); align-items: start; }
.card { display: block; transition: opacity .5s var(--ease-out), transform .7s var(--ease-out); }
.card.is-hiding { opacity: 0 !important; transform: translateY(24px); }
.card--a { grid-column: 1 / span 7; }
.card--b { grid-column: 9 / span 4; margin-top: clamp(80px, 16vw, 280px); }
.card--c { grid-column: 2 / span 4; margin-top: clamp(0px, 4vw, 64px); }
.card--d { grid-column: 7 / span 6; }
.card__media { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--bg-2); border-radius: 4px; }
.card--a .card__media, .card--d .card__media { aspect-ratio: 5 / 4; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out) !important; }
.card:hover .card__media img { transform: scale(1.06) !important; }
.card__media::after {
  content: ""; position: absolute; inset: 0; background: var(--ink); opacity: 0; transition: opacity .6s var(--ease-out);
}
.card:hover .card__media::after { opacity: .08; }
.card__meta { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; padding-top: 18px; align-items: baseline; }
.card__idx { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.card__title { font-size: clamp(20px, 1.7vw, 26px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.card__title span { display: inline-block; transition: transform .6s var(--ease-out); }
.card:hover .card__title span { transform: translateX(8px); }
.card__client { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.card__sector { font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (max-width: 860px) {
  .card--a, .card--b, .card--c, .card--d { grid-column: 1 / -1; margin-top: 0; }
  .card__media, .card--a .card__media, .card--d .card__media { aspect-ratio: 4 / 3; }
}

/* list view */
.list { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 60px 1.4fr 1fr 1fr 24px; gap: 24px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line); position: relative;
  transition: opacity .4s var(--ease-out), padding .5s var(--ease-out);
}
.row__title { font-size: clamp(22px, 2.6vw, 40px); letter-spacing: -0.04em; font-weight: 500; line-height: 1.05; }
.row__idx, .row__sector { font-size: 13px; color: var(--muted); }
.row__client { color: var(--ink-2); }
.row svg { width: 18px; transform: rotate(-45deg); transition: transform .5s var(--ease-out); }
.list:hover .row { opacity: .3; }
.list .row:hover { opacity: 1; padding-left: 16px; }
.row:hover svg { transform: none; }
@media (max-width: 860px) { .row { grid-template-columns: 36px 1fr 20px; } .row__client, .row__sector { display: none; } }
.follower {
  position: fixed; top: 0; left: 0; z-index: 90; width: 300px; aspect-ratio: 4 / 5; pointer-events: none; overflow: hidden; border-radius: 4px;
  opacity: 0; transform: scale(.85); transition: opacity .4s var(--ease-out), transform .5s var(--ease-out);
}
.follower.is-on { opacity: 1; transform: scale(1); }
.follower img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .follower { display: none; } }
[hidden] { display: none !important; }

/* ---------- capabilities ---------- */
.caps { padding: clamp(120px, 14vw, 220px) var(--gutter) 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.caps__head { grid-column: 1 / 5; }
.caps__head h2 { font-size: clamp(36px, 4vw, 64px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; margin-top: 20px; }
.caps__list { grid-column: 6 / 13; border-top: 1px solid var(--line); counter-reset: step; }
.cap { display: grid; grid-template-columns: 60px 1fr; gap: 16px; padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.cap::before { counter-increment: step; content: "0" counter(step); font-size: 13px; color: var(--muted); padding-top: 8px; }
.cap h3 { font-size: clamp(24px, 2.4vw, 36px); font-weight: 500; letter-spacing: -0.035em; }
.cap p { color: var(--ink-2); margin-top: 8px; max-width: 52ch; }
@media (max-width: 860px) { .caps__head, .caps__list { grid-column: 1 / -1; } }

/* ---------- contact / footer ---------- */
.contact {
  margin-top: clamp(120px, 14vw, 220px); background: var(--dark); color: var(--on-dark);
  padding: clamp(96px, 12vw, 180px) var(--gutter) var(--gutter); position: relative; overflow: hidden;
}
.contact .eyebrow { color: var(--on-dark-muted); }
.contact__title { font-size: clamp(4rem, 14vw, 15rem); font-weight: 500; letter-spacing: -0.06em; line-height: .86; margin: 28px 0 0; }
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: clamp(48px, 6vw, 96px); align-items: end; }
.contact__copy { grid-column: 1 / 6; color: var(--on-dark-muted); font-size: clamp(16px, 1.3vw, 19px); max-width: 44ch; }
.contact__cta { grid-column: 7 / 13; justify-self: end; text-align: right; }
.mail {
  display: inline-block; font-size: clamp(22px, 2.8vw, 44px); letter-spacing: -0.035em; position: relative; padding-bottom: 6px;
}
.mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: left; transition: transform .7s var(--ease-out); }
.mail:hover::after { transform: scaleX(0); transform-origin: right; }
.footer { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: clamp(96px, 10vw, 160px); padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--on-dark-muted); }
.footer a:hover { color: var(--on-dark); }
.footer nav { display: flex; gap: 24px; }
@media (max-width: 860px) { .contact__copy, .contact__cta { grid-column: 1 / -1; justify-self: start; text-align: left; } }

/* =========================================================
   Project page
   ========================================================= */
.p-hero { padding: clamp(140px, 20vh, 220px) var(--gutter) clamp(40px, 6vw, 80px); }
.p-hero__top { display: flex; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 4vw, 48px); }
.p-hero__title { font-size: clamp(3.4rem, 11.5vw, 12.5rem); font-weight: 500; letter-spacing: -0.055em; line-height: .86; }
.p-hero__sub { margin-top: clamp(20px, 3vw, 36px); font-size: clamp(20px, 2.2vw, 34px); letter-spacing: -0.03em; color: var(--ink-2); }

/* cover keeps the image's own proportions; aspect trims only the white strip along the top */
.p-cover { position: relative; overflow: hidden; aspect-ratio: 2.23 / 1; margin-inline: var(--gutter); border-radius: 4px; background: var(--dark); }
.p-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; transform-origin: 50% 100%; }

.p-info { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: clamp(80px, 10vw, 160px) var(--gutter); }
.p-facts { grid-column: 1 / 5; display: grid; gap: 28px; align-content: start; }
.p-facts dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.p-facts dd { margin: 6px 0 0; font-size: 17px; }
.p-facts dl { margin: 0; display: grid; gap: 28px; }
.p-copy { grid-column: 6 / 13; padding-right: clamp(0px, 6vw, 120px); }
.p-copy .lead { font-size: clamp(24px, 2.6vw, 40px); line-height: 1.18; letter-spacing: -0.03em; }
.p-copy p + p { margin-top: 24px; }
.p-copy .body { font-size: 18px; color: var(--ink-2); max-width: 60ch; margin-top: 40px; }
@media (max-width: 860px) { .p-facts, .p-copy { grid-column: 1 / -1; } .p-facts { order: 2; } }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 24px); padding-inline: var(--gutter); }
.g { overflow: hidden; border-radius: 4px; background: var(--bg-2); }
.g img { width: 100%; height: 100%; object-fit: cover; }
.g--full { grid-column: 1 / -1; }
.g--bleed { grid-column: 1 / -1; margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
.g--bleed img { height: auto; }
.g--half { grid-column: span 6; }
.g--wide { grid-column: 1 / span 8; }
.g--narrow { grid-column: 9 / span 4; align-self: end; }
.g figcaption, .caption { font-size: 13px; color: var(--muted); padding-top: 12px; }
figure { margin: 0; }
.fig { display: flex; flex-direction: column; }
.fig .g { flex: 1; }
@media (max-width: 860px) { .g--half, .g--wide, .g--narrow { grid-column: 1 / -1; } }

.quote { padding: clamp(96px, 12vw, 200px) var(--gutter); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.quote p { grid-column: 3 / 12; font-size: clamp(30px, 4.4vw, 72px); line-height: 1.04; letter-spacing: -0.04em; }
@media (max-width: 860px) { .quote p { grid-column: 1 / -1; } }

/* horizontal pinned sequence */
.hscroll { position: relative; }
.hscroll__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hscroll__head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 var(--gutter) 28px; }
.hscroll__head h3 { font-size: clamp(24px, 2.6vw, 40px); font-weight: 500; letter-spacing: -0.035em; }
.hscroll__progress { width: 160px; height: 1px; background: var(--line); position: relative; }
.hscroll__progress i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.hscroll__track { display: flex; gap: clamp(12px, 1.6vw, 24px); padding-inline: var(--gutter); will-change: transform; }
.hscroll__item { flex: 0 0 auto; width: min(72vw, 1100px); aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; background: var(--bg-2); }
.hscroll__item img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .hscroll { height: auto !important; }
  .hscroll__sticky { position: static; height: auto; padding-block: 64px; }
  .hscroll__track { overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; }
  .hscroll__item { width: 86vw; scroll-snap-align: center; }
}

.collateral { padding: clamp(96px, 12vw, 180px) var(--gutter) 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.collateral .eyebrow { grid-column: 1 / 5; }
.collateral ul { grid-column: 6 / 13; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.collateral li { padding: 10px 18px; border: 1px solid var(--line); border-radius: 99px; font-size: 15px; }
@media (max-width: 860px) { .collateral .eyebrow, .collateral ul { grid-column: 1 / -1; } }

.next { display: block; margin-top: clamp(120px, 14vw, 220px); background: var(--dark); color: var(--on-dark); position: relative; overflow: hidden; }
.next__img { position: absolute; inset: 0; opacity: .0; transform: scale(1.08); transition: opacity 1s var(--ease-out), transform 1.6s var(--ease-out); }
.next__img img { width: 100%; height: 100%; object-fit: cover; }
.next__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,17,18,.85), rgba(14,17,18,.25)); }
.next:hover .next__img { opacity: 1; transform: scale(1); }
.next__inner { position: relative; padding: clamp(80px, 10vw, 160px) var(--gutter) clamp(64px, 7vw, 120px); }
.next .eyebrow { color: var(--on-dark-muted); }
.next__title { font-size: clamp(3.4rem, 11vw, 12rem); font-weight: 500; letter-spacing: -0.055em; line-height: .88; margin-top: 24px; }
.next__client { margin-top: 20px; color: var(--on-dark-muted); font-size: 18px; }
.next .footer { margin-top: 0; padding: 24px var(--gutter); position: relative; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 220; transform: translate(-50%, calc(100% + 60px));
  background: var(--ink); color: var(--bg); padding: 14px 22px; border-radius: 99px; font-size: 14px;
  transition: transform .6s var(--ease-out);
}
.toast.is-on { transform: translate(-50%, 0); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .line > span, [data-reveal] { transform: none !important; opacity: 1 !important; clip-path: none !important; }
  .feature { height: auto; }
  .feature__sticky { position: relative; }
  .statement .w { opacity: 1; }
}

/* ---------- hero reel (montage behind the headline) ---------- */
.hero--reel { position: relative; overflow: hidden; background: var(--dark); color: #fff; }
.reel { position: absolute; inset: 0; }
.reel canvas { display: block; width: 100%; height: 100%; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,12,13,.5) 0%, rgba(10,12,13,.12) 30%, rgba(10,12,13,.18) 45%, rgba(10,12,13,.75) 100%);
}
/* text floats above the reel but lets clicks fall through to it */
.hero--reel > :not(.reel):not(.hero__shade) { position: relative; pointer-events: none; }
.hero--reel .hero__intro { color: rgba(255,255,255,.86); }
.reel-cap { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: 14px; text-align: right; }
.reel-cap__count { font-size: 12px; letter-spacing: .14em; color: rgba(255,255,255,.65); font-variant-numeric: tabular-nums; }
.reel-cap__title { display: block; overflow: hidden; white-space: nowrap; }
.reel-cap__title span { display: inline-block; }
.reel-cap__bar { width: 180px; height: 1px; background: rgba(255,255,255,.25); position: relative; }
.reel-cap__bar i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(var(--p, 0)); }
@media (max-width: 720px) {
  .hero--reel .hero__foot { flex-direction: column; align-items: flex-start; gap: 24px; }
  .reel-cap { align-items: flex-start; text-align: left; }
}
.reel-cap { opacity: 0; transform: translateY(20px); transition: opacity 1.1s var(--ease-out) .6s, transform 1.1s var(--ease-out) .6s; }
.is-ready .reel-cap { opacity: 1; transform: none; }

/* ---------- header: pure black on light, pure white on dark ---------- */
.header .logo, .header .nav { color: #000; }
.header .logo.on-dark, .header .nav.on-dark { color: #fff; }

/* ---------- reel caption: client over project ---------- */
.reel-cap__title { white-space: normal; }
.reel-cap__title > span { display: inline-flex; flex-direction: column; gap: 2px; }
.reel-cap__client { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* ---------- selected work: uniform grid (default) ---------- */
.card__top { display: none; }
.grid--uniform { grid-template-columns: repeat(3, 1fr); column-gap: clamp(16px, 1.8vw, 32px); row-gap: clamp(56px, 6vw, 104px); }
.grid--uniform .card { grid-column: auto; margin: 0; }
.grid--uniform .card__top {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 14px 0 16px; border-top: 1px solid var(--line);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.grid--uniform .card__top span:nth-child(2) { margin-left: auto; }
.grid--uniform .card__top svg { width: 14px; transform: rotate(-45deg); transition: transform .5s var(--ease-out); }
.grid--uniform .card:hover .card__top svg { transform: none; }
.grid--uniform .card__media { aspect-ratio: 1 / 1; border-radius: 2px; }
.grid--uniform .card__meta { grid-template-columns: 1fr; padding-top: 20px; }
.grid--uniform .card__idx, .grid--uniform .card__sector { display: none; }
.grid--uniform .card__title { font-size: clamp(22px, 2vw, 30px); }
/* hover: a black rule draws across the top, the title underlines, the image eases in */
.grid--uniform .card__top::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right; transition: transform .9s var(--ease);
}
.grid--uniform .card:hover .card__top::before { transform: scaleX(1); transform-origin: left; }
.grid--uniform .card__top { transition: color .5s var(--ease-out); }
.grid--uniform .card:hover .card__top { color: var(--ink); }
.grid--uniform .card__title span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px; transition: background-size .8s var(--ease), transform .6s var(--ease-out);
}
.grid--uniform .card:hover .card__title span { background-size: 100% 1px; transform: none; }
.grid--uniform .card:hover .card__media::after { opacity: 0; }
.grid--uniform .card:hover .card__media img { transform: scale(1.05) !important; }
@media (max-width: 1000px) { .grid--uniform { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--uniform { grid-template-columns: 1fr; } .grid--uniform .card__media { aspect-ratio: 1 / 1; } }

/* ---------- website showcase: brand-coloured stages with browser and phone frames ---------- */
.stage {
  position: relative; overflow: hidden; margin-top: clamp(12px, 1.6vw, 24px);
  padding: clamp(48px, 7vw, 120px) var(--gutter); background: var(--brand, var(--dark));
}
.stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 60% at 90% 100%, var(--brand-glow, transparent), transparent 70%), radial-gradient(90% 70% at 15% 0%, rgba(255,255,255,.09), transparent 60%); }
.stage > * { position: relative; }
.stage--cover { margin: 0 var(--gutter); border-radius: 4px; padding: clamp(40px, 6vw, 96px) clamp(24px, 9vw, 150px) 0; }
.stage--light { background: var(--brand-light, #e1dcdb); }
.stage--light::before { display: none; }

.browser { border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px rgba(0,0,0,.35); }
.browser--cover { border-radius: 8px 8px 0 0; box-shadow: 0 -10px 80px rgba(0,0,0,.35); }
.browser--plain { box-shadow: 0 0 0 1px var(--line); }
.browser__bar { position: relative; display: flex; align-items: center; gap: 6px; height: clamp(22px, 2.2vw, 34px); padding: 0 12px; background: #ecebe8; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfccc6; }
.browser__bar span { position: absolute; left: 50%; transform: translateX(-50%); padding: 3px 16px; border-radius: 99px; background: #fff; font-size: 11px; color: var(--muted); white-space: nowrap; }
.browser img { display: block; width: 100%; }

.phone { padding: 8px; border-radius: 36px; background: #0b0d0d; box-shadow: 0 40px 80px rgba(0,0,0,.35); }
.phone img { display: block; width: 100%; border-radius: 28px; }
.phone--cover { position: absolute; right: 5%; bottom: 0; width: 19%; padding-bottom: 0; border-radius: 36px 36px 0 0; transform: translateY(14%); }

.stage__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px) clamp(16px, 2vw, 32px); }
.stage__wide { grid-column: 1 / -1; }
.caption--light { color: rgba(255,255,255,.6); }
.phones { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 300px); justify-content: center; gap: clamp(16px, 4vw, 72px); }
.phones .caption { text-align: center; }
.p-link { border-bottom: 1px solid currentColor; }

@media (max-width: 860px) {
  .stage__grid { grid-template-columns: 1fr; }
  .browser__bar span { display: none; }
  .phone { padding: 5px; border-radius: 24px; }
  .phone img { border-radius: 19px; }
  .phone--cover { width: 22%; border-radius: 24px 24px 0 0; }
  .phones { grid-auto-columns: 62vw; justify-content: start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .phones .fig { scroll-snap-align: center; }
}

/* ---------- generated campaign pages ---------- */
.gallery--stack { row-gap: clamp(28px, 4vw, 64px); }
.gallery + .gallery, .stage + .gallery, .gallery + .stage { margin-top: clamp(28px, 4vw, 64px); }
.g--third { grid-column: span 4; }
@media (max-width: 860px) { .g--third { grid-column: 1 / -1; } }

/* tall web pages inside browser frames; hover glides down the page */
.scrolls { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 32px); }
.browser--scroll .shot { aspect-ratio: 4 / 5; overflow: hidden; container-type: size; }
.browser--scroll .shot img { transition: transform 7s cubic-bezier(.45, 0, .2, 1); }
.browser--scroll:hover .shot img { transform: translateY(calc(-100% + 100cqh)); }
@media (hover: none) { .browser--scroll .shot { overflow-y: auto; } }
@media (max-width: 860px) { .scrolls { grid-template-columns: 1fr; } }

/* side-by-side images keep their own shape instead of being cropped to match */
.gallery--stack { align-items: start; }
.gallery--stack .g img { height: auto; }
