/* Terra Digital · website v5 · Terra Glass
   Brand book 2026: Inter only, Deep Blue + turquoise, glass over full-frame brand scenes.
   Light and dark blocks alternate: dark scene hero, light KIDOZ, dark PRADO, light "how", dark contact.
   No scroll scripts: the page moves only when the visitor moves it. */
@font-face { font-family: "InterV"; src: url("../assets/fonts/Inter-Var-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  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: "InterV"; src: url("../assets/fonts/Inter-Var-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #000228; --blue: #2033B0; --turq: #0DC89A; --turq-d: #0a9f7b;
  --paper: #F3F6FD; --white: #fff; --mint: #DDF7EF;
  --grad: linear-gradient(100deg, #2033B0 0%, #0DC89A 100%);
  --grad-text: linear-gradient(100deg, #2033B0 0%, #0a9f7b 100%); /* brand gradient, darkened at the end for 3:1 on paper */
  --grad-text-d: linear-gradient(100deg, #8FA2FF 0%, #2CE0B4 100%); /* the same gradient lifted for dark blocks */
  --t1: var(--ink); --t2: #45486a; --t3: #5d6079; --turq-text: #08785d;
  --line: rgba(0, 2, 40, .12);
  /* type scale */
  --fs-xxl: clamp(52px, 7.6vw, 120px);
  --fs-xl: clamp(40px, 5.2vw, 80px);
  --fs-m: clamp(22px, 2vw, 28px);
  --fs-lede: clamp(17px, 1.35vw, 20px);
  --fs-body: 17px;
  --fs-label: 12px;
  /* layout */
  --max: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --gap: clamp(14px, 1.6vw, 24px);
  --sec: clamp(72px, 9vw, 136px);
  --r-l: clamp(24px, 2.6vw, 36px); --r-m: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { font-family: "InterV", Inter, "Helvetica Neue", Arial, sans-serif; font-size: var(--fs-body); line-height: 1.55; color: var(--t1); background: var(--paper);
  -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv11"; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: 12px; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; transform: translateY(-160%); transition: transform .3s var(--ease); }
.skip-link:focus-visible { transform: none; }
[tabindex="-1"]:focus { outline: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg.i { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 2px solid var(--turq); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--turq); color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.section { position: relative; padding-block: var(--sec); }
section[id], .demo[id] { scroll-margin-top: 96px; }
#top { scroll-margin-top: 0; }

/* dark blocks: Deep Blue with the brand gradient as ambient light */
.dark { --t1: #fff; --t2: rgba(255, 255, 255, .76); --t3: rgba(255, 255, 255, .6); --line: rgba(255, 255, 255, .16); color: var(--t1); background: var(--ink); }
.section.dark { background:
  radial-gradient(900px 560px at 100% 0%, rgba(13, 200, 154, .2), transparent 70%),
  radial-gradient(1000px 760px at 0% 100%, rgba(32, 51, 176, .6), transparent 72%),
  var(--ink); }
/* the last dark block runs into the dark footer, so its light fades out before the bottom edge */
.section.dark.contact, .section.dark#next { background:
  radial-gradient(900px 560px at 100% 0%, rgba(13, 200, 154, .2), transparent 70%),
  radial-gradient(760px 420px at 0% 46%, rgba(32, 51, 176, .5), transparent 72%),
  var(--ink); }

/* ---------- type ---------- */
.h-xxl { font-size: var(--fs-xxl); line-height: .9; letter-spacing: -.06em; font-weight: 800; }
.h-xl { font-size: var(--fs-xl); line-height: .94; letter-spacing: -.05em; font-weight: 800; text-wrap: balance; }
.h-m { font-size: var(--fs-m); line-height: 1.18; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--t2); max-width: 46ch; text-wrap: pretty; }
.src { display: block; font-size: var(--fs-label); line-height: 1.45; letter-spacing: .01em; color: var(--t3); }
.idx-label, .kicker { font-size: var(--fs-label); line-height: 1.4; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.idx-label { color: var(--t3); }
.kicker { color: var(--blue); }
.dark .kicker { color: var(--turq); }
.kicker.muted { color: var(--t3); }

/* ---------- glass (Terra Glass: frost, a bright rim, no hard border) ---------- */
.card { position: relative; border-radius: var(--r-l); background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .66));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 1px 2px rgba(0, 2, 40, .04), 0 28px 64px -32px rgba(32, 51, 176, .28); }
.dark .card, .glass-d { background: linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .045));
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15), inset 0 1px 0 rgba(255, 255, 255, .22), 0 30px 80px -30px rgba(0, 2, 40, .7); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font-size: 15.5px; font-weight: 650;
  white-space: nowrap; transition: background .25s, color .25s, box-shadow .25s, transform .25s var(--ease); }
.btn:active { transform: scale(.98); }
.btn .i { transition: transform .4s var(--ease); }
.btn:hover .i { transform: translateX(4px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--blue); }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 12px 32px -12px rgba(0, 2, 40, .5); }
.btn-white:hover { background: var(--turq); }
.btn-glass { color: #fff; background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-line { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px rgba(0, 2, 40, .2); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.nav-bar .nav-partners { margin-right: -20px; } /* sits next to "Send a brief", closer than the bar's gap */
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 16px; padding-block: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; transition: background-size .5s var(--ease); }
.link:hover { background-size: 0 1.5px; background-position: 100% 100%; }
.link .i { transition: transform .4s var(--ease); }
.link:hover .i { transform: translateX(4px); }

/* ---------- nav: a glass bar that floats over every block ---------- */
.nav { position: fixed; z-index: 50; inset: 12px 0 auto; pointer-events: none; }
.nav-bar { pointer-events: auto; display: flex; align-items: center; gap: 32px; height: 60px; width: min(100% - 24px, var(--max) + 40px); margin-inline: auto; padding: 0 10px 0 20px; border-radius: 999px;
  background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 12px 40px -12px rgba(0, 2, 40, .28); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; color: var(--ink); }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.nav-links a { padding: 9px 14px; border-radius: 999px; transition: background .25s; }
.nav-links a:hover { background: rgba(0, 2, 40, .06); }
.nav-links a.on { background: rgba(0, 2, 40, .08); }
/* language switch: two short links, the current one filled */
.lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(0, 2, 40, .06); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.lang a { padding: 6px 10px; border-radius: 999px; color: #45486a; transition: background .25s, color .25s; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -2px rgba(0, 2, 40, .25); }
.nav-links + .lang { margin-left: -12px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; position: relative; color: var(--ink); }
.burger i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger i:first-child { top: 18px; } .burger i:last-child { top: 25px; }
.menu-open .burger i:first-child { top: 21px; transform: rotate(45deg); } .menu-open .burger i:last-child { top: 21px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 49; background: var(--paper); color: var(--ink); padding: 96px var(--pad) 40px; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.menu a { display: flex; align-items: baseline; gap: 14px; font-size: clamp(32px, 9vw, 44px); font-weight: 800; letter-spacing: -.05em; padding: 14px 0; border-bottom: 1px solid rgba(0, 2, 40, .12); }
.menu .idx { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: #5d6079; }
.menu-open .menu { opacity: 1; visibility: visible; }
html:has(body.menu-open) { overflow: hidden; }

/* ---------- hero: the brand scene fills the screen, the statement sits on its calm left half ---------- */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: min(100svh, 920px); color: #fff; background: var(--ink); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  linear-gradient(90deg, rgba(0, 2, 40, .78) 0%, rgba(0, 2, 40, .5) 34%, rgba(0, 2, 40, 0) 58%),
  linear-gradient(0deg, rgba(0, 2, 40, .8) 0%, rgba(0, 2, 40, 0) 30%); }
.hero-inner { flex: 1; display: flex; align-items: center; padding-block: 112px 36px; }
.hero-copy { display: grid; gap: 22px; justify-items: start; max-width: 620px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 650; letter-spacing: .04em;
  background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--turq); }
.hero-title { font-size: clamp(46px, 5.7vw, 82px); white-space: nowrap; line-height: .96; letter-spacing: -.055em; font-weight: 800; }
.accent { color: var(--turq); }
.hero-lede { font-size: var(--fs-lede); line-height: 1.5; color: rgba(255, 255, 255, .82); max-width: 40ch; text-wrap: pretty; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 6px; }

/* partners and affiliations: one glass strip at the foot of the hero */
.strip { display: flex; align-items: center; gap: 20px 40px; padding: 16px 28px; margin-bottom: clamp(20px, 3vw, 32px); border-radius: 24px; }
.strip-k { flex: none; max-width: 15ch; font-size: var(--fs-label); line-height: 1.4; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.logos { list-style: none; flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.logos li { display: flex; align-items: center; gap: 10px; }
.logos img { height: var(--h); width: auto; opacity: .94; }

/* ---------- section anatomy ---------- */
.sec-label { display: flex; align-items: center; gap: 14px; }
.lg-k { height: 44px; width: auto; }
.lg-p { height: 22px; width: auto; }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.feature.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.feature-copy { display: grid; gap: 20px; justify-items: start; }
.feature-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 8px; }
.feature-art { position: relative; cursor: pointer; }
.feature-art img { width: 100%; }
/* the bear stands free on the page: its backdrop is the page colour, the mask only softens the outer rim */
#kids .feature-art { -webkit-mask-image: radial-gradient(ellipse 74% 76% at 50% 50%, #000 78%, transparent 100%); mask-image: radial-gradient(ellipse 74% 76% at 50% 50%, #000 78%, transparent 100%); }
#kids .feature-art::after { content: ""; position: absolute; inset: 8% 4% 2%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(13, 200, 154, .16), rgba(32, 51, 176, .08) 60%, transparent); }
.stage { border-radius: var(--r-l); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 90px -40px rgba(0, 2, 40, .9); }
.stage img { aspect-ratio: 8 / 9; object-fit: cover; transition: transform 1.2s var(--ease); }
.stage::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); pointer-events: none; }
.stage:hover img { transform: scale(1.03); }

/* facts: three short cards about the platform */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.fact { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.2vw, 30px); border-radius: var(--r-m); }
.fact p:not(.kicker) { font-size: 16px; line-height: 1.5; color: var(--t2); text-wrap: pretty; }
.fact .src { margin-top: auto; padding-top: 6px; }
.fit-list { display: flex; flex-wrap: wrap; gap: 6px; }
.fit-list span { padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--t1); background: rgba(32, 51, 176, .08); }
.dark .fit-list span { background: rgba(255, 255, 255, .12); }
.seasons { display: grid; gap: 2px; font-size: 14.5px !important; }
.seasons span { color: var(--turq-text); font-weight: 550; }
.seasons b { font-weight: 750; }
.dark .seasons span { color: var(--t2); }

