/* ==========================================================================
   BEMO Agency — v2
   Headers: Inter ExtraBold (800). Labels: TT Autonomous (Adobe kit tbc5ryz).
   Body: Instrument Sans. Palette: #000107 black, #420219 burgundy, #C1112F red (highlight), #F7F7F7 off-white. Buttons are pills.
   Hero headline: Inter ExtraBold.
   ========================================================================== */

:root {
  --ink: #000107;
  --ink-2: #07080e;
  --ink-3: #0e0f16;
  --maroon: #420219;
  --maroon-2: #2a0110;
  --maroon-deep: #1e010e;
  --maroon-bright: #c1112f;  /* readable red/burgundy for text and thin lines on black */
  --maroon-grad: linear-gradient(160deg, #420219 0%, #2c0113 45%, #1e010e 100%);
  --accent: #c1112f;
  --paper: #f7f7f7;

  --line-dark: rgba(247, 247, 247, 0.12);
  --line-dark-strong: rgba(247, 247, 247, 0.24);
  --line-light: rgba(0, 1, 7, 0.12);
  --muted-dark: rgba(247, 247, 247, 0.72);
  --muted-light: rgba(0, 1, 7, 0.66);

  --display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --label: "tt-autonomous", "Arial Black", sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r: 6px;
  --r-lg: 10px;
  --pill: 999px;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27240%27 height=%27240%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.85%27 numOctaves=%273%27 stitchTiles=%27stitch%27/%3E%3CfeColorMatrix values=%270 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url(%23n)%27/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0;
}
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

/* Labels (TT Autonomous only) */
.eyebrow, .label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border: 1px solid var(--maroon-bright);
}
.light .eyebrow { color: var(--muted-light); }
.light .eyebrow::before { border-color: var(--maroon); }
.num {
  display: block;
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted-light);
  margin-bottom: 18px;
}
.section:not(.light) .num { color: var(--muted-dark); }

/* ---------- Buttons (pills) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--pill);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
/* standalone arrow, no circle; takes the button text colour */
.btn .arrow {
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  transition: transform .3s var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--paper); color: var(--ink); }
.btn-primary:hover { background: var(--accent); color: var(--paper); }
.btn-ghost { border-color: var(--line-dark-strong); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }
.light .btn-ghost { border-color: rgba(0,1,7,.24); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--maroon); }

/* ---------- Floating pill nav ---------- */
.site-header {
  position: fixed;
  inset: 16px 0 auto 0;
  z-index: 50;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1080px;
  height: 62px;
  margin: 0 auto;
  padding: 0 8px 0 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--pill);
  background: rgba(7, 8, 14, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled .nav { background: rgba(7, 8, 14, .85); border-color: var(--line-dark-strong); }
.site-header .wrap.nav { width: calc(100% - 2 * var(--gutter)); }
.nav-logo img { height: 18px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { font-size: 15px; color: var(--paper); transition: opacity .2s; position: relative; }
.nav-links a:not(.btn):hover { opacity: .7; }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -10px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent); transform: translateX(-50%);
}
.nav-links .btn { height: 44px; padding: 0 20px; font-size: 14px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--pill);
  background: transparent; color: var(--paper);
  cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 16px; height: 2px; background: currentColor; position: relative;
  transition: transform .3s var(--ease), background-color .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav { padding: 0 8px 0 20px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: 90px; left: var(--gutter); right: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 20px;
    background: var(--ink-2);
    border: 1px solid var(--line-dark);
    border-radius: var(--r-lg);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line-dark); font-size: 17px; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links .btn { margin-top: 18px; height: 52px; justify-content: center; }
}

