/* =========================================================
   COLORS & TYPE — change the look here
   ========================================================= */
:root {
  --paper: #F4F4F2;
  --ink: #000000;
  --muted: #6E6E6A;
  --line: rgba(0, 0, 0, .16);
  --stage: #000000;      /* project overlay background */
  --on-stage: #F4F4F2;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(16px, 3vw, 40px);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #050505; --ink: #F4F4F2; --muted: #9A9A95;
    --line: rgba(255,255,255,.18); --stage: #1B1B1B; --on-stage: #F4F4F2;
  }
}
:root[data-theme="dark"] {
  --paper: #050505; --ink: #F4F4F2; --muted: #9A9A95;
  --line: rgba(255,255,255,.18); --stage: #1B1B1B; --on-stage: #F4F4F2;
}

*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: env(safe-area-inset-top, 0px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 99; }

/* The wide display style used for big type */
.wide { font-stretch: 125%; text-transform: uppercase; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: grid; grid-template-rows: auto 1fr auto auto;
  grid-template-columns: minmax(0, 1fr);
  padding: var(--pad); overflow: hidden;
}
@supports (height: 100svh) { .hero { min-height: 100svh; } }

.hero-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px;
  font-size: 13px; font-stretch: 112%; letter-spacing: .02em; text-transform: uppercase;
  position: relative; z-index: 30;
}
.hero-role { text-align: center; }
.hero-nav { display: flex; gap: 20px; justify-content: flex-end; }
.hero-nav a { text-decoration: none; }
.hero-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.wordmark {
  align-self: center;
  font-stretch: 125%; font-weight: 500; text-transform: uppercase;
  font-size: calc((100vw - 2 * var(--pad)) / 5.1); line-height: .8; white-space: nowrap; letter-spacing: -.035em;
  display: flex; flex-direction: column; align-items: flex-start; position: relative; z-index: 1;
  margin: 0;
}
.wm-line:last-child { align-self: flex-end; }

.curve.hero-curve { margin: -16px calc(var(--pad) * -1) clamp(8px, 2vh, 24px); height: clamp(200px, 27vh, 360px); z-index: 5; }
.hero-curve .curve-item { --iw: min(14vw, 21vh); }

.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  font-size: 13px; font-stretch: 112%; text-transform: uppercase; letter-spacing: .02em;
  position: relative; z-index: 30;
}
.hero-place { text-align: right; }

