/* ==========================================================================
   Phaethon Ventures — site stylesheet
   "Eclipse" system: true black, solar-ember accent, corona motif.
   Headlines: Playfair Display (italic turns). Text: Outfit light.
   ========================================================================== */

:root {
  --ink: #010101;          /* page ground — true black */
  --ink-2: #0a0807;        /* raised panels */
  --ink-3: #141010;        /* deeper fill */
  --line: rgba(244, 237, 226, 0.16);
  --line-soft: rgba(244, 237, 226, 0.09);
  --text: #f4ede2;         /* warm ivory */
  --text-dim: #a99f93;     /* muted body */
  --ember: #ff7847;        /* solar ember accent */
  --ember-soft: #ffb08a;   /* italic turns, hover states */
  --ember-deep: #c84e24;
  --accent-rgb: 255, 120, 71;   /* the accent, as channels, for glows and veils */
  --scrim-rgb: 1, 1, 1;         /* what darkens photography behind type */
  --plate: #120502;             /* the ground behind a flag or a mark */
  --glow: 1;                    /* corona intensity; the light theme dims it */
  --on-accent: #170702;         /* type that sits ON the accent, not beside it */
  --serif: "Cormorant Garamond", Garamond, Georgia, "Times New Roman", serif;
  --sans: "Outfit", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --measure: 62ch;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ember); color: var(--ink); }

a { color: inherit; }

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

.wrap {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- typography ---------- */

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.12;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.7rem); line-height: 1.08; }
h2 { font-size: clamp(1.95rem, 4vw, 2.95rem); }
h3 { font-size: clamp(1.35rem, 2.3vw, 1.65rem); line-height: 1.28; font-weight: 500; }

/* the italic is the elegance: Cormorant's cursive forms carry the turns */
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--ember-soft);
  letter-spacing: 0.005em;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1.2rem;
}

.lede {
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  font-weight: 300;
  color: var(--text-dim);
  max-width: var(--measure);
}

p { max-width: var(--measure); }

.lede em { font-style: italic; color: var(--ember-soft); }

strong { font-weight: 500; color: var(--text); }

.dim { color: var(--text-dim); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--scrim-rgb), 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand .mark { height: 30px; width: auto; flex: none; }

.brand .wordmark {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.brand .wordmark span { color: var(--ember); font-style: italic; font-weight: 400; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.9vw, 1.75rem);
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--text-dim);
  transition: color 160ms ease;
  padding-block: 0.4rem;
}

.nav-links a:hover { color: var(--text); }

.nav-links a[aria-current="page"] {
  color: var(--text);
  border-bottom: 1px solid var(--ember);
}

.nav-links .cta a {
  color: var(--on-accent);
  background: var(--ember);
  padding: 0.55rem 1.2rem;
  font-weight: 500;
  border-bottom: none;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.nav-links .cta a:hover {
  background: var(--ember-soft);
  color: var(--on-accent);
  box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.35);
}

/* --- Property Owners submenu --- */

.nav-links .has-sub { position: relative; }

.nav-links .sub-parent::after {
  content: "";
  display: inline-block;
  width: 0; height: 0;
  margin-left: 0.45rem;
  vertical-align: 0.14em;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.7;
}

.nav-links .sub-parent[aria-current="true"] { color: var(--text); }

.nav-links .sub {
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 15rem;
  list-style: none;
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 0.4rem 0;
  display: none;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
}

.nav-links .has-sub:hover .sub,
.nav-links .has-sub:focus-within .sub { display: block; }

.nav-links .sub a {
  display: block;
  padding: 0.6rem 1.2rem;
  white-space: nowrap;
  border-bottom: none;
}

.nav-links .sub a:hover { color: var(--ember); background: rgba(var(--accent-rgb), 0.07); }

.nav-links .sub a[aria-current="page"] {
  color: var(--text);
  border-bottom: none;
  box-shadow: inset 2px 0 0 var(--ember);
}

/* --- audience chooser band --- */

.chooser {
  border-block: 1px solid var(--line-soft);
  background: var(--ink-2);
  padding-block: 1rem;
}