/* ---------- Hero (centered, hook wall) ---------- */
.hero {
  position: relative;
  padding: clamp(150px, 20vh, 210px) 0 0;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.hero::before {
  /* hero background image, with a soft dark area behind the headline for readability */
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(55% 45% at 50% 38%, rgba(0, 1, 7, .45) 0%, rgba(0, 1, 7, 0) 100%),
    url("../assets/hero-bg.webp") center / cover no-repeat,
    #000107;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.9rem, 8.4vw, 7.6rem);
  line-height: .94;
  letter-spacing: -0.05em;
  max-width: 14ch;
  margin: 26px auto 28px;
}
.hero h1 .accent { color: var(--maroon-bright); }
.hero-lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--muted-dark);
  max-width: 36em;
  margin: 0 auto 36px;
}
.hero-lede strong { color: var(--paper); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Hook wall: example ad hooks scrolling past */
.hooks {
  margin-top: clamp(64px, 9vw, 110px);
  padding-bottom: clamp(56px, 7vw, 90px);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.hooks-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: slide 60s linear infinite;
}
.hooks:hover .hooks-track { animation-play-state: paused; }
/* Hook cards: solid, same style as v2, in the yellow + burgundy palette */
.hook {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 250px;
  height: 330px;
  padding: 22px;
  text-align: left;
  border-radius: var(--r-lg);
  background: var(--ink-3);
  border: 1px solid var(--line-dark);
}
.hook:nth-child(3n+1) { background: var(--maroon); border-color: rgba(247,247,247,.14); }
.hook:nth-child(4n+3) {
  /* frosted glass over the hero image, with a light off-white glass edge */
  background: linear-gradient(155deg, rgba(247,247,247,.14) 0%, rgba(247,247,247,.05) 55%, rgba(247,247,247,.02) 100%), rgba(0,1,7,.28);
  border-color: rgba(247,247,247,.28);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.hook .label { font-size: 11px; }

.hook p {
  margin: 22px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.hook .meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line-dark);
}

/* service cards: name, short description, arrow */
.hook { color: var(--paper); transition: transform .4s var(--ease), border-color .3s var(--ease); }
.hook:hover { transform: translateY(-4px); }
.hook p { font-size: 1.75rem; }
.hook .desc {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(247,247,247,.72);
}
.hook .go {
  font-size: 16px;
  opacity: .8;
  transition: transform .3s var(--ease), opacity .3s;
}
.hook:hover .go { transform: translateX(4px); opacity: 1; }
/* hide the service card wall on phones; the hero ends after the buttons */
@media (max-width: 600px) {
  .hooks { display: none; }
  .hero { padding-bottom: 80px; }
}
@keyframes slide { to { transform: translateX(calc(-50% - 8px)); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.light { background: var(--paper); color: var(--ink); }
.maroon {
  background:
    radial-gradient(70% 70% at 50% 120%, rgba(66, 2, 25, .95) 0%, rgba(66, 2, 25, .45) 40%, rgba(66, 2, 25, 0) 75%),
    var(--ink);
  color: var(--paper);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.section-head h2 { font-size: clamp(2.3rem, 5vw, 4.4rem); margin-top: 18px; letter-spacing: -0.045em; }
.section-head p { color: var(--muted-dark); margin: 0; max-width: 34em; }
.light .section-head p { color: var(--muted-light); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Manifesto */
.manifesto {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.manifesto .eyebrow { margin-top: 14px; }
.manifesto .statement {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0;
}
.manifesto .statement .dim { color: rgba(0,1,7,.28); }
.truths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(56px, 7vw, 96px);
}
.truth {
  padding: 28px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line-light);
}
.truth .big {
  font-family: var(--display);
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--maroon);
}
.truth h3 { font-size: 1.3rem; letter-spacing: -0.025em; margin: 28px 0 10px; }
.truth p { color: var(--muted-light); margin: 0; font-size: 16px; }
@media (max-width: 860px) {
  .manifesto { grid-template-columns: 1fr; }
  .truths { grid-template-columns: 1fr; }
}

/* Services accordion */
.acc { border-top: 1px solid var(--line-dark); }
.acc details { border-bottom: 1px solid var(--line-dark); }
.acc summary {
  list-style: none;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(0, 0.9fr) 52px;
  gap: 24px;
  align-items: center;
  padding: 30px 0;
  cursor: pointer;
}
.acc summary::-webkit-details-marker { display: none; }
.acc .idx { font-family: var(--label); font-size: 13px; letter-spacing: .12em; color: var(--muted-dark); }
.acc h3 {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  letter-spacing: -0.045em;
  transition: color .3s var(--ease);
}
.acc summary:hover h3, .acc details[open] h3 { color: var(--accent); }
.acc .short { color: var(--muted-dark); font-size: 16px; margin: 0; }
.acc .plus {
  width: 52px; height: 52px;
  border-radius: var(--pill);
  border: 1px solid var(--line-dark-strong);
  position: relative;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .4s var(--ease);
}
.acc .plus::before, .acc .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 16px; height: 1.5px; background: var(--paper);
  transform: translate(-50%, -50%);
}
.acc .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc details[open] .plus { background: var(--accent); border-color: var(--accent); transform: rotate(45deg); }
.acc details[open] .plus::before, .acc details[open] .plus::after { background: var(--paper); }
.acc .body {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(0, 0.9fr) 52px;
  gap: 24px;
  padding: 0 0 36px;
}
.acc .body > div { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--pill);
  border: 1px solid var(--line-dark-strong);
  font-size: 14px;
  font-weight: 500;
}
.acc .body .more { margin-left: auto; }
@media (max-width: 860px) {
  .acc summary { grid-template-columns: minmax(0, 1fr) 44px; gap: 12px 16px; padding: 24px 0; }
  .acc .idx { grid-column: 1 / -1; }
  .acc .short { grid-column: 1; grid-row: 3; }
  .acc .plus { grid-column: 2; grid-row: 2; width: 44px; height: 44px; }
  .acc .body { grid-template-columns: 1fr; }
  .acc .body > div { grid-column: 1; }
  .acc .body .more { margin-left: 0; }
}

/* Process timeline */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-top: 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 7px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, var(--accent), rgba(193,17,47,.12));
}
.tstep { position: relative; }
.tstep::before {
  content: "";
  position: absolute;
  top: -40px; left: 0;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid var(--accent);
}
.tstep .label { color: rgba(247,247,247,.7); }
.tstep h3 { font-size: 1.7rem; letter-spacing: -0.035em; margin: 16px 0 12px; }
.tstep p { color: rgba(247,247,247,.76); font-size: 16px; margin: 0; }
.tstep .out {
  display: inline-flex; margin-top: 18px;
  padding: 6px 12px; border-radius: var(--pill);
  background: rgba(193,17,47,.2); color: var(--paper);
  font-size: 13px; font-weight: 600;
}
@media (max-width: 960px) {
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .timeline::before { display: none; }
  .tstep::before { top: -26px; }
}
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }

/* Who we work with */
.who {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.who-item { padding-top: 24px; border-top: 1px solid var(--line-light); }
.who-item .pilltitle {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--pill);
  border: 1.5px solid var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.who-item:nth-child(2) .pilltitle { background: var(--ink); color: var(--paper); }
.who-item:nth-child(3) .pilltitle { border-color: var(--accent); color: var(--accent); }
.who-item:nth-child(4) .pilltitle { background: var(--maroon); border-color: var(--maroon); color: var(--paper); }
.who-item p { color: var(--muted-light); font-size: 16px; margin: 0; }
@media (max-width: 960px) { .who { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
@media (max-width: 560px) { .who { grid-template-columns: 1fr; } }

/* CTA */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  /* same image as the hero, mirrored and shifted so the streak sweeps the other way */
  background:
    radial-gradient(50% 45% at 50% 48%, rgba(0, 1, 7, .5) 0%, rgba(0, 1, 7, 0) 100%),
    url("../assets/hero-bg.webp") 30% 75% / 130% auto no-repeat,
    #000107;
  transform: scaleX(-1);
}
/* on narrow screens the section is taller than wide: let the image cover the full height */
@media (max-width: 760px) {
  .cta::before {
    background-size: auto, cover, auto;
    background-position: center, 40% 60%, center;
  }
}
.cta h2 {
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  letter-spacing: -0.05em;
  line-height: .95;
  max-width: 14ch;
  margin: 22px auto 26px;
}
.cta h2 .accent { color: var(--accent); }
.cta p { color: var(--muted-dark); max-width: 34em; margin: 0 auto 32px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 190px 0 clamp(64px, 8vw, 110px);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  /* same image as the home hero: left side darkened for the left-aligned text, streak sweeping through on the right */
  background:
    linear-gradient(90deg, rgba(0,1,7,.75) 0%, rgba(0,1,7,.35) 45%, rgba(0,1,7,0) 75%),
    linear-gradient(to bottom, rgba(0,1,7,0) 70%, rgba(0,1,7,.6) 100%),
    url("../assets/hero-bg.webp") 70% 40% / cover no-repeat,
    #000107;
}
.page-hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); letter-spacing: -0.05em; line-height: .96; margin: 22px 0 24px; max-width: 15ch; }
.page-hero p { color: var(--muted-dark); max-width: 38em; font-size: clamp(1.05rem, 1.4vw, 1.2rem); margin: 0; }

