/* VARRD home page styles. Owned by Builder HOME. Do not touch styles.css. */

:root {
  --ink: #0C0A08;
  --ink-2: #17130E;
  --ink-3: #241D15;
  --gold: #D4A574;
  --gold-bright: #F0C98A;
  --gold-deep: #8E6A3C;
  --bone: #F5EFE5;
  --bone-2: #E8DFC8;
  --text-dark: #1A1510;
  --muted: #A89C88;
  --muted-dark: #6B5E4F;
  --rule: rgba(212, 165, 116, 0.18);

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --container-max: 1280px;
  --side-pad: 32px;
  --section-gap: 160px;
}

@media (max-width: 899px) {
  :root {
    --side-pad: 20px;
    --section-gap: 96px;
  }
}

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

html {
  background: var(--ink);
  scroll-behavior: auto;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

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

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
  color: var(--bone);
}

h1 {
  font-size: clamp(3rem, 7.2vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

h3 { font-size: 1.8rem; line-height: 1.15; }

em, .word-em em {
  font-style: italic;
  color: var(--gold);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  margin: 0 0 16px;
}

.sub, .product-desc, .company-p, .bio, .contrast-text p, .rail-copy {
  max-width: 34em;
  color: var(--muted);
}

.company .sub, .company .company-p, .company .bio, .company-p { color: var(--muted-dark); }

/* focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.screen-frame:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 22px;
  border-radius: 2px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--gold);
}

.btn-primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); }

.btn-secondary {
  background: transparent;
  color: var(--bone);
  border: 1px dotted var(--gold-deep);
}

.btn-secondary:hover { border-style: solid; }

.company .btn-secondary { color: var(--text-dark); }

.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ---------- nav ---------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 100;
  background: transparent;
  opacity: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px dotted transparent;
}

.site-nav.is-scrolled {
  background: rgba(12, 10, 8, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--rule);
}

.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.09em;
  color: var(--bone);
}

.a-gold { color: var(--gold); }

/* the R after the A: its stem lit gold and cut free from the bowl by a hairline
   of ink, so "AI" sits inside VARRD (his pick 2026-09-19: "slit + tight pair").
   Two copies of the glyph: the gold one keeps the stem, the bone one keeps the
   bowl and leg and steps right by a hair. --ai-stem is the share of the letter
   box (glyph + letter-spacing) that is stem. */
.a-gold { letter-spacing: 0.02em; }

.r-ai {
  --ai-stem: 28.7%;
  --ai-gap: max(1px, 0.009em);
  position: relative;
  display: inline-block;
}

.r-ai .r-stem {
  color: var(--gold);
  clip-path: inset(0 calc(100% - var(--ai-stem)) 0 0);
}

.r-ai .r-bowl {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--bone);
  clip-path: inset(0 0 0 var(--ai-stem));
  transform: translateX(var(--ai-gap));
}

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 0.9rem;
}

.nav-links a { color: var(--muted); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--bone); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--bone);
}

@media (max-width: 899px) {
  .nav-links { display: none; }
  .nav-actions .btn-secondary { display: none; }
  .hamburger { display: flex; }
}

/* ---------- storyline (sections 1-3) ---------- */

.storyline { position: relative; }

.storyline-object {
  position: absolute;
  left: 0;
  right: 0;
  top: 71%;
  bottom: -28%;
  z-index: 1;
  pointer-events: none;
}

#record-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
}

.static-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 20%, var(--gold-bright) 0%, var(--gold) 30%, transparent 72%);
  transition: opacity 0.8s ease;
}

.static-glow.is-visible { opacity: 0.55; }

.record-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }

.storyline-object.is-compact {
  position: relative;
  top: auto;
  bottom: auto;
  left: auto;
  right: auto;
  width: 100%;
  height: 44vh;
  margin-top: 28px;
}

.record-tape {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  padding-top: 200px;
}

.tape-row {
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  opacity: 0.05;
  margin-bottom: 22px;
  will-change: transform;
}

@keyframes tape-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .tape-row { animation: none !important; }
}

.beat {
  position: relative;
  z-index: 2;
}

.beat-inner { position: relative; }

.beat-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 160px;
}

.beat-hero .beat-inner {
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#hero-h1 { margin: 0 0 24px; }

.word-wrap { display: inline-block; overflow: hidden; vertical-align: top; }

/* the lead line is display size and a link to what we do (owner 9/18) */
.beat-hero .hero-lead {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.1vw, 3.7rem);
  line-height: 1.04;
  text-wrap: balance;
  letter-spacing: -0.012em;
  text-transform: none;
  color: var(--gold);
  text-decoration: none;
  margin-bottom: 0.25em;
  transition: color 0.2s ease;
}

