/* Atra: design direction B ("Monograph"). Tokens live here and nowhere else. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/newsreader-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/newsreader-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); }

:root {
  --stone: #EEEBE4;
  --ink: #1F1D1A;
  --green: #0F5132;          /* the one accent: buttons, links, focus. 7.9:1 on stone */
  --green-dark: #0B3D26;
  --muted: #5C5952;          /* secondary text. 5.9:1 on stone */
  --panel: #E5E1D8;          /* tint of stone, for the form panel */
  --error: #8A1C12;          /* form errors only. 7.1:1 on panel */
  --hair: 1px solid #CBC6BA;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --side: 16px;
  --section: 88px;
  --measure: 680px;
  --margin-col: 0px;         /* hanging column for numerals on wide screens */
}
@media (min-width: 768px)  { :root { --side: 40px; --section: 120px; } }
@media (min-width: 1100px) { :root { --section: 152px; --margin-col: 160px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--stone); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 19px; } }
a { color: var(--green); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
[hidden] { display: none !important; }

.frame { max-width: 1200px; margin: 0 auto; padding: 0 var(--side); }
.col { max-width: var(--measure); margin-left: var(--margin-col); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--stone); padding: 8px 12px; z-index: 1; }
.skip:focus { left: 8px; }

.eyebrow { font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--muted); margin: 0 0 20px; }

/* Header */
.site-header { padding: 24px 0; }
.site-header .frame { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.wordmark { font-family: var(--serif); font-size: 26px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.head-link { font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.head-link:hover { color: var(--green); }

/* Hero */
.hero { padding: 64px 0 var(--section); }
@media (min-width: 1100px) { .hero { padding-top: 104px; } }
.audience { font-size: clamp(18px, 1.8vw, 23px); font-weight: 500; letter-spacing: .01em; line-height: 1.3; color: var(--green); margin: 0 0 24px; }
h1 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 5.4vw, 68px); line-height: 1.05; letter-spacing: -.02em; max-width: 17ch;
}
h1 em, h2 em { font-style: italic; }
.lede { margin: 32px 0 40px; font-size: 19px; max-width: 30em; }
@media (min-width: 768px) { .lede { font-size: 21px; } }
.lede strong { font-weight: 500; }
.reply-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

.button {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 54px; padding: 0 24px; border: 0; border-radius: 0;
  background: var(--green); color: #FFFFFF;
  font: 500 17px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.button:hover { background: var(--green-dark); }
.button[disabled] { opacity: .7; cursor: progress; }

/* Sections */
.block { padding-bottom: var(--section); }
.statement { margin: 0; font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); line-height: 1.25; letter-spacing: -.01em; }
.statement + .statement { margin-top: .8em; color: var(--muted); }
h2 { margin: 0 0 40px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.015em; }
.section-intro { margin: -16px 0 36px; color: var(--muted); }

/* Numbered lists: numerals hang in the left margin on wide screens */
.steps, .examples { list-style: none; margin: 0; padding: 0; }
.num { display: block; font-family: var(--serif); color: var(--green); line-height: 1; }

.steps li { position: relative; padding: 0 0 48px; }
.steps li:last-child { padding-bottom: 0; }
.steps .num { font-size: 56px; margin-bottom: 12px; }
.steps h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; }
.steps p { margin: 0; color: var(--muted); }

.examples > li { position: relative; padding: 28px 0 32px; border-top: var(--hair); }
.examples > li:last-child { border-bottom: var(--hair); }
.examples .num { font-size: 22px; margin-bottom: 10px; }
.examples h3 { margin: 0 0 4px; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; }
.examples .tools { margin: 0 0 10px; font-size: 15px; font-weight: 500; color: var(--muted); }
.examples p { margin: 10px 0 0; }
.examples .aside { color: var(--muted); }
.examples q { quotes: "\201C" "\201D"; font-style: italic; font-family: var(--serif); font-size: 1.08em; }
.after-list { margin: 32px 0 0; }
.after-list + .after-list { margin-top: 16px; color: var(--muted); font-size: 17px; }

