/* Layout: every project is a browser window. A tilted stack of windows opens the page,
   then a filterable wall of windows, then the CV as quiet two-column text. Single dark look by choice. */
:root {
  color-scheme: dark;
  --ink: #0a1020;          /* page ground, blue-biased */
  --ink-2: #111a30;        /* raised surface */
  --ink-3: #1a2542;        /* window chrome, chips */
  --line: #26335a;         /* hairlines */
  --paper: #f3efe6;        /* primary text, warm white */
  --muted: #9aa6c4;        /* secondary text */
  --gold: #f4b740;         /* the accent */
  --gold-ink: #1b1403;     /* text on gold */
  --c-fashion: #ff7a59;
  --c-tech: #5cc8ff;
  --c-vet: #57e0a8;
  --c-brand: #f4b740;
  --display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1180px;
  --r: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ink); }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
.label { font: 500 12.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.mark { font: 800 20px/1 var(--display); text-decoration: none; letter-spacing: -0.03em; display: flex; align-items: center; gap: 10px; }
.mark i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); display: inline-block; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--paper); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  background: var(--gold); color: var(--gold-ink); font: 700 15px/1 var(--body); text-decoration: none;
  border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px var(--gold); }
.nav a.btn { color: var(--gold-ink); padding: 10px 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--muted); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* hero */
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 30%, color-mix(in srgb, var(--c-tech) 16%, transparent), transparent 70%),
    radial-gradient(40% 45% at 12% 85%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 100%;
  opacity: .55;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding-block: 72px 64px; }
.hero h1 { font-size: clamp(46px, 7.4vw, 104px); font-weight: 800; letter-spacing: -0.045em; line-height: .92; }
.ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.ln > .in { display: block; will-change: transform; }
.contact h2 .w { display: inline-block; will-change: transform; }
/* motion layer: these only apply once the animation libraries have loaded */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.anim .stack .win { animation: none; transform: none; will-change: transform; }
.anim .card { transition: border-color .3s, box-shadow .35s; will-change: transform; }
.anim .card:hover { transform: none; }
.anim .btn { transition: box-shadow .2s; }
.anim .btn:hover { transform: none; }
.progress { position: fixed; inset: env(safe-area-inset-top, 0px) 0 auto 0; height: 3px; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); z-index: 11; pointer-events: none; }
.cursor { position: fixed; left: 0; top: 0; z-index: 20; pointer-events: none; }
.cursor b { display: grid; place-items: center; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font: 700 14px/1 var(--body); transform: scale(0); }
.hero h1 .g { color: var(--gold); }
.hero .lede { margin-top: 26px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34em; }
.hero .lede b { color: var(--paper); font-weight: 600; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.avail { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.avail i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-vet); box-shadow: 0 0 0 0 var(--c-vet); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* browser window */
.win { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--ink-3); border-bottom: 1px solid var(--line); min-width: 0; }
.dots { display: flex; gap: 5px; flex: none; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.url { font: 400 12px/1.4 var(--mono); color: var(--muted); background: var(--ink); border-radius: 6px; padding: 3px 10px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-3); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .7s cubic-bezier(.2,.7,.2,1); }

