/* ===== Tokens ===== */
:root {
  --bg: #0A0B0F;
  --bg-2: #111319;
  --card: #14161D;
  --line: #262A35;
  --text: #F2F3F5;
  --muted: #9AA0AC;
  --soft: #C9CDD5;
  --accent: #45D4FF;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: Inter, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--body);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--bg); }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main:focus-visible { outline: none; }
.wrap { padding-inline: var(--gutter); max-width: 1600px; margin-inline: auto; }


/* ===== Preloader ===== */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center;
  transition: transform 1s var(--ease-in-out);
}
.loader.is-done { transform: translateY(-100%); }
.loader__name { display: flex; flex-wrap: nowrap; white-space: nowrap; align-items: baseline; gap: .3em; font-family: var(--display); font-weight: 900; font-size: clamp(40px, 6vw, 88px); line-height: 1.1; overflow: hidden; }
.loader__name span { display: block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; }
.loader__name span + span { animation-delay: .12s; color: var(--accent); }
.loader__count { position: static; min-width: 2.4em; font-variant-numeric: tabular-nums; } /* fixed width so LOADING doesn't shift as the number grows */
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s linear; }
@keyframes rise { to { transform: translateY(0); } }

/* ===== Curtain (route change) ===== */
.curtain { position: fixed; inset: 0; z-index: 95; pointer-events: none; }
.curtain__panel { position: absolute; inset: 0; background: var(--bg); opacity: 0; }
.curtain.in .curtain__panel { opacity: 1; transition: opacity .3s ease; }
.curtain.out .curtain__panel { opacity: 0; transition: opacity .4s ease; }


/* ===== Progress ===== */
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 80; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ===== Nav ===== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 70; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--gutter); transition: transform .5s var(--ease), background .4s;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-solid { background: rgba(10, 11, 15, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav__logo { font-family: var(--display); font-weight: 900; font-size: 28px; letter-spacing: .02em; position: relative; line-height: 1; }
.nav__logo i { position: absolute; right: -10px; bottom: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.nav__left { display: flex; align-items: center; gap: 28px; }
.nav__back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--soft); padding: 8px 14px 8px 12px; border: 1px solid var(--line); border-radius: 999px; transition: color .3s, border-color .3s, background .3s; }
.nav__back[hidden] { display: none; }
.nav__back:hover { color: var(--text); border-color: var(--text); }
.nav__back span { transition: transform .3s var(--ease); }
.nav__back:hover span { transform: translateX(-3px); }
.nav__links { display: flex; gap: clamp(16px, 3vw, 40px); font-size: 14px; font-weight: 500; }
.nav__links a, .nav__cta { position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { font-size: 14px; font-weight: 600; padding: 10px 18px; border: 1px solid var(--text); border-radius: 999px; overflow: hidden; transition: color .4s, border-color .4s; isolation: isolate; }
.nav__cta::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateY(101%); transition: transform .5s var(--ease); z-index: -1; border-radius: inherit; }
.nav__cta:hover { color: var(--bg); border-color: var(--accent); }
.nav__cta:hover::before { transform: translateY(0); }
@media (max-width: 640px) { .nav__cta { display: none; } .nav__links { font-size: 13px; gap: 4px; } .nav__links a { padding: 12px 6px; } .nav__links a::after { left: 6px; right: 6px; bottom: 8px; } .nav__logo { padding: 8px 0; } .footer button, .footer a { padding-block: 12px; } .nav__left { gap: 18px; } .nav__back { font-size: 13px; padding: 6px 12px 6px 10px; } }

/* ===== Reveal utilities ===== */
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.is-in .line > span, .line.is-in > span { transform: translateY(0); }
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(.92); }
/* the child is clipped, not the observed element: a fully clipped target never reports as intersecting */
[data-reveal="clip"] { opacity: 1; transform: none; }
[data-reveal="clip"] > * { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="clip"].is-in > * { clip-path: inset(0 0 0 0); }

