/* areebalikhan.com — direction: split stage · type Bodoni Moda / Jost · palette Frost & slate */
:root {
  --bg: #0b1215;
  --surface: #131e23;
  --surface-2: #1a272d;
  --field: #0f181c;
  --field-2: #1d2b31;
  --line: #24343b;
  --ink: #f2f6f7;
  --muted: #a9b9bf;
  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --accent-ink: #042f2a;
  --on-field: #f2f6f7;
  --on-field-muted: #a9b9bf;
  --up: #2dd4bf;
  --down: #f87171;

  --display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-small: 0.9375rem;
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-head: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --step-display: clamp(2.25rem, 1rem + 3vw, 3.5rem);

  --margin: clamp(16px, 2.2vw, 32px);
  --gap: clamp(80px, 9vw, 140px);
  --radius: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (pointer: fine) { html { overscroll-behavior: none; } }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: var(--step-body); line-height: 1.65; letter-spacing: 0;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button, a, input { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.skip { position: absolute; left: var(--margin); top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 12px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons & links: one shape, square ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--radius); font-weight: 600; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 500; font-size: var(--step-body);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.link { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: text-decoration-color .2s var(--ease), color .2s var(--ease); }
.link:hover { text-decoration-color: currentColor; color: var(--accent); }
.link { text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); }

/* ---------- the split stage ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
.read { padding: 0 clamp(24px, 5vw, 88px) var(--gap) var(--margin); }
.read > * { max-width: 38rem; }
.stage { position: sticky; top: max(24px, calc(50svh - 310px)); height: min(620px, calc(100svh - 48px)); margin: 24px var(--margin) 24px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--field); color: var(--on-field); overflow: hidden; display: grid; grid-template-rows: minmax(0, 1fr) 52px; }
.layers { position: relative; min-height: 0; }
.layer { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 0s linear 1.2s; }
.layer.on { opacity: 1; visibility: visible; transition: opacity 1.2s var(--ease), visibility 0s; }

/* floating top bar: appears after the first screen so every section is one click away */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 var(--margin); background: rgba(11,18,21,.92); border-bottom: 1px solid var(--line); transform: translateY(-100%); transition: transform .35s var(--ease); }
@supports (backdrop-filter: blur(8px)) { .topbar { background: rgba(11,18,21,.78); backdrop-filter: blur(12px) saturate(140%); } }
.topbar.show { transform: none; }
.topbar .mark { font-weight: 700; text-decoration: none; white-space: nowrap; }
.topbar nav { display: flex; gap: clamp(14px, 2vw, 28px); font-size: var(--step-small); }
.topbar nav a { text-decoration: none; color: var(--muted); padding: 10px 0; transition: color .2s var(--ease); }
.topbar nav a:hover, .topbar nav a.active { color: var(--ink); }
.topbar nav a.active { box-shadow: inset 0 -2px 0 var(--accent); }
.topbar-actions { display: flex; gap: 8px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: var(--step-small); border-radius: 8px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
@media (max-width: 860px) { .topbar nav { display: none; } }

/* top bar inside the reading column */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 88px; }
.bar .mark { font-family: var(--display); font-weight: 700; font-size: 1.125rem; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.bar nav { display: flex; gap: clamp(12px, 1.4vw, 22px); font-size: var(--step-small); white-space: nowrap; }
.bar nav { align-items: center; }
.bar nav .ask { border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; padding: 0 16px; min-height: 40px; cursor: pointer; font-size: var(--step-small); font-weight: 500; transition: background-color .2s var(--ease); }
.bar nav .ask:hover { background: var(--accent-hover); }
.bar nav a { text-decoration: none; padding: 10px 0; color: var(--muted); transition: color .2s var(--ease); }
.bar nav a:hover { color: var(--ink); }

/* hero */
.hero { min-height: calc(100svh - 88px); display: flex; flex-direction: column; justify-content: center; padding: 32px 0 48px; }
.avail { display: inline-flex; align-items: center; gap: 10px; font-size: var(--step-small); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; margin-bottom: 28px; }
.avail .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(45,212,191,.6); }
@media (prefers-reduced-motion: no-preference) { .avail .dot { animation: ping 2.4s var(--ease) infinite; } @keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(45,212,191,.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(45,212,191,0); } } }
.proof { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; color: var(--muted); font-size: var(--step-small); }
.proof b { color: var(--ink); font-weight: 600; }
.hero h1 { font-size: var(--step-display); color: var(--ink); max-width: none; }
.hero h1 span + span { color: var(--accent); }
.hero h1 span { display: block; }
.plus { font: inherit; }
.hero .lede { font-size: var(--step-lead); line-height: 1.4; margin-top: 36px; max-width: 30ch; }
.hero .facts { margin-top: 20px; color: var(--muted); max-width: 46ch; }
.hero .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 48px; }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin-top: 48px; max-width: 34rem; }
.figures { background: var(--surface); border-radius: var(--radius); padding: 24px 28px; }
.figures b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.figures dd > span { display: block; color: var(--muted); font-size: var(--step-small); margin-top: 8px; }