.stack { position: relative; aspect-ratio: 1 / .86; }
.stack .win { position: absolute; width: 74%; box-shadow: 0 30px 70px -30px #000; animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.stack .win:nth-child(1) { left: 0; top: 4%; --t: rotate(-5deg); transform: var(--t); animation-delay: .05s; }
.stack .win:nth-child(2) { right: 0; top: 22%; --t: rotate(4deg); transform: var(--t); animation-delay: .18s; z-index: 2; }
.stack .win:nth-child(3) { left: 9%; bottom: 0; --t: rotate(-1.5deg); transform: var(--t); animation-delay: .31s; z-index: 3; }
@keyframes rise { from { opacity: 0; transform: translateY(40px) var(--t); } to { opacity: 1; transform: var(--t); } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.stat { padding: 26px 20px 24px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { display: block; font: 800 clamp(34px, 4.4vw, 56px)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.35; }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ticker */
.ticker { overflow: hidden; padding-block: 18px; border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker div { display: flex; gap: 38px; width: max-content; animation: slide 60s linear infinite; font: 400 14px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.ticker span::before { content: "↗ "; color: var(--gold); }
@keyframes slide { to { transform: translateX(-50%); } }

/* sections */
section { padding-block: 88px 0; }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: 34px; }
.head h2 { font-size: clamp(34px, 5vw, 62px); font-weight: 800; letter-spacing: -0.04em; margin-top: 14px; }
.head p { color: var(--muted); max-width: 30em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); border: 1px solid var(--line); font: 600 14px/1 var(--body); transition: all .2s;
}
.chip:hover { color: var(--paper); border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chip em { font: 500 12px/1 var(--mono); font-style: normal; opacity: .7; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.card { display: flex; flex-direction: column; text-decoration: none; transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .35s; }
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 60%, var(--line)); box-shadow: 0 26px 50px -30px var(--c); }
.card:hover .shot img { transform: scale(1.05); }
.card .info { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 23px; font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card h3 svg { flex: none; width: 16px; height: 16px; color: var(--muted); transition: transform .3s, color .3s; }
.card:hover h3 svg { transform: translate(3px, -3px); color: var(--c); }
.card p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 8px; font: 400 12px/1.3 var(--mono); color: var(--muted); }
.tags span { display: inline-flex; align-items: center; gap: 7px; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; }
.about .big { font: 500 clamp(22px, 2.5vw, 30px)/1.3 var(--display); letter-spacing: -0.02em; }
.about .big + p { margin-top: 20px; color: var(--muted); max-width: 38em; }
.facts { display: grid; gap: 0; align-content: start; }
.facts div { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts b { font-weight: 600; }
.facts span { color: var(--muted); font-size: 15px; }

.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.skills > div { padding: 26px 22px 30px 0; }
.skills h3 { font-size: 20px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.skills ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; color: var(--muted); font-size: 15px; line-height: 1.4; }

.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.how article { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 10px; align-content: start; }
.how h3 { font-size: 21px; font-weight: 700; }
.how p { color: var(--muted); font-size: 15.5px; }

/* contact */
.contact { margin-top: 96px; background: var(--gold); color: var(--gold-ink); }
.contact .wrap { padding-block: 76px; display: grid; gap: 34px; }
.contact .label { color: color-mix(in srgb, var(--gold-ink) 70%, transparent); }
.contact h2 { font-size: clamp(40px, 7.4vw, 100px); font-weight: 800; letter-spacing: -0.045em; line-height: .94; }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.way { background: var(--gold-ink); color: var(--paper); border-radius: var(--r); padding: 22px; display: grid; gap: 12px; min-width: 0; }
.way .label { color: var(--muted); }
.way .val { font: 500 clamp(16px, 2vw, 21px)/1.3 var(--mono); overflow-wrap: anywhere; user-select: all; }
.way .row { display: flex; flex-wrap: wrap; gap: 8px; }
.mini { padding: 9px 14px; border-radius: 999px; font: 600 13.5px/1 var(--body); background: var(--ink-3); color: var(--paper); border: 0; cursor: pointer; text-decoration: none; transition: background .2s; }
.mini:hover { background: var(--line); }
.mini.on { background: var(--c-vet); color: var(--ink); }
footer .wrap { padding-block: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 48px 44px; gap: 36px; }
  .stack { max-width: 560px; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  section { padding-block: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* five work categories */
:root { --c-sneaker: #b79bff; }

/* current page in the nav */
.nav a[aria-current="page"] { color: var(--paper); }

/* work page header: same grid ground as the home hero, one column */
.hero.page .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 64px 40px; gap: 0; }
.hero.page h1 { font-size: clamp(44px, 8vw, 112px); }
.hero.page .lede { max-width: 40em; }
.work-body { padding-block: 8px 0; }
.count { font: 400 13px/1 var(--mono); color: var(--muted); margin: -12px 0 22px; }

/* home: the door to the full work page */
.more { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); text-decoration: none; transition: border-color .3s; }
.more:hover { border-color: var(--gold); }
.more b { font: 800 clamp(26px, 3.6vw, 44px)/1 var(--display); letter-spacing: -0.035em; }
.more div > span { color: var(--muted); font-size: 15.5px; display: block; margin-top: 8px; }
.more .btn { pointer-events: none; }
.head a.link { color: var(--gold); font-weight: 600; text-decoration: none; white-space: nowrap; }
.head a.link:hover { text-decoration: underline; text-underline-offset: 4px; }
/* standalone pages don't get the host reset */
[hidden] { display: none !important; }

/* live preview: the full page scrolls inside the window on hover (assets/extras.js) */
.shot { position: relative; }
.shot img.long { position: absolute; left: 0; top: 0; height: auto; object-fit: fill; opacity: 0; transition: opacity .35s; will-change: transform; }
.shot img.long.on { opacity: 1; }

/* desktop hero */
.drag-hint { position: absolute; right: 0; bottom: -6px; opacity: 0; pointer-events: none; }
.drag-hint::before { content: "\2725  "; color: var(--gold); }

/* zoom-out wall: final state in CSS, the zoom is added by assets/extras.js */
.wall { border-bottom: 1px solid var(--line); }
.wall-pin { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-content: center; justify-items: center; gap: clamp(20px, 4vh, 40px); overflow: hidden; padding-block: 76px 40px; }
.wall-head { text-align: center; display: grid; gap: 14px; justify-items: center; padding-inline: 20px; }
.wall-head h2 { font-size: clamp(38px, 6.4vw, 88px); font-weight: 800; letter-spacing: -0.045em; }
.wall-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: clamp(5px, .7vw, 10px); width: min(94vw, 1500px); }
@media (max-aspect-ratio: 1/1) { .wall-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); width: 92vw; } }
.tile { container-type: inline-size; background: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.tbar { display: flex; align-items: center; gap: 1.6cqw; padding: 2cqw 3cqw; background: var(--ink-3); }
.tbar i { width: 2cqw; height: 2cqw; border-radius: 50%; background: var(--line); flex: none; }
.tbar span { font: 400 3.4cqw/1.6 var(--mono); color: var(--muted); background: var(--ink); border-radius: 1.4cqw; padding: 0 3cqw; margin-left: 2cqw; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.tile.you { display: grid; place-items: center; background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.tile.you b { font: 800 15cqw/1 var(--display); letter-spacing: -0.03em; text-align: center; }.card:hover .shot img.long { transform: none; }