.beat-hero .hero-lead:hover,
.beat-hero .hero-lead:focus-visible { color: var(--gold-bright); text-decoration: underline dotted; text-underline-offset: 0.12em; }
.word { display: inline-block; will-change: transform, opacity; }

.beat-hero .sub { margin-bottom: 0; max-width: 640px; margin-left: auto; margin-right: auto; }

.beat-hero .cta-row { justify-content: center; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border: 1px dotted var(--gold-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 10, 8, 0.82);
}

.scroll-cue span {
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
}

.beat-contrast {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 96px;
}

.beat-contrast .beat-inner { position: relative; min-height: 220px; width: 100%; }

.contrast-text h2 { margin-bottom: 20px; }

.stat-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  border-top: 1px dotted var(--rule);
  background: var(--ink);
}

.stat-lead {
  flex: 0 0 100%;
  padding: 16px var(--side-pad) 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.stat-cell {
  flex: 1;
  padding: 18px var(--side-pad) 30px;
  border-left: 1px dotted var(--rule);
}

.stat-cell:first-of-type { border-left: none; }

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1.06;
  color: var(--gold-bright);
  margin-bottom: 10px;
}

.stat-note {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--bone);
  opacity: 0.8;
  max-width: 30em;
}

.beat-build {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 140px;
}

.beat-build h2 { margin-bottom: 56px; }

.rail {
  display: flex;
  gap: 0;
  border-top: 1px dotted var(--rule);
}

.rail-step {
  flex: 1;
  padding: 20px 24px 0 0;
  border-top: 1px dotted transparent;
  margin-top: -1px;
  transition: border-color 0.3s ease;
}

.rail-step.is-active { border-top-color: var(--gold); }

.rail-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted-dark);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.rail-step.is-active .rail-num { color: var(--gold); }

.rail-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--bone);
  margin-bottom: 10px;
}

.rail-copy { font-size: 0.92rem; }

/* pinned choreography, only when motion is not reduced (landscape phones are
   excluded below by the stacked block, which comes later and wins) */
@media (prefers-reduced-motion: no-preference) {
  .storyline-pin {
    position: relative;
    height: 100vh;
    overflow: hidden;
  }

  .beat {
    position: absolute;
    inset: 0;
  }

  .beat-contrast, .beat-build { opacity: 0; }

  #contrast-b { opacity: 0; }

  .contrast-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .stat-strip { opacity: 0; pointer-events: none; }
}

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  /* keep the beat text in the upper half of the pinned viewport, above the
     object canvas (which starts at 50%), so the grid's far edge never runs
     through a sentence. */
  .beat-contrast .beat-inner { transform: translateY(-31vh); }
  .beat-build .beat-inner { transform: translateY(-9vh); }
}

/* phone pinned layout: copy top-aligned under the nav, the object in the
   lower band, the strip stacked over the lower half. Object positions here
   must match PHONE_LAYOUT.objHero in home.js. */
@media (max-width: 899px) and (min-height: 560px) and (prefers-reduced-motion: no-preference) {
  .storyline-object { top: 57%; bottom: -25%; }

  #record-canvas, .record-labels { touch-action: pan-y; }

  .beat-hero { min-height: 0; padding-top: 96px; }
  .beat-hero .beat-inner { padding-top: 0; }

  .beat-contrast, .beat-build {
    min-height: 0;
    align-items: flex-start;
    padding-top: 100px;
    padding-bottom: 0;
  }

  .beat-contrast .beat-inner, .beat-build .beat-inner { transform: none; min-height: 0; }

  .contrast-text { position: static; }

  .record-tape { display: block; padding-top: 150px; }
  .tape-row { margin-bottom: 18px; }
}

/* reduced motion, and landscape phones: stacked, no pin */
@media (prefers-reduced-motion: reduce), (max-width: 899px) and (max-height: 559px) {
  .storyline-pin { position: static; height: auto; }

  .beat {
    position: static !important;
    opacity: 1 !important;
    min-height: 0;
  }

  .beat-hero { padding-top: 120px; padding-bottom: 64px; }
  .beat-contrast, .beat-build { padding-top: 64px; padding-bottom: 64px; }

  .record-tape { display: none; }

  .stat-strip { opacity: 1 !important; pointer-events: auto !important; }

  .contrast-text {
    position: static !important;
    opacity: 1 !important;
    margin-bottom: 36px;
  }

  .contrast-text:last-child { margin-bottom: 0; }

  .stat-strip {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    background: transparent;
  }

  .stat-cell {
    border-left: none;
    border-top: 1px dotted var(--rule);
  }

  .stat-value { font-size: 1.8rem; }
  .stat-lead { padding-top: 0; }

  .rail { flex-direction: column; }
  .rail-step { padding: 18px 0; border-top: 1px dotted var(--rule); }
  .rail-step.is-active { border-top-color: var(--gold); }

  .scroll-cue { display: none; }
}

