/* ── Tokens ─────────────────────────────────────────── */
:root {
  --bg: #efefec;
  --ink: #121110;
  --muted: #6e6c67;
  --line: #12111018;
  --card: #e4e3df;
  --noir: #121110;
  --noir-2: #1b1917;
  --noir-ink: #efe7dc;
  --noir-muted: #9b8f84;
  --noir-line: #efe7dc1f;
  --gold: #c9a97a;
  --green: #3bb26b;

  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --serif: "Bodoni Moda", Didot, "Times New Roman", serif;

  --gut: clamp(16px, 4vw, 64px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ── Base / mobile-native baseline ──────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button, .pill-btn, .menu a { user-select: none; -webkit-user-select: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* Media placeholder: striped until an <img>/<video> is inside */
.media {
  position: relative;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #e2e1dd 0 12px, #dad9d4 12px 24px);
}
.media:has(img, video) { background: #d8d6d0; }
.media:not(:has(img, video))::after {
  content: attr(data-ph);
  position: absolute;
  inset: 0;
  margin: auto;
  width: max-content;
  height: max-content;
  padding: 6px 10px;
  font: 500 10px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  border-radius: 99px;
}

/* ── Top bar ────────────────────────────────────────── */
.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gut) 14px;
  font-size: 13px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color .3s, background-color .3s;
}
.bar.on-dark { color: var(--noir-ink); background: color-mix(in srgb, var(--noir) 78%, transparent); }
.bar-name { font-weight: 500; letter-spacing: -.01em; }
.bar-status { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 #3bb26b88; animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 7px #3bb26b00; } }
.bar-loc { justify-self: end; color: var(--muted); }
.bar.on-dark .bar-loc { color: var(--noir-muted); }
.bar-loc time { margin-left: 6px; font-variant-numeric: tabular-nums; }
.menu-btn { width: 32px; height: 32px; display: grid; place-content: center; gap: 5px; position: relative; z-index: 60; }
.menu-btn span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease-out); }
.menu-btn span:last-child { width: 14px; justify-self: end; }
.menu-open .menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-btn span:last-child { width: 22px; transform: translateY(-3.25px) rotate(-45deg); }

/* ── Menu overlay ───────────────────────────────────── */
.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 100px var(--gut) calc(40px + env(safe-area-inset-bottom, 0px));
  background: var(--noir);
  color: var(--noir-ink);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-in-out);
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .bar { color: var(--noir-ink); background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open .bar-loc { color: var(--noir-muted); }
.menu-open { overflow: hidden; }
.menu li { overflow: hidden; }
.menu a {
  display: inline-block;
  font: 400 clamp(48px, 9vw, 120px)/1.02 var(--sans);
  letter-spacing: -.04em;
  transform: translateY(105%);
  transition: transform .6s var(--ease-out), color .2s;
}
.menu-open .menu a { transform: none; }
.menu-open .menu li:nth-child(2) a { transition-delay: .04s; }
.menu-open .menu li:nth-child(3) a { transition-delay: .08s; }
.menu-open .menu li:nth-child(4) a { transition-delay: .12s; }
.menu-open .menu li:nth-child(5) a { transition-delay: .16s; }
.menu-foot { margin-top: 32px; color: var(--noir-muted); }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px var(--gut) 40px;
}
.hero-stage { position: relative; flex: 1; display: grid; place-items: center; }
.hero-name {
  display: flex;
  align-items: center;
  gap: .22em;
  white-space: nowrap;
  font: 500 min(11.2vw, 210px)/1 var(--sans);
  letter-spacing: -.055em;
}
.hero-name .dash { width: .7em; height: .065em; background: currentColor; margin-right: .12em; }
.hero-name .w1, .hero-name .w2, .hero-name .dash {
  display: inline-block;
  animation: rise 1.1s var(--ease-out) both;
}
.hero-name .dash { animation-name: grow; transform-origin: left; }
.hero-name .w2 { animation-delay: .08s; }
.hero-portrait {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(19vw, 300px);
  aspect-ratio: 4 / 5;
  translate: -50% -50%;
  animation: portrait 1.3s var(--ease-out) .25s both;
}
.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  animation: fade 1s var(--ease-out) .6s both;
}
.services li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.9; }
.services li::before { content: ""; width: 10px; height: 8px; background: linear-gradient(90deg, currentColor 0 2px, transparent 2px 4px, currentColor 4px 6px, transparent 6px 8px, currentColor 8px 10px); }
.hero-intro { max-width: 34ch; text-align: right; font-size: clamp(15px, 1.3vw, 18px); color: var(--muted); }
.hero-intro em { color: var(--ink); }

