/* ==========================================================================
   Kopi & Code — The Board
   Hand-rolled. Mobile-first: 390 is the source of truth; 768 and 1440 are
   designed adaptations. Type floors: body >=18px, labels >=14px.
   Motion lives at the end of the file, gated behind reduced-motion.
   ========================================================================== */

/* ---- Fonts (self-hosted, subset) ---------------------------------------- */

@font-face {
  font-family: 'Tanker';
  src: url('../fonts/tanker-400.woff2?v=3') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Metric-compatible local fallbacks so the swap to the real faces moves
   nothing (CLS budget). Values computed from the actual font metrics:
   Impact runs ~15% wider than Tanker per character, hence the size-adjust. */
@font-face {
  font-family: 'Tanker-fallback';
  src: local('Impact');
  size-adjust: 86.64%;
  ascent-override: 115.42%;
  descent-override: 30.01%;
  line-gap-override: 10.39%;
}
@font-face {
  font-family: 'PlexMono-fallback';
  src: local('Courier New');
  size-adjust: 99.98%;
  ascent-override: 102.52%;
  descent-override: 27.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/plexmono-400.woff2?v=3') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/plexmono-500.woff2?v=3') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/plexmono-600.woff2?v=3') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/plexmono-700.woff2?v=3') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans SC';
  src: url('../fonts/notosanssc-500.woff2?v=3') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans SC';
  src: url('../fonts/notosanssc-700.woff2?v=3') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans SC';
  src: url('../fonts/notosanssc-900.woff2?v=3') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans Tamil';
  src: url('../fonts/notosanstamil-500.woff2?v=3') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens -------------------------------------------------------------- */

:root {
  --cream:        #F4EDDC;
  --paper-bright: #FFFDF4;
  --paper-chit:   #FFFCF2;
  --kaya:         #F2B44A;
  --brick:        #A82A1A;
  --chilli:       #C74530;
  --jade:         #0E6B5C;
  --mint:         #8FD6C6;
  --ink:          #3B2314;
  --ink-deep:     #2B1A0F;
  --kopi-black:   #17110C;
  --board-black:  #241A11;
  --kopi-brown:   #4A2B16;
  --crema:        #6B4527;

  --accent: var(--kaya);

  --font-display: 'Tanker', 'Tanker-fallback', 'Impact', sans-serif;
  --font-mono: 'IBM Plex Mono', 'PlexMono-fallback', 'Noto Sans SC', 'Noto Sans Tamil', 'Courier New', monospace;
  --font-zh: 'Noto Sans SC', 'IBM Plex Mono', sans-serif;
  --font-ta: 'Noto Sans Tamil', 'IBM Plex Mono', sans-serif;

  /* content measures */
  --col-text: 720px;
  --col-board: 860px;
  --col-chit: 620px;
  --col-wide: 1120px;

  --pad-x: 20px;
}

/* ---- Reset / base -------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }

img { display: block; max-width: 100%; }

a { color: var(--brick); }
a:hover { color: var(--chilli); }

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 6px var(--brick);
}

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link — visible, designed, on focus */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  background: var(--kopi-black);
  color: var(--cream);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus-visible {
  transform: none;
  color: var(--cream);
}

/* ---- Layout helpers ------------------------------------------------------ */

.wrap {
  width: min(100% - (var(--pad-x) * 2), 560px);
  margin-inline: auto;
}
.wrap--text  { max-width: var(--col-text); }
.wrap--board { max-width: var(--col-board); }
.wrap--chit  { max-width: var(--col-chit); }
.wrap--wide  { max-width: var(--col-wide); }

@media (min-width: 768px) {
  .wrap        { width: min(100% - 96px, 560px); }
  .wrap--text  { width: min(100% - 96px, var(--col-text)); }
  .wrap--board { width: min(100% - 96px, var(--col-board)); }
  .wrap--chit  { width: min(100% - 96px, var(--col-chit)); }
  .wrap--wide  { width: min(100% - 96px, var(--col-wide)); }
}

/* The kopitiam checker strip */
.checker {
  height: 14px;
  background: repeating-conic-gradient(var(--jade) 0 25%, var(--cream) 0 50%);
  background-size: 14px 14px;
}

/* Decorative rings (cup-stain circles) */
.ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  pointer-events: none;
}

/* ---- Type ---------------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.kicker {
  font-size: 0.875rem; /* render 13px, floored up to the 14px label minimum */
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* Red chip with Chinese characters (section stamps) */
.chip-zh {
  display: inline-block;
  background: var(--brick);
  color: var(--cream);
  font-family: var(--font-zh);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 7px 9px;
  letter-spacing: .12em;
}
.chip-zh--jade { background: var(--jade); }
.chip-zh--cream { background: var(--cream); color: var(--brick); }
.chip-zh--bao {
  background: var(--cream);
  color: var(--brick);
  font-weight: 900;
  font-size: 1.125rem;
  letter-spacing: 0;
}

/* Kicker row: chip + small caps label */
.kicker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---- Buttons ------------------------------------------------------------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px 24px;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.btn:active { transform: translateY(2px); }

.btn--kaya { background: var(--accent); color: var(--ink-deep); }
.btn--kaya:hover { color: var(--ink-deep); }
.btn--outline-cream {
  background: transparent;
  border: 2px solid rgba(244, 237, 220, .9);
  color: var(--cream);
}
.btn--outline-cream:hover { color: var(--paper-bright); }
.btn--cream { background: var(--cream); color: var(--brick); }
.btn--cream:hover { color: var(--brick); }
.btn--jade { background: var(--jade); color: var(--cream); font-size: 1.5625rem; letter-spacing: .06em; }
.btn--jade:hover { color: var(--cream); }

.btn--lg { min-height: 60px; font-size: 1.6875rem; }

