/* Prabin Phasikawo, portfolio. Editorial light theme with one dark band. */

@font-face { font-family: "Bricolage"; src: url(fonts/bricolage.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url(fonts/geist-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url(fonts/geist-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url(fonts/geist-600.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/geist-mono.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #F6F4EF;
  --paper-2: #EFECE4;
  --card: #FFFFFF;
  --ink: #14161A;
  --ink-2: #2A2D33;
  --muted: #5F636B;
  --soft: #8A8D93;
  --line: #E2DED4;
  --line-2: #D5D0C4;
  --accent: #E8643C;
  --accent-ink: #B9441F;
  --night: #111317;
  --night-2: #1A1D23;
  --night-line: #2A2E36;
  --night-text: #E9E6DF;
  --night-muted: #9EA2AA;

  --display: "Bricolage", "Geist", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Iowan Old Style", "New York", "Palatino Linotype", Palatino, Georgia, serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 22, 26, .04), 0 12px 32px -12px rgba(20, 22, 26, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 500 15.5px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
.btn-line { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(246, 244, 239, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 16.5px/1 var(--display); letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { display: block; padding: 9px 13px; border-radius: 999px; text-decoration: none; font-size: 15px; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-links a:hover, .nav-links a.active { background: rgba(20, 22, 26, .06); color: var(--ink); }
.nav-links-cta { display: none; }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 148px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .6); font: 500 13.5px/1 var(--sans); color: var(--ink-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #1E9E6A; box-shadow: 0 0 0 0 rgba(30, 158, 106, .5); animation: ping 2.4s infinite; flex: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(30, 158, 106, .45); } 80%, 100% { box-shadow: 0 0 0 8px rgba(30, 158, 106, 0); } }
.hero-title { margin: 26px 0 22px; font-size: clamp(42px, 6.4vw, 82px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; }
.serif-it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--accent-ink); }
.hero-sub { max-width: 560px; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 28px; margin: 44px 0 0; padding-top: 26px; border-top: 1px solid var(--line); max-width: 560px; }
.hero-facts dt { font: 600 34px/1 var(--display); letter-spacing: -.03em; }
.hero-facts dd { margin: 8px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); max-width: 150px; }

.hero-art { position: relative; height: clamp(440px, 46vw, 600px); }
.shot { position: absolute; margin: 0; width: 46%; border-radius: 26px; overflow: hidden; background: var(--card); box-shadow: 0 30px 60px -24px rgba(20, 22, 26, .35), 0 0 0 1px rgba(20, 22, 26, .06); transition: transform .8s var(--ease); }
.shot img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }
.s1 { left: 0; top: 12%; transform: rotate(-5deg); z-index: 2; }
.s2 { left: 27%; top: 0; z-index: 3; width: 48%; }
.s3 { right: 0; top: 16%; transform: rotate(5deg); z-index: 1; }
.hero-art:hover .s1 { transform: rotate(-7deg) translateX(-8px); }
.hero-art:hover .s3 { transform: rotate(7deg) translateX(8px); }
.hero-badge { position: absolute; z-index: 4; left: 6%; bottom: 2%; display: grid; gap: 3px; padding: 14px 18px; border-radius: 16px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
.hb-label { font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.hb-value { font: 600 18px/1.2 var(--display); }
.hb-sub { font-size: 12.5px; color: #B7B3AA; }

.trust { position: relative; margin-top: 64px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); }
.trust-label { font: 400 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.trust-logos { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.trust-logos li { display: inline-flex; align-items: center; gap: 10px; font: 500 15px/1 var(--sans); color: var(--ink-2); }
.trust-logos img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(20, 22, 26, .08); }
.mono-logo { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font: 700 15px/1 var(--display); color: #fff; }
.mono-logo.lg { width: 48px; height: 48px; border-radius: 12px; font-size: 20px; }
.mono-logo.orbit { background: linear-gradient(140deg, #6D4AFF, #3B2BB5); }
.mono-logo.bridge { width: 48px; height: 48px; border-radius: 12px; font-size: 16px; background: linear-gradient(140deg, #1AA983, #0A6E5A); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 128px) 0; position: relative; }
.section-tint { background: var(--paper-2); }
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.eyebrow { font: 400 12.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -.03em; }
.sec-lede { margin-top: 18px; font-size: clamp(16.5px, 1.4vw, 18.5px); color: var(--muted); max-width: 640px; }

/* ---------- Case studies ---------- */
.case { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(24px, 3vw, 36px); margin-bottom: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.case-flip .case-media { order: 2; }
.case-media { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 4%; min-height: 440px; padding: 36px 6% 0; border-radius: 20px; overflow: hidden; }
.case-media.tone-blue { background: linear-gradient(160deg, #E4ECFF, #C9D7FF); }
.case-media.tone-night { background: radial-gradient(120% 90% at 30% 10%, #2B2F3A, #0F1116); }
.case-media.tone-green { background: linear-gradient(160deg, #DDF3EA, #B9E5D3); align-items: center; padding: 36px 5%; }
.case-media.tone-rose { background: linear-gradient(160deg, #FBE6EE, #F0C9DA); }
.case-shot { width: 44%; max-width: 250px; border-radius: 18px 18px 0 0; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .35); transition: transform .7s var(--ease); }
.case-shot.alt { width: 40%; max-width: 228px; margin-bottom: -6%; }
.case:hover .case-shot { transform: translateY(-8px); }
.case:hover .case-shot.alt { transform: translateY(-4px); }
.case-wide { width: 100%; border-radius: 14px; box-shadow: 0 24px 48px -22px rgba(0, 0, 0, .35); }
.own-badge { position: absolute; top: 16px; left: 16px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 12.5px/1 var(--sans); }

.case-id { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.case-id img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 0 0 1px rgba(20, 22, 26, .08); }
.case-id h3 { font-size: clamp(26px, 2.6vw, 34px); }
.case-id p { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.case-body > p { color: var(--ink-2); }
.case-points { margin: 18px 0 20px; display: grid; gap: 8px; }
.case-points li { position: relative; padding-left: 22px; font-size: 15.5px; color: var(--muted); }
.case-points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 2px; background: var(--accent); border-radius: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 6px 11px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font: 400 12.5px/1.2 var(--mono); color: var(--ink-2); }
.case-role { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.case-role b { display: inline-block; margin-right: 8px; font: 400 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.case-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 14px/1 var(--sans); text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.link-btn::after { content: "↗"; font-size: 12px; opacity: .6; }
.link-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.more-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 64px 0 22px; }
.more-head h3 { font-size: clamp(22px, 2.2vw, 28px); }
.more-head p { color: var(--muted); font-size: 15px; }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mini { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .35s var(--ease), box-shadow .35s; }
.mini:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mini-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.mini-top img { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(20, 22, 26, .08); }
.tag { font: 400 11.5px/1 var(--mono); color: var(--soft); text-align: right; }
.mini h4 { font-size: 19px; }
.mini p { font-size: 14.5px; color: var(--muted); flex: 1; }
.link-arrow { align-self: flex-start; font: 500 14px/1 var(--sans); text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid var(--line-2); transition: border-color .2s, color .2s; }
.link-arrow::after { content: " ↗"; font-size: 12px; }
.link-arrow:hover { color: var(--accent-ink); border-color: var(--accent); }

.lab-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lab { padding: 22px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: transparent; }
.lab h4 { font-size: 18px; margin: 14px 0 8px; }
.lab p { font-size: 14.5px; color: var(--muted); }
.lab-status { display: inline-block; padding: 5px 10px; border-radius: 999px; background: rgba(232, 100, 60, .1); color: var(--accent-ink); font: 400 11.5px/1 var(--mono); letter-spacing: .04em; }

/* ---------- AI (dark band) ---------- */
.section-dark { background: var(--night); color: var(--night-text); }
.section-dark .eyebrow { color: var(--accent); }
.section-dark .sec-lede { color: var(--night-muted); }
.ai-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.ai-steps { display: grid; gap: 4px; counter-reset: s; }
.ai-steps li { display: flex; gap: 20px; padding: 24px 0; border-top: 1px solid var(--night-line); }
.ai-steps li:last-child { border-bottom: 1px solid var(--night-line); }
.step-n { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--night-line); font: 400 14px/1 var(--mono); color: var(--accent); }
.ai-steps h3 { font-size: 21px; margin-bottom: 6px; color: #fff; }
.ai-steps p { color: var(--night-muted); font-size: 15.5px; }
.ai-panel { position: sticky; top: 100px; padding: 28px; border-radius: 22px; background: var(--night-2); border: 1px solid var(--night-line); }
.panel-label { font: 400 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--night-muted); margin-bottom: 16px; }
.ai-wins { display: grid; gap: 18px; margin-bottom: 30px; }
.ai-wins li { display: grid; gap: 4px; padding-left: 16px; border-left: 2px solid var(--accent); }
.ai-wins b { font: 600 16.5px/1.3 var(--display); color: #fff; }
.ai-wins span { font-size: 14.5px; color: var(--night-muted); }
.chips-dark li { background: transparent; border-color: var(--night-line); color: var(--night-text); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service { padding: 28px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; }
.svc-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 6px; }
.svc-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 20px; }
.service p { font-size: 15px; color: var(--muted); flex: 1; }
.svc-list { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.svc-list li { font: 400 13px/1.3 var(--mono); color: var(--ink-2); }
.stack { margin-top: 48px; display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; padding-top: 28px; border-top: 1px solid var(--line); }
.stack-label { font: 400 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); padding-top: 6px; }
.stack-list { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.stack-list li { font: 500 clamp(17px, 1.6vw, 21px)/1.5 var(--display); color: var(--ink-2); }
.stack-list li::after { content: "·"; margin-left: 22px; color: var(--line-2); }
.stack-list li:last-child::after { content: ""; }

/* ---------- Experience ---------- */
.exp-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.sec-head.sticky { position: sticky; top: 110px; margin-bottom: 0; }
.edu { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line-2); display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.edu-title { margin-top: 10px; font: 400 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.edu-title:first-child { margin-top: 0; }
.jobs { display: grid; }
.job { padding: 26px 0; border-top: 1px solid var(--line-2); }
.job:last-child { border-bottom: 1px solid var(--line-2); }
.job-when { display: flex; align-items: center; gap: 10px; font: 400 13px/1 var(--mono); color: var(--soft); margin-bottom: 10px; }
.job h3 { font-size: clamp(19px, 1.8vw, 22px); margin-bottom: 8px; }
.job p:last-child { font-size: 15.5px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-info h2 { font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -.03em; }
.contact-list { margin-top: 36px; display: grid; }
.contact-list li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 16px; }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list li > span { font: 400 12px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line-2); justify-self: start; word-break: break-all; }
.contact-list a:hover { border-color: var(--accent); }
.contact-list li[hidden] { display: none; }

.contact-form { padding: clamp(22px, 3vw, 36px); background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label, .field .label { font: 500 14px/1 var(--sans); color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper);
  font: 400 16px/1.4 var(--sans); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(20, 22, 26, .06); }
.field .invalid { border-color: #C2410C; box-shadow: 0 0 0 4px rgba(194, 65, 12, .08); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; cursor: pointer; }
.pills input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pills span { display: inline-block; padding: 10px 15px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 14px/1 var(--sans); color: var(--ink-2); transition: all .2s; }
.pills input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pills input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-size: 15px; }
.form-status.ok { color: #157A51; }
.form-status.err { color: #B4380F; }
.form-status a { color: inherit; }
.form-note { font-size: 13px; color: var(--soft); margin-top: -8px; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid rgba(246, 244, 239, .35); border-top-color: var(--paper); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--night-muted); padding: 56px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 32px; align-items: start; }
.footer .brand { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 360px; font-size: 14.5px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-nav a { text-decoration: none; font-size: 14.5px; color: var(--night-text); }
.footer-nav a:hover { color: var(--accent); }
.copy { font: 400 13px/1.5 var(--mono); }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.notfound h1 { font-size: clamp(36px, 6vw, 64px); }
.notfound .sec-lede { margin: 18px auto 32px; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .more-grid, .lab-grid, .services { grid-template-columns: repeat(2, 1fr); }
  .case { grid-template-columns: 1fr; }
  .case-flip .case-media { order: 0; }
  .case-media { min-height: 0; max-height: 460px; }
  .case-wide { max-width: 640px; margin: 0 auto; }
}
@media (max-width: 900px) {
  .nav-cta { display: none; }
  .menu-btn { display: inline-grid; place-items: center; gap: 5px; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .7); cursor: pointer; padding: 0; align-content: center; }
  .menu-btn span { display: block; width: 18px; height: 1.6px; background: var(--ink); transition: transform .3s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
  .nav nav { margin: 0; }
  .nav-links { position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 2px; padding: 14px var(--gutter) 22px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .25); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 14px 12px; font-size: 17px; border-radius: 12px; }
  .nav-links-cta { display: block; }
  .nav.menu-open { background: var(--paper); border-color: var(--line); }

  .hero { padding-top: 116px; }
  .hero-grid, .ai-grid, .exp-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { height: clamp(380px, 92vw, 560px); max-width: 560px; margin: 8px auto 0; width: 100%; }
  .ai-panel, .sec-head.sticky { position: static; }
  .stack { grid-template-columns: 1fr; gap: 12px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero-facts { grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
  .hero-facts dt { font-size: 26px; }
  .hero-facts dd { font-size: 12.5px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-badge { left: 0; bottom: 0; padding: 12px 14px; }
  .hb-value { font-size: 16px; }
  .trust { gap: 16px; margin-top: 44px; }
  .trust-logos { gap: 12px 18px; }
  .more-grid, .lab-grid, .services { grid-template-columns: 1fr; }
  .case { padding: 14px; border-radius: 22px; }
  .case-body { padding: 4px 6px 10px; }
  .case-media { min-height: 0; padding: 26px 5% 0; }
  .case-media.tone-green { padding: 22px 4%; }
  .field-row { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .stack-list li::after { margin-left: 14px; }
  .stack-list { gap: 6px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Brand lockup ---------- */
.brand-text { display: grid; gap: 3px; }
.brand-name { font: 600 16.5px/1 var(--display); letter-spacing: -.01em; }
.brand-tag { font: 400 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.brand img { transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.04); }
.footer .brand-name { color: #fff; }

/* ---------- Live touches ---------- */
.hero-badge { min-width: 240px; }
.hb-label { display: inline-flex; align-items: center; gap: 8px; }
.hb-label .live-dot { width: 6px; height: 6px; }
.hero-badge .swap { animation: tick-in .5s var(--ease); }
@keyframes tick-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes float-a { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes float-b { 0%, 100% { translate: 0 0; } 50% { translate: 0 8px; } }
.s1 { animation: float-a 7s ease-in-out infinite; }
.s2 { animation: float-b 8s ease-in-out infinite; }
.s3 { animation: float-a 9s ease-in-out infinite 1s; }

.presence { display: inline-flex; align-items: center; gap: 10px; }
.presence-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--soft); flex: none; }
.presence-dot.on { background: #1E9E6A; animation: ping 2.4s infinite; }
.presence-dot.away { background: #D9A23A; }

.link-btn.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.link-btn.solid::after { content: "→"; opacity: 1; }
.link-btn.solid:hover { background: #000; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-list { display: grid; }
.faq-item { border-top: 1px solid var(--line-2); }
.faq-item:last-child { border-bottom: 1px solid var(--line-2); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { font-size: clamp(17px, 1.6vw, 20px); font-weight: 500; letter-spacing: -.01em; }
.faq-icon { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .3s var(--ease), background .3s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: var(--ink); transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq-item[open] .faq-icon { background: var(--ink); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: var(--paper); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item p { padding: 0 48px 24px 0; color: var(--muted); font-size: 16px; }

/* ---------- Footer CTA ---------- */
.footer-cta { display: grid; gap: 10px; padding: 24px 0 56px; margin-bottom: 48px; border-bottom: 1px solid var(--night-line); text-decoration: none; color: #fff; }
.fc-kicker { font: 400 12.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--night-muted); }
.fc-big { font: 600 clamp(48px, 10vw, 140px)/.95 var(--display); letter-spacing: -.045em; transition: color .3s; }
.fc-spark { display: inline-block; margin-left: .12em; color: var(--accent); font-size: .55em; vertical-align: .55em; transition: transform .6s var(--ease); }
.footer-cta:hover .fc-big { color: var(--accent); }
.footer-cta:hover .fc-spark { transform: rotate(90deg) scale(1.1); color: #fff; }

/* ---------- Form: success state ---------- */
.form-success { display: none; text-align: center; padding: 28px 8px; }
.contact-form.sent .form-success { display: grid; gap: 12px; justify-items: center; }
.contact-form.sent > :not(.form-success) { display: none; }
.check { width: 64px; height: 64px; border-radius: 50%; background: #1E9E6A; display: grid; place-items: center; animation: pop .5s var(--ease); }
.check svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .25s var(--ease) forwards; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 { font-size: 24px; }
.form-success p { color: var(--muted); max-width: 380px; }
.char-count { justify-self: end; font: 400 12px/1 var(--mono); color: var(--soft); margin-top: -2px; }

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-item p { padding-right: 0; }
  .brand-tag { display: none; }
}

/* ---------- Case study pages ---------- */
.cs-nav-cta { margin-left: auto; }
.cs-hero { padding: 132px 0 48px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 400 13px/1 var(--mono); color: var(--soft); margin-bottom: 36px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--accent-ink); }
.cs-id { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.cs-id img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 0 0 1px rgba(20, 22, 26, .08), var(--shadow); }
.cs-id .eyebrow { margin: 0; }
.cs-hero h1 { font-size: clamp(36px, 5.4vw, 68px); letter-spacing: -.035em; max-width: 980px; }
.cs-hero .sec-lede { max-width: 760px; }
.cs-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 40px 0 28px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.cs-facts div { padding: 18px 18px 18px 0; }
.cs-facts div + div { padding-left: 18px; border-left: 1px solid var(--line-2); }
.cs-facts dt { font: 400 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.cs-facts dd { margin: 8px 0 0; font: 500 16px/1.35 var(--display); }
.cs-gallery { padding: clamp(40px, 6vw, 72px) 0; }
.cs-gallery-inner { display: flex; justify-content: center; gap: clamp(14px, 3vw, 32px); }
.cs-shot { margin: 0; width: min(30%, 300px); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .4); }
.cs-shot:nth-child(2) { transform: translateY(-18px); }
.cs-wide { margin: 0; max-width: 960px; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .35); }
.cs-gallery.tone-blue { background: linear-gradient(160deg, #E4ECFF, #C9D7FF); }
.cs-gallery.tone-night { background: radial-gradient(120% 90% at 30% 10%, #2B2F3A, #0F1116); }
.cs-gallery.tone-green { background: linear-gradient(160deg, #DDF3EA, #B9E5D3); }
.cs-gallery.tone-rose { background: linear-gradient(160deg, #FBE6EE, #F0C9DA); }
.cs-body { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px 72px; }
.cs-body > div:nth-child(1) { grid-column: 1; }
.cs-body > div:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
.cs-body h2 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 16px; }
.cs-body p { color: var(--ink-2); font-size: 17px; }
.cs-body .case-points li { font-size: 16.5px; }
.cs-next { padding: 0 0 clamp(64px, 8vw, 104px); }
.cs-next-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 32px; border-top: 1px solid var(--line-2); }
.cs-nav-link { display: grid; gap: 4px; text-decoration: none; }
.cs-nav-link.right { text-align: right; }
.cs-nav-link span { font: 400 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.cs-nav-link b { font: 600 22px/1.2 var(--display); }
.cs-nav-link:hover b { color: var(--accent-ink); }
@media (max-width: 900px) {
  .cs-facts { grid-template-columns: 1fr 1fr; }
  .cs-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .cs-facts div:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .cs-body { grid-template-columns: 1fr; }
  .cs-body > div:nth-child(2) { grid-column: 1; grid-row: auto; }
}
@media (max-width: 600px) {
  .cs-hero { padding-top: 104px; }
  .cs-gallery-inner { gap: 10px; }
  .cs-shot { border-radius: 14px; }
  .cs-next-inner { flex-wrap: wrap; }
  .cs-next-inner .btn { order: 3; width: 100%; }
}

/* ---------- Hero code card (developer-first hero) ---------- */
.hero-code { position: relative; }
.hero-code::before { content: ""; position: absolute; inset: 8% -6% -8% 10%; border-radius: 32px; background: radial-gradient(60% 60% at 60% 40%, rgba(232, 100, 60, .22), transparent 70%); filter: blur(30px); z-index: 0; }
.ide { position: relative; z-index: 1; border-radius: 18px; background: #15171C; color: #D8D5CE; box-shadow: 0 40px 80px -30px rgba(20, 22, 26, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset; overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .8s var(--ease); }
.hero-code:hover .ide { transform: perspective(1400px) rotateY(0) rotateX(0); }
.ide-bar { display: flex; align-items: center; gap: 4px; padding: 12px 14px 0; background: #1B1E24; border-bottom: 1px solid #262A31; }
.ide-dots { display: inline-flex; gap: 7px; margin-right: 14px; padding-bottom: 12px; }
.ide-dots i { width: 11px; height: 11px; border-radius: 50%; background: #3A3E46; }
.ide-dots i:nth-child(1) { background: #EF6A5E; } .ide-dots i:nth-child(2) { background: #F4BF4F; } .ide-dots i:nth-child(3) { background: #61C554; }
.ide-tab { padding: 8px 14px 11px; font: 400 12.5px/1 var(--mono); color: #8B8F97; border-radius: 8px 8px 0 0; }
.ide-tab.active { background: #15171C; color: #ECE9E2; box-shadow: inset 0 2px 0 var(--accent); }
.ide-code { margin: 0; padding: 18px 0 14px; font: 400 13.5px/1.75 var(--mono); overflow-x: auto; counter-reset: ln; tab-size: 2; }
.ide-code code { display: block; min-width: max-content; }
.ln { display: block; padding: 0 22px 0 0; white-space: pre; }
.ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 3.2em; padding-right: 1.2em; text-align: right; color: #4B5059; user-select: none; }
.ide-code .c { color: #6E747E; font-style: italic; }
.ide-code .k { color: #E8875F; }
.ide-code .t { color: #8FC1FF; }
.ide-code .s { color: #A9D98B; }
.ide-code .n { color: #F2C66D; }
.ide-code .f { color: #D7A8FF; }
.cursor { display: inline-block; width: 8px; height: 1.1em; margin-left: 2px; vertical-align: -.2em; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ide-term { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; padding: 12px 22px; background: #111317; border-top: 1px solid #262A31; font: 400 12.5px/1.5 var(--mono); color: #B9B6AF; }
.term-prompt { color: var(--accent); }
.term-out { color: #61C554; margin-left: auto; transition: opacity .3s; }
.term-out.pending { color: #8B8F97; }
.ide-status { display: flex; justify-content: space-between; gap: 12px; padding: 7px 14px; background: var(--accent); color: #1B0F09; font: 500 11.5px/1.3 var(--mono); }
.ide-status > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.ide-status .live-dot { width: 7px; height: 7px; background: #1B0F09; animation: none; }

/* ---------- Tech marquee ---------- */
.marquee { position: relative; margin-top: 72px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 0; animation: marquee 48s linear infinite; }
.marquee-track li { padding: 0 26px; font: 500 clamp(18px, 1.8vw, 24px)/1 var(--display); letter-spacing: -.01em; color: var(--ink-2); white-space: nowrap; position: relative; }
.marquee-track li::after { content: "✦"; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--accent); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Skills ---------- */
.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skill { display: flex; flex-direction: column; gap: 14px; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.skill:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.skill-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.skill h3 { font-size: 21px; }
.skill p { font-size: 15px; color: var(--muted); flex: 1; }
.lvl { display: inline-flex; gap: 3px; }
.lvl i { width: 14px; height: 5px; border-radius: 3px; background: var(--accent); }
.lvl i.off { background: var(--line-2); }
.practices { margin-top: 48px; display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding-top: 28px; border-top: 1px solid var(--line); }
.practice-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 28px; }
.practice-list li { display: grid; gap: 4px; padding-left: 14px; border-left: 2px solid var(--line-2); transition: border-color .3s; }
.practice-list li:hover { border-color: var(--accent); }
.practice-list b { font: 600 16px/1.3 var(--display); }
.practice-list span { font-size: 14px; color: var(--muted); }

/* ---------- Compact work cards ---------- */
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case-grid .case { display: flex; flex-direction: column; margin: 0; padding: 28px; border-radius: 22px; box-shadow: none; transition: transform .35s var(--ease), box-shadow .35s; }
.case-grid .case:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-grid .case-body { display: flex; flex-direction: column; height: 100%; }
.case-grid .case-body > p { font-size: 15.5px; }
.case-grid .case-points li { font-size: 14.5px; }
.case-grid .case-id img { width: 48px; height: 48px; border-radius: 12px; }
.case-grid .case-id h3 { font-size: 24px; }
.case-grid .case-links { margin-top: auto; padding-top: 18px; }

@media (max-width: 1080px) {
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .practice-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .ide { transform: none; }
  .hero-code { margin-top: 12px; }
  .practices { grid-template-columns: 1fr; gap: 14px; }
  .case-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .skill-grid, .practice-list { grid-template-columns: 1fr; }
  .ide-code { font-size: 12px; }
  .ln::before { width: 2.4em; padding-right: .9em; }
  .ide-tab:not(.active) { display: none; }
  .marquee { margin-top: 48px; }
  .case-grid .case { padding: 22px; }
}
.ide-code, .ide-code code { white-space: normal; }
.hero-grid > *, .hero-code, .ide { min-width: 0; }
