/* Huy Tran.
   Composed as a sequence of held frames, not a document. Each section fills a
   viewport and carries one idea, so the rhythm comes from what is absent
   between them. No cards, no panels, no chrome — the type and the product are
   the only objects on the page. */

:root{
  --page:#ffffff;
  --alt:#f5f5f7;
  --ink:#1d1d1f;
  --muted:#6e6e73;
  --accent:#0071e3;
  --hair:rgba(0,0,0,.12);
  --hair-firm:rgba(0,0,0,.22);
  /* Muted, documentation-grade status colours. Enough to scan a long table
     by, not enough to make the page look like a dashboard. */
  --ok:#1c6b46;
  --part:#8a6a1c;
  --off:#8e8e93;
  --sans:-apple-system,BlinkMacSystemFont,"SF Pro Display","Inter","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

body{
  margin:0;background:var(--page);color:var(--ink);
  font-family:var(--sans);font-size:17px;line-height:1.5;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}

img{max-width:100%;height:auto;display:block;object-fit:contain}
a{color:inherit;text-decoration:none}
p{margin:0}
h1,h2,h3{margin:0;font-weight:600;line-height:.98;letter-spacing:-.045em;text-wrap:balance}
:focus-visible{outline:2px solid var(--accent);outline-offset:4px}

.skip{position:absolute;left:-9999px;top:0;z-index:9;padding:12px 18px;background:var(--ink);color:#fff}
.skip:focus{left:0}

/* ── the frame ───────────────────────────────────────────────────── */

.frame{
  /* vh first so older engines still get a full frame; svh overrides it where
     supported, which is what keeps mobile browser chrome from cropping. */
  min-height:100vh;
  min-height:100svh;
  display:flex;flex-direction:column;justify-content:center;
  padding:clamp(72px,10vw,120px) clamp(24px,6vw,80px);
  max-width:1440px;margin-inline:auto;
}
/* The grey runs edge to edge while the content column stays exactly where it
   is on a white frame. Centring the children instead would move the type
   between sections, which is the one thing a keynote cannot do. */
.frame--grey{
  background:var(--alt);
  box-shadow:0 0 0 100vmax var(--alt);
  clip-path:inset(0 -100vmax);
}
.frame--short{min-height:auto;padding-block:clamp(72px,9vw,112px)}

/* One small mark of orientation, never a heading. */
.mark{
  font-size:12px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;
  color:var(--muted);margin-bottom:clamp(24px,3vw,40px);
}

/* ── 1 · the statement ───────────────────────────────────────────── */

.statement{font-size:clamp(44px,9.2vw,148px);letter-spacing:-.05em;max-width:15ch}

/* ── 2 · the product, at size ────────────────────────────────────── */

.showcase{padding-inline:clamp(16px,4vw,64px)}
.showcase img{width:100%;max-width:1408px;margin-inline:auto}

/* On a phone the three screens would shrink to about a hundred pixels each —
   legible as a shape, not as a product. Below this width the strip keeps a
   readable height and scrolls inside its own box, so the page itself never
   moves sideways. */
@media (max-width:700px){
  .showcase{padding-inline:0}
  .strip{overflow-x:auto;-webkit-overflow-scrolling:touch;padding-inline:24px}
  .showcase img{width:auto;max-width:none;height:min(56svh,460px)}
}

/* ── 3 · three statements, then one way forward ──────────────────── */

.claims{display:flex;flex-direction:column;gap:clamp(28px,4vw,56px)}
.claims p{
  font-size:clamp(28px,5vw,64px);font-weight:600;letter-spacing:-.04em;
  line-height:1.02;max-width:16ch;
}

.standing{
  margin-top:clamp(40px,5vw,64px);font-size:12px;font-weight:600;
  letter-spacing:.14em;text-transform:uppercase;color:var(--muted);
  display:flex;flex-wrap:wrap;gap:6px 12px;
}
.standing span + span::before{content:"\00b7\00a0"}

/* ── 4 · a problem, and the shape of the answer ──────────────────── */

.problem{font-size:clamp(32px,5.6vw,76px);letter-spacing:-.045em;max-width:16ch}
.pipeline{
  margin-top:clamp(48px,6vw,88px);
  font-size:clamp(14px,1.9vw,22px);font-weight:500;letter-spacing:.02em;
  color:var(--muted);display:flex;flex-direction:column;gap:12px;
}
.pipeline span{display:flex;flex-wrap:wrap;gap:.7em}
.pipeline b{font-weight:500;color:var(--ink)}

/* ── 5 · one sentence, alone ─────────────────────────────────────── */

.creed{font-size:clamp(34px,6.4vw,92px);letter-spacing:-.05em;max-width:14ch}

/* ── 6 · the numbers ─────────────────────────────────────────────── */

.numbers{border-top:1px solid var(--hair)}
.numbers div{
  display:flex;align-items:baseline;flex-wrap:wrap;
  gap:clamp(14px,2vw,28px);
  padding:clamp(22px,3.2vw,40px) 0;border-bottom:1px solid var(--hair);
}
.numbers dt{
  font-size:clamp(48px,10vw,132px);font-weight:600;letter-spacing:-.055em;
  line-height:.9;font-variant-numeric:tabular-nums;
}
.numbers dd{margin:0;font-size:clamp(14px,1.5vw,18px);color:var(--muted)}

/* ── 7 · ten years, compressed ───────────────────────────────────── */

.years{
  font-size:clamp(19px,2.4vw,30px);line-height:1.5;letter-spacing:-.02em;max-width:30ch;
}
.years b{font-weight:600}
.years span{color:var(--muted)}

/* ── 8 · contact ─────────────────────────────────────────────────── */

.sendoff{font-size:clamp(34px,6.4vw,92px);letter-spacing:-.05em;max-width:12ch}
.reach{display:flex;flex-wrap:wrap;gap:clamp(18px,3vw,40px);margin-top:clamp(40px,5vw,72px);
  font-size:clamp(17px,1.7vw,21px)}
.reach a{border-bottom:1px solid var(--hair);padding-bottom:3px}
.reach a:first-child{color:var(--accent);border-color:currentColor}
.reach a:hover{border-color:currentColor;opacity:.7}

footer{
  position:relative;
  padding:28px clamp(24px,6vw,80px) 56px;max-width:1440px;margin-inline:auto;
  display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:space-between;
  font-size:13px;color:var(--muted);
}
/* The rule stops where the text column does. Run edge to edge and it is the
   only line on the page that ignores the margin. */
footer::before{
  content:"";position:absolute;top:0;
  left:clamp(24px,6vw,80px);right:clamp(24px,6vw,80px);
  border-top:1px solid var(--hair);
}

/* ── report page ─────────────────────────────────────────────────── */

.chapter{
  max-width:1440px;margin-inline:auto;
  padding:clamp(64px,8vw,120px) clamp(24px,6vw,80px);
}
.chapter--grey{
  background:var(--alt);
  box-shadow:0 0 0 100vmax var(--alt);
  clip-path:inset(0 -100vmax);
}
.chapter h2{font-size:clamp(30px,4.6vw,60px);margin-bottom:clamp(28px,4vw,48px)}
.chapter h3{font-size:clamp(19px,2vw,24px);letter-spacing:-.025em}

/* The single strongest sentence on the page, set at the scale of a heading so
   the chapter that proves the story stops looking like the datasheet above it. */
/* This chapter's heading is the finding itself. A generic line above it would
   only say the same thing twice, and neither would lead. */
.finding{max-width:20ch}

.read{max-width:34em}
.read p{font-size:clamp(17px,1.7vw,20px);line-height:1.6;color:var(--muted)}
.read p + p{margin-top:20px}
.read strong{color:var(--ink);font-weight:500}

.rows{border-top:1px solid var(--hair)}
.rows > div{
  display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);
  gap:8px 48px;padding:24px 0;border-bottom:1px solid var(--hair);
}
.rows dt{font-size:16px;font-weight:500}
.rows dd{margin:0;font-size:16px;line-height:1.6;color:var(--muted)}
/* A file signature quoted in running text. Set apart by weight and tracking,
   not by a box — a terminal look would say the wrong thing about this app. */
.rows code{font-family:inherit;font-weight:600;letter-spacing:.02em;color:var(--ink)}

/* These are the story, not an appendix. They were set smaller than the tables
   they follow, which put the quietest type on the loudest content. */
.lessons{display:flex;flex-direction:column;gap:clamp(44px,5.5vw,80px);max-width:36em}
.lessons h3{font-size:clamp(21px,2.6vw,32px);margin-bottom:14px}
.lessons p{font-size:clamp(16px,1.6vw,18px);line-height:1.6;color:var(--muted)}
.lessons p + p{margin-top:10px}
.lessons .took{color:var(--ink)}

.verdict{display:flex;flex-direction:column;gap:clamp(20px,2.6vw,32px);max-width:40em}
.verdict > div{display:grid;grid-template-columns:minmax(0,280px) minmax(0,1fr);gap:6px 40px;align-items:baseline}
.verdict dt{font-size:12px;font-weight:600;letter-spacing:.16em;text-transform:uppercase}
.verdict dd{margin:0;font-size:16px;color:var(--muted)}

/* ── motion: opt-in, so the page is whole without JavaScript ─────── */

html.js-anim .rise{opacity:0;transform:translateY(12px)}
html.js-anim .rise.shown{opacity:1;transform:none;transition:opacity .7s ease,transform .7s ease}
@media (prefers-reduced-motion:reduce){html.js-anim .rise{opacity:1;transform:none}}

/* ── responsive ──────────────────────────────────────────────────── */

@media (max-width:900px){
  .rows > div,.verdict > div{grid-template-columns:1fr;gap:6px}
  .numbers div{flex-direction:column;align-items:flex-start;gap:8px}
}
@media (max-width:560px){
  .frame{min-height:auto;padding-block:clamp(64px,16vw,96px)}
  .statement,.claims,.problem,.creed,.sendoff,.years{max-width:none}
}

/* ═══════════════════════════════════════════════════════════════════
   Progressive disclosure: homepage → case study → technical report.
   The homepage keeps its held frames. The two pages below it get denser
   as they get deeper, and nothing below borrows a look the app does not
   have — no terminals, no consoles, no panels.
   ═══════════════════════════════════════════════════════════════════ */

/* ── two ways forward, one clearly first ─────────────────────────── */

/* The homepage offers a product route and an engineering route. They are
   not equal weight: the second is a door for the minority who want it,
   so it is set quieter rather than as a second button. */
.duo{
  display:flex;flex-wrap:wrap;align-items:baseline;
  gap:clamp(20px,3vw,44px);margin-top:clamp(48px,6vw,80px);
}
.duo a{font-size:clamp(17px,1.6vw,20px);border-bottom:1px solid currentColor;padding-bottom:3px}
.duo a::after{content:"\00a0\2192"}
.duo a:hover{opacity:.7}
.duo .lead{color:var(--accent)}
.duo .aside{color:var(--muted);border-bottom-color:var(--hair);font-size:clamp(15px,1.4vw,17px)}
.duo .aside:hover{color:var(--ink);border-bottom-color:currentColor}

/* ── breadcrumbs ─────────────────────────────────────────────────── */

.crumbs{
  max-width:1440px;margin-inline:auto;
  padding:20px clamp(24px,6vw,80px) 0;
  font-size:13px;color:var(--muted);
  display:flex;flex-wrap:wrap;gap:0 8px;align-items:baseline;
}
.crumbs a{border-bottom:1px solid transparent}
.crumbs a:hover{color:var(--ink);border-bottom-color:var(--hair)}
.crumbs span::before{content:"/\00a0";color:var(--hair-firm)}
.crumbs span:first-child::before{content:none}
.crumbs [aria-current]{color:var(--ink)}

/* The pair of exits at the foot of a deep page. Someone who has read to the
   bottom should never have to hunt for the way back up the hierarchy. */
.exits{
  display:flex;flex-wrap:wrap;gap:clamp(18px,3vw,40px);
  margin-top:clamp(36px,4.5vw,60px);font-size:clamp(15px,1.5vw,18px);
}
.exits a{color:var(--muted);border-bottom:1px solid var(--hair);padding-bottom:3px}
.exits a:hover{color:var(--ink);border-bottom-color:currentColor}
.exits a::before{content:"\2190\00a0"}

/* ── small mono labels ───────────────────────────────────────────── */

.tag{
  font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--muted);
}
code,kbd,samp{font-family:var(--mono);font-size:.92em;color:var(--ink)}