.chooser .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.6rem;
}

.chooser-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.chooser a {
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--text-dim);
  text-decoration: none;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.chooser a:hover { color: var(--text); border-bottom-color: var(--line); }

.chooser a.is-current {
  color: var(--ember-soft);
  font-style: italic;
  border-bottom-color: var(--ember);
}

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-links .sub {
    position: static;
    display: block;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
  }
  .nav-links .sub a { padding: 0.55rem 0; font-size: 0.95rem; }
  .nav-links .sub-parent::after { display: none; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 0.5rem 0 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding-inline: var(--pad); }
  .nav-links a { display: block; padding: 0.8rem 0; font-size: 1rem; }
  .nav-links .cta { margin-top: 0.75rem; }
  .nav-links .cta a { display: inline-block; }
}

/* keep the wordmark from crowding the Menu button on phones */
@media (max-width: 540px) {
  .nav-bar { gap: 0.75rem; }
  .brand { gap: 0.5rem; }
  .brand .mark { height: 23px; }
  .brand .wordmark { font-size: 1rem; letter-spacing: 0.09em; }
  .nav-toggle { padding: 0.4rem 0.7rem; font-size: 0.78rem; }
}

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

.hero {
  position: relative;
  padding-block: clamp(5rem, 12vh, 9rem) clamp(4rem, 9vh, 7rem);
  overflow: hidden;
}

/* the occluded sun */
.corona {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(38vw, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  box-shadow:
    0 0 0 2px rgba(var(--accent-rgb), 0.9),
    0 0 45px 10px rgba(var(--accent-rgb), 0.5),
    0 0 140px 50px rgba(200, 60, 40, 0.28),
    inset 0 0 60px rgba(var(--accent-rgb), 0.14);
  pointer-events: none;
}

@media (max-width: 760px) {
  .corona {
    width: 52vw;
    right: -18vw;
    top: 18%;
    opacity: 0.7;
  }
}

.hero-inner { position: relative; z-index: 2; max-width: 46rem; }

/* ---------- cinematic hero (homepage) ---------- */

.hero-cinema {
  min-height: min(92vh, 58rem);
  display: flex;
  align-items: center;
  padding-block: clamp(6rem, 14vh, 9rem);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--ink);
}

.hero-fallback {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-fallback img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  animation: drone-drift 38s ease-in-out infinite alternate;
  transform-origin: 60% 70%;
}

@keyframes drone-drift {
  from { transform: scale(1.04) translate(-1%, 0.5%); }
  to   { transform: scale(1.12) translate(1.2%, -0.7%); }
}

/* interior pages: a photographic hero, same treatment as the homepage film */
.hero-photo {
  position: relative;
  overflow: hidden;
  min-height: min(62vh, 36rem);
  display: flex;
  align-items: center;
  padding-block: clamp(4rem, 9vh, 6.5rem);
}

.hero-photo .hero-inner { max-width: 44rem; }

/* Where We Work: the footprint itself as the backdrop, drawn in ember.
   The map sits right of centre so the type keeps the left column clear. */
.hero-map {
  position: relative;
  overflow: hidden;
  min-height: min(72vh, 42rem);
  display: flex;
  align-items: center;
  padding-block: clamp(4rem, 9vh, 6.5rem);
}

.hero-map .hero-inner { max-width: 42rem; }

.map-art {
  position: absolute;
  inset: 0;
  background-image: url("../assets/map-markets.svg");
  background-repeat: no-repeat;
  background-position: 78% 46%;
  background-size: 56% auto;
  filter: drop-shadow(0 0 26px rgba(var(--accent-rgb), 0.30)) brightness(1.12);
}

.map-scrim {
  position: absolute;
  inset: 0;
  /* one flat veil, no directional fade: the whole footprint reads at the
     same strength, insets included */
  background: rgba(var(--scrim-rgb), 0.28);
}

