/* ==========================================================================
   Assanonza — site stylesheet
   One file, no framework. Sections:
   1. Fonts  2. Tokens  3. Base  4. Layout  5. Type  6. Header/Nav
   7. Footer  8. Components  9. Page-specific  10. Utilities  11. Print
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@font-face { font-family: "Cinzel"; font-style: normal; font-display: swap; font-weight: 400 900; src: url(/assets/fonts/cinzel-wght.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-display: swap; font-weight: 400 800; src: url(/assets/fonts/ebgaramond-wght.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-display: swap; font-weight: 400 800; src: url(/assets/fonts/ebgaramond-wght-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-style: normal; font-display: swap; font-weight: 500; src: url(/assets/fonts/cormorant-500.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-style: normal; font-display: swap; font-weight: 600 800; src: url(/assets/fonts/cormorant-600.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-style: italic; font-display: swap; font-weight: 500 700; src: url(/assets/fonts/cormorant-500-italic.woff2) format("woff2"); }

/* 2. Tokens --------------------------------------------------------------- */
:root,
[data-theme="night"],
.night {
  --paper: #0b0d17;
  --paper-2: #121528;
  --ink: #0b0d17;
  --ink-2: #c9c0a8;
  --muted: #8d8770;
  --rule: rgba(214, 178, 102, 0.18);
  --gold: #d6b266;
  --gold-hi: #f1d79a;
  --gold-lo: #9a7436;
  --accent: #e2bd6f;
  --accent-ink: #14110a;
  --focus: #f1d79a;

  --bg: #0b0d17;
  --fg: #ece4cf;
  --fg-2: #c9c0a8;
  --fg-muted: #8d8770;
  --line: rgba(214, 178, 102, 0.18);
  --panel: rgba(20, 24, 46, 0.72);

  --sans: "EB Garamond", Georgia, "Times New Roman", serif;
  --display: "Cormorant", "EB Garamond", Georgia, serif;
  --caps: "Cinzel", "EB Garamond", Georgia, serif;
  --mono: "Cinzel", Georgia, serif;

  --gutter: clamp(18px, 4vw, 56px);
  --max: 1240px;
  --header-h: 68px;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 144px;

  --section: clamp(64px, 9vw, 128px);
}

/* 3. Base ----------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-stretch: 100%;
  font-kerning: normal;
  font-feature-settings: "ss01" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
.night { background: var(--bg); color: var(--fg); }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
::selection { background: var(--accent); color: #fff; }

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

.skip {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  text-decoration: none;
}
.skip:focus { top: 8px; color: var(--paper); }

/* 4. Layout --------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.section + .section:not(.section--ruled) { padding-top: 0; }
.section--ruled { border-top: 1px solid var(--line); }

/* Two-column editorial split: label/heading left, content right. */
.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s-5);
  row-gap: var(--s-6);
}
.split__aside { grid-column: 1 / span 4; }
.split__main { grid-column: 5 / -1; }
.split__aside--sticky { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }

@media (max-width: 900px) {
  .split__aside, .split__main { grid-column: 1 / -1; }
  .split__aside--sticky { position: static; }
}

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7) var(--s-6); }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-7) var(--s-6); }
@media (max-width: 900px) {
  .cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
}

/* 5. Type ----------------------------------------------------------------- */
.display {
  font-size: clamp(48px, 9.6vw, 156px);
  line-height: 0.9;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h1 {
  font-size: clamp(40px, 6.4vw, 104px);
  line-height: 0.95;
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(30px, 3.8vw, 56px);
  line-height: 1.02;
  font-weight: 750;
  font-stretch: 106%;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(21px, 1.8vw, 26px);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.h4 {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 650;
}
.lede {
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.42;
  color: var(--fg-2);
  max-width: 34em;
  text-wrap: pretty;
}
.prose { max-width: 40em; color: var(--fg-2); }
.prose p { text-wrap: pretty; }
.prose h2 { font-size: 24px; color: var(--fg); margin: 2em 0 0.5em; letter-spacing: -0.01em; }
.prose h3 { font-size: 18px; color: var(--fg); margin: 1.6em 0 0.4em; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.35em; }

.label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--fg);
}
.meta {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
}
.muted { color: var(--fg-muted); }
.accent { color: var(--accent); }
.nowrap { white-space: nowrap; }