@media (min-width: 768px) {
  .btn { max-width: 480px; }
  .btn--full { max-width: none; }
}

/* ==========================================================================
   Header — the signboard masthead
   ========================================================================== */

.masthead {
  background: var(--cream);
  border-top: 6px solid var(--brick);
}

.masthead__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px var(--pad-x) 12px;
}

.masthead__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.masthead__brand img { border-radius: 50%; }
.masthead__wordmark {
  font-family: var(--font-display);
  font-size: 1.625rem;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--ink);
  text-transform: uppercase;
}

.masthead__subtitle {
  font-family: var(--font-zh);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .14em;
  color: rgba(59, 35, 20, .75);
}

/* Page chip on sub-pages: 价目 PRICES etc. */
.masthead__page-chip {
  background: var(--brick);
  color: var(--cream);
  font-family: var(--font-zh);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 8px 10px;
  letter-spacing: .1em;
  white-space: nowrap;
}
.masthead__page-chip .en {
  font-family: 'IBM Plex Mono', 'PlexMono-fallback', 'Courier New', monospace;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.masthead__strip {
  padding: 9px var(--pad-x) 11px;
  border-top: 1px solid rgba(59, 35, 20, .25);
  font-size: 0.875rem; /* render 13px, floored up */
  font-weight: 500;
  letter-spacing: .1em;
  color: rgba(59, 35, 20, .75);
  text-transform: uppercase;
}

.masthead__nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(59, 35, 20, .3);
  border-top: 1px solid rgba(59, 35, 20, .25);
}
.masthead__nav a,
.masthead__nav [aria-current="page"] {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.masthead__nav [aria-current="page"] {
  background: var(--brick);
  color: var(--cream);
}

@media (min-width: 768px) {
  .masthead__inner { max-width: var(--col-wide); margin-inline: auto; }
  .masthead__top { padding: 20px 24px 14px; }
  .masthead__brand img { width: 56px; height: 56px; }
  .masthead__wordmark { font-size: 1.875rem; }
  .masthead__subtitle { font-size: 1.0625rem; }
  .masthead__strip { padding: 10px 24px 12px; }
  .masthead__nav a,
  .masthead__nav [aria-current="page"] { min-height: 52px; font-size: 0.9375rem; }
}

/* ==========================================================================
   Bands (full-bleed section grounds)
   ========================================================================== */

.band { position: relative; }
.band--clip { overflow: hidden; }
.band--cream { background: var(--cream); color: var(--ink); }
.band--teal { background: var(--jade); color: var(--cream); }
.band--dark { background: var(--ink); color: var(--cream); }      /* #3B2314 */
.band--deep { background: var(--ink-deep); color: var(--cream); } /* #2B1A0F */
.band--brick { background: var(--brick); color: var(--cream); }

/* ==========================================================================
   Hero (home) — teal ground, kopi cup from above
   ========================================================================== */

.hero { padding: 36px 0 34px; }
.hero .ring--tl { top: -40px; left: -50px; width: 190px; height: 190px; border-width: 10px; border-color: rgba(244, 237, 220, .09); }
.hero .ring--mr { top: 120px; right: -70px; width: 230px; height: 230px; border-width: 12px; border-color: rgba(244, 237, 220, .07); }

.hero__layout { position: relative; }

/* The kopi cup, drawn in CSS — decorative */
.cup {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto;
}
.cup__saucer { position: absolute; inset: 0; border-radius: 50%; background: var(--cream); }
.cup__handle {
  position: absolute;
  top: 46px; right: 2px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 11px solid var(--paper-bright);
  background: var(--jade);
}
.cup__rim { position: absolute; top: 21px; left: 21px; width: 128px; height: 128px; border-radius: 50%; background: var(--paper-bright); }
.cup__kopi { position: absolute; top: 36px; left: 36px; width: 98px; height: 98px; border-radius: 50%; background: var(--kopi-brown); }
.cup__crema { position: absolute; top: 52px; left: 56px; width: 30px; height: 30px; border-radius: 50%; background: var(--crema); }
.cup__spoon { position: absolute; bottom: 14px; left: 6px; width: 76px; height: 11px; border-radius: 6px; background: var(--paper-bright); transform: rotate(-38deg); }
.cup__spoon-bowl { position: absolute; bottom: 34px; left: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--paper-bright); }

.hero__title {
  margin-top: 26px;
  font-size: clamp(3.375rem, 2.5vw + 2.4rem, 5.25rem);
  line-height: .94;
  color: var(--cream);
  text-wrap: balance;
}
.hero__title .accent { color: var(--accent); }

.hero__sub {
  margin-top: 20px;
  font-size: 1.125rem;
  line-height: 1.6;
  text-wrap: pretty;
  color: rgba(244, 237, 220, .95);
  max-width: 60ch;
}
.hero__sub strong { font-weight: 700; color: var(--paper-bright); }

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

@media (min-width: 768px) {
  .hero { padding: 64px 0 60px; }
  .hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 48px;
  }
  .hero__cup-col { order: 2; }
  .cup { margin: 0; }
  .hero__title { margin-top: 0; }
  .hero__ctas { flex-direction: row; }
  .hero__ctas .btn { flex: 1; }
}

@media (min-width: 1440px) {
  .hero { padding: 88px 0 84px; }
  .hero__layout { gap: 72px; }
  .cup { transform: scale(1.35); transform-origin: center; margin: 30px; }
}

/* ==========================================================================
   Proof strip — brick tiles
   ========================================================================== */

.proof {
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border-bottom: 1px solid var(--cream);
  margin: 0;
  padding: 0;
  list-style: none;
}
.proof li {
  background: var(--brick);
  color: var(--cream);
  padding: 14px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .02em;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .proof { grid-template-columns: repeat(4, 1fr); }
  .proof li {
    padding: 18px 20px;
    display: flex;
    align-items: center;
  }
}

