/* ============================================================
   MILC — Home page (elevated single-page experience)
   Builds on css/milc.css tokens. Merges the institutional
   concepts from the uploaded draft into the brand system,
   and adds accessible, intuitive navigation + tasteful motion.
   Two palettes via Tweaks: data-palette="white" | "plum"
   ============================================================ */

body { background: var(--page-bg, #FCFBF9); }

/* ---- Skip link (a11y) ---- */
.skip-link {
  position: fixed; left: 50%; top: -60px; transform: translateX(-50%);
  z-index: 400; background: var(--plum); color: var(--cream);
  padding: 10px 20px; border-radius: 0 0 12px 12px; font-family: var(--sans);
  font-weight: 700; font-size: .82rem; letter-spacing: .04em;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--rose));
  z-index: 300; transition: width .08s linear;
}

/* ---- Nav scroll state + smooth-scroll offset ---- */
.nav { transition: box-shadow .3s ease; }
.nav.is-scrolled { box-shadow: 0 10px 34px -18px rgba(0,0,0,.55); }
section[id], header[id] { scroll-margin-top: 92px; }

.nav-links a { position: relative; }
.nav-links a.current { border-color: var(--gold); }

/* CTA in nav */
.nav-cta-link {
  margin-left: var(--s2);
  background: var(--gold); color: var(--plum) !important;
  border: 0 !important; border-radius: 999px; padding: 9px 20px !important;
  font-weight: 700; font-size: .8rem; letter-spacing: .03em; white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.nav-cta-link:hover { background: var(--gold-soft); transform: translateY(-1px); }

/* ============================================================
   SIDE DOT NAVIGATION (desktop) — intuitive section jumping
   ============================================================ */
.dotnav {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
  z-index: 150; display: flex; flex-direction: column; gap: 6px;
  padding: 12px 9px; border-radius: 999px;
  background: rgba(250,246,238,.62); backdrop-filter: blur(10px);
  border: 1px solid rgba(74,25,66,.10);
  box-shadow: 0 18px 40px -24px rgba(74,25,66,.5);
}
.dotnav a {
  display: flex; align-items: center; gap: 10px;
  padding: 5px; position: relative;
}
.dotnav .dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1.6px solid rgba(74,25,66,.4); background: transparent;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.dotnav a:hover .dot { border-color: var(--gold); transform: scale(1.25); }
.dotnav a.current .dot { background: var(--gold); border-color: var(--gold); transform: scale(1.15); }
.dotnav .dot-label {
  position: absolute; right: 26px; top: 50%; transform: translateY(-50%) translateX(6px);
  white-space: nowrap; font-family: var(--sans); font-weight: 700;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream); background: var(--plum);
  padding: 6px 11px; border-radius: 999px; pointer-events: none;
  opacity: 0; transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 10px 24px -12px rgba(74,25,66,.6);
}
.dotnav a:hover .dot-label { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 1180px) { .dotnav { display: none; } }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--plum); color: var(--cream); border: 0;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 16px 34px -16px rgba(74,25,66,.7);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, background .2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { background: var(--plum-deep); transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 1180px) { .to-top { right: 16px; bottom: 16px; } }

/* ============================================================
   SECTION RHYTHM
   ============================================================ */
.lp-section { padding-block: var(--s16); position: relative; overflow: clip; }
.lp-section .wrap { max-width: 1080px; }
@media (max-width: 760px) { .lp-section { padding-block: var(--s10); } }

/* Eyebrow + short rule helper, centered variants */
.lp-section .eyebrow { color: var(--rose); }

/* Center the narrow text blocks as blocks (text-align centers their text,
   but their max-width meant the block itself hugged the left padding edge). */
.hero .kicker, .hero .full-name,
.intro .eyebrow,
.services .eyebrow,
.primer .eyebrow,
.approach .attrib,
.contact .eyebrow { margin-inline: auto; }