/* 6. Header / Nav --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
.wordmark {
  font-weight: 800;
  font-stretch: 125%;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.wordmark:hover { color: var(--fg); }

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
}
.site-nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding-block: 6px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--fg); border-bottom-color: currentColor; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.site-nav__cta a {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--fg);
  line-height: 1;
}
.site-nav__cta a:hover,
.site-nav__cta a[aria-current="page"] {
  background: var(--fg);
  color: var(--bg);
  border-bottom-color: var(--fg);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--fg);
  padding: 8px 12px;
  line-height: 1;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-block; position: relative; z-index: 2; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--bg);
    padding: var(--s-6) var(--gutter);
    display: none;
    overflow-y: auto;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a {
    display: block;
    font-size: 32px;
    font-weight: 750;
    font-stretch: 108%;
    letter-spacing: -0.02em;
    padding: 14px 0;
    border: 0;
  }
  .site-nav a[aria-current="page"] { color: var(--accent); }
  .site-nav__cta { border-bottom: 0 !important; margin-top: var(--s-6); }
  .site-nav__cta a {
    font-size: 18px;
    padding: 18px;
    text-align: center;
    background: var(--fg);
    color: var(--bg);
  }
  body.nav-open { overflow: hidden; }
}

/* 7. Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #ebe7de;
  --fg-muted: #8f8a7f;
  --line: #34322d;
  padding-top: clamp(64px, 9vw, 128px);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #ef5a36; }
.site-footer__ask { font-size: 17px; color: var(--fg-muted); margin-bottom: 8px; }
.site-footer__mail {
  display: inline-block;
  font-size: clamp(22px, 6.6vw, 96px);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.035em;
  line-height: 1;
  overflow-wrap: anywhere;
  border-bottom: 2px solid currentColor;
  padding-bottom: 6px;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  margin-top: clamp(64px, 8vw, 112px);
  padding-block: var(--s-6);
  border-top: 1px solid var(--line);
}
.site-footer__h {
  font-size: 13px;
  font-weight: 500;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }
.site-footer__cols p { margin: 0; color: #cbc6bb; }
.site-footer__base {
  display: flex;
  gap: var(--s-5);
  align-items: center;
  border-top: 1px solid var(--line);
  padding-block: 20px 28px;
  font-size: 14px;
  color: var(--fg-muted);
}
.site-footer__top { margin-left: auto; }
@media (max-width: 640px) {
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  .site-footer__cols > div:last-child { grid-column: 1 / -1; }
}

/* 8. Components ----------------------------------------------------------- */

/* Buttons — square, no shadows, no gradients. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: transparent; color: var(--fg); }
.btn--ghost:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow::after { content: " →"; }

/* Page hero */
.hero {
  padding-top: clamp(48px, 9vw, 136px);
  padding-bottom: clamp(48px, 7vw, 104px);
}
.hero__title { max-width: 14ch; }
.hero__foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s-5);
  row-gap: var(--s-6);
  margin-top: clamp(40px, 6vw, 88px);
  align-items: end;
}
.hero__foot .lede { grid-column: 1 / span 6; margin: 0; }
.hero__foot .btn-row { grid-column: 9 / -1; justify-content: flex-end; }
@media (max-width: 900px) {
  .hero__foot .lede, .hero__foot .btn-row { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Discipline index — big ruled rows */
.index { list-style: none; border-top: 1px solid var(--line); }
.index__row { border-bottom: 1px solid var(--line); }
.index__link {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s-5);
  row-gap: var(--s-4);
  padding-block: clamp(28px, 3.6vw, 52px);
  text-decoration: none;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease, padding 0.2s ease;
}
.index__name {
  grid-column: 1 / span 5;
  font-size: clamp(40px, 6vw, 92px);
  line-height: 0.92;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.035em;
}
.index__text { grid-column: 6 / span 4; margin: 0; color: var(--fg-2); max-width: 30em; }
.index__list {
  grid-column: 10 / -1;
  list-style: none;
  font-size: 15px;
  color: var(--fg-2);
}
.index__list li { padding: 2px 0; }
.index__go {
  position: absolute;
  right: 0;
  top: clamp(28px, 3.6vw, 52px);
  font-size: 28px;
  line-height: 1;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) {
  .index__link:hover {
    background: var(--fg);
    color: var(--bg);
    padding-inline: var(--s-5);
    margin-inline: calc(var(--s-5) * -1);
  }
  .index__link:hover .index__text,
  .index__link:hover .index__list { color: inherit; opacity: 0.85; }
  .index__link:hover .index__name { color: var(--accent); }
  .index__link:hover .index__go { opacity: 1; transform: none; right: var(--s-5); }
}
@media (max-width: 1000px) {
  .index__name { grid-column: 1 / -1; }
  .index__text { grid-column: 1 / span 7; }
  .index__list { grid-column: 9 / -1; }
}
@media (max-width: 640px) {
  .index__text, .index__list { grid-column: 1 / -1; }
  .index__list { display: flex; flex-wrap: wrap; gap: 4px 16px; }
}

/* Spec sheet: label / value rows (production-slate style) */
.spec { margin: 0; border-top: 1px solid var(--line); }
.spec__row {
  display: grid;
  grid-template-columns: minmax(120px, 0.38fr) 1fr;
  gap: var(--s-4);
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.spec dt {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-top: 3px;
}
.spec dd { margin: 0; }

/* Process steps */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr));
  border-top: 1px solid var(--fg);
}
.step {
  padding: var(--s-5) var(--s-5) 0 0;
  border-right: 1px solid var(--line);
  margin-right: var(--s-5);
}
.step:last-child { border-right: 0; margin-right: 0; }
.step__when { display: block; margin-bottom: var(--s-6); }
.step__title { margin-bottom: var(--s-3); }
.step p { color: var(--fg-2); font-size: 16px; margin: 0; }
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: var(--s-7); }
  .step:nth-child(2n) { border-right: 0; margin-right: 0; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; row-gap: 0; border-top: 0; }
  .step {
    border-right: 0;
    margin-right: 0;
    border-top: 1px solid var(--line);
    padding: var(--s-5) 0;
  }
  .step:first-child { border-top-color: var(--fg); }
  .step__when { margin-bottom: var(--s-3); }
}

