/* oneteamlab v2: tokens, reset, header, buttons, split words, footer.
   Light theme only: the inks overprint (multiply), which needs paper underneath. */
:root {
  --bg: #F7F8FA;          /* paper */
  --ink: #101B3A;         /* navy: 16:1 on paper, 5.9:1 on green, the only text colour on inks */
  --ink-soft: #5A6480;    /* 5.7:1 on paper */
  --ink-faint: #B9C0CE;   /* only a transient scroll state of the "Nói thật" sentence */
  --client: #FFE14A;      /* bạn */
  --studio: #3EC5FF;      /* chúng tôi */
  --team: #3EAE4A;        /* = client x studio under multiply */
  --night: #0B1431;       /* the dark stage of "Hai thành một" */
  --red-ink: #E0352B;     /* hand-drawn strike marks only */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --space-section: clamp(6rem, 14vw, 12rem);
  --header-h: 5rem;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; font: 400 clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem)/1.6 var(--font-body); }
h1, h2, h3 { font-family: var(--font-display); font-optical-sizing: auto; margin: 0; }
p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.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 {
  position: absolute; left: var(--gutter); top: 0.5rem; z-index: 20; transform: translateY(-150%);
  padding: 0.75rem 1rem; background: var(--ink); color: var(--bg); border-radius: 8px; text-decoration: none;
}
.skip-link:focus-visible { transform: none; outline-color: var(--client); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* Header floats over the stage; not sticky, so it never collides with pinned scenes. */
.site-header {
  position: absolute; inset: 0 0 auto; z-index: 10; min-height: var(--header-h);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1rem;
  padding: 1rem var(--gutter);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
  font: 700 1.25rem/1 var(--font-display); letter-spacing: -0.01em; text-decoration: none;
}
.header-actions { display: flex; align-items: center; gap: clamp(0.5rem, 2vw, 1.25rem); }
.lang-toggle { display: flex; align-items: center; gap: 0.25rem; }
.lang-toggle button {
  min-width: 44px; min-height: 44px; padding: 0 0.25rem; border: 0; background: none; cursor: pointer;
  font: 500 0.95rem/1 var(--font-body); color: var(--ink-soft); border-radius: 999px;
}
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle button[aria-pressed="true"] {
  color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 2px;
}

/* Pill buttons: outline by default, solid navy for the one primary action (copy). */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 44px; padding: 0 1.25rem;
  border: 2px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink);
  font: 600 0.975rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.pill:hover { background: var(--ink); color: var(--bg); }
.pill:active { translate: 0 1px; }
.pill--solid { min-height: 56px; padding: 0 1.75rem; background: var(--ink); color: var(--bg); font-size: 1.05rem; }
.pill--solid:hover { background: #22305A; }
.pill--solid:focus-visible { outline-offset: 4px; }
.pill--solid.is-done { background: var(--team); border-color: var(--team); color: var(--ink); }
.pill--solid.is-error { background: var(--bg); color: var(--ink); }
@media (max-width: 440px) {
  .pill { padding: 0 1rem; } .header-actions { gap: 0.25rem; }
  .site-header { column-gap: 0.5rem; } .wordmark { font-size: 1.125rem; gap: 0.4rem; }
}
/* Below 380px the header would wrap into the headline; contact stays one tap away via the page itself. */
@media (max-width: 379px) { .header-actions .pill { display: none; } }

/* Section titles: small display weight, sentence case. No eyebrows, no numbering. */
.section-title { font-size: clamp(1.5rem, 2.2vw, 2.1rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }

/* Split words (js/split-words.js). The unsplit text lives in a .sr-only copy; the visual words are aria-hidden.
   Each word sits in a clipping mask so it can rise into place. Padding keeps Vietnamese stacked marks unclipped. */
.split-visual { display: inline; }
.w-mask { display: inline-block; overflow: clip; padding: 0.12em 0.02em 0.14em; margin: -0.12em -0.02em -0.14em; vertical-align: top; }
.w { display: inline-block; will-change: transform; }

.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 2rem;
  padding: 2rem var(--gutter) 2.5rem; color: var(--ink-soft); font-size: 0.95rem;
}
.site-footer .lang-toggle { margin-left: auto; }

@media (prefers-reduced-motion: reduce) {
  .pill, .lang-toggle button { transition: none; }
}