/* ==========================================================================
   Welcome strip — four languages, dark ground
   ========================================================================== */

.welcome { padding: 24px 0 26px; }
.welcome__grid {
  /* full-bleed like the proof strip above it — same 20px text inset */
  width: calc(100% - 40px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.welcome p {
  font-size: 1.125rem;
  line-height: 1.55;
  text-wrap: pretty;
  color: rgba(244, 237, 220, .92);
}
.welcome p:first-child { color: var(--cream); }
.welcome p + p {
  padding-top: 14px;
  border-top: 1px dotted rgba(244, 237, 220, .3);
}
.welcome [lang="zh-Hans"] { font-family: var(--font-zh); font-weight: 500; line-height: 1.65; }
.welcome [lang="ta"] { font-family: var(--font-ta); font-weight: 500; line-height: 1.7; }

@media (min-width: 768px) {
  .welcome { padding: 40px 0 44px; }
  .welcome__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
  }
  .welcome p + p { padding-top: 0; border-top: 0; }
  .welcome p:nth-child(n+3) {
    padding-top: 20px;
    border-top: 1px dotted rgba(244, 237, 220, .3);
  }
}

@media (min-width: 1200px) {
  /* four languages across, echoing the four proof tiles above */
  .welcome__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }
  .welcome p:nth-child(n+3) { padding-top: 0; border-top: 0; }
  .welcome p:not(:last-child) { padding-right: 36px; }
  .welcome p + p {
    border-left: 1px dotted rgba(244, 237, 220, .3);
    padding-left: 36px;
  }
}

/* ==========================================================================
   Search-your-shop (the problem) — cream ground
   ========================================================================== */

.problem { padding: 40px 0 36px; }
.problem .ring--tr { top: 14px; right: -60px; width: 200px; height: 200px; border-width: 9px; border-color: rgba(74, 43, 22, .08); }

.problem__title {
  margin-top: 14px;
  font-size: clamp(2.75rem, 1.8vw + 2.1rem, 4rem);
  line-height: .95;
  color: var(--ink);
  text-wrap: balance;
}
.problem__title .accent { color: var(--jade); }

.problem__lead {
  margin-top: 24px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
}

.x-list {
  margin-top: 10px;
  border-bottom: 1px solid rgba(59, 35, 20, .3);
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}
.x-list li {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid rgba(59, 35, 20, .3);
  font-size: 1.125rem;
  line-height: 1.5;
  text-wrap: pretty;
}
.x-list .x {
  font-weight: 700;
  color: var(--brick);
}

.problem__closer {
  margin-top: 26px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9375rem, 1.2vw + 1.625rem, 2.75rem);
  line-height: 1.04;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
.problem__closer .accent { color: var(--brick); }

@media (min-width: 768px) {
  .problem { padding: 64px 0 60px; }
}

/* ==========================================================================
   What you get — teal checklist
   ========================================================================== */

.get { padding: 38px 0 34px; }
.get__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.get__title {
  font-size: clamp(2.5rem, 1.6vw + 1.9rem, 3.625rem);
  line-height: .95;
  color: var(--cream);
}

.check-list {
  margin: 18px 0 0;
  padding: 0;
  border-bottom: 1px solid rgba(244, 237, 220, .3);
  list-style: none;
}
.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 0;
  border-top: 1px solid rgba(244, 237, 220, .3);
  font-size: 1.125rem;
  line-height: 1.5;
  text-wrap: pretty;
  color: rgba(244, 237, 220, .96);
}
.check-list .tick {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--accent);
}

@media (min-width: 768px) {
  .get { padding: 64px 0 60px; }
  .check-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
  }
}

/* ==========================================================================
   The blackboard price board
   ========================================================================== */

.board-section { padding: 34px 0 32px; }
.board-section .wrap { --pad-x: 14px; }

.board {
  background: var(--board-black);
  background-image: repeating-linear-gradient(180deg, rgba(0, 0, 0, .4) 0 2px, rgba(255, 255, 255, 0) 2px 36px);
  padding: 10px;
}
.board__frame {
  border: 2px solid rgba(244, 237, 220, .35);
  padding: 0 16px 16px;
}

.board__plaque-row {
  display: flex;
  justify-content: center;
  margin-top: -1px;
}
.board__plaque {
  background: var(--brick);
  color: var(--cream);
  padding: 12px 18px 13px;
  text-align: center;
  box-shadow: inset 0 0 0 2px rgba(244, 237, 220, .5);
}
.board__plaque .en {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.875rem;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.board__plaque .zh {
  display: block;
  margin-top: 6px;
  font-family: var(--font-zh);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1;
  letter-spacing: .3em;
}

.board__rows { margin-top: 16px; }
.board-row__leader {
  flex: 1 1 24px;
  min-width: 24px;
  border-bottom: 3px dotted rgba(244, 237, 220, .4);
  transform: translateY(-5px);
}
.board__cta { margin-top: 10px; max-width: none; }

/* Full board tiers (prices page) */
.board__frame--prices { padding-bottom: 20px; }
.tier {
  padding: 18px 0 20px;
  border-bottom: 1px solid rgba(244, 237, 220, .2);
}
.tier:last-child { border-bottom-color: rgba(244, 237, 220, .35); }
.tier__kicker {
  font-size: 0.875rem; /* render 13px, floored up */
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--mint);
  text-transform: uppercase;
}
.tier__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 9px;
  flex-wrap: wrap;
}
.tier__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: .01em;
  color: var(--paper-bright);
  text-transform: uppercase;
}
.tier__price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2.0625rem;
  line-height: 1;
  white-space: nowrap;
  color: var(--accent);
}
.tier__desc {
  margin-top: 10px;
  font-size: 1.125rem;
  line-height: 1.55;
  text-wrap: pretty;
  color: rgba(244, 237, 220, .8);
}

