/* ==========================================================================
   Icarus Agency â€” main stylesheet (all pages)
   1. Fonts   2. Tokens   3. Base   4. Layout   5. Components   6. Home
   7. Sections   8. FAQ   9. Pricing & contact   10. Decorative canvases
   11. Motion   12. Responsive
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens --------------------------------------------------------------- */

:root {
  /* Brand palette */
  --bg: oklch(14% 0.03 55);
  --surface: oklch(18% 0.03 55);
  --border: oklch(28% 0.04 55);
  --gold: oklch(72% 0.09 75);
  --gold-glow: oklch(82% 0.12 80);
  --text-primary: oklch(94% 0.02 80);
  --text-muted: oklch(65% 0.03 75);

  /* Derived tints */
  --bg-deep: oklch(11% 0.025 55);
  --surface-raised: oklch(20.5% 0.032 55);
  --gold-deep: oklch(60% 0.09 70);
  --gold-soft: oklch(72% 0.09 75 / 0.08);
  --gold-line: oklch(72% 0.09 75 / 0.38);
  --gradient-gold: linear-gradient(135deg, var(--gold-glow) 0%, var(--gold) 55%, var(--gold-deep) 100%);

  /* Typography */
  --font-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* 8px spacing rhythm */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-16: 128px;

  /* Layout */
  --max-width: 1200px;
  --gutter: clamp(var(--space-3), 5vw, var(--space-5));
  --header-h: 80px;
  --radius: 4px;
  --section-space: clamp(var(--space-10), 10vw, var(--space-16));

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

/* 3. Base ----------------------------------------------------------------- */

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

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-2));
  scrollbar-color: var(--border) var(--bg-deep);
}

html:has(.mobile-menu:popover-open) {
  overflow: hidden;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.625;
  color: var(--text-primary);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Film grain for depth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.04;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

ul,
ol {
  list-style: none;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--gold);
  color: var(--bg-deep);
}

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

.skip-link {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 200;
  padding: var(--space-1) var(--space-2);
  background: var(--gold);
  color: var(--bg-deep);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.text-italic-gold {
  font-style: italic;
  color: var(--gold);
}

/* 4. Layout --------------------------------------------------------------- */

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

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  z-index: 1;
  padding-block: var(--section-space);
}

.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100% - 2 * var(--gutter), var(--max-width));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

