:root {
  --logo-blue: #7EC8E8;
  --logo-blue-deep: #5AB0D4;
  --logo-orange: #E8742C;
  --ink: #0E0E10;
  --ink-soft: #2A2824;
  --ink-mute: #6B6660;
  --cream: #F4EEE2;
  --cream-card: #FAF6EC;
  --cream-deep: #EADFC9;
  --rule: rgba(14,14,16,0.14);
  --rule-soft: rgba(14,14,16,0.08);

  --font-display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-ui: 'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Data waves (decorative background) ---------- */
.data-waves {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.data-waves .dw-row {
  position: absolute;
  left: 0;
  width: max-content;
  white-space: nowrap;
  font-family: var(--font-mono, monospace);
  font-weight: 500;
  letter-spacing: 0.15em;
  display: flex;
}
.data-waves .dw-row span {
  display: inline-block;
  padding-right: 40px;
}

/* 4 rows at different heights, sizes — motion is driven by JS (mouse velocity) */
.data-waves .dw-row-1 { top: 18%; font-size: 18px; color: #F4F6F7; }
.data-waves .dw-row-2 { top: 38%; font-size: 22px; color: #F4F6F7; }
.data-waves .dw-row-3 { top: 58%; font-size: 14px; color: #F4F6F7; }
.data-waves .dw-row-4 { top: 78%; font-size: 20px; color: #F4F6F7; }
.data-waves .dw-row { transform: translate3d(0,0,0); will-change: transform; }

a { color: inherit; }

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Keep all real content above the data-waves background */
.topbar, main, .footer, .modal-backdrop, .tweaks, .tweaks-toggle { position: relative; z-index: 1; }
.modal-backdrop { z-index: 110; }

/* ---------- Top bar (always visible) ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.topbar .mark { display: flex; align-items: center; gap: 10px; }
.topbar .mark-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--logo-orange);
  box-shadow: 0 0 0 3px rgba(232,116,44,0.18);
}
.topbar .meta { display: flex; gap: 24px; }
.topbar .meta span strong { color: var(--ink); font-weight: 500; }

/* ---------- Shared typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.display em { font-style: italic; color: var(--logo-orange); }

.body-lg {
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 52ch;
}
.body { color: var(--ink-soft); }

.hairline {
  height: 1px; background: var(--rule);
  border: 0;
}

/* ---------- Stage ---------- */
.stage {
  flex: 1;
  padding: 64px 48px 40px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

/* ---------- LAYOUT A: Stacked Editorial ---------- */
.lay-stacked .hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: end;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.lay-stacked .hero.hero-3col {
  grid-template-columns: 220px 1fr auto;
}
.lay-stacked .hero-game {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 6px;
  min-width: 20px;
  position: relative;
}

/* Tiny launch button: 5px orange dot with blue border */
.lay-stacked .game-launch {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid var(--logo-blue-deep);
  background: var(--logo-orange);
  padding: 0;
  cursor: pointer;
  /* Expand hit-target without visually enlarging the dot */
  box-shadow: 0 0 0 6px transparent;
  transition: box-shadow .2s ease, transform .2s ease;
}
.lay-stacked .game-launch:hover {
  box-shadow: 0 0 0 6px rgba(232,116,44,0.18);
  transform: scale(1.2);
}
.lay-stacked .game-launch:focus-visible {
  outline: 2px solid var(--logo-blue-deep);
  outline-offset: 3px;
}

/* When the game is active, the column grows to hold the iframe */
.lay-stacked .hero.hero-3col.game-active {
  grid-template-columns: 220px 1fr minmax(360px, 520px);
}
.lay-stacked .hero-game.game-active {
  width: 100%;
}
.lay-stacked .hero-game .game-frame {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #000;
}
.lay-stacked .hero-game .game-close {
  position: absolute;
  top: -6px; right: -6px;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  box-shadow: 0 4px 10px -4px rgba(14,14,16,0.3);
}
.lay-stacked .hero-game .game-close:hover {
  background: var(--logo-orange);
  color: var(--cream);
  border-color: var(--logo-orange);
}
.lay-stacked .logo-wrap img {
  width: 112px; height: auto; display: block;
  transform-origin: 50% 100%;
  cursor: pointer;
}
.lay-stacked .logo-wrap:hover img {
  animation: moon-bounce 1.6s ease-in-out infinite;
}
@keyframes moon-bounce {
  0%   { transform: translateY(0)     scale(1, 1); }
  15%  { transform: translateY(0)     scale(1.08, 0.92); }   /* squash on takeoff */
  45%  { transform: translateY(-48px) scale(0.96, 1.04); }   /* float up, slight stretch */
  55%  { transform: translateY(-48px) scale(0.96, 1.04); }   /* hang at apex */
  85%  { transform: translateY(0)     scale(1.08, 0.92); }   /* squash on landing */
  100% { transform: translateY(0)     scale(1, 1); }
}
@media (prefers-reduced-motion: reduce) {
  .lay-stacked .logo-wrap:hover img { animation: none; }
}
.lay-stacked .hero-text .eyebrow { margin-bottom: 20px; display: block; }
.lay-stacked .display-xl {
  font-size: clamp(72px, 10vw, 148px);
}
.lay-stacked .wordmark {
  /* SVG wordmark replaces the text — let it set its own height */
  font-size: 0;
  line-height: 0;
  margin: 0;
}
.lay-stacked .wordmark img {
  display: block;
  width: 50%;
  max-width: 760px;
  height: auto;
}
.lay-stacked .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--ink-soft);
  margin-top: 20px;
  max-width: 38ch;
  line-height: 1.25;
}

.lay-stacked .services {
  margin-top: 64px;
}
.lay-stacked .services-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 28px;
}
.lay-stacked .services-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  margin: 0;
}
.lay-stacked .service-row {
  display: grid;
  grid-template-columns: 60px 240px 1fr auto;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.lay-stacked .service-row:last-child { border-bottom: 1px solid var(--rule); }
.lay-stacked .service-row .num {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0.05em;
}
.lay-stacked .service-row h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  margin: 0;
  line-height: 1.1;
}
.lay-stacked .service-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 48ch;
}
.lay-stacked .service-row .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-self: start;
}

/* ---------- Journey (timeline) ---------- */
.lay-stacked .journey {
  margin-top: 96px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.lay-stacked .journey-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 36px;
}
.lay-stacked .journey-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  margin: 0;
}
.lay-stacked .j-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
/* Vertical timeline rule */
.lay-stacked .j-list::before {
  content: "";
  position: absolute;
  left: 95px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--rule);
}
.lay-stacked .j-entry {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  padding: 22px 0;
  position: relative;
  align-items: start;
}
.lay-stacked .j-entry + .j-entry { border-top: 1px solid var(--rule-soft, #e6ded0); }
/* Dot on the timeline line */
.lay-stacked .j-entry::before {
  content: "";
  position: absolute;
  left: 91px;
  top: 30px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  z-index: 1;
}
.lay-stacked .j-year {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  padding-top: 6px;
  text-align: left;
}
.lay-stacked .j-body { padding-left: 32px; }
.lay-stacked .j-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 6px;
  line-height: 1.2;
}
.lay-stacked .j-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  max-width: 62ch;
}
.lay-stacked .j-desc code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 1px 6px;
  background: rgba(14,14,16,0.05);
  border: 1px solid var(--rule-soft, #e6ded0);
  border-radius: 3px;
  color: var(--ink);
  white-space: nowrap;
}
/* Highlight the "Now" entry */
.lay-stacked .j-entry.j-now::before {
  background: var(--logo-orange);
  border-color: var(--logo-orange);
  box-shadow: 0 0 0 4px rgba(232,116,44,0.18);
}
.lay-stacked .j-entry.j-now .j-year {
  color: var(--logo-orange);
  font-weight: 600;
}
.lay-stacked .j-entry.j-now .j-title {
  font-style: italic;
}

