/* hassamkhan.com: obsidian, champagne gold, one aurora gradient and a green "founder" light. */
@font-face { font-family: 'Fraunces'; src: url(/fonts/fraunces.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url(/fonts/fraunces-italic.woff2) format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/inter.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/mono.woff2) format('woff2'); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --ink: #06292b; --ink2: #083236; --panel: #0b3b3f;
  --line: rgba(230, 225, 215, 0.1); --line2: rgba(230, 225, 215, 0.2);
  --text: #ebe6dc; --muted: #a9bcba; --soft: #7e9795;
  --em: #5fd1b8; --cy: #8fd6cd; --vi: #b9ab94; --gold: #c9b896;
  --aurora: linear-gradient(115deg, #7fd8c6 0%, #a8d9cf 45%, #d4c6a8 100%);
  --card: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.016));
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--ink); color: var(--text); font: 400 1.04rem/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul { list-style: none; padding: 0; }
::selection { background: rgba(143, 214, 205, 0.28); }
:focus-visible { outline: 2px solid var(--cy); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--ink); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.narrow { max-width: 860px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(6, 41, 43, 0.94); border-bottom: 1px solid var(--line); }
@media (min-width: 901px) { .site-header { background: rgba(6, 41, 43, 0.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); } }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 500 1.08rem var(--serif); letter-spacing: 0.01em; }
.mono-mark { font: 700 0.7rem var(--mono); font-style: normal; letter-spacing: 0.08em; padding: 7px 8px; border-radius: 9px; background: var(--aurora); color: #06292b; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 34px); }
.nav a { font-size: 0.86rem; color: var(--muted); position: relative; padding: 6px 0; transition: color 0.3s; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.nav a[aria-current]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--aurora); }
.nav .nav-i2 { color: var(--text); border: 1px solid var(--line2); border-radius: 999px; padding: 8px 16px; }
.nav .nav-i2:hover { border-color: var(--em); }
.burger { display: none; width: 44px; height: 44px; place-items: center; align-content: center; gap: 6px; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: transform 0.4s var(--ease); }
.burger[aria-expanded='true'] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- type and parts ---------- */
.eyebrow { display: flex; align-items: center; gap: 14px; font: 500 0.72rem var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.eyebrow span { color: var(--gold); }
.eyebrow::after { content: ''; flex: 0 0 56px; height: 1px; background: var(--line2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.05; }
em { font-style: italic; background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-right: 0.08em; }
.h2 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); margin: 18px 0 28px; max-width: 17ch; }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: var(--muted); max-width: 54ch; margin-top: 20px; }
.lead a { color: var(--text); border-bottom: 1px solid var(--em); }
.lead2 { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--text); opacity: 0.86; max-width: 58ch; margin-bottom: 20px; }
.small { font-size: 0.92rem; color: var(--muted); }
.narrow p { margin-bottom: 18px; color: var(--text); opacity: 0.84; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btns.center { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; border: 1px solid var(--line2); font: 600 0.9rem var(--sans); transition: transform 0.4s var(--ease), border-color 0.3s, filter 0.3s; }
.btn:hover { border-color: var(--cy); transform: translateY(-2px); }
.btn.primary { background: var(--aurora); color: #06292b; border-color: transparent; box-shadow: 0 16px 44px rgba(95, 209, 184, 0.2); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.wide { width: 100%; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font: 500 0.78rem var(--mono); color: var(--soft); }
.meta span::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-right: 10px; vertical-align: middle; }

.founder-pill { display: inline-flex; align-items: stretch; border: 1px solid rgba(95, 209, 184, 0.4); border-radius: 999px; background: rgba(95, 209, 184, 0.07); font: 500 0.8rem var(--sans); overflow: hidden; }
.founder-pill a, .founder-pill .fp-main { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; transition: background 0.3s; }
.founder-pill a:hover { background: rgba(95, 209, 184, 0.14); }
.fp-sub { border-left: 1px solid rgba(95, 209, 184, 0.3); color: var(--muted); font-family: var(--mono); font-size: 0.72rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--em); box-shadow: 0 0 12px var(--em); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(95, 209, 184, 0.6); } 70%, 100% { box-shadow: 0 0 0 11px rgba(95, 209, 184, 0); } }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(44px, 8vw, 110px) 0 clamp(60px, 8vw, 120px); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -10% -10% 0 -10%; pointer-events: none; background: radial-gradient(620px 420px at 76% 28%, rgba(95, 209, 184, 0.17), transparent 70%), radial-gradient(720px 520px at 92% 72%, rgba(185, 171, 148, 0.2), transparent 70%), radial-gradient(520px 380px at 8% 6%, rgba(143, 214, 205, 0.1), transparent 70%); animation: drift 20s ease-in-out infinite alternate; }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.7; background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(70% 70% at 72% 40%, #000, transparent); mask-image: radial-gradient(70% 70% at 72% 40%, #000, transparent); }
@keyframes drift { to { transform: translate3d(-2%, 3%, 0) scale(1.06); } }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.hero h1 { font-size: clamp(3.1rem, 6.6vw, 6rem); line-height: 0.95; letter-spacing: -0.025em; margin: 28px 0 0; }
.hero-art { position: relative; justify-self: end; width: min(100%, 400px); }
.aura { position: absolute; inset: -14% -18%; background: radial-gradient(closest-side, rgba(143, 214, 205, 0.28), rgba(185, 171, 148, 0.16) 55%, transparent 75%); animation: breathe 7s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: scale(1.08); opacity: 0.8; } }
.portrait { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; border: 1px solid var(--line2); background: #0d3a3d; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.portrait::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, rgba(6, 41, 43, 0.5)); pointer-events: none; }
.portrait.small { width: min(100%, 300px); justify-self: end; }
.float { position: absolute; padding: 9px 16px; border-radius: 999px; font: 500 0.7rem var(--mono); letter-spacing: 0.08em; background: rgba(16, 19, 26, 0.86); border: 1px solid var(--line2); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4); animation: bob 6s ease-in-out infinite alternate; white-space: nowrap; }
.f1 { left: -9%; top: 14%; color: var(--em); }
.f2 { right: -8%; top: 52%; animation-delay: -2s; color: var(--cy); }
.f3 { left: -4%; bottom: 8%; animation-delay: -4s; color: var(--gold); }
@keyframes bob { to { transform: translateY(-12px); } }