/* Ruled list of items with short descriptions (used for services) */
.items { list-style: none; border-top: 1px solid var(--line); }
.item {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s-5);
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.item__title { margin: 0; }
.item p { margin: 0; color: var(--fg-2); }
.item p + p { margin-top: 0.6em; }
@media (max-width: 640px) {
  .item { grid-template-columns: 1fr; gap: var(--s-2); }
}

/* Check list — plain ticks, no icon fonts */
.ticks { list-style: none; columns: 2; column-gap: var(--s-6); }
.ticks li {
  break-inside: avoid;
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 18px;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
@media (max-width: 640px) { .ticks { columns: 1; } }

/* Tags — plain text separated by thin rules, not pills */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0; }
.tags li { padding: 2px 12px; border-left: 1px solid var(--line); }
.tags li:first-child { padding-left: 0; border-left: 0; }

/* Statement block */
.statement {
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.08;
  font-weight: 700;
  font-stretch: 104%;
  letter-spacing: -0.022em;
  text-wrap: balance;
  max-width: 22ch;
}
.statement em { font-style: normal; color: var(--accent); }

/* Principles — numbered by content, not decoration */
.principle { border-top: 1px solid var(--fg); padding-top: var(--s-4); }
.principle h3 { margin-bottom: var(--s-3); }
.principle p { color: var(--fg-2); margin: 0; }

/* Big call to action band */
.cta {
  border-top: 1px solid var(--line);
  padding-block: clamp(64px, 9vw, 128px);
}
.cta__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-6) var(--s-5);
  align-items: end;
}
.cta__title { grid-column: 1 / span 8; }
.cta__side { grid-column: 9 / -1; }
.cta__side p { color: var(--fg-2); }
@media (max-width: 900px) {
  .cta__title, .cta__side { grid-column: 1 / -1; }
}

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: var(--s-5);
  padding-block: 20px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 26px;
  line-height: 0.9;
  flex: none;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq__a { padding: 0 0 24px; max-width: 44em; color: var(--fg-2); }
.faq__a p:last-child { margin: 0; }

/* Pricing tiers — a ruled table, not cards */
.tiers { border-top: 1px solid var(--fg); }
.tier {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) minmax(0, 5fr) minmax(0, 2fr);
  gap: var(--s-5);
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.tier__name { margin-bottom: 6px; }
.tier__for { margin: 0; font-size: 15px; color: var(--fg-muted); }
.tier__price {
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}
.tier__price small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: 0;
  color: var(--fg-muted);
  margin-bottom: 6px;
}
.tier__price .tier__unit { display: block; margin-top: 6px; font-size: 15px; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--fg-muted); }
.tier__inc { list-style: none; font-size: 15.5px; color: var(--fg-2); }
.tier__inc li { padding: 3px 0 3px 18px; position: relative; }
.tier__inc li::before { content: "–"; position: absolute; left: 0; color: var(--fg-muted); }
.tier__meta { font-size: 14px; color: var(--fg-muted); }
.tier__meta strong { display: block; color: var(--fg); font-weight: 600; }
.tier__meta a { display: inline-block; margin-top: 14px; }
.tier--featured { position: relative; }
.tier--featured::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 64px;
  height: 3px;
  background: var(--accent);
}
@media (max-width: 1000px) {
  .tier { grid-template-columns: 1fr 1fr; }
  .tier__inc { grid-column: 1 / -1; columns: 2; column-gap: var(--s-6); }
  .tier__meta { grid-column: 1 / -1; display: flex; gap: var(--s-5); align-items: baseline; flex-wrap: wrap; }
  .tier__meta strong { display: inline; }
  .tier__meta a { margin-top: 0; margin-left: auto; }
}
@media (max-width: 640px) {
  .tier { grid-template-columns: 1fr; gap: var(--s-4); }
  .tier__inc { columns: 1; }
  .tier__meta a { margin-left: 0; }
}

