/* =========================================================
   WangJai — wangjai.io
   Design system + layout  (light theme)
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --navy: #0a3a52;
  --navy-900: #06283a;
  --green: #0e9f6e;
  --green-600: #0b8a5e;
  --green-50: #e9f7f1;
  --blue: #2b8fe0;
  --blue-50: #e8f2fc;
  --alert: #d94f2b;

  --ink: #0e2a38;
  --body: #445862;
  --muted: #6b7f8a;

  --bg: #ffffff;
  --surface: #f5f8f9;
  --surface-2: #eef3f5;
  --line: #e0e8eb;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(10, 58, 82, .06), 0 2px 8px rgba(10, 58, 82, .04);
  --shadow: 0 2px 6px rgba(10, 58, 82, .06), 0 12px 28px rgba(10, 58, 82, .07);

  --wrap: 1180px;
  --gut: 24px;

  --ff: "IBM Plex Sans Thai", "Noto Sans Thai", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--ff);
  font-size: 17px;
  line-height: 1.75;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.28; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.35rem + 2.9vw, 3.35rem); line-height: 1.16; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1.02rem + .55vw, 1.4rem); }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .45em; }
strong { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding: clamp(56px, 4vw + 34px, 96px) 0; }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy); color: #cfe0e8; }
.section--navy h2, .section--navy h3 { color: #fff; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center.narrow { margin-inline: auto; }

.grid { display: grid; gap: 22px; }
@media (min-width: 700px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Eyebrow / lead ---------- */
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: 14px;
}
.section--navy .eyebrow { color: #58d3a6; }
.lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.24rem); color: var(--body); }
.section--navy .lead { color: #bcd3dd; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(14, 159, 110, .28); }
.btn--primary:hover { background: var(--green-600); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--green); color: var(--green-600); }
.section--navy .btn--ghost { background: transparent; border-color: rgba(255,255,255,.32); color: #fff; }
.section--navy .btn--ghost:hover { border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; }
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink); font-size: .97rem; font-weight: 500; white-space: nowrap;
  padding: 9px 13px; border-radius: 999px; transition: background-color .15s ease, color .15s ease;
}
@media (min-width: 1081px) and (max-width: 1240px) {
  .nav a { font-size: .92rem; padding: 9px 10px; }
  .nav .btn { padding: 10px 16px; margin-left: 4px; }
}
.nav a:hover { background: var(--surface); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--green-600); background: var(--green-50); }
.nav .btn { margin-left: 8px; padding: 11px 20px; white-space: nowrap; }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line);
  border-radius: 10px; padding: 9px; cursor: pointer; color: var(--ink);
}
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 68px 0 auto; z-index: 55;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px var(--gut) 22px; box-shadow: var(--shadow);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 13px 14px; font-size: 1.02rem; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(170deg, #f7fbfa 0%, #eef5f8 62%, #ffffff 100%); }
.hero::after {
  content: ""; position: absolute; inset: auto -10% -55% 45%;
  height: 520px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(43,143,224,.14), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(52px, 5vw + 26px, 96px); }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.02fr .98fr; gap: 56px; } }
