/* Geochin International School, shared site styles.
   One stylesheet for every page. The design is drawn from the school itself:
   the interlocking hexagons of the GIS crest, the green and red of the logo,
   and the blue and orange of the school uniform. */

/* Fonts are hosted with the site itself, so pages load them without waiting on another website. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); }

:root {
  --bg: #FCFDFB;
  --bg-alt: #EEF4EC;
  --surface: #FFFFFF;
  --ink: #0C1F15;
  --ink-soft: #425449;
  --green: #0B8F45;
  --green-deep: #06361D;
  --green-ink: #0A6B34;
  --red: #E1262C;
  --blue: #1D3FA8;
  --orange: #F2862A;
  --line: rgba(12, 31, 21, 0.14);
  --focus: #1D3FA8;
  --hex: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);

  --font-head: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 76px;
  --gutter: clamp(18px, 4vw, 40px);
  --section-pad: clamp(60px, 8vw, 110px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B140F;
    --bg-alt: #121E16;
    --surface: #16241B;
    --ink: #EAF2EC;
    --ink-soft: #AFC0B4;
    --green: #35B96B;
    --green-deep: #04210F;
    --green-ink: #63D58D;
    --blue: #7F9BFF;
    --line: rgba(234, 242, 236, 0.16);
    --focus: #9DB2FF;
  }
}
:root[data-theme="dark"] {
  --bg: #0B140F;
  --bg-alt: #121E16;
  --surface: #16241B;
  --ink: #EAF2EC;
  --ink-soft: #AFC0B4;
  --green: #35B96B;
  --green-deep: #04210F;
  --green-ink: #63D58D;
  --blue: #7F9BFF;
  --line: rgba(234, 242, 236, 0.16);
  --focus: #9DB2FF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--green); color: #fff; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }
.measure { max-width: 62ch; }

h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5.6vw, 5.1rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); line-height: 1.05; letter-spacing: -0.028em; }
h3 { font-size: 1.28rem; line-height: 1.22; letter-spacing: -0.015em; }

section { padding: var(--section-pad) 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav { display: flex; align-items: center; gap: 24px; height: var(--header-h); max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em; color: var(--ink); }
.brand-text span { font-size: 0.74rem; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-soft); margin-top: 3px; }

.links { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); }
.links a {
  text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--ink-soft);
  padding: 8px 0; border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease;
}
.links a:hover { color: var(--ink); border-color: var(--green); }
.links a[aria-current="page"] { color: var(--ink); border-color: var(--green); }
.links .nav-cta {
  background: var(--green-deep); color: #fff; padding: 11px 20px; border-radius: 999px; border: 0;
  font-weight: 600; white-space: nowrap; transition: background .15s ease;
}
.links .nav-cta:hover { background: var(--green-ink); color: #fff; }
:root[data-theme="dark"] .links .nav-cta { background: var(--green); color: #04210F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .links .nav-cta { background: var(--green); color: #04210F; } }

.menu-btn {
  display: none; background: none; border: 1px solid var(--line); color: var(--ink);
  width: 46px; height: 46px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; position: relative; z-index: 71; }
  .links {
    position: fixed; inset: 0; z-index: 70; background: var(--bg);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: calc(var(--header-h) + 18px + env(safe-area-inset-top, 0px)) var(--gutter) 40px;
    overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .links.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .links a { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .links a:hover, .links a[aria-current="page"] { border-color: var(--line); color: var(--green-ink); }
  .links .nav-cta { margin-top: 22px; text-align: center; font-family: var(--font-body); font-size: 1.05rem; padding: 16px 20px; border-bottom: 0; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 16px 26px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-ink); }
:root[data-theme="dark"] .btn-primary { color: #04210F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #04210F; } }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* ---------- Hexagon helpers ---------- */
.hex { clip-path: var(--hex); }
.hex img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Home hero ---------- */
.hero { padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { max-width: 13.5ch; font-size: clamp(2.6rem, 5.4vw, 5.2rem); }
.hero .lede { margin-top: 26px; font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: var(--ink-soft); max-width: 46ch; }
.hero-ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.mosaic {
  --cw: clamp(104px, 15.2vw, 212px);
  position: relative;
  width: calc(var(--cw) * 3.12);
  height: calc(var(--cw) * 3.02);
  flex: none;
}
.cell {
  position: absolute; width: var(--cw); aspect-ratio: 0.866;
  left: calc(var(--cw) * var(--x) * 1.04); top: calc(var(--cw) * var(--y) * 1.04);
  clip-path: var(--hex); background: var(--green-deep); overflow: hidden;
}
.cell img { width: 100%; height: 100%; object-fit: cover; }
.cell.c-green { background: var(--green); }
.cell.c-orange { background: var(--orange); }
.cell.c-red { background: var(--red); }
.cell.c-blue { background: var(--blue); }

@media (prefers-reduced-motion: no-preference) {
  .cell { animation: pop .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 90ms); }
  @keyframes pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
}

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .mosaic { --cw: calc((100vw - 2 * var(--gutter)) / 3.14); margin: 8px auto 0; }
  .hero h1 { max-width: 13.5ch; }
}