/* ── the technical report: numbered sections ─────────────────────── */

.report{max-width:1440px;margin-inline:auto;padding-inline:clamp(24px,6vw,80px)}

.sec{padding-block:clamp(56px,7vw,104px);border-top:1px solid var(--hair)}
.sec:first-of-type{border-top:0}
.sec > header{margin-bottom:clamp(28px,3.6vw,48px)}
.sec > header .tag{display:block;margin-bottom:12px}
.sec h2{font-size:clamp(27px,3.8vw,48px);letter-spacing:-.04em}
.sec h3{
  font-size:clamp(18px,1.9vw,22px);letter-spacing:-.02em;
  margin:clamp(36px,4vw,56px) 0 14px;
}
.sec h4{margin:28px 0 10px;font-size:16px;font-weight:600;letter-spacing:-.01em}

/* One measure for every running paragraph in the report, so the eye never
   has to re-find the left edge or re-learn the line length. */
.prose{max-width:36em}
.prose p{font-size:clamp(16px,1.55vw,18px);line-height:1.65;color:var(--muted)}
.prose p + p{margin-top:18px}
.prose strong{color:var(--ink);font-weight:600}
.prose em{font-style:normal;color:var(--ink)}

/* A line the whole section turns on. Set as type, not as a callout box. */
.pull{
  max-width:26ch;margin:clamp(32px,4vw,52px) 0;
  font-size:clamp(21px,2.6vw,32px);font-weight:600;line-height:1.2;
  letter-spacing:-.03em;color:var(--ink);
}
.pull cite{font-style:normal;display:block;margin-top:14px;font-size:13px;
  font-weight:400;letter-spacing:0;color:var(--muted)}