/* reading blocks */
.block { padding-top: var(--gap); }
.block h2 { font-size: var(--step-head); max-width: 20ch; }
.block h3 { font-size: var(--step-lead); font-family: var(--display); margin-top: 56px; letter-spacing: -.02em; line-height: 1.2; }
.block .meta { color: var(--muted); font-size: var(--step-small); margin-top: 8px; }
.block p { margin-top: 20px; }
.block .shots { display: none; }
.taglist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; list-style: none; }
.taglist li { background: var(--surface-2); color: var(--ink); border-radius: 6px; padding: 6px 12px; font-size: var(--step-small); }

/* stage layers */
.chart-layer { display: grid; grid-template-rows: auto 1fr; }
.ticker { padding: 20px 24px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.coins { display: flex; gap: 4px; }
.coins button { min-height: 44px; min-width: 64px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--field-2); color: var(--on-field-muted); cursor: pointer; font-size: var(--step-small); font-weight: 500; transition: background-color .2s var(--ease), color .2s var(--ease); }
.coins button:hover { color: var(--on-field); }
.coins button[aria-pressed="true"] { background: var(--on-field); color: var(--field); }
.quote { text-align: right; }
.quote .px { font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.quote .chg { margin-top: 8px; font-size: var(--step-small); }
.quote .chg.up { color: var(--up); } .quote .chg.down { color: var(--down); }
.plot { position: relative; min-height: 0; }
.plot canvas { position: absolute; inset: 24px clamp(8px, 1.5vw, 20px) 12px clamp(20px, 3vw, 40px); width: calc(100% - clamp(28px, 4.5vw, 60px)); height: calc(100% - 36px); }
.plot .fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 32px; text-align: center; color: var(--on-field-muted); }
.stage-foot { background: var(--surface); color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 clamp(20px, 3vw, 40px); font-size: var(--step-small); }
.stage-foot .live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }

.phone-layer { display: grid; place-items: center; padding: 24px; }
.phone-layer .frames { position: relative; height: 100%; max-height: 520px; aspect-ratio: 430 / 932; border-radius: 22px; overflow: hidden; background: #050b0e; box-shadow: 0 0 0 1px var(--line); }
.phone-layer .frames img.pan { height: auto; bottom: auto; object-fit: initial; }
.phone-layer .frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 1.6s var(--ease); }
.phone-layer .frames img.on { opacity: 1; }
.layer .caption { position: absolute; left: clamp(20px, 3vw, 40px); right: clamp(20px, 3vw, 40px); bottom: 28px; color: var(--on-field-muted); font-size: var(--step-small); display: flex; justify-content: space-between; gap: 16px; }
.layer .caption b { color: var(--on-field); font-weight: 500; }
.site-layer { display: grid; place-items: center; padding: 24px; }
.site-layer img { width: 100%; height: auto; max-height: 100%; object-fit: contain; border-radius: 10px; }

