/* ==========================================================================
   Continental Certification Body – website styles
   Built on the CCB Design System tokens (CCB-Design-System/tokens.css).
   ========================================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations'),
    url('/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2-variations'),
    url('/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/plus-jakarta-sans-vietnamese-wght-normal.woff2') format('woff2-variations'),
    url('/fonts/plus-jakarta-sans-vietnamese-wght-normal.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

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

:root {
  --forest-950: #0f2a20;
  --forest-900: #0f3d2e;
  --ink-band: #13201a;
  --green-700: #1f5b32;
  --green-600: #2e7d46;
  --lime-300: #b9f27c;
  --on-lime: #0f2a20;
  --mint-100: #e3f1e4;
  --mint-200: #cfe4d1;
  --page: #f5f7f2;
  --surface: #ffffff;
  --surface-sunken: #f8faf6;
  --track: #e6ece5;
  --line: #e2e8e1;
  --line-control: #87948c;
  --ink: #13201a;
  --ink-strong-body: #24332b;
  --ink-muted: #4c5a52;
  --ink-subtle: #5d6b63;
  --ink-on-mint: #3e4c44;
  --placeholder: #6b7a72;
  --on-dark: #ffffff;
  --on-dark-nav: #e6eee9;
  --on-dark-lead: #dce6e0;
  --on-dark-muted: #c9d8cf;
  --on-dark-subtle: #a9bab0;
  --on-dark-faint: #8fa399;
  --on-band-muted: #c3cec8;
  --danger: #b42318;
  --danger-tint: #fdecec;
  --danger-line: #f4c7c3;
  --scrim: rgba(8, 28, 20, 0.64);
  --glass: rgba(255, 255, 255, 0.1);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --glass-line: rgba(255, 255, 255, 0.18);
  --shadow-float: 0 20px 50px rgba(15, 42, 32, 0.12);
  --shadow-media: 0 24px 60px rgba(15, 42, 32, 0.18);
  --shadow-badge: 0 12px 30px rgba(15, 42, 32, 0.15);
  --shadow-form: 0 30px 70px rgba(0, 0, 0, 0.25);
  --focus-ring: 0 0 0 2px #ffffff, 0 0 0 4px #1f5b32;
  --focus-ring-dark: 0 0 0 2px #0f3d2e, 0 0 0 4px #b9f27c;

  --radius-sm: 12px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 28px;
  --radius-3xl: 36px;
  --radius-section: 40px;
  --radius-pill: 9999px;

  --container-max: 1240px;
  --page-gutter: 24px;
  /* Space the floating nav takes at the top of every hero (24px + 70px bar). */
  --nav-offset: 94px;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ring: var(--focus-ring);
}

/* Dark grounds use the lime focus ring. */
.site-header,
.home-hero,
.page-hero,
.contact-hero,
.band--forest,
.feature-card--dark,
.std-tile--cta,
.join-band,
.cta-band,
.footer {
  --ring: var(--focus-ring-dark);
}

.form-card,
.lang__menu {
  --ring: var(--focus-ring);
}

/* ---------- Languages ----------
   Plus Jakarta Sans has no Thai, Chinese, Japanese or Korean letters, so those
   fall back to the system's own font for that script. Latin letters and
   digits keep the brand font. */

html:lang(zh) {
  --font-sans: 'Plus Jakarta Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC',
    'Noto Sans CJK SC', system-ui, sans-serif;
}

html:lang(ja) {
  --font-sans: 'Plus Jakarta Sans', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', Meiryo,
    'Noto Sans JP', 'Noto Sans CJK JP', system-ui, sans-serif;
}

html:lang(ko) {
  --font-sans: 'Plus Jakarta Sans', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', 'Noto Sans CJK KR',
    system-ui, sans-serif;
}

html:lang(th) {
  --font-sans: 'Plus Jakarta Sans', 'Noto Sans Thai', 'Leelawadee UI', Thonburi, Tahoma, system-ui, sans-serif;
}

/* Tight tracking and very tight leading suit Latin headlines only. */
html:is(:lang(zh), :lang(ja), :lang(ko), :lang(th))
  :is(.h-display, .h-page, .h-section, .h-band, .h-form, .std-card__title, .cta-tile__title, .standard__lead, .std-tile__cta-title) {
  letter-spacing: 0;
  line-height: 1.25;
}

