/* Ancient City Associates — Retail Division
   Editorial-industrial system: warm paper, deep ink, coquina rust. */

:root {
  --ink: #0e161f;
  --ink-2: #151f2a;
  --ink-3: #1d2935;
  --paper: #f4f0e8;
  --paper-2: #ebe5d9;
  --paper-3: #e2dacb;
  --text: #17212b;
  --muted: #5d6670;
  --muted-on-ink: #9aa4ae;
  --rust: #b0603a;
  --rust-soft: #d9946e;
  --sage: #7f9182;
  --ok: #6fae8c;
  --warn: #d7a24a;
  --hair: rgba(14, 22, 31, 0.09);
  --hair-ink: rgba(255, 255, 255, 0.08);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-xl: 2rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--rust); color: #fff; }

/* Film grain — fixed, non-interactive */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 6px; }

/* ---------- Type ---------- */
.display, h1, h2, h3 { font-family: var(--serif); font-weight: 350; letter-spacing: -0.022em; line-height: 1.02; margin: 0; font-variation-settings: "opsz" 144; }
h1 { font-size: clamp(2.7rem, 6.6vw, 6.1rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.9rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.15; font-variation-settings: "opsz" 40; }
em, .it { font-style: italic; color: var(--rust); font-weight: 300; }
.on-ink em { color: var(--rust-soft); }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 36em; line-height: 1.6; }
.on-ink .lede { color: var(--muted-on-ink); }
.mono { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.02em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  background: rgba(14, 22, 31, 0.05);
  box-shadow: inset 0 0 0 1px var(--hair);
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rust); }
.on-ink .eyebrow { background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--hair-ink); color: var(--muted-on-ink); }

/* ---------- Buttons (island + nested icon) ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --ic: rgba(255, 255, 255, 0.12);
  display: inline-flex; align-items: center; gap: 14px;
  padding: 7px 7px 7px 24px; min-height: 52px;
  border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg);
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 12px 30px -14px rgba(14, 22, 31, 0.45);
}
.btn .ic {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ic);
  transition: transform 0.6s var(--ease);
}
.btn .ic svg { width: 15px; height: 15px; }
.btn:hover .ic { transform: translate(3px, -1px) scale(1.06); }
.btn:active { transform: scale(0.98); }
.btn--light { --bg: var(--paper); --fg: var(--ink); --ic: rgba(14, 22, 31, 0.08); box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.5); }
.btn--rust { --bg: var(--rust); --fg: #fff; --ic: rgba(255, 255, 255, 0.16); }
.btn--ghost { --bg: transparent; --fg: currentColor; --ic: rgba(14, 22, 31, 0.07); box-shadow: inset 0 0 0 1px var(--hair); }
.on-ink .btn--ghost { --ic: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.textlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: gap 0.5s var(--ease), color 0.4s var(--ease); }
.textlink:hover { gap: 12px; color: var(--rust); }

/* ---------- Nav: floating island ---------- */
.nav {
  position: fixed; top: 18px; left: 50%; z-index: 60;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 1080px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: rgba(244, 240, 232, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(14, 22, 31, 0.07), 0 18px 40px -24px rgba(14, 22, 31, 0.35);
  transition: background 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.nav.is-dark { background: rgba(14, 22, 31, 0.62); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 18px 40px -24px rgba(0, 0, 0, 0.6); }
.brand { display: inline-flex; align-items: center; gap: 11px; line-height: 1; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 17px; letter-spacing: -0.01em; font-variation-settings: "opsz" 24; }
.brand-sub { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.6; margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 9px 14px; border-radius: 999px; font-size: 14px; opacity: 0.78; transition: opacity 0.4s var(--ease), background 0.4s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; background: rgba(14, 22, 31, 0.06); }
.nav.is-dark .nav-links a:hover, .nav.is-dark .nav-links a[aria-current="page"] { background: rgba(255, 255, 255, 0.08); }
.nav .btn { min-height: 44px; padding-left: 18px; font-size: 14px; }
.nav .btn .ic { width: 32px; height: 32px; }
.nav.is-dark .btn { --bg: var(--paper); --fg: var(--ink); --ic: rgba(14, 22, 31, 0.08); }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(14, 22, 31, 0.07); position: relative; cursor: pointer; }
.nav.is-dark .burger { background: rgba(255, 255, 255, 0.1); }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.6s var(--ease), opacity 0.4s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(14, 22, 31, 0.92);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 28px 48px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
}
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity 0.6s var(--ease); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { overflow: hidden; }
.menu li a { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.18; font-weight: 300; transform: translateY(110%); transition: transform 0.9s var(--ease-out); }
.menu-open .menu li a { transform: none; }
.menu li:nth-child(2) a { transition-delay: 0.05s; }
.menu li:nth-child(3) a { transition-delay: 0.1s; }
.menu li:nth-child(4) a { transition-delay: 0.15s; }
.menu li:nth-child(5) a { transition-delay: 0.2s; }
.menu-foot { margin-top: 44px; color: var(--muted-on-ink); font-size: 14px; }
.menu-open { overflow: hidden; }