/* ---------- journey: career milestones on the real BTC chart ---------- */
.journey { position: relative; background: var(--bg); }
.journey-pin { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 clamp(24px, 4vw, 64px); align-items: center; padding: var(--gap) var(--margin); }
.journey-text h2 { font-size: var(--step-head); max-width: 12ch; }
.journey-sub { margin-top: 20px; color: var(--muted); max-width: 40ch; }
.journey-now { margin-top: 40px; background: var(--surface); border-radius: var(--radius); padding: 24px 28px; min-height: 172px; }
.jn-date { color: var(--accent); font-weight: 700; font-size: var(--step-small); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.jn-title { font-weight: 700; font-size: var(--step-lead); line-height: 1.25; letter-spacing: -.02em; margin-top: 6px; }
.jn-body { color: var(--muted); margin-top: 8px; }
.journey-chart { background: var(--field); border: 1px solid var(--line); border-radius: 16px; padding: 20px 16px 14px 20px; }
.journey-chart canvas { width: 100%; height: clamp(300px, 52svh, 520px); display: block; }
.journey-chart figcaption { color: var(--muted); font-size: var(--step-small); margin-top: 10px; }
.journey-list { display: none; list-style: none; padding: 0 var(--margin) var(--gap); max-width: 760px; }
.journey-list li { padding: 10px 0; }
.journey-list b { color: var(--accent); margin-right: 10px; }
/* scroll-driven only when motion is welcome and the script runs; otherwise the finished chart and the full list */
@media (prefers-reduced-motion: no-preference) {
  .js .journey.scrolly { height: 320svh; }
  .js .journey.scrolly .journey-pin { position: sticky; top: 0; min-height: 100svh; }
}
.journey.static .journey-now { display: none; }
.journey.static .journey-list, html:not(.js) .journey-list { display: block; }
@media (max-width: 960px) {
  .journey-pin { grid-template-columns: 1fr; gap: 24px; align-content: center; padding-top: 40px; padding-bottom: 40px; }
  .journey-now { margin-top: 20px; min-height: 0; padding: 18px 20px; }
  .journey-sub { margin-top: 12px; }
  .journey-chart canvas { height: clamp(220px, 34svh, 340px); }
}

/* ---------- features: the printed sheet ---------- */
.sheet-band { background: var(--field); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--gap) var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; align-items: start; }
.sheet-band .aside { grid-column: 1 / span 5; color: var(--on-field); position: sticky; top: 48px; }
.sheet-band .aside h2 { font-size: var(--step-head); max-width: 11ch; }
.sheet-band .aside p { color: var(--on-field-muted); margin-top: 24px; max-width: 34ch; }
.sheet-band .aside figure { margin-top: 48px; max-width: 240px; }
.sheet-band .aside figure img { border-radius: 20px; }
.sheet-band .aside figcaption { font-size: var(--step-small); color: var(--on-field-muted); margin-top: 12px; }
.sheet {
  grid-column: 7 / span 6; background: var(--surface); color: var(--ink); padding: 72px clamp(28px, 5vw, 64px);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Cpath d='M0 12A12 12 0 0 1 24 12Z'/%3E%3C/svg%3E") 0 0 / 24px 12px repeat-x, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' preserveAspectRatio='none'%3E%3Crect width='10' height='10'/%3E%3C/svg%3E") 0 12px / 100% calc(100% - 24px) no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Cpath d='M0 0A12 12 0 0 0 24 0Z'/%3E%3C/svg%3E") 0 100% / 24px 12px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Cpath d='M0 12A12 12 0 0 1 24 12Z'/%3E%3C/svg%3E") 0 0 / 24px 12px repeat-x, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' preserveAspectRatio='none'%3E%3Crect width='10' height='10'/%3E%3C/svg%3E") 0 12px / 100% calc(100% - 24px) no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Cpath d='M0 0A12 12 0 0 0 24 0Z'/%3E%3C/svg%3E") 0 100% / 24px 12px repeat-x;
}
.sheet .title { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; font-size: var(--step-head); text-align: center; line-height: 1.05; }
.sheet .note { text-align: center; color: var(--muted); font-size: var(--step-small); margin-top: 12px; }
.sheet section { margin-top: 56px; }
.sheet h3 { font-family: var(--display); font-size: 1.0625rem; font-weight: 600; text-align: center; letter-spacing: 0; color: var(--accent); }
.sheet ul { list-style: none; margin-top: 24px; display: grid; gap: 20px; }
.sheet li b { font-weight: 600; display: block; }
.sheet li span { color: var(--muted); font-size: var(--step-small); }
.sheet .end { text-align: center; margin-top: 56px; }