/* ---------- Facts strip ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; background: var(--bg); }
.facts .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 26px 24px 26px 0; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
.fact b { display: block; font-family: var(--font-head); font-size: 1.3rem; letter-spacing: -0.02em; font-weight: 700; }
.fact span { color: var(--ink-soft); font-size: 0.97rem; }
@media (max-width: 760px) {
  .facts .wrap { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 18px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
}

/* ---------- About ---------- */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid p { color: var(--ink-soft); font-size: 1.1rem; max-width: 60ch; }
.about-grid p + p { margin-top: 18px; }
.about-grid h2 { max-width: 16ch; }
.about-photo { display: grid; grid-template-columns: 1fr; place-items: center; }
.about-photo .hex-photo { width: min(100%, 380px); aspect-ratio: 0.866; clip-path: var(--hex); overflow: hidden; background: var(--green-deep); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about .wrap.about-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) { .about .wrap.about-split { grid-template-columns: 1fr; } .about-photo { order: -1; } .about-photo .hex-photo { width: min(70%, 300px); } }
.about-copy h2 { margin-bottom: 26px; max-width: 18ch; }
.about-copy p { color: var(--ink-soft); font-size: 1.1rem; max-width: 60ch; }
.about-copy p + p { margin-top: 18px; }

/* ---------- Section heads ---------- */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; gap: 14px; } }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; max-width: 52ch; }
.section-head h2 { max-width: 16ch; }