@media (min-width: 768px) {
  .board-section { padding: 56px 0 52px; }
  .board__frame { padding: 0 28px 24px; }
  .tier {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 36px;
    align-items: start;
  }
  .tier__kicker { grid-column: 1 / -1; }
  .tier__row { align-content: start; }
  .tier__desc { margin-top: 9px; grid-column: 2; grid-row: 2 / 4; }
  .tier__row { grid-column: 1; grid-row: 2; }
}

/* Side board (add-ons) */
.sideboard-wrap { margin-top: 14px; }
.sideboard {
  background: var(--board-black);
  background-image: repeating-linear-gradient(180deg, rgba(0, 0, 0, .4) 0 2px, rgba(255, 255, 255, 0) 2px 36px);
  padding: 8px;
}
.sideboard__frame {
  border: 1px solid rgba(244, 237, 220, .3);
  padding: 0 14px 18px;
}
.sideboard__plaque-row { display: flex; margin-top: -1px; }
.sideboard__plaque {
  background: var(--jade);
  color: var(--cream);
  padding: 9px 12px 10px;
  box-shadow: inset 0 0 0 2px rgba(244, 237, 220, .4);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.sideboard__plaque .en {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1875rem;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.sideboard__plaque .zh {
  font-family: var(--font-zh);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: .2em;
}

.sideboard__group { margin-top: 16px; }
.sideboard__group + .sideboard__group {
  margin-top: 18px;
  border-top: 1px solid rgba(244, 237, 220, .3);
  padding-top: 14px;
}
.sideboard__label {
  font-size: 0.875rem; /* render 12.5px, floored up */
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--mint);
  text-transform: uppercase;
}

.addon {
  padding: 11px 0 13px;
  border-bottom: 1px dotted rgba(244, 237, 220, .25);
}
.addon:last-child { border-bottom: 0; padding-bottom: 0; }
.addon__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.addon__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.1;
  letter-spacing: .01em;
  color: rgba(255, 253, 244, .92);
  text-transform: uppercase;
}
.addon__leader {
  flex: 1 1 20px;
  min-width: 20px;
  border-bottom: 2px dotted rgba(244, 237, 220, .35);
  transform: translateY(-5px);
}
.addon__price {
  font-weight: 700;
  font-size: 1.3125rem;
  line-height: 1;
  white-space: nowrap;
  color: var(--accent);
  text-transform: uppercase;
}
.addon__price small {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(244, 237, 220, .75);
}
.addon__price--quote { font-size: 1rem; line-height: 1.3; }
.addon__desc {
  margin-top: 7px;
  font-size: 1.125rem;
  line-height: 1.5;
  text-wrap: pretty;
  color: rgba(244, 237, 220, .75);
}

/* First add-on group sits directly under the plaque with no top rule */
.sideboard__group--first .addon { padding-top: 0; border-bottom: 0; }
.sideboard__group--first .addon__row { margin-top: 8px; }

@media (min-width: 768px) {
  .sideboard__frame { padding: 0 24px 22px; }
  .addon {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 36px;
  }
  .addon__row { grid-column: 1; align-content: start; }
  .addon__desc { grid-column: 2; margin-top: 2px; }
  .sideboard__group--first .addon { display: block; }
}

/* Kaya note under the boards */
.board-note {
  margin-top: 14px;
  background: var(--accent);
  padding: 16px 18px;
}
.board-note p {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.55;
  text-wrap: pretty;
  color: var(--ink-deep);
}

/* Prices header band (teal, after the checker) */
.prices-hero { padding: 32px 0 36px; }
.prices-hero .ring--tr { top: -50px; right: -60px; width: 210px; height: 210px; border-width: 11px; border-color: rgba(244, 237, 220, .09); }
.prices-hero .kicker { color: rgba(244, 237, 220, .9); }
.prices-hero__title {
  margin-top: 12px;
  font-size: clamp(3.375rem, 2.5vw + 2.4rem, 5.25rem);
  line-height: .94;
  color: var(--cream);
  position: relative;
}
.prices-hero__title .accent { color: var(--accent); }
.prices-intro {
  margin-top: 14px;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.55;
  text-wrap: pretty;
  color: rgba(244, 237, 220, .95);
  max-width: 60ch;
  position: relative;
}

@media (min-width: 768px) {
  .prices-hero { padding: 48px 0 50px; }
}

/* ==========================================================================
   The order chit
   ========================================================================== */

.chit {
  background: var(--paper-chit);
  border: 1px solid rgba(59, 35, 20, .2);
  border-top: 2px dashed rgba(59, 35, 20, .35);
  border-bottom: 2px dashed rgba(59, 35, 20, .35);
  padding: 18px 18px 20px;
  transform: rotate(-.6deg);
  position: relative;
}
.chit__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.875rem; /* render 12.5px, floored up */
  font-weight: 600;
  letter-spacing: .16em;
  color: rgba(59, 35, 20, .6);
  border-bottom: 1px solid rgba(59, 35, 20, .2);
  padding-bottom: 10px;
  text-transform: uppercase;
}
.chit__head .zh { font-family: var(--font-zh); font-weight: 700; letter-spacing: .2em; }