/* Jump links (in-page tabs) */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.jump a {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.jump a:hover { border-color: var(--fg); color: var(--fg); }

/* Note box */
.note {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  color: var(--fg-2);
  max-width: 44em;
}

/* Film frame — 2.39:1 letterbox with title-card typography */
.frame {
  position: relative;
  aspect-ratio: 2.39 / 1;
  background: #0b0b0a;
  color: #ebe7de;
  overflow: hidden;
  border: 1px solid var(--line);
}
.frame__grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: screen;
  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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.frame__light {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 78% 40%, rgba(239, 90, 54, 0.30), transparent 60%),
    radial-gradient(40% 70% at 20% 85%, rgba(235, 231, 222, 0.06), transparent 70%);
}
.frame__title {
  position: absolute;
  left: 6%;
  bottom: 14%;
  font-size: clamp(26px, 5.4vw, 88px);
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-transform: uppercase;
}
.frame__corner {
  position: absolute;
  font-family: var(--mono);
  font-size: clamp(9px, 0.9vw, 12px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(235, 231, 222, 0.62);
}
.frame__corner--tl { left: 2.4%; top: 6%; }
.frame__corner--tr { right: 2.4%; top: 6%; text-align: right; }
.frame__corner--br { right: 2.4%; bottom: 6%; text-align: right; }
.frame__safe {
  position: absolute;
  inset: 15% 6% 12%;
  border: 1px dashed rgba(235, 231, 222, 0.14);
  pointer-events: none;
}
.frame__caption { margin-top: 10px; display: flex; justify-content: space-between; gap: 16px; }

/* Forms */
.form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: 8px; }
.field__label { font-size: 15px; font-weight: 600; }
.field__label .muted { font-weight: 400; }
.field__hint { font-size: 14px; color: var(--fg-muted); margin: 0; }
.input,
.select,
.textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--fg-muted);
  border-radius: 0;
  padding: 10px 0 12px;
  font-size: 19px;
  line-height: 1.3;
  appearance: none;
}
.textarea { min-height: 168px; resize: vertical; border: 1px solid var(--fg-muted); padding: 12px 14px; font-size: 17px; line-height: 1.5; }
.select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 14px) 52%, calc(100% - 8px) 52%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
  cursor: pointer;
}
.input:focus,
.select:focus,
.textarea:focus { outline: none; border-color: var(--fg); box-shadow: 0 1px 0 0 var(--fg); }
.textarea:focus { box-shadow: inset 0 0 0 1px var(--fg); }
.input:user-invalid,
.textarea:user-invalid { border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

.choice { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice legend { font-size: 15px; font-weight: 600; padding: 0; margin-bottom: 10px; }
.choice__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.choice__opt { position: relative; }
.choice__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choice__opt span {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--fg-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  user-select: none;
}
.choice__opt input:hover + span { border-color: var(--fg); }
.choice__opt input:checked + span { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.choice__opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form__status { min-height: 1.5em; margin: 0; font-weight: 500; }
.form__status[data-state="error"] { color: var(--accent); }
.form__status[data-state="ok"] { color: #2f6b3a; }
.form__fine { font-size: 14px; color: var(--fg-muted); margin: 0; }

/* 9. Page-specific -------------------------------------------------------- */

/* Home: slate */
.slate { margin-top: clamp(40px, 6vw, 80px); }
.home-hero .display { max-width: 11ch; }
.home-hero .display .accent { font-stretch: 112%; }

/* Service page hero meta line */
.kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: var(--s-6);
  font-size: 15px;
  color: var(--fg-muted);
}
.kicker a { color: var(--fg-muted); text-decoration: none; }
.kicker a:hover { color: var(--accent); }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-7) var(--s-5);
}
.contact-grid__info { grid-column: 1 / span 4; }
.contact-grid__form { grid-column: 6 / -1; }
@media (max-width: 900px) {
  .contact-grid__info, .contact-grid__form { grid-column: 1 / -1; }
}
.contact-mail {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  overflow-wrap: anywhere;
}

/* 404 */
.lost { min-height: 62vh; display: flex; align-items: center; }

/* 10. Utilities ----------------------------------------------------------- */
.mt-0 { margin-top: 0 !important; }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mt-8 { margin-top: var(--s-8); }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }
.mb-7 { margin-bottom: var(--s-7); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 11. Print --------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .menu-toggle, .cta { display: none; }
  body { background: #fff; color: #000; }
}

/* Night pages: separate the footer from the page */
[data-theme="night"] .site-footer { background: #0b0b0a; border-top: 1px solid #34322d; }
.frame__pre {
  display: block;
  font-family: var(--mono);
  font-size: clamp(9px, 1vw, 14px);
  font-weight: 400;
  letter-spacing: 0.24em;
  margin-bottom: 0.9em;
  color: rgba(235, 231, 222, 0.7);
}
.tier__price { margin: 0; }
.tier__meta a { color: var(--fg); }
.tier__meta a:hover { color: var(--accent); }

/* ==========================================================================
   12. Fantasy theme layer: dark indigo, gilded details, painted imagery.
   Sits on top of the base rules above; edit here first.
   ========================================================================== */

body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.62;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(64, 76, 150, 0.22), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(214, 178, 102, 0.06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
::selection { background: var(--gold); color: #14110a; }
a:hover { color: var(--gold-hi); }

/* Type: smaller, calmer, set in book faces */
.display {
  font-family: var(--display);
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 1.02;
  font-weight: 600;
  font-stretch: normal;
  letter-spacing: -0.005em;
}
.h1 {
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.05;
  font-weight: 600;
  font-stretch: normal;
  letter-spacing: 0;
}
.h2 {
  font-family: var(--display);
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.12;
  font-weight: 600;
  font-stretch: normal;
  letter-spacing: 0;
}
.h3 {
  font-family: var(--display);
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: var(--fg);
}
.h4 { font-family: var(--display); font-size: 19px; font-weight: 700; }
.lede { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.55; color: var(--fg-2); }
.prose h2, .prose h3 { font-family: var(--display); font-weight: 700; }
.prose h2 { font-size: 26px; }
.accent { color: var(--gold); font-style: italic; }

.label,
.meta,
.kicker,
.spec dt,
.site-footer__h,
.step__when,
.frame__corner,
.frame__pre {
  font-family: var(--caps);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.label { color: var(--gold); }
.meta { color: var(--fg-muted); }

/* Ornamental rule before section labels */
.label::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin-right: 12px;
  vertical-align: middle;
  background: linear-gradient(90deg, transparent, var(--gold));
}

/* Header */
.site-header {
  background: rgba(9, 11, 21, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--caps);
  font-size: 17px;
  font-weight: 700;
  font-stretch: normal;
  letter-spacing: 0.26em;
  color: var(--gold-hi);
}
.wordmark:hover { color: var(--gold-hi); }
.site-nav a {
  font-family: var(--caps);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.site-nav a:hover { color: var(--gold-hi); border-bottom-color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--gold-hi); border-bottom-color: var(--gold); }
.site-nav__cta a {
  padding: 10px 18px;
  border: 1px solid var(--gold);
  color: var(--gold-hi);
  background: linear-gradient(180deg, rgba(214, 178, 102, 0.10), rgba(214, 178, 102, 0.02));
}
.site-nav__cta a:hover,
.site-nav__cta a[aria-current="page"] {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  color: #14110a;
  border-color: var(--gold);
}
.menu-toggle {
  font-family: var(--caps);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  border-color: var(--gold);
  color: var(--gold-hi);
}
@media (max-width: 860px) {
  .site-nav { background: rgba(9, 11, 21, 0.97); }
  .site-nav a {
    font-family: var(--display);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--fg);
  }
  .site-nav__cta a {
    font-family: var(--caps);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
    color: #14110a;
  }
}

/* Buttons: gilded */
.btn {
  position: relative;
  padding: 15px 26px;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 48%, var(--gold-lo) 100%);
  color: #17130a;
  font-family: var(--caps);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 0 0 3px rgba(11, 13, 23, 1), 0 0 0 4px rgba(214, 178, 102, 0.35), 0 10px 30px -10px rgba(214, 178, 102, 0.55);
  transition: box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.btn:hover {
  background: linear-gradient(180deg, #fff0c4 0%, var(--gold-hi) 45%, var(--gold) 100%);
  border-color: var(--gold-hi);
  color: #17130a;
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(11, 13, 23, 1), 0 0 0 4px rgba(241, 215, 154, 0.7), 0 14px 40px -8px rgba(241, 215, 154, 0.6);
}
.btn--ghost {
  background: rgba(11, 13, 23, 0.35);
  color: var(--gold-hi);
  box-shadow: inset 0 0 0 1px rgba(214, 178, 102, 0.15);
}
.btn--ghost:hover {
  background: rgba(214, 178, 102, 0.12);
  color: #fff0c4;
  border-color: var(--gold-hi);
  box-shadow: inset 0 0 0 1px rgba(214, 178, 102, 0.3), 0 0 28px -6px rgba(214, 178, 102, 0.45);
}
.link-arrow { color: var(--gold-hi); border-bottom-color: rgba(214, 178, 102, 0.5); }
.jump a, .choice__opt span {
  font-family: var(--caps);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-color: var(--line);
  background: rgba(20, 24, 46, 0.5);
}
.jump a:hover, .choice__opt input:hover + span { border-color: var(--gold); color: var(--gold-hi); }
.choice__opt input:checked + span { background: var(--gold); border-color: var(--gold); color: #14110a; }

/* Painted hero (home) */
.home-hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: flex-end;
  padding-top: clamp(120px, 18vh, 220px);
  isolation: isolate;
  overflow: hidden;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url(/assets/img/hero.webp) center 40% / cover no-repeat;
  transform: scale(1.04);
  animation: drift 40s ease-in-out infinite alternate;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 11, 21, 0.92) 0%, rgba(9, 11, 21, 0.55) 45%, rgba(9, 11, 21, 0.15) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 13, 23, 0) 45%);
}
@keyframes drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
.home-hero .wrap { width: 100%; }
.home-hero .display { max-width: 13ch; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6); }
.home-hero .lede { color: #ddd3ba; }
.hero__eyebrow { display: block; margin-bottom: var(--s-5); }

/* Discipline index: painted cards */
.index { border-top: 0; display: grid; gap: var(--s-5); }
.index__row { border-bottom: 0; }
.index__link {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas:
    "img name"
    "img text"
    "img list";
  align-content: start;
  column-gap: clamp(20px, 3vw, 44px);
  row-gap: var(--s-3);
  padding: clamp(14px, 1.6vw, 20px);
  background: linear-gradient(180deg, rgba(24, 28, 54, 0.75), rgba(14, 16, 32, 0.75));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(241, 215, 154, 0.06);
}
.index__img {
  grid-area: img;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(214, 178, 102, 0.25);
  filter: saturate(0.95) brightness(0.92);
  transition: filter 0.4s ease;
}
.index__name {
  grid-area: name;
  grid-column: auto;
  align-self: end;
  font-family: var(--display);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
  font-weight: 600;
  font-stretch: normal;
  letter-spacing: 0;
  padding-top: var(--s-3);
}
.index__text { grid-area: text; grid-column: auto; max-width: 36em; }
.index__list {
  grid-area: list;
  grid-column: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-family: var(--caps);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.index__list li::before { content: "\2726  "; color: var(--gold-lo); }
.index__go { color: var(--gold-hi); top: 24px; font-size: 22px; }
@media (hover: hover) {
  .index__link:hover {
    background: linear-gradient(180deg, rgba(34, 38, 72, 0.85), rgba(18, 20, 40, 0.85));
    color: var(--fg);
    padding-inline: clamp(14px, 1.6vw, 20px);
    margin-inline: 0;
    border-color: rgba(214, 178, 102, 0.5);
    box-shadow: 0 20px 60px -30px rgba(214, 178, 102, 0.45), inset 0 1px 0 rgba(241, 215, 154, 0.12);
  }
  .index__link:hover .index__name { color: var(--gold-hi); }
  .index__link:hover .index__img { filter: saturate(1.1) brightness(1.05); }
  .index__link:hover .index__go { right: 22px; }
}
@media (max-width: 760px) {
  .index__link { grid-template-columns: 1fr; grid-template-areas: "img" "name" "text" "list"; }
}

/* Statement, principles, steps, spec */
.statement {
  font-family: var(--display);
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.18;
  font-weight: 500;
  font-stretch: normal;
  letter-spacing: 0;
  max-width: 26ch;
}
.statement em { font-style: italic; color: var(--gold-hi); }
.steps { border-top: 1px solid var(--gold-lo); }
.step { border-right-color: var(--line); }
.step__when { color: var(--gold); }
.principle {
  border-top: 0;
  padding: var(--s-5);
  background: var(--panel);
  border: 1px solid var(--line);
}
.principle h3::before { content: "\2726"; color: var(--gold); font-size: 0.7em; margin-right: 10px; vertical-align: 0.15em; }
.spec { border-top-color: var(--line); }
.spec dt { color: var(--gold); padding-top: 5px; }
.ticks li::before { border-color: var(--gold); }
.note { border-left-color: var(--gold); }
.tier--featured::before { background: linear-gradient(90deg, var(--gold-hi), var(--gold-lo)); }
.tier__price { font-family: var(--display); font-weight: 700; font-stretch: normal; letter-spacing: 0; color: var(--gold-hi); }
.tiers { border-top-color: var(--gold-lo); }
.faq summary { font-family: var(--display); font-size: 21px; font-weight: 600; }
.faq summary::after { color: var(--gold); }
.faq summary:hover { color: var(--gold-hi); }

/* Interior page heroes get a faint painted glow */
.hero:not(.home-hero) {
  background:
    radial-gradient(700px 360px at 80% 0%, rgba(214, 178, 102, 0.10), transparent 70%),
    radial-gradient(900px 500px at 10% 0%, rgba(70, 84, 170, 0.18), transparent 70%);
}

/* Call to action: portal */
.cta {
  position: relative;
  border-top: 1px solid var(--line);
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(96px, 13vw, 180px);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url(/assets/img/portal.webp) center / cover no-repeat;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 11, 21, 0.9) 0%, rgba(9, 11, 21, 0.45) 55%, rgba(9, 11, 21, 0.75) 100%),
    linear-gradient(180deg, var(--bg) 0%, transparent 25%, transparent 75%, rgba(6, 7, 14, 1) 100%);
}
.cta__title { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.7); }
.cta__side p { color: #ddd3ba; }

/* Forms on dark */
.input, .select, .textarea { border-color: rgba(214, 178, 102, 0.35); color: var(--fg); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); box-shadow: 0 1px 0 0 var(--gold); }
.textarea { background: rgba(20, 24, 46, 0.45); }
.textarea:focus { box-shadow: inset 0 0 0 1px var(--gold); }
.select option { background: #121528; }
.form__status[data-state="ok"] { color: #9fd3a0; }
.contact-mail { font-family: var(--display); font-weight: 600; color: var(--gold-hi); }

/* Footer */
.site-footer {
  background: #06070e;
  color: var(--fg);
  --fg-muted: #8d8770;
  --line: rgba(214, 178, 102, 0.16);
  border-top: 1px solid var(--line);
}
.site-footer a:hover { color: var(--gold-hi); }
.site-footer__mail {
  font-family: var(--display);
  font-size: clamp(26px, 3.6vw, 48px);
  font-weight: 600;
  font-stretch: normal;
  letter-spacing: 0;
  color: var(--gold-hi);
  border-bottom: 1px solid rgba(214, 178, 102, 0.5);
}
.site-footer__h { color: var(--gold); }
.site-footer__cols p { color: var(--fg-2); }
[data-theme="night"] .site-footer { background: #06070e; border-top: 1px solid var(--line); }

/* Film frame keeps its look, retitled in the display face */
.frame { border-color: var(--line); }
.frame__title { font-family: var(--display); font-weight: 600; font-stretch: normal; letter-spacing: 0.02em; }
.frame__light {
  background:
    radial-gradient(60% 90% at 78% 40%, rgba(214, 178, 102, 0.28), transparent 60%),
    radial-gradient(40% 70% at 20% 85%, rgba(90, 104, 200, 0.12), transparent 70%);
}

.skip { background: var(--gold); color: #14110a; }
.skip:focus { color: #14110a; }

/* ==========================================================================
   13. Motion, painted page heroes, mobile polish
   ========================================================================== */

/* Page transitions (cross-document View Transitions; ignored where unsupported) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.35s cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes vt-out { to { opacity: 0; filter: blur(6px); transform: scale(0.985); } }
@keyframes vt-in { from { opacity: 0; filter: blur(8px); transform: scale(1.015); } }
.site-header { view-transition-name: site-header; }

/* Reveal on scroll */
.motion .reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  filter: blur(4px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms);
}
.motion .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* Header shrinks after scrolling */
.site-header__inner { transition: height 0.3s ease; }
.site-header { transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.site-header.is-scrolled { background: rgba(7, 8, 16, 0.88); box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.9); }
.site-header.is-scrolled .site-header__inner { height: 56px; }

/* Gold underline that grows on nav hover */
@media (min-width: 861px) {
  .site-nav li:not(.site-nav__cta) a { position: relative; border-bottom: 0; }
  .site-nav li:not(.site-nav__cta) a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-hi), transparent);
    transform: scaleX(0);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .site-nav li:not(.site-nav__cta) a:hover::after,
  .site-nav li:not(.site-nav__cta) a[aria-current="page"]::after { transform: scaleX(1); }
}

/* Button shine sweep */
.btn { overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  opacity: 0;
}
.btn:hover::after { animation: shine 0.9s ease; }
@keyframes shine { 0% { left: -60%; opacity: 1; } 100% { left: 130%; opacity: 0; } }

/* Painted interior heroes: <section class="hero hero--art" style="--art:url(...)"> */
.hero--art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(74vh, 720px);
  display: flex;
  align-items: flex-end;
  padding-top: clamp(140px, 22vh, 240px);
  background: none !important;
}
.hero--art > .wrap { width: 100%; }
.hero--art::before,
.home-hero::before {
  translate: 0 var(--py, 0px);
  will-change: transform;
}
.hero--art::before {
  content: "";
  position: absolute;
  inset: -40px 0;
  z-index: -2;
  background: var(--art) var(--art-pos, center 45%) / cover no-repeat;
  animation: drift 40s ease-in-out infinite alternate;
}
.hero--art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 11, 21, 0.94) 0%, rgba(9, 11, 21, 0.62) 46%, rgba(9, 11, 21, 0.2) 80%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 13, 23, 0) 50%);
}
.hero--art .h1 { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.65); }
.hero--art .lede { color: #ddd3ba; }
.hero--art .kicker { color: var(--gold); }
.hero--art.lost { min-height: 86vh; }
.cta::before { translate: 0 var(--py, 0px); inset: -40px 0; }

/* Embers */
.embers {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.embers span {
  position: absolute;
  left: var(--x);
  bottom: -10px;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, #fff3cf 0%, #f1d79a 40%, rgba(214, 178, 102, 0) 70%);
  box-shadow: 0 0 10px 2px rgba(241, 215, 154, 0.45);
  opacity: 0;
  animation: ember var(--t) linear var(--dl) infinite;
}
@keyframes ember {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: 0.9; }
  60% { opacity: 0.6; }
  100% { transform: translate3d(var(--sw), -95vh, 0); opacity: 0; }
}

/* Painted cards: slow zoom on hover */
.index__link { overflow: hidden; }
.index__img { transform-origin: 50% 60%; transition: filter 0.5s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) {
  .index__link:hover .index__img { transform: scale(1.045); }
}
.index__link { transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) { .index__link:hover { transform: translateY(-3px); } }

/* Frame on the film page gets a slow lantern flicker */
.frame__light { animation: flicker 6s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 45% { opacity: 0.82; } 52% { opacity: 0.95; } 70% { opacity: 0.86; } }

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .site-nav { inset: var(--header-h) 0 0 0; }
  .site-header.is-scrolled .site-header__inner { height: var(--header-h); }
  .site-nav.is-open li { animation: menu-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .site-nav.is-open li:nth-child(2) { animation-delay: 40ms; }
  .site-nav.is-open li:nth-child(3) { animation-delay: 80ms; }
  .site-nav.is-open li:nth-child(4) { animation-delay: 120ms; }
  .site-nav.is-open li:nth-child(5) { animation-delay: 160ms; }
  .site-nav.is-open li:nth-child(6) { animation-delay: 200ms; }
}
@keyframes menu-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .wordmark { font-size: 15px; letter-spacing: 0.22em; }

  .home-hero,
  .hero--art {
    min-height: 0;
    padding-top: clamp(200px, 46vh, 360px);
    padding-bottom: 40px;
  }
  .home-hero::before { background-position: 62% 30%; }
  .hero--art::before { background-position: var(--art-pos-m, 65% 40%); }
  .home-hero::after,
  .hero--art::after {
    background: linear-gradient(0deg, var(--bg) 0%, rgba(9, 11, 21, 0.86) 42%, rgba(9, 11, 21, 0.25) 75%, rgba(9, 11, 21, 0.35) 100%);
  }
  .home-hero .display { max-width: none; }
  .hero__foot { margin-top: 28px; }
  .hero__foot .btn-row { width: 100%; }
  .hero__foot .btn-row .btn { flex: 1 1 100%; justify-content: center; }
  .btn { padding: 16px 20px; }

  .index__link { padding: 12px; row-gap: 10px; }
  .index__name { padding-top: 6px; }
  .index__go { display: none; }

  .principle { padding: 18px; }
  .cta { padding-block: 88px; }
  .cta::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(9, 11, 21, 0.7) 30%, rgba(9, 11, 21, 0.8) 70%, rgba(6, 7, 14, 1) 100%); }
  .cta .btn { width: 100%; justify-content: center; }

  .site-footer__mail { font-size: 26px; }
  .spec__row { grid-template-columns: 1fr; gap: 2px; }
  .tier__price { font-size: 30px; }
}