@media (max-width: 980px) {
  .hero-map { min-height: min(84vh, 46rem); align-items: flex-start; }
  .map-art { background-position: 50% 86%; background-size: 94% auto; }
  .map-scrim { background: rgba(var(--scrim-rgb), 0.42); }
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-video.is-playing { opacity: 0.6; }

/* once the film is live, retire the fallback so its shapes can't bleed
   through the translucent video */
.hero-media.video-live .hero-fallback {
  opacity: 0;
  transition: opacity 900ms ease;
}
.hero-media.video-live .hero-fallback img { animation: none; }

/* an even veil, not a left-hand panel: the photograph reads edge to edge
   while staying dark enough under the type */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--scrim-rgb), 0.66) 0%, rgba(var(--scrim-rgb), 0.58) 42%, rgba(var(--scrim-rgb), 0.37) 74%, rgba(var(--scrim-rgb), 0.43) 100%),
    linear-gradient(180deg, rgba(var(--scrim-rgb), 0.32) 0%, rgba(var(--scrim-rgb), 0.05) 22%, rgba(var(--scrim-rgb), 0.05) 66%, var(--ink) 100%);
}

/* on a phone the type spans the full width, so the scrim must too */
@media (max-width: 760px) {
  .hero-scrim {
    background: linear-gradient(180deg,
      rgba(var(--scrim-rgb), 0.72) 0%, rgba(var(--scrim-rgb), 0.62) 35%, rgba(var(--scrim-rgb), 0.68) 72%, var(--ink) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fallback img { animation: none; }
  .hero-video { display: none; }
}

/* ---------- sound toggle ---------- */

.sound-toggle {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: 1.6rem;
  z-index: 3;
  background: rgba(var(--scrim-rgb), 0.55);
  border: 1px solid rgba(var(--accent-rgb), 0.6);
  color: var(--ember-soft);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: color 160ms ease, border-color 160ms ease;
}

.sound-toggle:hover { color: var(--text); }

.sound-toggle.on { border-color: var(--ember); color: var(--text); }

/* ---------- language gate ---------- */

.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  background:
    radial-gradient(ellipse 50% 42% at 50% 38%, rgba(var(--accent-rgb), 0.13), transparent 70%),
    var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 1;
  transition: opacity 900ms ease;
}

.gate.closing { opacity: 0; pointer-events: none; }

/* the myth, ghosted behind the threshold */
.gate-art {
  position: absolute;
  inset: 0;
  background-image: url("../assets/phaethon.jpg");
  background-size: cover;
  background-position: center 34%;
  opacity: 0.42;
  animation: gate-breathe 26s ease-in-out infinite alternate;
  transform-origin: center 40%;
}

@keyframes gate-breathe {
  from { transform: scale(1.02); }
  to   { transform: scale(1.1); }
}

.gate-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 58% at 50% 45%, rgba(var(--scrim-rgb), 0.5), rgba(var(--scrim-rgb), 0.84) 58%, var(--ink) 86%),
    linear-gradient(180deg, var(--ink) 0%, rgba(var(--scrim-rgb), 0.3) 30%, rgba(var(--scrim-rgb), 0.45) 70%, var(--ink) 100%);
}

.gate-inner { position: relative; z-index: 2; padding: var(--pad); }

.gate-mark {
  height: 92px;
  width: auto;
  margin: 0 auto 1.9rem;
  filter: drop-shadow(0 0 22px rgba(var(--accent-rgb), 0.5));
}

.foot-mark {
  height: 26px;
  width: auto;
  display: block;
  margin-bottom: 0.8rem;
  opacity: 0.92;
}

.gate-word {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4.5vw, 2.8rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.gate-word span { font-style: italic; font-weight: 400; color: var(--ember); }

.gate-line {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.gate-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.6rem;
  flex-wrap: wrap;
}

.gate-btns button {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ember-soft);
  background: transparent;
  border: 1px solid rgba(var(--accent-rgb), 0.7);
  padding: 0.9rem 2.6rem;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.gate-btns button:hover {
  background: var(--ember);
  color: var(--on-accent);
  box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.45);
}

.hero h1 { margin-bottom: 1.4rem; }

.hero .lede { margin-bottom: 1.35rem; }

.hero .dim { margin-bottom: 1.15rem; }