/* Numbered steps (how it works) */
.chit__steps {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.chit__steps li { display: contents; }
.chit__steps .num {
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1;
  color: var(--jade);
  padding-top: 15px;
}
.chit__steps .step {
  font-size: 1.125rem;
  line-height: 1.5;
  padding: 15px 0 14px;
  border-bottom: 1px solid rgba(59, 35, 20, .15);
  text-wrap: pretty;
}
.chit__steps li:last-child .step { border-bottom: 0; }

.chit__total {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-top: 1px solid rgba(59, 35, 20, .2);
  padding-top: 12px;
}
.chit__total .label,
.chit__total .value {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.chit__total .value { letter-spacing: .06em; }
.chit__total .leader {
  flex: 1;
  border-bottom: 2px dotted rgba(59, 35, 20, .35);
  transform: translateY(-4px);
}

/* The payment line beside the TOTAL */
.chit__payment {
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(59, 35, 20, .75);
  text-wrap: pretty;
}

/* Open-door chit (prices page) */
.chit--note { padding: 16px 18px 18px; margin-top: 16px; }
.chit--note .chit__head { padding-bottom: 9px; }
.chit--note p {
  margin-top: 12px;
  font-size: 1.125rem;
  line-height: 1.6;
  text-wrap: pretty;
  color: var(--ink);
}
.chit--note a { font-weight: 700; color: var(--brick); }

.how { padding: 38px 0 36px; }
.how .ring--bl { bottom: -70px; left: -40px; width: 210px; height: 210px; border-width: 10px; border-color: rgba(74, 43, 22, .08); }
.how__head { display: flex; align-items: center; gap: 10px; }
.how__title {
  font-size: clamp(2.5rem, 1.6vw + 1.9rem, 3.625rem);
  line-height: .95;
  color: var(--ink);
}
.how .chit { margin-top: 20px; }

@media (min-width: 768px) {
  .how { padding: 64px 0 60px; }
  .how .chit { max-width: var(--col-chit); }
}

/* ==========================================================================
   About strip (home) + about page
   ========================================================================== */

.owner { padding: 38px 0 40px; }
.owner__head { display: flex; align-items: center; gap: 10px; }
.owner__title {
  font-size: clamp(2.5rem, 1.6vw + 1.9rem, 3.625rem);
  line-height: .95;
  color: var(--cream);
}

picture { display: contents; }
.photo { display: block; object-fit: cover; background: #C7C0B2; }
.photo--home { width: 140px; height: 175px; margin-top: 22px; }
.photo--about { width: 100%; height: auto; }

.owner__lead {
  margin-top: 20px;
  font-size: 1.1875rem;
  line-height: 1.6;
  text-wrap: pretty;
  color: rgba(244, 237, 220, .95);
}
.owner__more {
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(244, 237, 220, .7);
}
.owner__more a { color: var(--accent); font-weight: 600; }
.owner__more a:hover { color: var(--accent); }

@media (min-width: 768px) {
  .owner { padding: 64px 0 60px; }
  .owner__layout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px 40px;
    align-items: center;
    margin-top: 22px;
  }
  .photo--home { margin-top: 0; }
  .owner__lead { margin-top: 0; }
}

/* Personal paragraphs */
.about-personal { padding: 26px 0 0; }
.about-personal p {
  font-size: 1.125rem;
  line-height: 1.6;
  text-wrap: pretty;
  max-width: 70ch;
}
.about-personal p + p { margin-top: 14px; }

@media (min-width: 768px) {
  .about-personal { padding: 32px 0 0; }
}

/* About page hero */
.about-hero { padding: 38px 0 36px; }
.about-hero .ring--tr { top: -50px; right: -60px; width: 210px; height: 210px; border-width: 11px; border-color: rgba(244, 237, 220, .09); }
.about-hero .ring--bl { bottom: -80px; left: -50px; width: 190px; height: 190px; border-width: 9px; border-color: rgba(244, 237, 220, .07); }
.about-hero__title {
  font-size: clamp(3.375rem, 2.5vw + 2.4rem, 5.25rem);
  line-height: .94;
  color: var(--cream);
  text-wrap: balance;
}
.about-hero__title .accent { color: var(--accent); }
.about-hero__sub {
  margin-top: 20px;
  font-size: 1.1875rem;
  line-height: 1.6;
  text-wrap: pretty;
  color: rgba(244, 237, 220, .95);
}

/* About photo block */
.about-photo { padding: 34px 0 8px; }
.about-photo .ring--tr { top: 20px; right: -70px; width: 200px; height: 200px; border-width: 9px; border-color: rgba(74, 43, 22, .08); }
.about-photo__layout { position: relative; }
.about-photo__layout .chip-zh {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font-size: 0.9375rem;
  padding: 8px 10px;
}

/* Why blocks */
.about-why { padding: 26px 0 30px; }
.why-block { border-top: 1px solid rgba(59, 35, 20, .3); padding: 24px 0 26px; }
.why-block:last-child { padding-bottom: 6px; }
.why-block__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.why-block .chip-zh { font-size: 0.875rem; padding: 6px 9px; }
.why-block__title {
  font-size: clamp(1.9375rem, 1vw + 1.6rem, 2.625rem);
  line-height: .98;
  color: var(--ink);
  text-wrap: balance;
}
.why-block p {
  margin-top: 14px;
  font-size: 1.125rem;
  line-height: 1.6;
  text-wrap: pretty;
  max-width: 70ch;
}

@media (min-width: 768px) {
  .about-hero { padding: 64px 0 60px; }
  .about-photo { padding: 56px 0 8px; }
  .about-why { padding: 32px 0 48px; }
}

/* Don't-do board */
.dont { padding: 36px 0; }
.dont__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dont .chip-zh { font-size: 0.875rem; padding: 6px 9px; }
.dont__title {
  font-size: clamp(2.125rem, 1.2vw + 1.8rem, 3rem);
  line-height: .98;
  color: var(--cream);
}
.dont__board {
  margin-top: 18px;
  border: 1px solid rgba(244, 237, 220, .25);
  padding: 6px 16px;
  list-style: none;
}
.dont__board li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(244, 237, 220, .15);
}
.dont__board li:last-child { border-bottom: 0; }
.dont__board .struck {
  font-family: var(--font-display);
  font-size: 1.8125rem;
  line-height: 1;
  color: rgba(244, 237, 220, .85);
  text-decoration: line-through;
  text-decoration-color: #D4553F;
  text-decoration-thickness: 4px;
  text-transform: uppercase;
}
.dont__note {
  margin-top: 18px;
  font-size: 1.125rem;
  line-height: 1.6;
  text-wrap: pretty;
  color: rgba(244, 237, 220, .92);
  max-width: 70ch;
}
.dont__note .accent { color: var(--accent); font-weight: 700; }
.dont__note a { color: var(--accent); font-weight: 700; }
.dont__note a:hover { color: var(--accent); }
.dont__note strong { color: var(--paper-bright); }

@media (min-width: 768px) {
  .dont { padding: 56px 0; }
}

/* CTA band (teal, WhatsApp) */
.cta-band { padding: 32px 0 30px; }
.cta-band .btn { margin-inline: auto; }
.cta-band__phone {
  margin-top: 14px;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.4;
}
.cta-band__phone a {
  color: var(--paper-bright);
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration-color: rgba(244, 237, 220, .5);
  text-underline-offset: 4px;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 8px;
}
.cta-band__phone a:hover { color: var(--paper-bright); }

@media (min-width: 768px) {
  .cta-band { padding: 48px 0 44px; }
}

/* ==========================================================================
   FAQ signpost (home) — brick band
   ========================================================================== */

.faq-signpost { padding: 32px 0 34px; }
.faq-signpost .kicker { color: rgba(244, 237, 220, .9); }
.faq-signpost__title {
  margin-top: 12px;
  font-size: clamp(2.375rem, 1.5vw + 1.85rem, 3.5rem);
  line-height: .95;
  color: var(--cream);
  text-wrap: balance;
}
.faq-signpost__sub {
  margin-top: 14px;
  font-size: 1.125rem;
  line-height: 1.6;
  text-wrap: pretty;
  color: rgba(244, 237, 220, .95);
}
.faq-signpost .btn { margin-top: 22px; }

@media (min-width: 768px) {
  .faq-signpost { padding: 56px 0 52px; }
}

/* ==========================================================================
   FAQ page — accordion
   ========================================================================== */

/* FAQ header band (brick, after the checker — echoes the home signpost) */
.faq-hero { padding: 32px 0 34px; }
.faq-hero .kicker { color: rgba(244, 237, 220, .9); }
.faq-hero__title {
  margin-top: 12px;
  font-size: clamp(3.375rem, 2.5vw + 2.4rem, 5.25rem);
  line-height: .94;
  color: var(--cream);
  text-wrap: balance;
}
.faq-hero__title .accent { color: var(--accent); }

.faq-page { padding: 12px 0 40px; }
.faq-page .ring--tr { top: -60px; right: -60px; width: 200px; height: 200px; border-width: 10px; border-color: rgba(74, 43, 22, .08); }

.faq-list {
  margin-top: 20px;
  border-bottom: 1px solid rgba(59, 35, 20, .3);
}
.faq-item { border-top: 1px solid rgba(59, 35, 20, .3); }
.faq-item__button {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 15px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-mono);
  color: var(--ink);
}
.faq-item__num {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.15;
  color: var(--jade);
  min-width: 34px;
}
.faq-item__q {
  flex: 1;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.45;
  text-wrap: pretty;
}
.faq-item__mark {
  font-family: var(--font-display);
  font-size: 1.625rem;
  line-height: 1;
  color: var(--brick);
  padding-top: 1px;
}
.faq-item__panel { padding: 2px 0 22px 48px; }
/* With JS available (html.js set before first paint by boot.js) the panels
   start collapsed — no post-paint shift. Without JS they stay readable. */
