/* ============================================================
   GeekLaw — Editorial / Archive style sheet
   paper & ink · no gradients · no glow · motion kept to a whisper
   ============================================================ */

/* ---------- 1. Design tokens ---------- */

:root {
  --paper: #F5F3ED;
  --paper-deep: #EDEAE1;
  --ink: #171715;
  --muted: #73716B;
  --line: rgba(23, 23, 21, .16);

  --nav-h: 52px;

  --font-kai: "LXGW WenKai Screen", "LXGW WenKai", "Kaiti SC", "STKaiti", serif;
  --font-body: "LXGW WenKai Screen", "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-serif: var(--font-body);
  --font-mono: "IBM Plex Mono", "Courier Prime", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --w-page: 1060px;
  --w-text: 720px;
  --pad-x: clamp(20px, 5vw, 44px);
}

/* ---------- 2. Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
}

h1, h2, h3, p, dl, dt, dd, figure, blockquote, pre { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

[id] { scroll-margin-top: calc(var(--nav-h) + 28px); }

.skip-link {
  position: fixed;
  top: -52px;
  left: 16px;
  z-index: 500;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
}
.skip-link:focus-visible { top: 10px; }

/* ---------- 3. Paper grain + printer sweep (the only ornaments) ---------- */

/* Extremely faint grain laid over everything, the way real paper does. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* One thin line sweeps across once per page load, like a print head
     finishing a page. ~480ms, never blocks reading or scrolling.
     Resting style keeps it invisible, so a stalled clock cannot leave
     a stray mark on the page. */
  body::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    top: var(--nav-h);
    height: 2px;
    z-index: 300;
    pointer-events: none;
    background: var(--ink);
    transform-origin: left center;
    opacity: 0;
    animation: press-sweep .48s cubic-bezier(.65, 0, .35, 1) forwards;
  }

  @keyframes press-sweep {
    0%   { transform: scaleX(0); opacity: 1; }
    42%  { transform: scaleX(1); opacity: 1; }
    78%  { transform: scaleX(1); opacity: .85; }
    100% { transform: scaleX(1); opacity: 0; }
  }
}

/* ---------- 4. Shared primitives ---------- */

.wrap {
  max-width: var(--w-page);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.wrap--text {
  max-width: calc(var(--w-text) + 2 * var(--pad-x));
}

/* Section header: heavy top rule + index number, like a ledger section.
   The rule itself is drawn by ::before so it can be animated with
   transforms; the transparent border keeps geometry byte-identical. */
.sec-head {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-top: 14px;
  border-top: 2px solid transparent;
}

.sec-head + .ledger { margin-top: 22px; }

.sec-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--muted);
}

.sec-title {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .14em;
}

.sec-more {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
}

.sec-more:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

/* ---------- 5. Navigation ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-nav > .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.brand {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
}

.brand:hover { opacity: .7; }

.nav-links {
  display: flex;
  gap: clamp(16px, 4vw, 34px);
  justify-self: center;
}

.nav-links a,
.nav-contact {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
  transition: color .15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="true"],
.nav-contact:hover { color: var(--ink); }

.nav-links a[aria-current="true"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.nav-contact {
  justify-self: end;
  white-space: nowrap;
}

.nav-contact:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- 6. Hero ---------- */

.hero {
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 32px 48px;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--muted);
}

.hero h1 {
  margin-top: 0;
  max-width: 21em;
  font-family: var(--font-kai);
  font-weight: 400;
  font-size: clamp(30px, 5.6vw, 64px);
  line-height: 1.3;
  letter-spacing: .02em;
}

.hero-id {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .26em;
  color: var(--muted);
}

.hero-lede {
  margin-top: 12px;
  max-width: 36em;
  font-size: 16.5px;
  line-height: 2;
  color: var(--muted);
}

.hero-rule {
  border: none;
  border-top: 1px solid var(--line);
  margin-top: clamp(44px, 8vh, 72px);
}

/* ---------- 7. Ledger rows (Tools & Notes share one grammar) ---------- */

.section { padding-block: clamp(42px, 8vh, 72px); }
.section:first-of-type { padding-top: 0; }

.ledger { border-top: 1px solid var(--line); }

.row {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) max-content 34px;
  grid-template-areas: "lead main meta tail";
  align-items: baseline;
  column-gap: 20px;
  padding-block: 23px 20px;
  border-bottom: 1px solid var(--line);
  transition: background-color .15s ease;
}

a.row:hover,
a.row:focus-visible { background-color: rgba(23, 23, 21, .035); }

.row-lead {
  grid-area: lead;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  white-space: nowrap;
}

.row-main { grid-area: main; min-width: 0; }

