/* ============================================================
   HUBPYTGPAY — "The Ledger"
   Editorial financial aesthetic. Cream paper × midnight ink
   × carmine accent. Fraunces / Geist / JetBrains Mono.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Geist:wght@300..700&family=JetBrains+Mono:wght@400;500;600&family=Noto+Serif+SC:wght@300;400;500;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  /* Ink */
  --ink:        #0E1014;
  --ink-2:      #1A1D24;
  --ink-soft:   #383B43;
  --ink-mute:   #74766F;
  --ink-faint:  #A5A39A;

  /* Paper */
  --paper:      #F1ECDF;
  --paper-2:    #E7DFCB;
  --paper-3:    #D9CFB4;
  --paper-deep: #1B1B17;  /* ink panel */

  /* Accents */
  --carmine:    #C8482D;
  --carmine-2:  #A33A23;
  --saffron:    #D9A24F;

  /* Rules */
  --rule:        rgba(14, 16, 20, 0.18);
  --rule-strong: rgba(14, 16, 20, 0.42);
  --rule-light:  rgba(14, 16, 20, 0.10);

  /* Type */
  --serif: "Fraunces", "Noto Serif SC", "Times New Roman", Georgia, serif;
  --sans:  "Geist", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, "Noto Sans SC", monospace;

  --ease:   cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-2: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--ink); color: var(--paper); }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss03", "cv11";
  position: relative;
  overflow-x: hidden;
}

/* Paper grain — subtle noise overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.42;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.07 0 0 0 0 0.05 0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

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

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   TYPE SYSTEM
   ============================================================ */

.mono {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  font-feature-settings: "tnum", "zero";
}

.serif { font-family: var(--serif); }

.display {
  font-family: var(--serif);
  font-weight: 360;
  font-style: normal;
  letter-spacing: -0.025em;
  line-height: 0.96;
  font-variation-settings: "opsz" 144;
}
.display em {
  font-style: italic;
  font-weight: 320;
  color: var(--carmine);
  font-variation-settings: "opsz" 144;
}

h1, h2, h3, h4 { font-weight: 400; letter-spacing: -0.01em; }

.lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.45;
  font-weight: 320;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 60;
}

.dropcap {
  font-family: var(--serif);
  float: left;
  font-size: 4.4em;
  line-height: 0.85;
  margin: 0.08em 0.10em -0.08em 0;
  font-weight: 380;
  font-variation-settings: "opsz" 144;
  color: var(--ink);
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

.rule {
  height: 1px;
  background: var(--rule);
  width: 100%;
}

.rule-strong { background: var(--rule-strong); }

/* ============================================================
   MASTHEAD (header)
   ============================================================ */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(8px);
}
.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  opacity: 0.92;
  z-index: -1;
}

.masthead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  align-self: center;
  border-radius: 1px;
}
.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 380;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 60;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav a {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left center; }
.nav a.active { color: var(--ink); }
.nav a.active::after { transform: scaleX(1); background: var(--carmine); }

.nav-contact {
  margin-left: 12px;
  background: var(--ink);
  color: var(--paper) !important;
  border-radius: 0;
  padding: 10px 18px !important;
}
.nav-contact::after { display: none; }
.nav-contact:hover { background: var(--carmine); color: var(--paper) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  padding: 6px 10px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* secondary masthead row — colophon-like */
.masthead-meta {
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 30px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.masthead-meta .live::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--carmine);
  margin-right: 7px;
  transform: translateY(-1px);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (max-width: 880px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 12px 24px 20px;
    gap: 0;
  }
  .nav.open a { padding: 14px 0; border-bottom: 1px solid var(--rule-light); }
  .nav.open a::after { display: none; }
  .nav-contact { margin-left: 0 !important; margin-top: 8px; text-align: center; }
  .nav-toggle { display: block; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  margin-bottom: 56px;
  align-items: end;
}

.hero-section-mark {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-section-mark span:first-child {
  color: var(--ink);
  font-weight: 600;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: right;
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stats .num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 380;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
  font-variation-settings: "opsz" 60;
  line-height: 1;
}

.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 9vw, 132px);
  font-weight: 320;
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144, "SOFT" 0;
  margin-bottom: 56px;
  text-wrap: balance;
}
.hero-h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--carmine);
}
.hero-h1 .ampersand {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-mute);
  padding: 0 0.05em;
}