.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.eyebrow--plain::before { display: none; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 120px var(--gutter) 48px; overflow: hidden; }
.hero__wall {
  position: absolute; inset: -50% -10% -50% auto; width: min(78vw, 1120px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  transform: rotate(-18deg); opacity: .9; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%);
}
.hero__col { display: flex; flex-direction: column; gap: 14px; animation: colUp 260s linear infinite; will-change: transform; }
.hero__col:nth-child(2) { animation-name: colDown; animation-duration: 300s; }
.hero__col:nth-child(3) { animation-duration: 240s; }
.hero__col:nth-child(4) { animation-name: colDown; animation-duration: 280s; }
.hero__col img { flex-shrink: 0; width: 100%; height: auto; border-radius: 10px; filter: saturate(.9) brightness(.75); }
@keyframes colUp { from { transform: translateY(0) } to { transform: translateY(-50%) } }
@keyframes colDown { from { transform: translateY(-50%) } to { transform: translateY(0) } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at 20% 80%, rgba(10,11,15,.95) 0 35%, rgba(10,11,15,.55) 70%, rgba(10,11,15,.2)); pointer-events: none; }
.hero__content { position: relative; z-index: 2; display: grid; gap: 28px; }
.hero__title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(64px, 9.5vw, 148px); line-height: 1; letter-spacing: -.01em; text-transform: uppercase; }
.hero__title .row { display: block; overflow: hidden; padding-top: .12em; margin-top: -.12em; }
.hero__title .row > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.hero.is-in .hero__title .row > span { transform: none; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.hero__role { font-size: clamp(17px, 1.6vw, 20px); font-weight: 500; max-width: 560px; }
.hero__role p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.hero__scroll { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .18em; color: var(--muted); }
.hero__scroll i { width: 1px; height: 56px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--text); animation: scrollLine 2s var(--ease-in-out) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%) } 60%,100% { transform: translateY(100%) } }
@media (max-width: 800px) {
  .hero__wall { inset: -10% -40% 30% -10%; opacity: .5; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); }
}


/* ===== Section heads ===== */
.section { padding-block: clamp(80px, 12vw, 160px); }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 48px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__title { margin: 16px 0 0; font-family: var(--display); font-weight: 900; font-size: clamp(40px, 5.2vw, 80px); line-height: .95; text-transform: uppercase; }
.section__title sup { font-size: .25em; vertical-align: top; color: var(--accent); margin-left: .2em; font-weight: 700; }

/* ===== Filters ===== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--soft); transition: background .3s, color .3s, border-color .3s; }
.filters button:hover { border-color: var(--muted); }
.filters button.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ===== Work grid ===== */
.work { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); }
.card { grid-column: span 4; position: relative; display: block; transition: opacity .5s, transform .5s var(--ease); }
.card[data-cols="2"] { grid-column: span 6; }
.card[data-cols="1"] { grid-column: span 12; }
.card.is-filtered { display: none; }
.card__media { position: relative; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: var(--card); }
.card[data-cols="2"] .card__media { aspect-ratio: 16/10; }
.card[data-cols="1"] .card__media { aspect-ratio: 21/8; }
.card[data-cols="1"] .card__logo { width: 34%; }
.card__bg--plain { filter: none; object-position: center top; }
.card:hover .card__bg--plain { filter: brightness(.85); }
.card__bg { position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: brightness(.6) saturate(.9); }
.card__logo { position: absolute; left: 50%; top: 50%; width: 62%; max-height: 62%; object-fit: contain; transform: translate(-50%, -50%); transition: transform 1s var(--ease); filter: drop-shadow(0 10px 30px rgba(0,0,0,.5)); }
.card__tag { position: absolute; top: 14px; left: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(10,11,15,.65); backdrop-filter: blur(8px); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.card__result { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 10px 14px; border-radius: 8px; background: var(--c); color: var(--bg); font-size: 13px; font-weight: 600; transform: translateY(calc(100% + 20px)); transition: transform .6s var(--ease); }
.card:hover .card__bg { transform: scale(1.03); filter: brightness(.45) saturate(1.1); }

.card:hover .card__result { transform: none; }
@media (hover: none) { .card__result { transform: none; } }
.card__info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; }
.card__name { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2vw, 30px); line-height: 1; position: relative; }
.card__name::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.card:hover .card__name::after { transform: scaleX(1); }
.card__sub { font-size: 13px; color: var(--muted); text-align: right; }
@media (max-width: 900px) { .card, .card[data-cols] { grid-column: span 12; } .card[data-cols] .card__media { aspect-ratio: 16/11; } }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 32px 24px 0 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat__n { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 4.6vw, 72px); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__n em { font-style: normal; color: var(--accent); }
.stat__l { font-size: 14px; color: var(--muted); margin-top: 8px; max-width: 220px; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } .stat { border-right: 0; padding: 24px 0 !important; border-bottom: 1px solid var(--line); } }