/* ---------- demos: one glass card each, the copy on one side and the phone on the other ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(48px, 6vw, 88px); padding: clamp(24px, 3.4vw, 48px); }
#kids .demo::before { content: ""; position: absolute; inset: -6% 30% 20% -4%; z-index: -1; border-radius: 50%; filter: blur(60px); background: radial-gradient(closest-side, rgba(32, 51, 176, .22), transparent), radial-gradient(closest-side at 80% 70%, rgba(13, 200, 154, .25), transparent); }
.demo-side { display: grid; gap: 24px; align-content: center; min-width: 0; }
.demo-head { display: grid; gap: 10px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(0, 2, 40, .06); justify-self: start; max-width: 100%; }
.dark .tabs { background: rgba(255, 255, 255, .1); }
.tab { padding: 10px 18px; border-radius: 999px; font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; color: var(--t2); transition: color .25s, background .25s, box-shadow .25s; }
.tab:hover { color: var(--t1); }
.tab[aria-selected="true"] { color: var(--ink); background: #fff; box-shadow: 0 4px 14px -4px rgba(0, 2, 40, .25); }
.signals { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px 32px; }
.sig-col { display: grid; align-content: start; }
.sig-col .kicker { margin-bottom: 6px; }
.sig { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; font-weight: 560; transition: color .3s, padding .4s var(--ease); }
.sig .i { color: var(--turq-d); }
.sig.no { color: var(--t3); } .sig.no .i { color: var(--t3); }
.sig.no span { text-decoration: line-through; text-decoration-color: rgba(0, 2, 40, .3); }
.sig b { margin-left: auto; font-size: 13px; font-weight: 650; color: #075e4a; background: var(--mint); padding: 3px 9px; border-radius: 999px; }
.sig.lit { padding-left: 8px; color: var(--blue); }
.law { font-size: 14.5px; line-height: 1.5; color: var(--t2); max-width: 62ch; }
.law .src { margin-top: 6px; }
.demo-phone { display: flex; justify-content: center; }

.phone { position: relative; width: 272px; max-width: 100%; aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 9px; color: var(--ink);
  background: #11142a; box-shadow: inset 0 0 0 1.5px #3a3f5f, 0 40px 80px -20px rgba(0, 2, 40, .35); }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 76px; height: 22px; margin-left: -38px; border-radius: 12px; background: #000; z-index: 5; }
.screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #fff; isolation: isolate; }
.app-bar { position: absolute; top: 50px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.app-bar b { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.age { font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 7px; background: var(--ink); color: #fff; }
.app-view { position: absolute; inset: 86px 14px 104px; display: flex; flex-direction: column; gap: 12px; justify-content: center; opacity: 0; transition: opacity .45s; }
.app-view.on { opacity: 1; }
.swatches { display: flex; justify-content: center; gap: 8px; }
.swatches i { width: 24px; height: 24px; border-radius: 50%; background: var(--c); }
.pz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 8px; border-radius: 16px; background: #FFF4E0; aspect-ratio: 1; }
.pz i { border-radius: 7px; background: linear-gradient(135deg, #5BC0EB, #2fb38f 55%, #FFD23F); }
.pz i.hole { background: rgba(0, 2, 40, .08); }
.book { border-radius: 16px; background: #EFFAF0; padding: 12px; display: grid; gap: 8px; }
.book p { font-size: 14px; font-weight: 600; line-height: 1.35; }
.ln { display: block; height: 7px; border-radius: 4px; background: rgba(0, 2, 40, .08); }
.ln.s { width: 60%; }
.ad { position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 10px; border-radius: 18px;
  background: #fff; box-shadow: 0 0 0 1px rgba(0, 2, 40, .08), 0 10px 24px rgba(0, 2, 40, .12); }
.ad.swap { animation: adin .6s var(--ease); }
@keyframes adin { from { transform: translateY(110%); opacity: 0; } }
.ad-badge { position: absolute; top: -8px; left: 12px; font-size: 10px; font-weight: 750; letter-spacing: .05em; padding: 2px 6px; border-radius: 5px; background: #FFD23F; color: var(--ink); }
.ad-art { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; }
.ad-art svg { width: 38px; height: 38px; }
.ad-txt { display: grid; min-width: 0; line-height: 1.3; }
.ad-txt b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-txt span { font-size: 11.5px; color: #5d6079; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-age { margin-left: auto; font-size: 10px; font-weight: 750; padding: 2px 6px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--ink); }

/* formats phone (a game screen, so it stays dark) */
.phone.night { box-shadow: inset 0 0 0 1.5px #4a5080, 0 40px 80px -20px rgba(0, 0, 0, .6); }
.phone.night .screen { background: #050a35; color: #fff; }
.fmt-desc { font-size: var(--fs-lede); line-height: 1.45; color: var(--t2); max-width: 40ch; min-height: 4.4em; }
.fmt-view { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .4s, visibility .4s; }
.fmt-view.on { opacity: 1; visibility: visible; pointer-events: auto; }
.mini { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: manipulation; cursor: pointer; }
.mini-hud { position: absolute; top: 48px; left: 14px; right: 14px; display: flex; justify-content: space-between; pointer-events: none; z-index: 2; }
.pill { font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.overlay { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 28px; text-align: center;
  background: radial-gradient(circle at 50% 40%, rgba(32, 51, 176, .62), rgba(0, 2, 40, .92)); transition: opacity .35s, visibility .35s; }
.ov-start { cursor: pointer; }
.overlay .k { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--turq); }
.overlay b { font-size: 23px; line-height: 1.12; font-weight: 750; letter-spacing: -.03em; }
.overlay p { font-size: 13.5px; color: rgba(255, 255, 255, .74); line-height: 1.45; }
.overlay .go { margin-top: 6px; padding: 11px 20px; border-radius: 999px; background: var(--turq); color: var(--ink); font-weight: 650; font-size: 14px; }
.overlay .go.white { background: #fff; }
.overlay .again { font-size: 13px; color: rgba(255, 255, 255, .74); text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
.ov-end, .ov-done, .ov-skip { opacity: 0; visibility: hidden; }
.playing .ov-start, .ended .ov-start { opacity: 0; visibility: hidden; }
.ended .ov-end { opacity: 1; visibility: visible; }
.rw-on .ov-start, .rw-done .ov-start { opacity: 0; visibility: hidden; }
.rw-done .ov-done, .skipped .ov-skip { opacity: 1; visibility: visible; }
.brandspot { position: absolute; inset: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.fmt-view.on .brandspot.loop, .rw-on .brandspot { opacity: 1; visibility: visible; }
.fmt-view.skipped .brandspot.loop { opacity: 0; visibility: hidden; }
.brandspot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; animation: kb 9s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.08) translateY(-1.5%); } }
.brandspot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 2, 40, .7), rgba(0, 2, 40, 0) 40%); }
.brandspot .copy { position: absolute; z-index: 1; left: 0; right: 0; top: 80px; text-align: center; display: grid; gap: 4px; }
.brandspot .copy b { font-size: 22px; font-weight: 800; letter-spacing: .04em; }
.brandspot .copy span { font-size: 13px; color: rgba(255, 255, 255, .74); }
.ring { position: absolute; z-index: 2; top: 46px; right: 14px; width: 38px; height: 38px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3; } .ring .bg { stroke: rgba(255, 255, 255, .25); }
.ring .fg { stroke: var(--turq); stroke-dasharray: 94.25; stroke-dashoffset: 94.25; stroke-linecap: round; }
.ring-n { position: absolute; z-index: 2; top: 46px; right: 14px; width: 38px; height: 38px; display: grid; place-items: center; font-size: 13px; font-weight: 750; }
.skip { position: absolute; z-index: 2; right: 12px; bottom: 30px; font-size: 12px; font-weight: 650; padding: 7px 11px; border-radius: 9px; background: rgba(0, 0, 0, .55); }
.vbar { position: absolute; z-index: 2; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--turq); transform-origin: 0 0; animation: vbar 7s linear infinite; }
@keyframes vbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.coin { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c9fff0, #0DC89A 45%, #078a6b); box-shadow: 0 0 36px rgba(13, 200, 154, .6); }

/* cases: three cards per platform, the numbers first */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.case { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.2vw, 30px); border-radius: var(--r-m); }
.case h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.025em; font-weight: 750; }
.case-t { font-size: 15.5px; line-height: 1.45; color: var(--t2); text-wrap: pretty; }
.case-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px 16px; margin-top: auto; padding-top: 14px; }
.case-nums b { display: block; font-size: clamp(32px, 2.9vw, 42px); line-height: .95; font-weight: 800; letter-spacing: -.05em; font-variant-numeric: tabular-nums;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.dark .case-nums b { background: var(--grad-text-d); -webkit-background-clip: text; background-clip: text; }
.case-nums span { display: block; font-size: 13.5px; line-height: 1.35; color: var(--t2); }
.case .link { align-self: flex-start; font-size: 14.5px; margin-top: 6px; }
.cases-src { margin-top: 12px; }

/* ---------- how ---------- */
.how-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: end; }
.how-head > div { display: grid; gap: 20px; }
.how-head .lede { justify-self: end; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(32px, 4vw, 56px); }
.steps li { display: grid; gap: 8px; align-content: start; padding: clamp(22px, 2.2vw, 30px); border-radius: var(--r-m); }
.steps .n { justify-self: start; font-size: 13px; font-weight: 750; letter-spacing: .04em; color: #fff; background: var(--grad); padding: 5px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.025em; font-weight: 750; margin-top: clamp(20px, 3vw, 44px); }
.steps p { font-size: 15.5px; line-height: 1.5; color: var(--t2); }

/* the door to the numbers page: the brand's blue stairs */
.band { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  margin-top: clamp(40px, 5vw, 72px); padding: clamp(28px, 4vw, 56px); border-radius: var(--r-l); color: #fff; background: var(--blue); }
.band-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(24, 40, 150, .92) 0%, rgba(32, 51, 176, .6) 45%, rgba(32, 51, 176, 0) 75%); }
.band-copy { display: grid; gap: 10px; max-width: 30ch; }
.band .idx-label { color: rgba(255, 255, 255, .8); }
.band-text { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.03em; font-weight: 750; text-wrap: balance; }