/* ── contents ────────────────────────────────────────────────────── */

.toc{
  columns:2;column-gap:clamp(32px,5vw,80px);
  margin-top:clamp(24px,3vw,36px);max-width:60em;
}
.toc a{
  display:block;break-inside:avoid;padding:11px 0;
  border-bottom:1px solid var(--hair);font-size:15px;color:var(--muted);
}
.toc a:hover{color:var(--ink)}
.toc b{font-family:var(--mono);font-size:11px;font-weight:400;color:var(--hair-firm);
  letter-spacing:.1em;margin-right:12px}
.toc a:hover b{color:var(--muted)}
@media (max-width:680px){.toc{columns:1}}

/* ── tables ──────────────────────────────────────────────────────── */

/* A wide table scrolls inside its own box. The page body never moves
   sideways, on any width. */
.tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin-top:clamp(20px,2.6vw,32px)}
table.grid{border-collapse:collapse;width:100%;min-width:760px;font-size:15px}
table.grid caption{
  text-align:left;font-size:13px;color:var(--muted);padding-bottom:14px;
}
table.grid th,table.grid td{
  text-align:left;vertical-align:top;
  padding:18px 28px 18px 0;border-bottom:1px solid var(--hair);
  line-height:1.55;
}
table.grid th{
  font-family:var(--mono);font-size:11px;font-weight:400;letter-spacing:.12em;
  text-transform:uppercase;color:var(--muted);
  padding-top:0;border-bottom-color:var(--hair-firm);white-space:nowrap;
}
table.grid tbody th{
  font-family:var(--sans);font-size:15px;font-weight:600;letter-spacing:-.01em;
  text-transform:none;color:var(--ink);padding-top:18px;
  border-bottom-color:var(--hair);white-space:normal;min-width:150px;
}
table.grid td:last-child,table.grid th:last-child{padding-right:0}
table.grid td{color:var(--muted)}
.grid--claims{min-width:660px}
/* The narrow phone case: let it wrap rather than force a 760px scroll on a
   table whose middle column is one word. */