html:is(:lang(zh), :lang(ja), :lang(ko), :lang(th)) :is(.eyebrow, .overline, .footer__label, .info-glass__label, .logo-strip__label) {
  letter-spacing: 0.04em;
}

html:lang(th) :is(.h-display, .h-page, .h-section, .h-band) {
  line-height: 1.4;
}

html:lang(th) body {
  line-height: 1.7;
}

html:lang(ko) body {
  word-break: keep-all;
}

html:is(:lang(zh), :lang(ja)) body {
  line-break: strict;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
}

main:focus {
  outline: none;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
p,
blockquote,
figure,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--green-700);
}

a:hover {
  color: var(--forest-900);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.icon {
  flex: none;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--lime-300);
  color: var(--on-lime);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.container--narrow {
  max-width: 840px;
}

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

.h-display {
  margin-top: 24px;
  max-width: 820px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Last resort for a single word longer than the screen is wide: break it
   rather than let it run off the page. */
:is(h1, h2, h3, .h-display, .h-page, .h-section, .h-band) {
  overflow-wrap: break-word;
}

/* Very small phones: long words (e.g. Filipino "mapagbabatayan") fit the
   home headline. */
@media (max-width: 380px) {
  .h-display {
    font-size: 33px;
  }
}

.h-page {
  margin-top: 20px;
  max-width: 820px;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.h-page--wide {
  max-width: 860px;
}

.h-section {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.h-section--s {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
}

.eyebrow + .h-section {
  margin-top: 16px;
}

.h-band {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.h-form {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--on-dark-lead);
}

.body-l {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-muted);
}

.body-l--lg {
  margin-top: 24px;
  font-size: 18px;
}

.eyebrow {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-600);
}

.eyebrow--lime {
  color: var(--lime-300);
}

.overline {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s, color 0.2s;
}

/* On phones a long button label (common in Filipino, Indonesian and Malay)
   can be wider than the screen: let it wrap onto two lines instead. */
@media (max-width: 640px) {
  .btn {
    max-width: 100%;
    padding-block: 10px;
    white-space: normal;
  }
}

.btn--sm {
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
}

.btn--lg {
  min-height: 56px;
  padding: 0 30px;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--forest-900);
  color: var(--on-dark);
}

.btn--primary:hover {
  background: var(--forest-950);
  color: var(--on-dark);
}

.btn--accent {
  background: var(--lime-300);
  color: var(--on-lime);
}

.btn--accent:hover {
  color: var(--on-lime);
  box-shadow: inset 0 0 0 999px rgba(15, 42, 32, 0.08);
}

.btn--accent:focus-visible {
  box-shadow: var(--ring);
}

.btn--light {
  background: var(--surface);
  color: var(--forest-900);
}

.btn--light:hover {
  background: var(--mint-100);
  color: var(--forest-900);
}

.btn--outline {
  border-color: var(--on-dark-muted);
  background: transparent;
  color: var(--on-dark);
  font-weight: 600;
}

.btn--outline:hover {
  background: var(--glass);
  color: var(--on-dark);
}

.btn[disabled],
.btn[aria-busy='true'] {
  opacity: 0.6;
  cursor: progress;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 700;
  color: var(--green-700);
  text-decoration: none;
  border-radius: 6px;
}

.text-link:hover {
  color: var(--forest-900);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link .icon {
  transition: transform 0.2s;
}

.text-link:hover .icon {
  transform: translateX(3px);
}

.text-link--sm {
  font-size: 15px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
  transition: background-color 0.2s;
}

.icon-btn:hover {
  background: var(--glass);
}

/* ---------- Small pieces ---------- */

.chip-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--on-dark);
}

.chip-glass__dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--lime-300);
}

.home-hero .chip-glass {
  align-self: flex-start;
  gap: 10px;
  padding-left: 10px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tag-pill {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  color: var(--green-700);
}

.code-chip {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--mint-100);
  font-size: 13px;
  font-weight: 700;
  color: var(--green-700);
}

.icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--mint-100);
  color: var(--green-700);
}

.icon-tile--sm {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}

.icon-tile--lime {
  background: var(--lime-300);
  color: var(--on-lime);
}

.icon-tile--error {
  background: var(--danger-tint);
  color: var(--danger);
}

.quote-mark {
  color: var(--green-600);
}