.hero-tail {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 48px;
  align-items: end;
  border-top: 1px solid var(--rule-strong);
  padding-top: 28px;
}

.hero-tail-mark {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.5;
}

.hero-lede {
  max-width: 540px;
  font-family: var(--serif);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.5;
  font-weight: 340;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 36;
}

.hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

@media (max-width: 880px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 36px; }
  .hero-stats { text-align: left; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero-stats .num { font-size: 22px; }
  .hero-h1 { margin-bottom: 36px; }
  .hero-tail { grid-template-columns: 1fr; gap: 24px; padding-top: 20px; }
  .hero-tail-mark { display: none; }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
  text-transform: none;
}

.btn .arrow {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  transition: transform 0.4s var(--ease);
}
.btn:hover .arrow { transform: translateX(6px); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--carmine); border-color: var(--carmine); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.btn-paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-paper:hover { background: var(--carmine); color: var(--paper); border-color: var(--carmine); }

/* ============================================================
   TICKER
   ============================================================ */

.ticker {
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
  background: var(--paper-2);
}
.ticker::before, .ticker::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--paper-2), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--paper-2), transparent); }

.ticker-track {
  display: flex;
  gap: 56px;
  animation: ticker 38s linear infinite;
  width: max-content;
  align-items: center;
}
.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-item {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 380;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 60;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 56px;
  color: var(--ink);
}
.ticker-item::after {
  content: "✱";
  color: var(--carmine);
  font-size: 14px;
  display: inline-block;
}
.ticker-item:last-child::after { content: ""; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS — editorial 2-column
   ============================================================ */

.section {
  padding: 96px 0;
  position: relative;
}
.section + .section { padding-top: 0; }

.section-head {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 48px;
  margin-bottom: 64px;
  border-top: 1px solid var(--rule-strong);
  padding-top: 24px;
  align-items: start;
}
.section-mark {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.5;
  position: sticky;
  top: 120px;
}
.section-mark .num {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 320;
  line-height: 0.97;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
  max-width: 14ch;
  text-wrap: balance;
}
.section-head h2 em {
  font-style: italic;
  color: var(--carmine);
  font-weight: 300;
}
.section-head .head-lede {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  font-weight: 340;
  color: var(--ink-soft);
  margin-top: 24px;
  max-width: 50ch;
  font-variation-settings: "opsz" 36;
}

@media (max-width: 880px) {
  .section { padding: 64px 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .section-mark { position: static; }
}

/* ============================================================
   ABOUT EXCERPT — editorial 3-col
   ============================================================ */

.editorial {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.editorial-meta { /* uses .section-mark style */ }
.editorial-col p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 340;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 36;
  margin-bottom: 20px;
}
.editorial-col p:last-child { margin-bottom: 0; }

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

/* ============================================================
   SERVICES — numbered list
   ============================================================ */

.services {
  list-style: none;
  border-top: 1px solid var(--rule-strong);
}
.services > li {
  display: grid;
  grid-template-columns: 100px 1fr 1fr 80px;
  gap: 48px;
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  position: relative;
  transition: background 0.4s var(--ease);
  cursor: default;
}
.services > li:hover { background: var(--paper-2); }
.services > li::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--carmine);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.services > li:hover::after { transform: scaleX(1); }

.svc-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}
.svc-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 340;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variation-settings: "opsz" 144;
  transition: transform 0.5s var(--ease);
}
.services > li:hover .svc-title { transform: translateX(8px); }
.services > li:hover .svc-title em { color: var(--carmine); }
.svc-title em { font-style: italic; font-weight: 300; transition: color 0.4s var(--ease); }
.svc-desc {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}
.svc-arrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--ink-mute);
  text-align: right;
  transition: transform 0.5s var(--ease), color 0.4s var(--ease);
}
.services > li:hover .svc-arrow { color: var(--carmine); transform: translateX(8px); }