/* ===== About ===== */
.about { display: grid; grid-template-columns: minmax(260px, 5fr) 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__photo { position: sticky; top: 100px; border-radius: 10px; overflow: hidden; aspect-ratio: 4/5; background: var(--card); }
.about__photo img { width: 100%; height: 120%; object-fit: cover; object-position: center 30%; will-change: transform; }
.about__photo figcaption { position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.about__quote { margin: 0 0 56px; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.2vw, 48px); line-height: 1.05; }
.about__quote .w { color: #2B2F3A; transition: color .4s; }
/* two lines on wide screens: the line break sits after the dash, and the size follows the column width */
@media (min-width: 901px) { .about > div:last-child { container-type: inline-size; min-width: 0; } .about__quote { white-space: nowrap; font-size: min(48px, 5.5cqi); } }
.about__quote .w.is-lit { color: var(--text); }
.about__quote .w.is-lit.hl { color: var(--accent); }
.about__text { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; font-size: 15.5px; color: var(--soft); }
.about__text p { margin: 0; }
.about__text p:last-child { color: var(--text); font-weight: 500; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about__photo { position: relative; top: 0; max-width: 420px; } .about__text { grid-template-columns: 1fr; } }

.services { margin-top: 72px; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 64px 1fr auto; gap: 24px; align-items: center; padding: 26px 72px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.service { transition: background .3s; }
.service:hover { background: var(--bg-2); }
.service__n { font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--accent); transition: color .4s; }
.service__title { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.2vw, 32px); line-height: 1; }
.service__t { font-size: 14px; color: var(--muted); text-align: right; transition: color .4s; }
@media (max-width: 1200px) { .service { padding: 26px 32px; } }
@media (max-width: 640px) { .service { grid-template-columns: 40px 1fr; padding: 22px 16px; } .service__t { grid-column: 2; text-align: left; } }

/* ===== Contact ===== */
.contact { position: relative; padding-block: clamp(100px, 16vw, 220px) 40px; overflow: hidden; }
.contact__big { margin: 24px 0 48px; font-family: var(--display); font-weight: 900; font-size: clamp(52px, 8vw, 128px); line-height: .92; text-transform: uppercase; }
.contact__big .line + .line > span { color: var(--accent); }
.contact__row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.magnet { display: inline-flex; align-items: center; gap: 14px; padding: 16px 26px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; font-size: clamp(15px, 1.4vw, 18px); transition: background .3s; }
.magnet:hover { background: var(--accent); }
.magnet svg { transition: transform .5s var(--ease); }
.magnet:hover svg { transform: translateX(4px); }
.ghost { display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px; border-radius: 999px; border: 1px solid var(--line); font-weight: 500; font-size: clamp(14px, 1.3vw, 17px); transition: border-color .3s, color .3s; }
.ghost:hover { border-color: var(--accent); color: var(--accent); }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: clamp(80px, 12vw, 160px); padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer button:hover { color: var(--text); }

/* ===== Project page ===== */
.p-hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 120px var(--gutter) clamp(40px, 6vw, 72px); overflow: hidden; }
.p-hero__bg { position: absolute; inset: 0; }
.p-hero__bg img { width: 100%; height: 115%; object-fit: cover; transform: scale(1.15); transition: transform 2.4s var(--ease); will-change: transform; }
.p-hero.is-in .p-hero__bg img { transform: scale(1); }
.p-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,15,.5) 0%, rgba(10,11,15,.35) 40%, rgba(10,11,15,.94) 85%, var(--bg)), linear-gradient(90deg, rgba(10,11,15,.8), transparent 70%); }
.p-hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.p-hero__logo { width: min(400px, 75%); max-height: 30svh; object-fit: contain; object-position: left; margin-bottom: 32px; transform: translateY(30px) scale(.9); opacity: 0; transition: transform 1.4s var(--ease) .2s, opacity 1s .2s; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.p-hero.is-in .p-hero__logo { transform: none; opacity: 1; }
.p-hero__summary { margin: 0 0 28px; font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.1; max-width: 600px; }
.p-hero__result { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--c); color: var(--bg); font-weight: 600; font-size: 14px; margin-bottom: 28px; }
.p-hero__result::before { content: "★"; }
.p-meta { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px 40px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; }
.p-meta dt { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.p-meta dd { margin: 4px 0 0; font-size: 14px; font-weight: 500; }
.p-hero__shot { justify-self: end; max-height: 72svh; width: auto; border-radius: 12px; box-shadow: 0 40px 80px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.08); }
.p-hero__shot.is-phone { max-height: 76svh; border-radius: 24px; }
.p-hero__case { position: absolute; z-index: 2; top: 96px; align-items: center; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; }
@media (max-width: 900px) {
  .p-hero__inner { grid-template-columns: 1fr; }
  .p-hero__shot { justify-self: start; max-height: 60svh; max-width: 100%; }
  .p-meta { grid-template-columns: repeat(2, auto); }
}