/* ---------- Navigation ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  padding-top: 24px;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 12px 12px 24px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-pill);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--on-dark);
}

.nav__logo {
  display: flex;
  align-items: center;
  flex: none;
  border-radius: 8px;
  color: var(--on-dark);
}

.logo {
  display: block;
  width: auto;
  height: 38px;
}

.nav__panel {
  display: flex;
  align-items: center;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--on-dark-nav);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.nav__link:hover {
  color: var(--on-dark);
  background: var(--glass);
}

.nav__link[aria-current='page'] {
  color: var(--on-dark);
  background: var(--glass-strong);
}

.nav__panel-cta,
.nav__toggle {
  display: none;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__toggle-close {
  display: none;
}

.lang {
  position: relative;
}

.lang__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 5;
  width: 240px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-float);
}

.lang__menu[hidden] {
  display: none;
}

.lang__title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.lang__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lang__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}

.lang__option:hover {
  background: var(--page);
  color: var(--ink);
}

/* Language button: shows the current language's short form (ENG, 中文…). */
.lang__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--on-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s;
}

.lang__button:hover,
.lang__button[aria-expanded='true'] {
  background: var(--glass);
}

.lang__name {
  flex: 1;
  min-width: 0;
}

.lang__option.is-current {
  background: var(--mint-100);
  color: var(--green-700);
  font-weight: 700;
}

/* ---------- Heroes ---------- */

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo--y30 {
  object-position: center 30%;
}

.hero-photo--y35 {
  object-position: center 35%;
}

.hero-photo--y40 {
  object-position: center 40%;
}

.hero-photo--y60 {
  object-position: center 60%;
}

.scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--scrim);
}

.scrim--strong {
  background: rgba(8, 28, 20, 0.68);
}

.scrim--strongest {
  background: rgba(8, 28, 20, 0.72);
}

.home-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 780px;
  background: var(--forest-950);
  color: var(--on-dark);
}

.home-hero__inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-offset) + 96px);
  padding-bottom: 180px;
}

.home-hero__lead {
  max-width: 620px;
  margin-top: 24px;
}

.home-hero .btn-row {
  margin-top: 36px;
}

.page-hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--nav-offset) + 72px) 0 96px;
  background: var(--forest-950);
  color: var(--on-dark);
}

.page-hero--plain {
  padding-bottom: 72px;
}

.page-hero__subtitle {
  margin-top: 16px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--lime-300);
}

.page-hero__lead {
  max-width: 680px;
  margin-top: 20px;
}

.crumbs {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--on-dark-muted);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crumbs li + li::before {
  content: '/';
}

.crumbs a {
  color: var(--on-dark-muted);
  text-decoration: none;
  border-radius: 4px;
}

.crumbs a:hover {
  color: var(--on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.crumbs [aria-current='page'] {
  color: var(--on-dark);
}

/* ---------- Sections ---------- */

.section {
  padding-block: 112px;
}

.section--inner {
  padding-block: 96px;
}

.section--cards {
  padding-top: 80px;
}

.section--flush-bottom {
  padding-bottom: 56px;
}

.section--tight-top {
  padding-top: 0;
}

.section--white {
  background: var(--surface);
}

.section--rounded {
  border-radius: var(--radius-section) var(--radius-section) 0 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 64px;
}

.section-head__main {
  flex: 1 1 520px;
  min-width: 0;
}

.section-head__aside {
  flex: 1 1 420px;
  min-width: 0;
}

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
}

.split--top {
  align-items: flex-start;
}

.split__main {
  flex: 1 1 460px;
  min-width: 0;
}

.split__side {
  position: relative;
  flex: 1 1 420px;
  min-width: 0;
}

.split--reverse .split__side {
  order: -1;
}

.split--courses,
.split--lead {
  gap: 56px;
}

.split--courses .split__main {
  flex-basis: 600px;
}

.split--courses .split__side,
.split--lead .split__side {
  flex-basis: 380px;
}

.split--lead .split__main {
  flex-basis: 560px;
}

.band {
  padding-block: 112px;
}

.band--forest {
  background: var(--forest-900);
  color: var(--on-dark);
}

.band__text {
  margin-top: 20px;
  color: var(--on-dark-muted);
}

/* ---------- Photos ---------- */

.photo {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-2xl);
  background: var(--forest-900);
}

.img-pos-left-bottom {
  object-position: left bottom;
}