.section--first {
  padding-top: clamp(var(--space-8), 8vw, var(--space-12));
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(var(--space-5), 5vw, var(--space-8));
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.label::before {
  content: "";
  width: var(--space-4);
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-size: clamp(2.25rem, 1.5rem + 2.8vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.section-title--page {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  line-height: 1.04;
}

.section-lead {
  max-width: 42rem;
  margin-top: var(--space-3);
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.section-note {
  margin-top: var(--space-5);
  font-style: italic;
  text-align: center;
  color: var(--text-muted);
}

/* 5. Components ----------------------------------------------------------- */

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: 56px;
  padding: 0 var(--space-4);
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 2px;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.btn--primary {
  color: var(--bg-deep);
  background: var(--gradient-gold);
  box-shadow: 0 12px 32px -12px oklch(72% 0.09 75 / 0.6), inset 0 1px 0 oklch(100% 0 0 / 0.28);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, oklch(100% 0 0 / 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px -16px oklch(72% 0.09 75 / 0.75), inset 0 1px 0 oklch(100% 0 0 / 0.28);
}

.btn--primary:hover::after {
  transform: translateX(120%);
}

.btn--ghost {
  color: var(--text-primary);
  border-color: var(--border);
  background: oklch(100% 0 0 / 0.02);
}

.btn--ghost:hover {
  color: var(--gold-glow);
  border-color: var(--gold);
  background: var(--gold-soft);
}

.btn--outline {
  color: var(--gold);
  border-color: var(--gold);
}

.btn--outline:hover {
  color: var(--bg-deep);
  background: var(--gold);
}

.btn--sm {
  min-height: 40px;
  padding: 0 var(--space-3);
  font-size: 0.6875rem;
}

.btn--lg {
  min-height: 64px;
  padding: 0 var(--space-6);
  font-size: 0.8125rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
  color: var(--gold-glow);
  border-color: var(--gold-glow);
}

.icon {
  width: 18px;
  height: 18px;
}

/* Cursor-following glow on cards (position set by main.js) */
[data-glow] {
  isolation: isolate;
}

[data-glow]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), oklch(72% 0.09 75 / 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

[data-glow]:hover::before {
  opacity: 1;
}

/* Cards: one surface for every card on the site */
.info-card,
.service-card,
.persona-card,
.fit-card,
.sample-card,
.contact-card,
.status-card,
.question {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.info-card,
.service-card,
.persona-card {
  transition:
    transform 0.5s var(--ease),
    border-color 0.3s ease,
    box-shadow 0.5s var(--ease);
}

.info-card:hover,
.service-card:hover,
.persona-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-line);
  box-shadow: 0 32px 64px -32px oklch(0% 0 0 / 0.7);
}

.card-index {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--gold);
}

.card-grid {
  display: grid;
  gap: var(--space-3);
}

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

.info-card,
.persona-card {
  padding: var(--space-4);
}

.info-card .card-index,
.persona-card .card-index {
  display: block;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.info-card__title,
.persona-card__name {
  margin-bottom: var(--space-2);
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.2;
}

.info-card__text,
.persona-card__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.persona-card__details {
  display: grid;
  gap: var(--space-2);
}

.persona-card__details dt {
  margin-bottom: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.persona-card__details dd {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Gold pill price badge */
.price-badge {
  padding: 4px var(--space-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-glow);
  white-space: nowrap;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: var(--gold-soft);
}

/* Diamond bullet lists */
.diamond-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-1) var(--space-3);
}

.diamond-list--single {
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.diamond-list li,
.dash-list li {
  position: relative;
  padding-left: var(--space-3);
  font-size: 0.9375rem;
}

.diamond-list li::before {
  content: "â—†";
  position: absolute;
  left: 0;
  top: 0.3em;
  font-size: 0.625em;
  line-height: 1.6;
  color: var(--gold);
}

.dash-list {
  display: grid;
  gap: var(--space-2);
}

.dash-list li {
  color: var(--text-muted);
}

.dash-list li::before {
  content: "â€”";
  position: absolute;
  left: 0;
  color: var(--border);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

/* Home: floats transparently over the 3D canvas */
.site-header--overlay {
  position: fixed;
  inset: 0 0 auto;
  background: linear-gradient(180deg, oklch(14% 0.03 55 / 0.75), transparent);
  border-bottom-color: transparent;
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-3);
  height: 100%;
}

.site-header__cta {
  justify-self: end;
}

.brand {
  display: inline-flex;
  justify-self: start;
}

.brand__logo {
  width: auto;
  height: 48px;
}

.site-nav__list {
  display: flex;
  gap: var(--space-5);
}

.site-nav__link {
  position: relative;
  padding-block: var(--space-1);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  color: var(--text-primary);
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  position: relative;
  justify-self: end;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 2px;
}

.menu-toggle__bar {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--gold);
}

.menu-toggle__bar:first-child {
  top: 19px;
}

.menu-toggle__bar:last-child {
  top: 27px;
  left: 20px;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0 var(--gutter) var(--space-6);
  flex-direction: column;
  color: var(--text-primary);
  border: 0;
  background:
    radial-gradient(ellipse at 50% 0%, oklch(72% 0.09 75 / 0.16), transparent 60%),
    var(--bg-deep);
}

.mobile-menu:popover-open,
.mobile-menu.is-open {
  display: flex;
}

.mobile-menu.is-open {
  z-index: 150;
}

.mobile-menu::backdrop {
  background: transparent;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.menu-close {
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 2px;
}

.menu-close::before,
.menu-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--gold);
  transform: rotate(45deg);
}

.menu-close::after {
  transform: rotate(-45deg);
}

.mobile-menu nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-6);
}

.mobile-menu__list {
  display: grid;
  gap: var(--space-1);
}

.mobile-menu__link {
  display: block;
  padding-block: var(--space-1);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 3.25rem);
  line-height: 1.1;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s ease, padding 0.4s var(--ease);
}

