/* ==========================================================================
   Fadi Awwad — Portfolio
   ========================================================================== */
:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --soft: #f1f1f1;
  --accent: #dc396e;            /* Oreo pink, sampled from the hero Oreo poster (was signal orange #ff4d1f) */
  --pad: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  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; }
::selection { background: var(--fg); color: var(--bg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Display type ------------------------------------------------------------ */
.display {
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.86;
  font-variation-settings: "opsz" 32;
}
.h2 {
  font-size: clamp(40px, 7.4vw, 120px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.92;
  margin: 0;
  font-variation-settings: "opsz" 32;
}
.h3 {
  font-size: clamp(26px, 3.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0;
  font-variation-settings: "opsz" 32;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }

/* Intro curtain ----------------------------------------------------------- */
.intro {
  position: fixed; inset: 0; z-index: 200;
  background: var(--fg); color: var(--bg);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: var(--pad);
  transition: transform 1.1s var(--ease-io);
}
.intro__name { font-size: clamp(28px, 4vw, 56px); font-weight: 800; letter-spacing: -0.04em; overflow: hidden; }
.intro__name span { display: inline-block; transform: translateY(110%); animation: rise .9s var(--ease) .1s forwards; }
.intro__count { font-size: clamp(28px, 4vw, 56px); font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.is-loaded .intro { transform: translateY(-100%); }
@keyframes rise { to { transform: none; } }

/* Header ------------------------------------------------------------------ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--pad);
  mix-blend-mode: difference; color: #fff;
  pointer-events: none;
}
.header > * { pointer-events: auto; }
.logo { font-weight: 800; font-size: 15px; letter-spacing: -0.02em; }
.logo sup { font-size: 9px; font-weight: 700; margin-left: 1px; }
.menu-btn { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; display: inline-flex; gap: 10px; align-items: center; }
.menu-btn__icon { width: 18px; height: 10px; position: relative; }
.menu-btn__icon::before, .menu-btn__icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.menu-btn__icon::before { top: 1px; }
.menu-btn__icon::after { top: 7px; }
.menu-open .menu-btn__icon::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-btn__icon::after { top: 4px; transform: rotate(-45deg); }

/* Menu overlay ------------------------------------------------------------ */
.menu {
  position: fixed; inset: 0; z-index: 80;
  background: var(--fg); color: var(--bg);
  display: grid; place-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s var(--ease-io);
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu nav { display: flex; flex-direction: column; align-items: center; gap: .1em; }
.menu a {
  font-size: clamp(48px, 9vw, 140px); font-weight: 800; letter-spacing: -0.05em; line-height: 1;
  overflow: hidden; display: block;
}
.menu a span { display: inline-block; transform: translateY(105%); transition: transform .8s var(--ease); }
.menu-open .menu a span { transform: none; }
.menu-open .menu a:nth-child(2) span { transition-delay: .06s; }
.menu-open .menu a:nth-child(3) span { transition-delay: .12s; }
.menu-open .menu a:nth-child(4) span { transition-delay: .18s; }
.menu a:hover span { font-style: italic; }
.menu__foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: var(--pad);
  display: flex; justify-content: space-between; font-size: 13px; color: #9a9a9a;
}

/* Cursor ------------------------------------------------------------------ */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 300;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--fg);
  pointer-events: none;
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s, opacity .3s;
  will-change: transform;
}
.cursor__label {
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  opacity: 0; transform: scale(.6); transition: opacity .3s, transform .45s var(--ease);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.cursor__label svg { width: 22px; height: 22px; }
.cursor.is-big { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
.cursor.is-big .cursor__label { opacity: 1; transform: none; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--fg); }
.cursor.is-hidden { opacity: 0; }
.cursor.on-dark { background: #fff; }
.cursor.on-dark .cursor__label { color: var(--fg); }
.cursor.on-dark.is-link { background: transparent; box-shadow: inset 0 0 0 1.5px #fff; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh;
  padding: 72px var(--pad) var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}
.hero__intro {
  grid-column: 1; max-width: 380px;
  font-size: clamp(15px, 1.25vw, 18px); font-weight: 500; line-height: 1.4; letter-spacing: -0.01em;
}
.hero__meta {
  grid-column: 2; justify-self: end; text-align: right;
  font-size: 13px; font-weight: 600; line-height: 1.5;
}
.hero__meta .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-right: 6px; box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.stack {
  position: absolute; left: 50%; top: 47%;
  width: clamp(200px, 23vw, 360px); aspect-ratio: 4 / 5;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.stack__card {
  position: absolute; inset: 0;
  overflow: hidden; background: var(--soft);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.35);
  transition: transform 1s var(--ease), opacity .6s;
  will-change: transform;
}
.stack__card img { width: 100%; height: 100%; object-fit: cover; }
.hero__name {
  grid-column: 1 / -1; align-self: end;
  font-weight: 900;
  margin: 0; white-space: nowrap;
  position: relative; z-index: 3;
}
.hero__name .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__name .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease) .55s; }
.is-loaded .hero__name .line > span { transform: none; }
.hero__foot {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: end;
  font-size: 13px; font-weight: 600; margin-top: 14px;
}
.scroll-hint { display: inline-flex; align-items: center; gap: 8px; }
.scroll-hint i { width: 1px; height: 28px; background: currentColor; transform-origin: top; animation: hint 1.8s var(--ease-io) infinite; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Statement ---------------------------------------------------------------- */
.statement { padding: clamp(80px, 14vw, 200px) var(--pad) clamp(60px, 9vw, 140px); }
.statement__text {
  font-size: clamp(30px, 4.6vw, 76px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02;
  max-width: 15.5em; margin: 0;
  font-variation-settings: "opsz" 32;
}
.statement__text .w { opacity: .14; transition: opacity .25s linear; }
.statement__text .w.on { opacity: 1; }
.about {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--pad);
  margin-top: clamp(48px, 7vw, 110px);
}
.about__label { grid-column: 1 / span 3; }
.about__body { grid-column: 5 / span 5; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; }
.about__body p { margin: 0 0 1.1em; }
.about__langs { grid-column: 11 / span 2; text-align: right; font-size: 13px; font-weight: 600; }

/* Showreel ---------------------------------------------------------------- */
.reel { padding: 0 var(--pad); }
.reel__frame {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; background: #120a2a;
  transform-origin: center;
  border-radius: 0;
}
.reel__frame video, .reel__frame img { width: 100%; height: 100%; object-fit: cover; }
.reel__cap { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; font-weight: 600; }

/* Capabilities ------------------------------------------------------------ */
.caps { padding: clamp(90px, 12vw, 180px) var(--pad) 40px; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--pad); }
.caps__head { grid-column: 1 / span 3; position: sticky; top: 80px; align-self: start; }
.caps__list { grid-column: 4 / -1; }
.cap { padding: 0 0 clamp(56px, 7vw, 100px); }
.cap__letter { font-size: clamp(22px, 2vw, 30px); color: #c4c4c4; font-weight: 500; margin-bottom: 18px; }
.cap__text { font-size: clamp(26px, 3.3vw, 52px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.06; margin: 0 0 26px; max-width: 17em; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pills li {
  background: var(--soft); border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 600;
  transition: background .3s, color .3s;
}
.pills li:hover { background: var(--fg); color: var(--bg); }

/* Big words with image mask ------------------------------------------------- */
.words { position: relative; }
.word { position: relative; }
.word__sticky {
  position: relative; min-height: 100vh; overflow: hidden;
  display: grid; grid-template-columns: minmax(240px, 4fr) 8fr; align-items: center;
  padding: 90px var(--pad); gap: var(--pad);
}
.word__copy { max-width: 360px; position: relative; z-index: 2; }
.word__copy .h3 { margin-bottom: 18px; }
.word__copy p { margin: 0 0 22px; color: #3b3b3b; }
.word__index { font-size: 13px; font-weight: 600; margin-bottom: 26px; display: block; }
.word__mask { position: relative; justify-self: end; width: 100%; text-align: right; }
[data-fit] { display: inline-block; }
.word__layer {
  display: inline-block; white-space: nowrap;
  font-weight: 900; letter-spacing: -0.04em; line-height: .8;
  font-variation-settings: "opsz" 32;
  color: transparent;
  -webkit-background-clip: text; background-clip: text;
  background-size: cover; background-position: 50% 50%;
  transition: opacity .8s var(--ease);
  padding-right: .04em;
}
.word__layer + .word__layer { position: absolute; top: 0; right: 0; opacity: 0; }
.word__layer.is-on { opacity: 1; }
.word__counter { position: absolute; right: var(--pad); bottom: var(--pad); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.word__bar { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--pad) + 26px); height: 1px; background: var(--line); }
.word__bar i { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0); }

/* Work -------------------------------------------------------------------- */
.work { padding: clamp(90px, 12vw, 180px) 0 0; }
.work__head { padding: 0 var(--pad); display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 70px); }
.work__head p { max-width: 340px; margin: 0; }
.work__filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 var(--pad); margin-bottom: 22px; }
.chip { border-radius: 999px; padding: 8px 15px; font-size: 13px; font-weight: 600; background: var(--soft); transition: background .3s, color .3s; }
.chip.is-on, .chip:hover { background: var(--fg); color: var(--bg); }
/* Awards ------------------------------------------------------------------ */
.awards { padding: clamp(60px, 8vw, 120px) var(--pad) clamp(90px, 12vw, 180px); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--pad); }
.awards__head { grid-column: 1 / span 4; }
.awards__head p { margin: 18px 0 0; max-width: 300px; }
.awards__list { grid-column: 6 / -1; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fg); }
.award { display: grid; grid-template-columns: 1.4fr 1.2fr .7fr .5fr; gap: 16px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.award__name { font-size: clamp(20px, 2vw, 30px); font-weight: 700; letter-spacing: -0.035em; }
.award__cat, .award__year { font-size: 14px; color: var(--muted); font-weight: 500; }
.award__level { font-size: 14px; font-weight: 700; text-align: right; }

/* Contact / footer -------------------------------------------------------- */
.contact { background: var(--fg); color: var(--bg); padding: clamp(90px, 12vw, 170px) var(--pad) var(--pad); position: relative; overflow: hidden; }
.contact .eyebrow { color: #9a9a9a; }
.contact__title { font-size: clamp(44px, 8.6vw, 150px); font-weight: 800; letter-spacing: -0.055em; line-height: .9; margin: 18px 0 clamp(40px, 6vw, 80px); max-width: 11em; font-variation-settings: "opsz" 32; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--bg); color: var(--fg);
  border-radius: 999px; padding: 18px 28px;
  font-size: clamp(16px, 1.5vw, 22px); font-weight: 700; letter-spacing: -0.02em;
  transition: transform .5s var(--ease);
}
.btn svg { width: 20px; height: 20px; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(5px) rotate(-45deg); }
.btn--ghost { background: transparent; color: var(--bg); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.copy-note { font-size: 13px; color: #9a9a9a; margin-left: 6px; min-width: 70px; }
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--pad); margin-top: clamp(80px, 10vw, 150px); font-size: 14px; }
.contact__grid > div:nth-child(1) { grid-column: 1 / span 3; }
.contact__grid > div:nth-child(2) { grid-column: 4 / span 3; }
.contact__grid > div:nth-child(3) { grid-column: 7 / span 3; }
.contact__grid > div:nth-child(4) { grid-column: 10 / span 3; text-align: right; }
.contact__grid span { display: block; color: #9a9a9a; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.contact__grid a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-name { margin: clamp(50px, 7vw, 100px) 0 0; white-space: nowrap; color: var(--bg); font-weight: 900; }
.footer-name .line { display: block; }  /* block so the fit script can measure the width (was inline, so the name sized to 0) */
.footer-bar { display: flex; justify-content: space-between; font-size: 13px; color: #9a9a9a; margin-top: 18px; }
.to-top:hover { color: #fff; }

/* Lightbox ---------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 150; background: rgba(10,10,10,.96);
  display: grid; place-items: center; padding: 60px var(--pad);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.lightbox.is-on { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; transform: scale(.96); transition: transform .6s var(--ease); }
.lightbox.is-on img { transform: none; }
.lightbox__close { position: absolute; top: 18px; right: var(--pad); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.lightbox__nav { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 24px; color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }


/* Cursor-driven work wall ------------------------------------------------- */
.wall { position: relative; height: 100vh; min-height: 560px; overflow: hidden; background: var(--bg); }
.wall__viewport { position: absolute; inset: 0; overflow: hidden; }
.wall__track {
  position: absolute; top: -9vh; left: 0; height: 118vh;
  display: flex; gap: 10px; padding: 0 10px;
  will-change: transform;
}
.wall__col { display: flex; flex-direction: column; gap: 10px; height: 100%; flex: none; will-change: transform; }
.wall__tile { position: relative; overflow: hidden; min-height: 0; background: var(--soft); display: block; width: 100%; }
.wall__tile img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease), filter .6s; }
.wall__tile:hover img { transform: scale(1.14); }
.wall:hover .wall__tile img { filter: grayscale(.15) brightness(.97); }
.wall:hover .wall__tile:hover img { filter: none; }
.wall__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: clamp(40px, 6vw, 90px) var(--pad) clamp(28px, 3.5vw, 50px); }
.wall__head p { max-width: 320px; margin: 0; }
.wall__count { font-size: .22em; letter-spacing: 0; vertical-align: top; margin-left: .15em; font-weight: 700; position: relative; top: .35em; }
.wall__overlay { position: absolute; left: 0; right: 0; bottom: var(--pad); display: flex; justify-content: center; pointer-events: none; z-index: 2; }
.wall__title { font-size: clamp(64px, 15vw, 260px); margin: 0; }
.wall__title sup { font-size: .16em; letter-spacing: 0; vertical-align: top; margin-left: .2em; font-weight: 700; position: relative; top: .5em; }
.wall__hint { margin: 0; font-size: 12px; font-weight: 600; background: var(--fg); color: var(--bg); border-radius: 999px; padding: 9px 16px; }
.hint-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .wall__viewport { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .wall__viewport::-webkit-scrollbar { display: none; }
  .wall__track { position: relative; top: 0; height: 100%; }
  .wall { height: 72vh; }
  .wall__head { flex-direction: column; align-items: start; }
  .wall__col { width: auto !important; min-width: 62vw; }
  .hint-desk { display: none; } .hint-touch { display: inline; }
}

/* Outline typography over cut-out (sticky parallax) ----------------------- */
.ol { position: relative; height: 230vh; background: #e7e4df; }
.ol__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.ol__text {
  position: absolute; left: var(--pad); right: var(--pad); top: 0;
  white-space: nowrap; will-change: transform;
}
.ol__word {
  display: inline-block;
  font-weight: 900; letter-spacing: -0.065em; line-height: .8;
  font-variation-settings: "opsz" 32;
  padding-right: .05em;
}
.ol__solid .ol__word { color: var(--fg); }
.ol__stroke .ol__word { color: transparent; -webkit-text-stroke: 1.6px #fff; text-stroke: 1.6px #fff; }
.ol__subject {
  position: absolute; left: 50%; bottom: -2vh; height: 92vh; width: auto; max-width: none;
  transform: translateX(-38%);
  z-index: 2; pointer-events: none; user-select: none;
  filter: drop-shadow(0 40px 50px rgba(0,0,0,.18));
}
.ol__mask {
  position: absolute; z-index: 3; overflow: hidden; pointer-events: none;
  -webkit-mask-image: url(../media/oreo/oreo-cutout.webp); mask-image: url(../media/oreo/oreo-cutout.webp);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.ol__inner { position: absolute; }
.ol__copy { position: absolute; left: var(--pad); bottom: var(--pad); z-index: 4; max-width: 320px; }
.ol__copy p { margin: 10px 0 16px; font-size: 15px; line-height: 1.5; }
.ol__link { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.ol__index { position: absolute; right: var(--pad); bottom: var(--pad); font-size: 13px; font-weight: 600; z-index: 4; }
@media (max-width: 900px) {
  .ol { height: 190vh; }
  .ol__subject { height: 62vh; bottom: 18vh; transform: translateX(-50%); }
  .ol__copy { right: var(--pad); max-width: none; }
  .ol__index { display: none; }
}



/* Project galleries --------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; align-items: start; }
.g { position: relative; overflow: hidden; background: var(--soft); grid-column: span 12; margin: 0; }
.g--6 { grid-column: span 6; }
.g--4 { grid-column: span 4; }
.g--8 { grid-column: span 8; }
.g--c6 { grid-column: 4 / span 6; }
.g--c8 { grid-column: 3 / span 8; }
.g img, .g video { display: block; width: 100%; height: auto; max-width: 100%; transition: transform 1.2s var(--ease); }
.g[data-cursor="zoom"]:hover img { transform: scale(1.02); }
.g--sq { aspect-ratio: 1; }
.g--sq img, .g--sq video { height: 100%; object-fit: cover; }
.g--stack { background: #000; }
@media (max-width: 900px) {
  .g--6, .g--4, .g--8, .g--c6, .g--c8 { grid-column: span 12; }
  .g--4.g--sq { grid-column: span 6; }
}

/* Pill button with shrink-to-circle hover ------------------------------- */
.fx {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 46px; padding: 0 6px 0 22px; border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: -0.01em; color: #fff;
  isolation: isolate; white-space: nowrap;
}
.fx__bg { position: absolute; inset: 0; border-radius: 999px; background: var(--fg); z-index: -1; clip-path: inset(0 0 0 0 round 999px); }
.fx__txt { position: relative; }
.fx__ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--fg); transition: transform .5s var(--ease); }
.fx__ic svg { width: 16px; height: 16px; }
.fx__bg { transition: clip-path .75s var(--ease-io); }
.fx__txt { transition: color .5s var(--ease); }
.fx__ic { transition: background-color .5s var(--ease), color .5s var(--ease), transform .75s var(--ease-io); }
.fx:hover .fx__bg, .fx:focus-visible .fx__bg { clip-path: inset(6px 6px 6px calc(100% - 40px) round 999px); }
.fx:hover .fx__txt, .fx:focus-visible .fx__txt { color: var(--fg); }
.fx:hover .fx__ic, .fx:focus-visible .fx__ic { background: transparent; color: #fff; transform: rotate(-45deg); }
.fx--light { color: var(--fg); }
.fx--light .fx__bg { background: #fff; }
.fx--light .fx__ic { background: var(--fg); color: #fff; }
.fx--light:hover .fx__txt, .fx--light:focus-visible .fx__txt { color: #fff; }
.fx--light:hover .fx__ic, .fx--light:focus-visible .fx__ic { background: transparent; color: var(--fg); }
.contact .fx { height: 60px; font-size: clamp(16px, 1.4vw, 20px); padding-left: 28px; }
.contact .fx__ic { width: 46px; height: 46px; }
.contact .fx:hover .fx__bg, .contact .fx:focus-visible .fx__bg { clip-path: inset(7px 7px 7px calc(100% - 53px) round 999px); }

/* Nivea film: sticky video over sliding type ---------------------------- */
.film { position: relative; height: 260vh; }
.film__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.film__rows { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 1vw; pointer-events: none; }
.film__row { white-space: nowrap; font-weight: 900; font-size: clamp(80px, 13vw, 230px); letter-spacing: -0.06em; line-height: .9; font-variation-settings: "opsz" 32; will-change: transform; }
.film__row span { display: inline-block; }
.film__row--a { color: var(--fg); }
.film__row--b { color: #ececec; }
.film__frame { position: relative; z-index: 2; width: min(48vw, 760px); aspect-ratio: 16 / 9; overflow: hidden; background: #1f5fe0; will-change: transform; }
.film__frame video { width: 100%; height: 100%; object-fit: cover; }
.film__cap { position: absolute; left: var(--pad); right: var(--pad); bottom: var(--pad); display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; z-index: 3; }

/* Work: card grid --------------------------------------------------------- */
.chip sup { font-size: 9px; margin-left: 2px; opacity: .6; }
.cards { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 3vw, 44px) clamp(14px, 1.4vw, 22px); padding: 10px var(--pad) 0; }
.card { text-align: left; display: block; align-self: start; }
.card--big { grid-column: span 6; }
.card--small { grid-column: span 6; }

.cards .card:nth-child(4n+3) { margin-top: 0; }
.card.is-hidden { display: none; }
.card__media { display: block; overflow: hidden; background: var(--soft); position: relative; }
.card--big .card__media { aspect-ratio: 4 / 3; }
.card--small .card__media { aspect-ratio: 4 / 3; }
.card__media img, .card__media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease), filter .6s; }
.card:hover .card__media img, .card:hover .card__media video { transform: scale(1.1); }
.card__media::after { content: ""; position: absolute; inset: 0; background: var(--fg); transform: scaleX(1); transform-origin: right; transition: transform 1.3s var(--ease-io); }
.card.in .card__media::after { transform: scaleX(0); }
.card__info { display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 10px; padding-top: 14px; }
.card__num { font-size: 12px; font-weight: 600; color: var(--muted); }
.card__title { font-size: clamp(20px, 1.9vw, 30px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.card__type { font-size: 13px; color: var(--muted); font-weight: 500; text-align: right; }
.card .card__title { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .6s var(--ease); }
.card:hover .card__title { background-size: 100% 2px; }

/* Project viewer (full-screen) ------------------------------------------- */
.viewer { position: fixed; inset: 0; z-index: 120; background: var(--bg); display: flex; flex-direction: column; clip-path: inset(100% 0 0 0); transition: clip-path .9s var(--ease-io); }
.viewer[hidden] { display: none; }
.viewer.is-on { clip-path: inset(0 0 0 0); }
.viewer__bar { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--pad); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; flex: none; }
.viewer__count b { font-weight: 800; }
.viewer__nav { display: flex; gap: 8px; }
.viewer__nav button { padding: 9px 16px; border-radius: 999px; background: var(--soft); text-transform: uppercase; letter-spacing: .04em; font-size: 12px; transition: background .3s, color .3s; }
.viewer__nav button:hover { background: var(--fg); color: var(--bg); }
.viewer__nav .viewer__close { background: var(--fg); color: var(--bg); }
.viewer__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.pv { padding: clamp(30px, 5vw, 70px) var(--pad) 0; }
.pv__kicker { font-size: 13px; font-weight: 600; color: var(--muted); }
.pv__title { font-size: clamp(56px, 11vw, 200px); margin: 10px 0 clamp(30px, 4vw, 60px); }
.pv__info { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--pad); margin-bottom: clamp(40px, 5vw, 80px); }
.pv__lead { grid-column: 1 / span 7; font-size: clamp(20px, 2vw, 32px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.22; margin: 0; }
.pv__desc { grid-column: 1 / span 6; margin: 0; color: #3b3b3b; font-size: 15px; line-height: 1.65; }
.pv__meta { grid-column: 9 / span 4; grid-row: 1 / span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; align-content: start; margin: 0; }
.pv__meta dt { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.pv__meta dd { margin: 0; font-size: 14px; font-weight: 600; }
.pv .g { clip-path: inset(0 100% 0 0); transition: clip-path 1.3s var(--ease-io); }
.pv .g.in { clip-path: inset(0 0 0 0); }
.pv__next { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--pad); width: 100%; text-align: left; margin-top: clamp(70px, 9vw, 140px); padding: clamp(40px, 5vw, 70px) 0 clamp(40px, 5vw, 70px); border-top: 1px solid var(--fg); }
.pv__next-label { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: var(--muted); }
.pv__next-title { font-size: clamp(48px, 8vw, 140px); transition: transform .8s var(--ease); }
.pv__next:hover .pv__next-title { transform: translateX(16px); }
.pv__next-img { width: clamp(140px, 18vw, 280px); aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.pv__next-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pv__next:hover .pv__next-img img { transform: scale(1.08); }
.viewer-open { overflow: hidden; }

/* Brands: title fades, logos rise in -------------------------------------- */
.brands { position: relative; height: 240vh; }
.brands__sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; padding: 0 var(--pad); }
.brands__title { grid-area: 1 / 1; text-align: center; font-size: clamp(56px, 9.5vw, 170px); margin: 0; color: var(--fg); transition: color .6s; will-change: transform; }
.brands.is-dim .brands__title { color: #ededed; }
.brands__grid { grid-area: 1 / 1; list-style: none; margin: 0; padding: 0; width: min(1200px, 100%); display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 40px); align-items: center; z-index: 2; }
.logo-cell { display: grid; place-items: center; height: clamp(46px, 5vw, 76px); opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.brands.is-dim .logo-cell { opacity: 1; transform: none; }
.logo-cell img { max-height: clamp(26px, 3vw, 46px); max-width: 78%; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .55; transition: opacity .3s, transform .5s var(--ease); }
.logo-cell img.tall { max-height: clamp(40px, 4.4vw, 70px); }
.logo-cell:hover img { opacity: 1; transform: scale(1.08); }
.brands__note { position: absolute; left: var(--pad); bottom: var(--pad); margin: 0; font-size: 13px; max-width: 260px; }

/* Expanding image (left → right) ----------------------------------------- */
.expand { position: relative; height: 260vh; }
.expand__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.expand__img { position: absolute; inset: 0; clip-path: inset(30vh 62vw 30vh var(--pad)); will-change: clip-path; }
.expand__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); will-change: transform; }
.expand__copy { position: absolute; left: var(--pad); right: var(--pad); bottom: var(--pad); color: #fff; opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); z-index: 2; }
.expand__copy::before { content: ""; position: absolute; left: calc(-1 * var(--pad)); right: calc(-1 * var(--pad)); bottom: calc(-1 * var(--pad)); height: 70vh; background: linear-gradient(transparent, rgba(0,0,0,.55)); z-index: -1; pointer-events: none; }
.expand.is-full .expand__copy { opacity: 1; transform: none; }
.expand__title { font-size: clamp(48px, 8vw, 140px); margin: 12px 0 24px; color: #fff; }
.expand__label { position: absolute; top: calc(30vh - 30px); left: var(--pad); font-size: 13px; font-weight: 600; }

@media (max-width: 900px) {
  .film { height: 200vh; }
  .film__frame { width: 82vw; }
  .film__row { font-size: 24vw; }
  .film__rows { gap: 32vh; }
  .film__cap { flex-direction: column; gap: 2px; }
  .cards { gap: 34px; }
  .card--big, .card--small { grid-column: 1 / -1; }
  .cards .card:nth-child(4n+2) { margin-top: 0; }
  .card--small .card__media { aspect-ratio: 4 / 3; }
  .card__type { display: none; }
  .pv__lead, .pv__desc, .pv__meta { grid-column: 1 / -1; grid-row: auto; }
  .viewer__nav .viewer__prev, .viewer__nav .viewer__next { display: none; }
  .pv__next { grid-template-columns: 1fr; }
  .pv__next-img { width: 100%; }
  .brands { height: auto; }
  .brands__sticky { position: relative; height: auto; display: block; padding: 90px var(--pad); }
  .brands__title { text-align: left; margin-bottom: 40px; }
  .brands.is-dim .brands__title { color: var(--fg); }
  .brands__grid { grid-template-columns: repeat(3, 1fr); }
  .logo-cell { opacity: 1; transform: none; }
  .brands__note { position: static; margin-top: 30px; }
  .expand { height: 200vh; }
}

/* Reveal utilities -------------------------------------------------------- */
.reveal { overflow: hidden; display: block; }
.reveal > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.reveal.in > span { transform: none; }
.fade { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.fade.in { opacity: 1; transform: none; }
.parallax { overflow: hidden; }
.parallax > img, .parallax > video { transform: scale(1.15); will-change: transform; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero__meta { grid-column: 1; justify-self: start; text-align: left; margin-top: 18px; }
  .stack { top: 52%; width: 56vw; }
  .about__label, .about__body, .about__langs { grid-column: 1 / -1; text-align: left; }
  .caps__head, .caps__list { grid-column: 1 / -1; position: static; }
  .word { height: auto; }
  .word__sticky { min-height: 0; grid-template-columns: 1fr; padding: 70px var(--pad); }
  .word__mask { order: -1; text-align: left; }
  .word__layer + .word__layer { left: 0; right: auto; }
  .word__counter, .word__bar { display: none; }
  .project__row { grid-template-columns: 40px 1fr 30px; }
  .hero__foot .scroll-hint { display: none; }
  .hero__foot { gap: 16px; }
  .reel__cap { flex-direction: column; gap: 2px; }
  .project__client, .project__type { display: none; }
  .project__lead, .project__desc, .project__meta { grid-column: 1 / -1; grid-row: auto; }
  .project__meta { margin-top: 24px; }
  .g--6, .g--4, .g--8, .g--c6, .g--c8 { grid-column: span 12; }
  .g--4.g--sq { grid-column: span 6; }
  .gallery.two-up .g--6 { grid-column: span 6; }
  .clients__head .h2, .clients__head p { grid-column: 1 / -1; }
  .awards__head, .awards__list { grid-column: 1 / -1; }
  .award { grid-template-columns: 1fr auto; }
  .award__cat { grid-column: 1; grid-row: 2; }
  .award__year { display: none; }
  .award__level { grid-row: 1 / span 2; align-self: center; }
  .contact__grid > div { grid-column: 1 / -1 !important; text-align: left !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track { animation: none; }
  .parallax > img, .parallax > video { transform: none !important; }
}

/* Awards (simple strip) ---------------------------------------------------- */
.awards { display: block; padding: clamp(90px, 11vw, 160px) var(--pad); }
.awards__top { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 22px; }
.awards__top h2 { margin: 0; }
.awards__top p { margin: 0; font-size: 13px; }
.aw-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--fg); }
.aw { padding: 22px 18px 0 0; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); padding-left: 18px; }
.aw:first-child { padding-left: 0; }
.aw:last-child { border-right: 0; }
.aw__year { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 26px; }
.aw__level { font-size: clamp(30px, 3.4vw, 56px); font-weight: 800; letter-spacing: -0.05em; line-height: .95; font-variation-settings: "opsz" 32; }
.aw__name { font-size: 15px; font-weight: 700; margin-top: 10px; }
.aw__cat { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .awards__top { flex-direction: column; }
  .aw-list { grid-template-columns: 1fr 1fr; }
  .aw { border-right: 0; padding: 20px 0; border-bottom: 1px solid var(--line); }
  .aw__year { margin-bottom: 12px; }
}

/* View all CTA + All projects page ----------------------------------------- */
.work__more { display: flex; justify-content: center; padding: clamp(50px, 6vw, 90px) var(--pad) 0; }
.allwork { padding-bottom: clamp(90px, 11vw, 160px); }
.allwork__head { padding: 110px var(--pad) clamp(30px, 4vw, 50px); }
.allwork__back { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; display: inline-block; margin-bottom: 26px; }
.allwork__back:hover { text-decoration: underline; text-underline-offset: 4px; }
.allwork__title { font-size: clamp(56px, 12vw, 210px); margin: 0 0 18px; }
.allwork__head p { margin: 0; max-width: 420px; }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(26px, 3vw, 44px) clamp(12px, 1.2vw, 18px); padding: 10px var(--pad) 0; }
.card--sm .card__media { aspect-ratio: 4 / 3; }
.card--sm .card__info { grid-template-columns: 28px 1fr; padding-top: 12px; }
.card--sm .card__title { font-size: clamp(17px, 1.35vw, 21px); letter-spacing: -0.03em; }
.card__sub { display: block; padding-left: 38px; margin-top: 3px; font-size: 12px; color: var(--muted); font-weight: 500; }
@media (max-width: 1100px) { .cards4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .cards4 { grid-template-columns: repeat(2, 1fr); } .card__sub { padding-left: 0; } .card--sm .card__info { grid-template-columns: 1fr; } .card--sm .card__num { display: none; } }

/* Award label + film videos ---------------------------------------------- */
.card__award {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--fg); border-radius: 999px; padding: 6px 11px 6px 9px;
  font-size: 11px; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.35);
}
.card__award svg { width: 12px; height: 12px; }
.card--sm .card__award { top: 8px; left: 8px; padding: 5px 9px 5px 7px; font-size: 10px; }
.pv__award { display: inline-block; margin-left: 10px; background: var(--fg); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 700; }
.g--film { background: #000; }
.g--film video { aspect-ratio: 4 / 3; object-fit: contain; }
.card__media::after { z-index: 3; }

/* What I do — pinned list + fading statements ----------------------------- */
.caps2 { position: relative; height: 190vh; }
.caps2__sticky { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--pad); padding: 0 var(--pad); align-items: center; }
.caps2__left { grid-column: 1 / span 4; align-self: center; }
.caps2__left .eyebrow { margin: 0 0 28px; }
.caps2__list { list-style: none; margin: 0; padding: 0; }
.caps2__item { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; text-align: left; color: #c9c9c9; transition: color .5s var(--ease); }
.caps2__item:hover { color: #7a7a7a; }
.caps2__item.is-on { color: var(--fg); }
.caps2__n { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.caps2__t { font-size: clamp(28px, 3.2vw, 52px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-variation-settings: "opsz" 32; transition: transform .6s var(--ease); }
.caps2__item.is-on .caps2__t { transform: translateX(8px); }
.caps2__progress { margin-top: 30px; width: 180px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.caps2__progress i { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0); }
.caps2__right { grid-column: 6 / -1; position: relative; min-height: 46vh; }
.caps2__panel { position: absolute; left: 0; right: 0; top: 50%; opacity: 0; transform: translateY(calc(-50% + 30px)); transition: opacity .7s var(--ease), transform .9s var(--ease); pointer-events: none; }
.caps2__panel.is-on { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.caps2__panel .pills li { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease), background .3s, color .3s; }
.caps2__panel.is-on .pills li { opacity: 1; transform: none; }
.caps2__panel.is-on .pills li:nth-child(2) { transition-delay: .05s; } .caps2__panel.is-on .pills li:nth-child(3) { transition-delay: .1s; }
.caps2__panel.is-on .pills li:nth-child(4) { transition-delay: .15s; } .caps2__panel.is-on .pills li:nth-child(5) { transition-delay: .2s; } .caps2__panel.is-on .pills li:nth-child(6) { transition-delay: .25s; }
.caps2__mt { display: none; }
.caps2__text { font-size: clamp(26px, 3.3vw, 54px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.06; margin: 0 0 28px; font-variation-settings: "opsz" 32; }
@media (max-width: 900px) {
  .caps2 { height: auto; }
  .caps2__sticky { position: relative; height: auto; display: block; padding: 90px var(--pad); }
  .caps2__list, .caps2__progress { display: none; }
  .caps2__right { min-height: 0; }
  .caps2__panel { position: relative; top: auto; transform: none !important; opacity: 1; pointer-events: auto; margin-bottom: 60px; }
  .caps2__panel .pills li { opacity: 1; transform: none; }
  .caps2__mt { display: block; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
}

/* external film tiles (Behance-hosted videos) */
.g--watch { display: block; color: #fff; text-decoration: none; }
.g--watch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 45%); pointer-events: none; }
.g--watch:hover img { transform: scale(1.03); }
.g__watch { position: absolute; left: 20px; bottom: 18px; z-index: 1; display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.g__play { width: 44px; height: 44px; border-radius: 50%; background: #fff; position: relative; flex: none; transition: transform .5s var(--ease); }
.g__play::before { content: ""; position: absolute; left: 17px; top: 14px; border-left: 13px solid #000; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.g--watch:hover .g__play { transform: scale(1.12); }

/* Hero: stack sits in its own row so the name never overlaps it */
.hero { grid-template-rows: auto minmax(0, 1fr) auto auto; }
.hero__intro, .hero__meta { grid-row: 1; }
.stack {
  position: relative; left: auto; top: auto; transform: none;
  grid-column: 1 / -1; grid-row: 2; justify-self: center; align-self: center;
  width: auto; height: min(58vh, 28.75vw); max-height: 100%; min-height: 200px;
  aspect-ratio: 4 / 5; margin: 28px 0 40px;
}
.hero__name { grid-row: 3; }
.hero__foot { grid-row: 4; }
@media (max-width: 900px) {
  .hero { grid-template-rows: auto auto minmax(0, 1fr) auto auto; }
  .hero__meta { grid-row: 2; }
  .stack { grid-row: 3; top: auto; width: auto; height: min(52vh, 70vw); margin: 32px 0 36px; }
  .hero__name { grid-row: 4; }
  .hero__foot { grid-row: 5; }
}
.hero { height: 100svh; min-height: 560px; }
.stack { height: min(58vh, 28.75vw, 100%); }
@media (max-width: 900px) { .stack { height: min(52vh, 70vw, 100%); } }
.stack { margin: 0; align-self: start; margin-top: 24px; height: min(58vh, 28.75vw, calc(100% - 84px)); min-height: 160px; }
@media (max-width: 900px) { .stack { height: min(52vh, 70vw, calc(100% - 84px)); } }
.stack.is-spreading .stack__card { transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .4s; }

/* Mobile: hide the Index wall; "What I do" becomes a swipe carousel */
.caps2__dots { display: none; }
@media (max-width: 900px) {
  .wall { display: none; }
  .caps2__sticky { padding: 90px 0; }
  .caps2__left { padding: 0 var(--pad); }
  .caps2__right {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 0 var(--pad); scroll-padding: 0 var(--pad); scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .caps2__right::-webkit-scrollbar { display: none; }
  .caps2__panel {
    flex: 0 0 84%; scroll-snap-align: start; margin: 0;
    background: var(--soft); border-radius: 18px; padding: 28px 22px 26px;
    display: flex; flex-direction: column;
  }
  .caps2__panel .caps2__text { font-size: clamp(24px, 6.6vw, 32px); }
  .caps2__dots { display: flex; gap: 8px; padding: 22px var(--pad) 0; }
  .caps2__dots i { width: 8px; height: 8px; border-radius: 99px; background: #cfcfcf; transition: width .4s var(--ease), background .3s; cursor: pointer; }
  .caps2__dots i.is-on { width: 26px; background: var(--fg); }
}
@media (max-width: 900px) {
  .caps2__panel .pills { margin-top: auto; }
  .caps2__panel .pills li { background: #fff; }
}
@media (max-width: 900px) {
  .hero { grid-template-rows: minmax(0, 1fr) auto auto auto; }
  .hero__meta { display: none; }
  .stack { grid-row: 1; margin-top: 8px; }
  .hero__name { grid-row: 2; }
  .hero__intro { grid-row: 3; max-width: none; margin: 14px 0 0; }
  .hero__foot { grid-row: 4; margin-top: 18px; }
}
@media (max-width: 900px) {
  .stack { align-self: center; margin: 0; height: min(56vh, 78vw, calc(100% - 64px)); }
}
@media (max-width: 900px) {
  .hero__foot { grid-row: 3; margin-top: 12px; }
  .hero__foot > span:last-child { display: none; }
  .hero__intro { grid-row: 4; margin: 14px 0 0; }
}
@media (max-width: 900px) { .wall__head { display: none; } }

/* ---------- Accent colour ---------- */
.cursor, .cursor.on-dark { background: var(--accent); }
.cursor .cursor__label, .cursor.on-dark .cursor__label { color: #fff; }
.cursor.is-link, .cursor.on-dark.is-link { background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); }
.statement__text .w.acc { color: var(--accent); }
.caps2__item.is-on .caps2__n { color: var(--accent); }
.caps2__text .acc { color: var(--accent); }
.caps2__progress i { background: var(--accent); }
.card__award, .pv__award { background: var(--accent); color: #fff; }
.contact__title .reveal:last-child > span { color: var(--accent); }
.contact .fx--light { color: #fff; }
.contact .fx--light .fx__bg { background: var(--accent); }
.contact .fx--light .fx__ic { background: #fff; color: var(--accent); }
.contact .fx--light:hover .fx__txt, .contact .fx--light:focus-visible .fx__txt { color: #fff; }
.contact .fx--light:hover .fx__ic, .contact .fx--light:focus-visible .fx__ic { background: transparent; color: #fff; }
.g--film video { aspect-ratio: auto; width: 100%; height: auto; display: block; }
.film__frame { display: block; padding: 0; border: 0; cursor: pointer; background: #000; }

/* ---------- Big words: auto carousel ---------- */
.wcar { position: relative; }
.wcar__track { display: grid; }
.wcar .word { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s .7s; }
.wcar .word.is-on { opacity: 1; visibility: visible; transition: opacity .7s var(--ease), visibility 0s; z-index: 1; }
.wcar .word__copy > * { transform: translateY(18px); opacity: 0; transition: transform .8s var(--ease), opacity .6s var(--ease); }
.wcar .word.is-on .word__copy > * { transform: none; opacity: 1; }
.wcar .word.is-on .word__copy > *:nth-child(2) { transition-delay: .06s; }
.wcar .word.is-on .word__copy > *:nth-child(3) { transition-delay: .12s; }
.wcar .word.is-on .word__copy > *:nth-child(4) { transition-delay: .18s; }
.wcar .word__mask { transform: translateX(4%); transition: transform 1.1s var(--ease); }
.wcar .word.is-on .word__mask { transform: none; }
.wcar__nav { position: absolute; left: var(--pad); right: var(--pad); bottom: var(--pad); z-index: 3; display: flex; align-items: center; gap: 24px; }
.wcar__dots { display: flex; gap: 6px; }
.wcar__dot { font-size: 13px; font-weight: 700; padding: 7px 13px; border-radius: 999px; background: var(--soft); color: #8a8a8a; transition: background .3s, color .3s; }
.wcar__dot:hover { color: var(--fg); }
.wcar__dot.is-on { background: var(--fg); color: #fff; }
.wcar__bar { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.wcar__bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.wcar__counter { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .wcar .word__sticky { padding-bottom: 110px; }
  .wcar__nav { gap: 14px; }
  .wcar__counter { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wcar .word__copy > *, .wcar .word__mask { transform: none; } }

/* Calmer image entrances: no side-wipe curtains, just a soft rise into place */
.card__media::after { display: none; }
.pv .g { clip-path: none; opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.pv .g.in { clip-path: none; opacity: 1; transform: none; }
.fade { transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) { .pv .g { opacity: 1; transform: none; } }

/* About copy in the footer */
.contact__about { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--pad); margin-top: clamp(80px, 10vw, 150px); scroll-margin-top: 80px; }
.contact__about .eyebrow { grid-column: 1 / span 3; color: #9a9a9a; }
.contact__about-body { grid-column: 4 / span 7; color: #fff; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.55; letter-spacing: -0.01em; }
.contact__about-body p { margin: 0 0 1.1em; }
.contact__about + .contact__grid { margin-top: clamp(50px, 6vw, 90px); }
.statement { padding-bottom: clamp(80px, 12vw, 180px); }
@media (max-width: 900px) {
  .contact__about { grid-template-columns: 1fr; gap: 14px; }
  .contact__about .eyebrow, .contact__about-body { grid-column: 1 / -1; }
}

/* Case-study notes in the project viewer */
.pv__case { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--pad); margin-top: clamp(40px, 5vw, 70px); padding-top: 28px; border-top: 1px solid var(--line); }
.pv__case h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.pv__case p { margin: 0; font-size: 15px; line-height: 1.55; }
@media (max-width: 900px) { .pv__case { grid-template-columns: 1fr; gap: 22px; } }
/* Award → project link */
.aw__proj { display: block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--accent); text-align: left; }
.aw__proj:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Mobile-friendly pass ---------- */
@media (max-width: 900px) {
  /* header becomes a clean solid bar so it never clashes with images */
  .header { mix-blend-mode: normal; color: var(--fg); padding: 14px var(--pad); transition: background .3s, color .3s, box-shadow .3s; }
  .header.is-scrolled { background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
  .header.is-scrolled.is-dark { background: rgba(10,10,10,.88); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.08); }
  .menu-open .header, .menu-open .header.is-scrolled { background: transparent; color: #fff; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

  /* Selected work heading stacks */
  .work__head { flex-direction: column; align-items: start; gap: 14px; }
  .work__head p { max-width: none; }
  .work__filters { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .work__filters::-webkit-scrollbar { display: none; }

  /* Expanding images become simple full-width feature cards (no scroll-jacking) */
  .expand { height: auto; padding: 0 var(--pad); margin: 60px 0; }
  .expand__sticky { position: relative; height: auto; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; }
  .expand__img { clip-path: none !important; }
  .expand__img img { transform: none !important; }
  .expand__copy { opacity: 1; transform: none; left: 20px; right: 20px; bottom: 22px; }
  .expand__copy::before { height: 75%; left: -20px; right: -20px; bottom: -22px; }
  .expand__title { font-size: clamp(38px, 11vw, 56px); margin: 8px 0 18px; }

  /* What I do / brands: less empty space */
  .caps2__sticky { padding: 70px 0; }
  .brands__title { font-size: clamp(40px, 12vw, 60px) !important; }

  /* bigger tap targets */
  .chip { padding: 10px 16px; }
  .contact__grid a, .footer-bar a { display: inline-block; padding: 4px 0; }
}
@media (max-width: 900px) {
  .expand__copy::before { height: 90%; background: linear-gradient(transparent, rgba(0,0,0,.55) 35%, rgba(0,0,0,.85)); }
  .caps2__sticky { padding-bottom: 30px; }
}
/* breathing room between "View all projects" and the next section */
.work { padding-bottom: clamp(110px, 12vw, 190px); }
.work__more { margin-top: clamp(50px, 6vw, 90px); }
/* Stronger dark overlay so the white text on feature images is always legible */
.expand__copy::before { height: 85vh; background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.32) 40%, rgba(0,0,0,.66) 100%); }
.expand__copy { text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.expand__copy .fx { text-shadow: none; }
@media (max-width: 900px) {
  .expand__copy::before { height: 95%; background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.36) 35%, rgba(0,0,0,.7) 100%); }
}
@media (max-width: 900px) {
  /* text stays over the image, with a much darker overlay behind it */
  .expand__img::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.1); pointer-events: none; }
  .expand__copy::before { height: 120%; left: -20px; right: -20px; bottom: -22px;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.45) 30%, rgba(0,0,0,.66) 60%, rgba(0,0,0,.74) 100%); }
  .expand__copy { text-shadow: 0 2px 18px rgba(0,0,0,.5); }
}

/* "Selected work." — same treatment as the coming-soon headline */
.kern-title { margin: 0; font-weight: 900; letter-spacing: -0.055em; line-height: .9; font-variation-settings: "opsz" 32;
  font-size: clamp(54px, 8.6vw, 150px); }
.kern-title .reveal { padding-bottom: .14em; margin-bottom: -.08em; }
.kern-title .reveal > span { display: inline-block; transform: translateY(125%); transition: transform 1s var(--ease); }
.kern-title .reveal.in > span { transform: none; }
.kern-title .reveal:nth-child(2) > span { transition-delay: .07s; }
.kern-title .acc { color: var(--accent); }
@media (max-width: 900px) { .kern-title { font-size: clamp(46px, 14vw, 80px); } }
/* tighter stack for "Selected / work." */
.kern-title { line-height: .84; }
.kern-title .reveal { padding-bottom: .24em; margin-bottom: -.15em; }  /* room for descenders (g, y, p) */

/* Cover that slowly swaps between campaign images */
.cycle { position: relative; display: block; width: 100%; height: 100%; }
.cycle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.cycle img.is-on { opacity: 1; }
/* Tighter spacing around What I do: on desktop the pinned block is 70vh tall and pins
   15vh from the top (was a full 100vh with the content centred), so less empty space
   shows above and below it. */
.work { padding-bottom: clamp(60px, 6vw, 100px); }
@media (min-width: 901px) {
  .caps2 { height: 160vh; }
  .caps2__sticky { top: 15vh; height: 70vh; }
}

/* ---- Twist the Oreo: a small toy in the contact footer (photos: Unsplash) ---- */
.contact__grid > div.twist { grid-column: 9 / -1; justify-self: end; align-self: start; margin-top: -40px; text-align: center; width: 240px; }
.twist__stage { position: relative; height: 220px; perspective: 900px; touch-action: pan-y; cursor: grab; outline: none; }
.twist__stage:active { cursor: grabbing; }
.twist__stage:focus-visible { box-shadow: 0 0 0 2px var(--accent); border-radius: 12px; }
.twist__shadow { position: absolute; left: 50%; bottom: 6px; width: 62%; height: 14px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.6), rgba(0,0,0,0)); filter: blur(3px); }
.twist__cookie { position: absolute; left: 50%; top: 50%; width: 150px; aspect-ratio: 1; transform-style: preserve-3d; }
.twist__half, .twist__cream { position: absolute; inset: 0; transform-style: preserve-3d; }
.twist__l { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; }
.twist__l--edge { background: #342c25; backface-visibility: visible;
  -webkit-mask: repeating-conic-gradient(#000 0 3.2deg, rgba(0,0,0,.82) 3.2deg 6deg); mask: repeating-conic-gradient(#000 0 3.2deg, rgba(0,0,0,.82) 3.2deg 6deg); }
.twist__l--face { background: #463d33 url(../media/play/face.webp) center/cover no-repeat; }
.twist__l--back { background: #463d33 url(../media/play/back.webp) center/cover no-repeat; }
.twist__l--face::after, .twist__l--back::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.10), rgba(0,0,0,0) 45%, rgba(0,0,0,.28) 100%); }
.twist__l--inner { background: radial-gradient(circle, #3a2e28 0 60%, #2a201b 100%); }
.twist__cream .twist__l { inset: 4.5%; background: #f1ede4; backface-visibility: visible; }
.twist__cream .twist__l--top { background: #f1ede4 url(../media/play/cream.webp) center/cover no-repeat; }
.twist__line { margin: 6px 0 2px; font-weight: 700; letter-spacing: -0.01em; }
.twist__hint { margin: 0; font-size: 12px; opacity: .55; }
@media (max-width: 900px) {
  .contact__grid > div.twist { grid-column: 1 / -1 !important; justify-self: center; text-align: center !important; margin-top: 10px; }
}

/* award badge above the Mada feature headline */
.expand__award { position: static; display: inline-flex; margin: 0 0 16px; }
.expand__copy .expand__award + .eyebrow { display: block; }

/* ---- Work Experience timeline (newest on the left; hover on desktop, swipe on mobile) ---- */
.wl { --panel:#efefed; --muted:#8c8c8c; position:relative; background:var(--panel); padding:clamp(48px,6vw,90px) 0 clamp(36px,4vw,60px); overflow:hidden; }
  .wl__head { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; padding:0 var(--pad); }
  .wl__title { margin:0; font-weight:900; letter-spacing:-.055em; line-height:.9; font-size:clamp(44px,6.4vw,100px); }

  .wl__scroll { position:relative; margin-top:clamp(10px,2vw,30px); }
  .wl__track { position:relative; }
  .wl__svg { position:absolute; inset:0; overflow:visible; pointer-events:none; }
  .wl__path { fill:none; stroke:var(--fg); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
  .wl__dot { fill:var(--accent); }
  .wl__ring { fill:var(--accent); opacity:.16; }

  .wl__item { position:absolute; display:flex; align-items:flex-start; gap:8px; padding:0; border:0; background:none; text-align:left; font:inherit; color:inherit; cursor:pointer;
    transition: color .25s, opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1); }
  .wl__t { display:block; padding-top:1px; max-width:var(--tw, 150px); }
  .wl__item.is-on .wl__t { max-width:var(--pw, 240px); }
  .wl__r { display:block; font-size:clamp(13px,1vw,15px); font-weight:700; text-transform:uppercase; line-height:1.08; }
  .wl__m { display:block; margin-top:4px; font-size:10.5px; font-weight:500; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); line-height:1.3; white-space:nowrap; }
  .wl__aw { display:inline-flex; align-items:center; gap:4px; margin-top:5px; font-size:10px; font-weight:700; color:var(--accent); }
  .wl__aw svg { width:10px; height:10px; }
  .wl__item.is-on { color:var(--accent); }
  .wl__item.is-on .wl__m { color:var(--accent); opacity:.75; }
  .wl__item:focus-visible { outline:2px solid var(--accent); outline-offset:6px; }
  .wl:not(.is-in) .wl__item { opacity:0; transform:translateY(12px); }


  /* the step under the dot opens: its text rises and a short summary unfolds below it */
  .wl__item { z-index:1; }
  .wl__item.is-on { z-index:3; }
  .wl__t { position:relative; }
  .wl__p { display:grid; grid-template-rows:0fr; transition:grid-template-rows .45s cubic-bezier(.2,.8,.2,1); }
  .wl__p > span { overflow:hidden; font-size:13px; line-height:1.45; color:#3f3f3f; text-transform:none; font-weight:450; opacity:0; transform:translateY(-4px);
    transition:opacity .35s .08s, transform .45s cubic-bezier(.2,.8,.2,1); max-width:var(--pw, 240px); }
  .wl__item.is-on .wl__p { grid-template-rows:1fr; }
  .wl__item.is-on .wl__p > span { opacity:1; transform:none; padding-top:8px; }
  .wl.has-on .wl__item:not(.is-on) { opacity:.38; }
  .wl.has-on .wl__item.is-covered { opacity:0; pointer-events:none; }
  .wl__item { transition: color .25s, opacity .35s, transform .6s cubic-bezier(.2,.8,.2,1); }
  .wl__r { font-size:clamp(14px,1.1vw,17px); }
  .wl__hint, .wl__fade { display:none; }
  @media (min-width: 901px) { .wl__scroll { padding:0 var(--pad); } }
  @media (max-width: 900px) {
    .wl__head { flex-direction:column; gap:14px; }
    .wl__scroll { overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch; scrollbar-width:none; overscroll-behavior-x:contain; }
    .wl__scroll::-webkit-scrollbar { display:none; }
    .wl__fade { display:block; position:absolute; right:0; width:44px; pointer-events:none; background:linear-gradient(to right, rgba(239,239,237,0), var(--panel)); transition:opacity .3s; }
    .wl__hint { display:flex; align-items:center; gap:12px; padding:10px var(--pad) 0; font-size:13px; font-weight:600; }
    .wl__hint .arrow { display:inline-block; color:var(--accent); animation: wlNudge 1.5s ease-in-out infinite; }
    .wl__hint .bar { flex:1; height:2px; background:#dcdcd9; border-radius:2px; position:relative; overflow:hidden; }
    .wl__hint .bar i { position:absolute; inset:0; background:var(--fg); transform-origin:left; transform:scaleX(.12); }
    .wl.is-swiped .wl__hint .arrow { animation:none; }
  }
  @keyframes wlNudge { 0%,100% { transform:translateX(0); } 50% { transform:translateX(-7px); } }
  @media (prefers-reduced-motion: reduce) { .wl__hint .arrow { animation:none; } .wl:not(.is-in) .wl__item { opacity:1; transform:none; } }

/* timeline circles: empty on the line, pink when that role is open */
.wl__svg .wl__node { pointer-events:auto; cursor:pointer; transition: opacity .4s var(--d, 0s); }
.wl__node .hit { fill:transparent; }
.wl__node .o { fill:var(--panel); stroke:var(--fg); stroke-width:1.6; transition: fill .25s, stroke .25s, r .25s; }
.wl__node:hover .o { r:9; }
.wl__node.is-on .o { fill:var(--accent); stroke:var(--accent); r:8; }
.wl:not(.is-in) .wl__node { opacity:0; }
.wl__node.is-ahead { opacity:0; pointer-events:none; }
.wl__hint-d { display:none; }
@media (min-width: 901px) {
  .wl .wl__scroll { margin-top:0; }
  .wl__hint { display:flex; align-items:center; gap:10px; padding:4px var(--pad) 0; font-size:13px; font-weight:600; }
  .wl__hint .arrow, .wl__hint .bar, .wl__hint-m { display:none; }
  .wl__hint-d { display:inline-flex; align-items:center; gap:10px; }
  .wl__hint-d i { width:12px; height:12px; border-radius:50%; border:1.6px solid var(--fg); display:inline-block; }
}
.wl__node, .wl__node:focus { outline:none; }