.photo--420 {
  height: min(420px, 80vw);
}

.photo--520 {
  height: min(520px, 100vw);
}

.photo--560 {
  height: min(560px, 110vw);
}

.photo--620 {
  height: min(620px, 120vw);
}

.photo-frame--offset {
  padding-top: 8px;
}

.photo-badge {
  position: absolute;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px 14px 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow-badge);
}

.photo-badge--bottom {
  bottom: 24px;
}

.photo-badge--top {
  top: 24px;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  font-size: 15px;
}

.photo-badge__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--forest-900);
  color: var(--on-dark);
}

.photo-badge__tile--text {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.photo-badge__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.photo-badge__text small {
  font-size: 13px;
  color: var(--ink-subtle);
}

.photo-badge__text strong {
  font-size: 16px;
  font-weight: 700;
}

.logo-plate {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-plate img {
  width: auto;
}

.logo-plate--dark {
  inset: auto 24px 24px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(19, 32, 26, 0.92);
}

.logo-plate--dark img {
  height: 44px;
}

.logo-plate--light {
  top: 24px;
  left: 24px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.logo-plate--light img {
  height: 52px;
}

/* ---------- Home ---------- */

.services {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
  margin-top: -120px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-float);
  transition: transform 0.2s;
}

.feature-card:hover {
  color: var(--ink);
  transform: translateY(-3px);
}

.feature-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.feature-card__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.feature-card--dark {
  background: var(--forest-900);
  color: var(--on-dark);
  box-shadow: 0 20px 50px rgba(15, 42, 32, 0.18);
}

.feature-card--dark:hover {
  color: var(--on-dark);
}

.feature-card--dark .feature-card__text {
  color: var(--on-dark-muted);
}

.feature-card--dark .icon-tile {
  background: var(--lime-300);
  color: var(--on-lime);
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 48px;
}

.logo-strip--home {
  padding-top: 56px;
}

.logo-strip__link {
  display: block;
  border-radius: 6px;
  transition: opacity 0.2s;
}

.logo-strip__link:hover {
  opacity: 0.8;
}

/* About: partner details */
.partners {
  margin-top: 72px;
  padding-top: 72px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 20px;
  margin-top: 48px;
}

.partner-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--page);
}

.partner-card__logo {
  display: flex;
  align-items: center;
  height: 56px;
}

.partner-card__logo img {
  width: auto;
  max-height: 56px;
}

.partner-card__name {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.partner-card__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
}

.scope {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.scope .overline {
  margin: 0;
}

.scope__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.logo-strip__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.logo-strip__note {
  flex-basis: 100%;
  text-align: center;
  font-size: 14px;
  color: var(--ink-subtle);
}

#about {
  padding-block: 120px;
}

.quote-block {
  margin: 32px 0 0;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.quote-block p {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-strong-body);
}

.quote-block + .text-link {
  margin-top: 28px;
}

.quote-block--dark {
  margin: 0;
  padding: 36px 40px;
  border: 0;
  border-radius: var(--radius-2xl);
  background: var(--forest-900);
  color: var(--on-dark);
}

.quote-block--dark .quote-mark {
  width: 32px;
  height: 25px;
  color: var(--lime-300);
}

.quote-block--dark p {
  margin-top: 18px;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--on-dark);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 20px;
  margin-top: 56px;
}

.tile-grid > li,
.card-grid > li {
  display: flex;
}

.std-tile {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: var(--page);
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

.std-tile:hover {
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
}

.std-tile__img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.std-tile__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px 24px;
}

.std-tile__code {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-600);
}

.std-tile__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.std-tile--cta {
  justify-content: space-between;
  gap: 24px;
  min-height: 250px;
  padding: 28px;
  background: var(--forest-900);
  color: var(--on-dark);
}

.std-tile--cta:hover {
  color: var(--on-dark);
}

.std-tile__cta-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.std-tile__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--lime-300);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.step {
  display: flex;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
}

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--lime-300);
  color: var(--on-lime);
  font-weight: 800;
}

.step__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step__title {
  font-size: 17px;
  font-weight: 700;
}

.step__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-dark-muted);
}

.steps + .btn {
  margin-top: 32px;
}

.tools-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  overflow: hidden;
  padding: 56px;
  border-radius: var(--radius-3xl);
  background: var(--mint-100);
}

