/* ============================================================
   Wisdom Beyond Books × Ubika Suncity, Gurgaon
   Parent campaign landing page.

   Structure follows the Ubika mark: four fields (leaf, ring,
   dots, waves) divided by a coral cross. Grids are separated by
   hairline rules rather than floating cards, and each of the four
   accents belongs to one field throughout the page.
   ============================================================ */

:root {
  /* sampled from the Ubika logo */
  --teal:       #0d706e;
  --teal-deep:  #0a4f4d;
  --leaf:       #128d76;
  --cyan:       #0097b2;
  --coral:      #dd506b;
  --orange:     #e8872b;
  --brick:      #c8482a;

  --ink:        #0c3330;
  --ink-soft:   #40615e;
  --ink-mute:   #6a8582;

  --paper:      #ffffff;
  --wash:       #f0f6f4;
  --line:       #d6e5e2;
  --line-soft:  #e6efed;

  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --body:    "Source Serif 4", Georgia, "Times New Roman", serif;

  --shell: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --band-y: clamp(3rem, 6vw, 5.25rem);
}

/* ---------- base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.35rem + 3.3vw, 3.9rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.4rem); }
h4 { font-size: clamp(1.1rem, 1.02rem + .4vw, 1.3rem); }

p { margin: 0 0 1.05rem; }
p:last-child { margin-bottom: 0; }

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); }
a:hover { color: var(--coral); }

strong { font-weight: 600; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  z-index: 100; background: var(--ink); color: #fff;
  padding: .7rem 1.2rem; border-radius: 0 0 10px 10px; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }

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

.band { padding: var(--band-y) 0; }
.band-wash { background: var(--wash); }

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .005em;
  text-decoration: none;
  color: #fff;
  background: var(--teal);
  border: 0;
  border-radius: 100px;
  padding: .85rem 1.75rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background .18s ease;
}
.button:hover { background: var(--teal-deep); color: #fff; }
.button-sm { padding: .55rem 1.2rem; font-size: .9rem; }
.button-lg { padding: 1rem 2.25rem; font-size: 1.0625rem; }
.button[disabled] { opacity: .55; cursor: default; }

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.masthead.is-stuck { border-bottom-color: var(--line); }

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.lockup img { width: 46px; height: 46px; }
.lockup .lockup-ubika { width: auto; height: 42px; }
.lockup .lockup-square { display: none; width: auto; height: 46px; }
.lockup-x {
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--ink-mute);
}

/* ---------- motion ----------
   One rule drives every entrance: elements marked .reveal rise into place
   once, when they first scroll into view. Hidden only when JS is running,
   so nothing disappears if the script fails. */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1),
              transform .7s cubic-bezier(.22, .61, .36, 1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- hero ---------- */

.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.hero-copy > * {
  opacity: 0;
  animation: rise .8s cubic-bezier(.22, .61, .36, 1) forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .18s; }
.hero-copy > *:nth-child(3) { animation-delay: .3s; }
.hero-copy > *:nth-child(4) { animation-delay: .4s; }

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.hero-figure {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 5 / 6;
  background: var(--wash);
  opacity: 0;
  animation: hero-figure-in 1s cubic-bezier(.22, .61, .36, 1) .15s forwards;
}
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  /* settles from a slight zoom as the page loads */
  animation: slow-settle 2.4s cubic-bezier(.22, .61, .36, 1) forwards;
}

@keyframes hero-figure-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes slow-settle { from { transform: scale(1.1); } to { transform: scale(1); } }

/* the mark, sitting over the photograph */
.hero-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  padding: clamp(.9rem, 2.5vw, 1.4rem);
  background: var(--paper);
  border-radius: 0 20px 0 0;
}

.hero h1 { margin-bottom: .55em; max-width: 15ch; }