/* phone type and layout for the storyline, motion or not */
@media (max-width: 899px) {
  .beat-hero .hero-lead {
    font-size: clamp(1.5rem, 6.4vw, 2rem);
    margin-bottom: 0.3em;
  }

  #hero-h1 {
    font-size: clamp(2.3rem, 10vw, 3rem);
    margin-bottom: 16px;
  }

  .beat-hero .sub { font-size: 0.95rem; line-height: 1.55; }

  .beat-hero .cta-row { margin-top: 22px; gap: 10px; }
  .beat-hero .cta-row .btn { padding: 12px 16px; font-size: 0.88rem; }

  .beat-contrast h2, .beat-build h2 { font-size: clamp(1.7rem, 7.4vw, 2.1rem); }
  .contrast-text h2 { margin-bottom: 14px; }
  .contrast-text p { font-size: 0.95rem; }

  /* strip: one column, tight, still every word */
  .stat-strip { display: grid; grid-template-columns: 1fr; padding-bottom: 8px; }
  .stat-lead { padding: 12px var(--side-pad) 0; font-size: 0.66rem; }
  .stat-cell {
    padding: 11px var(--side-pad) 11px;
    border-left: none;
    border-top: 1px dotted var(--rule);
  }
  .stat-cell:first-of-type { border-top: none; }
  .stat-label { font-size: 0.68rem; margin-bottom: 4px; }
  .stat-value { font-size: 1.45rem; margin-bottom: 5px; }
  .stat-note { font-size: 0.84rem; line-height: 1.45; }

  /* rail: stacked, the active step lit, the rest dimmed */
  .beat-build h2 { margin-bottom: 20px; }
  .rail { flex-direction: column; }
  .rail-step {
    padding: 12px 0;
    border-top: 1px dotted var(--rule);
    margin-top: 0;
    opacity: 0.5;
    transition: opacity 0.3s ease, border-color 0.3s ease;
  }
  .rail-step.is-active { opacity: 1; border-top-color: var(--gold); }
  .rail-num { display: inline-block; margin: 0 10px 4px 0; font-size: 0.75rem; }
  .rail-title { display: inline; font-size: 1.25rem; }
  .rail-copy { display: block; font-size: 0.85rem; line-height: 1.45; margin-top: 2px; }

  .scroll-cue { display: none; }

  /* city chips and math sparks a touch smaller on a phone canvas */
  .record-labels .ro-label { font-size: 0.58rem; }
  .record-labels .ro-label .ro-stem { height: 22px; }
  .record-labels .ro-label-math { font-size: 0.72rem; }
  .record-labels .ro-label-math .ro-stem { height: 12px; }
}

/* ---------- reveal utilities (JS toggles .in-view) ---------- */

.reveal-fade { opacity: 0; }
.reveal-fade.in-view { opacity: 1; transition: opacity 0.7s ease, transform 0.7s ease; }

.reveal-up { opacity: 0; transform: translateY(28px); }
.reveal-up.in-view { opacity: 1; transform: translateY(0); transition: opacity 0.7s ease, transform 0.7s ease; }

@media (prefers-reduced-motion: reduce) {
  .reveal-fade, .reveal-up { opacity: 1 !important; transform: none !important; }
}

/* ---------- products ---------- */

.products { padding-top: var(--section-gap); }

.products-head { margin-bottom: 80px; }

.product-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 96px var(--side-pad);
  border-top: 1px dotted var(--rule);
}

.product-panel:first-of-type { border-top: none; }
.product-panel:last-of-type { padding-bottom: 48px; }

.product-copy {
  position: sticky;
  top: 120px;
  min-width: 0;
}

.product-copy h3 { margin-bottom: 20px; }

.product-screen { min-width: 0; }

.screen-frame {
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  border: 1px dotted var(--rule);
  background: var(--ink-2);
  overflow: hidden;
}

.screen-frame > * {
  width: 100%;
  height: 100%;
}

@media (max-width: 899px) {
  .product-panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 64px var(--side-pad);
  }

  .product-panel:last-of-type { padding-bottom: 32px; }

  .product-copy { position: static; }

  .screen-frame { aspect-ratio: 4 / 5; }
}

/* ---------- audience ---------- */


}

@media (max-width: 899px) {
}

/* ---------- company (light section) ---------- */

.company {
  background: var(--bone);
  color: var(--text-dark);
  padding: var(--section-gap) 0;
}

.company h2, .company h3 { color: var(--text-dark); }
.company .eyebrow { color: var(--gold-deep); }

.company-p { margin-top: 20px; max-width: 42em; }
.company-p:first-of-type { margin-top: 32px; }

.team-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.team-card {
  background: #FFFFFF;
  border: 1px solid var(--bone-2);
  border-radius: 6px;
  padding: 32px;
}