.tools-panel__text {
  flex: 1 1 440px;
  min-width: 0;
}

.tools-panel .h-section {
  margin-top: 20px;
}

.tools-panel__intro {
  margin-top: 20px;
  color: var(--ink-on-mint);
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  color: var(--ink-strong-body);
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checklist .icon {
  color: var(--green-700);
}

.checklist + .btn {
  margin-top: 32px;
}

.tools-media {
  position: relative;
  flex: 1 1 460px;
  min-width: 0;
  height: 480px;
}

.tools-media img {
  position: absolute;
}

.tools-media__overview {
  top: 0;
  right: 0;
  width: 88%;
  border-radius: 16px;
  box-shadow: var(--shadow-media);
}

.tools-media__ring {
  left: 0;
  bottom: 24px;
  width: 62%;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 42, 32, 0.22);
}

.tools-media__person {
  right: -8px;
  bottom: -56px;
  width: auto;
  height: 400px;
  max-width: none;
}

.join-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 56px;
  border-radius: var(--radius-3xl);
  background: var(--ink-band);
  color: var(--on-dark);
}

.join-band__text {
  flex: 1 1 480px;
  min-width: 0;
}

.join-band .h-band {
  margin-top: 12px;
}

.join-band__lead {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--on-band-muted);
}

.join-band__actions {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.join-band__flags {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--on-band-muted);
}

.join-band__flags ul {
  display: flex;
  gap: 12px;
}

.join-band__flags img {
  width: 36px;
  height: 36px;
  border: 2px solid var(--on-dark);
  border-radius: 99px;
  object-fit: cover;
}

/* ---------- Certification ---------- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toolbar__count {
  font-size: 15px;
  color: var(--ink-muted);
}

.seg-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--track);
}

.seg-tabs__tab {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-subtle);
}

.seg-tabs__tab[aria-selected='true'] {
  background: var(--forest-900);
  color: var(--on-dark);
  font-weight: 700;
}

.seg-tabs__tab:disabled {
  cursor: default;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 24px;
  margin-top: 40px;
}

.std-card {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

/* The whole card is clickable: the "Read more" link stretches over it, so
   screen readers and keyboards still see one link per card. */
.std-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.std-card:hover {
  border-color: var(--mint-200);
  box-shadow: var(--shadow-float);
  transform: translateY(-3px);
}

.std-card:hover .std-card__link {
  color: var(--forest-900);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.std-card:hover .std-card__link .icon {
  transform: translateX(3px);
}

/* Show the keyboard focus ring around the whole card, not just the link. */
.std-card__link:focus-visible {
  box-shadow: none;
}

.std-card:has(.std-card__link:focus-visible) {
  box-shadow: var(--focus-ring);
}

.std-card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.std-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 24px 26px 26px;
}

.std-card__title {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.std-card__text {
  flex: 1;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
}

.std-card .text-link {
  align-self: flex-start;
  margin-top: 4px;
}

.cta-tile {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 300px;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--mint-100);
}

.cta-tile__title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.cta-tile__text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-on-mint);
}

.cta-tile .btn {
  align-self: flex-start;
}

.cta-section {
  padding-bottom: 96px;
}

.cta-section--white {
  padding-bottom: 104px;
  background: var(--surface);
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding: 48px 56px;
  border-radius: var(--radius-3xl);
  background: var(--forest-900);
  color: var(--on-dark);
}

.cta-band__text {
  flex: 1 1 480px;
  min-width: 0;
}

.cta-band__text p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--on-dark-muted);
}

/* ---------- Standard detail ---------- */

.standard__lead {
  font-size: 22px;
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.standard__copy .body-l {
  margin-top: 20px;
  line-height: 1.75;
}

.standard__lead + .body-l {
  margin-top: 24px;
}

.split--top .split__main.standard__copy {
  flex-basis: 520px;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px;
  margin-top: 64px;
}

.fact-grid--principles {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  margin-top: 0;
}

.fact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.fact-card__text {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
}

.fact-card--roomy {
  gap: 12px;
  padding: 32px;
  border-radius: var(--radius-xl);
}

.fact-card__title {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
}

.fact-card__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ---------- Training ---------- */

.course-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 36px;
}

.course-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.course-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 64px;
  height: 44px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: var(--mint-100);
  font-size: 14px;
  font-weight: 800;
  color: var(--green-700);
}