.owned { padding-block: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: 240px 1fr; gap: 24px; border-bottom: 1px solid var(--line); }
.owned__list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; font-weight: 500; background: var(--bg-2); transition: border-color .3s, background .3s, color .3s, opacity .8s var(--ease), transform .8s var(--ease); transition-delay: 0s, 0s, 0s, var(--d, 0s), var(--d, 0s); }
.chip:hover { border-color: var(--c); color: var(--c); }
@media (max-width: 700px) { .owned { grid-template-columns: 1fr; } }

.p-sec { padding-block: clamp(72px, 10vw, 140px); border-bottom: 1px solid var(--line); }
.p-sec__head { display: grid; grid-template-columns: 1fr minmax(260px, 420px); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.p-sec__head .eyebrow::before { background: var(--c); }
.p-sec__title { margin: 14px 0 0; font-family: var(--display); font-weight: 900; font-size: clamp(34px, 4vw, 60px); line-height: .95; text-transform: uppercase; }
.p-sec__intro { margin: 0; font-size: 15.5px; color: var(--soft); }
.p-sec__n { font-family: var(--display); font-weight: 900; color: var(--c); }
@media (max-width: 800px) { .p-sec__head { grid-template-columns: 1fr; } }

.figs { display: grid; gap: clamp(16px, 2vw, 28px); }
.figs--phones { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); align-items: start; }
.figs--phones .fig:nth-child(3n+2) { margin-top: clamp(0px, 6vw, 96px); }
.figs--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.figs--wide .fig:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.figs--board { grid-template-columns: 1fr; }
.figs--small { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: center; }
.fig { margin: 0; }
.fig__frame { position: relative; overflow: hidden; border-radius: 12px; background: var(--card); cursor: zoom-in; }
.figs--phones .fig__frame { border-radius: clamp(14px, 2vw, 28px); }
.fig__frame img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }

.fig figcaption { display: flex; gap: 10px; align-items: baseline; margin-top: 14px; font-size: 14px; font-weight: 600; }
.fig figcaption b { font-size: 11px; color: var(--c); letter-spacing: .14em; font-weight: 600; }
@media (max-width: 700px) {
  .figs--phones { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .figs--phones .fig { scroll-snap-align: center; }
  .figs--phones .fig:nth-child(n) { margin-top: 0; }
  .figs--wide { grid-template-columns: 1fr; }
}
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 40px; }
.note { padding: 24px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.note h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.note p { margin: 0; color: var(--soft); font-size: 15px; }

.next { display: block; position: relative; padding-block: clamp(80px, 12vw, 160px); text-align: center; overflow: hidden; isolation: isolate; }
.next__bg { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .8s, transform 1.4s var(--ease); transform: scale(1.1); }
.next__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.35); }
.next:hover .next__bg { opacity: 1; transform: none; }
.next small { font-size: 12px; letter-spacing: .18em; color: var(--muted); font-weight: 600; }
.next__name { display: block; margin-top: 16px; font-family: var(--display); font-weight: 900; font-size: clamp(44px, 6.5vw, 104px); line-height: .92; text-transform: uppercase; transition: color .4s; }
.next:hover .next__name { color: var(--c); }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; padding-block: 8px; border-block: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--soft); }
.pager a { padding: 14px 0; transition: color .3s; }
.pager a:hover { color: var(--text); }
.pager a:last-child { text-align: right; }
.pager a:nth-child(2) { padding-inline: 18px; border: 1px solid var(--line); border-radius: 999px; padding-block: 10px; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr 1fr; } .pager a:nth-child(2) { grid-column: 1 / -1; grid-row: 2; justify-self: center; margin-bottom: 8px; } }

.back { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--soft); }
.back:hover { color: var(--text); }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; z-index: 96; background: rgba(6,7,10,.94); backdrop-filter: blur(10px); display: grid; grid-template-columns: 56px minmax(0,1fr) 56px; column-gap: 16px; align-items: center; padding: 16px 20px; opacity: 0; transition: opacity .35s; }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 12px; max-height: calc(100svh - 32px); }
/* fill the space: as wide as the column allows, capped by the height left under it (--ar = width / height, set by app.js) */
.lightbox__figure img { width: min(100%, calc((100svh - 80px) * var(--ar, 1.6))); height: auto; max-width: none; max-height: calc(100svh - 80px); border-radius: 10px; transform: scale(.96); transition: transform .5s var(--ease); }
.lightbox.is-open .lightbox__figure img { transform: none; }
.lightbox figcaption { color: var(--soft); font-size: 14px; }
.lightbox__close { position: absolute; top: 16px; right: 20px; font-size: 40px; line-height: 1; width: 48px; height: 48px; }
.lightbox__nav { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); font-size: 18px; transition: background .3s, color .3s; }
.lightbox__nav:hover { background: var(--text); color: var(--bg); }
@media (max-width: 700px) { .lightbox { grid-template-columns: 1fr; padding: 12px; } .lightbox__nav { position: absolute; bottom: 20px; } .lightbox__nav--prev { left: 20px; } .lightbox__nav--next { right: 20px; } }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .hero__col { animation: none; }
}

/* ===== Campaigns ===== */
.section--tight { padding-top: 0; }
.section__note { margin: 0; max-width: 420px; color: var(--muted); font-size: 15px; }
.camps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.camp { display: grid; gap: 6px; text-align: left; padding: 0; }
.camp__media { position: relative; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: var(--card); margin-bottom: 10px; }
.camp__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .4s; }
.camp:hover .camp__media img { transform: scale(1.03); filter: brightness(.85); }
.camp__tag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(10,11,15,.7); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.camp__client { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.camp__title { font-family: var(--display); font-weight: 800; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.05; }
.camp__sub { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .camps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .camps { grid-template-columns: 1fr; } }
.lightbox figcaption { max-width: 760px; text-align: center; }
.lightbox figcaption a { color: var(--accent); white-space: nowrap; }
.lightbox__count { color: var(--muted); margin-left: 8px; font-variant-numeric: tabular-nums; }
.lightbox.is-single .lightbox__nav { visibility: hidden; }

/* ===== Digital products (no logo) ===== */
.p-hero__name { margin: 0 0 24px; font-family: var(--display); font-weight: 800; font-size: clamp(48px, 6vw, 96px); line-height: .95; text-transform: uppercase; }
.p-hero__credits { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.p-hero__credits a { color: var(--c); }
.figs--board .fig__frame img { max-height: 160vh; width: auto; margin-inline: auto; }
.figs--board .fig__frame { background: transparent; }