@media (max-width:560px){
  table.grid{min-width:560px}
  table.grid th,table.grid td{padding-right:20px}
}

/* ── status ──────────────────────────────────────────────────────── */

.pill{
  font-family:var(--mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;
  white-space:nowrap;display:inline-flex;align-items:center;gap:7px;color:var(--muted);
}
.pill::before{content:"";width:7px;height:7px;flex:none;border:1px solid currentColor}
.pill--verified{color:var(--ok)}
.pill--verified::before{background:currentColor}
.pill--tested{color:var(--part)}
.pill--tested::before{background:linear-gradient(135deg,currentColor 50%,transparent 50%)}
.pill--no{color:var(--off)}
.pill--na{color:var(--off);opacity:.75}
.pill--na::before{border-style:dashed}

/* ── architecture diagram, plain HTML and CSS ────────────────────── */

.diagram{margin-top:clamp(24px,3vw,36px);max-width:56em}
.layer{
  display:grid;grid-template-columns:minmax(0,132px) minmax(0,1fr);
  gap:6px 28px;align-items:start;
  border:1px solid var(--hair);border-radius:2px;
  padding:16px 20px;margin-bottom:8px;background:var(--page);
}
.layer > .tag{padding-top:3px}
.layer ul{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:6px 10px}
.layer li{
  font-size:14px;line-height:1.45;color:var(--ink);
  border:1px solid var(--hair);border-radius:2px;padding:5px 10px;
}
.layer li small{display:block;font-size:11px;color:var(--muted);letter-spacing:.01em}
/* The two lines that matter most in the picture: where the app stops being
   the only thing responsible for the bytes. */
.boundary{
  display:flex;align-items:center;gap:14px;
  margin:14px 0;font-family:var(--mono);font-size:11px;letter-spacing:.12em;
  text-transform:uppercase;color:var(--muted);
}
.boundary::before,.boundary::after{content:"";height:0;flex:1;border-top:1px dashed var(--hair-firm)}
.diagram figcaption{margin-top:16px;font-size:14px;line-height:1.6;color:var(--muted);max-width:36em}
@media (max-width:620px){
  .layer{grid-template-columns:1fr;gap:10px}
}

/* ── findings ────────────────────────────────────────────────────── */

.finds{display:flex;flex-direction:column;gap:clamp(40px,4.6vw,64px)}
.finds article{max-width:52em}
.finds h3{margin-top:0}
.finds .tag{display:block;margin-bottom:8px}
.find{border-top:1px solid var(--hair);margin-top:16px}
.find > div{
  display:grid;grid-template-columns:minmax(0,148px) minmax(0,1fr);
  gap:4px 32px;padding:13px 0;border-bottom:1px solid var(--hair);
}
.find dt{
  font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--muted);padding-top:3px;
}
.find dd{margin:0;font-size:15px;line-height:1.6;color:var(--ink)}
.find .quiet{color:var(--muted)}
@media (max-width:620px){
  .find > div{grid-template-columns:1fr;gap:6px}
}