/* ---------- Programs path ---------- */
.programs { background: var(--bg-alt); }
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(18px, 2.4vw, 36px); position: relative; }
.path::before {
  content: ""; position: absolute; left: 44px; right: calc(25% - 44px + 8px); top: 50px; height: 3px; background: var(--ink); opacity: .85; z-index: 0;
}
.stage { position: relative; z-index: 1; }
.stage .node {
  width: 88px; aspect-ratio: 0.866; height: auto; clip-path: var(--hex); background: var(--stage, var(--green));
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 0.86rem; line-height: 1.05; text-align: center; letter-spacing: -0.01em;
  margin-bottom: 22px; padding: 0 6px;
}
.stage h3 { margin-bottom: 10px; font-size: 1.45rem; }
.stage p { color: var(--ink-soft); font-size: 1rem; }
.stage .more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 0.98rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--stage, var(--green)); }
.stage .age { display: block; font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.stage.s-orange { --stage: var(--orange); }
.stage.s-green { --stage: var(--green); }
.stage.s-blue { --stage: var(--blue); }
.stage.s-red { --stage: var(--red); }
@media (max-width: 920px) {
  .path { grid-template-columns: 1fr; gap: 0; }
  .path::before { left: 43px; right: auto; top: 50px; bottom: 50px; width: 3px; height: auto; }
  .stage { display: grid; grid-template-columns: 88px 1fr; column-gap: 22px; padding-bottom: 38px; }
  .stage:last-child { padding-bottom: 0; }
  .stage .node { margin-bottom: 0; grid-row: 1 / span 4; }
}

/* ---------- Gallery ---------- */
.gallery { background: var(--bg); }
.gallery-grid { column-count: 3; column-gap: 14px; }
@media (max-width: 900px) { .gallery-grid { column-count: 2; } }
.gallery-grid figure { margin: 0 0 14px; break-inside: avoid; position: relative; overflow: hidden; background: var(--bg-alt); border-radius: 4px; }
.gallery-grid img, .gallery-grid video { width: 100%; height: auto; display: block; cursor: zoom-in; }
.gallery-grid video { cursor: default; }
.gallery-grid figcaption { padding: 10px 2px 2px; font-size: 0.92rem; color: var(--ink-soft); }
.gallery-grid figure { background: transparent; }
.gallery-grid figure img { transition: opacity .2s ease; }
.gallery-grid figure img:hover { opacity: .92; }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
dialog.lightbox::backdrop { background: rgba(5, 12, 8, 0.92); }
.lightbox-inner { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; gap: 14px; }
.lightbox img { max-width: min(1100px, 100%); max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lightbox .cap { color: #EAF2EC; font-size: 1rem; text-align: center; }
.lightbox .close { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; background: #fff; color: #0C1F15; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; }

/* ---------- Admissions steps ---------- */
.admissions { background: var(--bg-alt); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(22px, 2.6vw, 40px); }
.steps.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps.cols-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }
.step { border-top: 3px solid var(--ink); padding-top: 22px; }
.step .num {
  width: 46px; aspect-ratio: 0.866; height: auto; clip-path: var(--hex); background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
  margin-bottom: 18px; padding-bottom: 1px;
}
:root[data-theme="dark"] .step .num { color: #04210F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .step .num { color: #04210F; } }
.step h3 { margin-bottom: 10px; }
.step h3 a { text-decoration: none; }
.step h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.step p { color: var(--ink-soft); font-size: 1rem; }
.step p a { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.tight { padding-top: 0; }

/* ---------- Enquiry form ---------- */
.enquiry-form { margin-top: clamp(40px, 6vw, 72px); padding: clamp(24px, 4vw, 52px); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.enquiry-form h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.enquiry-form .form-note { color: var(--ink-soft); margin-bottom: 30px; max-width: 60ch; }
.enquiry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 680px) { .enquiry-grid { grid-template-columns: 1fr; } }
.enquiry-grid .field-full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.95rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%23425449' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.form-actions { margin-top: 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.enquiry-form button[type="submit"]:disabled { opacity: .6; cursor: default; }
.form-status { font-size: 1rem; font-weight: 500; }
.form-status.success { color: var(--green-ink); }
.form-status.error { color: #B3261E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-status.error { color: #F0968D; } }
:root[data-theme="dark"] .form-status.error { color: #F0968D; }

/* ---------- Portal ---------- */
.portal { background: var(--green-deep); color: #EAF2EC; position: relative; overflow: hidden; }
.portal .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; position: relative; z-index: 1; }
@media (max-width: 860px) { .portal .wrap { grid-template-columns: 1fr; } }
.portal h2 { color: #fff; max-width: 14ch; }
.portal .lede { color: #B9D2C2; margin-top: 20px; font-size: 1.12rem; max-width: 46ch; }
.portal-cards { display: flex; flex-direction: column; }
.portal-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; border-top: 1px solid rgba(255,255,255,.22); text-decoration: none; color: #fff;
  transition: padding-left .2s ease;
}
.portal-card:last-child { border-bottom: 1px solid rgba(255,255,255,.22); }
.portal-card:hover { padding-left: 10px; }
.portal-card .who { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; }
.portal-card .go { color: #F6B36B; font-weight: 600; font-size: 0.98rem; white-space: nowrap; }
.portal .deco { position: absolute; right: -170px; top: -90px; width: 380px; aspect-ratio: .866; clip-path: var(--hex); background: rgba(255,255,255,.05); }
.portal .deco.two { right: 120px; top: auto; bottom: -150px; width: 260px; background: rgba(255,255,255,.04); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.addr-block { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--line); }
.addr-block svg { flex: none; margin-top: 4px; color: var(--green-ink); }
.addr-block h3 { margin-bottom: 6px; font-size: 1.12rem; }
.addr-block p { color: var(--ink-soft); }
.addr-block a { text-decoration: underline; text-underline-offset: 3px; }
.contact-grid > div:first-child h2 { margin-bottom: 30px; }
.map-card { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.map-card .map-image { width: 100%; aspect-ratio: 4 / 3; }
.map-card .map-image iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-card .map-info { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 24px; }
.map-pin { width: 46px; aspect-ratio: .866; height: auto; clip-path: var(--hex); background: var(--green); display: flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.map-card h3 { font-size: 1.1rem; }
.map-card p { color: var(--ink-soft); font-size: .95rem; }
.map-card .map-info > div:nth-of-type(1) { flex: 1; min-width: 180px; }
.map-card .btn { padding: 13px 20px; font-size: .95rem; }

/* ---------- Inner page head ---------- */
.page-head { padding: clamp(36px, 5vw, 72px) 0 clamp(36px, 5vw, 64px); background: var(--bg-alt); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 5vw, 80px); align-items: center; position: relative; z-index: 1; }
.page-head.no-art .wrap { grid-template-columns: 1fr; }
.crumbs { font-size: .95rem; color: var(--ink-soft); margin-bottom: 20px; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 4.4rem); max-width: 16ch; }
.page-head .lede { margin-top: 20px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft); max-width: 56ch; }
.head-art { position: relative; width: clamp(200px, 26vw, 340px); aspect-ratio: 1; flex: none; }
.head-art .h { position: absolute; clip-path: var(--hex); background: var(--stage, var(--green)); overflow: hidden; aspect-ratio: .866; }
.head-art .h img { width: 100%; height: 100%; object-fit: cover; }
.head-art .h1 { width: 66%; left: 17%; top: 0; }
.head-art .h2 { width: 34%; left: 0; top: 54%; background: var(--ink); }
.head-art .h3 { width: 30%; right: 0; top: 66%; background: var(--stage, var(--green)); opacity: .9; }
.head-art.no-photo .h1 { background: var(--stage, var(--green)); }
.head-art.no-photo .h2 { background: var(--ink); }
.head-art.no-photo .h3 { background: var(--bg); border: 0; background: color-mix(in srgb, var(--stage, var(--green)) 35%, var(--bg-alt)); }
@media (max-width: 720px) { .page-head .wrap { grid-template-columns: 1fr; } .head-art { display: none; } }
.stage-orange { --stage: var(--orange); }
.stage-green { --stage: var(--green); }
.stage-blue { --stage: var(--blue); }
.stage-red { --stage: var(--red); }

/* ---------- Inner page body ---------- */
main > section > .wrap > .measure { max-width: 66ch; }
.prose p { font-size: 1.12rem; line-height: 1.7; color: var(--ink-soft); }
.prose p + p { margin-top: 20px; }
.prose a, main p a { text-decoration: underline; text-underline-offset: 3px; }
.related { padding: 0 0 clamp(48px, 6vw, 80px); }
.related p { border-top: 1px solid var(--line); padding-top: 22px; color: var(--ink-soft); font-size: 1rem; }
.related a { font-weight: 600; }
.legal > div { padding: 28px 0; border-top: 1px solid var(--line); }
.legal > div:last-child { margin-bottom: 0; }
.legal h2 { font-size: 1.5rem; margin-bottom: 12px; }
.legal p { color: var(--ink-soft); }
.legal p + p { margin-top: 10px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green-deep); color: #EAF2EC; padding: clamp(48px, 6vw, 80px) 0; }
.cta-band .section-head { margin-bottom: 0; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 18ch; }
.cta-band p { color: #B9D2C2; font-size: 1.05rem; }
.cta-band a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9D8CE; padding: clamp(44px, 6vw, 72px) 0 calc(30px + env(safe-area-inset-bottom, 0px)); }
:root[data-theme="dark"] .site-footer { background: #060D09; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { background: #060D09; } }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .fbrand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.site-footer .fbrand img { width: 46px; height: 46px; border-radius: 6px; }
.site-footer .fbrand b { font-family: var(--font-head); font-size: 1.35rem; color: #fff; letter-spacing: -0.02em; }
.site-footer h4 { font-family: var(--font-head); color: #fff; font-size: 1.05rem; margin: 0 0 14px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; color: #fff; }
.site-footer p { font-size: .98rem; line-height: 1.55; }
.footer-base { margin-top: clamp(32px, 5vw, 56px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); font-size: .9rem; color: #94AB9B; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.footer-base a { text-decoration: underline; text-underline-offset: 3px; color: #C9D8CE; }

/* ---------- WhatsApp ---------- */
.whatsapp-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 50; width: 60px; height: 60px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,.28);
  transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