@media (max-width: 880px) {
  .services > li {
    grid-template-columns: 60px 1fr 32px;
    gap: 16px;
    padding: 24px 0;
  }
  .svc-desc { grid-column: 2 / 3; margin-top: 8px; }
  .svc-arrow { grid-row: 1; grid-column: 3; }
}

/* ============================================================
   SPLIT FEATURE
   ============================================================ */

.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.split-text .mono { display: block; margin-bottom: 18px; color: var(--ink-mute); }
.split-text h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 320;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  font-variation-settings: "opsz" 144;
}
.split-text h2 em { font-style: italic; color: var(--carmine); font-weight: 300; }
.split-text p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 340;
  color: var(--ink-soft);
  margin-bottom: 32px;
  font-variation-settings: "opsz" 36;
  max-width: 48ch;
}

.split-figure {
  position: relative;
  margin: 0;
}
.split-figure-frame {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--paper-3);
}
.split-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.85);
  transition: transform 1.4s var(--ease);
}
.split-figure:hover img { transform: scale(1.04); }
.split-figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(14, 16, 20, 0.18));
  pointer-events: none;
}
.split-figure figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-figure-frame { aspect-ratio: 4/3; }
}

/* ============================================================
   CTA BANNER (ink panel)
   ============================================================ */

.cta-card {
  position: relative;
  padding: 80px 64px;
  background: var(--paper-deep);
  color: var(--paper);
  overflow: hidden;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 48px;
  align-items: end;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.92 0 0 0 0 0.85 0 0 0 0.10 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
}
.cta-card > * { position: relative; }

.cta-card .mark {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cta-card .mark .num { color: var(--paper); display: block; font-weight: 600; margin-bottom: 4px; }

.cta-card h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 60px);
  font-weight: 320;
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
  max-width: 16ch;
}
.cta-card h2 em { font-style: italic; color: var(--saffron); font-weight: 300; }
.cta-card p {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 340;
  color: var(--ink-faint);
  margin-top: 16px;
  max-width: 42ch;
  font-variation-settings: "opsz" 36;
}

@media (max-width: 880px) {
  .cta-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 48px 24px;
  }
}

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */

.page-header {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--rule-strong);
  position: relative;
}
.page-header-grid {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 48px;
  align-items: end;
}
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 320;
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
.page-header h1 em { font-style: italic; color: var(--carmine); font-weight: 300; }
.page-header .lede {
  margin-top: 24px;
  max-width: 48ch;
}
.page-header-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: right;
  line-height: 1.6;
}
.page-header-meta strong { color: var(--ink); font-weight: 600; }

@media (max-width: 880px) {
  .page-header { padding: 36px 0 32px; }
  .page-header-grid { grid-template-columns: 1fr; gap: 16px; }
  .page-header-meta { text-align: left; }
}

/* ============================================================
   TIMELINE
   ============================================================ */

.timeline {
  list-style: none;
  border-top: 1px solid var(--rule-strong);
}
.timeline > li {
  display: grid;
  grid-template-columns: 100px 220px 1fr;
  gap: 48px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: padding-left 0.5s var(--ease);
}
.timeline > li:hover { padding-left: 12px; }
.timeline-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}
.timeline-year {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 320;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variation-settings: "opsz" 144;
  color: var(--ink);
  font-feature-settings: "tnum";
}
.timeline-year em {
  font-style: italic;
  color: var(--carmine);
  font-weight: 300;
}
.timeline-body h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 380;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  font-variation-settings: "opsz" 60;
}
.timeline-body p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  max-width: 60ch;
}

@media (max-width: 880px) {
  .timeline > li {
    grid-template-columns: 60px 1fr;
    gap: 16px;
    padding: 24px 0;
  }
  .timeline-year { grid-row: 2; grid-column: 1 / 3; margin: 8px 0 4px; }
  .timeline-body { grid-column: 2; }
}

/* ============================================================
   VALUES (numbered editorial list)
   ============================================================ */

.values {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule-strong);
}
.values > li {
  padding: 36px 32px 36px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: baseline;
  position: relative;
}
.values > li:nth-child(odd) {
  border-right: 1px solid var(--rule);
  padding-right: 48px;
}
.values > li:nth-child(even) { padding-left: 48px; }