.mobile-menu__link:hover,
.mobile-menu__link[aria-current="page"] {
  color: var(--gold);
  padding-left: var(--space-1);
}

/* Footer */
.site-footer {
  padding-block: var(--space-5);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-3);
}

.brand--footer .brand__logo {
  height: 40px;
  opacity: 0.9;
}

.site-footer__copy {
  font-size: 0.8125rem;
  text-align: center;
  color: var(--text-muted);
}

.site-footer__tagline {
  justify-self: end;
  font-size: 0.875rem;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

/* 6. Home ----------------------------------------------------------------- */

/* Fixed WebGL stage behind the content; opacity is driven by the 3D sequence */
.stage-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 40%, oklch(6% 0.02 40 / 0.92) 100%);
}

.stage-canvas.is-visible {
  opacity: 1;
}

/* End of the sequence: the scene fades into the page background and freezes */
.stage-canvas.is-done {
  opacity: 0;
  transition-duration: 0.9s;
}

html[data-fx="mobile"] .stage-canvas.is-visible {
  opacity: 0.6;
}

html[data-fx="off"] .stage-canvas,
html[data-fx="off"] .vignette {
  display: none;
}

/* Full experience: the section copy floats on fixed layers above the scene and moves in depth
   (sequence.js); the acts below only provide scroll distance */
.sequence--staged .act:not(.act--final) {
  min-height: 120vh;
  padding: 0;
}

.sequence--staged .act.act--hero {
  min-height: 100vh;
}

.sequence--staged .act:not(.act--final) [data-act-content] {
  position: fixed;
  top: calc(50% + var(--header-h) / 2);
  right: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  will-change: transform, opacity;
}

.sequence--staged .act:not(.act--final) [data-act-content].is-active {
  pointer-events: auto;
}

.sequence--staged .act--final [data-act-content] {
  will-change: transform, opacity;
}

/* Section snapping animates the scroll itself; CSS smooth scrolling would fight it */
html.has-snap {
  scroll-behavior: auto;
}

/* Full experience: the last act holds the call to action on screen while the feather falls */
html[data-fx="full"] .act--final {
  display: block;
  min-height: 200vh;
  padding: 0;
}

html[data-fx="full"] .act--final .final-cta {
  position: sticky;
  top: 0;
  display: grid;
  align-content: center;
  min-height: 100vh;
  padding-block: var(--header-h) var(--space-8);
}

.act {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 100vh;
  padding-block: calc(var(--header-h) + var(--space-4)) var(--space-10);
}

/* Copy stays legible where it crosses the lit wing. A tight shadow only: wide blurs are costly
   to rasterise on the scaled, animated copy layers and make the scroll stutter. */
.has-3d .act :is(h1, h2, h3, p) {
  text-shadow: 0 1px 3px oklch(10% 0.03 55 / 0.9);
}

.act--hero {
  place-items: center;
  text-align: center;
  overflow-x: clip;
}

.hero__glow {
  position: absolute;
  top: 45%;
  left: 50%;
  z-index: -1;
  width: min(1100px, 150vw);
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, oklch(72% 0.09 75 / 0.18) 0%, oklch(72% 0.09 75 / 0.05) 40%, transparent 70%);
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: "";
  width: var(--space-5);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.hero__eyebrow::after {
  transform: scaleX(-1);
}

.hero__title {
  font-size: clamp(3rem, 1.6rem + 5vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.hero__title-italic {
  font-style: italic;
  color: var(--gold);
}

.hero__lead {
  max-width: 40rem;
  margin: var(--space-4) auto var(--space-5);
  font-size: 1.125rem;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  width: 1px;
  height: var(--space-8);
  overflow: hidden;
  background: var(--border);
  transform: translateX(-50%);
}

.hero__scroll span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--gold));
  transform: translateY(-100%);
}