.hero h1 { margin-bottom: .42em; }
.hero h1 .accent { color: var(--green); display: block; }
.hero .lead { max-width: 42ch; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; padding: 0; list-style: none; }
.hero-tags li {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 8px 15px; font-size: .92rem; font-weight: 500;
  margin: 0; box-shadow: var(--shadow-sm);
}
.hero-tags svg { color: var(--green); flex: none; }
.hero-media {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow);
}
.hero-media figcaption { font-size: .86rem; color: var(--muted); text-align: center; margin-top: 12px; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c9dbe2; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-50); color: var(--green-600); margin-bottom: 16px;
}
.card__icon--blue { background: var(--blue-50); color: var(--blue); }
.card__icon--alert { background: #fdeee9; color: var(--alert); }
.card__num {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .1em;
  color: var(--green-600); margin-bottom: 10px;
}

/* ---------- Stats ---------- */
.stats { display: grid; gap: 24px; }
@media (min-width: 640px)  { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .stats--3 { grid-template-columns: repeat(3, 1fr); } }
.stat__value {
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.1rem); font-weight: 700;
  color: var(--navy); line-height: 1.05; letter-spacing: -.02em;
}
.stat__value .unit { font-size: .42em; font-weight: 600; color: var(--body); margin-left: .35em; letter-spacing: 0; }
.stat__label { font-size: .97rem; color: var(--body); margin-top: 8px; }
.section--navy .stat__value { color: #fff; }
.section--navy .stat__label { color: #a9c4d1; }
.stat--accent .stat__value { color: var(--green); }
.badge {
  display: inline-block; background: var(--green-50); color: var(--green-600);
  border-radius: 999px; padding: 4px 12px; font-size: .84rem; font-weight: 600; margin-top: 10px;
}

/* ---------- Steps (flow) ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
@media (min-width: 900px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px;
}
.step__tag {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-600); display: block; margin-bottom: 10px;
}
.step:nth-child(2) .step__tag { color: var(--blue); }
.step:nth-child(3) .step__tag { color: #b07d17; }
.step:nth-child(4) .step__tag { color: var(--alert); }
.step h3 { font-size: 1.12rem; }
.step p { margin: 0; font-size: .97rem; }
@media (min-width: 900px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 50%; right: -13px; width: 8px; height: 8px;
    border-top: 2px solid #c3d5dc; border-right: 2px solid #c3d5dc;
    transform: translateY(-50%) rotate(45deg);
  }
}

/* ---------- Sensor list ---------- */
.sensor { display: grid; gap: 16px; align-items: start; grid-template-columns: 52px 1fr; }
.sensor + .sensor { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.sensor__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--navy);
}
.sensor h3 { font-size: 1.1rem; margin-bottom: .3em; }
.sensor p { margin: 0; font-size: .97rem; }

/* ---------- Callout ---------- */
.callout {
  border-left: 4px solid var(--green); background: var(--green-50);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 24px;
}
.callout--alert { border-left-color: var(--alert); background: #fdf1ed; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--navy); }

/* ---------- Quote ---------- */
.quote {
  margin: 0; font-size: clamp(1.2rem, 1.02rem + .9vw, 1.75rem);
  font-weight: 600; line-height: 1.5; color: var(--ink);
}
.section--navy .quote { color: #fff; }
.quote cite { display: block; font-size: .92rem; font-weight: 500; font-style: normal; color: var(--muted); margin-top: 14px; }

/* ---------- Figure ---------- */
.figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(16px, 2vw, 30px); box-shadow: var(--shadow-sm); }
.figure figcaption { font-size: .9rem; color: var(--muted); text-align: center; margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; color: var(--ink); font-size: 1.06rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding-right: 40px; color: var(--body); }
.faq details p:last-child { margin-bottom: 20px; }

/* ---------- Source note ---------- */
.source { font-size: .84rem; color: var(--muted); margin-top: 18px; }
.source a { color: var(--muted); text-decoration: underline; }

/* ---------- Partner flow ---------- */
.flow { display: grid; gap: 14px; align-items: stretch; }
@media (min-width: 860px) { .flow { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; } }
.flow__node {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; text-align: center;
}
.flow__node--brand { background: var(--navy); border-color: var(--navy); }
.flow__node--brand h3, .flow__node--brand p { color: #fff; }
.flow__node--brand p { color: #b9d0da; }
.flow__node h3 { font-size: 1.05rem; margin-bottom: .3em; }
.flow__node p { font-size: .92rem; margin: 0; }
.flow__arrow { display: none; color: #b7cad2; }
@media (min-width: 860px) { .flow__arrow { display: block; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #cfe0e8; }
.cta-band h2 { color: #fff; }
.cta-band .wrap { padding-block: clamp(48px, 4vw + 28px, 78px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9db6c3; font-size: .95rem; padding: 56px 0 30px; }
.site-footer a { color: #cfe0e8; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }

.footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; font-size: .88rem;
}

/* ---------- Breadcrumb ---------- */
.crumb { font-size: .88rem; color: var(--muted); padding-top: 22px; }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.crumb li::after { content: "›"; margin-left: 8px; color: #b7cad2; }
.crumb li:last-child::after { content: ""; }
.crumb a { color: var(--muted); }

/* ---------- Page head ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: clamp(34px, 3vw + 18px, 60px); }
.page-head h1 { margin-bottom: .35em; }
.page-head .lead { max-width: 62ch; }

/* ---------- Story block ---------- */
.story {
  font-size: clamp(1.2rem, 1.02rem + .95vw, 1.72rem);
  font-weight: 600; line-height: 1.6; color: var(--ink);
  border-left: 4px solid var(--green); padding: 6px 0 6px 26px; margin: 0;
}
.story p { margin: 0 0 .4em; }
.story p:last-child { margin: 0; color: var(--body); font-weight: 500; }

/* ---------- Comparison table ---------- */
.compare { width: 100%; border-collapse: collapse; background: #fff; font-size: 1rem; }
.compare th, .compare td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--surface); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 34%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
@media (max-width: 620px) { .compare { font-size: .94rem; } .compare th, .compare td { padding: 13px 14px; } }

/* ---------- Punchline ---------- */
.punch {
  margin: 40px 0 0; text-align: center;
  font-size: clamp(1.25rem, 1.05rem + 1.05vw, 1.95rem);
  font-weight: 700; line-height: 1.45; color: var(--ink);
  padding: 34px 22px; background: var(--green-50); border-radius: var(--radius-lg);
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 15px; top: 12px; bottom: 12px;
  width: 2px; background: linear-gradient(var(--green), #cfe0e8);
}
.timeline li { position: relative; padding: 0 0 30px 52px; margin: 0; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 8px; top: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--green);
}
.timeline h3 { font-size: 1.1rem; margin-bottom: .25em; }
.timeline p { margin: 0; }

/* ---------- Note pill under CTA ---------- */
.note-line { font-size: .94rem; color: var(--muted); margin: 18px 0 0; }
.note-line strong { color: var(--ink); font-weight: 600; }

/* ---------- Legal disclaimer ---------- */
.legal {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 22px;
  font-size: .86rem; line-height: 1.65; color: #90aab8; max-width: 78ch;
}
.legal strong { color: #c6d9e3; font-weight: 600; }

/* ---------- IP badges ---------- */
.ip-badges { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 24px 0 0; list-style: none; }
.ip-badges li {
  display: inline-flex; align-items: center; gap: 9px; margin: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 17px; font-size: .93rem; font-weight: 500; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.ip-badges svg { color: var(--green); flex: none; }

/* ---------- Thai line-break helper ---------- */
/* ----------
   Wrap a Thai phrase that must not break mid-word. ----------
   Wrap a Thai phrase that must not break mid-word. */
.nb { display: inline-block; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card--link:hover { transform: none; }
}

/* =========================================================
   Photo hero + motion layer
   Content is visible by default; motion only applies when JS
   is enabled (html.js), so crawlers always see full content.
   ========================================================= */

/* ---------- Photo hero ---------- */
.hero--photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(86vh, 780px);
  padding: 0;
  background: var(--navy-900);
  overflow: hidden;
}
.hero--photo::after { content: none; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 42%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(102deg, rgba(4,26,38,.94) 0%, rgba(4,26,38,.86) 32%, rgba(4,26,38,.42) 58%, rgba(4,26,38,.12) 78%),
    linear-gradient(0deg, rgba(4,26,38,.55) 0%, rgba(4,26,38,0) 42%);
}
.hero--photo .wrap {
  position: relative; z-index: 2;
  padding-block: clamp(56px, 6vw + 28px, 104px);
}
.hero-copy { max-width: 640px; }
.hero-copy h1 { color: #fff; margin-bottom: .38em; text-shadow: 0 2px 24px rgba(0,0,0,.28); }
.hero-copy h1 .accent { color: #4fdca4; display: block; }
.hero-copy .lead { color: #d7e6ee; max-width: 46ch; font-size: clamp(1.08rem, 1rem + .45vw, 1.32rem); }
.hero-copy .lead strong { color: #fff; }
.hero-copy .note-line { color: #b6cfdb; margin-top: 22px; }
.hero-copy .note-line strong { color: #fff; }
.hero--photo .btn--ghost {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.38); color: #fff;
  backdrop-filter: blur(6px);
}
.hero--photo .btn--ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24);
  color: #eaf4f8; border-radius: 999px; padding: 8px 16px;
  font-size: .9rem; font-weight: 500; margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #4fdca4; flex: none;
  box-shadow: 0 0 0 0 rgba(79,220,164,.7);
}
.js .hero-badge .dot { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(79,220,164,.65); }
  70%  { box-shadow: 0 0 0 10px rgba(79,220,164,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,220,164,0); }
}

@media (max-width: 720px) {
  .hero--photo { min-height: auto; align-items: stretch; }
  .hero__bg img { object-position: 74% 38%; }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(4,26,38,.72) 0%, rgba(4,26,38,.86) 46%, rgba(4,26,38,.95) 100%);
  }
  .hero--photo .wrap { padding-block: 64px 56px; }
}

/* ---------- Figure caption strip under hero ---------- */
.hero-strip { background: var(--navy-900); color: #9db6c3; border-top: 1px solid rgba(255,255,255,.08); }
.hero-strip .wrap {
  display: flex; flex-wrap: wrap; gap: 10px 34px; justify-content: center;
  padding-block: 16px; font-size: .95rem;
}
.hero-strip span { display: inline-flex; align-items: center; gap: 9px; }
.hero-strip svg { color: #4fdca4; flex: none; }

/* ---------- Motion layer ---------- */
.reveal { opacity: 1; transform: none; transition: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.85,.3,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

.js .anim { opacity: 0; animation: riseIn .85s cubic-bezier(.22,.85,.3,1) forwards; }
.js .anim--1 { animation-delay: .05s; }
.js .anim--2 { animation-delay: .18s; }
.js .anim--3 { animation-delay: .31s; }
.js .anim--4 { animation-delay: .44s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.js .hero__bg img { animation: slowZoom 9s cubic-bezier(.2,.6,.3,1) forwards; }
@keyframes slowZoom { from { transform: scale(1.07); } to { transform: scale(1); } }

/* staggered children inside a revealed grid */
.js .reveal.is-in > * { animation: riseIn .7s cubic-bezier(.22,.85,.3,1) backwards; }
.js .reveal.is-in > *:nth-child(2) { animation-delay: .09s; }
.js .reveal.is-in > *:nth-child(3) { animation-delay: .18s; }
.js .reveal.is-in > *:nth-child(4) { animation-delay: .27s; }

/* header gains depth once the page scrolls */
.site-header { transition: box-shadow .25s ease, background-color .25s ease; }
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(10,58,82,.09); background: rgba(255,255,255,.97); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .anim, .js .reveal.is-in > * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .js .hero__bg img { animation: none; }
  .js .hero-badge .dot { animation: none; }
}

/* =========================================================
   Layout refinements — wider use of the canvas
   ========================================================= */

/* Section intro: keep measure readable but allow a wider column */
.narrow { max-width: 760px; }
.section-head { max-width: 720px; }

/* FAQ page: two-column layout so the page fills the canvas */
.faq-block { display: grid; gap: 18px; padding-top: 46px; }
.faq-block + .faq-block { border-top: 1px solid var(--line); }
@media (min-width: 940px) {
  .faq-block { grid-template-columns: 280px 1fr; gap: 56px; }
  .faq-block__head { position: sticky; top: 96px; align-self: start; }
}
.faq-block__head h2 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.75rem); margin: 0; }
.faq-block__head p { font-size: .95rem; color: var(--muted); margin: 8px 0 0; }
.faq-block .faq { border-top: 0; }
.faq-block .faq details:first-child { border-top: 1px solid var(--line); }

/* Wide media figure — fills its column instead of floating small */
.figure--wide { max-width: none; }
.figure--wide img { width: 100%; }
.media-split { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) { .media-split { grid-template-columns: 1.05fr .95fr; gap: 52px; } }
@media (min-width: 900px) { .media-split--rev > *:first-child { order: 2; } }

/* Cover image inside a figure, cropped to a pleasant ratio */
.figure--cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.figure--cover picture { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.figure--portrait picture { display: block; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; }
.figure--portrait img { width: 100%; height: 100%; object-fit: cover; }

/* Banner strip with an image behind a short line of copy */
.banner {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  min-height: 300px; display: flex; align-items: flex-end;
  background: var(--navy);
}
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4,26,38,.9) 0%, rgba(4,26,38,.72) 42%, rgba(4,26,38,.2) 100%);
}
.banner__copy { position: relative; z-index: 2; padding: 34px; max-width: 620px; }
.banner__copy h2, .banner__copy p { color: #fff; }
.banner__copy p { margin: 0; color: #cfe0e8; }
.banner__copy h2 { margin-bottom: .3em; }

/* Card icon variants used on the organisation pages */
.card__icon--amber { background: #fdf3e0; color: #a9791a; }
.card__icon--navy { background: #e7eef2; color: var(--navy); }

/* Privacy cards stacked beside the portrait photo */
.privacy-cards .card + .card { margin-top: 16px; }

/* =========================================================
   Footer rework — three even blocks, readable logo,
   small legal line sitting above the copyright row
   ========================================================= */
.site-footer { padding: 60px 0 28px; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 44px; } }

/* Logo sits on a white plate so the brand colours stay intact */
.footer-brand img { filter: none; opacity: 1; margin: 0; height: 28px; width: auto; }
.footer-logo {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 12px; padding: 10px 16px; margin-bottom: 18px;
}
.footer-brand p { margin: 0; max-width: 34ch; }

.site-footer h3 { letter-spacing: .08em; }

.footer-bottom {
  display: block;
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 40px; padding-top: 20px;
}
.footer-bottom .legal {
  border: 0; margin: 0 0 16px; padding: 0;
  font-size: .78rem; line-height: 1.6; color: #7e98a7; font-weight: 400; max-width: 92ch;
}
.footer-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between;
  font-size: .88rem; color: #9db6c3;
}