@keyframes rise { from { opacity: 0; transform: translateY(.35em); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes fade { from { opacity: 0; } }
@keyframes portrait { from { opacity: 0; clip-path: inset(50% 0 50% 0); scale: 1.06; } to { clip-path: inset(0 0 0 0); } }

/* ── Section heads ──────────────────────────────────── */
section { padding: clamp(72px, 10vw, 140px) var(--gut); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px); }
h2 { font: 500 clamp(40px, 6vw, 88px)/1 var(--sans); letter-spacing: -.045em; }
h2 sup { font: 400 13px/1 var(--sans); letter-spacing: 0; vertical-align: top; margin-left: 4px; color: var(--muted); }
h2 em { letter-spacing: -.02em; }
.sec-note { max-width: 46ch; color: var(--muted); }
.eyebrow { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  transition: transform .16s var(--ease-out), background-color .2s;
}
.pill-btn:active { transform: scale(.97); }

/* ── Selected work ──────────────────────────────────── */
.work { padding-top: clamp(32px, 5vw, 64px); }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.card { position: relative; display: block; overflow: hidden; border-radius: 4px; }
.card .media { aspect-ratio: 6 / 5; transition: scale .9s var(--ease-out); }
.card .media:has(img)::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 55%, #0008); }
.card-txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(16px, 2vw, 28px); }
.card h3 { font: 500 clamp(24px, 2.6vw, 38px)/1.05 var(--sans); letter-spacing: -.035em; }
.card-txt span { font-size: 13px; opacity: .75; }
.card:has(img) .card-txt { color: #fff; }
.media--contain { background: #fff !important; }
.media--contain img { object-fit: contain; padding: 7% 7% 24%; }
.card .media--contain:has(img)::before { display: none; }
.card:has(.media--contain) .card-txt { color: var(--ink); }
.hero-portrait img { object-position: 50% 20%; }
.card:active { transform: scale(.99); }

/* ── Noir sections ──────────────────────────────────── */
.noir { background: var(--noir); color: var(--noir-ink); }
.noir .sec-note { color: var(--noir-muted); }
.noir em { color: var(--gold); }
.noir .sec-head { border-bottom: 1px solid var(--noir-line); padding-bottom: 28px; }
.noir .media { background: radial-gradient(120% 80% at 30% 20%, #3a302a, var(--noir-2) 70%); }
.noir .media:not(:has(img, video))::after { background: transparent; border: 1px solid var(--noir-line); color: var(--noir-muted); }
.press { padding-top: 0; }

/* Reel */
.reel-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 28px);
}
.phone {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 18px;
  cursor: pointer;
  background: radial-gradient(120% 80% at 30% 20%, #3a302a, var(--noir-2) 70%);
  user-select: none;
  -webkit-user-select: none;
}
.phone:not(.has-video)::after {
  content: "Video";
  position: absolute; inset: 0; margin: auto; width: max-content; height: max-content;
  padding: 6px 10px; border: 1px solid var(--noir-line); border-radius: 99px;
  font: 500 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--noir-muted);
}

.sound {
  position: absolute; right: 12px; bottom: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: #12111099; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: none;
}
.phone.has-video .sound { display: block; }
.sound::before {
  content: ""; position: absolute; inset: 0;
  background: var(--noir-ink);
  -webkit-mask: var(--icon) center / 16px no-repeat; mask: var(--icon) center / 16px no-repeat;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4z'/%3E%3Cpath d='m23 9-6 6M17 9l6 6'/%3E%3C/svg%3E");
}
.phone.unmuted .sound::before {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E");
}
.phone:active { transform: scale(.985); transition: transform .12s var(--ease-out); }
.reel-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--noir-line); }
.reel-row h3 { font: 500 20px/1.1 var(--sans); letter-spacing: -.02em; }
.reel-row span { font-size: 12px; color: var(--gold); }
.reel-item p { margin-top: 6px; font-size: 14px; color: var(--noir-muted); }

