/* Ascendant Road Holdings — public site (v1.20.0-site)
   One stylesheet for the seven public pages and the 404 page.
   Colour and type tokens come from the Heritage monogram the owner selected. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/site/fonts/cormorant-garamond-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/site/fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/site/fonts/manrope-800-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/site/fonts/jost-latin.woff2") format("woff2");
}

:root {
  /* House palette — sampled from the selected Heritage monogram */
  --paper: #fbf8f2;
  --paper-2: #f3ede2;
  --paper-ink: #12253d;
  --paper-muted: #4a5668;
  --paper-line: rgba(18, 37, 61, 0.14);
  --ink: #0b1321;
  --navy: #12253d;
  --navy-2: #182f4d;
  --ivory: #f3ede2;
  --ivory-muted: rgba(243, 237, 226, 0.74);
  --ivory-line: rgba(243, 237, 226, 0.16);
  --bronze: #b48a55;
  --bronze-hi: #e9cfa3;
  --bronze-lo: #7a5630;
  --bronze-ink: #82602f;
  --metal: linear-gradient(100deg, #7a5630 0%, #b48a55 28%, #efd9b0 50%, #b48a55 72%, #7a5630 100%);

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(20px, 5.2vw, 72px);
  --max: 1320px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

  /* Section-level theme slots (each section sets these) */
  --bg: var(--paper);
  --fg: var(--paper-ink);
  --muted: var(--paper-muted);
  --accent: var(--bronze-ink);
  --line: var(--paper-line);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

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

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--paper-ink);
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Section tones ---------- */

.tone-paper { --bg: var(--paper); --fg: var(--paper-ink); --muted: var(--paper-muted); --accent: var(--bronze-ink); --line: var(--paper-line); }
.tone-paper-2 { --bg: var(--paper-2); --fg: var(--paper-ink); --muted: var(--paper-muted); --accent: var(--bronze-ink); --line: var(--paper-line); }
.tone-ink { --bg: var(--ink); --fg: var(--ivory); --muted: var(--ivory-muted); --accent: var(--bronze-hi); --line: var(--ivory-line); }
.tone-navy { --bg: var(--navy); --fg: var(--ivory); --muted: var(--ivory-muted); --accent: var(--bronze-hi); --line: var(--ivory-line); }