.hero .btn-row { margin-top: 2.2rem; }

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

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  padding: 0.85rem 1.7rem;
  border: 1px solid var(--ember);
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.btn-solid {
  background: var(--ember);
  color: var(--on-accent);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.25);
}
.btn-solid:hover { background: var(--ember-soft); box-shadow: 0 0 32px rgba(var(--accent-rgb), 0.45); }

.btn-ghost { color: var(--ember-soft); background: transparent; border-color: rgba(var(--accent-rgb), 0.7); }
.btn-ghost:hover { background: rgba(var(--accent-rgb), 0.12); }

/* ---------- sections ---------- */

.section { padding-block: clamp(3.5rem, 8vh, 6.5rem); }

.section + .section { border-top: 1px solid var(--line-soft); }

.section-head { margin-bottom: clamp(2rem, 5vh, 3.5rem); max-width: 52rem; }

.section-head h2 { margin-bottom: 1rem; }

/* footprint strip */

.footprint {
  border-block: 1px solid var(--line-soft);
  padding-block: 1.4rem;
}

.footprint .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 2rem;
}

.footprint .label {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footprint ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  list-style: none;
}

.footprint li {
  font-family: var(--serif);
  font-size: 1.18rem;
  letter-spacing: 0.02em;
}

.footprint li::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ember);
  margin-right: 0.6rem;
  transform: translateY(-2px);
}

/* card grids */

.grid {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

.cell {
  background: var(--ink);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}

.cell.raised { background: var(--ink-2); }

.cell h3 { margin-bottom: 0.9rem; }

.cell .num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ember);
  font-size: 1.32rem;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 1.1rem;
}

.cell p { color: var(--text-dim); font-size: 0.97rem; }

.cell p + p { margin-top: 0.75rem; }

.cell a.more {
  display: inline-block;
  margin-top: 1.3rem;
  color: var(--ember);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.cell a.more::after { content: " →"; }
.cell a.more:hover { color: var(--ember-soft); text-decoration: underline; }

/* audience split panels */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.panel {
  border: 1px solid var(--line);
  background: var(--ink-2);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.panel h3 { font-size: clamp(1.55rem, 2.6vw, 2rem); }

.panel p { color: var(--text-dim); flex-grow: 1; }

.panel a.more {
  color: var(--ember);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}
.panel a.more:hover { color: var(--ember-soft); }

/* prose pages */

.prose { max-width: var(--measure); }

.prose p + p { margin-top: 1.15rem; }

.prose h2 { margin: 2.6rem 0 1rem; }

.prose h3 { margin: 2rem 0 0.7rem; font-style: italic; font-weight: 500; }

.prose ul { margin: 1.15rem 0 1.15rem 1.2rem; color: var(--text-dim); }

.prose li + li { margin-top: 0.5rem; }

.prose strong { color: var(--text); font-weight: 500; }

.pull {
  border-left: 2px solid var(--ember);
  padding-left: 1.4rem;
  margin: 2.2rem 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.3vw, 1.75rem);
  line-height: 1.38;
  color: var(--ember-soft);
  max-width: 40rem;
}

/* process steps */

.steps { list-style: none; counter-reset: step; margin-top: 1rem; }

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.4rem 0 1.4rem 4.2rem;
  border-top: 1px solid var(--line-soft);
  max-width: 46rem;
}

.steps li:last-child { border-bottom: 1px solid var(--line-soft); }

.steps li::before {
  content: counter(step, upper-roman) ".";
  position: absolute;
  left: 0;
  top: 1.35rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.55rem;
  color: var(--ember);
}

.steps h3 { margin-bottom: 0.4rem; font-size: 1.3rem; }

.steps p { color: var(--text-dim); font-size: 0.97rem; }

/* definition rows (what we look for) */

.defs { border-top: 1px solid var(--line-soft); margin-top: 1rem; }

.defs > div {
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) 1fr;
  gap: 1.5rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line-soft);
}

@media (max-width: 640px) { .defs > div { grid-template-columns: 1fr; gap: 0.4rem; } }

.defs dt { font-family: var(--serif); font-size: 1.28rem; font-weight: 500; }