.lay-stacked .cta-row {
  margin-top: 64px;
  display: flex; gap: 16px; align-items: center;
}

/* ---------- LAYOUT B: Split ---------- */
.lay-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  min-height: calc(100vh - 56px);
  max-width: none;
  margin: 0;
  padding: 0;
}
.lay-split .left {
  background: var(--cream);
  padding: 72px 64px;
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--rule);
  position: relative;
}
.lay-split .right {
  background: var(--cream-card);
  padding: 72px 64px;
  display: flex; flex-direction: column;
}

.lay-split .card-top {
  display: flex; justify-content: space-between; align-items: start;
}
.lay-split .card-top .logo-wrap img {
  width: 86px; height: auto; display: block;
}
.lay-split .stamp {
  border: 1px solid var(--ink);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-2deg);
  color: var(--ink);
  background: var(--cream-card);
}

.lay-split .name-block {
  margin-top: auto;
}
.lay-split .name-block h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 7vw, 104px);
  line-height: 0.95;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.lay-split .name-block h1 em {
  font-style: italic;
  color: var(--logo-orange);
}
.lay-split .principal {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.lay-split .tagline-b {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  line-height: 1.25;
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0;
}

.lay-split .right h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  margin: 0 0 24px;
}
.lay-split .services-b { display: flex; flex-direction: column; gap: 0; }
.lay-split .svc-b {
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  align-items: start;
}
.lay-split .svc-b:last-child { border-bottom: 1px solid var(--rule); }
.lay-split .svc-b .n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--logo-orange);
  font-weight: 500;
  padding-top: 4px;
}
.lay-split .svc-b h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 6px;
  line-height: 1.1;
}
.lay-split .svc-b p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.lay-split .right-bottom {
  margin-top: auto;
  padding-top: 32px;
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* ---------- LAYOUT C: Dossier Grid ---------- */
.lay-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  padding: 32px;
  max-width: 1440px;
  margin: 0 auto;
}
.lay-grid .card {
  background: var(--cream-card);
  border: 1px solid var(--rule);
  padding: 28px;
  border-radius: 2px;
  position: relative;
}
.lay-grid .card .card-label {
  position: absolute;
  top: 10px; right: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.lay-grid .c-hero {
  grid-column: span 8; grid-row: span 2;
  background: var(--ink);
  color: var(--cream);
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 420px;
  overflow: hidden;
}
.lay-grid .c-hero .card-label { color: rgba(244,238,226,0.5); }
.lay-grid .c-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 7vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
}
.lay-grid .c-hero h1 em {
  color: var(--logo-orange);
  font-style: italic;
}
.lay-grid .c-hero .hero-foot {
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px;
}
.lay-grid .c-hero .tag-c {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: rgba(244,238,226,0.78);
  max-width: 30ch;
  line-height: 1.25;
}
.lay-grid .c-hero img {
  width: 68px; height: auto;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.3));
}

