/* sulthandk.com — split layout (identity left, content right). Black ground, white type, UI strictly black and white; the thermal palette lives only in the background haze and the photo. Generous, Anduril-like spacing; faint dot grid + cursor spotlight so the page never feels empty. */
:root {
  --bg: #000000;
  --panel: #0c0c0c;
  --line: #1f1f1f;
  --fg: #f5f5f5;
  --text: #a1a1a1;
  --dim: #5e5e5e;
  --c1: #6a2bea;
  --c2: #ffb47a;
  --accent: #ffffff;
  --glow: rgba(224, 76, 200, .07);
  --sel: #ffffff;
  --grad: linear-gradient(90deg, #4b1fd1 0%, #9b2fe0 28%, #e04cc8 52%, #ff7f8a 76%, #ffc07a 100%);
  --grad-v: linear-gradient(180deg, #4b1fd1 0%, #e04cc8 50%, #ffc07a 100%);
  --sans: "Geist", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
::selection { background: #fff; color: #000; }
img { max-width: 100%; }
a { color: var(--fg); text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
b, strong { color: var(--fg); font-weight: 500; }
.u { text-decoration: underline; text-decoration-color: #4a4a4a; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s; }
.u:hover { text-decoration-color: #fff; }

/* ambient layers */
.grid-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, #2a2a2a 1px, transparent 1.2px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 30% 20%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 90% 80% at 30% 20%, #000 20%, transparent 75%); }
.spot { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(600px circle at var(--mx, 30%) var(--my, 20%), var(--glow), transparent 60%); transition: background .1s; }

/* split */
.split { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; }
.left { position: sticky; top: 0; height: 100vh; height: 100dvh; padding-block: 104px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; overflow-y: auto; scrollbar-width: none; }
.left::-webkit-scrollbar { display: none; }
.right { padding-block: 104px 140px; min-width: 0; }

/* identity */
.kicker { font: 500 11.5px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text); display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.kicker::before { content: ""; width: 8px; height: 8px; background: #fff; }
.name { margin: 0; font-size: clamp(40px, 4.8vw, 58px); line-height: 1; font-weight: 600; letter-spacing: -.04em; color: var(--fg); text-wrap: balance; }
.name a { color: inherit; }
.role { margin: 18px 0 0; font-size: 20px; font-weight: 500; color: var(--fg); letter-spacing: -.015em; }
.tagline { margin: 12px 0 0; max-width: 34ch; }
.menu { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 4px; }
.menu a { display: inline-flex; align-items: center; gap: 16px; padding: 6px 0; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--dim); transition: color .2s; }
.menu a::before { content: ""; width: 32px; height: 1px; background: currentColor; transition: width .25s; }
.menu a:hover, .menu a.on { color: var(--fg); }
.menu a:hover::before, .menu a.on::before { width: 64px; background: #fff; }
.status { display: grid; gap: 6px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding-top: 18px; border-top: 1px solid var(--line); }
.status div { display: flex; justify-content: space-between; gap: 16px; }
.status b { text-align: right; }
.status b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.socials { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font: 500 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-top: 16px; }
.socials > * + *::before { content: "/"; color: var(--dim); margin: 0 12px; }
.socials a, .socials button { color: var(--fg); font: inherit; letter-spacing: inherit; text-transform: inherit; background: none; border: 0; padding: 0; cursor: pointer; transition: color .2s; }
.socials a:hover, .socials button:hover { color: var(--accent); }

/* sections */
.label { margin: 112px 0 28px; font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .18em; color: var(--fg); display: flex; align-items: center; gap: 16px; }
.label::before { content: ""; width: 6px; height: 6px; background: #fff; flex: none; }
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.label:first-child { margin-top: 0; }
.lead { margin: 0 0 28px; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.3; letter-spacing: -.02em; color: var(--fg); font-weight: 500; max-width: 24ch; text-wrap: balance; }
.prose p { margin: 0 0 22px; max-width: 60ch; }

/* figures strip */
.figs-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 48px; }
.figs-row div { padding: 24px 0 22px; display: grid; gap: 6px; }
.figs-row div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.figs-row b { font-size: clamp(28px, 3vw, 38px); line-height: 1; font-weight: 500; letter-spacing: -.03em; }
.figs-row small { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

.list { list-style: none; margin: 0; padding: 0; display: grid; }
.list li { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.list li:first-child { padding-top: 0; }
.list .when { font: 12px var(--mono); color: var(--dim); padding-top: 5px; }
.list b { display: block; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font: 500 12px/1 var(--mono); color: var(--fg); border: 1px solid #2a2a2a; padding: 7px 12px; border-radius: 2px; white-space: nowrap; transition: border-color .2s, color .2s; }
.tag:hover { border-color: var(--accent); color: var(--accent); }
.go { display: inline-flex; align-items: center; gap: 12px; margin-top: 112px; font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fg); border: 1px solid #2a2a2a; padding: 16px 22px; transition: border-color .2s, background .2s, color .2s; }
.go:hover { background: #fff; border-color: #fff; color: #000; }
.go span { transition: transform .2s; }
.go:hover span { transform: translateX(4px); }

/* projects list */
.rows { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); }
.prow { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; padding: 32px 0; position: relative; }
.prow::before { content: ""; position: absolute; left: -20px; top: 32px; bottom: 32px; width: 2px; background: #fff; transform: scaleY(0); transform-origin: top; transition: transform .25s; }
.prow:hover::before { transform: scaleY(1); }
.prow:hover h2 { color: #fff; }
.thumb { aspect-ratio: 4 / 3; max-width: 100%; border: 1px solid var(--line); background: var(--panel); color: #3e3e3e; position: relative; overflow: hidden; transition: border-color .2s, color .2s; }
.prow:hover .thumb { border-color: #333; color: #6a6a6a; }
.thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.prow-b { min-width: 0; display: grid; gap: 8px; align-content: start; }
.prow h2 { margin: 0; font-size: 21px; font-weight: 500; line-height: 1.3; letter-spacing: -.02em; color: var(--fg); transition: color .2s; }
.prow h2 span { display: inline-block; transition: transform .2s; color: var(--dim); }
.prow:hover h2 span { transform: translate(3px, -3px); color: var(--accent); }
.prow .meta { font: 500 11px var(--mono); color: var(--dim); letter-spacing: .12em; text-transform: uppercase; }
.prow p { margin: 0; font-size: 16px; max-width: 56ch; }
.prow .tags { margin-top: 10px; }

/* project page */
.back { font: 500 11.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); display: inline-flex; gap: 10px; }
.back span { transition: transform .2s; }
.back:hover span { transform: translateX(-3px); }
.ptitle { margin: 28px 0 0; font-size: clamp(32px, 3.6vw, 44px); line-height: 1.08; font-weight: 600; letter-spacing: -.035em; color: var(--fg); text-wrap: balance; }
.facts { margin: 32px 0 0; display: grid; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.facts dt { font: 500 11px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .12em; padding-top: 3px; }
.facts dd { margin: 0; color: var(--fg); }
.left .menu.toc { margin-top: 36px; }
.hero { aspect-ratio: 16 / 9; max-width: 100%; border: 1px solid var(--line); background: var(--panel); position: relative; color: #3a3a3a; overflow: hidden;
  background-image: radial-gradient(circle, #1d1d1d 1px, transparent 1.2px); background-size: 22px 22px; }
.hero svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph { position: absolute; left: 14px; bottom: 12px; font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.case .summary { margin: 40px 0 0; font-size: clamp(20px, 2vw, 24px); color: var(--fg); max-width: 34ch; line-height: 1.4; letter-spacing: -.015em; font-weight: 500; }
.case section { padding-top: 96px; scroll-margin-top: 32px; }
.case h2 { margin: 0 0 24px; font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .18em; color: var(--fg); display: flex; align-items: center; gap: 16px; }
.case h2::before { content: ""; width: 6px; height: 6px; background: #fff; flex: none; }
.case h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.case p { margin: 0 0 20px; max-width: 62ch; }
.case ul { margin: 0 0 20px; padding-left: 20px; display: grid; gap: 8px; max-width: 62ch; }
.case li::marker { color: var(--accent); }
.req { list-style: none; padding: 0 !important; border-top: 1px solid var(--line); gap: 0 !important; }
.req li { position: relative; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line); }
.req li::before { content: "→"; position: absolute; left: 0; top: 14px; color: var(--accent); font-family: var(--mono); }
.todo { border: 1px dashed #2c2c2c; padding: 16px 18px; margin: 0 0 20px; color: var(--dim); font-size: 14.5px; display: grid; gap: 6px; }
.todo b { font: 500 10.5px var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .16em; }
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.fig { aspect-ratio: 4 / 3; max-width: 100%; border: 1px dashed #2c2c2c; display: grid; place-items: center; text-align: center; padding: 14px; font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); background: var(--panel); }
.pager { margin-top: 128px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pager a { padding: 24px 0; display: grid; gap: 4px; min-width: 0; transition: color .2s; }
.pager a:hover b { color: var(--accent); }
.pager small { font: 500 11px var(--mono); color: var(--dim); letter-spacing: .14em; text-transform: uppercase; }
.pager b { font-weight: 500; font-size: 18px; letter-spacing: -.015em; transition: color .2s; }
.pager .next { text-align: right; grid-column: 2; }

.foot { margin-top: 128px; padding-top: 20px; border-top: 1px solid var(--line); font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
  .left { position: static; height: auto; padding-block: 64px 8px; justify-content: flex-start; overflow: visible; }
  .left .menu:not(.mobile) { display: none; }
  .menu.mobile { display: flex !important; gap: 24px; margin-top: 32px; }
  .menu.mobile a::before { display: none; }
  .right { padding-top: 56px; }
  .label { margin-top: 80px; }
  .prow::before { display: none; }
}
@media (min-width: 1001px) { .menu.mobile { display: none; } }
@media (max-width: 600px) {
  .prow { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .thumb { max-width: 320px; }
  .list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .figs-row { grid-template-columns: minmax(0, 1fr); }
  .figs-row div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .figs, .pager { grid-template-columns: minmax(0, 1fr); }
  .pager .next { grid-column: 1; text-align: left; border-top: 1px solid var(--line); }
}

/* about: photo + lead */
.about-top { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 40px; }
.about-top .lead { margin: 0; }
.photo { position: relative; aspect-ratio: 4 / 5; max-width: 100%; border: 1px solid var(--line); background: var(--panel); overflow: hidden;
  background-image: radial-gradient(ellipse 60% 45% at 50% 42%, rgba(255,127,138,.30), rgba(155,47,224,.22) 45%, transparent 75%), radial-gradient(circle, #1e1e1e 1px, transparent 1.2px); background-size: auto, 16px 16px; display: grid; place-items: center; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: url(#thermal); transition: opacity .4s; }
.photo img.orig { opacity: 0; filter: none; }
.photo:hover img.orig { opacity: 1; }
.photo::before, .photo::after { content: ""; position: absolute; width: 18px; height: 18px; z-index: 1; }
.photo::before { top: 8px; left: 8px; border-top: 1px solid #fff; border-left: 1px solid #fff; }
.photo::after { bottom: 8px; right: 8px; border-bottom: 1px solid #fff; border-right: 1px solid #fff; }
.photo span { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #cfc4d8; text-align: center; position: relative; }
@media (max-width: 600px) { .about-top { grid-template-columns: minmax(0, 1fr); gap: 24px; } .photo { width: 180px; } }

.state { font-style: normal; margin-left: 10px; padding: 2px 8px; border: 1px solid #2a2a2a; border-radius: 999px; color: var(--text); white-space: nowrap; }
.state.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff; margin-right: 6px; vertical-align: 1px; }
.prow .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.prow .meta .state { margin-left: 0; }

/* thermal haze: the only colour on the page */
.haze { position: fixed; inset: -10%; z-index: 0; pointer-events: none; filter: blur(60px); opacity: .55; }
.haze i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.haze .h1 { width: 46vw; height: 46vw; right: -6vw; top: -14vw; background: radial-gradient(circle, rgba(155,47,224,.55), rgba(75,31,209,.25) 45%, transparent 70%); animation: drift1 26s ease-in-out infinite alternate; }
.haze .h2 { width: 30vw; height: 30vw; right: 14vw; top: 6vw; background: radial-gradient(circle, rgba(224,76,200,.40), rgba(255,127,138,.18) 45%, transparent 70%); animation: drift2 32s ease-in-out infinite alternate; }
.haze .h3 { width: 36vw; height: 36vw; left: -12vw; bottom: -16vw; background: radial-gradient(circle, rgba(255,127,138,.30), rgba(255,192,122,.14) 45%, transparent 70%); animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-6vw, 5vw) scale(1.08); } }
@keyframes drift2 { to { transform: translate(5vw, 7vw) scale(.92); } }
@keyframes drift3 { to { transform: translate(7vw, -5vw) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .haze i { animation: none; } }

/* Anduril-style invert on hover: a white panel rises from the bottom, content flips to black */
.prow, .list li, .pager a { position: relative; isolation: isolate; }
.prow { padding: 32px 24px; margin-inline: -24px; }
.list li, .list li:first-child { padding: 18px 16px; margin-inline: -16px; }
.pager a { padding: 24px 20px; }
.prow::before, .list li::before, .pager a::before {
  content: ""; display: block; position: absolute; inset: 0; left: 0; right: 0; top: 0; bottom: 0; width: auto;
  background: #fff; transform: scaleY(0); transform-origin: bottom; transition: transform .45s cubic-bezier(.2, .7, .1, 1); z-index: -1;
}
.prow:hover::before, .prow:focus-visible::before, .list li:hover::before, .pager a:hover::before, .pager a:focus-visible::before { transform: scaleY(1); }
.prow *, .list li *, .pager a * { transition: color .3s, border-color .3s, background-color .3s; }
.prow:hover h2, .prow:hover h2 span, .prow:focus-visible h2 { color: #000; }
.prow:hover h2 span { transform: translate(3px, -3px); }
.prow:hover p, .prow:focus-visible p { color: #2b2b2b; }
.prow:hover .meta, .prow:focus-visible .meta { color: #6b6b6b; }
.prow:hover .tag, .prow:focus-visible .tag { color: #000; border-color: #000; }
.prow:hover .thumb, .prow:focus-visible .thumb { background: #f1f1f1; border-color: #d6d6d6; color: #000; }
.prow:hover .state { color: #000; border-color: #000; }
.prow:hover .state.live::before { background: #000; }
.list li:hover b, .list li:hover div { color: #000; }
.list li:hover .when { color: #6b6b6b; }
.pager a:hover b, .pager a:focus-visible b { color: #000; }
.pager a:hover small { color: #6b6b6b; }
.tag:hover { background: #fff; color: #000; border-color: #fff; }
.prow:hover .tag:hover { background: #000; color: #fff; }
@media (max-width: 1000px) {
  .prow { padding: 28px 16px; margin-inline: -16px; }
  .list li, .list li:first-child { padding-inline: 12px; margin-inline: -12px; }
}

/* photos dropped into frames fill them */
.hero img, .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fig { position: relative; overflow: hidden; }
.fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case figure { margin: 0 0 20px; }
.case figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.case figcaption { margin-top: 8px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