.defs dd { color: var(--text-dim); max-width: var(--measure); }


/* The Model: a carport drawn as a section, sitting right of the type.
   The structure is the argument on this page, so it is shown rather than
   decorated. Two files, one per theme, swapped by the background-image. */
.hero-model {
  position: relative;
  overflow: hidden;
  min-height: min(64vh, 38rem);
  display: flex;
  align-items: center;
  padding-block: clamp(4rem, 9vh, 6.5rem);
}

.hero-model .hero-inner { max-width: 40rem; }

.model-art {
  position: absolute;
  inset: 0;
  background-image: url("../assets/model-hero.svg");
  background-repeat: no-repeat;
  background-position: 86% 48%;
  background-size: 56% auto;
  filter: drop-shadow(0 0 20px rgba(var(--accent-rgb), 0.22));
}

:root[data-theme="light"] .model-art {
  background-image: url("../assets/model-hero-light.svg");
  filter: drop-shadow(0 0 16px rgba(29, 47, 216, 0.16));
}

/* the drawing must clear the type column, as the map does on Where We Work */
.model-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--scrim-rgb),0.94) 0%, rgba(var(--scrim-rgb),0.84) 26%,
                    rgba(var(--scrim-rgb),0.26) 44%, rgba(var(--scrim-rgb),0) 60%),
    linear-gradient(180deg, rgba(var(--scrim-rgb),0.22) 0%, rgba(var(--scrim-rgb),0) 20%,
                    rgba(var(--scrim-rgb),0) 70%, var(--ink) 100%);
}

:root[data-theme="light"] .model-scrim {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.88) 26%,
                    rgba(255,255,255,0.30) 44%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 20%,
                    rgba(255,255,255,0) 70%, #ffffff 100%);
}

@media (max-width: 980px) {
  .hero-model { min-height: min(74vh, 42rem); align-items: flex-start; }
  .model-art { background-position: 50% 86%; background-size: 100% auto; }
  .model-scrim {
    background: linear-gradient(180deg, rgba(var(--scrim-rgb),0.72) 0%,
                rgba(var(--scrim-rgb),0.62) 42%, rgba(var(--scrim-rgb),0.40) 72%,
                var(--ink) 100%);
  }
  :root[data-theme="light"] .model-scrim {
    background: linear-gradient(180deg, rgba(255,255,255,0.84) 0%, rgba(255,255,255,0.74) 42%,
                rgba(255,255,255,0.56) 72%, #ffffff 100%);
  }
}

/* market blocks */

.market {
  display: grid;
  grid-template-columns: minmax(18rem, 21.5rem) 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2rem, 5vh, 3.2rem);
  border-top: 1px solid var(--line-soft);
}

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

.market h3 { font-size: clamp(1.7rem, 2.9vw, 2.3rem); }

.market[id] { scroll-margin-top: 5.5rem; }

.market-marks {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
  min-height: 7.5rem;          /* one baseline for every market block */
}

.state-outline {
  width: 7.5rem;
  height: 7.5rem;
  flex: none;
  overflow: visible;
}

.state-outline path {
  fill: rgba(var(--accent-rgb), 0.14);
  stroke: var(--ember);
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

/* each flag keeps its own proportions — they run from 1.27:1 to 2:1 — so the
   height is fixed and the width follows; the ember edge is drawn in the SVG */
.state-flag {
  height: 6rem;
  width: auto;
  flex: none;
}


/* language control: the current tongue stated, the other offered */
.nav-links .lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.3rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
}

.nav-links .lang span,
.nav-links .lang a {
  padding: 0.15rem 0.1rem;
  text-decoration: none;
}

.nav-links .lang span { color: var(--text); }