/* Company worlds — palettes sampled from each company's own brand artwork */
.w-rrm { --bg: #12131c; --fg: #f1ebe2; --muted: rgba(241, 235, 226, 0.72); --accent: #c6a88a; --line: rgba(198, 168, 138, 0.22); }
.w-tsa { --bg: #0f2f3a; --fg: #f7ecd6; --muted: rgba(247, 236, 214, 0.78); --accent: #e8b347; --line: rgba(247, 236, 214, 0.2); }
.w-ftm { --bg: #0a0a0a; --fg: #f5efe2; --muted: rgba(245, 239, 226, 0.7); --accent: #dcbd6a; --line: rgba(220, 189, 106, 0.24); }
.w-rc { --bg: #f5f0e8; --fg: #1a1a2e; --muted: #4f4f63; --accent: #315b4d; --line: rgba(26, 26, 46, 0.14); }
.w-ac { --bg: #053b2a; --fg: #f4f7fb; --muted: rgba(244, 247, 251, 0.76); --accent: #34d399; --line: rgba(52, 211, 153, 0.22); }

.tone-paper, .tone-paper-2, .tone-ink, .tone-navy, .w-rrm, .w-tsa, .w-ftm, .w-rc, .w-ac {
  background-color: var(--bg);
  color: var(--fg);
}

/* ---------- Layout ---------- */

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - 2 * var(--gutter), 860px); }

.section { padding-block: clamp(72px, 11vw, 160px); position: relative; }
.section--tight { padding-block: clamp(56px, 8vw, 112px); }

/* ---------- Type ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.5;
}
.eyebrow::before {
  content: "";
  flex: 0 0 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--plain::before { display: none; }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 6.2rem);
  line-height: 1;
  letter-spacing: -0.012em;
}
.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  line-height: 1.15;
}
.italic { font-style: italic; }
.accent-text { color: var(--accent); }

.lede {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 38em;
}
.pull {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  line-height: 1.3;
  color: var(--accent);
}
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ---------- Actions ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 36px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { background: var(--accent); color: var(--bg); }
.btn--solid { background: var(--accent); color: var(--bg); }
.btn--solid:hover { background: transparent; color: var(--fg); }
.btn[disabled] { opacity: 0.55; cursor: progress; }

.link {
  display: inline-flex;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 1px;
  background-position: 0 calc(50% + 0.95em);
  background-repeat: no-repeat;
  transition: background-size 0.35s var(--ease), color 0.3s;
}
.link:hover { color: var(--accent); background-size: 30% 1px; }
.arrow { display: inline-block; transition: transform 0.35s var(--ease); }
a:hover .arrow { transform: translateX(4px); }
.ext { font-size: 0.95em; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--fg);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: block; flex: 0 0 auto; line-height: 0; }
.brand img { height: 44px; width: auto; }
.brand .brand-on-dark { display: none; }
.site-header.tone-ink .brand-on-light,
.site-header.tone-navy .brand-on-light { display: none; }
.site-header.tone-ink .brand-on-dark,
.site-header.tone-navy .brand-on-dark { display: block; }

.nav-list { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  opacity: 0.86;
  transition: opacity 0.2s, color 0.2s;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { opacity: 1; color: var(--accent); }
.nav-list .nav-cta {
  padding: 0 20px;
  min-height: 42px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  opacity: 1;
}

/* The menu is a native <details> so it works without JavaScript. */
.menu { display: none; }
.menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-icon { position: relative; width: 22px; height: 10px; }
.menu-icon::before, .menu-icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-icon::before { top: 0; }
.menu-icon::after { top: 8.5px; }
.menu[open] .menu-icon::before { top: 4px; transform: rotate(45deg); }
.menu[open] .menu-icon::after { top: 4px; transform: rotate(-45deg); }

.menu-panel {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 60;
  overflow-y: auto;
  background: var(--ink);
  color: var(--ivory);
  padding: 32px var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.menu-panel ul a {
  display: block;
  padding: 10px 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  line-height: 1.15;
  text-decoration: none;
  color: var(--ivory);
}
.menu-panel ul a[aria-current="page"] { color: var(--bronze-hi); }
.menu-panel .menu-group-label {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze-hi);
  margin-bottom: 6px;
}
.menu-panel .menu-small a { font-size: 1.35rem; font-family: var(--serif); font-style: italic; color: var(--ivory-muted); }

@media (max-width: 959px) {
  :root { --header-h: 66px; }
  .brand img { height: 36px; }
  .site-nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 380px) {
  .brand img { height: 31px; }
}

body.menu-is-open { overflow: hidden; }

/* ---------- Cover (home) ---------- */

.cover {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  padding: clamp(24px, 4vh, 56px) 0 clamp(14px, 2.5vh, 28px);
  text-align: center;
  overflow: hidden;
}
.cover-inner { display: grid; justify-items: center; gap: clamp(18px, 3vh, 30px); }
.cover-crest {
  width: min(680px, 88vw, max(280px, calc((100svh - var(--header-h) - 250px) * 1.43)));
  aspect-ratio: 1013 / 705;
  animation: rise 1.4s var(--ease) both;
}
.cover-crest img { width: 100%; height: 100%; }
.cover-rule {
  width: 72px;
  height: 1px;
  background: var(--metal);
  animation: widen 1.2s 0.5s var(--ease) both;
}
.cover-line {
  max-width: 22em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.3;
  color: var(--paper-ink);
  animation: fade 1.2s 0.7s var(--ease) both;
}
.cover-meta {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bronze-ink);
  animation: fade 1.2s 0.9s var(--ease) both;
}
.cover-cue {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: clamp(20px, 4vh, 40px);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper-muted);
}
.cover-cue::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--bronze), transparent);
  animation: drip 2.4s var(--ease) infinite;
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes widen { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Creed ---------- */

.creed { overflow: hidden; }
.creed-list { display: grid; gap: clamp(8px, 1.6vw, 18px); margin: 0 0 clamp(48px, 7vw, 88px); }
.creed-line {
  display: grid;
  grid-template-columns: clamp(44px, 6vw, 88px) 1fr;
  align-items: baseline;
  gap: clamp(10px, 2vw, 24px);
  padding-block: clamp(10px, 1.6vw, 20px);
  border-bottom: 1px solid var(--line);
}
.creed-line:first-child { border-top: 1px solid var(--line); }
.creed-num {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.creed-text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 6.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.creed-text em {
  font-style: italic;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
.creed-body { display: grid; gap: 24px 64px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .creed-body { grid-template-columns: 1.1fr 1fr; align-items: end; } }

/* ---------- Portfolio index ---------- */

.index-head { display: grid; gap: 28px; margin-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .index-head { grid-template-columns: 1.2fr 1fr; align-items: end; } }

.index-list { border-top: 1px solid var(--line); }
.index-list li { border-bottom: 1px solid var(--line); }
.index-list a {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: clamp(18px, 2.4vw, 28px) 0;
  text-decoration: none;
  color: var(--fg);
  transition: padding 0.4s var(--ease), color 0.3s;
}
.index-list a:hover { color: var(--accent); padding-left: 10px; }
.index-num { font-family: var(--serif); font-weight: 600; color: var(--accent); letter-spacing: 0.08em; }
.index-name { font-family: var(--serif); font-size: clamp(1.6rem, 3.6vw, 2.8rem); line-height: 1.1; }
.index-field { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); text-align: right; }
@media (max-width: 640px) {
  .index-list a { grid-template-columns: 40px 1fr; }
  .index-field { grid-column: 2; text-align: left; margin-top: -6px; }
}

/* ---------- Chapters (company worlds) ---------- */

.chapter { position: relative; overflow: hidden; padding-block: clamp(80px, 12vw, 168px); }
.chapter-grid { display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (min-width: 960px) {
  .chapter-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .chapter-grid--flip > :first-child { order: 2; }
}
.chapter-num {
  display: block;
  margin-bottom: 18px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.chapter-logo { margin-bottom: 26px; }
.chapter-title { margin-bottom: 18px; }
.chapter .pull { margin: 0 0 22px; }
.chapter p { color: var(--muted); max-width: 34em; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tags li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--fg);
}

/* RRM — cinema */
.w-rrm .rrm-mark { width: 92px; }
.screen {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: #0c0e16;
  aspect-ratio: 16 / 9;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line);
}
.screen video, .screen img { width: 100%; height: 100%; object-fit: cover; }
.screen-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.screen-toggle {
  flex: 0 0 auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
}
.screen-toggle[hidden] { display: none; }
.frame-corners { position: absolute; inset: -14px; pointer-events: none; }
.frame-corners::before, .frame-corners::after {
  content: "";
  position: absolute;
  width: 26px; height: 26px;
  border: 1px solid var(--accent);
}
.frame-corners::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.frame-corners::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.screen-wrap { position: relative; padding: 14px; }

/* TSA — dawn ascent */
.w-tsa.chapter { padding-block: 0; }
.tsa-stage {
  position: relative;
  display: grid;
  min-height: min(980px, 100svh);
}
.tsa-art { position: relative; min-height: 340px; }
.tsa-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.tsa-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 47, 58, 0) 55%, var(--bg) 100%);
}
.tsa-copy { position: relative; padding: 8px var(--gutter) clamp(72px, 10vw, 120px); }
.tsa-copy .display { margin-bottom: 22px; }
.page-hero .rc-word { margin-bottom: 22px; }
/* TSA's full-colour logo is dark artwork; like TSA's own site, it sits on a light badge. */
.tsa-logo {
  width: clamp(188px, 18vw, 232px);
  margin-bottom: 28px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #faf5ea;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(232, 179, 71, 0.35);
}
@media (min-width: 960px) {
  .tsa-stage { grid-template-columns: 1fr; }
  .tsa-art { position: absolute; inset: 0; min-height: 0; }
  .tsa-art::after {
    background:
      linear-gradient(90deg, rgba(15, 47, 58, 0.97) 0%, rgba(15, 47, 58, 0.9) 34%, rgba(15, 47, 58, 0.25) 62%, rgba(15, 47, 58, 0) 78%),
      linear-gradient(0deg, rgba(15, 47, 58, 0.85) 0%, rgba(15, 47, 58, 0) 34%);
  }
  .tsa-copy {
    width: min(100% - 2 * var(--gutter), var(--max));
    margin-inline: auto;
    padding: clamp(96px, 12vw, 160px) 0;
    align-self: center;
  }
  .tsa-copy > * { max-width: 560px; }
  .tsa-copy > .stages { max-width: none; }
}
.stages { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.stages li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.stage-num { grid-row: span 2; font-family: var(--serif); font-weight: 600; color: var(--accent); font-size: 1.1rem; }
.stage-name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; }
.stage-when { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 960px) {
  .stages { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; gap: 14px; align-items: end; }
  .stages li {
    display: block;
    padding: 18px 18px 20px;
    border: 1px solid var(--line);
    background: rgba(15, 47, 58, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .stages li:nth-child(2) { margin-bottom: 34px; }
  .stages li:nth-child(3) { margin-bottom: 68px; }
  .stages li:nth-child(4) { margin-bottom: 102px; }
  .stage-num { display: block; margin-bottom: 8px; }
  .stage-when { display: block; margin-top: 6px; }
}

/* FTM — editorial black & gold */
.chapter.w-ftm, .page-hero.w-ftm {
  background:
    radial-gradient(120% 80% at 85% 10%, rgba(220, 189, 106, 0.12), transparent 60%),
    var(--bg);
}
.page-hero .ftm-crest { margin-inline: auto; width: clamp(140px, 18vw, 200px); }
.ftm-crest { width: clamp(120px, 16vw, 168px); filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.6)); }
.ftm-title { font-style: italic; font-size: clamp(2.8rem, 8vw, 7rem); line-height: 0.95; }
.ftm-title span { display: block; font-style: normal; color: var(--accent); }
.cities { margin-top: 36px; border-top: 1px solid var(--line); }
.cities li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.city { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; }
.city-status { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.city-status--soon { color: var(--muted); }

/* Home: FTM as a centred editorial spread */
.ftm-editorial .wrap { text-align: center; }
.ftm-editorial .ftm-crest { margin: 0 auto 30px; }
.ftm-editorial p { margin-inline: auto; }
.ftm-editorial .cities { display: grid; text-align: center; }
.ftm-editorial .cities li { justify-content: center; flex-direction: column; align-items: center; gap: 6px; }
.ftm-editorial .actions { justify-content: center; }
@media (min-width: 760px) {
  .ftm-editorial .cities { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .ftm-editorial .cities li { border-bottom: 0; padding: 26px 12px; }
  .ftm-editorial .cities li + li { border-left: 1px solid var(--line); }
}

/* Reminiscent Chronicles — the record */
.w-rc {
  background-image: repeating-linear-gradient(180deg, transparent 0 39px, rgba(26, 26, 46, 0.06) 39px 40px);
}
.rc-word { font-family: var(--serif); font-size: clamp(2.8rem, 7.4vw, 6.4rem); line-height: 0.98; letter-spacing: -0.015em; }
.rc-word em { color: var(--accent); }
.ledger { border-top: 2px solid var(--fg); }
.ledger li {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.ledger-no { font-family: var(--serif); font-weight: 600; color: var(--accent); letter-spacing: 0.08em; }
.ledger-name { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; }
.ledger-tag { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.ledger-caption { margin-top: 14px; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* AscendantCare — emerald aurora with its ascending pulse */
.chapter.w-ac, .page-hero.w-ac {
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(52, 211, 153, 0.16), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(15, 182, 160, 0.12), transparent 60%),
    var(--bg);
}
.ac-pulse {
  position: absolute;
  right: 3%;
  top: 10%;
  width: min(620px, 62vw);
  height: auto;
  fill: none;
  stroke: rgba(52, 211, 153, 0.14);
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.ac-pulse circle { fill: rgba(52, 211, 153, 0.2); stroke: none; }
@media (max-width: 959px) { .ac-pulse { display: none; } }
.w-ac .wrap { position: relative; }
.ac-logo { display: inline-flex; align-items: center; gap: 12px; }
.ac-logo img { width: 44px; height: 44px; border-radius: 13px; box-shadow: 0 10px 24px -10px rgba(15, 139, 95, 0.7); }
.ac-word { font-family: "Manrope", "Inter", system-ui, sans-serif; font-weight: 800; letter-spacing: -0.02em; font-size: 1.45rem; line-height: 1; color: var(--fg); }
.ac-hero-mark { display: grid; place-items: center; }
.ac-hero-mark img { width: clamp(150px, 20vw, 240px); height: auto; border-radius: 22%; box-shadow: 0 40px 90px -30px rgba(52, 211, 153, 0.55), 0 0 0 1px rgba(52, 211, 153, 0.25); }
@media (max-width: 959px) { .ac-hero-mark { justify-items: start; } .ac-hero-mark img { width: 120px; } }

.cred-board { display: grid; gap: 14px; }
.cred-group { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(4, 30, 22, 0.72); }
.cred-board .cred-status { max-width: none; }
.cred-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.cred-status--live { color: var(--accent); }
.cred-status--live span:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); vertical-align: 1px; }
.cred-count { font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0.04em; color: var(--fg); }
.cred-list { display: grid; gap: 0; }
.cred-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.cred-list li:first-child { border-top: 0; }
.cred-name { font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; }
.cred-code { font-size: 0.72rem; letter-spacing: 0.14em; color: var(--accent); white-space: nowrap; }
.cred-status--road + .cred-list { grid-template-columns: 1fr; }
@media (min-width: 560px) { .cred-status--road + .cred-list { grid-template-columns: 1fr 1fr; column-gap: 24px; } .cred-status--road + .cred-list li:nth-child(2) { border-top: 0; } }

/* ---------- Founder ---------- */

.founder-grid { display: grid; gap: clamp(36px, 6vw, 96px); align-items: center; }
@media (min-width: 900px) { .founder-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.portrait { position: relative; }
.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 2px;
  background: var(--paper-2);
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border: 1px solid var(--bronze);
  opacity: 0.6;
}
.portrait-wrap { position: relative; z-index: 0; max-width: 460px; }
.founder-name { margin-bottom: 8px; }
.founder-role { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 28px; }
.facts { display: grid; gap: 0; margin-top: 30px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: minmax(110px, 0.4fr) 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); padding-top: 3px; }
.facts dd { margin: 0; color: var(--fg); }
@media (max-width: 480px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Conversation band ---------- */

.routes { display: grid; gap: 0; margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
@media (min-width: 760px) { .routes { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); column-gap: 40px; } }
.route { padding: 22px 0; border-bottom: 1px solid var(--line); }
.route-name { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; margin-bottom: 6px; }
.route-for { font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; }
.email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}
.email:hover { text-decoration-color: currentColor; }
.contact-grid > *, .split > *, .chapter-grid > *, .page-hero-grid > *, .founder-grid > * { min-width: 0; }
.route a { font-size: 0.95rem; color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.route a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Page heroes (inner pages) ---------- */

.page-hero { padding-block: clamp(64px, 10vw, 140px) clamp(56px, 8vw, 112px); position: relative; overflow: hidden; }
.page-hero-grid { display: grid; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 28px; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { opacity: 0.6; }
.page-hero .display { margin-bottom: 26px; }
.plate {
  padding: clamp(20px, 4vw, 44px);
  background: var(--paper);
  border-radius: 2px;
  box-shadow: 0 40px 80px -40px rgba(11, 19, 33, 0.35);
}
.plate img { width: 100%; }

/* ---------- Generic content blocks ---------- */

/* Long single words (company names, host names) wrap instead of pushing the page sideways at large text sizes. */
.display, .h2, .rc-word, .next-name, .index-name, .ac-word, .footer-col a, .route-name { overflow-wrap: anywhere; }
.footer-top > *, .next > *, .ac-logo > * { min-width: 0; }
.ac-logo { max-width: 100%; }

.h2 + .steps, .h2 + .principles, .h2 + .principles.reveal { margin-top: clamp(36px, 5vw, 64px); }
.split .h2 + .lede { margin-top: 22px; }

.split { display: grid; gap: clamp(28px, 5vw, 72px); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }

.principles { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; border-top: 0; } }
.principle { padding: 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .principle { border-top: 1px solid var(--line); border-bottom: 0; } }
.principle-num { display: block; font-family: var(--serif); font-weight: 600; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 14px; }
.principle .h3 { margin-bottom: 14px; }
.principle p { color: var(--muted); margin: 0; }

.offer-list { border-top: 1px solid var(--line); }
.offer-list li { display: grid; grid-template-columns: 1fr; gap: 6px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .offer-list li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; } }
.offer-name { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.2; }
.offer-list p { margin: 0; color: var(--muted); }

.steps { display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; border-top: 0; } }
.steps li { padding: 24px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .steps li { border-top: 1px solid var(--line); border-bottom: 0; } }
.steps .step-no { display: block; font-family: var(--serif); font-weight: 600; color: var(--accent); letter-spacing: 0.14em; margin-bottom: 10px; }
.steps .h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }

/* House tree (about) */
.tree { display: grid; justify-items: center; gap: 0; text-align: center; }
.tree-root { display: grid; justify-items: center; gap: 12px; padding-bottom: 36px; position: relative; }
.tree-root img { width: 88px; }
.tree-root strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.tree-root::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 1px; height: 28px; background: var(--accent); }
.tree-branches { display: grid; width: 100%; gap: 14px; border-top: 1px solid var(--accent); padding-top: 28px; }
@media (min-width: 760px) { .tree-branches { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.tree-branches a {
  display: grid;
  gap: 6px;
  padding: 24px 18px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.tree-branches a:hover { border-color: var(--accent); transform: translateY(-3px); }
.tree-branches strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; line-height: 1.15; }
.tree-branches span { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* Next-company navigation */
.next { display: grid; gap: 8px; padding-block: clamp(56px, 8vw, 96px); text-decoration: none; color: var(--fg); }
.next-label { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.next-name { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 4.8rem); line-height: 1; }
.next:hover .next-name { color: var(--accent); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: clamp(48px, 7vw, 96px); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.directory li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.directory li:first-child { border-top: 1px solid var(--line); }

.form { display: grid; gap: 22px; }
.form-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--paper-ink);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--paper-ink) 50%), linear-gradient(135deg, var(--paper-ink) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bronze-ink); box-shadow: 0 0 0 3px rgba(180, 138, 85, 0.25); }
.field [aria-invalid="true"] { border-color: #a1362b; }
.field-error { font-size: 0.85rem; color: #a1362b; min-height: 0; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.form-status { padding: 16px 18px; border-left: 2px solid var(--bronze); background: rgba(180, 138, 85, 0.1); color: var(--paper-ink); }
.form-status[hidden] { display: none; }
.form-status--error { border-left-color: #a1362b; background: rgba(161, 54, 43, 0.08); }
.form-done { padding: 32px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.55); }
.form-done[hidden] { display: none; }

/* ---------- Footer ---------- */

.site-footer { padding: clamp(64px, 9vw, 112px) 0 36px; }
.footer-top { display: grid; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); } }
.footer-brand img { width: 260px; max-width: 100%; }
.footer-brand p { margin-top: 22px; font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.35; color: var(--muted); max-width: 16em; }
.footer-col h2 { font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.footer-col a { display: inline-flex; min-height: 40px; align-items: center; color: var(--fg); opacity: 0.86; text-decoration: none; font-size: 0.98rem; }
.footer-col a:hover { opacity: 1; color: var(--accent); }
.footer-legal { display: grid; gap: 10px; padding-top: 28px; font-size: 0.82rem; color: var(--muted); }
@media (min-width: 900px) { .footer-legal { grid-template-columns: 1fr auto; } }
.footer-legal p { margin: 0; }

/* ---------- 404 ---------- */

.lost { min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; }

/* ---------- Reveal (progressive enhancement; content is visible without JS) ---------- */

.reveal.is-pending { opacity: 0; transform: translateY(26px); }
.reveal.is-shown { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
  .cover-cue::after { animation: none; }
}

@media print {
  .site-header, .menu, .cover-cue, .screen-bar, .form { display: none !important; }
  body { background: #fff; color: #000; }
}