.lay-grid .c-logo {
  grid-column: span 4; grid-row: span 2;
  background: var(--logo-blue);
  display: flex; align-items: center; justify-content: center;
  min-height: 420px;
}
.lay-grid .c-logo img { width: 42%; height: auto; }

.lay-grid .c-principal { grid-column: span 4; min-height: 180px; }
.lay-grid .c-principal .eyebrow { display: block; margin-bottom: 10px; }
.lay-grid .c-principal .name {
  font-family: var(--font-display);
  font-size: 42px; line-height: 1; margin: 0 0 6px;
}
.lay-grid .c-principal .role {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.lay-grid .c-principal .contact-btns {
  margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap;
}

.lay-grid .c-entity { grid-column: span 4; min-height: 180px; }
.lay-grid .c-entity dl {
  margin: 10px 0 0; padding: 0;
  font-family: var(--font-mono); font-size: 12px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px;
}
.lay-grid .c-entity dt { color: var(--ink-mute); letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px; }
.lay-grid .c-entity dd { margin: 0; color: var(--ink); }

.lay-grid .c-stamp {
  grid-column: span 4; min-height: 180px;
  background: var(--cream-deep);
  display: flex; flex-direction: column; justify-content: space-between;
}
.lay-grid .c-stamp .seal {
  width: 84px; height: 84px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 9px;
  text-align: center; letter-spacing: 0.08em; text-transform: uppercase;
  line-height: 1.3;
  transform: rotate(-6deg);
  background: var(--cream-card);
  color: var(--ink);
}

.lay-grid .c-svc { grid-column: span 4; min-height: 220px; display: flex; flex-direction: column; }
.lay-grid .c-svc h3 {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 400;
  margin: 14px 0 8px; line-height: 1.05;
}
.lay-grid .c-svc p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.lay-grid .c-svc .svc-n {
  font-family: var(--font-mono);
  font-size: 32px; color: var(--logo-orange);
  line-height: 1;
}

/* ---------- Buttons / chips ---------- */
.btn {
  appearance: none; border: 1px solid var(--ink);
  background: var(--ink); color: var(--cream);
  font-family: var(--font-ui); font-weight: 500; font-size: 14px;
  padding: 12px 20px; cursor: pointer;
  letter-spacing: 0.01em;
  transition: transform .15s ease, background .15s ease;
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px;
}
.btn:hover { transform: translateY(-1px); background: var(--ink-soft); }
.btn.outline { background: transparent; color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--cream); }
.btn.orange { background: var(--logo-orange); border-color: var(--logo-orange); color: var(--cream-card); }
.btn.orange:hover { background: #d0661f; border-color: #d0661f; }
.btn.sm { padding: 8px 14px; font-size: 12px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute); background: var(--cream-card);
}
.chip.orange { color: var(--logo-orange); border-color: rgba(232,116,44,0.4); }
.chip.blue { color: var(--logo-blue-deep); border-color: rgba(90,176,212,0.5); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--rule);
  padding: 28px 48px 36px;
  max-width: 1280px;
  width: 100%;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.footer .f-left strong {
  color: var(--ink); font-weight: 500;
  display: block; margin-bottom: 4px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.footer .f-mid {
  text-align: center;
  padding: 6px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.footer .f-right { text-align: right; }
.footer a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.footer a:hover { border-bottom-color: var(--ink); }
.footer .wink {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 6px;
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- Contact modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(14,14,16,0.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  padding: 24px;
  animation: fadeIn .2s ease;
}
.modal-backdrop[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--cream-card);
  width: 100%; max-width: 560px;
  border-radius: 6px;
  border: 1px solid var(--rule);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.4);
  animation: rise .25s cubic-bezier(0.2,0.8,0.2,1);
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.modal-head {
  display: flex; justify-content: space-between; align-items: start;
  padding: 24px 28px 10px;
}
.modal-head h2 {
  font-family: var(--font-display);
  font-weight: 400; font-size: 34px;
  line-height: 1; margin: 0;
}
.modal-head p {
  margin: 8px 0 0; font-size: 13px; color: var(--ink-mute);
}
.modal-close {
  background: transparent; border: 1px solid var(--rule);
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--ink-mute);
}
.modal-close:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.modal-body { padding: 16px 28px 28px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
}
.field input, .field textarea {
  font-family: var(--font-ui);
  font-size: 15px;
  padding: 12px 14px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { min-height: 110px; }
.modal-foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--rule);
  padding: 14px 28px;
  background: var(--cream);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
}