.values .v-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--carmine);
  letter-spacing: 0.06em;
  font-weight: 600;
}
.values h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 360;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.05;
  font-variation-settings: "opsz" 144;
}
.values h3 em { font-style: italic; color: var(--carmine); font-weight: 300; }
.values p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 880px) {
  .values { grid-template-columns: 1fr; }
  .values > li:nth-child(odd) { border-right: none; padding-right: 0; }
  .values > li:nth-child(even) { padding-left: 0; }
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact {
  display: grid;
  grid-template-columns: 100px 1.1fr 1fr;
  gap: 64px;
  padding: 80px 0;
  border-top: 1px solid var(--rule-strong);
  align-items: start;
}

.contact-form { max-width: 540px; }
.form-field {
  margin-bottom: 28px;
  position: relative;
  border-bottom: 1px solid var(--rule-strong);
  transition: border-color 0.3s var(--ease);
}
.form-field:focus-within { border-color: var(--carmine); }
.form-field label {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.form-field label .req { color: var(--carmine); }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 4px 0 14px;
  border: none;
  background: transparent;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 340;
  color: var(--ink);
  font-variation-settings: "opsz" 36;
  outline: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--ink-faint);
  font-style: italic;
}
.form-field textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.4;
}

.form-consent {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.6;
  margin: 24px 0;
  padding-left: 16px;
  border-left: 2px solid var(--rule);
  max-width: 50ch;
}

.form-status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 16px 0 0;
  min-height: 1.4em;
  color: var(--ink-mute);
}
.form-status[data-kind="ok"]   { color: var(--ink); }
.form-status[data-kind="err"]  { color: var(--carmine); }
.form-status[data-kind="warn"] { color: var(--carmine); }

.contact-aside h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 360;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.05;
  font-variation-settings: "opsz" 144;
}
.contact-aside h3 em { font-style: italic; color: var(--carmine); font-weight: 300; }
.contact-aside p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 16px;
}

.pull-quote {
  position: relative;
  margin-top: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.pull-quote::before {
  content: "“";
  position: absolute;
  top: -24px;
  left: -8px;
  font-family: var(--serif);
  font-size: 96px;
  font-style: italic;
  color: var(--carmine);
  line-height: 1;
  font-variation-settings: "opsz" 144;
}
.pull-quote blockquote {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  font-weight: 360;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 16px;
  padding-left: 32px;
  font-variation-settings: "opsz" 60;
}
.pull-quote-attr {
  display: flex;
  justify-content: space-between;
  padding-left: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.pull-quote-attr cite { color: var(--ink); font-weight: 600; font-style: normal; }

@media (max-width: 880px) {
  .contact { grid-template-columns: 1fr; gap: 48px; padding: 48px 0; }
}

/* ============================================================
   PROSE (privacy)
   ============================================================ */

.prose-wrap {
  display: grid;
  grid-template-columns: 100px minmax(0, 720px) 1fr;
  gap: 48px;
  padding: 80px 0;
  border-top: 1px solid var(--rule-strong);
}
.prose-wrap .toc {
  position: sticky;
  top: 130px;
  align-self: start;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.prose-wrap .toc-label {
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-strong);
}
.prose-wrap .toc ol {
  list-style: none;
  display: grid;
  gap: 8px;
}
.prose-wrap .toc a {
  color: var(--ink-mute);
  transition: color 0.2s;
  display: flex;
  gap: 8px;
}
.prose-wrap .toc a:hover { color: var(--ink); }
.prose-wrap .toc .roman { color: var(--ink); width: 22px; }

.prose .updated {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 36px;
}
.prose h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 360;
  letter-spacing: -0.02em;
  margin: 56px 0 16px;
  line-height: 1.1;
  font-variation-settings: "opsz" 144;
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.prose h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.prose h2::before {
  content: attr(data-num);
  position: absolute;
  top: 28px;
  left: -110px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  font-weight: 500;
}
.prose h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 380;
  letter-spacing: -0.01em;
  margin: 28px 0 12px;
  font-variation-settings: "opsz" 60;
}
.prose p {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 340;
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-variation-settings: "opsz" 36;
}
.prose p strong {
  color: var(--ink);
  font-weight: 500;
}
.prose ul {
  list-style: none;
  margin: 16px 0 24px;
  padding-left: 0;
}
.prose ul li {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
  font-variation-settings: "opsz" 36;
  font-weight: 340;
}
.prose ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--carmine);
}
.prose a {
  color: var(--carmine);
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s;
}
.prose a:hover { opacity: 0.6; }