.act--final {
  text-align: center;
}

.final-cta {
  display: grid;
  justify-items: center;
}

.final-cta__title {
  max-width: 16ch;
  margin-inline: auto;
  font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.final-cta__text {
  max-width: 36rem;
  margin: var(--space-3) auto var(--space-5);
  font-size: 1.125rem;
  color: var(--text-muted);
}

.label--center {
  justify-content: center;
}

.label--center::after {
  content: "";
  width: var(--space-4);
  height: 1px;
  background: var(--gold);
}

.final-cta__contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-8);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.final-cta__contact {
  display: grid;
  gap: var(--space-1);
}

.final-cta__contact dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.final-cta__contact dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-1) var(--space-2);
  font-size: 1.125rem;
  color: var(--text-primary);
}

.final-cta__contact a {
  border-bottom: 1px solid var(--gold-line);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.final-cta__contact a:hover {
  color: var(--gold-glow);
  border-color: var(--gold-glow);
}

.final-cta__apps {
  display: inline-flex;
  gap: var(--space-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* 02 — "Not sure which service fits?" */
.help-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: oklch(18% 0.03 55 / 0.85);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
}

.help-prompt__title {
  font-size: 1.625rem;
  line-height: 1.2;
}

.help-prompt__text {
  margin-top: var(--space-1);
  color: var(--text-muted);
}

/* 04 — Sample works teaser */
.teaser .section-head {
  max-width: 34rem;
}

.teaser .section-title {
  font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4.25rem);
}

/* 05 — Workflow timeline: dots on a line, horizontal on wide screens */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.timeline::before {
  content: "";
  position: absolute;
  top: 7px;
  right: 12.5%;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-line) 70%, transparent);
}

.timeline__step {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--space-1);
  padding-top: var(--space-5);
}

.timeline__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  background: var(--bg);
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px oklch(14% 0.03 55 / 0.9), 0 0 0 5px oklch(72% 0.09 75 / 0.25), 0 0 6px 5px oklch(72% 0.09 75 / 0.2);
}

.timeline__dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--gold);
  border-radius: 50%;
}

.timeline__index {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--gold);
}

.timeline__name {
  font-size: 1.875rem;
  line-height: 1.15;
}

.timeline__text {
  max-width: 22ch;
  color: var(--text-muted);
}

/* Sample works page */
.status-card {
  max-width: 720px;
  padding: clamp(var(--space-4), 4vw, var(--space-6));
}

.status-card__badge {
  display: inline-flex;
  margin-bottom: var(--space-3);
  padding: 6px var(--space-2);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
}

.status-card__title {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  line-height: 1.15;
}

.status-card__text {
  margin-top: var(--space-2);
  color: var(--text-muted);
}

.status-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  margin-top: var(--space-5);
}

.status-card__actions .text-link {
  margin-top: 0;
}

/* 7. Sections ------------------------------------------------------------- */

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
}

.service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.service-card__name {
  margin: var(--space-3) 0 var(--space-1);
  font-size: 2.25rem;
}

.service-card__text {
  color: var(--text-muted);
}

.service-card .diamond-list {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.service-card--full .service-card__text,
.service-card--pricing .service-card__text {
  margin-bottom: var(--space-3);
}

.service-card--tile {
  padding: var(--space-4);
}

.service-card__amount {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 2rem + 2.4vw, 3.75rem);
  font-weight: 500;
  line-height: 1;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.service-card__from {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
}

/* Problem questions */
.question-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.question {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  transition: border-color 0.3s ease;
}

.question:hover {
  border-color: var(--gold-line);
}

/* Payoff statement */
.payoff__statement {
  max-width: 900px;
  padding-left: clamp(var(--space-3), 3vw, var(--space-5));
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.125rem);
  font-weight: 500;
  line-height: 1.22;
  border-left: 1px solid var(--gold);
}