@media (min-width: 1100px) {
  .steps .num { position: absolute; left: calc(-1 * var(--margin-col)); top: -6px; font-size: 72px; margin: 0; }
  .examples .num { position: absolute; left: calc(-1 * var(--margin-col)); top: 30px; font-size: 40px; margin: 0; }
}

.data .statement { font-size: clamp(24px, 2.6vw, 30px); }

/* Team background: a band of logos that drifts sideways without stopping (owner decision,
   2026-10-11: no pause control). People who ask their system for reduced motion get a still row. */
.experience { border-top: var(--hair); border-bottom: var(--hair); padding: 28px 0 36px; margin-bottom: var(--section); }
.experience .eyebrow { margin: 0 0 28px; }
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: drift 60s linear infinite; }
.marquee ul { display: flex; align-items: flex-start; list-style: none; margin: 0; padding: 0; }
/* Each organisation: its mark in its own colours with a short name below. Wordmarks carry
   their own name; organisations without a usable mark are set as text in the same box. */
.org { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-right: 64px; }
.org img { display: block; width: auto; height: var(--logo-h, 52px); margin: calc((52px - var(--logo-h, 52px)) / 2) 0; }
.org span { font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.logo-eureka { --logo-h: 24px; }
.logo-hsinyieh { --logo-h: 34px; }
.org-text { justify-content: center; height: 52px; font-family: var(--serif); font-size: 24px; line-height: 1; white-space: nowrap; }
@media (max-width: 767px) {
  .org { margin-right: 44px; }
}
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; width: auto; }
  .marquee ul { flex-wrap: wrap; row-gap: 28px; max-width: 1200px; margin: 0 auto; padding: 0 var(--side); }
  .marquee ul[aria-hidden="true"] { display: none; }
}

/* Form */
.panel { background: var(--panel); padding: 40px 20px 44px; margin: 0 calc(-1 * var(--side)); }
@media (min-width: 768px) { .panel { padding: 56px 56px 60px; margin: 0; max-width: calc(var(--measure) + 112px); margin-left: calc(var(--margin-col) - 56px); } }
@media (min-width: 768px) and (max-width: 1099px) { .panel { margin-left: 0; } }
.form-intro { margin: -20px 0 36px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.enquiry-form { display: grid; gap: 28px; }
.field label { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.field .req { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink);
  font: 400 19px/1.4 var(--sans); padding: 10px 0; min-height: 48px; appearance: none;
}
.field textarea { min-height: 84px; resize: vertical; }
/* +852 sits inside the underline, so the field reads as one Hong Kong number. */
.tel { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--ink); }
.tel-prefix { font: 400 19px/1.4 var(--sans); color: var(--muted); }
.tel input, .tel input:focus, .tel input[aria-invalid="true"] { border-bottom: 0; padding-bottom: 10px; }
.tel:focus-within { border-bottom: 2px solid var(--green); margin-bottom: -1px; }
.tel:has(input[aria-invalid="true"]) { border-bottom: 2px solid var(--error); margin-bottom: -1px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--green); padding-bottom: 9px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom: 2px solid var(--error); padding-bottom: 9px; }
.field-error { margin: 6px 0 0; font-size: 15px; color: var(--error); }
.form-error { margin: 0; padding: 14px 16px; border-left: 3px solid var(--error); background: var(--stone); color: var(--ink); font-size: 16px; }
.form-foot { display: grid; gap: 20px; justify-items: start; margin-top: 8px; }
.privacy-note { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.success { font-family: var(--serif); font-size: 28px; line-height: 1.25; margin: 0; }
.success:focus { outline: none; }
/* Honeypot: hidden from people and assistive technology, visible to naive bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 0; }

/* Footer */
.site-footer { border-top: var(--hair); padding: 28px 0 48px; font-size: 15px; }
.site-footer .frame { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--green); }

/* Text pages (404) */
.prose { padding: 48px 0 var(--section); }
.prose h1 { font-size: clamp(36px, 4.4vw, 52px); max-width: none; margin-bottom: 12px; }
.prose .updated { color: var(--muted); font-size: 15px; margin: 0 0 48px; }
.prose h2 { font-size: clamp(24px, 2.4vw, 30px); margin: 48px 0 12px; }
.prose p, .prose li { max-width: 36em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