/* Services page rows */
.service-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 48px;
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--line-light);
}
.service-row:last-child { border-bottom: 1px solid var(--line-light); }
.service-row .idx { font-family: var(--label); font-size: 14px; letter-spacing: .12em; color: var(--muted-light); padding-top: 10px; }
.service-row h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.045em; margin-bottom: 18px; }
.service-row .intro { color: var(--muted-light); }
.service-row h4 {
  font-family: var(--label); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-light); margin: 0 0 14px;
}
.service-row ul { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.service-row li {
  display: inline-flex; align-items: center;
  height: 38px; padding: 0 16px;
  border-radius: var(--pill);
  border: 1px solid rgba(0,1,7,.18);
  font-size: 15px;
}
.service-row .for { font-size: 15px; color: var(--muted-light); margin: 0; }
.service-row .for strong { color: var(--ink); }
@media (max-width: 860px) { .service-row { grid-template-columns: 1fr; } .service-row .idx { padding: 0; } }

/* Approach page */
.ladder { border-top: 1px solid var(--line-dark); }
.rung {
  display: grid;
  grid-template-columns: 70px minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-dark);
  align-items: baseline;
}
.rung .lvl { font-family: var(--label); font-size: 13px; letter-spacing: .12em; color: var(--muted-dark); }
.rung h3 { font-size: 1.6rem; letter-spacing: -0.035em; }
.rung p { margin: 0; color: var(--muted-dark); font-size: 16px; }
.rung .k { display: block; font-family: var(--label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 6px; opacity: .7; }
.rung .bar { display: block; height: 4px; border-radius: var(--pill); background: var(--line-dark); margin-top: 14px; max-width: 120px; position: relative; overflow: hidden; }
.rung .bar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: var(--pill); }
@media (max-width: 860px) {
  .rung { grid-template-columns: 50px minmax(0, 1fr); }
  .rung > div:nth-child(n+3) { grid-column: 2; }
}
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.principle { padding: 32px; background: #fff; border: 1px solid var(--line-light); border-radius: var(--r-lg); }
.principle h3 { font-size: 1.5rem; letter-spacing: -0.03em; margin: 28px 0 12px; }
.principle p { color: var(--muted-light); margin: 0; font-size: 16px; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

/* Shared maroon CTA band (inner pages) */
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 32px 64px;
  align-items: end;
  text-align: left;
}
.cta-inner h2 { margin: 18px 0 0; max-width: none; font-size: clamp(2.2rem, 5vw, 4.2rem); }
.cta-inner p { margin: 0 0 28px; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-aside h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.04em; margin: 18px 0 18px; }
.contact-aside p { color: var(--muted-light); }
.contact-aside ol { list-style: none; padding: 0; margin: 32px 0 0; counter-reset: c; border-top: 1px solid var(--line-light); }
.contact-aside li {
  counter-increment: c;
  display: grid; grid-template-columns: 44px 1fr;
  padding: 18px 0; border-bottom: 1px solid var(--line-light); font-size: 16px;
}
.contact-aside li::before { content: "0" counter(c); font-family: var(--label); font-size: 13px; letter-spacing: .1em; color: var(--muted-light); padding-top: 3px; }
.contact-aside li strong { display: block; }
.contact-aside li span { color: var(--muted-light); font-size: 15px; }
.form { background: #fff; border: 1px solid var(--line-light); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--muted-light); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(0,1,7,.16);
  border-radius: var(--r);
  padding: 13px 14px; width: 100%;
  transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000107' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.form-foot small { color: var(--muted-light); font-size: 13px; }
.form-status { margin-top: 18px; font-size: 15px; font-weight: 600; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  padding: 72px 0 32px;
  font-size: 15px;
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.6fr));
  gap: 40px;
  padding-bottom: 56px;
}
.footer-top img { height: 22px; width: auto; margin-bottom: 20px; }
.footer-top p { color: var(--muted-dark); max-width: 26em; }
.footer-top h4 {
  font-family: var(--label); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-dark); margin-bottom: 18px;
}
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-top a:hover { color: var(--accent); }
.footer-word { display: block; width: 100%; opacity: .1; margin-bottom: 28px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--line-dark);
  color: var(--muted-dark); font-size: 13px;
}
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > div:first-child { grid-column: 1 / -1; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