/* ---------- sections ---------- */
.sec { padding: clamp(70px, 10vw, 140px) 0; }
.sec.tight { padding: clamp(24px, 3vw, 36px) 0; }
.dim { background: linear-gradient(180deg, var(--ink2), var(--ink)); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 10px; }
.card { position: relative; border: 1px solid var(--line); border-radius: 22px; background: var(--card); overflow: hidden; transition: border-color 0.4s, transform 0.6s var(--ease); }
.card::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(143, 214, 205, 0.11), transparent 45%); }
a.card:hover, .proj:hover, .skill:hover { border-color: var(--line2); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.path { padding: 32px; display: flex; flex-direction: column; gap: 14px; min-height: 320px; }
.path h3 { font-size: 2rem; }
.path p { color: var(--muted); }
.num { font: italic 400 2.6rem var(--serif); color: var(--gold); line-height: 1; }
.go { margin-top: auto; font: 500 0.76rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--em); }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.split.rev { grid-template-columns: 0.9fr 1.1fr; }
.panel { padding: 28px; }
.panel h3 { font-size: 1.9rem; margin-bottom: 10px; }
.panel p { color: var(--muted); }
.mini { font: 500 0.7rem var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold) !important; margin-bottom: 8px; }
.mini.sp { margin-top: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips a { display: inline-block; padding: 8px 15px; border: 1px solid var(--line2); border-radius: 999px; font-size: 0.84rem; transition: border-color 0.3s, color 0.3s; }
.chips a:hover { border-color: var(--cy); color: var(--cy); }

/* orbit diagram */
.orbit-wrap { display: grid; place-items: center; padding: 20px; }
.orbit { position: relative; width: min(100%, 470px); aspect-ratio: 1; }
.core { position: absolute; inset: 33%; border-radius: 50%; display: grid; place-items: center; text-align: center; font: italic 400 1.25rem/1.05 var(--serif); background: radial-gradient(circle at 35% 30%, rgba(95, 209, 184, 0.4), rgba(185, 171, 148, 0.28) 60%, rgba(6, 41, 43, 0.9)); border: 1px solid var(--line2); box-shadow: 0 0 90px rgba(143, 214, 205, 0.22); }
.ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.16); animation: spin var(--d) linear infinite; }
.r1 { inset: 13%; --d: 44s; }
.r2 { inset: 0; --d: 72s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
.node { position: absolute; transform: translate(-50%, -50%); }
.node b { display: inline-block; padding: 8px 14px; border-radius: 999px; background: rgba(16, 19, 26, 0.94); border: 1px solid var(--line2); font: 500 0.7rem var(--mono); letter-spacing: 0.06em; white-space: nowrap; }
.r1 .node b { animation: spin-rev var(--d) linear infinite; }
.r2 .node b { animation: spin var(--d) linear infinite; }
.n1 { left: 50%; top: 0; } .n2 { left: 50%; top: 100%; }
.n3 { left: 0; top: 50%; } .n4 { left: 100%; top: 50%; } .n5 { left: 14.6%; top: 14.6%; }
.n1 b { color: var(--em); } .n2 b { color: var(--cy); } .n3 b { color: var(--gold); } .n4 b { color: var(--vi); }

/* projects */
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 22px; margin-top: 10px; }
.proj { display: flex; flex-direction: column; }
.cover { position: relative; height: 150px; display: grid; place-items: center; overflow: hidden; }
.cover::before { content: ''; position: absolute; inset: 0; background: radial-gradient(260px 140px at 70% 20%, rgba(255, 255, 255, 0.2), transparent 70%); }
.cover::after { content: ''; position: absolute; inset: 0; opacity: 0.5; background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px); background-size: 32px 32px; }
.cover span { position: relative; z-index: 1; font: italic 400 3.5rem var(--serif); letter-spacing: 0.02em; }
.c0 { background: linear-gradient(135deg, #0f5a58, #06292b 60%, #0a3a3c); }
.c1 { background: linear-gradient(135deg, #8b7e68, #2b2a24 60%, #0b3a3a); }
.c2 { background: linear-gradient(135deg, #14706c, #08323a 60%, #1c3a3a); }
.c3 { background: linear-gradient(135deg, #a89a7e, #3b3526 60%, #0d3a3d); }
.c4 { background: linear-gradient(135deg, #0b4f4c, #0a2c34 60%, #2c4b46); }
.c5 { background: linear-gradient(135deg, #6b7f7d, #102f31 60%, #1a4a46); }
.pbody { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pbody h3 { font-size: 1.55rem; line-height: 1.12; }
.pbody p { color: var(--muted); font-size: 0.95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font: 500 0.66rem var(--mono); letter-spacing: 0.06em; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.badge { align-self: flex-start; font: 600 0.64rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(201, 184, 150, 0.38); padding: 3px 10px; border-radius: 999px; }
.plinks { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 6px; }
.plink { font: 500 0.78rem var(--mono); border-bottom: 1px solid var(--line2); padding-bottom: 2px; transition: color 0.3s, border-color 0.3s; }
.plink:hover { color: var(--cy); border-color: var(--cy); }
.plink.live { color: var(--em); border-color: rgba(95, 209, 184, 0.45); }

/* profile pages */
.phero { position: relative; padding: clamp(40px, 7vw, 100px) 0 clamp(30px, 4vw, 60px); overflow: hidden; }
.phero::before { content: ''; position: absolute; inset: -20% -10% 0; pointer-events: none; background: radial-gradient(560px 360px at 82% 30%, rgba(185, 171, 148, 0.17), transparent 70%), radial-gradient(480px 320px at 12% 0, rgba(95, 209, 184, 0.1), transparent 70%); }
.phero-grid { position: relative; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.phero h1 { font-size: clamp(2.8rem, 6.6vw, 5.4rem); margin: 20px 0 6px; letter-spacing: -0.02em; }
.phero .founder-pill { margin-bottom: 26px; }
.role-line { font: italic 400 clamp(1.4rem, 2.6vw, 2rem) var(--serif); color: var(--gold); }
.phero.short { padding-bottom: 20px; }
.phero.short h1 { margin-top: 18px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.stat { background: var(--ink2); padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.stat b { font: 400 clamp(2.2rem, 4.2vw, 3.4rem)/1 var(--serif); background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.stat span { font: 0.74rem var(--mono); color: var(--muted); letter-spacing: 0.03em; }
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.skill { padding: 28px; }
.skill h3 { font-size: 1.5rem; margin-bottom: 16px; }
.skill ul { display: flex; flex-wrap: wrap; gap: 8px; }
.skill li { font-size: 0.84rem; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.xp { padding: 28px; margin-bottom: 18px; }
.xp h3, .row h3 { font-size: 1.55rem; }
.xp p, .row p { color: var(--muted); }
.xp-top { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.xp .tags { margin-top: 16px; }
.when { font: 500 0.76rem var(--mono); color: var(--gold); }
.tag-int { font-style: normal; background: none; -webkit-text-fill-color: currentColor; color: var(--gold); margin-left: 8px; padding: 2px 9px; border: 1px solid rgba(201, 184, 150, 0.4); border-radius: 999px; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; }
.row { padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 14px; }

.band { padding: 10px 0 clamp(70px, 9vw, 120px); }
.band-in { border: 1px solid var(--line2); border-radius: 32px; padding: clamp(36px, 6vw, 76px) clamp(20px, 4vw, 60px); text-align: center; background: radial-gradient(620px 300px at 50% 0, rgba(185, 171, 148, 0.2), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)); }
.band h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 20ch; margin: 0 auto; }
.band .btns { justify-content: center; }

/* contact */
.cgrid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: start; }
.form-card { padding: clamp(24px, 3.4vw, 44px); }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font: 500 0.7rem var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.03); font-size: 1rem; transition: border-color 0.3s, background 0.3s; }
.field select option { background: #0b3b3f; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--cy); background: rgba(143, 214, 205, 0.05); }
.field textarea { resize: vertical; min-height: 150px; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; opacity: 0; }
.status { min-height: 1.5em; margin-top: 14px; font-weight: 600; }
.status.ok { color: var(--em); } .status.err { color: #ff9b9b; }
.manual { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.manual[hidden] { display: none; }
.manual .btn { padding: 11px 18px; font-size: 0.85rem; }
.fine { margin-top: 18px; font-size: 0.78rem; color: var(--soft); }
.side .panel { margin-bottom: 20px; }
.links { display: grid; gap: 12px; }
.links a { border-bottom: 1px solid var(--line2); padding-bottom: 3px; }
.links a:hover { color: var(--cy); }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: #041f21; padding-top: clamp(50px, 6vw, 80px); }
.fgrid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.f-brand { font: 400 1.7rem var(--serif); }
.f-note { color: var(--soft); font-size: 0.9rem; margin-top: 8px; max-width: 30ch; }
.fgrid b { display: block; margin-bottom: 12px; font: 500 0.68rem var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.fgrid a { display: block; padding: 4px 0; font-size: 0.9rem; color: var(--muted); transition: color 0.3s; }
.fgrid a:hover { color: var(--text); }
.fbottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin-top: 44px; padding-top: 22px; padding-bottom: 30px; border-top: 1px solid var(--line); font: 0.74rem var(--mono); color: var(--soft); }

/* reveal on scroll (only where scripting is on, so the page is fully visible without it) */
@media (scripting: enabled) {
  .reveal:not(.in) { opacity: 0; transform: translateY(28px); }
  .reveal { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), border-color 0.4s; }
}

/* social card (used once to make the preview image) */
body.og { width: 1200px; height: 630px; overflow: hidden; background: radial-gradient(700px 500px at 85% 80%, rgba(185, 171, 148, 0.35), transparent 70%), radial-gradient(600px 400px at 70% 20%, rgba(95, 209, 184, 0.22), transparent 70%), var(--ink); }
.og-card { display: flex; height: 630px; align-items: stretch; }
.og-copy { flex: 1; padding: 62px 40px 0 84px; }
.og-copy h1 { font-size: 104px; line-height: 0.92; margin: 26px 0 20px; }
.og-copy p { font-size: 25px; color: var(--muted); max-width: 24ch; line-height: 1.35; }
.og-copy .og-url { margin-top: 26px; font: 500 22px var(--mono); color: var(--gold); letter-spacing: 0.1em; }
.og-card img { width: 430px; height: 630px; object-fit: cover; object-position: 50% 6%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%); }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .trio, .skills { grid-template-columns: 1fr; }
  .path { min-height: 0; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .f-brand-wrap { grid-column: 1 / -1; }
  .fgrid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .burger { display: grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px clamp(20px, 4vw, 48px) 22px; background: #06292b; border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0.3s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .nav-i2 { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); padding: 15px 0; }
  .hero-grid, .phero-grid, .split, .split.rev, .cgrid { grid-template-columns: 1fr; }
  .hero-art { position: relative; justify-self: end; width: min(100%, 400px); }
  .split.rev .orbit-wrap { order: 0; }
  .phero-grid .portrait.small { width: min(100%, 300px); justify-self: end; }
  .float { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .orbit-wrap { padding: 20px 48px; }
  .orbit { width: min(100%, 340px); }
  .node b { font-size: 0.62rem; padding: 6px 10px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(3.1rem, 6.6vw, 6rem); line-height: 0.95; letter-spacing: -0.025em; margin: 28px 0 0; }
  .grid3 { grid-template-columns: 1fr; }
  .row, .xp-top { flex-direction: column; align-items: flex-start; }
  .fbottom { flex-direction: column; }
  .founder-pill { font-size: 0.74rem; flex-wrap: wrap; }
  .btn { width: 100%; }
  .btns { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- v2: home page ---------- */
.glow { position: absolute; inset: -14px; border-radius: 30px; background: var(--aurora); opacity: 0.34; filter: blur(32px); z-index: 0; }
.hero-art .portrait { z-index: 1; }
.hero-copy .role-line { margin-top: 14px; font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.hero-copy .lead { margin-top: 26px; max-width: 50ch; }
.facts { display: flex; flex-wrap: wrap; gap: 18px 0; margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line); }
.facts li { padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--line); }
.facts li:last-child { border: 0; margin: 0; padding: 0; }
.facts b { display: block; margin-bottom: 4px; font: 500 0.64rem var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.facts span { font-size: 0.95rem; color: var(--text); }
.founder-pill.sm { font-size: 0.74rem; }
.founder-pill.sm a, .founder-pill.sm .fp-main { padding: 7px 14px; }
.core span { display: block; }
.core b { display: block; font: italic 400 1.7rem/1 var(--serif); }
.core small { display: block; margin-top: 7px; font: 500 0.56rem var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.n5 b { color: var(--em); }

.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.svc-i { padding: 22px; }
.svc-i h3 { font-size: 1.3rem; margin-bottom: 8px; }
.svc-i p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

.journey { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 7vw, 110px); align-items: start; }
.journey-head { position: sticky; top: 120px; }
.timeline { position: relative; list-style: none; padding: 0; }
.timeline::before { content: ''; position: absolute; left: 19px; top: 14px; bottom: 30px; width: 1px; background: linear-gradient(180deg, var(--em), var(--cy) 50%, var(--vi)); opacity: 0.6; }
.tl { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 28px; padding-bottom: 44px; }
.tl:last-child { padding-bottom: 0; }
.tl-dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); border: 1px solid var(--line2); font: 500 0.74rem var(--mono); color: var(--gold); position: relative; z-index: 1; }
.tl .k { font: 500 0.68rem var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--em); margin-bottom: 6px; }
.tl h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 10px; }
.tl p:not(.k) { color: var(--muted); max-width: 52ch; }

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.pillar { padding: 22px; }
.pillar h3 { font-size: 1.35rem; margin-bottom: 8px; }
.pillar p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
.pillar.more { grid-column: 1 / -1; border-style: dashed; background: none; }
.pillar.more h3 { color: var(--em); }

.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.stage { padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.stage-top { display: flex; align-items: center; justify-content: space-between; }
.stage h3 { font-size: 1.8rem; }
.stage p { color: var(--muted); }
.stage.now { border-color: rgba(95, 209, 184, 0.4); }
.chip { font: 600 0.64rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); }
.chip.live { color: var(--em); border-color: rgba(95, 209, 184, 0.5); background: rgba(95, 209, 184, 0.08); }
.note { margin-top: 28px; text-align: left; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 10px; }
.duo .path { min-height: 0; }

@media (max-width: 1000px) {
  .journey, .roadmap, .duo { grid-template-columns: 1fr; }
  .journey-head { position: static; }
}
@media (max-width: 900px) {
  .hero-art { justify-self: start; width: min(100%, 340px); order: 0; margin-top: 8px; }
  .hero-copy { order: 0; }
  .facts li { border: 0; padding: 0; margin: 0 26px 0 0; }
  .svc, .pillars { grid-template-columns: 1fr; }
  .pillar.more { grid-column: auto; }
  .tl { gap: 18px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(2.9rem, 14vw, 4.2rem); }
  .facts { gap: 16px 0; flex-direction: column; }
}

/* ---------- v3: greige "paper" sections, one-line name ---------- */
.paper { --ink: #e8e3d9; --ink2: #e0dacd; --panel: #f1ede5; --text: #0b2e30; --muted: #42605f; --soft: #5f7977; --line: rgba(11, 46, 48, 0.14); --line2: rgba(11, 46, 48, 0.26);
  --em: #0f6f67; --cy: #1c7f78; --gold: #8a6f3d; --aurora: linear-gradient(115deg, #0b4a4c 0%, #177a73 55%, #4c9c8f 100%);
  --card: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.38)); background: var(--ink); color: var(--text); }
.paper .btn.primary { color: #eee9df; background: #0b3b3d; box-shadow: 0 14px 34px rgba(11, 59, 61, 0.22); }
.paper .skill li { background: rgba(255, 255, 255, 0.55); }
.paper .tags li { background: rgba(255, 255, 255, 0.4); }
.paper .proj .cover span { color: #f3efe6; }
.paper .chip { background: rgba(255, 255, 255, 0.4); }
.paper .chip.live { background: rgba(15, 111, 103, 0.1); }
.paper a.card:hover, .paper .proj:hover, .paper .skill:hover { box-shadow: 0 24px 50px -28px rgba(6, 41, 43, 0.4); }
.hero h1, .phero h1 { white-space: nowrap; }
.hero h1 { font-size: clamp(2.2rem, 9.4vw, 3.6rem); }
.phero h1 { font-size: clamp(2rem, 9vw, 3.4rem); }
@media (min-width: 901px) { .hero h1 { font-size: clamp(3rem, 4.9vw, 4.9rem); } .phero h1 { font-size: clamp(2.8rem, 4.6vw, 4.5rem); } }
@media (max-width: 560px) { .hero h1 { font-size: clamp(2.2rem, 9.4vw, 3.4rem); } }