/* ---------- contact ---------- */
.contact { padding-bottom: clamp(56px, 7vw, 96px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-side { display: grid; gap: 24px; justify-items: start; }
.contact-title { margin-top: -6px; }
.mail { display: inline-flex; align-items: center; gap: 14px; font-size: clamp(22px, 2.4vw, 32px); font-weight: 750; letter-spacing: -.035em; text-align: left; margin-top: 8px; }
.mail span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .6s var(--ease); }
.mail:hover span { background-size: 100% 2px; }
.mail em { font-style: normal; font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.mail.done em { background: var(--turq); color: var(--ink); box-shadow: none; }
/* contact card: the Terra mark, the address and LinkedIn in one glass card next to the form */
.contact-card { display: grid; gap: 18px; justify-items: start; width: 100%; padding: clamp(22px, 2.4vw, 30px); margin-top: 8px; }
.cc-head { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; width: 100%; border-bottom: 1px solid var(--line); }
.cc-head img { width: 44px; height: 44px; flex: none; }
.cc-head b { display: block; font-size: 17px; letter-spacing: -.02em; }
.cc-head span { font-size: 14px; color: var(--t2); }
.contact-card .mail { margin-top: 0; }
.contact-card .link { font-size: 15.5px; }
.form { display: grid; gap: 26px; padding: clamp(24px, 3vw, 40px); overflow: hidden; }
fieldset { border: 0; min-width: 0; }
legend { font-size: var(--fs-label); font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--t3); margin-bottom: 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 10px 16px; border-radius: 999px; font-size: 15px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); transition: background .25s, color .25s, box-shadow .25s; }
.seg label:hover span { box-shadow: inset 0 0 0 1px #fff; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: none; }
.seg input:focus-visible + span { outline: 2px solid var(--turq); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 4px var(--gap); }
.field { position: relative; display: block; }
.field.wide { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 18px; letter-spacing: -.01em; color: #fff; padding: 28px 0 10px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .3); background: transparent; outline: none; resize: none; border-radius: 0; transition: border-color .3s; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--turq); }
.field span { position: absolute; left: 0; top: 28px; font-size: 18px; color: var(--t3); pointer-events: none; transform-origin: 0 0; transition: transform .4s var(--ease), color .3s; }
.field input:focus + span, .field input:not(:placeholder-shown) + span, .field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-22px) scale(.66); color: var(--t2); }
.field.err input { border-bottom-color: #ff7c98; }
.field input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.form-foot .src { max-width: 34ch; }
.sent { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; border-radius: inherit; background: #070b3a; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.sent.on { opacity: 1; visibility: visible; }
.form.sending button[type=submit] { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent .coin { width: 48px; height: 48px; }
.sent p { color: var(--t2); max-width: 32ch; }

/* ---------- footer ---------- */
.foot { padding-block: clamp(40px, 5vw, 64px) 28px; overflow: hidden; }
.foot-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: var(--gap); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.foot-tag { font-size: var(--fs-m); line-height: 1.15; font-weight: 750; letter-spacing: -.03em; }
.foot-links { display: grid; gap: 6px; align-content: start; font-size: 15px; color: var(--t2); }
.foot-links a:hover { color: #fff; }
/* the wordmark is sized from its container, so the whole name always fits; its box is as wide as the letters, so the gradient covers the last one */
.foot .wrap { container-type: inline-size; }
.wordmark { font-size: clamp(48px, 15.4vw, 224px); font-size: 18.6cqw; width: fit-content; padding-right: .06em; line-height: .92; font-weight: 800; letter-spacing: -.07em; margin: clamp(40px, 6vw, 80px) 0 0 -.04em; white-space: nowrap;
  background: linear-gradient(100deg, #3147d6 0%, #0DC89A 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .24em; }
.legal { font-size: var(--fs-label); color: var(--t3); padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- analytics consent (js/consent.js): a Deep Blue glass card over the corner of the page ----------
   Fixed, so it never moves the page under it; two buttons of the same size and colour. Bottom right on wide screens,
   away from the hero buttons on the left; on phones along the bottom, as low as it can be. */
.consent { position: fixed; z-index: 60; right: 24px; bottom: 24px; width: min(440px, calc(100vw - 48px)); display: grid; gap: 10px; padding: 22px 22px 20px;
  border-radius: 24px; color: #fff; text-align: left;
  background: linear-gradient(135deg, rgba(24, 36, 128, .95), rgba(0, 2, 40, .96)); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .24), 0 30px 80px -24px rgba(0, 2, 40, .75);
  animation: rise .5s var(--ease) backwards; }
.consent-t { display: block; margin-bottom: 8px; font-size: 17px; line-height: 1.3; font-weight: 750; letter-spacing: -.01em; color: #fff; }
.consent-d, .consent-n { font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .8); text-wrap: pretty; }
/* "Close": only when opened from Cookie settings (the earlier choice stays) */
.consent-x { float: right; margin: -4px -6px 4px 12px; padding: 4px 6px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .8); text-decoration: underline; text-underline-offset: 3px; }
.consent-x:hover { color: #fff; }
.consent-n { color: #7ff0d0; }
.consent a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; white-space: nowrap; }
.consent a:hover { text-decoration-thickness: 2px; }
.consent-b { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.consent-b button { height: 46px; padding: 0 12px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 650; transition: background .25s, transform .25s var(--ease); }
.consent-b button:hover { background: var(--turq); }
.consent-b button:active { transform: scale(.98); }
.consent :focus-visible { outline: 2px solid var(--turq); outline-offset: 3px; }
.has-consent .foot { padding-bottom: calc(40px + var(--consent-h, 0px)); }
/* the keyboard focus never lands under the banner: the browser keeps this much room at the bottom when it scrolls to it */
html.has-consent { scroll-padding-bottom: calc(var(--consent-h, 0px) + 40px); }
/* the phone menu has the whole screen; the banner waits until it is closed */
.menu-open .consent { visibility: hidden; }

/* ---------- numbers page ---------- */
.page-head { position: relative; padding-block: calc(96px + clamp(32px, 6vw, 88px)) clamp(48px, 6vw, 88px); }
.page-head .wrap { display: grid; gap: clamp(20px, 3vw, 32px); justify-items: start; }
.page-head .lede { max-width: 42ch; }
.link.back .i { transform: scaleX(-1); }
.link.back:hover .i { transform: scaleX(-1) translateX(4px); }
.num-sec { padding-block: clamp(56px, 7vw, 104px); }
.num-sec + .num-sec { padding-top: 0; }
.num-head { display: grid; gap: 16px; margin-bottom: clamp(24px, 3vw, 40px); }
.giant-num { font-size: clamp(60px, 14.6vw, 232px); line-height: .88; font-weight: 800; letter-spacing: -.07em; font-variant-numeric: tabular-nums; margin: 4px 0 20px -.05em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .04em; }
.giant-foot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: var(--gap); align-items: end; justify-content: space-between; }
.giant-foot h2 { font-size: clamp(26px, 3vw, 44px); line-height: 1.08; letter-spacing: -.035em; font-weight: 750; max-width: 20ch; }
.data { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(32px, 4vw, 56px); }
.data-row { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-m); }
.data-num { font-variant-numeric: tabular-nums; font-size: clamp(48px, 5vw, 76px); line-height: .9; font-weight: 800; letter-spacing: -.06em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .05em; }
.data-row p { font-size: 16.5px; line-height: 1.45; color: var(--t2); }
.data-row .src { margin-top: auto; padding-top: 8px; }
.after-src { margin-top: 14px; }
/* long text pages (privacy): one readable column */
.prose { display: grid; gap: 14px; max-width: calc(68ch + var(--pad) * 2); margin-inline: 0 auto; }
.prose h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.025em; font-weight: 750; margin-top: clamp(18px, 2.4vw, 30px); }
.prose p:not(.idx-label) { font-size: 17px; line-height: 1.6; color: var(--t2); text-wrap: pretty; }
.prose a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose h2[id] { scroll-margin-top: 112px; }
.prose code { font: 600 .9em/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); background: var(--mint); padding: .15em .4em; border-radius: 6px; white-space: nowrap; }
.next-cta { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; margin-top: clamp(28px, 4vw, 48px); }

@view-transition { navigation: auto; }

/* ---------- motion: blocks rise once as they enter; the hero settles on load ---------- */
.js [data-r] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-r].in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes settle { from { transform: scale(1.06); } }
.hero-copy > *, .page-head .wrap > * { animation: rise .9s var(--ease) backwards; }
.hero-copy > :nth-child(2), .page-head .wrap > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3), .page-head .wrap > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.strip { animation: rise .9s var(--ease) .32s backwards; }
.hero-bg img { animation: settle 1.8s var(--ease) backwards; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .js [data-r] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .001s !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .strip { flex-direction: column; align-items: stretch; gap: 14px; }
  .strip-k { max-width: none; }
  .steps { grid-template-columns: 1fr 1fr; }
}
/* the header alone goes to the burger menu a little earlier than the page: with "For partners" and "Send a brief"
   side by side the links would wrap onto two lines below about 1040px */
@media (max-width: 1040px) {
  .nav-links, .nav .btn { display: none; }
  .burger { display: block; margin-left: 4px; }
  .nav-links + .lang { margin-left: auto; }
  .nav-bar { padding-right: 6px; }
}
@media (max-width: 860px) {
  .feature, .feature.flip, .how-head, .contact-grid { grid-template-columns: 1fr; }
  .feature-art { order: -1; }
  #kids .feature-art { max-width: 460px; margin-inline: auto; }
  .how-head .lede { justify-self: start; }
  .facts, .data, .cases { grid-template-columns: 1fr; }
  .giant-foot { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-tag { grid-column: 1 / -1; margin-bottom: 12px; }
  /* demos: tabs first, then the phone they change, then the explanation */
  .demo { grid-template-columns: 1fr; gap: 22px; }
  .demo-side { display: contents; }
  .demo .tabs { order: -2; justify-self: center; }
  .demo .demo-head { order: -3; }
  .demo .demo-phone { order: -1; }
  .phone { width: 250px; }
  .fmt-desc { min-height: 0; }
}
/* phones and upright tablets: the statement on Deep Blue, the scene below it, then the partners */
@media (max-width: 760px), (max-aspect-ratio: 11/10) {
  .hero { min-height: 0; }
  .hero::before { display: none; }
  .hero-inner { padding-block: 104px 0; }
  .hero-bg { position: relative; inset: auto; z-index: 0; order: 2; margin-top: -4vw; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%); }
  .hero-bg img { aspect-ratio: 1; object-position: 50% 50%; max-height: 70svh; }
  .hero > .wrap:last-child { order: 3; margin-top: -40px; position: relative; }
  .strip { padding: 18px 20px; }
}
@media (max-width: 760px) {
  .logos { justify-content: space-around; gap: 20px 32px; }
  .logos img { height: calc(var(--h) * .82); }
  .signals { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps h3 { margin-top: 12px; }
  .fields { grid-template-columns: 1fr; }
  .eyebrow { font-size: 11.5px; letter-spacing: .02em; padding-inline: 12px; }
  .demo .tabs { justify-self: stretch; flex-wrap: nowrap; }
  .tab { flex: 1; padding: 9px 4px; font-size: 13.5px; white-space: nowrap; }
  .band { flex-direction: column; align-items: flex-start; padding-bottom: 36%; }
  .band-bg { object-position: 100% 100%; height: 55%; top: auto; }
  .band::before { background: linear-gradient(180deg, var(--blue) 46%, rgba(32, 51, 176, 0) 80%); }
  .consent { left: 16px; right: 16px; bottom: max(12px, env(safe-area-inset-bottom)); width: auto; max-width: 520px; padding: 12px 14px; gap: 8px; border-radius: 20px; }
  .consent-t { display: inline; margin: 0; font-size: 14px; }
  .consent-t::after { content: '.'; }
  .consent-d, .consent-n { font-size: 13.5px; line-height: 1.4; }
  .consent-b { gap: 8px; margin-top: 0; }
  .consent-b button { height: 44px; }
}