.course-chip--dark {
  background: var(--forest-900);
  color: var(--on-dark);
}

.course-row__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.course-row__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.course-row__type {
  font-size: 14px;
  color: var(--ink-subtle);
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 12px;
  margin-top: 36px;
}

.code-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  line-height: 1.3;
}

.code-card__code {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--lime-300);
}

.code-card__title {
  font-size: 16px;
  font-weight: 700;
}

.code-card__type {
  font-size: 14px;
  color: var(--on-dark-muted);
}

.band--forest .split--lead {
  align-items: center;
}

.band--forest:has(.split--lead) {
  padding-block: 104px;
}

/* ---------- About ---------- */

.milestones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
  margin-top: 56px;
}

.milestone {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--page);
}

.milestone__badge {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--forest-900);
  color: var(--on-dark);
  font-size: 15px;
  font-weight: 800;
}

.milestone__title {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
}

.milestone__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
}

.milestone--current {
  border-color: var(--mint-200);
  background: var(--mint-100);
}

.milestone--current .milestone__badge {
  background: var(--lime-300);
  color: var(--on-lime);
}

.milestone--current .milestone__text {
  color: var(--ink-on-mint);
}

/* ---------- Get a quote ---------- */

.quote {
  padding-block: 112px;
}

.quote--white {
  padding: 104px 0 112px;
  border-radius: var(--radius-section) var(--radius-section) 0 0;
  background: var(--surface);
}

.quote__head {
  text-align: center;
}

.quote__intro {
  max-width: 560px;
  margin: 16px auto 0;
}

.quote-form {
  margin-top: 48px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
}

.quote--white .quote-form {
  background: var(--surface-sunken);
}

/* The certification group only holds short codes, so it takes less room and
   the training groups get enough width for each course on one line. */
.quote-form__groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.checks--codes .checks__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  column-gap: 16px;
}

@media (min-width: 1000px) {
  .quote-form__groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-form__groups .checks--codes {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1240px) {
  .quote-form__groups {
    grid-template-columns: max-content minmax(0, 1fr) minmax(0, 1fr);
  }

  .quote-form__groups .checks--codes {
    grid-column: auto;
  }

  .checks--codes .checks__list {
    display: flex;
  }
}

/* Vietnamese course names are much longer than in the other languages, so the
   certification codes sit in a row across the top and the two training lists
   share the width below (one list per row on narrower screens). */
@media (min-width: 1000px) {
  html:lang(vi) .quote-form__groups {
    grid-template-columns: minmax(0, 1fr);
  }

  html:lang(vi) .quote-form__groups .checks--codes {
    grid-column: auto;
  }

  html:lang(vi) .checks--codes .checks__list {
    display: grid;
  }
}

@media (min-width: 1120px) {
  html:lang(vi) .quote-form__groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html:lang(vi) .quote-form__groups .checks--codes {
    grid-column: 1 / -1;
  }
}

.checks {
  min-width: 0;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-sunken);
}

.quote--white .checks {
  background: var(--surface);
}

.checks legend {
  padding: 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.checks__note {
  font-weight: 500;
  color: var(--ink-subtle);
}

.checks__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--green-700);
  cursor: pointer;
}

.check input:focus-visible {
  border-radius: 4px;
}

.check__meta {
  color: var(--ink-subtle);
  white-space: nowrap;
}

.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
  margin-top: 32px;
}

.fields--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 16px;
  margin-top: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field__label {
  font-size: 14px;
  font-weight: 600;
}

.field__req {
  color: var(--ink-subtle);
}

.input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-control);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

.input:hover {
  border-color: var(--ink-subtle);
}

.input:focus-visible {
  border-color: var(--green-700);
}

.input[aria-invalid='true'] {
  border-color: var(--danger);
}

.input--area {
  height: auto;
  padding: 14px 16px;
  line-height: 1.5;
  resize: vertical;
}

.input--select {
  padding-right: 44px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313201a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  cursor: pointer;
}

.input--select:invalid {
  color: var(--placeholder);
}

.input--select option {
  color: var(--ink);
}

.field__error {
  font-size: 14px;
  font-weight: 600;
  color: var(--danger);
}

.field__error:empty {
  display: none;
}

.field__error--group {
  margin-top: 12px;
}

.quote-form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.quote-form__note {
  font-size: 14px;
  color: var(--ink-subtle);
}