.feed { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 80px); align-items: center; margin-top: clamp(72px, 9vw, 120px); }
.feed-img { aspect-ratio: 322 / 606; max-width: 340px; border-radius: 10px; background: #fff; }
.feed-title { font: 500 clamp(32px, 4vw, 56px)/1 var(--sans); letter-spacing: -.04em; margin-bottom: 16px; }



.pr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); margin-bottom: clamp(48px, 6vw, 80px); }
.pr-n { display: block; font-size: 12px; color: var(--gold); margin-bottom: 18px; }
.pr-block h3 { font: 500 clamp(30px, 3.6vw, 52px)/1 var(--sans); letter-spacing: -.04em; margin-bottom: 18px; }
.pr-block p { max-width: 46ch; color: var(--noir-muted); font-size: clamp(15px, 1.2vw, 17px); }
.placements-img { aspect-ratio: 822 / 404; max-width: 980px; border-radius: 6px; }
.placements-img img { padding: 0; }

/* Typographic work card (no imagery) */
.type-art { display: flex; flex-direction: column; justify-content: center; padding: 0 clamp(20px, 3vw, 40px) 14%; background: var(--noir) !important; color: var(--noir-ink); }
.type-art span { font: 500 clamp(34px, 4.4vw, 64px)/1.02 var(--sans); letter-spacing: -.045em; }
.type-art em { color: var(--gold); }
.card--type .card-txt { color: var(--noir-ink); }
.type-art::after { display: none; }

/* ── Skills pills + about ───────────────────────────── */
.pills { position: relative; height: clamp(300px, 32vw, 420px); margin-bottom: clamp(32px, 5vw, 64px); overflow: clip; overflow-clip-margin: 24px; }
.pills span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  padding: 12px 22px;
  border-radius: 99px;
  background: var(--card);
  font-size: clamp(14px, 1.4vw, 18px);
  white-space: nowrap;
  rotate: var(--r);
  translate: calc(var(--x) * -1) 0; /* keeps each pill inside the frame at any width */
  transform: translateY(-480px);
  transition: transform 1.2s cubic-bezier(.34, 1.3, .64, 1);
  user-select: none;
  -webkit-user-select: none;
}
.pills.in span { transform: none; }
.pills span:nth-child(2) { transition-delay: .07s; }
.pills span:nth-child(3) { transition-delay: .14s; }
.pills span:nth-child(4) { transition-delay: .21s; }
.pills span:nth-child(5) { transition-delay: .28s; }
.pills span:nth-child(6) { transition-delay: .35s; }
.pills span:nth-child(7) { transition-delay: .42s; }
.pills span:nth-child(4) { background: var(--ink); color: var(--bg); }

.about-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 96px); }
.about-grid p + p { margin-top: 16px; }
.about-grid > div:first-child p:not(.eyebrow):not(.about-lead) { color: var(--muted); max-width: 60ch; }
.about-lead { font: 500 clamp(22px, 2.4vw, 32px)/1.2 var(--sans); letter-spacing: -.025em; margin-bottom: 24px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; align-content: start; padding-top: 32px; }
.facts b { display: block; font: 500 clamp(36px, 4vw, 52px)/1 var(--sans); letter-spacing: -.04em; }
.facts span { font-size: 13px; color: var(--muted); }
.facts-btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), inset 0 0 0 1px #12111033; }
.about { padding-top: clamp(48px, 7vw, 96px); }
.work { border-top: 1px solid var(--line); margin: 0 var(--gut); padding-left: 0; padding-right: 0; }