/* ============================================================
   REVEAL ANIMATION (content visible by default; motion is opt-in)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  [data-reveal].is-in { opacity: 1; transform: none; }
  [data-reveal][data-delay="1"] { transition-delay: .08s; }
  [data-reveal][data-delay="2"] { transition-delay: .16s; }
  [data-reveal][data-delay="3"] { transition-delay: .24s; }
  [data-reveal][data-delay="4"] { transition-delay: .32s; }
}

/* Motion master switch (Tweaks) */
html.no-motion [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
html.no-motion .hero .seal-lg,
html.no-motion .scroll-cue svg { animation: none !important; }
html.no-motion * { scroll-behavior: auto !important; }

/* ============================================================
   (1) HERO
   ============================================================ */
.hero {
  padding-block: var(--s16) var(--s12);
  position: relative; overflow: clip; text-align: center;
}
.hero .wrap { max-width: 940px; }
.hero .seal-lg { display: block; width: 132px; height: 132px; margin: 0 auto var(--s5); color: var(--plum); }
.hero .seal-lg svg { width: 100%; height: 100%; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .hero .seal-lg { animation: sealFloat 7s ease-in-out infinite; }
  @keyframes sealFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
}
.hero .kicker {
  font-family: var(--sans); font-weight: 700; font-size: .74rem;
  letter-spacing: .26em; text-transform: uppercase; color: var(--rose);
  margin-bottom: var(--s4);
}
.hero .wordmark {
  font-family: var(--serif); font-weight: 700; color: var(--plum);
  font-size: clamp(3.6rem, 9.5vw, 6rem); line-height: 1; letter-spacing: .04em;
  margin: 0 0 var(--s2);
}
.hero .full-name {
  font-family: var(--sans); font-weight: 600; font-size: .82rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: var(--s5);
}
.hero .headline {
  font-family: var(--serif-accent); font-style: italic; font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.18; color: var(--plum);
  max-width: 22ch; margin: 0 auto var(--s6); text-wrap: balance;
}
.hero .hero-cta { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; margin-bottom: var(--s8); }
.hero .founder-line {
  display: inline-flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center;
  padding-top: var(--s4); border-top: 1px solid rgba(74,25,66,.16);
  font-family: var(--sans); font-size: .92rem; color: var(--ink-soft);
}
.hero .founder-line strong { color: var(--plum); font-weight: 700; }
.hero .founder-line .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

/* scroll cue */
.scroll-cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  margin-top: var(--s8); color: var(--ink-soft); font-family: var(--sans);
  font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
.scroll-cue svg { width: 20px; height: 20px; color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue svg { animation: cueBob 1.8s ease-in-out infinite; }
  @keyframes cueBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
}

/* ============================================================
   (2) INTRO — what MILC does
   ============================================================ */
.intro { text-align: center; }
.intro .wrap { max-width: 880px; }
.intro .rule-short { margin-inline: auto; }
.intro .statement {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem); line-height: 1.45; color: var(--plum);
  max-width: 32ch; margin: 0 auto;
}
.intro .statement .lead-clause { color: var(--ink); }
.intro .credibility { display: flex; flex-wrap: wrap; gap: var(--s1); justify-content: center; margin-top: var(--s7); }

/* ============================================================
   (3) SERVICES — icon-led cards
   ============================================================ */
.services { text-align: center; }
.services .wrap { max-width: 1120px; }
.services .rule-short { margin-inline: auto; }
.services h2 { margin-bottom: var(--s3); }
.services .svc-intro { max-width: 58ch; margin: 0 auto var(--s8); font-size: 1.06rem; color: var(--ink-soft); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); text-align: left; }
.svc-card {
  background: rgba(255,255,255,.62); border: 1px solid rgba(74,25,66,.08);
  border-radius: var(--r-card); padding: var(--s5);
  display: flex; flex-direction: column; gap: var(--s2);
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.svc-card:hover { transform: translateY(-6px); border-color: rgba(201,168,76,.55);
  box-shadow: 0 4px 6px rgba(74,25,66,.05), 0 30px 56px -30px rgba(74,25,66,.45); }
.svc-ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--plum-tint); color: var(--plum); margin-bottom: var(--s1);
  transition: background .25s ease, color .25s ease;
}
.svc-card:hover .svc-ico { background: var(--plum); color: var(--cream); }
.svc-ico svg { width: 26px; height: 26px; }
.svc-head { display: flex; align-items: baseline; gap: 10px; }
.svc-num { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--gold); }
.svc-card h3 { color: var(--plum); font-size: 1.1rem; line-height: 1.2; }
.svc-card p { margin: 0; font-size: .94rem; color: var(--ink-soft); }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

/* ============================================================
   (4) WHO WE SERVE — institutional grid (merged from draft)
   Always plum band for institutional authority.
   ============================================================ */