.modal.success .success-body {
  padding: 40px 28px; text-align: center;
}
.modal.success .success-body h3 {
  font-family: var(--font-display);
  font-weight: 400; font-size: 36px;
  margin: 16px 0 8px;
}
.modal.success .success-body p {
  color: var(--ink-mute); margin: 0 0 20px;
}
.success-bird { width: 72px; height: auto; animation: bob 2s ease-in-out infinite; }
@keyframes bob {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}

/* ---------- Tweaks panel ---------- */
.tweaks-toggle {
  position: fixed; bottom: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--cream-card);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.25);
  z-index: 89;
  transition: transform .15s ease;
}
.tweaks-toggle:hover { transform: translateY(-2px); }

.tweaks {
  position: fixed; bottom: 20px; right: 20px;
  background: var(--cream-card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.25);
  padding: 16px 18px 18px;
  z-index: 90;
  width: 280px;
  font-family: var(--font-ui);
}
.tweaks h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 400; font-size: 22px;
}
.tweaks .tw-sub {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.tweaks .tw-group { margin-bottom: 14px; }
.tweaks .tw-label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 6px;
}
.tweaks .tw-options {
  display: flex; gap: 4px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 3px;
}
.tweaks .tw-opt {
  flex: 1;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 7px 8px;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--ink-mute);
  cursor: pointer;
  transition: all .15s ease;
}
.tweaks .tw-opt.active {
  background: var(--ink);
  color: var(--cream);
}
.tweaks .tw-opt:hover:not(.active) {
  color: var(--ink);
}

/* ---------- Playful tone additions ---------- */
.tone-playful .wink { display: block !important; }
.tone-serious .wink { display: none !important; }