/* ── the questions ───────────────────────────────────────────────── */

.qs{list-style:none;margin:0;padding:0;max-width:44em;border-top:1px solid var(--hair)}
.qs li{
  padding:16px 0 16px 44px;border-bottom:1px solid var(--hair);position:relative;
  font-size:clamp(16px,1.6vw,19px);line-height:1.5;letter-spacing:-.015em;
}
.qs li::before{
  counter-increment:q;content:counter(q,decimal-leading-zero);
  position:absolute;left:0;top:19px;
  font-family:var(--mono);font-size:11px;letter-spacing:.1em;color:var(--hair-firm);
}
.qs{counter-reset:q}

/* ── the case study: what happens, in order ──────────────────────── */

.beats{border-top:1px solid var(--hair);max-width:60em}
.beats > div{
  display:grid;grid-template-columns:minmax(0,220px) minmax(0,1fr);
  gap:6px 48px;padding:clamp(20px,2.6vw,30px) 0;border-bottom:1px solid var(--hair);
}
.beats dt{font-size:clamp(17px,1.8vw,21px);font-weight:600;letter-spacing:-.025em}
.beats dd{margin:0;font-size:16px;line-height:1.65;color:var(--muted)}
.beats dd strong{color:var(--ink);font-weight:500}
@media (max-width:760px){
  .beats > div{grid-template-columns:1fr;gap:8px}
}

/* Why the product refuses things. Reasons, not features — so they are set as
   argument, one per row, rather than as a grid of tiles. */
.whys{display:flex;flex-direction:column;gap:clamp(32px,4vw,52px);max-width:38em}
.whys h3{margin:0 0 10px;font-size:clamp(19px,2.2vw,26px);letter-spacing:-.03em}
.whys p{font-size:clamp(16px,1.6vw,18px);line-height:1.65;color:var(--muted)}
.whys strong{color:var(--ink);font-weight:500}

/* ── the evidence footnote under a claim ─────────────────────────── */

.note{
  margin-top:clamp(24px,3vw,36px);max-width:40em;
  font-size:13px;line-height:1.65;color:var(--muted);
  padding-top:14px;border-top:1px solid var(--hair);
}
.note b{font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;
  font-weight:400;color:var(--ink);margin-right:8px}