@media (max-width: 700px) {
  .hero-bar { grid-template-columns: 1fr auto; }
  .hero-name { display: none; }
  .hero-role { text-align: left; max-width: 18ch; }
  .hero-nav { gap: 14px; }
  .wordmark { align-self: end; margin-top: 0; }
  .curve.hero-curve { margin-top: -8px; height: 330px; }
  .hero-curve .curve-item { --iw: 44vw; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-place { text-align: left; }
}

/* =========================================================
   INTRO + BRANDS
   ========================================================= */
.intro {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; align-items: flex-end; color: #F4F4F2;
}
.intro-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.intro::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 70%);
}
.intro-inner {
  position: relative; z-index: 1; padding: var(--pad); padding-bottom: clamp(32px, 6vw, 72px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 28px;
}
.intro-text {
  font-size: clamp(22px, 2.7vw, 38px); line-height: 1.22; letter-spacing: -.01em;
  max-width: 30ch; text-wrap: balance;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  padding: 10px 20px; border-radius: 999px; font-size: 14px;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill:hover { opacity: .85; }
.intro .pill { background: #F4F4F2; color: #000; }

.brands { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(64px, 10vw, 140px); }
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; }
.marquee-track { display: flex; width: max-content; animation: slide 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.brand {
  font-stretch: 125%; text-transform: uppercase; font-weight: 400;
  font-size: clamp(26px, 3.6vw, 52px); white-space: nowrap; line-height: 1;
  display: inline-flex; align-items: center;
}
.brand::after {
  content: ""; width: .22em; height: .22em; border: 1.5px solid currentColor; border-radius: 50%;
  margin: 0 .7em;
}
@keyframes slide { to { transform: translateX(-50%); } }
.mentions { text-align: center; font-size: clamp(17px, 1.7vw, 24px); line-height: 1.35; margin: 28px auto 0; max-width: 46ch; padding: 0 var(--pad); text-wrap: balance; }
.mentions span { display: block; color: var(--muted); font-size: 12px; font-stretch: 112%; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }

/* =========================================================
   SECTION HEADINGS
   ========================================================= */
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  padding: 0 var(--pad); margin-bottom: clamp(32px, 5vw, 64px);
}
.section-head h2 {
  font-stretch: 125%; text-transform: uppercase; font-weight: 500;
  font-size: clamp(40px, 8vw, 128px); line-height: .85; letter-spacing: -.035em;
}
.section-head sup { font-size: .22em; letter-spacing: 0; vertical-align: top; position: relative; top: .3em; font-weight: 400; }
.hint { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* =========================================================
   WORK — the staircase row
   ========================================================= */
.work { padding-bottom: clamp(96px, 14vw, 180px); }
.stairs {
  --max: min(64vh, 560px);
  display: flex; align-items: flex-end; gap: clamp(10px, 1.2vw, 18px);
  padding: 0 var(--pad) 8px; overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: none; height: calc(var(--max) + 70px);
}
.stairs::-webkit-scrollbar { display: none; }
.step {
  flex: 1 1 0; min-width: 140px; /* the cards share the full width */
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left;
  cursor: pointer; scroll-snap-align: center;
}
.step-label { display: flex; align-items: baseline; gap: 8px; font-size: 13px; line-height: 1.25; min-height: 2.5em; }
.step-label i {
  flex: 0 0 auto; width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 50%;
  transform: translateY(1px); transition: background .3s;
}
.step-label small { display: block; color: var(--muted); font-size: 12px; }
.step-img {
  height: calc(var(--max) * var(--h, .6)); overflow: hidden; background: var(--line);
  transition: height .7s cubic-bezier(.2, .8, .2, 1);
}
.step-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.step.is-active .step-label i { background: currentColor; }
.step:hover .step-img img { transform: scale(1.03); }

@media (max-width: 700px) {
  .stairs { --max: 58vh; }
  .step { flex: 0 0 auto; width: 62vw; }
  .hint { display: none; }
}

/* ---------- Platforms I've built ---------- */
.platforms { padding-bottom: clamp(96px, 14vw, 180px); }
.plat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); padding: 0 var(--pad); }
.plat { display: flex; flex-direction: column; align-items: flex-start; }
.plat-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 20px; }
.plat-role { font-size: 13px; font-stretch: 112%; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); }
.plat-name {
  font-stretch: 125%; text-transform: uppercase; font-weight: 500;
  font-size: clamp(32px, 4vw, 60px); line-height: .9; letter-spacing: -.03em; margin: 8px 0 18px;
}
.plat-text { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.4; max-width: 36ch; margin-bottom: 24px; }
.plat-stats { display: flex; gap: clamp(28px, 4vw, 56px); border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 20px; align-self: stretch; }
.plat-stats strong { display: block; font-weight: 500; font-stretch: 125%; font-size: clamp(32px, 3.6vw, 52px); line-height: 1; letter-spacing: -.03em; }
.plat-stats span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.plat-now { display: flex; align-items: center; gap: 10px; font-size: 15px; margin-bottom: 20px; }
.plat-now i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); flex: 0 0 auto; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.plat-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.plat-tags button, .plat-tags span {
  display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  font: inherit; font-size: 14px; color: var(--ink); background: none;
}
.plat-tags button { border-color: var(--ink); cursor: pointer; }
.plat-tags button:hover { background: var(--ink); color: var(--paper); }
.plat-link { font-size: 15px; text-underline-offset: 4px; }
@media (max-width: 760px) { .plat-grid { grid-template-columns: 1fr; gap: 64px; } }
@media (prefers-reduced-motion: reduce) { .plat-now i { animation: none; } }

/* =========================================================
   VISUAL WORK
   ========================================================= */