.form-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 15px;
  line-height: 1.5;
}

.quote-form .form-status {
  margin-top: 28px;
}

.form-status[hidden] {
  display: none;
}

.form-status:focus {
  outline: none;
}

.form-status strong {
  font-weight: 700;
}

.form-status--success {
  border-color: var(--mint-200);
  background: var(--mint-100);
  color: var(--green-700);
}

.form-status--error {
  border-color: var(--danger-line);
  background: var(--danger-tint);
  color: var(--danger);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Contact ---------- */

.contact-hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--nav-offset) + 72px) 0 104px;
  background: var(--forest-950);
  color: var(--on-dark);
}

.contact-hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 56px;
}

.contact-hero__info {
  flex: 1 1 480px;
  min-width: 0;
}

.contact-hero__lead {
  max-width: 460px;
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-dark-lead);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
}

.info-glass {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.info-glass__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.info-glass__body--grow {
  flex: 1;
  gap: 8px;
}

.info-glass__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-subtle);
}

.info-glass address {
  font-size: 16px;
  line-height: 1.6;
  font-style: normal;
}

.info-glass__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 16px;
  line-height: 1.6;
}

.info-glass a {
  color: var(--on-dark);
  text-decoration: none;
  border-radius: 4px;
}

.info-glass a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hours {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hours__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
}

.hours__row dd {
  font-weight: 600;
}

.hours__row--closed {
  color: var(--on-dark-subtle);
}

.form-card {
  flex: 1 1 440px;
  min-width: 0;
  padding: 40px;
  border-radius: 32px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-form);
}

.form-card .form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-card__head p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-subtle);
}

/* ---------- Message pages ---------- */

.message-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.message-card__status {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
}

.message-card--error .message-card__status {
  color: var(--danger);
}

.message-card__list {
  display: grid;
  gap: 6px;
  padding: 16px 20px 16px 36px;
  border-radius: var(--radius-md);
  background: var(--danger-tint);
  color: var(--danger);
  list-style: disc;
}

.message-card .btn,
.message-card .btn-row {
  margin-top: 8px;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--forest-950);
  color: var(--on-dark);
}

.footer__inner {
  padding-top: 80px;
  padding-bottom: 32px;
}

.footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 64px;
}

.footer__brand {
  flex: 1 1 280px;
  min-width: 0;
}

.footer__logo {
  display: inline-flex;
  border-radius: 6px;
  color: var(--on-dark);
}

.footer__logo .logo {
  height: 48px;
}

.footer__tagline {
  max-width: 300px;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--on-dark-subtle);
}

.footer__col {
  display: flex;
  flex: 0 1 200px;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
}

.footer__col--narrow {
  flex-basis: 140px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  line-height: 1.3;
}

.footer__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}

.footer a {
  color: var(--on-dark);
  text-decoration: none;
  border-radius: 4px;
}

.footer a:hover {
  color: var(--on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__contact {
  display: flex;
  flex: 1 1 300px;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  font-size: 15px;
  line-height: 1.6;
}

.footer__contact address {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-style: normal;
}

.footer__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer__row .icon {
  margin-top: 2px;
  color: var(--lime-300);
}

.footer__legal {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  color: var(--on-dark-faint);
}

/* ---------- Responsive ---------- */

@media (max-width: 1099px) {
  .nav__toggle {
    display: inline-flex;
  }

  .nav__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--glass-line);
    border-radius: var(--radius-2xl);
    background: var(--forest-950);
    box-shadow: var(--shadow-form);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
  }

  .site-header.is-open .nav__panel {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s, transform 0.2s;
  }

  .site-header.is-open .nav__toggle-open {
    display: none;
  }

  .site-header.is-open .nav__toggle-close {
    display: flex;
  }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav__link {
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    font-size: 17px;
  }
}

/* Same menu panel on wide screens when a language's links don't fit on one
   line (main.js adds .is-compact after measuring). */
.site-header.is-compact .nav__toggle {
  display: inline-flex;
}

.site-header.is-compact .nav__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-2xl);
  background: var(--forest-950);
  box-shadow: var(--shadow-form);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
}

.site-header.is-compact.is-open .nav__panel {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.2s, transform 0.2s;
}

.site-header.is-compact.is-open .nav__toggle-open {
  display: none;
}