html.js .faq-item__panel { display: none; }
html.js .faq-item__panel--open { display: block; }
.faq-item__panel p {
  font-size: 1.125rem;
  line-height: 1.6;
  text-wrap: pretty;
  color: var(--ink);
}

.faq-page__more {
  margin-top: 22px;
  font-size: 1.125rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.faq-page__more a { font-weight: 700; color: var(--brick); }

@media (min-width: 768px) {
  .faq-hero { padding: 48px 0 46px; }
  .faq-hero .wrap { max-width: 780px; }
  .faq-page { padding: 20px 0 64px; }
  .faq-page .wrap { max-width: 780px; }
  .faq-item__panel { padding-left: 48px; }
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-hero { padding: 38px 0 36px; }
.contact-hero .ring--tr { top: -50px; right: -60px; width: 210px; height: 210px; border-width: 11px; border-color: rgba(244, 237, 220, .09); }
.contact-hero__title {
  font-size: clamp(3.625rem, 2.6vw + 2.6rem, 5.5rem);
  line-height: .94;
  color: var(--cream);
}
.contact-hero__title .accent { color: var(--accent); }
.contact-hero p {
  margin-top: 14px;
  font-size: 1.125rem;
  line-height: 1.6;
  text-wrap: pretty;
  color: rgba(244, 237, 220, .95);
  max-width: 60ch;
}
.contact-hero p:first-of-type { margin-top: 20px; }
.contact-hero [lang="zh-Hans"] { font-family: var(--font-zh); font-weight: 500; }
.contact-hero [lang="ta"] { font-family: var(--font-ta); font-weight: 500; }
.contact-hero .languages { line-height: 1.65; }

.contact-hero__actions { margin-top: 26px; }
.contact-hero__line {
  margin-top: 14px;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.4;
}
.contact-hero__line + .contact-hero__line { margin-top: 4px; }
.contact-hero__line a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 8px;
  text-underline-offset: 4px;
}
.contact-hero__line .tel {
  color: var(--paper-bright);
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration-color: rgba(244, 237, 220, .5);
}
.contact-hero__line .tel:hover { color: var(--paper-bright); }
.contact-hero__line .mail {
  color: var(--mint);
  font-weight: 500;
  text-decoration-color: rgba(143, 214, 198, .5);
  overflow-wrap: anywhere;
}
.contact-hero__line .mail:hover { color: var(--mint); }

@media (min-width: 768px) {
  .contact-hero { padding: 64px 0 60px; }
  .contact-hero__actions { max-width: 480px; }
  .contact-hero__actions .btn { max-width: none; }
}

/* The chit form */
.contact-form-section { padding: 36px 0 42px; }
.contact-form-section .ring--br { bottom: -70px; right: -50px; width: 200px; height: 200px; border-width: 9px; border-color: rgba(74, 43, 22, .08); }
.contact-form-section .kicker { color: var(--jade); }
.contact-form-section .chit { margin-top: 18px; padding: 18px 18px 22px; }

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.field input,
.field textarea {
  min-height: 48px;
  border: 1px solid rgba(59, 35, 20, .45);
  background: var(--paper-bright);
  padding: 10px 12px;
  font-family: 'IBM Plex Mono', 'PlexMono-fallback', 'Courier New', monospace;
  font-size: 1.125rem;
  color: var(--ink);
  border-radius: 0;
}
.field textarea { min-height: 110px; line-height: 1.5; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(59, 35, 20, .55); opacity: 1; }
.field input:focus,
.field textarea:focus {
  box-shadow: none;
  outline: 3px solid var(--jade);
  outline-offset: 2px;
}

.form-alert {
  border: 2px solid var(--brick);
  background: #FBEFE9;
  padding: 13px 14px;
}
.form-alert p {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  text-wrap: pretty;
  color: #8C2113;
}
.form-alert a { color: #8C2113; }
.form-alert .nowrap { white-space: nowrap; }

.form-success {
  margin-top: 16px;
  padding: 26px 4px 10px;
  text-align: center;
}
.form-success__stamp {
  width: 74px;
  height: 74px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid var(--jade);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
}
.form-success__stamp span {
  font-family: var(--font-zh);
  font-weight: 900;
  font-size: 1.875rem;
  line-height: 1;
  color: var(--jade);
}
.form-success__title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 1.9375rem;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--jade);
  text-transform: uppercase;
}
.form-success p {
  margin-top: 12px;
  font-size: 1.125rem;
  line-height: 1.6;
  text-wrap: pretty;
  color: var(--ink);
}