.nav-links .lang a {
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-links .lang a:hover,
.nav-links .lang a:focus-visible {
  color: var(--ember);
  border-bottom-color: var(--ember);
}

.nav-links .lang::before {
  content: "";
  width: 1px;
  height: 0.9rem;
  margin-right: 0.5rem;
  background: var(--line);
}

@media (max-width: 860px) {
  .nav-links .lang { margin: 0.4rem 0 0; }
  .nav-links .lang::before { display: none; }
}


/* theme switch: one glyph that is a sun by night and a moon by day */
.nav-links .theme { display: flex; align-items: center; margin-left: 0.15rem; }

.theme-btn {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.theme-btn:hover,
.theme-btn:focus-visible { color: var(--ember); background: rgba(var(--accent-rgb), 0.10); }

.theme-btn svg { width: 1.1rem; height: 1.1rem; }

.theme-btn .t-sun  { fill: currentColor; }
.theme-btn .t-rays { stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; fill: none; }
.theme-btn .t-moon { fill: currentColor; display: none; }

:root[data-theme="light"] .theme-btn .t-sun,
:root[data-theme="light"] .theme-btn .t-rays { display: none; }
:root[data-theme="light"] .theme-btn .t-moon { display: block; }

@media (max-width: 860px) {
  .nav-links .theme { margin: 0.2rem 0 0; }
  .theme-btn { width: auto; justify-content: start; }
}

/* markets strip on the homepage becomes navigation */
.footprint li a {
  text-decoration: none;
  color: inherit;
  transition: color 160ms ease;
}

.footprint li a:hover { color: var(--ember); }

.market .tag {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  font-family: var(--sans);
}

.market p { color: var(--text-dim); }
.market p + p { margin-top: 1rem; }

/* ---------- forms ---------- */
/* honeypot: off-screen rather than display:none, which some bots now skip */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  min-height: 1.4em;
  color: var(--text-dim);
}

.form-status.is-ok  { color: var(--ember-soft); }
.form-status.is-bad { color: #ff8e8e; }

form.w3f button[disabled] { opacity: 0.55; cursor: progress; }


form .field { margin-bottom: 1.2rem; }

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.45rem;
}

input, select, textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  font-weight: 300;
  font-size: 0.98rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.35);
}

textarea { min-height: 7.5rem; resize: vertical; }

form button {
  cursor: pointer;
  width: auto;
}

/* ---------- painted section (the myth behind the glass) ---------- */

.section-painted {
  position: relative;
  overflow: hidden;
  min-height: min(94vh, 62rem);
  display: flex;
  align-items: center;
}

.painting { position: absolute; inset: 0; z-index: 0; }

/* the whole canvas in frame, feathered at the edges so it has no border */
.painting-img {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 1%;
  width: min(44%, 42rem);
  background-image: url("../assets/phaethon.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.8;
  -webkit-mask-image: radial-gradient(ellipse 60% 64% at 52% 50%, #000 34%, rgba(0,0,0,0.5) 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 64% at 52% 50%, #000 34%, rgba(0,0,0,0.5) 70%, transparent 100%);
  animation: painting-drift 54s ease-in-out infinite alternate;
  transform-origin: 50% 50%;
}

@keyframes painting-drift {
  from { transform: scale(1.0) translate(0.4%, -0.3%); }
  to   { transform: scale(1.035) translate(-0.5%, 0.3%); }
}

/* the semi-transparent black: heavy over the column of type,
   thinning to the right so the chariot emerges, sealed top and bottom */
.painting-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      var(--ink) 0%,
      rgba(var(--scrim-rgb), 0.94) 30%,
      rgba(var(--scrim-rgb), 0.62) 50%,
      rgba(var(--scrim-rgb), 0.26) 72%,
      rgba(var(--scrim-rgb), 0.42) 100%),
    linear-gradient(180deg,
      var(--ink) 0%,
      rgba(var(--scrim-rgb), 0.16) 14%,
      rgba(var(--scrim-rgb), 0.18) 82%,
      var(--ink) 100%);
}

.section-painted .wrap { position: relative; z-index: 1; width: 100%; }

.section-painted .section-head { max-width: 41rem; margin-bottom: 0; }

.plate {
  margin-top: 2.6rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(169, 159, 147, 0.75);
}

.plate em { font-style: italic; text-transform: none; letter-spacing: 0.06em; }