/* ---------- Sections ---------- */
.section { padding: clamp(96px, 13vw, 168px) 0; position: relative; }
.section--tight { padding: clamp(72px, 9vw, 112px) 0; }
.ink { background: var(--ink); color: #f1ece3; }
.paper-2 { background: var(--paper-2); }
.sec-head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 7vw, 88px); }
.sec-head .lede { margin: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: flex-end; color: #f4efe6; background: var(--ink); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.06); animation: settle 2.6s var(--ease-out) forwards; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 22, 31, 0.94) 0%, rgba(14, 22, 31, 0.78) 38%, rgba(14, 22, 31, 0.25) 75%, rgba(14, 22, 31, 0.45) 100%), linear-gradient(0deg, rgba(14, 22, 31, 0.92) 0%, rgba(14, 22, 31, 0) 45%); }
@keyframes settle { to { transform: scale(1); } }
.hero-inner { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: end; padding-top: 150px; padding-bottom: clamp(48px, 7vw, 88px); }
.hero h1 { max-width: 11.5em; }
.hero .lede { margin: 28px 0 36px; color: #b9c1c8; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--hair-ink); color: var(--muted-on-ink); font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--rust-soft); }

.page-hero { padding: clamp(150px, 18vw, 220px) 0 clamp(64px, 8vw, 104px); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); max-width: 13em; }
.page-hero .lede { margin-top: 28px; }

/* ---------- Double bezel ---------- */
.bezel { padding: 6px; border-radius: var(--r-xl); background: rgba(14, 22, 31, 0.035); box-shadow: inset 0 0 0 1px var(--hair); }
.bezel > .core { border-radius: calc(var(--r-xl) - 6px); background: #fbf9f4; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 30px 60px -40px rgba(14, 22, 31, 0.35); overflow: hidden; height: 100%; }
.bezel--ink { background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--hair-ink); }
.bezel--ink > .core { background: var(--ink-2); color: #e9e4da; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 80px -40px rgba(0, 0, 0, 0.7); }
.bezel--glass { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.bezel--glass > .core { background: rgba(14, 22, 31, 0.78); color: #e9e4da; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 40px 80px -30px rgba(0, 0, 0, 0.75); }

/* ---------- Dashboard UI ---------- */
.dash { padding: 20px 20px 18px; font-size: 13px; }
.dash-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dash-title { font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: -0.005em; display: flex; align-items: center; gap: 9px; }
.dash-title i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(111, 174, 140, 0.15); }
.tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--muted-on-ink); white-space: nowrap; }
.core:not(.dark) .tag { background: rgba(14, 22, 31, 0.05); color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair-ink); border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.kpi { background: var(--ink-3); padding: 12px 12px 10px; }
.kpi b { display: block; font-family: var(--mono); font-weight: 500; font-size: 19px; color: #fff; letter-spacing: -0.02em; }
.kpi span { font-size: 10.5px; color: var(--muted-on-ink); }
.kpi .up { color: var(--ok); font-family: var(--mono); font-size: 10px; margin-left: 4px; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid line { stroke: rgba(255, 255, 255, 0.06); }
.chart-line { fill: none; stroke: var(--rust-soft); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 2.2s var(--ease-out); }
.chart-line.b { stroke: var(--sage); stroke-width: 1.2; opacity: 0.85; }
.is-in .chart-line, .is-in.chart-line { stroke-dashoffset: 0; }
.chart-fill { fill: url(#fillRust); opacity: 0; transition: opacity 1.6s var(--ease) 0.6s; }
.is-in .chart-fill { opacity: 1; }
.chan-rows { display: grid; gap: 8px; margin-top: 14px; }
.chan { display: grid; grid-template-columns: 92px 1fr 54px; align-items: center; gap: 10px; font-size: 12px; color: #cfd5da; }
.bar { height: 5px; border-radius: 9px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--rust), var(--rust-soft)); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease-out); }
.is-in .bar i { transform: scaleX(var(--w, 0.5)); }
.chan .mono { text-align: right; color: var(--muted-on-ink); }
.dash-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair-ink); display: flex; justify-content: space-between; gap: 10px; color: var(--muted-on-ink); font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; }

.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-on-ink); padding: 0 0 10px; }
.tbl td { padding: 10px 0; border-top: 1px solid var(--hair-ink); color: #d6dbe0; }
.tbl td.mono, .tbl th.r, .tbl td.r { text-align: right; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(111, 174, 140, 0.12); color: #9fd2b5; }
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill--warn { background: rgba(215, 162, 74, 0.13); color: #e6be78; }
.pill--muted { background: rgba(255, 255, 255, 0.06); color: var(--muted-on-ink); }

.health { display: grid; gap: 10px; }
.health-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--ink-3); font-size: 12.5px; }
.health-row small { display: block; color: var(--muted-on-ink); font-size: 10.5px; margin-top: 2px; }

.ring { width: 112px; height: 112px; }
.ring circle { fill: none; stroke-width: 7; }
.ring .track { stroke: rgba(255, 255, 255, 0.07); }
.ring .val { stroke: var(--ok); stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 289; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 2s var(--ease-out); }
.is-in .ring .val { stroke-dashoffset: var(--off, 20); }

.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.flow div { padding: 12px 10px; border-radius: 12px; background: var(--ink-3); }
.flow b { display: block; font-family: var(--mono); font-weight: 500; font-size: 17px; color: #fff; }
.flow span { font-size: 10.5px; color: var(--muted-on-ink); }

.spark { display: flex; align-items: flex-end; gap: 4px; height: 64px; }
.spark i { flex: 1; border-radius: 3px 3px 1px 1px; background: rgba(217, 148, 110, 0.75); transform-origin: bottom; transform: scaleY(0); transition: transform 1.2s var(--ease-out); }
.spark i:nth-child(even) { background: rgba(217, 148, 110, 0.45); }
.is-in .spark i { transform: scaleY(1); }

/* hero dashboard placement */
.hero-dash { justify-self: end; width: 100%; max-width: 440px; }
.hero-dash .core { padding: 0; }

/* ---------- Credential strip ---------- */
.creds { border-bottom: 1px solid var(--hair); background: var(--paper); }
.creds ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.creds li { display: flex; flex-direction: column; gap: 4px; padding-left: 16px; border-left: 1px solid var(--hair); }
.creds b { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; letter-spacing: -0.01em; font-variation-settings: "opsz" 40; }
.creds span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Channels ---------- */
.channels { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.channel { grid-column: span 3; }
.channel .core { padding: 30px 26px 28px; display: flex; flex-direction: column; min-height: 330px; transition: transform 0.7s var(--ease); }
.channel:hover .core { transform: translateY(-4px); }
.channel .num { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.channel h3 { margin: auto 0 12px; padding-top: 56px; }
.channel p { color: var(--muted); font-size: 15px; margin: 0; }
.channel .ch-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(176, 96, 58, 0.09); color: var(--rust); margin-top: 22px; }
.channel .ch-ico svg { width: 22px; height: 22px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.b-8 { grid-column: span 8; } .b-4 { grid-column: span 4; } .b-5 { grid-column: span 5; } .b-7 { grid-column: span 7; } .b-6 { grid-column: span 6; } .b-12 { grid-column: span 12; }
.bento .core { padding: 0; }
.bento-cap { padding: 22px 24px 4px; }
.bento-cap h3 { font-size: 1.35rem; color: #f1ece3; }
.bento-cap p { color: var(--muted-on-ink); font-size: 14px; margin: 8px 0 0; max-width: 34em; }
.disclaim { margin-top: 26px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--muted-on-ink); text-transform: uppercase; }

/* ---------- Standards (editorial split) ---------- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 7vw, 112px); align-items: start; }
.split--contact { grid-template-columns: 1.2fr 0.8fr; }
.sec-head .textlink { margin-top: 22px; }
.sticky { position: sticky; top: 110px; }
.photo { border-radius: var(--r-xl); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.std-list { list-style: none; margin: 0; padding: 0; counter-reset: std; }
.std-list li { counter-increment: std; display: grid; grid-template-columns: 64px 1fr; gap: 8px 20px; padding: 34px 0; border-top: 1px solid var(--hair); }
.std-list li:last-child { border-bottom: 1px solid var(--hair); }
.std-list li::before { content: counter(std, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--rust); padding-top: 9px; letter-spacing: 0.08em; }
.std-list h3 { grid-column: 2; }
.std-list p { grid-column: 2; color: var(--muted); margin: 6px 0 0; max-width: 38em; }

/* ---------- Photo mosaic ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 16px; }
.mosaic figure { margin: 0; position: relative; border-radius: 26px; overflow: hidden; background: var(--paper-3); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption { position: absolute; left: 14px; bottom: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: rgba(14, 22, 31, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 6px 10px; border-radius: 999px; }
.m-a { grid-column: 1 / span 7; grid-row: span 4; }
.m-b { grid-column: 8 / span 5; grid-row: span 3; }
.m-c { grid-column: 8 / span 5; grid-row: span 3; }
.m-d { grid-column: 1 / span 4; grid-row: span 2; }
.m-e { grid-column: 5 / span 3; grid-row: span 2; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step .core { padding: 28px 24px; min-height: 280px; display: flex; flex-direction: column; }
.step .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--rust-soft); text-transform: uppercase; }
.step h3 { margin: auto 0 10px; padding-top: 48px; color: #f1ece3; }
.step p { color: var(--muted-on-ink); font-size: 14.5px; margin: 0; }

/* ---------- Facts table ---------- */
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 18px 0; border-top: 1px solid var(--hair); font-size: 15.5px; }
.facts th { width: 38%; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-right: 20px; padding-top: 21px; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 1px solid var(--hair); }
.facts small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.facts a { border-bottom: 1px solid var(--hair); }
.facts a:hover { color: var(--rust); border-color: var(--rust); }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-variation-settings: "opsz" 40; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hair); position: relative; transition: transform 0.6s var(--ease), background 0.4s var(--ease); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.2px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.6s var(--ease); }
.faq details[open] .pm { background: var(--ink); color: #fff; }
.faq details[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .ans { padding: 0 60px 28px 0; color: var(--muted); max-width: 46em; }

/* ---------- Docs list ---------- */
.docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.doc { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 20px; background: #fbf9f4; box-shadow: inset 0 0 0 1px var(--hair); }
.doc svg { flex: none; width: 22px; height: 22px; color: var(--rust); margin-top: 2px; }
.doc b { display: block; font-weight: 500; }
.doc span { color: var(--muted); font-size: 14px; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; }
.cta-card .core { position: relative; padding: clamp(40px, 7vw, 96px); display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: end; overflow: hidden; }
.cta-card .core::before { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(176, 96, 58, 0.35), transparent); pointer-events: none; }
.cta h2 { color: #f4efe6; position: relative; }
.cta-side { position: relative; color: var(--muted-on-ink); font-size: 15px; }
.cta-side .btn-row { margin-top: 22px; }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  padding: 15px 16px; border-radius: 16px; border: 0;
  background: #fff; box-shadow: inset 0 0 0 1px var(--hair), 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: box-shadow 0.4s var(--ease);
  appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235d6670' stroke-width='1.3'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--rust), 0 0 0 5px rgba(176, 96, 58, 0.1); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { position: relative; cursor: pointer; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 14px; color: var(--text); }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.checks span { display: inline-block; padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); transition: background 0.4s var(--ease), color 0.4s var(--ease); }
.checks input:checked + span { background: var(--ink); color: #fff; }
.checks input:focus-visible + span { outline: 2px solid var(--rust); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); margin: 18px 0 0; }
.form-status { margin-top: 14px; font-size: 14px; color: var(--rust); min-height: 1.4em; }

.contact-cards { display: grid; gap: 12px; }
.c-card { padding: 22px 24px; border-radius: 22px; background: #fbf9f4; box-shadow: inset 0 0 0 1px var(--hair); }
.c-card span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.c-card b { font-weight: 500; font-size: 17px; }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.6rem; margin: 2.2em 0 0.6em; }
.prose p, .prose li { color: #3a434c; }
.prose ul { padding-left: 1.2em; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c9cfd4; padding: clamp(72px, 9vw, 112px) 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { color: #f4efe6; }
.footer h4 { margin: 0 0 16px; font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-on-ink); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.footer a:hover { color: #fff; }
.foot-note { margin-top: 20px; font-size: 14px; color: var(--muted-on-ink); max-width: 26em; }
.foot-big { font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 11vw, 10rem); line-height: 0.9; letter-spacing: -0.04em; color: rgba(244, 239, 230, 0.06); margin: 72px 0 28px; white-space: nowrap; overflow: hidden; }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--hair-ink); font-size: 12.5px; color: var(--muted-on-ink); }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(44px); filter: blur(8px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .chart-line { stroke-dashoffset: 0; } .bar i { transform: scaleX(var(--w, 0.5)); } .spark i { transform: none; } .ring .val { stroke-dashoffset: var(--off, 20); } .chart-fill { opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav .btn { display: none; }
  .channel { grid-column: span 6; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .creds ul { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-inner, .sec-head, .split, .split--contact, .cta-card .core { grid-template-columns: 1fr; }
  .hero-dash { justify-self: start; }
  .b-8, .b-4, .b-5, .b-7, .b-6 { grid-column: span 12; }
  .sticky { position: static; }
  .mosaic { grid-auto-rows: 90px; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .nav { top: 12px; padding-left: 14px; }
  .brand-sub { display: none; }
  .hero-inner { padding-top: 120px; }
  .hero-media::after { background: linear-gradient(0deg, rgba(14, 22, 31, 0.97) 20%, rgba(14, 22, 31, 0.55) 100%); }
  .channel, .steps { grid-column: span 12; }
  .channel .core { min-height: 0; }
  .channel h3 { padding-top: 32px; }
  .steps { grid-template-columns: 1fr; }
  .step .core { min-height: 0; }
  .step h3 { padding-top: 28px; }
  .creds ul { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .m-a { grid-column: 1 / -1; grid-row: span 2; }
  .m-b, .m-c, .m-d, .m-e { grid-column: span 1; grid-row: span 1; }
  .form-grid, .docs { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .kpi b { font-size: 16px; }
  .std-list li { grid-template-columns: 1fr; }
  .std-list h3, .std-list p { grid-column: 1; }
  .faq .ans { padding-right: 0; }
  .facts th, .facts td { display: block; width: 100%; }
  .facts th { border-top: 1px solid var(--hair); padding-bottom: 4px; }
  .facts td { border-top: 0; padding-top: 0; }
  .facts tr:last-child th { border-bottom: 0; }
}