.row-name {
  display: inline-block;
  font-family: var(--font-kai);
  font-size: 19.5px;
  letter-spacing: .03em;
  line-height: 1.55;
}

.row-desc {
  display: block;
  margin-top: 4px;
  max-width: 32em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.row-meta {
  grid-area: meta;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--muted);
  white-space: nowrap;
}

.row-tail {
  grid-area: tail;
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  transition: transform .18s ease, color .15s ease;
}

.row-soon {
  font-size: 10.5px;
  letter-spacing: .14em;
  color: rgba(115, 113, 107, .62);
}

a.row:hover .row-tail,
a.row:focus-visible .row-tail {
  color: var(--ink);
  transform: translate(2px, -2px);
}

a.row:hover .row-name {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

/* Notes variant: date sits in the lead column, no description underneath */
.row--note { grid-template-columns: 96px minmax(0, 1fr) max-content 34px; }
.row--note .row-lead { font-size: 11.5px; }

/* ---------- 8. Me ---------- */

.me-brief {
  margin-top: 28px;
  max-width: 42em;
}

.me-brief p {
  font-size: 16.5px;
  line-height: 2;
}

.me-more {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
}

.me-more:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.me-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  margin-top: 28px;
}

.me-copy p { margin-top: 1.35em; font-size: 16.5px; line-height: 2.05; }
.me-copy p:first-child { margin-top: 0; }

.me-sign {
  margin-top: 34px !important;
  font-family: var(--font-kai);
  font-size: 17.5px;
}

.dossier {
  border-left: 1px solid var(--line);
  padding-left: clamp(20px, 3vw, 36px);
  align-self: start;
}

.dossier dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--muted);
}

.dossier dd {
  margin-top: 6px;
  margin-bottom: 22px;
  font-size: 15px;
  line-height: 1.8;
}

.dossier dd:last-child { margin-bottom: 0; }

.dossier a { border-bottom: 1px solid var(--line); transition: border-color .15s ease; }
.dossier a:hover { border-color: var(--ink); }

/* ---------- 9. Footer ---------- */

.site-foot {
  margin-top: clamp(48px, 9vh, 84px);
  border-top: 1px solid var(--line);
  padding-block: 26px 42px;
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--muted);
}

.site-foot a:hover { color: var(--ink); }

/* ---------- 10. Archive page ---------- */

.archive-head + .ledger { margin-top: 32px; }

.year-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: clamp(40px, 7vh, 60px);
}

.year-head .y {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .2em;
}

.year-head .r {
  flex: 1;
  border-top: 1px solid var(--line);
  transform: translateY(-4px);
}

/* ---------- 11. Article ---------- */

.article-head { padding-top: clamp(36px, 7vh, 60px); }

.backlink {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
}

.backlink:hover { color: var(--ink); }

.article-meta {
  margin-top: clamp(34px, 6vh, 54px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
}

.article-title {
  margin-top: 18px;
  max-width: 22em;
  font-family: var(--font-kai);
  font-weight: 400;
  font-size: clamp(27px, 3.6vw, 38px);
  line-height: 1.45;
  letter-spacing: .02em;
}

.article-standfirst {
  margin-top: 18px;
  max-width: 32em;
  font-family: var(--font-kai);
  font-size: 17px;
  line-height: 2;
  color: var(--muted);
}

.article-rule {
  border: none;
  border-top: 1px solid var(--line);
  margin-top: clamp(32px, 6vh, 50px);
}

.prose { counter-reset: h2c; padding-bottom: 4px; }

.prose p {
  margin-top: 1.7em;
  font-size: 16.5px;
  line-height: 2.1;
  text-align: justify;
  text-justify: inter-ideograph;
}

.prose > :first-child { margin-top: 0; }

.prose h2 {
  margin-top: 2.8em;
  font-family: var(--font-kai);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: .03em;
}

.prose h2::before {
  counter-increment: h2c;
  content: counter(h2c, decimal-leading-zero) "  ";
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
}

.prose ul { margin-top: 1.5em; }

.prose li {
  position: relative;
  padding-left: 1.6em;
  margin-top: .8em;
  font-size: 16px;
  line-height: 2.05;
}

.prose li::before {
  content: "—";
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  color: var(--muted);
}

.prose blockquote {
  margin-top: 2.4em;
  padding-left: 22px;
  border-left: 1px solid var(--ink);
  color: var(--muted);
}

.prose blockquote p {
  margin-top: .55em;
  font-family: var(--font-kai);
  font-size: 16.5px;
  text-align: left;
}

.prose blockquote p:first-child { margin-top: 0; }

.prose cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
}

code {
  font-family: var(--font-mono);
  font-size: .82em;
  background: var(--paper-deep);
  padding: 2px 6px;
  border-radius: 3px;
}