/* Documents */
.background { padding-top: 0; }
.docs { margin-top: clamp(64px, 8vw, 110px); }
.docs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 24px); }
.doc { display: block; }
.doc-paper { position: relative; display: block; aspect-ratio: 1 / 1.414; overflow: hidden; border-radius: 4px; background: #fff; box-shadow: 0 1px 2px #0000000f, 0 14px 30px -18px #0000004d; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.doc-paper img { object-fit: cover; object-position: top; }
.doc-paper--cv { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; background: var(--noir); color: var(--noir-ink); }
.doc-paper--cv b { font: 500 clamp(40px, 5vw, 72px)/1 var(--sans); letter-spacing: -.05em; }
.doc-paper--cv i { font: italic 400 clamp(15px, 1.4vw, 20px)/1 var(--serif); color: var(--gold); }
.doc-txt { display: flex; flex-direction: column; margin-top: 12px; font-size: 14px; }
.doc-txt b { font-weight: 500; }
.doc-txt span { color: var(--muted); font-size: 13px; }
.doc:active .doc-paper { transform: scale(.98); }
.doc-txt sup { margin-left: 2px; color: var(--muted); }
.docs-note { margin-top: 28px; max-width: 70ch; font-size: 13px; color: var(--muted); }
.docs-note a { color: var(--ink); border-bottom: 1px solid currentColor; }
.cv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(64px, 8vw, 110px); }
.cv-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.cv-list li:last-child { border-bottom: 1px solid var(--line); }
.cv-list b { font-weight: 500; }
.cv-list span { grid-column: 1; font-size: 14px; color: var(--muted); }
.cv-list time { grid-row: 1; grid-column: 2; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ── Contact ────────────────────────────────────────── */
.contact { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.talk {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
  font: 500 clamp(56px, 12vw, 200px)/1 var(--sans);
  letter-spacing: -.055em;
}
.talk em { letter-spacing: -.02em; }
.talk svg { width: clamp(48px, 9vw, 140px); flex: none; transition: transform .5s var(--ease-out); }
.talk:active svg { transform: translateX(8px); }
.foot { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; padding: 40px 0 56px; font-size: 14px; }
.foot-name { font-weight: 500; margin-bottom: 8px; }
.foot-menu a { font: 500 clamp(26px, 2.6vw, 36px)/1.25 var(--sans); letter-spacing: -.03em; }
.foot-links { display: flex; flex-direction: column; gap: 6px; align-items: end; }
.copy { display: flex; justify-content: space-between; font-size: 13px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ── Scroll reveal ──────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Hover — only for real pointers ─────────────────── */
@media (hover: hover) and (pointer: fine) {
  .pill-btn:hover { background: #2c2a28; }
  .bar a:hover, .foot a:hover { opacity: .6; }
  .menu a:hover { color: var(--gold); }
  .card:hover .media { scale: 1.035; }
  .doc:hover .doc-paper { transform: translateY(-6px); box-shadow: 0 1px 2px #0000000f, 0 24px 40px -18px #00000059; }
  .pill-btn--ghost:hover { background: #1211100d; }
  .talk:hover svg { transform: translateX(14px); }
  .foot-menu a:hover { opacity: .5; }
}

/* ── Tablet ─────────────────────────────────────────── */
@media (max-width: 1000px) {
  .reel-track {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 40%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gut);
    margin: 0 calc(-1 * var(--gut));
    padding: 0 var(--gut) 12px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .reel-track::-webkit-scrollbar { display: none; }
  .reel-item { scroll-snap-align: start; }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
  .pr-grid { grid-template-columns: 1fr; }
}

/* ── Mobile ─────────────────────────────────────────── */
@media (max-width: 700px) {
  .bar { grid-template-columns: 1fr auto auto; gap: 16px; }
  .bar-loc { display: none; }
  .bar-status { font-size: 12px; }

  .hero { padding-top: 96px; }
  .hero-stage { display: block; flex: none; margin: 4vh 0 0; }
  .hero-name { flex-direction: column; align-items: flex-start; gap: 0; font-size: 23vw; line-height: .92; }
  .hero-name .dash { display: none; }
  .hero-name .w2 { align-self: flex-end; }
  .hero-portrait { position: relative; left: auto; top: auto; translate: none; width: 62%; margin: 24px auto 0; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 32px; }
  .hero-intro { text-align: left; }

  .work-grid { grid-template-columns: 1fr; }
  .reel-track { grid-auto-columns: 68%; }
  .feed { grid-template-columns: 1fr; }
  .pills { height: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 10px; padding: 24px 0; overflow-clip-margin: 0px; }
  .pills span { position: static; translate: none; rotate: calc(var(--r) / 4); }
  .about-grid, .cv-cols { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .foot-links { align-items: start; }
  .talk svg { width: 44px; }
}

/* ── Reduced motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal, .pills span { transform: none !important; transition: opacity .4s ease !important; }
  .menu, .menu a { transition: none !important; }
}