.serve { background: var(--plum); color: var(--on-plum); padding-block: var(--s16); position: relative; overflow: clip; }
.serve .wrap { max-width: 1120px; }
.serve .eyebrow { color: var(--gold-soft); }
.serve .serve-head { max-width: 30ch; margin-bottom: var(--s3); }
.serve h2 { color: var(--cream); }
.serve .serve-sub { color: var(--on-plum-dim); max-width: 60ch; margin-bottom: var(--s8); font-size: 1.04rem; }
.serve-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(245,239,224,.16);
  border: 1px solid rgba(245,239,224,.16); border-radius: var(--r-card); overflow: hidden;
}
.serve-cell {
  background: var(--plum); padding: var(--s5);
  display: flex; flex-direction: column; gap: var(--s2);
  transition: background .3s ease; min-height: 168px;
}
.serve-cell:hover { background: var(--plum-deep); }
.serve-ico { width: 30px; height: 30px; color: var(--gold-soft); }
.serve-ico svg { width: 100%; height: 100%; stroke-width: 1.4; }
.serve-cell h3 { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; color: var(--cream); line-height: 1.18; }
.serve-cell p { margin: 0; font-size: .9rem; color: var(--on-plum-dim); }
@media (max-width: 900px) { .serve-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .serve-grid { grid-template-columns: 1fr; } .serve-cell { min-height: 0; } }

/* ============================================================
   (5) APPROACH — pull quote (merged from draft)
   ============================================================ */
.approach { text-align: center; }
.approach .wrap { max-width: 900px; }
.approach .qmark {
  font-family: var(--serif); font-weight: 700; color: var(--gold);
  font-size: 5rem; line-height: .6; opacity: .5; margin-bottom: var(--s2); display: block;
}
.approach blockquote {
  margin: 0; font-family: var(--serif-accent); font-style: italic; font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.3; color: var(--plum);
  text-wrap: balance;
}
.approach .attrib {
  margin-top: var(--s6); font-family: var(--sans); font-weight: 700;
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
}
.approach .attrib strong { color: var(--plum); }

/* ============================================================
   (6) PRIMER + BULK
   ============================================================ */
.primer { text-align: center; }
.primer .wrap { max-width: 720px; }
.primer .rule-short { margin-inline: auto; }
.primer .book-cover {
  display: block; width: 248px; height: auto; margin: 0 auto var(--s6);
  border-radius: 3px;
  box-shadow: 0 30px 60px -28px rgba(74,25,66,.5);
}
.primer h2 { margin-bottom: var(--s3); }
.primer .desc { font-size: 1.06rem; color: var(--ink-soft); max-width: 56ch; margin-inline: auto; }
.primer .buy-row { display: flex; flex-direction: column; align-items: center; gap: var(--s2); margin-top: var(--s6); }
.ph-note { font-size: .76rem; font-style: italic; color: var(--ink-soft); opacity: .8; }

/* Spam honeypot — visually hidden, off-screen */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Inquiry form success state */
.form-thanks {
  text-align: center; padding: var(--s9) var(--s5);
  border: 1px solid rgba(201,168,76,.5); border-radius: var(--r-card);
  background: rgba(255,255,255,.7);
}
.form-thanks .ft-check {
  display: grid; place-items: center; width: 58px; height: 58px;
  margin: 0 auto var(--s4); border-radius: 50%;
  background: var(--gold); color: var(--plum);
}
.form-thanks .ft-check::after { content: "\2713"; font-size: 1.6rem; font-weight: 700; line-height: 1; }
.form-thanks h3 { font-family: var(--serif); color: var(--plum); font-size: 1.5rem; margin-bottom: var(--s2); }
.form-thanks p { color: var(--ink-soft); margin: 0 auto; max-width: 44ch; }
.bulk {
  margin-top: var(--s8); padding-top: var(--s6);
  border-top: 1px solid rgba(74,25,66,.14);
  display: flex; flex-direction: column; align-items: center; gap: var(--s3); text-align: center;
}
.bulk .bulk-copy { max-width: 48ch; }
.bulk .bulk-copy h3 { font-size: 1.05rem; margin-bottom: 4px; }
.bulk .bulk-copy p { margin: 0; font-size: .94rem; color: var(--ink-soft); }
.bulk .bulk-cta { display: flex; flex-direction: column; gap: 6px; align-items: center; }

/* ============================================================
   (7) CONTACT — institutional CTA + working inquiry form
   ============================================================ */