pre {
  margin-top: 2em;
  padding: 18px 22px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  overflow-x: auto;
}

pre code {
  background: none;
  padding: 0;
  font-size: 12.5px;
  line-height: 1.95;
}

/* Figures step wider than the text column, centred on it. */
figure.wide {
  width: min(920px, calc(min(var(--w-page), 100vw) - 2 * var(--pad-x)));
  margin-inline: auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 2.8em;
  margin-bottom: 2.8em;
}

figure.wide figcaption {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--muted);
}

.article-end {
  margin-top: 4.5em;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--muted);
}

.article-end::before { content: "▪"; }

.article-end .r { flex: 1; border-top: 1px solid var(--line); transform: translateY(-3px); }

.article-next { margin-top: 36px; padding-bottom: 20px; }

/* Legal-tools migration article: keep large screenshots proportional and
   let its wide tables scroll inside the text column on narrow screens. */
.legal-tools-article img { height: auto; }
.legal-tools-article figure.wide {
  width: 100%;
  max-width: 100%;
  left: 0;
  transform: none;
}
.legal-tools-article .article-table {
  width: 100%;
  margin-top: 1.7em;
  overflow-x: auto;
}
.legal-tools-article .article-table table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}
.legal-tools-article .article-table th,
.legal-tools-article .article-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal-tools-article .article-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  font-weight: 400;
}

/* ---------- 12. Small screens ---------- */

@media (max-width: 880px) {
  .me-grid { grid-template-columns: 1fr; }

  .dossier {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 26px;
  }

  .dossier dd { margin-bottom: 18px; }
}

@media (max-width: 720px) {
  /* Ledger rows fall back to stacked print-proof layout */
  .row { display: block; padding-block: 20px 17px; }

  .row-meta { float: right; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }

  .row-tail {
    position: absolute;
    right: 0;
    top: 22px;
    justify-self: auto;
  }

  .row-name { margin-top: 9px; font-size: 19px; }
  .row-desc { margin-top: 5px; max-width: none; }

  .row--note { grid-template-columns: 88px minmax(0, 1fr) max-content 34px; }

  figure.wide { left: 0; transform: none; }
}

@media (max-width: 560px) {
  .site-nav > .wrap { grid-template-columns: auto 1fr; }

  .brand { font-size: 12px; letter-spacing: .14em; }
  .nav-links { justify-self: end; gap: 15px; }
  .nav-contact { display: none; }

  /* Hero terminal type scales via .hero .hero-type (20px floor); phones
     need no extra rule here. */

  .sec-head { flex-wrap: wrap; row-gap: 2px; }

  .prose p, .me-copy p { font-size: 16px; }
}

/* ---------- 13. Reduced motion: the site stands without animation ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- 14. Carriage-return section reveal (progressive enhancement) ----------
   Static state (no JS / reduced motion / after playing) is IDENTICAL to the
   original design: full ink rule, visible title, no carriage mark.
   Enhancement adds one printed-line moment per top-level section heading. */

.sec-head::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  transform-origin: left center;
}

/* The "carriage": a small type-bar riding the rule. Hidden in the static
   design — it only exists while the reveal is running. */
.sec-head .carriage {
  display: none;
  position: absolute;
  top: -7px;
  left: 0;
  width: 2px;
  height: 12px;
  background: var(--ink);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {

  /* Initial hidden states apply ONLY when JS has armed them. */
  html.js-print .sec-head:not(.is-printed)::before { transform: scaleX(0); }

  html.js-print .sec-head:not(.is-printed) > .sec-num,
  html.js-print .sec-head:not(.is-printed) > .sec-title,
  html.js-print .sec-head:not(.is-printed) > .sec-more {
    opacity: 0;
    transform: translateY(4px);
  }

  html.js-print .sec-head.is-printed::before {
    animation: cr-line 500ms cubic-bezier(.22, .8, .2, 1) both;
  }

  /* One run, ~800ms: print across (~500ms), hold at end of row (~100ms),
     then home again (~200ms). Segment easings live inside the keyframes. */
  html.js-print .sec-head.is-printed .carriage {
    display: block;
    animation: cr-run 800ms linear both;
  }

  @keyframes cr-line {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }

  @keyframes cr-run {
    0% {
      opacity: 1;
      transform: translateX(0);
      animation-timing-function: cubic-bezier(.22, .8, .2, 1);
    }
    /* reached end of row at ~500ms — ride with the printed line */
    62.5% {
      opacity: 1;
      transform: translateX(var(--cr-x, 220px));
      animation-timing-function: cubic-bezier(.1, .9, .15, 1);
    }
    /* deliberate pause: let “打到行尾” register, then snap home */
    75% {
      opacity: 1;
      transform: translateX(var(--cr-x, 220px));
      animation-timing-function: cubic-bezier(.1, .9, .15, 1);
    }
    88% { opacity: 1; }
    100% {
      opacity: 0;
      transform: translateX(0);
    }
  }

  /* Title row rises gently while the carriage holds / returns. */
  html.js-print .sec-head.is-printed > .sec-num,
  html.js-print .sec-head.is-printed > .sec-title,
  html.js-print .sec-head.is-printed > .sec-more {
    animation: cr-rise 220ms cubic-bezier(.22, .8, .2, 1) .47s both;
  }

  @keyframes cr-rise {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: none; }
  }

  /* Fast-scroll bypass: jump straight to the final static state. */
  html.js-print .sec-head.cr-now::before,
  html.js-print .sec-head.cr-now > .sec-num,
  html.js-print .sec-head.cr-now > .sec-title,
  html.js-print .sec-head.cr-now > .sec-more {
    animation: none;
    opacity: 1;
    transform: none;
  }

  html.js-print .sec-head.cr-now .carriage { display: none; }
}