@media (max-width: 860px) {
  .section-painted { min-height: 0; padding-block: clamp(3.5rem, 8vh, 6rem); }
  .painting-img {
    right: 0; width: 100%;
    background-size: cover; background-position: center 28%; opacity: 0.42;
    -webkit-mask-image: none; mask-image: none;
  }
  .painting-veil {
    background:
      linear-gradient(180deg,
        var(--ink) 0%,
        rgba(var(--scrim-rgb), 0.86) 18%,
        rgba(var(--scrim-rgb), 0.9) 70%,
        var(--ink) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .painting-img { animation: none; }
}

/* ---------- CTA band ---------- */

.cta-band {
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 60% 120% at 85% 50%, rgba(var(--accent-rgb), 0.1), transparent 70%),
    var(--ink-2);
  padding-block: clamp(3.5rem, 8vh, 6rem);
  text-align: left;
}

.cta-band h2 { max-width: 36rem; margin-bottom: 1.6rem; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 2.8rem 3.4rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.8rem;
  list-style: none;
}

.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

.site-footer .legal { flex-basis: 100%; margin-top: 1.2rem; font-size: 0.8rem; }

/* ==========================================================================
   Daylight — the same system in reverse: white ground, royal blue accent,
   black text. The accent is the blue of the mark, deepened a little so it
   holds its own as body-weight type on white.
   ========================================================================== */

:root[data-theme="light"] {
  --ink: #ffffff;
  --ink-2: #f4f5fb;
  --ink-3: #e9ebf6;
  --line: rgba(10, 14, 40, 0.18);
  --line-soft: rgba(10, 14, 40, 0.10);
  --text: #07080f;
  --text-dim: #3f4455;
  --ember: #1d2fd8;
  --ember-soft: #3647ea;
  --ember-deep: #0d1a96;
  --accent-rgb: 29, 47, 216;
  --scrim-rgb: 255, 255, 255;
  --plate: #eef0fb;
  --glow: 0.45;
  --on-accent: #ffffff;
}

/* Photography was chosen to sit under pale type. Under dark type it needs the
   opposite treatment, so the veils lighten rather than darken. */
:root[data-theme="light"] .hero-scrim {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.76) 0%, rgba(255,255,255,0.66) 42%,
                    rgba(255,255,255,0.38) 74%, rgba(255,255,255,0.46) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.04) 22%,
                    rgba(255,255,255,0.04) 66%, #ffffff 100%);
}

@media (max-width: 760px) {
  :root[data-theme="light"] .hero-scrim {
    background: linear-gradient(180deg, rgba(255,255,255,0.84) 0%, rgba(255,255,255,0.74) 35%,
                                rgba(255,255,255,0.80) 72%, #ffffff 100%);
  }
}

:root[data-theme="light"] .hero-fallback img,
:root[data-theme="light"] .hero-video { opacity: 0.74; }

:root[data-theme="light"] .map-art {
  background-image: url("../assets/map-markets-light.svg");
  filter: drop-shadow(0 0 18px rgba(29, 47, 216, 0.18)) brightness(1);
}

/* the map must clear the type column, exactly as it does by night */
:root[data-theme="light"] .map-scrim {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.90) 26%,
                    rgba(255,255,255,0.38) 42%, rgba(255,255,255,0.12) 60%),
    linear-gradient(180deg, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0) 20%,
                    rgba(255,255,255,0) 66%, #ffffff 100%);
}

@media (max-width: 980px) {
  :root[data-theme="light"] .map-scrim { background: rgba(255, 255, 255, 0.50); }
}

/* the Ricci is a dark baroque canvas; on white it is a weight, not a texture */
:root[data-theme="light"] .painting-img { opacity: 0.30; }

:root[data-theme="light"] .site-header { background: rgba(255, 255, 255, 0.90); }

:root[data-theme="light"] ::selection { background: var(--ember); color: #ffffff; }


:root[data-theme="light"] .form-status.is-bad { color: #b3261e; }

/* glows are a night-time effect; by day they read as blur */
:root[data-theme="light"] .brand .mark,
:root[data-theme="light"] .foot-mark,
:root[data-theme="light"] .gate-mark { filter: none; }