.contact { text-align: center; }
.contact .wrap { max-width: 760px; }
.contact .rule-short { margin-inline: auto; }
.contact .display { font-size: clamp(2rem, 4vw, 3rem); max-width: 18ch; margin: 0 auto var(--s4); }
.contact .sub { font-size: 1.1rem; color: var(--ink-soft); max-width: 52ch; margin: 0 auto var(--s7); }
.contact-form {
  display: grid; gap: var(--s3); max-width: 560px; margin: 0 auto; text-align: left;
}
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: var(--sans); font-weight: 700; font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
}
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: .96rem; color: var(--ink);
  background: rgba(255,255,255,.75); border: 1px solid rgba(74,25,66,.18);
  border-radius: 12px; padding: 13px 15px; width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.22); background: #fff;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(85,81,79,.5); }
.contact-form .form-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); justify-content: space-between;
  margin-top: var(--s1);
}
.contact-form .form-note { font-size: .8rem; color: var(--ink-soft); margin: 0; max-width: 30ch; }
.contact-form button[type="submit"] { border: 0; }

/* ============================================================
   PALETTE-AWARE BUTTONS
   ============================================================ */
.btn-adapt { background: var(--plum); color: var(--cream); box-shadow: 0 14px 30px -14px rgba(74,25,66,.55); }
.btn-adapt:hover { background: var(--plum-deep); transform: translateY(-2px); }

/* ============================================================
   PALETTE A — CRISP NEAR-WHITE (default)
   ============================================================ */