.payoff__line {
  display: block;
}

.payoff__line:last-child {
  font-style: italic;
  color: var(--gold);
}

/* Who it's for: fit lists */
.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.fit-card {
  padding: var(--space-5);
}

.fit-card--yes {
  border-color: var(--gold-line);
}

.fit-card--no {
  background: transparent;
}

.fit-card__title {
  margin-bottom: var(--space-3);
  font-size: 1.75rem;
}

.fit-card--no .fit-card__title {
  color: var(--text-muted);
}

/* Sample project */
.sample-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--space-6);
  align-items: center;
  padding: clamp(var(--space-4), 5vw, var(--space-8));
}

.sample-card__tag {
  display: inline-block;
  margin-bottom: var(--space-2);
  padding: 4px var(--space-2);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
}

.sample-card__title {
  margin-bottom: var(--space-2);
  font-size: clamp(2.25rem, 1.7rem + 1.6vw, 3rem);
}

.sample-card__text {
  color: var(--text-muted);
}

.sample-card__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-1);
}

.sample-card__features li {
  position: relative;
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-5);
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.sample-card__features li::before {
  content: "â—†";
  position: absolute;
  top: 50%;
  left: var(--space-2);
  font-size: 0.625em;
  color: var(--gold);
  transform: translateY(-50%);
}

.sample-card__note {
  grid-column: 1 / -1;
  padding-top: var(--space-3);
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* Deliverables: ledger grid */
.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.deliverable {
  padding: var(--space-4);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: background-color 0.3s ease;
}

.deliverable:hover {
  background: var(--surface);
}

.deliverable__title {
  margin: var(--space-2) 0 var(--space-1);
  font-size: 1.5rem;
  font-weight: 600;
}

.deliverable__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Timeline */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.timeline::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--border) 70%, transparent);
}

.timeline__step {
  position: relative;
  padding-top: var(--space-5);
}

.timeline__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--bg);
}