@media (min-width: 768px) {
  .contact-form-section { padding: 56px 0 64px; }
  .contact-form-section .chit { max-width: 560px; }
}

/* ==========================================================================
   404
   ========================================================================== */

.notfound { padding: 44px 0 46px; }
.notfound .ring--tr { top: -50px; right: -60px; width: 210px; height: 210px; border-width: 11px; border-color: rgba(244, 237, 220, .09); }
.notfound .ring--bl { bottom: -80px; left: -50px; width: 190px; height: 190px; border-width: 9px; border-color: rgba(244, 237, 220, .07); }

.spill {
  position: relative;
  width: 190px;
  height: 150px;
  margin: 0 auto;
}
.spill__puddle { position: absolute; top: 104px; left: 8px; width: 150px; height: 34px; border-radius: 50%; background: var(--kopi-brown); }
.spill__drip { position: absolute; top: 112px; left: 150px; width: 34px; height: 14px; border-radius: 7px; background: var(--kopi-brown); }
.spill__cup { position: absolute; top: 30px; left: 34px; width: 110px; height: 74px; background: var(--cream); border-radius: 8px 8px 46px 46px; transform: rotate(-64deg); }
.spill__handle { position: absolute; top: 26px; left: 118px; width: 30px; height: 30px; border-radius: 50%; border: 11px solid var(--cream); transform: rotate(-20deg); }

.notfound__code {
  margin-top: 26px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: .9;
  letter-spacing: .02em;
  color: var(--cream);
}
.notfound__title {
  margin-top: 14px;
  text-align: center;
  font-size: clamp(2.5rem, 1.6vw + 1.9rem, 3.5rem);
  line-height: .98;
  color: var(--accent);
  text-wrap: balance;
}
.notfound__sub {
  margin-top: 18px;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.6;
  text-wrap: pretty;
  color: rgba(244, 237, 220, .95);
}
.notfound__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.notfound__ctas .btn--lg { font-size: 1.625rem; }
.notfound__ctas .btn--outline-cream { font-size: 1.4375rem; }

@media (min-width: 768px) {
  .notfound { padding: 80px 0 84px; }
  .notfound .wrap { max-width: 640px; }
  .notfound__ctas { flex-direction: row; justify-content: center; }
  .notfound__ctas .btn { flex: 1; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--kopi-black);
  border-top: 6px solid var(--brick);
  color: var(--cream);
  padding: 34px 0 28px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.footer__brand { min-width: 0; }
.footer__brand-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.footer__wordmark {
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--accent);
  text-transform: uppercase;
}
.footer__subtitle {
  font-family: var(--font-zh);
  font-weight: 700;
  font-size: 1rem;
  color: rgba(244, 237, 220, .8);
  letter-spacing: .14em;
}
.footer__meta {
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(244, 237, 220, .82);
}
.footer__badge { flex: none; border-radius: 50%; }

