/* v7 polish: the last layer on every page. first-screen motion, field shadows, contrast fixes. */

/* first screen: revealed at once by motion.js (.now), quick and lightly staggered */
.js .now[data-reveal] { transition-duration: 0.55s, 0.6s; transition-delay: calc(var(--i, 0) * 40ms); }
.now[data-split] .w > span { transition-duration: 0.7s; transition-delay: calc(var(--i, 0) * 28ms + var(--d, 0ms)); }

/* fields: a hairline and a hint of depth on every page, so a white field on a white card still reads as a field */
:is(input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="range"], [type="submit"], [type="button"]), select, textarea):not(.hp, [tabindex="-1"]) {
  border-color: rgba(11, 22, 64, 0.16);
  box-shadow: inset 0 1px 2px rgba(11, 22, 64, 0.07), 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 16px -10px rgba(11, 22, 64, 0.28);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
:is(input, select, textarea):not([type="checkbox"], [type="radio"]):hover { border-color: rgba(11, 22, 64, 0.3); }
:is(input, select, textarea):not([type="checkbox"], [type="radio"]):focus-visible,
:is(input, select, textarea):not([type="checkbox"], [type="radio"]):focus {
  border-color: #1f37d6;
  box-shadow: inset 0 1px 2px rgba(11, 22, 64, 0.06), 0 0 0 4px rgba(31, 55, 214, 0.16);
}
:is(input, select, textarea)[aria-invalid="true"] { border-color: #c2341b; }

/* ddgip: payment check folded under the apply form, after the pay step */
.ddgip-check {
  margin-top: 22px;
  border: 1px solid rgba(11, 22, 64, 0.14);
  border-radius: 18px;
  background: #f6f7fc;
  color: #0b1640;
}
.ddgip-check > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  border-radius: 18px;
}
.ddgip-check > summary::-webkit-details-marker { display: none; }
.ddgip-check > summary:focus-visible { outline: 3px solid #1f37d6; outline-offset: 2px; }
.ddgip-check__k { font: 700 0.7rem/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: #4a5378; }
.ddgip-check > summary strong { font: 800 1.05rem/1.2 var(--font); color: #0b1640; }
.ddgip-check > summary i {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(11, 22, 64, 0.16);
  font: 700 1.1rem/1 var(--font);
  font-style: normal;
  color: #1f37d6;
  transition: rotate 0.3s ease;
}
.ddgip-check[open] > summary i { rotate: 45deg; }
.ddgip-check > summary:hover i { background: #1f37d6; color: #fff; border-color: #1f37d6; }
.ddgip-check__lead { margin: 0; padding: 0 22px; color: #4a5378; font-size: 0.95rem; line-height: 1.5; }
.ddgip-check .ddgip-check__form { margin: 0; padding: 16px 22px 22px; background: none; box-shadow: none; border: 0; }
@media (max-width: 560px) {
  .ddgip-check > summary { flex-wrap: wrap; padding: 16px 18px; }
  .ddgip-check__k { flex-basis: 100%; }
  .ddgip-check__lead, .ddgip-check .ddgip-check__form { padding-inline: 18px; }
}
.ddgip-check .ddgip-submit-row { background: none; padding: 4px 0 0; margin: 0; box-shadow: none; }
.ddgip-check .ddgip-form-status:empty { min-height: 0; margin: 0; }

/* the underline-style email field (subscribe bands) becomes a real field so the hint shadow sits on a shape */
.subscribe input[type="email"] {
  padding: 14px 18px;
  border: 1px solid rgba(11, 22, 64, 0.16);
  border-radius: 14px;
  background: #fff;
  color: #0b1640;
  font-size: 1.1rem;
}
.subscribe input[type="email"]::placeholder { color: #6b7394; }

/* ---------- v7 contrast pass: buttons never inherit a surface-relative --ink ---------- */
[hidden] { display: none !important; }
.btn--dark { --bg: #0b1640; --fg: #fff; background: #0b1640; border-color: #0b1640; color: #fff; }
.btn--light { --bg: #fff; --fg: #0b1640; background: #fff; border-color: rgba(11, 22, 64, 0.16); color: #0b1640; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 8px 20px -14px rgba(11, 22, 64, 0.45); }
.btn--light:hover { background: #0b1640; border-color: #0b1640; color: #fff; }
/* on the dark heroes and navy bands: light = outlined glass, dark = white */
:is(.page-hero, .hero:not(.hero--floor), .section--ink, #what, #work, .cta-band, #contact) .btn--light { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.55); color: #fff; box-shadow: none; backdrop-filter: blur(6px); }
:is(.page-hero, .hero:not(.hero--floor), .section--ink, #what, #work, .cta-band, #contact) .btn--light:hover { background: #fff; border-color: #fff; color: #0b1640; }
:is(.page-hero, .hero:not(.hero--floor), .section--ink, #what, #work, .cta-band, #contact) .btn--dark { background: #fff; border-color: #fff; color: #0b1640; }
.btn[disabled] { translate: none; box-shadow: none; }

/* light-grey "on dark" text left over from the old cream system */
.section--ink, #what, #work, .cta-band, #contact, .jump { --on-dark: rgba(255, 255, 255, 0.74); --label-dark: rgba(255, 255, 255, 0.62); }
.section--ink .points span { color: rgba(255, 255, 255, 0.74); }
.steps__list li.is-now b { background: #ffb35c; color: #0b1640; }
.print__cap small { color: #a4500a; }
.stack__hint { color: rgba(255, 255, 255, 0.64); }
.btn[disabled], .btn[disabled]:hover { opacity: 1; background: #eceef6; border-color: #dfe2ee; color: #555e80; cursor: not-allowed; }

/* inner-page dawn heroes: a deep scrim behind the copy column so white text holds AA over the
   lilac/peach glow (audit 11-16: leads measured 1.7-3.5:1). glow stays visible on the right. */
.page-hero .aurora { opacity: 0.4; }
.page-hero::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 10, 44, 0.72) 0%, rgba(5, 10, 44, 0.5) 42%, rgba(5, 10, 44, 0.08) 78%),
    linear-gradient(0deg, rgba(5, 10, 44, 0.45), rgba(5, 10, 44, 0) 60%);
}
.page-hero .lead, .page-hero p, .page-hero .doc-meta { color: #eef1ff; }
.page-hero .eyebrow { background: rgba(5, 10, 44, 0.35); }
@media (max-width: 720px) {
  .page-hero::after { background: linear-gradient(180deg, rgba(5, 10, 44, 0.35), rgba(5, 10, 44, 0.66) 55%, rgba(5, 10, 44, 0.72)); }
}
/* hero pills + ghost buttons: navy glass so white labels hold over the glow; hover = solid white */
.page-hero .jumpnav a, :is(.page-hero, .hero:not(.hero--floor)) .btn--ghost { background: rgba(6, 12, 52, 0.42); border-color: rgba(255, 255, 255, 0.5); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.page-hero .jumpnav a:hover, :is(.page-hero, .hero:not(.hero--floor)) .btn--ghost:hover { background: #fff; border-color: #fff; color: #0b1640; }

/* reel: kind labels sit on a navy glass chip so they read on any photo (bright flags / UN emblem washed them out) */
#work .tile__k { right: auto; max-width: calc(100% - 36px); padding: 7px 11px 7px 10px; border-radius: 999px; background: rgba(6, 12, 52, 0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); text-shadow: none; }
#work .tile__img::after { background: linear-gradient(180deg, rgba(3, 6, 26, 0.3) 0%, rgba(3, 6, 26, 0) 26%, rgba(3, 6, 26, 0) 40%, rgba(3, 6, 26, 0.94) 100%); }

/* v7.1 writing (11-16): key/value tables in guides (the brief's worked example) stack on phone instead of a squeezed 40% label column */
.article th { width: 9rem; vertical-align: top; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 11px; }
@media (max-width: 600px) {
  .article table, .article tbody, .article tr, .article th, .article td { display: block; width: auto; }
  .article tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .article th, .article td { border: 0; padding: 0; }
  .article th { margin-bottom: 4px; }
}

/* v7.2 board grid (11-16): one tile math for headers and rows. tile = .8fs, gap = .1fs, row gap = .9fs,
   so destination = 18 tiles = 16.1fs, gate = 1.7fs, remarks = 8fs; total 27.6fs + 1fs row padding.
   letters were drawn at 1fs inside .8fs tiles (W, M spilled into gaps); now .7fs, centred, tabular. */
.board__rows, .board__cols { --fs: calc(100cqi / 28.8); }
.board__cols { grid-template-columns: calc(var(--fs) * 17) calc(var(--fs) * 2.6) 1fr; }
.flaps i { font-size: calc(var(--fs) * 0.7); line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; }
/* tablet (601-900): the board has room for all three columns, so keep gate + remarks */
@media (min-width: 601px) and (max-width: 900px) {
  .board { padding: clamp(16px, 2.2vw, 28px); }
  .board__rows, .board__cols { --fs: calc(100cqi / 28.8); }
  .board__cols { grid-template-columns: calc(var(--fs) * 17) calc(var(--fs) * 2.6) 1fr; }
  .flaps--gate, .flaps--rem { display: flex; }
  .c-gate, .c-rem { display: block; }
  .sh-footer .dep { gap: calc(var(--fs) * 0.9); }
  .flaps { gap: calc(var(--fs) * 0.1); }
  .flaps i { height: calc(var(--fs) * 1.28); }
}
/* phone: destination only, tiles big */
@media (max-width: 600px) {
  .board__rows, .board__cols { --fs: calc(100cqi / 16.5); }
  .board__cols { grid-template-columns: 1fr; }
  .flaps i { font-size: calc(var(--fs) * 0.74); }
}

/* recognition, v7.6 (11-17, "premium"): one data list in build.mjs (SEALS), two looks.
   .seals = compact register for narrow columns (about prose, ddgip apply aside): one white card, a row per mark,
   porcelain plate + tone bar (UN blue / saffron / WEF blue) + kind, name, note. Stacks under 30rem of its own width.
   .rec = the home band "on the record": ink sky, three porcelain plates big enough that the thin WEF arc stays a line
   (it vanishes under ~170px wide), sheen on hover, staggered rise. Marks are never recoloured or cropped. */
.seals { list-style: none; margin: 1.75rem 0 0; padding: 0; container-type: inline-size; background: #fff; color: #0b1430; border: 1px solid rgba(11, 20, 48, .12); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 50px -32px rgba(11, 22, 64, .35); }
.seals__i { position: relative; display: grid; grid-template-columns: 13rem minmax(0, 1fr); align-items: center; gap: 1.25rem; padding: 1rem 1.25rem 1rem 1.1rem; }
.seals__i + .seals__i { border-top: 1px solid rgba(11, 20, 48, .09); }
.seals__i::before { content: ""; position: absolute; left: 0; top: 1.1rem; bottom: 1.1rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--tone); }
.seals__i--un { --tone: #009edb; } .seals__i--in { --tone: #ff9933; } .seals__i--wef { --tone: #00508f; }
.seals__mark { --px: 1.1rem; --py: 1rem; position: relative; height: 8.5rem; background: #fff; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(11, 20, 48, .1); }
.seals__i--wef .seals__mark { --px: .9rem; --py: 1.1rem; }
.seals__mark img { position: absolute; inset: var(--py) var(--px); width: calc(100% - 2 * var(--px)); height: calc(100% - 2 * var(--py)); max-width: none; max-height: none; object-fit: contain; }
.seals__t { display: grid; gap: .2rem; min-width: 0; }
.seals__t em { font-style: normal; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #7a4f0e; }
.seals__t b { font-size: 1.05rem; line-height: 1.25; color: #0b1430; }
.seals__t small { font-size: .84rem; line-height: 1.4; color: #4a5478; }
@container (max-width: 30rem) {
  .seals__i { grid-template-columns: minmax(0, 1fr); gap: .8rem; padding: 1rem; }
  .seals__mark { height: 8.5rem; }
}

.rec { position: relative; isolation: isolate; overflow: clip; padding: clamp(4.5rem, 9vw, 8.5rem) 0; background: radial-gradient(60% 70% at 50% 0%, #10226b 0%, rgba(16, 34, 107, 0) 70%), linear-gradient(180deg, #050a24 0%, #070e30 100%); color: #fff; }
.rec__sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 75%); }
.rec__sky i { position: absolute; left: 50%; top: -38vw; width: 76vw; aspect-ratio: 1; translate: -50% 0; border: 1px solid rgba(255, 255, 255, .07); border-radius: 50%; }
.rec__sky i:nth-child(2) { width: 104vw; top: -52vw; border-color: rgba(255, 255, 255, .05); }
.rec__sky i:nth-child(3) { width: 132vw; top: -66vw; border-color: rgba(255, 179, 92, .08); }
.rec__head { max-width: 46rem; margin: 0 auto; text-align: center; }
.rec__eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.1rem; font-size: .78rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #ffb35c; }
.rec__eyebrow::before, .rec__eyebrow::after { content: ""; width: 1.75rem; height: 1px; background: currentColor; opacity: .6; }
.rec__h { margin: 0; font-size: clamp(2.2rem, 4.8vw, 4.3rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 750; color: #fff; text-wrap: balance; }
.rec__h span { color: #ffb35c; }
.rec__lead { margin: 1.25rem auto 0; max-width: 34rem; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.55; color: rgba(255, 255, 255, .8); }
.rec__list { list-style: none; margin: clamp(2.75rem, 5vw, 4.25rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 1.6vw, 1.5rem); }
.rec__i { position: relative; display: grid; align-content: start; padding: .75rem .75rem 1.6rem; background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025)); border: 1px solid rgba(255, 255, 255, .13); border-radius: 26px; transition: translate .5s cubic-bezier(.2, .8, .2, 1), border-color .4s ease, background .4s ease; }
.rec__i--un { --tone: #4fb8ef; } .rec__i--in { --tone: #ff9933; } .rec__i--wef { --tone: #5d9fe0; }
.rec__plate { position: relative; overflow: hidden; height: clamp(13rem, 19vw, 16.5rem); border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 34px 60px -34px rgba(0, 0, 0, .75); }
.rec__plate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .8) 50%, transparent 62%); translate: -120% 0; pointer-events: none; }
.rec__mark { position: absolute; inset: 16% 24%; }
.rec__i--in .rec__mark { inset: 12% 32%; }
.rec__i--wef .rec__mark { inset: 24% 12%; }
.rec__mark img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.rec__n { position: absolute; top: 1.4rem; right: 1.5rem; font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: #3d4a66; font-variant-numeric: tabular-nums; }
.rec__kind { display: flex; align-items: center; gap: .6rem; margin: 1.35rem .75rem 0; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #ffb35c; }
.rec__kind::before { content: ""; width: 1.4rem; height: 3px; border-radius: 3px; background: var(--tone); }
.rec__name { margin: .55rem .75rem 0; font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.2; letter-spacing: -.015em; color: #fff; }
.rec__note { margin: .4rem .75rem 0; font-size: .92rem; line-height: 1.45; color: rgba(255, 255, 255, .78); }
.js .rec__i[data-reveal]:nth-child(2) { transition-delay: .12s; }
.js .rec__i[data-reveal]:nth-child(3) { transition-delay: .24s; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .rec__i:hover { translate: 0 -6px; border-color: rgba(255, 179, 92, .45); background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035)); }
  .rec__i:hover .rec__plate::after { translate: 120% 0; transition: translate 1.1s cubic-bezier(.2, .7, .2, 1); }
}
@media (max-width: 900px) {
  .rec__list { grid-template-columns: minmax(0, 1fr); max-width: 40rem; margin-inline: auto; }
  .rec__i { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); column-gap: 1.25rem; align-items: center; padding: .75rem 1rem .75rem .75rem; }
  .rec__plate { grid-row: 1 / span 3; height: 11.5rem; }
  .rec__kind, .rec__name, .rec__note { margin-inline: 0; }
  .rec__kind { margin-top: 0; }
  .rec__n { top: 1.1rem; right: auto; left: 1.3rem; }
  .rec__i--wef .rec__mark { inset: 20% 11%; }
}
@media (max-width: 560px) {
  .rec__h { font-size: 2.15rem; }
  .rec__i { grid-template-columns: minmax(0, 1fr); padding: .6rem .6rem 1.3rem; }
  .rec__plate { grid-row: auto; height: 12rem; }
  .rec__kind { margin: 1.1rem .5rem 0; } .rec__name, .rec__note { margin-inline: .5rem; }
}

/* un credential (11-16, "make it prominent"): white card, emblem, exact accreditation wording, links to darwin-in-un */
.unbadge { display: flex; align-items: center; gap: 1rem; max-width: 34rem; margin-top: 1.5rem; padding: .9rem 1.1rem; background: #fff; color: #0b1430; border: 1px solid rgba(11, 20, 48, .14); border-left: 4px solid #009edb; border-radius: 16px; text-decoration: none; box-shadow: 0 10px 30px rgba(3, 6, 26, .18); transition: transform .25s ease, box-shadow .25s ease; position: relative; z-index: 2; }
.unbadge:hover, .unbadge:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(3, 6, 26, .26); color: #0b1430; }
.unbadge:focus-visible { outline: 3px solid #f5a524; outline-offset: 3px; }
.unbadge__mark { flex: none; width: 3.75rem; height: 3.75rem; display: grid; place-items: center; }
.unbadge__mark img { max-width: 3.75rem; max-height: 3.75rem; width: auto; height: auto; }
.unbadge__t { display: grid; gap: .2rem; min-width: 0; }
.unbadge__t b { font-size: 1rem; line-height: 1.25; color: #0b1430; letter-spacing: .01em; }
.unbadge__t span { font-size: .84rem; line-height: 1.4; color: #3d4a66; }
.unbadge__go { flex: none; align-self: flex-start; font-size: 1.1rem; color: #0a6aa8; }
@media (max-width: 600px) { .unbadge { gap: .75rem; padding: .8rem .9rem; } .unbadge__mark, .unbadge__mark img { width: 3rem; max-width: 3rem; max-height: 3rem; height: auto; } .unbadge__go { display: none; } }
@media (prefers-reduced-motion: reduce) { .unbadge { transition: none; } .unbadge:hover { transform: none; } }
/* un credential, pass 2: white emblem on a un-blue tile; card never wider than 36rem (beats heroprint's container :not(.hp) max-width) */
.unbadge.unbadge { max-width: min(36rem, 100%); }
.unbadge__mark { background: #009edb; border-radius: 12px; }
.unbadge__mark img { max-width: 2.9rem; max-height: 2.9rem; filter: brightness(0) invert(1); }
.unbadge__t b { font-size: 1.05rem; }
@media (max-width: 600px) { .unbadge__mark { width: 3rem; height: 3rem; } .unbadge__mark img { max-width: 2.3rem; max-height: 2.3rem; } }
.page-hero .container:has(> .hp) > .unbadge.unbadge, .page-hero .container:has(> .hp--three) > .unbadge.unbadge { max-width: min(36rem, 100%); }

/* 11-17: the online-sessions fact moved to ddgip only, so home + schools fact rows have three items: three columns, no orphan */
.facts:has(> .fact:nth-child(3):last-child),
.sc-facts:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* paper switch, v7.6b (11-17): footer base, every page. White (default, no data-theme) / Pearl (html[data-theme=pearl]).
   ending.js sets the theme + localStorage "dd-theme" (same key preload.js reads before first paint). */
.paper { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.paper__l { padding: 0 .45rem 0 .6rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.sh-footer .paper__b { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.25rem; padding: .3rem .85rem .3rem .45rem; border: 0; border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: .85rem; font-weight: 650; cursor: pointer; transition: background .25s ease, color .25s ease; }
.paper__b i { width: 1.15rem; height: 1.15rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.paper__b--white i { background: #fff; } .paper__b--pearl i { background: radial-gradient(circle at 35% 30%, #fffdf8, #efe6d4); }
.sh-footer .paper__b[aria-pressed="true"] { background: #fff; color: #0b1640; }
.sh-footer .paper__b:hover { background: rgba(255, 255, 255, .14); }
.sh-footer .paper__b[aria-pressed="true"]:hover { background: #fff; }
.sh-footer .paper__b:focus-visible { outline: 2px solid #ffb35c; outline-offset: 2px; }

/* pearl: the light CTA card (ending.css) keeps a cool lilac gradient that fights warm pearl; same dawn, warm paper. v7.6.2 */
:root[data-theme="pearl"] :is(.cta-band, #contact) > .container {
  background:
    radial-gradient(55% 85% at 92% 112%, rgba(255, 179, 92, 0.55), rgba(255, 179, 92, 0) 62%),
    radial-gradient(45% 70% at 2% 118%, rgba(230, 150, 110, 0.16), rgba(230, 150, 110, 0) 62%),
    linear-gradient(158deg, #fdfbf6 0%, #f8f3e9 46%, #fbecd9 100%);
  border-color: rgba(58, 44, 18, 0.1);
}

/* gradient em + motion.js word split (v7.6.2): the .w inline-block spans get their own boxes, so a background-clip:text
   on the em never reaches the glyphs and the word vanished ("Tell us the ___" on every CTA band, both themes).
   hand the gradient down: each word span clips its own text. */
:is(:is(.cta-band, #contact) h2, .page-hero h1, .hero:not(.hero--floor) h1, .floor__title) em .w { background: inherit; }
:is(:is(.cta-band, #contact) h2, .page-hero h1, .hero:not(.hero--floor) h1, .floor__title) em .w > span {
  background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}

/* phone touchups (11-19, midnight: "rail could be better", "writing rows broken on mobile") */
@media (max-width: 640px) {
  /* writing rows: home.css pins the dated grid at every width, so the title fell into the 6.5rem date column */
  .rows--dated .row, .wr .rows--dated .row { grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 6px; }
  .rows--dated .row__n { display: block; grid-column: 1 / -1; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; }
  .rows--dated .row__t { font-size: 1.22rem; line-height: 1.25; }
  .rows--dated .row__s { display: block; margin-top: 4px; }
  /* agenda rail: one swipeable row of cards instead of a 2x2 the hero clips */
  .floor__rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    background: none !important; box-shadow: none; border-radius: 0; padding: 4px 16px 18px; margin-inline: -16px; }
  .floor__rail::-webkit-scrollbar { display: none; }
  .floor__rail a, .floor__rail a:nth-child(n) { flex: 0 0 68%; scroll-snap-align: start; scroll-margin-left: 16px; min-height: 92px;
    border: 0; border-radius: 16px; background: #fff; box-shadow: 0 14px 30px -18px rgba(5, 10, 50, 0.55); }
  :root[data-theme="pearl"] .floor__rail a { background: var(--pl-surface); }
}

/* phone landing, more impact (11-19): the headline fills the width, the two buttons share one row, the UN card
   tightens, so the photo stack rises toward the first screen; recognition plates go shorter so all three read in ~1.5 screens */
@media (max-width: 640px) {
  .page-home .floor__title { font-size: clamp(2.75rem, 13.2vw, 3.7rem); line-height: 0.98; letter-spacing: -0.045em; }
  .page-home .floor__copy .lead { font-size: 1rem; margin-top: 14px; }
  .page-home .floor__copy .btn-row { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px; }
  .page-home .floor__copy .btn-row .btn { width: auto; min-height: 50px; padding-inline: 12px; font-size: 0.88rem; white-space: nowrap; justify-content: center; }
  .page-home .floor__copy .unbadge { padding: 12px 14px; gap: 12px; margin-top: 16px; }
  .page-home .floor__copy .unbadge__t { font-size: 0.8rem; line-height: 1.4; }
  .page-home .floor__copy .unbadge__mark { width: 40px; height: 40px; }
  .rec__plate { height: 8.75rem; }
  .rec__i { padding-bottom: 1.1rem; }
  .rec__list { gap: 14px; }
}

/* folding contact form (home, 11-19): message first; name/email/topic/send open on first focus. no-js = always open */
.form--fold .form__more { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.35s ease, margin-top 0.45s ease; }
.form--fold .form__more-in { min-height: 0; overflow: hidden; display: grid; gap: var(--s5); }
.form--fold.is-folded .form__more { margin-top: calc(-1 * var(--s5)); }
.form--fold.is-folded .form__more { grid-template-rows: 0fr; opacity: 0; height: 0; overflow: hidden; }
.form--fold.is-folded .form-status:empty { display: none; }
.form--fold.is-folded textarea { min-height: 0; }
@media (prefers-reduced-motion: reduce) { .form--fold .form__more { transition: none; } }
@media (max-width: 900px) {
  /* the 01-03 "what happens next" steps show once the visitor starts writing */
  #contact:has(.form.is-folded) .next { display: none; }
}

/* footer, calmer (11-19 "too much going on"): offices fold, contacts as one chip row, phone drops tagline + clock */
.desk__offices { border-top: 1px solid rgba(255, 255, 255, 0.14); border-bottom: 1px solid rgba(255, 255, 255, 0.14); padding: 0; }
.desk__offices summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; font: 600 0.92rem / 1.3 var(--font); color: #fff; }
.desk__offices summary::-webkit-details-marker { display: none; }
.desk__offices summary span { font-weight: 500; color: rgba(255, 255, 255, 0.55); margin-left: auto; }
.desk__offices summary::after { content: "+"; font-size: 1.2rem; line-height: 1; color: #ffb35c; transition: rotate 0.25s ease; }
.desk__offices[open] summary::after { rotate: 45deg; }
.desk__offices address { font-size: 0.88rem; color: rgba(255, 255, 255, 0.72); padding-bottom: 12px; }
.sh-footer .desk ul { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-footer .desk li a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; font-size: 0.86rem; background-image: none; }
.sh-footer .desk li a:is(:hover, :focus-visible) { border-color: #ffb35c; }
@media (max-width: 640px) {
  .sh-footer .desk__line, .sh-footer .sitemap__clock { display: none; }
  .sh-footer .sitemap ul { gap: 2px; }
  .sh-footer .sitemap a { display: inline-block; padding: 6px 0; font-size: 0.95rem; }
  .sh-footer .sitemap__lead { font-size: 1.9rem; }
  .sh-footer-base { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
  .sh-footer-base p { flex-basis: 100%; margin: 0; }
}
/* folded form box: body-size type (16px keeps ios from zooming), one-line placeholder, two-line box */
.form--fold :is(input, select) { font-size: 1rem; }
.form--fold textarea { font-size: 1rem; line-height: 1.5; min-height: 5.5rem; padding: 12px 14px; resize: vertical; }
.form--fold textarea::placeholder { font-size: 1rem; color: var(--muted); opacity: 0.8; }
/* paper toggle = two swatch icons (11-19 "cleaner"): names stay for screen readers + hover title */
.sh-footer .paper { gap: 2px; padding: 3px; }
.sh-footer .paper__b { font-size: 0; gap: 0; padding: 5px; min-height: 0; }
.sh-footer .paper__b i { width: 1.1rem; height: 1.1rem; }
.sh-footer .paper__b[aria-pressed="true"], .sh-footer .paper__b[aria-pressed="true"]:hover { background: rgba(255, 255, 255, 0.18); box-shadow: inset 0 0 0 1.5px #ffb35c; }
.desk__maps { display: inline-block; margin: 0 0 12px; font-size: 0.86rem; color: #ffb35c; }
@media (max-width: 640px) {
  .sh-footer .desk > .sh-brand, .sh-footer .desk__h { display: none; }
  .sh-footer .desk { gap: 14px; }
  .sh-footer .sitemap__cols { gap: 18px; }
  .sh-footer .sitemap h2 { margin-bottom: 6px; }
  .sh-footer .sitemap a { padding: 4px 0; font-size: 0.92rem; }
  .sh-footer-base { gap: 8px 16px; font-size: 0.82rem; }
}
@media (max-width: 640px) {
  .sh-footer .sitemap a { line-height: 1.3; padding: 5px 0; }
  .sh-footer .paper__b { padding: 9px; }
}

/* 11-19 ddgip phone pass: the board footer gets the home footer's folds (offices, icon paper, no brand/line/heading on
   phone), and "turn exposure into understanding" gets room: the three pills no longer share one row on a phone */
.counter .desk__offices { border: 0; width: 100%; }
.counter .desk__offices summary { padding: 0; min-height: 44px; font: 500 0.92rem / 1.5 var(--font); }
.counter .desk__offices address { padding-bottom: 0; margin-top: 8px; }
.counter .desk__offices .desk__maps { margin: 8px 0 0; }
@media (max-width: 640px) {
  .sh-footer .desk--counter > .sh-brand, .sh-footer .desk--counter > .desk__line { display: none; }
  .sh-footer .counter > div { grid-template-columns: 4rem minmax(0, 1fr); padding: 10px 0; }
  #programme .sec-head { margin-bottom: var(--s5); }
  #programme .sec-head h2 { margin-bottom: 14px; }
  .flowviz { height: 340px; border-radius: 22px; margin-bottom: var(--s5); }
  .flowviz__lab { top: 14px; padding: 7px 12px; font-size: 0.76rem; }
  .flowviz__lab--a { left: 14px; }
  .flowviz__lab--b { right: 14px; }
  .flowviz__count { top: auto; bottom: 44px; font-size: 0.76rem; white-space: nowrap; }
  .flowviz__stages { bottom: 16px; font-size: 0.74rem; }
}