/* ---------- process: drag through the stages ---------- */
.process { display: grid; grid-template-columns: 1fr 1fr; min-height: 88svh; }
.process .clause { background: var(--surface); padding: var(--gap) clamp(24px, 4vw, 64px) 0 var(--margin); position: relative; }
.process .clause h2 { font-size: var(--step-head); max-width: 12ch; min-height: 2em; }
.process .clause .detail { margin-top: 28px; max-width: 36ch; }
.process .frag-field { background: var(--field); display: grid; place-items: center; padding: 64px 32px 180px; }
.process .control { grid-column: 1 / -1; background: var(--field); color: var(--on-field); padding: 28px var(--margin) 40px; margin-top: -140px; position: relative; }
.process .control label { font-size: var(--step-small); color: var(--on-field-muted); display: block; margin-bottom: 14px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 8px; background: var(--field-2); }
.range::-moz-range-track { height: 8px; background: var(--field-2); }
.range::-moz-range-progress { height: 8px; background: var(--accent); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; background: var(--accent); border: 0; border-radius: 50%; }
.range::-moz-range-thumb { width: 28px; height: 28px; background: var(--accent); border: 0; border-radius: 50%; }
.stops { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 8px; font-size: var(--step-small); color: var(--on-field-muted); list-style: none; }
.stops li:nth-child(2) { text-align: center; padding-right: 12%; } .stops li:nth-child(3) { text-align: center; padding-left: 12%; } .stops li:last-child { text-align: right; }
.stops button { background: none; border: 0; color: inherit; cursor: pointer; padding: 8px 0; min-height: 44px; transition: color .2s var(--ease); }
.stops button[aria-current="step"] { color: var(--on-field); font-weight: 500; }