body[data-palette="white"] { --page-bg: #FCFBF9; }
body[data-palette="white"] .hero     { background: #FCFBF9; }
body[data-palette="white"] .intro    { background: #FFFFFF; }
body[data-palette="white"] .services { background: #FCFBF9; }
body[data-palette="white"] .approach { background: #FFFFFF; }
body[data-palette="white"] .primer   { background: #FCFBF9; }
body[data-palette="white"] .contact  { background: #FFFFFF; }

/* ============================================================
   PALETTE B — PLUM-FORWARD (plum bookends)
   ============================================================ */
body[data-palette="plum"] { --page-bg: #FFFFFF; }
body[data-palette="plum"] .hero     { background: var(--plum); }
body[data-palette="plum"] .intro    { background: #FFFFFF; }
body[data-palette="plum"] .services { background: #FAF7F2; }
body[data-palette="plum"] .approach { background: #FFFFFF; }
body[data-palette="plum"] .primer   { background: #FAF7F2; }
body[data-palette="plum"] .contact  { background: var(--plum); }

/* text + mark colours on plum hero */
body[data-palette="plum"] .hero .seal-lg { --seal-ink: var(--cream); color: var(--cream); }
body[data-palette="plum"] .hero .kicker { color: var(--gold-soft); }
body[data-palette="plum"] .hero .wordmark,
body[data-palette="plum"] .hero .headline { color: var(--cream); }
body[data-palette="plum"] .hero .full-name { color: var(--on-plum-dim); }
body[data-palette="plum"] .hero .founder-line { color: var(--on-plum-dim); border-top-color: rgba(245,239,224,.22); }
body[data-palette="plum"] .hero .founder-line strong { color: var(--cream); }
body[data-palette="plum"] .hero .rule-short { border-top-color: var(--gold-soft); }
body[data-palette="plum"] .hero .scroll-cue { color: var(--on-plum-dim); }

/* contact on plum */
body[data-palette="plum"] .contact .eyebrow { color: var(--gold-soft); }
body[data-palette="plum"] .contact .display { color: var(--cream); }
body[data-palette="plum"] .contact .sub { color: var(--on-plum-dim); }
body[data-palette="plum"] .contact .rule-short { border-top-color: var(--gold-soft); }
body[data-palette="plum"] .contact .field label { color: var(--on-plum-dim); }
body[data-palette="plum"] .contact .field input,
body[data-palette="plum"] .contact .field textarea {
  background: rgba(245,239,224,.08); border-color: rgba(245,239,224,.28); color: var(--cream);
}
body[data-palette="plum"] .contact .field input::placeholder,
body[data-palette="plum"] .contact .field textarea::placeholder { color: rgba(245,239,224,.5); }
body[data-palette="plum"] .contact .form-note { color: var(--on-plum-dim); }
body[data-palette="plum"] .contact .ph-note { color: var(--on-plum-dim); }

/* buttons flip to cream on plum bands */
body[data-palette="plum"] .hero .btn-adapt,
body[data-palette="plum"] .contact .btn-adapt { background: var(--cream); color: var(--plum); box-shadow: 0 16px 34px -18px rgba(0,0,0,.5); }
body[data-palette="plum"] .hero .btn-adapt:hover,
body[data-palette="plum"] .contact .btn-adapt:hover { background: var(--gold); color: var(--plum); }
body[data-palette="plum"] .hero .btn-ghost { color: var(--cream); border-color: rgba(245,239,224,.4); }
body[data-palette="plum"] .hero .btn-ghost:hover { background: var(--cream); color: var(--plum); border-color: var(--cream); }

/* ============================================================
   TWEAKS PANEL (vanilla)
   ============================================================ */
#tw-panel { position: fixed; right: 16px; bottom: 16px; z-index: 9999; width: 280px;
  background: #1b1620; color: #ece6ea; border: 1px solid #3a3140; font-family: var(--sans);
  box-shadow: 0 18px 50px rgba(0,0,0,.45); display: none; border-radius: 14px; overflow: hidden; }
#tw-panel.show { display: block; }
.tw-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px;
  border-bottom: 1px solid #3a3140; cursor: move; }
.tw-head h5 { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #d9b6c9; }
.tw-x { background: none; border: 0; color: #b8aeb6; font-size: 1.1rem; line-height: 1; padding: 2px 4px; cursor: pointer; }
.tw-body { padding: 14px; display: grid; gap: 18px; }
.tw-grp label.tw-lbl { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #9a8fa0; margin-bottom: 8px; }
.tw-seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #3a3140; border-radius: 8px; overflow: hidden; }
.tw-seg.three { grid-template-columns: 1fr 1fr 1fr; }
.tw-seg button { background: #221c28; color: #c9bfc7; border: 0; border-right: 1px solid #3a3140;
  padding: 9px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; cursor: pointer; }
.tw-seg button:last-child { border-right: 0; }
.tw-seg button.on { background: #4A1942; color: #f5efe0; }
.tw-sw { display: flex; gap: 8px; }
.tw-sw button { width: 30px; height: 30px; border: 2px solid transparent; border-radius: 50%; cursor: pointer; }
.tw-sw button.on { border-color: #f5efe0; }
.tw-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tw-toggle span { font-size: .8rem; color: #c9bfc7; }
.tw-switch { width: 42px; height: 24px; border-radius: 999px; background: #3a3140; border: 0; position: relative; cursor: pointer; transition: background .2s; flex: none; }
.tw-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #ece6ea; transition: transform .2s; }
.tw-switch.on { background: #4A1942; }
.tw-switch.on::after { transform: translateX(18px); }

/* ============================================================
   MOBILE REFINEMENTS
   ============================================================ */
/* Homepage footer keeps its 3-column layout on desktop... */
.footer-grid--home { grid-template-columns: 1.6fr 1fr 1.2fr; }
@media (max-width: 1000px) { .footer-grid--home { grid-template-columns: 1fr 1fr; } }

@media (max-width: 760px) {
  /* ...and collapses cleanly on phones */
  .footer-grid--home { grid-template-columns: 1fr; }

  /* Hero: trim oversized desktop padding, scale the seal down */
  .hero { padding-block: var(--s10) var(--s8); }
  .hero .seal-lg { width: 104px; height: 104px; }
  .hero .hero-cta { gap: var(--s2); }
  .hero .hero-cta .btn { width: 100%; justify-content: center; }
  .hero .founder-line { justify-content: center; }

  /* Contact form: stack the two-up row and let the button go full width */
  .contact-form .row2 { grid-template-columns: 1fr; }
  .contact-form .form-foot { flex-direction: column; align-items: stretch; }
  .contact-form .form-foot .btn { width: 100%; justify-content: center; order: 2; }
  .contact-form .form-note { max-width: none; text-align: center; order: 1; }

  /* Nav CTA inside the open mobile menu: keep it a pill, not a full bar */
  .nav-links .nav-cta-link { width: auto; align-self: flex-start; margin-left: 0; margin-top: var(--s2); }
}

@media (max-width: 520px) {
  /* Drop the long tagline so the header bar never overflows on small phones */
  .nav-brand .lockup .sub { display: none; }
  .hero .wordmark { font-size: clamp(3.2rem, 18vw, 4.6rem); }
  .lp-section .wrap, .hero .wrap { padding-inline: 22px; }
}