.visual { padding-bottom: clamp(96px, 14vw, 180px); }
.swipe-nav { display: flex; gap: 8px; }
.swipe-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink);
  background: none; color: var(--ink); font-size: 18px; cursor: pointer;
}
.swipe-nav button:hover { background: var(--ink); color: var(--paper); }
.swipe {
  display: flex; gap: clamp(36px, 5vw, 80px); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--pad); scroll-padding-inline: var(--pad); scrollbar-width: none; cursor: grab;
}
.swipe::-webkit-scrollbar { display: none; }
.swipe.grabbing { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.series { flex: 0 0 auto; display: flex; flex-direction: column; gap: 14px; }
.series-cap { max-width: 34ch; font-size: 14px; line-height: 1.4; min-height: 5.6em; }
.series-cap strong { display: block; font-weight: 500; font-stretch: 112%; text-transform: uppercase; letter-spacing: .02em; font-size: 13px; }
.series-cap span { display: block; color: var(--muted); }
.series-cap p { margin-top: 6px; }
.series-imgs { display: flex; gap: clamp(8px, 1vw, 12px); }
.series-imgs img {
  height: clamp(260px, 30vw, 440px); width: auto; flex: 0 0 auto; object-fit: cover;
  scroll-snap-align: start; pointer-events: none;
}
.series-imgs video {
  height: clamp(260px, 30vw, 440px); width: auto; flex: 0 0 auto; aspect-ratio: 9 / 16;
  object-fit: cover; scroll-snap-align: start; background: #000;
}
@media (max-width: 700px) {
  .swipe-nav { display: none; }
  .series-imgs img, .series-imgs video { height: 52vh; max-height: 420px; }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px);
  padding: 0 var(--pad) clamp(96px, 14vw, 180px); align-items: start;
}
.about-portrait { position: sticky; top: calc(var(--pad) + env(safe-area-inset-top, 0px)); }
.about-portrait img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; filter: grayscale(1); }
.about-body h2 {
  font-stretch: 125%; text-transform: uppercase; font-weight: 500;
  font-size: clamp(40px, 8vw, 128px); line-height: .85; letter-spacing: -.035em; margin-bottom: 32px;
}
.about-text { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.4; max-width: 34ch; margin-bottom: 56px; }
.about-body h3 { font-size: 13px; font-weight: 500; font-stretch: 112%; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 12px; }
.exp { margin-bottom: 40px; border-top: 1px solid var(--line); }
.exp li { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.exp li span:first-child { color: var(--muted); }
.edu { margin-bottom: 56px; }
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.skills h3 { margin-bottom: 10px; }
.skills li { color: var(--muted); font-size: 15px; padding: 3px 0; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-portrait { position: static; max-width: 420px; }
  .skills { grid-template-columns: 1fr; }
  .exp li { grid-template-columns: 56px 1fr; }
  .exp li span:last-child { grid-column: 2; color: var(--muted); }
}

/* =========================================================
   CONTACT — curved carousel
   ========================================================= */
.contact { padding: 0 0 clamp(64px, 10vw, 120px); text-align: center; overflow: hidden; }
.connect {
  font-stretch: 125%; text-transform: uppercase; font-weight: 500;
  font-size: clamp(44px, 11vw, 190px); line-height: .85; letter-spacing: -.04em;
  padding: 0 var(--pad);
}
.curve {
  position: relative; height: clamp(240px, 32vw, 460px); margin: clamp(24px, 4vw, 56px) 0;
  perspective: 1100px;
}
.curve-item {
  position: absolute; top: 50%; left: 50%;
  --iw: clamp(150px, 18vw, 300px);
  width: var(--iw); aspect-ratio: 4 / 5;
  margin: calc(var(--iw) * -.625) 0 0 calc(var(--iw) * -.5);
  will-change: transform;
}
.curve-item img { width: 100%; height: 100%; object-fit: cover; }
.mail {
  display: inline-block; font-size: clamp(20px, 3vw, 40px); letter-spacing: -.01em;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em;
  padding: 0 var(--pad); word-break: break-word;
}
.mail:hover { text-decoration-thickness: 2px; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; padding: 0 var(--pad); }
.links a {
  display: inline-block; border: 1px solid var(--ink); border-radius: 999px;
  padding: 8px 18px; text-decoration: none; font-size: 14px;
}
.links a:hover { background: var(--ink); color: var(--paper); }

.foot {
  display: flex; justify-content: space-between; padding: 20px var(--pad);
  border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}

/* =========================================================
   PROJECT OVERLAY
   ========================================================= */
.overlay {
  position: fixed; inset: 0; z-index: 100; background: var(--stage); color: var(--on-stage);
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  transform: translateY(100%); transition: transform .6s cubic-bezier(.7, 0, .2, 1);
}
.overlay.open { transform: none; }
.overlay[hidden] { display: none; }
.ov-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px var(--pad); font-size: 13px; font-stretch: 112%; text-transform: uppercase; letter-spacing: .02em;
}
.ov-close {
  background: none; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit;
  border: 1px solid currentColor; border-radius: 999px; padding: 7px 16px; cursor: pointer;
}
.ov-close:hover { background: var(--on-stage); color: var(--stage); }
.ov-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom, 0px); }
.ov-content { padding: clamp(24px, 5vw, 64px) var(--pad) 48px; }
.ov-title {
  font-stretch: 125%; text-transform: uppercase; font-weight: 500;
  font-size: clamp(36px, 7vw, 120px); line-height: .88; letter-spacing: -.035em; max-width: 14ch;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.ov-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px clamp(24px, 4vw, 64px);
  margin-bottom: clamp(40px, 6vw, 80px);
}
.ov-stats div { border-top: 1px solid rgba(255,255,255,.18); padding-top: 14px; }
.ov-stats dt {
  font-stretch: 125%; font-weight: 500; font-size: clamp(36px, 5vw, 72px); line-height: .95; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.ov-stats dd { margin: 8px 0 0; font-size: 14px; opacity: .65; max-width: 24ch; }
.ov-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); }
.ov-meta dt { font-size: 12px; font-stretch: 112%; text-transform: uppercase; letter-spacing: .02em; opacity: .55; margin-bottom: 4px; }
.ov-meta dd { margin: 0 0 22px; font-size: 15px; max-width: 34ch; }
.ov-text { font-size: clamp(19px, 1.8vw, 26px); line-height: 1.35; max-width: 34ch; margin-bottom: 32px; }
.ov-body { font-size: 16px; line-height: 1.55; max-width: 60ch; margin: -12px 0 32px; opacity: .85; }
.ov-body + .ov-body { margin-top: -16px; }
.ov-resp li { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.18); font-size: 15px; max-width: 60ch; }
.ov-gallery { display: flex; gap: clamp(8px, 1vw, 14px); overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1) clamp(40px, 6vw, 80px); padding: 0 var(--pad); }
.ov-gallery::-webkit-scrollbar { display: none; }
.ov-gallery img { height: min(72vh, 680px); width: auto; flex: 0 0 auto; object-fit: cover; }
.ov-video { margin-bottom: clamp(8px, 1vw, 14px); }
.ov-video video { display: block; width: 100%; max-height: 80vh; background: #000; }
.ov-next {
  display: block; width: 100%; text-align: left; background: none; border: 0; color: inherit; font: inherit;
  border-top: 1px solid rgba(255,255,255,.18); margin-top: clamp(48px, 7vw, 96px); padding: 20px 0 0; cursor: pointer;
}
.ov-next span { display: block; font-size: 12px; text-transform: uppercase; font-stretch: 112%; opacity: .55; margin-bottom: 8px; }
.ov-next strong { font-weight: 500; font-stretch: 125%; text-transform: uppercase; font-size: clamp(28px, 5vw, 72px); line-height: .9; letter-spacing: -.03em; }
.ov-next:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .1em; }
@media (max-width: 760px) {
  .ov-grid { grid-template-columns: 1fr; }
  .ov-stats { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .ov-stats dt { font-size: 30px; }
  .ov-gallery img { height: 60vh; }}
body.locked { overflow: hidden; }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .step-img, .step-img img, .overlay { transition: none !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}