.hero-intro {
  font-size: clamp(1.1rem, 1.02rem + .4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero-intro strong { color: var(--ink); }

.hero-note {
  margin-top: 1.1rem;
  font-size: .95rem;
  color: var(--ink-mute);
  max-width: 42ch;
}

/* the mark: four fields split by a coral cross */
.hero-mark { display: grid; place-items: center; }

.quad {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(.6rem, 1.6vw, 1rem);
  width: clamp(92px, 13vw, 128px);
  aspect-ratio: 1;
}
.quad-cell { display: grid; place-items: center; }
.quad-cell svg { width: 100%; height: auto; max-width: 42px; }
.quad-leaf  { color: var(--leaf);  justify-self: end;   align-self: end; }
.quad-ring  { color: var(--orange); justify-self: start; align-self: end; }
.quad-dots  { color: var(--brick); justify-self: end;   align-self: start; }
.quad-waves { color: var(--cyan);  justify-self: start; align-self: start; }

.quad-rule { position: absolute; background: var(--coral); }
.quad-rule-v { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.quad-rule-h { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }

/* The mark assembles once, on load. */
@media (prefers-reduced-motion: no-preference) {
  .quad-cell { opacity: 0; animation: mark-in .6s ease forwards; }
  .quad-leaf  { animation-delay: .7s; }
  .quad-ring  { animation-delay: .82s; }
  .quad-waves { animation-delay: .94s; }
  .quad-dots  { animation-delay: 1.06s; }
  .quad-rule-v { transform: translateX(-50%) scaleY(0); transform-origin: top; animation: rule-v .5s ease .55s forwards; }
  .quad-rule-h { transform: translateY(-50%) scaleX(0); transform-origin: left; animation: rule-h .5s ease .7s forwards; }
}
@keyframes mark-in { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes rule-v { to { transform: translateX(-50%) scaleY(1); } }
@keyframes rule-h { to { transform: translateY(-50%) scaleX(1); } }

/* ---------- photographs ---------- */

.photo {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--wash);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .9s cubic-bezier(.22, .61, .36, 1);
}
.photo:hover img { transform: scale(1.04); }

/* wide, shallow band used as a texture break */
.photo-strip { margin-top: clamp(2rem, 4vw, 3rem); aspect-ratio: 21 / 7; }

/* column-height image beside a block of text */
.photo-portrait { aspect-ratio: 4 / 5; }

/* text and picture side by side */
.feature {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.feature-flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.feature-copy > h2 { margin-bottom: .5em; }
.feature-copy > p { color: var(--ink-soft); }
.feature-copy .lead {
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.05rem + .7vw, 1.55rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}

/* a pair of pictures */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.duo .photo { aspect-ratio: 3 / 2; }

/* ---------- the school ---------- */

.school-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.school-logo { width: clamp(180px, 22vw, 260px); height: auto; }
.school-line {
  font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem);
  color: var(--ink);
  max-width: 54ch;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.pillars li { padding: 0 clamp(1rem, 2.5vw, 2rem); border-left: 1px solid var(--line); }
.pillars li:first-child { padding-left: 0; border-left: 0; }
.pillars li:last-child { padding-right: 0; }
.pillars h3 { font-size: 1.1rem; margin: 0; max-width: 16ch; }

.pillar-mark svg, .module-mark svg, .eco-mark svg { width: 38px; height: 38px; display: block; }
.pillar-mark { display: block; margin-bottom: 1rem; }

.ink-leaf   { color: var(--leaf); }
.ink-cyan   { color: var(--cyan); }
.ink-brick  { color: var(--brick); }
.ink-orange { color: var(--orange); }
.ink-coral  { color: var(--coral); }

.school-outcome {
  margin-top: clamp(2rem, 4vw, 3rem);
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.9rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--teal);
  max-width: 24ch;
}

/* ---------- two-up section head ---------- */

.two-up {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.two-up-head h2 { margin: 0; }
.prose { max-width: 62ch; }
.prose .lead {
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.05rem + .7vw, 1.6rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 1rem;
}
.prose p { color: var(--ink-soft); }

.list-title {
  margin: clamp(2.5rem, 5vw, 3.75rem) 0 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0;
}

/* ---------- what WBB encourages ---------- */

/* Multicolumn, not grid: each rule then hugs its own item instead of
   stretching to the tallest item in a row. */
.encourage {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.encourage li {
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--display);
  font-size: .95rem;
  color: var(--ink-soft);
  background: var(--paper);
  transition: border-color .2s, color .2s, transform .2s;
}
.encourage li:hover {
  border-color: var(--teal);
  color: var(--ink);
  transform: translateY(-2px);
}

/* ---------- the two questions ---------- */

.swap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.swap-side { padding-top: 1.25rem; border-top: 3px solid var(--line); }
.swap-to { border-top-color: var(--coral); }
.swap-label {
  font-family: var(--display);
  font-size: .95rem;
  color: var(--ink-mute);
  margin-bottom: .5rem;
}
.swap-q {
  font-family: var(--display);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.75rem);
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
  color: var(--ink-mute);
}
.swap-to .swap-q { color: var(--ink); font-weight: 500; }

.swap-after {
  margin-top: 1.75rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- modules ---------- */

.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.module {
  padding: 2rem clamp(1rem, 2.5vw, 2rem) 0;
  border-left: 1px solid var(--line);
}
.module:first-child { padding-left: 0; border-left: 0; }
.module:last-child { padding-right: 0; }
.module-mark { display: block; margin-bottom: 1.1rem; }
.module h4 { margin-bottom: .5em; }
.module p { color: var(--ink-soft); font-size: 1rem; margin: 0; }

.more-coming {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--teal);
  max-width: 48ch;
}

/* ---------- facets ---------- */

/* ---------- facets: tap to open ---------- */

.facets {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.facets li { border-bottom: 1px solid var(--line); }

.facet-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  transition: color .18s;
}
.facet-trigger:hover { color: var(--teal); }

/* a plus that becomes a minus */
.facet-icon {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
}
.facet-icon::before, .facet-icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
.facet-icon::after { transform: rotate(90deg); }
.facet-trigger[aria-expanded="true"] .facet-icon::after { transform: rotate(0deg); }

/* 0fr → 1fr animates to the panel's natural height */
.facet-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(.22, .61, .36, 1);
}
.facet-panel > p {
  overflow: hidden;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}
.facet-trigger[aria-expanded="true"] + .facet-panel { grid-template-rows: 1fr; }
.facet-trigger[aria-expanded="true"] + .facet-panel > p { padding-bottom: 1.1rem; }

.facets-after {
  margin-top: 1.75rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- modes of learning ---------- */

.modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.75rem, 2vw, 1.25rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.modes li {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem);
  font-weight: 500;
  padding: 1.25rem 1.4rem;
  background: var(--wash);
  border-left: 4px solid var(--cyan);
  transition: transform .25s cubic-bezier(.22, .61, .36, 1), background .25s;
}
.modes li:hover { transform: translateX(4px); background: #e7f1ef; }
.modes li:nth-child(2) { border-left-color: var(--leaf); }
.modes li:nth-child(3) { border-left-color: var(--coral); }
.modes li:nth-child(4) { border-left-color: var(--orange); }
.modes li:nth-child(5) { border-left-color: var(--brick); }
.modes li:nth-child(6) { border-left-color: var(--teal); }

.ratio {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.ratio-figure {
  font-family: var(--display);
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 600;
  color: var(--teal);
  line-height: 1;
}
.ratio-text { color: var(--ink-soft); }

/* ---------- 12 months band ---------- */

.band-deep {
  background: var(--teal-deep);
  color: #eaf4f2;
}
.band-deep h2 { color: #fff; max-width: 18ch; }

/* Two columns so the figure fills the band instead of leaving it half empty. */
.continues {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.continues-copy { max-width: 36ch; }
.continues-count { border-left: 2px solid rgba(232, 135, 43, .45); padding-left: clamp(1.25rem, 3vw, 2.25rem); }
.continues-lead { color: #cfe4e1; margin-bottom: 0; }

.continues-figure {
  display: grid;
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.25rem);
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
}
.continues-figure span:last-child { color: var(--orange); }

.continues-note { color: #cfe4e1; font-size: 1rem; }

/* ---------- ecosystem: the four fields again ---------- */

.ecosystem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.ecosystem li {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.eco-mark { display: block; margin-bottom: 1rem; }
.ecosystem h3 { margin-bottom: .45em; }
.ecosystem p { color: var(--ink-soft); font-size: 1rem; margin: 0; }

/* ---------- expert ---------- */

.expert {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.expert h2 { margin: 0; }
.expert-body { max-width: 58ch; }
.expert p { color: var(--ink-soft); }
.expert-aim {
  margin-top: 1.5rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--teal);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink) !important;
}

/* ---------- steps ---------- */

.steps {
  counter-reset: step;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 2.5rem clamp(1rem, 2vw, 1.75rem) 0 0;
  border-top: 3px solid var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: .85rem;
  left: 0;
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 600;
  color: var(--coral);
}
.steps h3 { font-size: 1.1rem; margin-bottom: .4em; }
.steps p { color: var(--ink-soft); font-size: 1rem; margin: 0; }

/* ---------- interest form ---------- */

.band-interest {
  background: var(--wash);
  border-top: 1px solid var(--line);
}
.interest-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.interest-copy h2 { max-width: 16ch; }
.interest-lead {
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.05rem + .7vw, 1.55rem);
  font-weight: 500;
  color: var(--teal);
}
.interest-sub { color: var(--ink-soft); font-size: .98rem; }

.interest-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}
.form-title {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 1.3rem;
  color: var(--teal);
}
.field { grid-column: 1 / -1; display: grid; gap: .4rem; }
.field-half { grid-column: span 1; }
.field label {
  font-family: var(--display);
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
}

.interest-form input[type="text"],
.interest-form input[type="email"],
.interest-form input[type="tel"],
.interest-form input[type="number"] {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .75rem .9rem;
  transition: border-color .18s;
}
.interest-form input:focus { border-color: var(--teal); }
.interest-form [aria-invalid="true"] { border-color: var(--coral); background: #fdf3f5; }

.choices {
  border: 0;
  padding: 0;
  margin: .25rem 0 0;
  display: grid;
  gap: .55rem;
}
.choices legend {
  font-family: var(--display);
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  padding: 0;
  margin-bottom: .55rem;
}
.choices label {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-family: var(--body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.choices input {
  width: 1.1rem;
  height: 1.1rem;
  margin: .32rem 0 0;
  accent-color: var(--teal);
  flex: none;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: .4rem;
}
.form-note { margin: 0; font-size: .95rem; color: var(--ink-mute); }
.form-note.is-error { color: var(--brick); }
.form-note.is-ok { color: var(--teal); }

.form-small {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .85rem;
  line-height: 1.55;
  color: var(--ink-mute);
}

/* ---------- phone call-to-action bar ---------- */

.cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem 1rem;
  padding-bottom: calc(.7rem + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -18px rgba(12, 51, 48, .5);
  transform: translateY(110%);
  transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}
.cta-bar.is-up { transform: none; }
.cta-bar p {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: .95rem;
  line-height: 1.2;
  color: var(--ink);
  /* one line, so the button never gets pushed out of alignment */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cta-bar .button { flex: none; }

@media (max-width: 680px) {
  .cta-bar { display: flex; }
  .colophon { padding-bottom: 6rem; }
}
/* On the narrowest phones the label goes; the action is what matters. */
@media (max-width: 380px) {
  .cta-bar p { display: none; }
  .cta-bar .button { flex: 1 1 auto; }
}

/* ---------- colophon ---------- */

.colophon {
  background: var(--ink);
  color: #d5e4e1;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.colophon-inner { display: grid; gap: 1.1rem; justify-items: center; text-align: center; }
.colophon .lockup-ubika { height: 34px; filter: brightness(0) invert(1); }
.colophon .lockup img:first-child { width: 52px; height: 52px; }
.colophon .lockup-x { color: #7fa09c; }
.colophon-line {
  font-family: var(--display);
  font-size: 1.15rem;
  color: #fff;
  margin: 0;
}
.colophon-meta { margin: 0; font-size: .9rem; color: #94b2ae; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  /* Message first on narrow screens; the photograph follows the copy. */
  .hero-grid { grid-template-columns: 1fr; gap: clamp(2rem, 7vw, 3rem); }
  .hero-figure { aspect-ratio: 4 / 3; }
  .hero h1 { max-width: 20ch; }

  .feature, .feature-flip { grid-template-columns: 1fr; }
  .feature-flip .photo { order: -1; }
  .photo-portrait { aspect-ratio: 16 / 10; }
  .photo-strip { aspect-ratio: 16 / 7; }

  .two-up { grid-template-columns: 1fr; gap: 1.25rem; }
  .school-head { grid-template-columns: 1fr; }
  .continues, .expert { grid-template-columns: 1fr; }
  .continues-count {
    border-left: 0;
    border-top: 2px solid rgba(232, 135, 43, .45);
    padding-left: 0;
    padding-top: 1.5rem;
  }
  .pillars { grid-template-columns: 1fr 1fr; gap: 1.5rem 0; }
  .pillars li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .pillars li:nth-child(even) { padding-right: 0; }

  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modules { grid-template-columns: 1fr; }
  .module { padding: 2rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .module:last-child { border-bottom: 0; }

  .steps { grid-template-columns: 1fr 1fr; gap: 2rem clamp(1rem, 3vw, 2rem); }
  .interest-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  /* The sticky bar carries the call to action, so the masthead is just the
     marks, centred: the square Ubika logo instead of the wide wordmark. */
  .masthead .button { display: none; }
  .masthead-inner { min-height: 60px; justify-content: center; }
  .masthead .lockup-ubika { display: none; }
  .masthead .lockup-square { display: block; }
  .lockup { gap: .6rem; }
  .lockup img { width: 38px; height: 38px; }
  .lockup .lockup-square { height: 44px; }
  .masthead .lockup-x { font-size: .95rem; }

  /* The badge eats a third of a phone-width photo, and the masthead's square
     logo already shows the same mark — so the picture gets the whole frame. */
  .hero-badge { display: none; }
  .hero-figure { aspect-ratio: 5 / 4; }

  /* The marks read fine beside the heading here, and it halves the height. */
  .pillars { grid-template-columns: 1fr; gap: 0; }
  .pillars li {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .9rem 0;
    border-top: 1px solid var(--line);
  }
  .pillars li:first-child { border-top: 0; }
  .pillars .pillar-mark { margin: 0; flex: none; }
  .pillars h3 { max-width: none; font-size: 1.05rem; }

  .swap { grid-template-columns: 1fr; gap: 1.5rem; }
  .modes { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .photo-strip, .photo-portrait { aspect-ratio: 3 / 2; }
  .ecosystem { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .interest-form { grid-template-columns: 1fr; }
  .field-half { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  /* nothing may stay invisible waiting for an animation that won't run */
  .js .reveal, .hero-copy > *, .hero-figure { opacity: 1 !important; transform: none !important; }
  .photo:hover img, .modes li:hover, .encourage li:hover { transform: none; }
}

@media print {
  .masthead, .interest-form { display: none; }
  body { background: #fff; }
  .band-deep, .colophon { background: #fff; color: #000; }
  .band-deep h2, .colophon-line { color: #000; }
}
