/* nikhildadhich.com - one stylesheet, no framework.
   Identity kept from the old site: black, butter yellow, huge condensed name, B&W portrait, handwritten logo. */

:root {
  --bg: #0c0c0b;
  --bg-2: #141412;
  --bg-3: #1c1b18;
  --text: #f3efe4;
  --muted: #a29d91;
  --faint: #6f6b62;
  --line: #2a2925;
  --line-2: #3a3832;
  --butter: #fbe38e;
  --butter-2: #f2cf55;
  --on-butter: #14130f;
  --ok: #7bd88f;
  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --r: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f0e6;
  --bg-2: #ebe6d9;
  --bg-3: #e2dccc;
  --text: #15140f;
  --muted: #5f5a50;
  --faint: #8a8578;
  --line: #d8d1c0;
  --line-2: #c8c0ac;
  --butter: #15140f;
  --butter-2: #3a372f;
  --on-butter: #f4f0e6;
  --ok: #1f8a3d;
  color-scheme: light;
}
:root[data-theme="light"] .keep-butter { --butter: #e8c547; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.motion { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.62 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
img, video, svg { max-width: 100%; display: block; }
img, video { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
::selection { background: var(--butter); color: var(--on-butter); }
:focus-visible { outline: 2px solid var(--butter); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--butter); color: var(--on-butter); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.head-in { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; margin-right: auto; }
.logo svg { width: 64px; height: 51px; overflow: visible; }

.logo .ink { stroke-dasharray: 1; stroke-dashoffset: 0; }
.first-visit .logo .ink, .arriving .logo .ink { stroke-dashoffset: 1; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; padding: 8px 12px; font-weight: 500; font-size: 15px; text-decoration: none; color: var(--muted); border-radius: 10px; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--butter); border-radius: 2px; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.status:hover { color: var(--text); border-color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; color: var(--text); flex: none; }
.icon-btn:hover { border-color: var(--muted); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: block; }
:root[data-theme="light"] .theme-btn .moon { display: none; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .nav, .head-in > .status { display: none; }
  .menu-btn { display: inline-grid; }
}
/* side menu panel (phones, and the round menu button on any screen) */
.mobile-nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(480px, 100vw); background: var(--bg-2); border-left: 1px solid var(--line); padding: 110px clamp(28px, 5vw, 64px) 40px; display: flex; flex-direction: column; gap: 4px; transform: translateX(102%); visibility: hidden; transition: transform .7s var(--ease), visibility 0s .7s; overflow-y: auto; }
.menu-open .mobile-nav { transform: none; visibility: visible; transition: transform .7s var(--ease), visibility 0s; }
.mobile-nav a:not(.status) { font: 800 clamp(48px, 8vw, 76px)/1.02 var(--f-display); text-transform: uppercase; text-decoration: none; color: var(--text); transition: color .2s, transform .35s var(--ease); display: block; }
.mobile-nav a:not(.status):hover { color: var(--butter); transform: translateX(10px); }
.mobile-nav a[aria-current="page"] { color: var(--butter); }
.mobile-nav .nav-k { color: var(--faint); margin: 0 0 14px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.mobile-nav .nav-k:nth-of-type(2) { margin-top: 36px; }
.mobile-nav .status { align-self: flex-start; margin-top: 22px; }
.mobile-nav .nav-socials { display: flex; flex-wrap: wrap; gap: 18px; }
.mobile-nav .nav-socials a { font: 500 16px var(--f-body) !important; text-transform: none !important; color: var(--muted) !important; }
.nav-backdrop { position: fixed; inset: 0; z-index: 69; background: rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.menu-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity .5s; }
.menu-open { overflow: hidden; }
.menu-fab { position: fixed; top: 20px; right: 20px; z-index: 75; width: 66px; height: 66px; border-radius: 50%; border: 0; background: var(--butter); cursor: pointer; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 7px; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.menu-fab span { display: block; width: 24px; height: 2px; background: var(--on-butter); transition: transform .35s var(--ease); }
.menu-open .menu-fab span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-fab span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.motion .menu-fab { display: flex; transform: scale(0); }
.menu-open .menu-btn { position: relative; z-index: 76; }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15.5px; text-decoration: none; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .25s var(--ease); will-change: transform; }
.btn:hover { border-color: var(--text); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--butter); color: var(--on-butter); border-color: var(--butter); }
/* a circle rises from below and fills the button on hover */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before { content: ""; position: absolute; left: -15%; width: 130%; aspect-ratio: 1; top: 110%; border-radius: 50%; background: var(--butter); z-index: -1; transition: top .6s var(--ease); }
.btn:hover::before { top: -40%; }
.btn:hover { color: var(--on-butter); border-color: var(--butter); }
.btn.primary::before { background: var(--text); }
.btn.primary:hover { color: var(--bg); border-color: var(--text); }
.btn.small { height: 42px; padding: 0 18px; font-size: 14.5px; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: border-color .2s, gap .2s; }
.arrow-link:hover { border-color: var(--butter); gap: 12px; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--muted); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }

/* ---------- hero (home) ---------- */
.hero { padding-block: clamp(26px, 5vw, 56px) clamp(40px, 6vw, 72px); position: relative; }
.hero-top { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.hero-name { position: relative; margin: clamp(14px, 3vw, 30px) 0 0; font: 900 clamp(84px, 20.5vw, 318px)/.79 var(--f-display); text-transform: uppercase; letter-spacing: -.005em; color: var(--butter); text-align: center; user-select: none; }
.hero-name .l { display: block; }
.hero-name .l2 { margin-top: .02em; }
.portrait { position: absolute; left: 50%; top: 50%; width: clamp(104px, 17.5vw, 270px); aspect-ratio: 3 / 4.3; transform: translate(-50%, -50%); border-radius: 999px; overflow: hidden; border: clamp(5px, .7vw, 9px) solid var(--bg); background: #000; z-index: 1; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; filter: grayscale(1) contrast(1.08); transform: scale(1.04); transition: transform 1.2s var(--ease); }
.hero-name:hover .portrait img { transform: scale(1.1); }
.badge { position: absolute; z-index: 2; left: calc(50% + clamp(34px, 6.2vw, 100px)); top: calc(50% + clamp(18px, 4vw, 64px)); width: clamp(76px, 9vw, 132px); height: clamp(76px, 9vw, 132px); border-radius: 50%; background: var(--bg); color: var(--text); display: grid; place-items: center; }
.badge svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge text { font: 600 10.4px var(--f-mono); letter-spacing: .16em; fill: currentColor; text-transform: uppercase; }
.badge .star { width: 30%; height: 30%; color: var(--butter); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .badge svg.ring { animation: none; } .dot { animation: none; } }
.hero-foot { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; margin-top: clamp(34px, 5vw, 64px); }
.hero-lead { font-size: clamp(21px, 2.1vw, 28px); line-height: 1.38; margin: 0; letter-spacing: -.01em; max-width: 34ch; }
.hero-lead strong { color: var(--butter); font-weight: 600; }
.hero-side { display: grid; gap: 22px; justify-items: start; }
.hero-meta { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 15px; color: var(--muted); margin: 0; }
.hero-meta dt { color: var(--faint); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; padding-top: 3px; }
.hero-meta dd { margin: 0; color: var(--text); }
@media (max-width: 820px) { .hero-foot { grid-template-columns: 1fr; } .badge { display: none; } .hero-top .mono:last-child { display: none; } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: slide 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 30px; padding-right: 30px; font: 800 clamp(26px, 3.4vw, 44px)/1 var(--f-display); text-transform: uppercase; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--butter); font-size: .6em; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- sections ---------- */
.section { padding-top: clamp(64px, 9vw, 130px); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(28px, 4vw, 52px); }
.sec-title { margin: 0; font: 800 clamp(46px, 7.4vw, 104px)/.88 var(--f-display); text-transform: uppercase; letter-spacing: -.005em; }
.sec-title .k { display: block; font: 500 12.5px/1 var(--f-mono); letter-spacing: .14em; color: var(--muted); margin-bottom: 16px; }
.sec-note { max-width: 40ch; margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 760px) { .sec-head { flex-direction: column; align-items: flex-start; } }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.pillar { border-top: 1px solid var(--line-2); padding-top: 22px; display: grid; gap: 14px; align-content: start; }
.pillar .n { font: 500 13px var(--f-mono); color: var(--butter); }
.pillar h3 { margin: 0; font: 800 clamp(30px, 3vw, 40px)/.95 var(--f-display); text-transform: uppercase; }
.pillar p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* work list (home) */
.work-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.work-list li { border-bottom: 1px solid var(--line); }
.work-row { display: grid; grid-template-columns: 54px minmax(160px, 1fr) 1.5fr 190px 28px; gap: 22px; align-items: center; padding: clamp(20px, 2.6vw, 34px) 0; text-decoration: none; color: var(--text); transition: color .25s; }
.work-row .num { font: 500 12.5px var(--f-mono); color: var(--faint); }
.work-row .name { font: 800 clamp(34px, 4.4vw, 62px)/.9 var(--f-display); text-transform: uppercase; transition: transform .35s var(--ease), color .25s; }
.work-row .desc { color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.work-row .ind { font: 500 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.work-row .go { width: 26px; height: 26px; color: var(--faint); transition: transform .3s var(--ease), color .2s; }
.work-row .thumb { display: none; }
.work-row:hover .name { transform: translateX(10px); color: var(--butter); }
.work-row:hover .go { transform: rotate(-45deg); color: var(--butter); }
@media (max-width: 900px) {
  .work-row { grid-template-columns: 92px 1fr; gap: 6px 16px; }
  .work-row .thumb { display: block; grid-row: span 3; width: 92px; aspect-ratio: 808 / 632; object-fit: cover; border-radius: 10px; }
  .work-row .num, .work-row .go { display: none; }
  .work-row .desc { font-size: 14.5px; }
}
.cursor-preview { position: fixed; left: 0; top: 0; z-index: 40; width: 340px; aspect-ratio: 808 / 632; border-radius: 14px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .25s, transform .35s var(--ease); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.cursor-preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s; }
.cursor-preview img.on { opacity: 1; }
@media (hover: none), (max-width: 900px) { .cursor-preview { display: none; } }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tl { display: grid; grid-template-columns: 190px 1fr; gap: 26px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.tl .when { font: 500 13px/1.6 var(--f-mono); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; padding-top: 4px; }
.tl h3 { margin: 0; font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.tl h3 .org { color: var(--butter); font-weight: 500; }
.tl ul { margin: 10px 0 14px; padding-left: 18px; color: var(--muted); }
.tl li { margin: 4px 0; }
.tl.compact ul { display: none; }
@media (max-width: 700px) { .tl { grid-template-columns: 1fr; gap: 6px; } }

/* facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.fact { padding: clamp(24px, 3vw, 40px) clamp(10px, 2vw, 26px); border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { display: block; font: 900 clamp(64px, 8vw, 118px)/.82 var(--f-display); color: var(--butter); }
.fact span { display: block; margin-top: 12px; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } .fact:nth-child(3) { border-left: 0; padding-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* cards (work + posts) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: clamp(18px, 2vw, 28px); }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--text); }
.card .media { position: relative; border-radius: var(--r); overflow: hidden; background: var(--bg-3); aspect-ratio: 808 / 632; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .media img { transform: scale(1.035); }
.card h3 { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.card h3 .b { font: 800 26px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0; margin-right: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.card .meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.card[hidden] { display: none; }
.post-card { border-top: 1px solid var(--line-2); padding-top: 20px; }
.post-card h3 { font-size: 23px; transition: color .2s; }
.post-card:hover h3 { color: var(--butter); }

/* filters */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; margin-bottom: 18px; scrollbar-width: thin; }
.filters button { flex: none; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; font-size: 14.5px; white-space: nowrap; }
.filters button:hover { color: var(--text); border-color: var(--muted); }
.filters button[aria-pressed="true"] { background: var(--butter); border-color: var(--butter); color: var(--on-butter); font-weight: 600; }
.filters .count { opacity: .6; margin-left: 6px; font-size: 12.5px; }

/* page intro (inner pages) */
.page-intro { padding-block: clamp(40px, 7vw, 96px) clamp(30px, 4vw, 52px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.page-title { margin: 0; font: 900 clamp(64px, 12vw, 180px)/.82 var(--f-display); text-transform: uppercase; color: var(--butter); }
.page-lead { margin: clamp(20px, 3vw, 34px) 0 0; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.45; max-width: 46ch; }

/* split layout (label left, content right) */
.split { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 5vw, 80px); padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.split > .label { position: sticky; top: 100px; align-self: start; }
.split > .label h2 { margin: 0; font: 800 clamp(34px, 3.6vw, 48px)/.92 var(--f-display); text-transform: uppercase; }
.split > .label .k { display: block; font: 500 12px var(--f-mono); letter-spacing: .14em; color: var(--muted); margin-bottom: 12px; }
.split > .body > :first-child { margin-top: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split > .label { position: static; } }
.big-text { font-size: clamp(20px, 2vw, 26px); line-height: 1.45; letter-spacing: -.01em; margin: 0 0 18px; }

/* case study */
.case { --case: var(--butter); }
.case-hero { padding-block: clamp(36px, 6vw, 80px) clamp(28px, 4vw, 48px); }
.case-hero .page-title { color: var(--text); font-size: clamp(64px, 11vw, 160px); }
.case-hero .page-title .dotc { color: var(--case); }
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: clamp(28px, 4vw, 44px) 0 30px; padding: 20px 0; border-block: 1px solid var(--line); }
.case-meta dt { font: 500 11.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.case-meta dd { margin: 6px 0 0; font-weight: 500; }
@media (max-width: 760px) { .case-meta { grid-template-columns: 1fr 1fr; } }
.frame { border-radius: clamp(12px, 1.6vw, 22px); overflow: hidden; border: 1px solid var(--line-2); background: #000; }
.video-wrap { position: relative; aspect-ratio: 16 / 9; }
.video-wrap video, .video-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(transparent 60%, rgba(0, 0, 0, .35)); border: 0; cursor: pointer; color: #fff; }
.play span { display: inline-flex; align-items: center; gap: 12px; height: 64px; padding: 0 26px 0 20px; border-radius: 999px; background: var(--case); color: #111; font-weight: 700; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); transition: transform .3s var(--ease); }
.play:hover span { transform: scale(1.05); }
.play svg { width: 24px; height: 24px; }
.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 26px; }
.who div { border-top: 2px solid var(--case); padding-top: 14px; }
.who b { display: block; font: 600 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.who span { color: var(--muted); }
.ps-list { list-style: none; margin: 0; padding: 0; }
.ps-list li { display: grid; grid-template-columns: 1fr 34px 1fr; gap: 18px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ps-list li:first-child { padding-top: 0; }
.ps-list .lab { display: block; font: 500 11.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.ps-list .a .lab { color: var(--case); }
.ps-list .arr { color: var(--case); padding-top: 22px; }
.ps-list .q p { margin: 0; font-size: 18px; }
.ps-list .a p { margin: 0; color: var(--muted); font-size: 17px; }
@media (max-width: 700px) { .ps-list li { grid-template-columns: 1fr; } .ps-list .arr { display: none; } }
.feature { padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
.feature .fk { font: 500 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--case); }
.feature h3 { margin: 10px 0 8px; font: 800 clamp(30px, 3.4vw, 46px)/.95 var(--f-display); text-transform: uppercase; }
.feature > p { margin: 0 0 22px; color: var(--muted); max-width: 60ch; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.points div { border-top: 1px solid var(--line-2); padding-top: 12px; }
.points b { display: block; margin-bottom: 4px; font-weight: 600; }
.points span { color: var(--muted); font-size: 15.5px; }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; } }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin: 22px 0; }
.sw { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); }
.sw i { display: block; height: 74px; }
.sw div { padding: 10px 12px; font-size: 14px; }
.sw code { display: block; font: 500 12px var(--f-mono); color: var(--muted); margin-top: 2px; }
.built { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.built li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--muted); }
.built li svg { width: 20px; height: 20px; color: var(--case); margin-top: 3px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); }
.pager a { padding: 34px 0; text-decoration: none; display: grid; gap: 8px; }
.pager a + a { border-left: 1px solid var(--line); padding-left: 28px; text-align: right; }
.pager .mono { color: var(--muted); }
.pager b { font: 800 clamp(30px, 4vw, 56px)/.9 var(--f-display); text-transform: uppercase; transition: color .2s; }
.pager a:hover b { color: var(--butter); }

/* prose (blog + about) */
.prose { font-size: 18.5px; line-height: 1.72; max-width: 70ch; }
.prose h2 { font: 700 clamp(26px, 2.6vw, 32px)/1.2 var(--f-body); letter-spacing: -.02em; margin: 2.1em 0 .6em; scroll-margin-top: 96px; }
.prose h3 { font-size: 21px; line-height: 1.3; margin: 1.7em 0 .5em; letter-spacing: -.01em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin: .35em 0; }
.prose a { color: var(--butter); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--butter); font-size: 1.1em; color: var(--text); }
.prose code { font: 500 .86em var(--f-mono); background: var(--bg-3); padding: .12em .4em; border-radius: 6px; }
.prose pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; overflow-x: auto; font-size: 14.5px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; font-size: 1em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose > p:first-child { font-size: 1.18em; line-height: 1.6; color: var(--text); }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: clamp(30px, 5vw, 80px); align-items: start; }
.toc { position: sticky; top: 100px; font-size: 14.5px; border-left: 1px solid var(--line); padding-left: 18px; }
.toc b { display: block; font: 500 11.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.toc a { color: var(--muted); text-decoration: none; line-height: 1.35; display: block; }
.toc a:hover, .toc a.on { color: var(--text); }
@media (max-width: 1000px) { .post-layout { grid-template-columns: 1fr; } .toc { display: none; } }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 26px; color: var(--muted); font-size: 15px; }
.post-title { margin: 0; font: 800 clamp(46px, 6.6vw, 92px)/.92 var(--f-display); text-transform: uppercase; max-width: 18ch; }
.faq { margin-top: 3em; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18.5px; list-style: none; display: flex; justify-content: space-between; gap: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--f-body); color: var(--butter); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }
.author { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; margin-top: 3em; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.author p { margin: 4px 0 0; color: var(--muted); font-size: 15.5px; }

/* about */
.about-top { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 6vw, 90px); align-items: end; }
.about-photo { border-radius: clamp(16px, 2vw, 26px); overflow: hidden; background: #000; aspect-ratio: 4 / 5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; filter: grayscale(1) contrast(1.06); }
@media (max-width: 860px) { .about-top { grid-template-columns: 1fr; } .about-photo { max-width: 420px; } }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.tools h3 { margin: 0 0 12px; font: 500 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.certs { list-style: none; margin: 0; padding: 0; }
.certs li { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.certs li span:last-child { color: var(--muted); font-size: 14.5px; white-space: nowrap; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.c-card { display: grid; gap: 10px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line-2); border-radius: 20px; text-decoration: none; color: var(--text); background: var(--bg-2); transition: border-color .2s, transform .3s var(--ease); position: relative; }
.c-card:hover { border-color: var(--butter); transform: translateY(-3px); }
.c-card .k { font: 500 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.c-card b { font: 800 clamp(30px, 3.4vw, 46px)/1 var(--f-display); text-transform: uppercase; overflow-wrap: anywhere; }
.c-card .v { color: var(--muted); font-size: 15.5px; overflow-wrap: anywhere; }
.c-card .copy { position: absolute; right: 18px; top: 18px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* footer */
.site-foot { margin-top: clamp(80px, 12vw, 170px); border-top: 1px solid var(--line); padding: clamp(44px, 6vw, 80px) 0 28px; }
.cta-big { display: block; text-decoration: none; font: 900 clamp(72px, 16vw, 250px)/.8 var(--f-display); text-transform: uppercase; color: var(--butter); letter-spacing: -.005em; transition: letter-spacing .5s var(--ease); }
.cta-big:hover { letter-spacing: .02em; }
.cta-big .arrow { display: inline-block; width: .5em; vertical-align: -.02em; transition: transform .5s var(--ease); }
.cta-big:hover .arrow { transform: rotate(-45deg); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; margin-top: clamp(36px, 5vw, 64px); }
.foot-grid h2 { margin: 0 0 12px; font: 500 11.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--text); }
.foot-grid p { margin: 0; color: var(--muted); }
.foot-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 15px; transition: opacity .2s, transform .3s var(--ease); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* reveal on scroll (only when JS runs and motion is fine) */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* résumé (screen = paper card, print = A4) */
.resume-page { background: var(--bg); }
.paper { background: #fff; color: #16150f; max-width: 860px; margin: 0 auto; padding: 56px 60px; border-radius: 6px; box-shadow: 0 30px 90px rgba(0, 0, 0, .35); font-size: 14.2px; line-height: 1.5; }
.paper h1 { margin: 0; font: 900 50px/.9 var(--f-display); text-transform: uppercase; letter-spacing: 0; }
.paper .role { margin: 6px 0 0; font-weight: 600; font-size: 16px; }
.paper .contact { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; color: #4a463c; font-size: 13.4px; }
.paper .contact a { color: inherit; text-decoration: none; }
.paper h2 { font: 600 11.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; margin: 22px 0 8px; padding-bottom: 5px; border-bottom: 1.5px solid #16150f; }
.paper p { margin: 0 0 6px; }
.paper .job { margin: 0 0 10px; break-inside: avoid; }
.paper .job-h { display: flex; justify-content: space-between; gap: 12px; }
.paper .job-h b { font-size: 14.6px; }
.paper .job-h span { color: #5d584c; white-space: nowrap; font-size: 13px; }
.paper ul { margin: 3px 0 0; padding-left: 16px; }
.paper li { margin: 1px 0; }
.paper .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.resume-actions { display: flex; justify-content: center; gap: 12px; margin: 0 0 28px; }
@media (max-width: 700px) { .paper { padding: 32px 22px; } .paper .two { grid-template-columns: 1fr; } .paper .job-h { flex-direction: column; gap: 0; } }
@media print {
  @page { size: A4; margin: 12mm 13mm; }
  body { background: #fff !important; }
  .site-head, .site-foot, .resume-actions, .skip, .page-intro, .toast, .cursor-preview { display: none !important; }
  .paper { box-shadow: none; padding: 0; max-width: none; font-size: 10.6pt; }
  .paper h1 { font-size: 34pt; }
  a { text-decoration: none; }
}

/* ---------- layout guards ---------- */
.split > *, .post-layout > *, .about-top > *, .hero-foot > * { min-width: 0; }
.arrow-link svg { width: 18px; height: 18px; flex: none; }
.crumbs span[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
@media (max-width: 600px) {
  .hero-name { font-size: 28.5vw; }
  .portrait { width: 24vw; }
  .certs li { flex-direction: column; gap: 2px; }
  .page-title { font-size: clamp(56px, 19vw, 120px); }
  .case-hero .page-title { font-size: clamp(52px, 17vw, 110px); overflow-wrap: anywhere; }
  .post-title { font-size: clamp(40px, 12vw, 64px); }
  .cta-big { font-size: 21vw; }
}

/* ---------- motion layer (see js/motion.js) ---------- */
/* greeting loader + page transition panels: an SVG shape so the edge can curve */
.loader, .transition { position: fixed; inset: 0; z-index: 100; display: none; pointer-events: none; }
.loader svg, .transition svg { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% + 320px); overflow: visible; }
.loader path, .transition path { fill: var(--butter); }
.loader-word, .t-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; display: flex; align-items: center; gap: 16px; font: 600 clamp(38px, 5.4vw, 68px)/1 var(--f-body); color: var(--on-butter); white-space: nowrap; letter-spacing: -.02em; }
.ldot { width: 12px; height: 12px; border-radius: 50%; background: var(--on-butter); flex: none; }
.first-visit .loader { display: block; pointer-events: auto; animation: panel-failsafe 0s linear 7s forwards; }
.arriving .transition { display: block; animation: panel-failsafe 0s linear 4s forwards; }
@keyframes panel-failsafe { to { visibility: hidden; pointer-events: none; } }

/* masks for words and hero lines that slide up */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.w > i { display: inline-block; font-style: inherit; will-change: transform; }
.hero-name .l { overflow: hidden; padding-top: .05em; margin-top: -.05em; }
.hero-name .l > span { display: inline-block; will-change: transform; }

/* "View" cursor */
.view-cursor { position: fixed; left: 0; top: 0; z-index: 90; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: var(--butter); color: var(--on-butter); display: grid; place-items: center; font: 600 14px var(--f-body); pointer-events: none; transform: scale(0); }

/* image rows that slide with the scroll */
.slides { padding-top: clamp(70px, 9vw, 130px); overflow: hidden; display: grid; gap: clamp(12px, 1.6vw, 22px); }
.slide-row { display: flex; gap: clamp(12px, 1.6vw, 22px); width: max-content; will-change: transform; }
.slide-row:nth-child(2) { margin-left: -12vw; }
.slide { display: block; width: clamp(220px, 24vw, 380px); aspect-ratio: 808 / 632; border-radius: clamp(12px, 1.4vw, 20px); overflow: hidden; background: var(--bg-3); flex: none; }
.slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.slide:hover img { transform: scale(1.05); }

/* footer: bold butter block; the page above has a rounded edge that flattens on scroll */
.site-foot { position: relative; overflow: hidden; background: var(--butter); color: var(--on-butter); border-top: 0; }
.foot-curve { position: absolute; left: -10%; top: 0; width: 120%; height: 0; background: var(--bg); border-radius: 0 0 50% 50%; z-index: 1; pointer-events: none; }
.site-foot .wrap { position: relative; z-index: 2; }
.site-foot .cta-big { color: var(--on-butter); }
.foot-grid h2 { color: color-mix(in srgb, var(--on-butter) 55%, transparent); }
.foot-grid a, .foot-grid p { color: color-mix(in srgb, var(--on-butter) 78%, transparent); }
.foot-grid a:hover { color: var(--on-butter); }
.foot-bar { border-top-color: color-mix(in srgb, var(--on-butter) 22%, transparent); color: color-mix(in srgb, var(--on-butter) 60%, transparent); }
.site-foot ::selection { background: var(--on-butter); color: var(--butter); }
.site-foot :focus-visible { outline-color: var(--on-butter); }

/* the header scrolls away with the page; the round menu button takes over */
.motion .site-head { position: absolute; left: 0; right: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
.motion .hero { padding-top: calc(76px + clamp(26px, 5vw, 56px)); }
.motion .page-intro { padding-top: calc(76px + clamp(40px, 7vw, 96px)); }
.motion .case-hero { padding-top: calc(76px + clamp(36px, 6vw, 80px)); }
.motion .marquee-track { animation: none; }
@media (prefers-reduced-motion: reduce) { .loader, .transition, .view-cursor, .menu-fab { display: none !important; } }

/* Lenis smooth scroll (its recommended base rules) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-scrolling iframe { pointer-events: none; }
@media (max-width: 600px) { .menu-fab { width: 54px; height: 54px; top: 14px; right: 14px; gap: 6px; } .menu-fab span { width: 20px; } .view-cursor { display: none; } }

/* with the motion layer, GSAP does the reveals: the CSS fade must not run at the same time */
.motion [data-reveal] { opacity: 1; transform: none; transition: none; }
/* signature: a faint guide line and the ink that writes itself again and again */
.logo svg { width: 76px; height: 61px; }
.logo .ghost { opacity: .16; }
/* blog: reading progress */
.read-progress { position: fixed; left: 0; top: 0; z-index: 80; height: 3px; width: 100%; background: var(--butter); transform-origin: 0 50%; transform: scaleX(0); }
/* back to top + copy email in the footer bar */
.foot-bar button { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.related { margin-top: clamp(40px, 6vw, 80px); }

/* bounce cards */
.bounce { position: relative; width: min(440px, 100%); height: 230px; flex: none; }
.bounce .bc { position: absolute; left: 50%; top: 50%; width: 170px; aspect-ratio: 808 / 632; margin: -66px 0 0 -85px; border-radius: 18px; overflow: hidden; border: 4px solid var(--text); background: var(--bg-3); box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  transform: translateX(calc(var(--i) * 70px)) rotate(calc(var(--i) * 7deg)); }
.bounce .bc img { width: 100%; height: 100%; object-fit: cover; }
.work-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
@media (max-width: 760px) { .bounce { height: 170px; transform: scale(.72); transform-origin: left center; margin: -10px 0 -20px; } }
/* tooltip cards on the hero keywords */
.tip { color: var(--butter); font-weight: 600; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1.5px; background-repeat: no-repeat; background-position: 0 100%; }
.tip-card { position: fixed; left: 0; top: 0; z-index: 95; width: 260px; border-radius: 16px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); pointer-events: none; opacity: 0; transform: scale(.85); }
.tip-card img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.tip-card p { margin: 0; padding: 12px 14px; font-size: 14px; line-height: 1.45; color: var(--text); }

/* blog: short looping clips between the paragraphs */
.prose .clip { margin: 2em 0; }
.prose .clip video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); }
.prose .clip.tall video { aspect-ratio: 9 / 16; max-width: 300px; margin: 0 auto; }
.prose .clip figcaption { display: flex; gap: 10px; align-items: baseline; }
.prose .clip.tall figcaption { justify-content: center; text-align: center; }
.prose .clip figcaption::before { content: "Clip"; flex: none; font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--butter); }