/* the product fragment (real UI conventions allowed inside data-ui) */
.frag { width: min(440px, 100%); background: #fbfcfd; color: #1f3038; font-size: 15px; line-height: 1.5; border-radius: 10px; overflow: hidden; }
.frag .top { background: #eef2f4; padding: 12px 18px; display: flex; justify-content: space-between; font-size: 13px; color: #55636a; }
.frag .body { padding: 18px; display: grid; gap: 12px; min-height: 260px; }
.frag .state { display: none; }
.frag .state.on { display: grid; gap: 12px; animation: fragIn .2s var(--ease); }
@keyframes fragIn { from { opacity: 0; } to { opacity: 1; } }
.frag .row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e3e9ec; padding-bottom: 10px; } /* taste-skill-ignore: inside data-ui */
.frag .row:last-child { border-bottom: 0; }
.frag .k { color: #55636a; font-size: 13px; }
.frag .ok { color: #0d7480; font-weight: 500; }
.frag pre { background: #1f3038; color: #dfe9ec; border-radius: 6px; padding: 14px; font-size: 13px; overflow: auto; }
.frag .news { background: #f1f5f6; border-radius: 8px; padding: 12px 14px; }
.frag .news small { color: #55636a; font-size: 12.5px; display: block; }
.frag .pill { display: inline-block; font-size: 12.5px; padding: 2px 10px; border-radius: 99px; background: #dff4f0; color: #0b5f55; font-weight: 500; margin-top: 8px; }
.frag-caption { color: var(--on-field-muted); font-size: var(--step-small); margin-top: 16px; text-align: center; max-width: 440px; }

/* ---------- tools: output index, live sheet ---------- */
.tools { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; padding: var(--gap) var(--margin) 0; }
.tools .index { grid-column: 1 / span 5; }
.tools .index h2 { font-size: var(--step-head); max-width: 11ch; }
.tools .index p { margin-top: 24px; max-width: 34ch; }
.tools .names { list-style: none; margin-top: 48px; }
.tools .names button { display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: var(--step-lead); letter-spacing: -.02em; line-height: 1.2; padding: 10px 0; color: var(--muted); transition: color .2s var(--ease), transform .2s var(--ease); }
.tools .names button:hover { color: var(--ink); transform: translateX(4px); }
.tools .names button[aria-selected="true"] { color: var(--accent); }
.tools .names button[aria-selected="true"]::after { content: " \2192"; color: var(--accent); }
.tools .panel { grid-column: 6 / span 7; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(16px, 2.4vw, 32px) clamp(16px, 2.4vw, 32px) clamp(48px, 5vw, 72px); display: grid; align-self: start; }
.tools .panel figure { grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s linear .35s; padding-right: 12%; }
.tools .panel figure.on { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.tools .panel .desk { width: 100%; aspect-ratio: 1280 / 860; object-fit: cover; object-position: top left; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 20px 50px rgba(0,0,0,.35); }
.tools .panel .phone { position: absolute; right: 0; bottom: -14%; width: 24%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 18px; box-shadow: 0 0 0 6px #050b0e, 0 0 0 7px var(--line), 0 24px 50px rgba(0,0,0,.5); }
.tools .what { grid-column: 6 / span 7; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-top: 20px; }
.tools .what p { max-width: 46ch; }
.tools .what { flex-wrap: wrap; }
.tools .snap { flex-basis: 100%; color: var(--muted); font-size: var(--step-small); margin-top: -8px; }
.tools .snap::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }

/* ---------- writing ---------- */
.writing { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; padding: var(--gap) var(--margin) 0; }
.writing .head { grid-column: 1 / span 4; }
.writing .head h2 { font-size: var(--step-head); }
.writing .head p { margin-top: 24px; max-width: 30ch; }
.writing ol { grid-column: 6 / span 7; list-style: none; display: grid; gap: 36px; }
.writing ol a { display: block; text-decoration: none; }
.writing ol b { font-family: var(--display); font-weight: 600; font-size: var(--step-lead); line-height: 1.3; letter-spacing: -.02em; display: block; transition: color .2s var(--ease); }
.writing ol a:hover b { color: var(--accent); }
.writing ol span { color: var(--muted); font-size: var(--step-small); display: block; margin-top: 6px; }

/* ---------- education ---------- */
.education { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; padding: var(--gap) var(--margin) 0; }
.education .head { grid-column: 1 / span 4; }
.education .head h2 { font-size: var(--step-head); }
.education .head p { margin-top: 24px; max-width: 30ch; color: var(--muted); }
.edu-list { grid-column: 6 / span 7; list-style: none; display: grid; gap: 12px; }
.edu-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--surface); border-radius: var(--radius); padding: 18px 22px; }
.edu-list b { display: block; font-weight: 600; font-size: var(--step-lead); letter-spacing: -.02em; line-height: 1.3; }
.edu-list span { display: block; color: var(--muted); font-size: var(--step-small); margin-top: 4px; }
.edu-list em { font-style: normal; font-size: var(--step-small); color: var(--muted); white-space: nowrap; }
.edu-list em.now { color: var(--accent); font-weight: 600; }
@media (max-width: 960px) {
  .education { grid-template-columns: minmax(0, 1fr); }
  .education .head, .edu-list { grid-column: 1 / -1; }
  .edu-list { margin-top: 32px; }
  .edu-list li { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------- letter ---------- */
.letter { max-width: 600px; margin: 0 auto; padding: var(--gap) var(--margin) 0; }
.letter .who { display: flex; align-items: center; gap: 16px; }
.letter .who img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.letter h2 { font-size: var(--step-head); }
.letter p { margin-top: 24px; }
.letter mark { background: rgba(45,212,191,.16); color: var(--ink); padding: 0 .15em; }
.letter .sign { margin-top: 40px; font-family: var(--text); }
.letter .sign i { font-family: var(--display); font-style: normal; font-weight: 700; font-size: var(--step-lead); display: block; }
.letter .sign span { color: var(--muted); font-size: var(--step-small); }
.letter .docs { margin-top: 48px; background: var(--surface); border-radius: var(--radius); padding: 28px 32px; }
.letter .docs ul { list-style: none; margin-top: 12px; display: grid; gap: 6px; }

/* ---------- contact ---------- */
.contact { max-width: 600px; margin: 0 auto; padding: var(--gap) var(--margin) var(--gap); }
.contact h2 { font-family: var(--text); font-weight: 500; font-size: var(--step-lead); line-height: 1.3; letter-spacing: 0; }
.link.plain { background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }
.contact h2 span { color: var(--muted); display: block; }
.field { position: relative; margin-top: 36px; }
.field input { width: 100%; height: 64px; border: 0; border-radius: 0; background: var(--surface); border-radius: var(--radius); padding: 0 76px 0 20px; font-size: max(16px, var(--step-body)); }
.field input:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.field button { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border: 0; border-radius: 8px; font-weight: 700; background: var(--accent); color: var(--accent-ink); cursor: pointer; font-size: 20px; transition: background-color .2s var(--ease); }
.field button:hover { background: var(--accent-hover); }
.contact .hint { font-size: var(--step-small); color: var(--muted); margin-top: 14px; }
.contact dl { margin-top: 64px; display: grid; grid-template-columns: max-content 1fr; gap: 14px 32px; }
.contact dt { color: var(--muted); }
.contact dd a { text-decoration: none; } .contact dd a:hover { color: var(--accent); }

/* ---------- footer ---------- */
footer { background: var(--field); border-top: 1px solid var(--line); color: var(--on-field); padding: 72px var(--margin) 32px; overflow: hidden; }
footer .big { font-family: var(--display); font-weight: 800; font-size: clamp(2.75rem, 11.6vw, 13rem); line-height: .95; letter-spacing: -.05em; white-space: nowrap; }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; margin-top: 40px; font-size: var(--step-small); color: var(--on-field-muted); }
footer .row a { color: var(--on-field); text-decoration: none; } footer .row a:hover { text-decoration: underline; }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- assistant ---------- */
#chat-win { position: fixed; right: var(--margin); bottom: var(--margin); z-index: 41; width: min(400px, calc(100vw - 2 * var(--margin))); height: min(600px, calc(100svh - 2 * var(--margin))); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(31,48,56,.2), 0 24px 64px rgba(31,48,56,.28); opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s; overscroll-behavior: contain; } /* taste-skill-ignore: a dialog floats */
#chat-win:not(.open) { display: none; }
#chat-win.open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
@starting-style { #chat-win.open { opacity: 0; transform: translateY(12px); } }
.chat-head { background: var(--surface-2); color: var(--ink); padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chat-title { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; }
.chat-status { font-size: 13px; color: var(--muted); margin-top: 4px; }
.chat-close { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 22px; }
.chat-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 12px 14px; font-size: 15.5px; line-height: 1.55; }
.msg { border-radius: 12px; }
.msg.bot { background: var(--surface-2); align-self: flex-start; }
.msg.user { background: var(--accent); color: var(--accent-ink); align-self: flex-end; }
.msg a { color: var(--accent); font-weight: 600; }
.msg.user a { color: var(--accent-ink); }
.msg.typing { display: flex; gap: 4px; }
.msg.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .15s; } .msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: .25; } }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.chat-chip { border: 1px solid var(--line); border-radius: 99px; color: var(--ink); background: transparent; padding: 8px 12px; min-height: 36px; font-size: 14px; cursor: pointer; transition: background-color .2s var(--ease); }
.chat-chip:hover { background: var(--surface-2); }
.chat-input { display: flex; gap: 8px; padding: 12px 18px 18px; }
.chat-input input { flex: 1; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 0 14px; font-size: 16px; }
.chat-input input:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.chat-send { min-width: 48px; border: 0; border-radius: 10px; font-weight: 700; background: var(--accent); color: var(--accent-ink); cursor: pointer; font-size: 18px; }

/* ---------- motion: hidden starts only when motion is welcome ---------- */
@media (prefers-reduced-motion: no-preference) {
  .layer.on .frames img.pan.on { animation: pan 9.5s ease-in-out both; }
  @keyframes pan { 0%, 14% { transform: translateY(0); } 86%, 100% { transform: translateY(var(--pan)); } }
  .js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .in [data-rise], .js [data-rise].in { opacity: 1; transform: none; }
  .site-layer.on img { animation: drift 18s var(--ease) both; }
  @keyframes drift { from { transform: scale(1.06) translateY(8px); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- tablet & phone ---------- */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .read, .read main { display: contents; }
  .bar { order: 1; padding: 0 var(--margin); }
  .hero { order: 2; padding-left: var(--margin); padding-right: var(--margin); }
  .block { order: 4; padding-left: var(--margin); padding-right: var(--margin); }
  .read > .block:last-child, main > .block:last-of-type { padding-bottom: var(--gap); }
  .stage { order: 3; position: relative; top: auto; height: 380px; margin: 0 var(--margin); }
  .stage .layer:not(.chart-layer) { display: none; }
  .stage .chart-layer { opacity: 1; visibility: visible; }
  .read { padding: 0 var(--margin) var(--gap); }
  .read > * { max-width: none; }
  .bar { min-height: 72px; }
  .hero { min-height: 0; padding: 48px var(--margin) 32px; }
  .block .shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
  .block .shots img { width: 100%; aspect-ratio: 430 / 932; height: auto; object-fit: cover; object-position: top; border-radius: 14px; }
  .block .shots.wide { grid-template-columns: 1fr; }
  .sheet-band, .tools, .writing { grid-template-columns: minmax(0, 1fr); }
  .sheet-band .aside, .sheet, .tools .index, .tools .panel, .tools .what, .writing .head, .writing ol { grid-column: 1 / -1; }
  .sheet-band .aside { position: static; margin-bottom: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 200px); gap: 0 32px; align-items: start; }
  .sheet-band .aside figure { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .writing .head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; align-items: end; }
  .writing .head p { margin-top: 0; max-width: none; }
  .sheet { padding: 56px 24px; }
  .process { grid-template-columns: 1fr; }
  .process .frag-field { order: -1; padding: 40px 16px 48px; }
  .process .clause { padding: 56px var(--margin) 40px; }
  .process .control { margin-top: 0; }
  .tools .names { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 32px; }
  .tools .panel { margin-top: 24px; }
  .tools .what { flex-direction: column; flex-wrap: nowrap; gap: 8px; }
  .tools .snap { flex-basis: auto; margin-top: 0; }
  .writing ol { margin-top: 40px; }
  .figures { margin-top: 48px; }
}
@media (max-width: 480px) {
  .bar nav a { display: none; }
  .sheet-band .aside { display: block; }
  .sheet-band .aside figure { display: none; }
  .writing .head { display: block; }
  .writing .head p { margin-top: 24px; }
  .stage { height: 320px; }
  .block .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .block .shots img:nth-child(3) { display: none; }
  .ticker { padding: 20px 16px 0; }
  .quote .px { font-size: 2rem; }
  .stage-foot span:last-child { display: none; }
  .contact dl { grid-template-columns: 1fr; gap: 4px; }
  .contact dd { margin-bottom: 14px; }
}