.timeline__dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.timeline__index {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.timeline__title {
  margin: var(--space-1) 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.timeline__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* 404 */
.not-found {
  display: grid;
  align-items: center;
  min-height: 70vh;
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

/* 8. FAQ ------------------------------------------------------------------ */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(var(--space-5), 6vw, var(--space-12));
  align-items: start;
}

.faq__intro {
  position: sticky;
  top: calc(var(--header-h) + var(--space-5));
  margin-bottom: 0;
}

.accordion {
  display: grid;
  gap: var(--space-1);
}

.accordion__item {
  border: 1px solid transparent;
  border-bottom-color: var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.accordion__item.is-open {
  border-color: var(--gold);
  background: var(--surface);
}

.accordion__heading {
  font: inherit;
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3) var(--space-2);
  text-align: left;
}

.accordion__question {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.accordion__trigger:hover .accordion__question,
.accordion__item.is-open .accordion__question {
  color: var(--gold);
}

/* + / âˆ’ drawn with two strokes; the vertical one collapses when open */
.accordion__icon {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--gold);
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.accordion__icon::after {
  transform: translateY(-50%) rotate(90deg);
}

.accordion__item.is-open .accordion__icon::after {
  transform: translateY(-50%) rotate(0deg);
}

.accordion__answer {
  max-width: 60ch;
  padding: 0 var(--space-2) var(--space-3);
  color: var(--text-muted);
}

/* Collapsed only when JavaScript can open the panels */
.js .accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* 9. Pricing & contact ---------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
  transition: border-color 0.2s ease;
}

.contact-card:hover {
  border-color: var(--gold);
}

.contact-card__label {
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.contact-card__value {
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.contact-card__arrow {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  color: var(--gold);
  transition: transform 0.3s var(--ease);
}

.contact-card:hover .contact-card__arrow {
  transform: translate(3px, -3px);
}

/* 10. Decorative canvases (services, FAQ, pricing) ------------------------- */

.deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.deco__canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.deco__canvas.is-ready {
  opacity: 1;
}

.deco--services,
.deco--work {
  top: var(--space-3);
  right: var(--space-3);
  width: 400px;
  height: 400px;
}

.deco--faq {
  top: var(--space-3);
  left: -72px;
  width: 200px;
  height: 600px;
}

/* Pinned to the right edge above the content, mostly off-screen so it only overlaps card padding */
.deco--pricing {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 2;
  width: 320px;
  height: 480px;
  transform: translate(40%, -50%);
}

html[data-fx="off"] .deco,
html[data-fx="mobile"] .deco {
  display: none;
}

/* 11. Motion -------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .hero__eyebrow,
  .hero__title,
  .hero__lead,
  .hero__actions {
    animation: rise 1.1s var(--ease) both;
  }

  .hero__title {
    animation-delay: 0.12s;
  }

  .hero__lead {
    animation-delay: 0.26s;
  }

  .hero__actions {
    animation-delay: 0.4s;
  }

  .hero__scroll span {
    animation: scroll-line 2.4s var(--ease) infinite;
  }

  /* Scroll reveal; the .js-reveal class is added by main.js */
  .js-reveal [data-reveal] {
    opacity: 0;
  }

  .js-reveal [data-reveal].is-visible {
    animation: rise 0.9s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 80ms);
  }

  .mobile-menu:popover-open {
    animation: menu-in 0.45s var(--ease) both;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .stage-canvas,
  .vignette,
  .deco {
    display: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 24px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes scroll-line {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100%);
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    translate: 0 -12px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* 12. Responsive ---------------------------------------------------------- */

@media (max-width: 1100px) {
  .site-nav__list {
    gap: var(--space-3);
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--space-6);
  }

  .timeline::before {
    display: none;
  }

  .sample-card {
    grid-template-columns: 1fr;
  }

  .deco--services,
  .deco--work {
    width: 280px;
    height: 280px;
    opacity: 0.6;
  }

  .deco--pricing {
    width: 220px;
    height: 330px;
    opacity: 0.5;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 72px;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .site-nav,
  .site-header__cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .brand__logo {
    height: 40px;
  }

  .card-grid--3,
  .fit-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .faq {
    grid-template-columns: 1fr;
  }

  .faq__intro {
    position: static;
  }

  .deco--faq,
  .deco--pricing {
    display: none;
  }

  .deco--services,
  .deco--work {
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    opacity: 0.45;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-footer__copy {
    text-align: left;
  }

  .site-footer__tagline {
    justify-self: start;
  }
}

@media (max-width: 768px) {
  .service-grid,
  .question-list {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .timeline::before {
    top: 0;
    bottom: var(--space-4);
    left: 7px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--gold), var(--gold-line) 70%, transparent);
  }

  .timeline__step {
    padding-top: 0;
    padding-left: var(--space-5);
  }

  .help-prompt {
    padding: var(--space-4);
  }

  .final-cta__contacts {
    flex-direction: column;
    gap: var(--space-3);
  }

  /* Phones: the home acts become a normal page */
  .act {
    min-height: auto;
    padding-block: var(--space-10);
  }

  .act--hero {
    min-height: 92svh;
    padding-top: calc(var(--header-h) + var(--space-6));
  }

  .service-card {
    padding: var(--space-4);
  }
}

@media (max-width: 640px) {
  .hero__eyebrow {
    gap: var(--space-1);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
  }

  .hero__eyebrow::before,
  .hero__eyebrow::after {
    width: var(--space-2);
  }

  .hero__actions .btn,
  .act--final .btn {
    width: 100%;
  }

  .deliverable-grid,
  .sample-card__features,
  .diamond-list {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .timeline::before {
    display: block;
    top: 0;
    bottom: 0;
    left: 7px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--gold), var(--border) 70%, transparent);
  }

  .timeline__step {
    padding-top: 0;
    padding-left: var(--space-5);
  }

  .timeline__dot {
    top: 4px;
  }
}