.site-header.is-compact.is-open .nav__toggle-close {
  display: flex;
}

.site-header.is-compact .nav__links {
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

.site-header.is-compact .nav__link {
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  font-size: 17px;
}

.nav__link {
  white-space: nowrap;
}

.site-header.is-measuring .nav__panel {
  transition: none;
}

.site-header.is-tight .nav {
  gap: 10px;
  padding-left: 20px;
}

.site-header.is-tight .nav__links {
  gap: 0;
}

.site-header.is-tight .nav__link {
  padding: 10px 9px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .home-hero {
    min-height: 0;
  }

  .home-hero__inner {
    padding-top: calc(var(--nav-offset) + 64px);
    padding-bottom: 160px;
  }

  .section,
  .band,
  .quote,
  #about {
    padding-block: 88px;
  }

  .section--inner,
  .quote--white {
    padding-block: 72px;
  }

  .section--flush-bottom {
    padding-bottom: 40px;
  }

  .section--tight-top {
    padding-top: 0;
  }

  .page-hero,
  .contact-hero {
    padding-top: calc(var(--nav-offset) + 48px);
    padding-bottom: 72px;
  }

  .tools-panel,
  .join-band,
  .cta-band {
    padding: 40px 32px;
  }
}

@media (max-width: 640px) {
  :root {
    --page-gutter: 20px;
    --nav-offset: 82px;
  }

  .site-header {
    padding-top: 16px;
  }

  .nav {
    padding: 10px 10px 10px 18px;
  }

  .logo {
    height: 34px;
  }

  .nav__cta {
    display: none;
  }

  .nav__panel-cta {
    display: inline-flex;
  }

  .lead {
    font-size: 17px;
  }

  .page-hero__subtitle {
    font-size: 19px;
  }

  .services {
    margin-top: -96px;
  }

  .quote-form,
  .form-card,
  .message-card {
    padding: 28px 20px;
    border-radius: var(--radius-xl);
  }

  .checks {
    padding: 20px 16px;
  }

  .tools-panel,
  .join-band,
  .cta-band {
    padding: 32px 24px;
    border-radius: var(--radius-2xl);
  }

  .tools-media {
    height: 340px;
  }

  .tools-media__person {
    height: 290px;
    bottom: -32px;
  }

  .quote-block {
    padding: 24px;
  }

  .quote-block--dark {
    padding: 28px 24px;
  }

  .quote-block--dark p,
  .standard__lead {
    font-size: 19px;
  }

  .photo-badge {
    left: 16px;
  }

  .photo-badge--bottom {
    bottom: 16px;
  }

  .photo-badge--top {
    top: 16px;
  }

  .logo-plate--dark {
    inset: auto 16px 16px;
  }

  .logo-plate--light {
    top: 16px;
    left: 16px;
  }

  .logo-plate--light img {
    height: 40px;
  }

  .info-glass {
    padding: 20px;
  }

  .quote-form__footer .btn {
    width: 100%;
  }

  .footer__inner {
    padding-top: 64px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

.field--consent {
  margin-top: 8px;
}

.check--consent {
  align-items: flex-start;
  font-size: 14.5px;
}

.check--consent input {
  margin-top: 2px;
}

.consent__notice {
  margin: 8px 0 0 32px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-subtle);
}

.consent__notice a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.privacy-page {
  padding-block: 48px 96px;
  max-width: 860px;
}

.privacy__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.privacy__tab {
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line, #d5dcd6);
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.privacy__tab[aria-selected="true"] {
  background: var(--ink, #12201a);
  border-color: var(--ink, #12201a);
  color: #fff;
}

.privacy__panel {
  line-height: 1.65;
}

.privacy__panel:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.privacy__title {
  margin: 0 0 4px;
  font-size: 24px;
  line-height: 1.25;
}

.privacy__updated {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink-subtle);
}

.privacy__heading {
  margin: 24px 0 6px;
  font-size: 17px;
}

.privacy__panel p {
  margin: 0 0 10px;
}

.privacy-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(85vh, 900px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: var(--ink, #12201a);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.privacy-dialog::backdrop {
  background: rgba(8, 20, 14, 0.6);
}

.privacy-dialog__bar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line, #e3e8e4);
}

.privacy-dialog__close {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line, #d5dcd6);
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.privacy-dialog__body {
  padding: 20px 28px 32px;
}