/* Tap targets and no hover-only affordances on touch */
@media (hover: none) {
  .index__img { filter: none; }
  .btn::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero::before, .hero--art::before, .frame__light { animation: none; }
  .embers { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

.home-hero > .wrap, .hero--art > .wrap, .cta > .wrap { position: relative; z-index: 1; }

.hero--art.hero--short { min-height: min(54vh, 520px); }
@media (max-width: 760px) { .hero--art.hero--short { padding-top: clamp(160px, 34vh, 260px); } }
.hero--art .hero__title { max-width: 20ch; }

/* Mobile menu: backdrop-filter and view-transition-name would trap the fixed menu inside the header */
@media (max-width: 860px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(9, 11, 21, 0.96); view-transition-name: none; }
}
@media (max-width: 860px) { .site-nav { background: #090b15; } }

/* Contact: the idea form */
.contact-grid__form { grid-column: 1 / span 7; }
.contact-grid__info { grid-column: 9 / -1; }
@media (max-width: 900px) { .contact-grid__form, .contact-grid__info { grid-column: 1 / -1; } }
.scroll-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.form--idea { gap: 28px; }
.field__label--big {
  font-family: var(--display);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 600;
  color: var(--gold-hi);
}
.textarea--idea {
  min-height: 240px;
  font-size: 19px;
  line-height: 1.6;
  padding: 18px 20px;
  background: rgba(14, 17, 34, 0.7);
  border: 1px solid rgba(214, 178, 102, 0.35);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.textarea--idea:focus { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 40px -12px rgba(214, 178, 102, 0.5); }
.textarea::placeholder, .input::placeholder { color: #6f6a58; font-style: italic; }
.field__label { font-family: var(--caps); font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-2); }
.field__label--big { font-family: var(--display); letter-spacing: 0; text-transform: none; }
.choice legend { font-family: var(--caps); font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-2); }
.more { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.more summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-family: var(--caps);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; display: inline-block; width: 18px; transition: transform 0.3s ease; }
.more[open] summary::before { transform: rotate(45deg); }
.more__body { display: grid; gap: 24px; padding-bottom: 24px; }
.form__send { align-items: center; gap: 20px; }
.form__status[data-state="busy"] { color: var(--gold); }
@media (max-width: 760px) {
  .form__send .btn { width: 100%; justify-content: center; }
  .scroll-card { position: static; }
  .textarea--idea { min-height: 200px; font-size: 17px; }
}

/* ==========================================================================
   14. Gallery: crossfading slideshow
   ========================================================================== */
.gallery-section { padding-block: clamp(40px, 6vw, 88px); }
.gallery-section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.gallery-section__head .h2 { max-width: 24ch; margin-top: 10px; }
.gallery {
  position: relative;
  border: 1px solid rgba(214, 178, 102, 0.28);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(11, 13, 23, 1), 0 0 0 7px rgba(214, 178, 102, 0.14);
  background: #06070e;
  outline: none;
}
.gallery:focus-visible { box-shadow: 0 0 0 2px var(--focus); }
.gallery__viewport { position: relative; aspect-ratio: 21 / 9; overflow: hidden; }
.gallery__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 0s linear 1.2s;
}
.gallery__slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.2s ease, visibility 0s; z-index: 1; }
.gallery__slide:first-child { opacity: 1; visibility: visible; }
.gallery.is-ready .gallery__slide:first-child:not(.is-active) { opacity: 0; visibility: hidden; }
.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 9s ease-out;
}
.gallery__slide.is-active img { transform: scale(1); }
.gallery__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 7, 14, 0.92) 0%, rgba(6, 7, 14, 0.35) 38%, rgba(6, 7, 14, 0) 62%);
  pointer-events: none;
}
.gallery__slide figcaption {
  position: absolute;
  left: clamp(18px, 3vw, 40px);
  right: clamp(18px, 3vw, 40px);
  bottom: clamp(60px, 6vw, 80px);
  z-index: 2;
  display: grid;
  gap: 8px;
  max-width: 46ch;
}
.gallery__slide figcaption .label::before { display: none; }
.gallery__title {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--fg);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}
.gallery__text { color: #d6ccb2; font-size: 16px; margin: 0; }
.gallery__slide.is-active figcaption > * { animation: cap-in 1s cubic-bezier(0.16, 1, 0.3, 1) both; }
.gallery__slide.is-active figcaption > *:nth-child(2) { animation-delay: 0.12s; }
.gallery__slide.is-active figcaption > *:nth-child(3) { animation-delay: 0.24s; }
@keyframes cap-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } }

.gallery__ui {
  position: absolute;
  left: clamp(18px, 3vw, 40px);
  right: clamp(18px, 3vw, 40px);
  bottom: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
}
.gallery__dots { display: flex; gap: 6px; margin-right: auto; }
.gallery__dot { width: 28px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.gallery__dot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(236, 228, 207, 0.3);
  transition: background 0.3s ease;
}
.gallery__dot[aria-current="true"]::before { background: var(--gold-hi); }
.gallery__count { font-family: var(--caps); font-size: 11px; letter-spacing: 0.18em; color: var(--fg-2); }
.gallery__btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 178, 102, 0.45);
  background: rgba(9, 11, 21, 0.55);
  color: var(--gold-hi);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.gallery__btn:hover { background: var(--gold); color: #14110a; border-color: var(--gold); }
.gallery__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 3; background: rgba(214, 178, 102, 0.12); }
.gallery__progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); transform: scaleX(0); transform-origin: left; }
@media (max-width: 760px) {
  .gallery__viewport { aspect-ratio: 4 / 5; }
  .gallery__slide figcaption { bottom: 68px; }
  .gallery__text { font-size: 15px; }
  .gallery__btn { width: 44px; height: 44px; }
  .gallery__count { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery__slide, .gallery__slide img { transition: none; }
  .gallery__slide img { transform: none; }
}