/* ---------- 15. Hero dialogue typing (progressive enhancement) ----------
   The HTML always ships the full question, prompt, and arrow — search
   engines, no-JS visitors and reduced-motion users read them instantly.
   JS arms the performance only when it will actually run; glyph spans keep
   their final layout width while invisible, so the hero never shifts. */

.hero-type { position: relative; }

.hero-type .t-line { display: block; }

/* The final prompt is real DOM content so no-JS and reduced-motion visitors
   see the complete, stable exchange immediately. */
.hero-type .t-prompt {
  display: block;
  min-height: 1.6em;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: .68em;
  letter-spacing: 0;
}

/* Temporary caret while the agent is typing. The final prompt owns its own
   glyph, so the two states never compete visually. */
.hero-type .t-writing-caret {
  position: absolute;
  left: 0;
  top: 0;
  width: .42em;
  height: .92em;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  transition: transform 60ms ease-out;
}

.hero-type .t-writing-caret.on { opacity: 1; }

/* Row switch: a quiet step down, deliberately not a carriage effect. */
.hero-type .t-writing-caret.move {
  transition: transform 120ms cubic-bezier(.25, .6, .3, 1);
}

@keyframes t-pulse {
  0%, 100% { opacity: 1; }
  55% { opacity: .12; }
}

/* The question set in the terminal's own face: kai-flavored monospace.
   Visitors with LXGW WenKai Mono installed get true mono-kai; everyone
   else gets Plex Mono latin + WenKai Screen CJK (caret positions are
   measured per glyph, so non-strict mono never breaks alignment).
   Console-scale type, loose leading, zero tracking — .hero raises the
   specificity above the plain .hero h1 poster rule. */
.hero .hero-type {
  font-family: "LXGW WenKai Mono", "IBM Plex Mono", "LXGW WenKai Screen",
    "Kaiti SC", "STKaiti", serif;
  font-size: clamp(15px, 1.6vw, 24px);
  line-height: 1.6;
  letter-spacing: 0;
}

/* Paper-terminal session header: the only explicit session hint. */
.term-head {
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--muted);
}

.term-head .t-txt { display: inline-block; }

/* A single quiet continuation cue, never styled like a button. */
.hero-more {
  display: inline-block;
  width: max-content;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  color: var(--muted);
}

.hero-more:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

@media (prefers-reduced-motion: no-preference) {

  /* JS only hides content after it has successfully armed the animation. */
  html.js-hero .term-head .t-txt {
    animation: session-in 240ms ease-out both;
  }

  @keyframes session-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* Glyphs settle into place with a whisper, never a long fade. */
  html.js-hero .hero-type .t-ch {
    opacity: 1;
    transform: translateY(0);
    transition:
      opacity 55ms linear,
      transform 55ms cubic-bezier(.22, .8, .2, 1);
  }

  html.js-hero .hero-type .t-ch.t-h {
    opacity: 0;
    transform: translateY(1px);
    transition: none;
  }

  html.js-hero .hero-type .t-prompt {
    opacity: 0;
  }

  html.js-hero .hero-type .t-prompt.t-on {
    opacity: 1;
    transition: opacity 100ms linear;
  }

  html.js-hero .hero-type .t-prompt.t-on .t-final-caret {
    animation: t-pulse 800ms ease-in-out infinite;
  }

  html.js-hero .hero-more {
    opacity: 0;
    transform: translateY(3px);
    pointer-events: none;
  }

  html.js-hero .hero-more.t-on {
    opacity: 1;
    transform: none;
    transition:
      opacity 300ms ease-out,
      transform 300ms ease-out;
    pointer-events: auto;
  }
}