.tone-playful .logo-wrap img {
  transition: transform .5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tone-playful .logo-wrap:hover img {
  transform: rotate(-6deg) translateY(-4px);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .topbar { padding: 14px 20px; flex-direction: column; align-items: start; gap: 8px; }
  .topbar .meta { gap: 14px; flex-wrap: wrap; }
  .stage { padding: 40px 20px; }

  /* Stacked: collapse hero — each hero piece on its own row, no floats */
  .lay-stacked .hero,
  .lay-stacked .hero.hero-3col,
  .lay-stacked .hero.hero-3col.game-active {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .lay-stacked .logo-wrap {
    float: none;
    margin: 0;
  }
  .lay-stacked .logo-wrap img {
    width: 56px;
  }
  .lay-stacked .hero-game {
    align-items: flex-start;
    justify-content: flex-start;
    padding-bottom: 0;
  }
  /* When the game is playing, let the iframe take the full width of the row */
  .lay-stacked .hero-game.game-active {
    width: 100%;
    max-width: 520px;
  }
  .lay-stacked .display-xl {
    font-size: clamp(56px, 14vw, 96px);
    line-height: 0.95;
  }
  .lay-stacked .hero-text .eyebrow { display: block; margin-bottom: 14px; }
  .lay-stacked .tagline { max-width: none; }

  .lay-stacked .service-row { grid-template-columns: 40px 1fr; gap: 12px; }
  .lay-stacked .service-row .tag, .lay-stacked .service-row p { grid-column: 2 / -1; }

  /* Journey: shift the timeline line to the left and tighten spacing */
  .lay-stacked .journey { margin-top: 64px; padding-top: 32px; }
  .lay-stacked .journey-head { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 24px; }
  .lay-stacked .journey-head h2 { font-size: 32px; }
  .lay-stacked .j-list::before { left: 15px; }
  .lay-stacked .j-entry {
    grid-template-columns: 60px 1fr;
    gap: 12px;
    padding: 16px 0 16px 32px;
  }
  .lay-stacked .j-entry::before { left: 11px; top: 24px; }
  .lay-stacked .j-year { padding-top: 2px; font-size: 12px; }
  .lay-stacked .j-body { padding-left: 0; grid-column: 1 / -1; margin-left: 0; }
  .lay-stacked .j-title { font-size: 19px; }
  .lay-stacked .j-desc { font-size: 14px; }

  /* Split: collapse to single column, inline logo w/ wordmark */
  .lay-split { grid-template-columns: 1fr; }
  .lay-split .left, .lay-split .right { padding: 40px 24px; }
  .lay-split .card-top .logo-wrap img { width: 56px; }
  .lay-split .card-top { margin-bottom: 28px; }
  .lay-split .name-block { margin-top: 0; }
  .lay-split .name-block h1 {
    font-size: clamp(52px, 13vw, 88px);
  }

  /* Grid: collapse, hero becomes compact with inline logo */
  .lay-grid { padding: 16px; gap: 12px; }
  .lay-grid .c-hero, .lay-grid .c-logo,
  .lay-grid .c-principal, .lay-grid .c-entity,
  .lay-grid .c-stamp, .lay-grid .c-svc { grid-column: span 12; }
  .lay-grid .c-hero { min-height: auto; padding: 24px; }
  .lay-grid .c-hero h1 {
    font-size: clamp(48px, 13vw, 84px);
  }
  .lay-grid .c-hero .hero-foot {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }
  .lay-grid .c-hero img { width: 48px; }
  /* Hide the big blue logo card on mobile — logo is already inline in hero */
  .lay-grid .c-logo { display: none; }

  .tweaks { right: 10px; bottom: 10px; width: calc(100vw - 20px); max-width: 320px; }
  .footer { grid-template-columns: 1fr; padding: 24px 20px; }
  .footer .f-right { text-align: left; }
  .footer .f-mid { justify-self: start; }
}

@media (max-width: 520px) {
  .lay-stacked .logo-wrap img { width: 48px; }
  .lay-split .card-top .logo-wrap img { width: 48px; }
  .lay-grid .c-hero img { width: 42px; }
  .lay-split .card-top { flex-wrap: wrap; gap: 12px; }
  .lay-split .stamp { font-size: 9px; padding: 6px 10px; }
}