@media (max-width: 1080px) {
  .prose-wrap { grid-template-columns: 100px minmax(0, 1fr); }
  .prose-wrap .toc { display: none; }
}
@media (max-width: 880px) {
  .prose-wrap { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
  .prose h2::before { display: none; }
  .prose h2 { font-size: 26px; }
}

/* ============================================================
   PAGE BANNER
   ============================================================ */

.page-banner {
  margin: 0;
  border-bottom: 1px solid var(--rule);
}
.page-banner-frame {
  position: relative;
  aspect-ratio: 16/6;
  overflow: hidden;
  background: var(--paper-3);
}
.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.85);
}
.page-banner-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 16, 20, 0.18) 0%, transparent 30%, transparent 70%, rgba(14, 16, 20, 0.32) 100%);
  pointer-events: none;
}
.page-banner-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 14px 0;
}

/* ============================================================
   COLOPHON / FOOTER
   ============================================================ */

.colophon {
  margin-top: 64px;
  background: var(--paper-deep);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.colophon::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.92 0 0 0 0 0.85 0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
}
.colophon-inner { position: relative; padding-top: 64px; padding-bottom: 32px; }

.colophon-mast {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(241, 236, 223, 0.18);
}
.colophon-brand {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 320;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
  margin-bottom: 16px;
}
.colophon-brand em { font-style: italic; color: var(--saffron); font-weight: 300; }
.colophon-tagline {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 340;
  color: var(--ink-faint);
  max-width: 36ch;
  font-variation-settings: "opsz" 36;
}

.colophon-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 16px;
  font-weight: 600;
}
.colophon-col ul { list-style: none; display: grid; gap: 10px; }
.colophon-col a {
  font-size: 14px;
  color: var(--ink-faint);
  transition: color 0.2s;
  position: relative;
}
.colophon-col a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--saffron);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.colophon-col a:hover { color: var(--paper); }
.colophon-col a:hover::after { transform: scaleX(1); transform-origin: left; }

.colophon-bottom {
  padding-top: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.colophon-bottom > :nth-child(2) { text-align: right; }

@media (max-width: 880px) {
  .colophon-mast { grid-template-columns: 1fr 1fr; }
  .colophon-bottom { grid-template-columns: 1fr; }
  .colophon-bottom > * { text-align: left !important; }
}
@media (max-width: 520px) {
  .colophon-mast { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   REVEAL
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* word-by-word reveal */
.word-reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 0.7s var(--ease), transform 0.8s var(--ease);
}
.word-reveal.in .word {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   DECORATIVE ASTERISK / RULE
   ============================================================ */

.rule-mark {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 64px 0;
}
.rule-mark::before, .rule-mark::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.rule-mark .glyph {
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  color: var(--carmine);
}

/* ============================================================
   I18N — Chinese page adjustments
   ============================================================ */
:lang(zh) em { font-style: normal; }
:lang(zh) .colophon-brand em { font-style: italic; } /* keep brand mark italic */
:lang(zh) .hero-h1,
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) h4 { letter-spacing: -0.01em; }
:lang(zh) .mono,
:lang(zh) .section-mark,
:lang(zh) .hero-section-mark,
:lang(zh) .svc-num,
:lang(zh) .timeline-num,
:lang(zh) .v-num,
:lang(zh) .colophon-col h5,
:lang(zh) .masthead-meta { letter-spacing: 0.04em; }

/* right-side group in masthead — keeps lang toggle visible alongside nav and burger */
.masthead-end {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* language toggle — carmine pill button, always visible (outside collapsible nav) */
.lang-toggle {
  padding: 5px 10px;
  background: var(--carmine);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--carmine);
  line-height: 1;
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.lang-toggle:hover {
  background: var(--paper);
  color: var(--carmine);
}