.footer__ctas {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.footer__ctas .btn {
  flex: 1;
  min-height: 54px;
  font-size: 1.375rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  margin-top: 12px;
  margin-left: -10px;
}
.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 10px;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer__nav a:hover { color: var(--cream); }

.footer__strip {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(244, 237, 220, .2);
  font-size: 0.875rem; /* render 13px, floored up */
  font-weight: 500;
  letter-spacing: .1em;
  color: rgba(244, 237, 220, .65);
  text-transform: uppercase;
}
.footer__belief {
  margin-top: 14px;
  font-size: 0.875rem;
  line-height: 1.6;
  text-wrap: pretty;
  color: rgba(244, 237, 220, .68);
}

/* Slim footer (about page, 404) */
.footer--slim { padding: 30px 0 28px; }
.footer--slim .footer__top { align-items: center; }
.footer--slim .footer__meta { margin-top: 0; }
.footer--slim .footer__strip { padding-top: 12px; }

@media (min-width: 768px) {
  .footer { padding: 48px 0 36px; }
  .footer__ctas { max-width: 480px; }
}

/* ==========================================================================
   Logo sheet (/logo/ — internal brand reference)
   ========================================================================== */

.logosheet-header {
  background: var(--cream);
  border-top: 6px solid var(--brick);
  padding: 16px var(--pad-x) 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.logosheet-header h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.875rem;
  line-height: 1;
  color: var(--ink);
  text-transform: uppercase;
}
.logosheet-header .label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: rgba(59, 35, 20, .75);
  text-transform: uppercase;
}

.logosheet { padding-bottom: 48px; }
.logosheet__hero {
  background: var(--brick);
  padding: 44px var(--pad-x);
  display: flex;
  justify-content: center;
}
.logosheet section { padding: 30px 0 0; }
.logosheet .label {
  font-size: 0.875rem; /* render 13px, floored up */
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--jade);
  text-transform: uppercase;
}
.logosheet p {
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(59, 35, 20, .75);
}
.logosheet p.lede {
  margin-top: 0;
  font-size: 1.125rem;
  line-height: 1.6;
  text-wrap: pretty;
  color: var(--ink);
}
.logosheet .row {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  align-items: center;
}
.logosheet .row--end { align-items: flex-end; }
.logosheet .stack { display: flex; flex-direction: column; gap: 10px; }
.logosheet .round { border-radius: 50%; }
.logosheet .outlined { box-shadow: 0 0 0 1px rgba(59, 35, 20, .25); }

.logosheet .alt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.logosheet .alt-grid figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.logosheet .alt-grid img { width: 100%; height: auto; }
.logosheet .alt-grid figcaption {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.logosheet .lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  background: var(--cream);
  border: 1px solid rgba(59, 35, 20, .25);
  padding: 18px 16px;
}
.logosheet .lockup--dark { background: var(--kopi-black); border: 0; margin-top: 12px; }
.logosheet .lockup .name {
  font-family: var(--font-display);
  font-size: 2.125rem;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--ink);
  text-transform: uppercase;
}
.logosheet .lockup--dark .name { color: var(--kaya); }

.logosheet .files { margin-top: 12px; border-bottom: 1px solid rgba(59, 35, 20, .25); }
.logosheet .files div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(59, 35, 20, .25);
  font-size: 0.9375rem;
}
.logosheet .files .file { font-weight: 600; overflow-wrap: anywhere; }
.logosheet .files .use { color: rgba(59, 35, 20, .7); text-align: right; }

@media (min-width: 768px) {
  .logosheet .alt-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Motion — second pass.
   One orchestrated moment per page; scroll-driven CSS only; no libraries,
   no JS scroll listeners. Every rule that moves lives inside
   prefers-reduced-motion: no-preference — the reduced path is the static
   design itself, which is complete on its own. The button press-down state
   remains for everyone (instant under reduced motion).
   ========================================================================== */

/* Registered so the colour journey can interpolate it */
@property --accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #F2B44A;
}

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

  /* Cross-document view transitions — progressive enhancement.
     Unsupported browsers and reduced-motion users get plain navigation. */
  @view-transition { navigation: auto; }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 220ms;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Buttons — 2px press-down, 120ms, no bounce */
  .btn { transition: transform 120ms cubic-bezier(0.4, 0, 0.2, 1); }

  /* FAQ accordion — the answer fades in on open; closing is instant */
  .faq-item__panel--open {
    transition:
      opacity 220ms cubic-bezier(0.4, 0, 0.2, 1),
      transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  @starting-style {
    .faq-item__panel--open {
      opacity: 0;
      transform: translateY(-6px);
    }
  }

  /* 404 — the drip from the render, ambient */
  @keyframes drip {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
  }
  .spill__drip { animation: drip 2.2s ease-in-out infinite; }

  /* Colour journey — the board paint deepens from kaya toward burnt
     orange as the page scrolls, on the registered --accent property. */
  @supports (animation-timeline: scroll()) {
    @keyframes accent-journey {
      from { --accent: #F2B44A; }
      to   { --accent: #E08A2E; }
    }
    html {
      animation: accent-journey linear both;
      animation-timeline: scroll(root);
    }
  }

  /* Reveals — translateY(16px) + fade, entry 0% to entry 60%.
     The proof strip is the staggered moment (4 tiles); scroll timelines
     have no time-based delays, so the 60ms stagger becomes 8% range
     steps. Everything else rises alone. */
  @supports (animation-timeline: view()) {
    @keyframes rise-in {
      from { opacity: 0; transform: translateY(16px); }
    }
    /* The chit keeps its rotation while rising */
    @keyframes rise-in-chit {
      from { opacity: 0; transform: translateY(16px) rotate(-.6deg); }
    }
    .reveal,
    .proof li {
      animation: rise-in cubic-bezier(0.22, 1, 0.36, 1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
    .chit.reveal { animation-name: rise-in-chit; }
    .proof li:nth-child(2) { animation-range: entry 8% entry 68%; }
    .proof li:nth-child(3) { animation-range: entry 16% entry 76%; }
    .proof li:nth-child(4) { animation-range: entry 24% entry 84%; }
  }
}

/* Print never sees scroll timelines — everything on paper, fully visible.
   animation: none alone restores the static design (the hidden from-state
   exists only inside the keyframes), so nothing else is reset — the chit
   keeps its tilt. FAQ answers always print in full. */
@media print {
  .reveal,
  .proof li { animation: none !important; }
  .faq-item__panel { display: block !important; }
}