.team-card .role {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  margin: 8px 0 16px;
}

.team-card .bio { font-size: 0.92rem; color: var(--muted-dark); }

@media (max-width: 899px) {
  .team-cards { grid-template-columns: 1fr; }
}

/* ---------- product pages (/ops, /risk, /capital): the panel copy as a page of its own ---------- */

.product-page { padding: 150px 0 var(--section-gap); }
.product-page-head { max-width: 56em; }
.product-page-head h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); line-height: 1.02; margin: 12px 0 0; }
.product-page-head .sub { margin-top: 24px; max-width: 40em; }
.product-page-head .cta-row { margin-top: 32px; }
.product-page-screen { margin-top: 56px; }
.product-page-screen .screen-frame { aspect-ratio: 16 / 10; width: 100%; }
.product-page-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; margin-top: 56px; padding-top: 32px; border-top: 1px dotted var(--rule); }
.product-page-notes .stat-value { font-size: 1.9rem; margin: 6px 0 8px; }
@media (max-width: 899px) {
  .product-page { padding-top: 120px; }
  .product-page-notes { grid-template-columns: 1fr; gap: 28px; }
  .product-page-screen .screen-frame { aspect-ratio: 4 / 5; }
}

/* ---------- capital (short band before the footer) ---------- */

.capital {
  background: var(--ink);
  color: var(--bone);
  padding: var(--section-gap) 0;
  border-top: 1px dotted var(--rule);
}

.capital-inner { max-width: 52em; }

.capital .eyebrow { color: var(--gold); }

.capital-p {
  margin-top: 24px;
  max-width: 40em;
  color: rgba(245, 240, 232, 0.8);
}

/* ---------- closing + footer ---------- */




.site-footer {
  background: var(--ink);
  border-top: 1px dotted var(--rule);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 64px;
}

.footer-brand .wordmark { display: block; margin-bottom: 16px; }
.footer-tag { color: var(--muted); max-width: 22em; }

.footer-head {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--bone); }

.footer-bottom {
  border-top: 1px dotted var(--rule);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--muted-dark);
  max-width: 60em;
}

@media (max-width: 899px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 24px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
}

.mobile-menu[hidden] { display: none; }

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
}

.mobile-menu-close span {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 1px;
  background: var(--bone);
}

.mobile-menu-close span:first-child { transform: rotate(45deg); }
.mobile-menu-close span:last-child { transform: rotate(-45deg); }

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 56px;
}

.mobile-menu-links a {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--bone);
}

.mobile-menu-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu-cta .btn { width: 100%; }

/* ---------- modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(12, 10, 8, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay[hidden] { display: none; }

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--ink-2);
  border: 1px dotted var(--gold-deep);
  border-radius: 6px;
  padding: 28px 40px 32px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
}

.modal-close span {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 1px;
  background: var(--muted);
}

.modal-close span:first-child { transform: rotate(45deg); }
.modal-close span:last-child { transform: rotate(-45deg); }

#modal-title { margin-bottom: 8px; font-size: 1.9rem; }

.modal-sub {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.field { margin-bottom: 12px; }

.field label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--bone);
  margin-bottom: 6px;
}

.field .hint {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--muted);
}

.field input, .field select, .field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--ink-3);
  border-radius: 2px;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.field input, .field select {
  height: 42px;
  padding: 0 14px;
}

.field textarea { padding: 10px 14px; }

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  outline: none;
}

.field textarea { resize: vertical; min-height: 64px; }

.modal-submit { width: 100%; margin-top: 8px; }

.modal-error {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--gold-bright);
}

.modal-error a { text-decoration: underline; }

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

.copy-address {
  margin-left: 10px;
  padding: 4px 10px;
  border: 1px dotted var(--gold);
  border-radius: 4px;
  background: transparent;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.copy-address:hover { background: rgba(212, 165, 116, 0.12); }

.modal-success { text-align: center; padding: 32px 0; }
.modal-success p { font-family: var(--font-display); font-size: 1.6rem; }

@media (max-width: 599px) {
  .modal-overlay { padding: 0; }

  .modal-panel {
    max-width: none;
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    padding: 32px 24px;
  }
}

/* short phones (SE class): tighter hero so the copy clears the globe */
@media (max-width: 899px) and (max-height: 700px) {
  .beat-hero { padding-top: 84px; }
  .beat-hero .hero-lead { font-size: clamp(1.35rem, 5.8vw, 1.8rem); }
  #hero-h1 { font-size: clamp(2.1rem, 9vw, 2.7rem); margin-bottom: 12px; }
  .beat-hero .sub { font-size: 0.9rem; line-height: 1.5; }
  .beat-hero .cta-row { margin-top: 18px; }
}
