/* graphite3d.com — shared site styles.
   Edit here to update look-and-feel across every page.
   Loaded by: index.html, features.html, usecases/index.html, contact-us/index.html. */

:root {
  --bg: #303030;
  --bg-elevated: #3a3a3a;
  --bg-deep: #1f1f1f;
  --text: #fff;
  --text-muted: #b0b0b0;
  --text-dim: #888;
  --accent: #ffc942;
  --accent-soft: rgba(255,201,66,0.08);
  --border: rgba(255,255,255,0.06);
  --border-subtle: rgba(255,255,255,0.04);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Page background is the lighter --bg, footer is --bg-deep. When the page is
   shorter than the viewport, the area BELOW the body extends visually — make
   that area match the footer color by giving html the deep tone, so short
   pages never reveal a lighter stripe under the footer. */
html { background: var(--bg-deep); }
body {
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(48, 48, 48, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: background 0.25s ease;
}
/* Drop shadow lives on a pseudo-element so it isn't clipped by the
   backdrop-filter that's on the header itself. */
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -32px;
  height: 32px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(48, 48, 48, 0.92);
}
.site-header.is-scrolled::after {
  opacity: 1;
}
.site-header__inner {
  max-width: 1180px; margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; gap: 32px;
}
.site-header__brand { display: flex; align-items: center; gap: 10px; }
/* Wordmark scales with viewport. clamp keeps it readable at the narrowest
   mobile width while leaving room between the logo and the Features link.
   The Features→Download spacing is fixed by .site-header__nav ul { gap }
   (28px desktop, 18px mobile), so as long as the logo width stays well
   below (viewport − features-text-width − download-button-width − nav-gap),
   the rule "space(logo→features) > space(features→download)" holds. */
.site-header__brand { flex: 0 1 auto; min-width: 0; }
.site-header__brand img {
  /* min and vw bumped 15% for mobile; desktop max unchanged.
     21px floor (was 18), 5.2vw mid (was 4.5), 31px ceiling. */
  height: clamp(21px, 5.2vw, 31px);
  width: auto;
  max-width: 100%;
  display: block;
}
.site-header__nav { margin-left: auto; }
.site-header__nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 28px;
}
.site-header__nav a {
  color: var(--text-muted); font-size: 14px;
  font-weight: 400; letter-spacing: 0.01em;
  padding: 8px 0; transition: color 0.15s;
}
.site-header__nav a:hover,
.site-header__nav a.is-current { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block; padding: 11px 22px 9px;
  border-radius: 6px; font-size: 14px;
  font-weight: 500; letter-spacing: 0.01em;
  transition: all 0.2s;
  cursor: pointer; border: none;
  font-family: inherit;
}
.btn--primary { background: var(--accent); color: #000; }
.btn--primary:hover { background: #ffd86b; }

/* Header CTA: drop the word "Free" on narrow viewports so the button reads
   just "Download" — keeps the chrome tight on phones. Hero buttons keep the
   full "Free Download" label since they have room. */
@media (max-width: 720px) {
  .site-header__cta .free-word { display: none; }
  .site-header__nav .nav-item--pricing { display: none; }
}
.btn--ghost {
  background: transparent; color: var(--accent);
  border: 1px solid rgba(255,201,66,0.3);
  padding: 9px 21px;
}
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent); }

/* App Store badge */
.app-store-badge {
  display: inline-block;
  line-height: 0;
  transition: transform 0.15s, opacity 0.15s;
}
.app-store-badge img {
  height: 40px;
  width: auto;
  display: block;
}
.app-store-badge:hover { transform: translateY(-1px); opacity: 0.9; }
.app-store-badge:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

/* Footer CTAs (App Store badge + Beta button group) */
.site-footer__ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.site-footer .app-store-badge img { height: 40px; }

/* Hero (shared across pages) */
.hero {
  padding: 56px 0 64px;
  background: var(--bg);
}
.hero--tall { padding: 72px 0 80px; }

/* Hero with video plays clear at top, text below */
.hero__video-frame {
  max-width: 1180px;
  margin: 0 auto 56px;
  padding: 0 32px;
}
.hero__video {
  width: 100%;
  aspect-ratio: 2/1;
  object-fit: cover;
  border-radius: 14px;
  background: #000;
  display: block;
  box-shadow: 0 12px 40px rgba(0,0,0,0.28), 0 0 0 1px var(--border);
}

/* Hero with static image (use cases hero etc.) — kept as background-style */
.hero--with-image-bg {
  position: relative;
  overflow: hidden;
}
.hero__image {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0.18;
  filter: saturate(0.5) brightness(0.9);
  z-index: 0;
  pointer-events: none;
}
.hero--with-image-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.4) 0%, var(--bg) 100%);
  z-index: 1;
}
.hero--with-image-bg .hero__inner { position: relative; z-index: 2; }

/* Hero text block — sits below the video, centered narrow column */
.hero__inner { text-align: left; }
.hero--centered .hero__inner { text-align: center; }
.hero--centered .hero__tagline { margin-left: auto; margin-right: auto; }
.hero--centered .hero__ctas { justify-content: center; }
.hero__tag {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px; font-weight: 500;
}
.hero h1 {
  font-size: 48px; font-weight: 300; line-height: 1.15;
  letter-spacing: -0.02em; margin: 0 0 18px; color: var(--text);
}
.hero--tall h1 { font-size: 56px; max-width: 720px; }
.hero__tagline {
  font-size: 18px; font-weight: 300;
  color: var(--text-dim); margin: 0;
  max-width: 560px; line-height: 1.55;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* Section labels (small uppercase yellow) */
.label {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 14px;
}

/* Reel section (videos in cards) */
.reel { padding: 80px 0; border-bottom: 1px solid var(--border-subtle); }
.reel__heading {
  font-size: 32px; font-weight: 300; color: var(--text);
  margin: 0 0 48px; letter-spacing: -0.01em;
}
.reel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.reel__item {
  margin: 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.28), 0 0 0 1px var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.reel__item:hover { border-color: rgba(255,201,66,0.18); }
.reel__item video {
  width: 100%; height: auto; aspect-ratio: 2/1;
  object-fit: cover; display: block; background: #000;
}
.reel__item figcaption { padding: 18px 20px 22px; }
.reel__caption-label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 8px;
}
.reel__item figcaption p {
  font-size: 13px; line-height: 1.55;
  color: var(--text-dim); margin: 0;
}

/* Verticals (home grid + use-case index) */
.verticals { padding: 100px 0; border-bottom: 1px solid var(--border-subtle); }
.verticals > .wrap > .label { text-align: center; }
.verticals h2 {
  font-size: 32px; font-weight: 300; color: var(--text);
  margin: 0 0 48px; letter-spacing: -0.01em;
  text-align: center;
}
.verticals__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.vcard {
  display: block; padding: 28px 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: inherit;
  box-shadow: 0 12px 40px rgba(0,0,0,0.28), 0 0 0 1px var(--border);
  transition: all 0.2s;
  position: relative;
}
.vcard:hover {
  border-color: rgba(255,201,66,0.25);
  background: rgba(255,201,66,0.02);
  transform: translateY(-1px);
}
.vcard__icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,201,66,0.12);
}
.vcard__icon img {
  width: 64px; height: 64px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s, filter 0.25s;
}
.vcard:hover .vcard__icon {
  border-color: rgba(255,201,66,0.4);
}
.vcard:hover .vcard__icon img {
  transform: scale(1.04);
  filter: brightness(1.15);
}
.vcard__title {
  font-size: 16px; font-weight: 500; color: var(--text);
  margin: 0 0 8px; letter-spacing: -0.005em;
}
.vcard__desc {
  font-size: 13px; line-height: 1.55;
  color: var(--text-dim); margin: 0;
}
.verticals__cta,
.reel__cta { text-align: center; margin-top: 48px; }
.verticals__cta a,
.reel__cta a,
.related-verticals__back a,
.vert-back {
  display: inline-block; font-size: 14px;
  color: var(--accent); font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255,201,66,0.3);
  padding-bottom: 3px;
  transition: border-color 0.2s;
}
.verticals__cta a:hover,
.reel__cta a:hover,
.related-verticals__back a:hover,
.vert-back:hover { border-color: var(--accent); }

/* Features grid */
.features { padding: 80px 0; }
.features__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.feature {
  padding: 30px 26px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.28), 0 0 0 1px var(--border);
  transition: all 0.2s;
}
.feature:hover {
  border-color: rgba(255,201,66,0.18);
  background: rgba(255,201,66,0.02);
}
/* Per-feature detail page (/features/<slug>/) */
.feature-detail { padding: 40px 0 80px; }
.feature-detail__image {
  margin: 0 auto 40px;
  border-radius: 14px;
  overflow: hidden;
  background: #1e1e1e;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.28), 0 0 0 1px var(--border);
  max-width: 720px;
}
.feature-detail__image img {
  display: block;
  width: 100%;
  height: auto;
}
.feature-detail__body p {
  font-size: 18px; font-weight: 300;
  line-height: 1.65; color: var(--text-muted);
  margin: 0 auto 36px;
  max-width: 640px;
}
.feature-detail__cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center;
  margin-top: 36px;
}
.related-features { padding: 60px 0 100px; }
.related-features .label { text-align: center; margin-bottom: 28px; }
.feature--related {
  text-decoration: none;
  color: inherit;
  display: block;
}
.feature--related:hover { border-color: rgba(255,201,66,0.18); }

.feature__image {
  margin: -30px -26px 22px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: #0a0a14;
}
.feature__image img {
  display: block;
  width: 100%;
  height: auto;
}
.feature__label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 12px;
}
.feature h2 {
  font-size: 19px; font-weight: 500; color: var(--text);
  margin: 0 0 12px; letter-spacing: -0.005em;
}
.feature p {
  font-size: 14px; line-height: 1.65;
  color: var(--text-dim); margin: 0;
}
.features__patent-note {
  margin: 48px 0 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-style: italic;
}

/* Contact section */
.contact { padding: 16px 0 80px; border-bottom: 1px solid var(--border-subtle); }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 56px;
}
.contact-card {
  padding: 30px 26px 22px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: left;
  transition: all 0.2s;
}
.contact-card:hover { border-color: rgba(255,201,66,0.18); }
.contact-card__label {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 14px;
}
.contact-card__value {
  font-size: 18px; color: var(--text); font-weight: 400;
  margin: 0 0 8px; letter-spacing: -0.005em;
  word-break: break-word;
}
.contact-card__value a { color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 2px; transition: all 0.15s; }
.contact-card__value a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.contact-card__note { font-size: 13px; color: var(--text-dim); line-height: 1.55; margin: 0; }

/* Contact form */
.contact-form {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 36px 10px;
}
.contact-form h2 {
  font-size: 22px; font-weight: 400; color: var(--text);
  margin: 0 0 28px; letter-spacing: -0.005em;
}
.contact-form > p {
  font-size: 14px; color: var(--text-dim); margin: 0 0 24px;
}
.contact-form label {
  display: block; font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-dim);
  font-weight: 600; margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--text); font-family: inherit; font-size: 14px;
  font-weight: 300;
  margin-bottom: 18px;
  transition: border-color 0.15s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--accent);
  background: rgba(0,0,0,0.28);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form__status {
  margin: 4px 0 0; min-height: 1.2em; font-size: 13px;
  color: var(--text-dim); letter-spacing: 0.01em;
}
.contact-form__status[data-state="sending"] { color: var(--text-muted); }
.contact-form__status[data-state="error"]   { color: #ff8a6a; }

/* Storyboard (3-panel intent → render → build) */
.storyboard { padding: 100px 0; border-bottom: 1px solid var(--border-subtle); }
.storyboard > .wrap > .label { text-align: center; }
.storyboard__heading {
  font-size: 32px; font-weight: 300; color: var(--text);
  margin: 0 0 48px; letter-spacing: -0.01em;
  text-align: center;
}
.storyboard__intro {
  font-size: 16px; line-height: 1.7;
  color: var(--text-muted); margin: 0 auto 56px;
  max-width: 720px;
  text-align: center;
}
.storyboard__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
/* 4-panel variant — legacy, kept for any older references */
.storyboard__grid--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) {
  .storyboard__grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .storyboard__grid--4 { grid-template-columns: 1fr; }
}

/* 3-panel variant with explicit arrows between the panels.
   Grid template: [panel] [arrow] [panel] [arrow] [panel] */
.storyboard__grid--3 {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px 0;
  align-items: stretch;
}
/* 2-panel variant: [panel] [arrow] [panel] */
.storyboard__grid--2 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px 0;
  align-items: stretch;
  max-width: 920px;
  margin: 0 auto;
}
@media (max-width: 880px) {
  .storyboard__grid--2 {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0;
  }
}
.storyboard__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  width: 56px;
  opacity: 0.85;
}
.storyboard__arrow svg {
  width: 44px;
  height: auto;
  display: block;
}
@media (max-width: 880px) {
  /* On medium and below, stack vertically and rotate arrows down */
  .storyboard__grid--3 {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
    gap: 0;
  }
  .storyboard__arrow {
    width: 100%;
    height: 56px;
    padding: 8px 0;
  }
  .storyboard__arrow svg {
    transform: rotate(90deg);
  }
}
.storyboard__panel {
  margin: 0;
  position: relative;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.28), 0 0 0 1px var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.storyboard__panel:hover { border-color: rgba(255,201,66,0.18); }

/* ---------- Storyboard 3rd-panel flip ----------------------
   The third storyboard panel flips between AI rendering (front)
   and the built reality (back). Flips automatically after the
   reveal sequence lands, and on every click thereafter. */
/* ---------- Why AR (cognitive-science thesis) ----------
   Sits between manifesto and reel on the homepage. Three principle
   cards explaining the cognitive case for AR vs. flat 2D plans. */
.why-ar { padding: 100px 0; border-bottom: 1px solid var(--border-subtle); }
.why-ar__heading {
  font-size: 32px; font-weight: 300; color: var(--text);
  margin: 0 0 24px; letter-spacing: -0.01em;
  max-width: 760px;
}
.why-ar__lead {
  font-size: 17px; line-height: 1.7; color: var(--text-muted);
  margin: 0 0 56px; max-width: 760px;
}
.why-ar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.why-ar__principle {
  padding: 28px 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.28), 0 0 0 1px var(--border);
}
.why-ar__principle-label {
  font-size: 13px; font-weight: 500; color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.why-ar__principle p {
  font-size: 14px; line-height: 1.6;
  color: var(--text-dim); margin: 0;
}

.storyboard__panel--flippable {
  /* The chrome (border, bg, shadow, rounded corners) lives on the
     panel's faces, not the panel itself, so the rotated half doesn't
     show a stale background. */
  background: transparent;
  border: none;
  box-shadow: none;
  perspective: 1400px;
  overflow: visible;
}
.flip-card {
  position: relative;
  width: 100%;
  /* Float to use the same aspect ratio as the other panels.
     Image natural ratio + caption height — let the front face define it. */
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.4, 0.0, 0.2, 1);
  cursor: pointer;
}
.flip-card.is-flipped { transform: rotateY(180deg); }
.flip-card__face {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.28), 0 0 0 1px var(--border);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  /* Fade the away-facing face out completely. `backface-visibility: hidden`
     alone is unreliable when descendants (figcaption, the hint span with
     opacity, etc.) create their own compositing layers and escape the
     parent's backface check. Opacity is the belt-and-suspenders fallback. */
  transition: opacity 0.15s linear 0.4s;
  opacity: 1;
}
.flip-card.is-flipped       .flip-card__face--front { opacity: 0; }
.flip-card:not(.is-flipped) .flip-card__face--back  { opacity: 0; }
.flip-card__face--front {
  position: relative;
}
.flip-card__face--back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
}
.flip-card__face img {
  width: 100%;
  display: block;
}
.flip-card__face figcaption {
  padding: 18px 20px 22px;
}
.flip-card__face figcaption p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
}
/* Subtle "More..." affordance — right-aligned, quiet gold. */
.flip-card__hint {
  display: block;
  margin-top: 8px;
  text-align: right;
  font-size: 12px; font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.flip-card:hover .flip-card__hint,
.flip-card:focus-visible .flip-card__hint { opacity: 1; }
.flip-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 14px;
}
@media (prefers-reduced-motion: reduce) {
  .flip-card { transition: none; }
}
.storyboard__panel img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: #000;
}
.storyboard__num {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  display: inline-block;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--accent);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255,201,66,0.2);
}
.storyboard__tag {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  display: inline-block;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text-muted);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.storyboard__panel figcaption {
  padding: 20px 22px 24px;
}
.storyboard__step-label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 8px;
}
.storyboard__panel figcaption p {
  font-size: 14px; line-height: 1.6;
  color: var(--text-dim); margin: 0;
}

/* Manifesto / positioning callout */
.manifesto {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(255,201,66,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 100%, rgba(255,201,66,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.manifesto__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.manifesto__label {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 28px;
}
.manifesto__heading {
  font-size: 44px; font-weight: 300; color: var(--text);
  line-height: 1.18; letter-spacing: -0.02em;
  margin: 0 0 32px;
}
.manifesto__heading em {
  font-style: normal; color: var(--accent);
}
.manifesto__qualities {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 12px 36px; margin: 0 0 28px;
}
.manifesto__qualities span {
  font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-muted);
  font-weight: 500;
  position: relative;
}
.manifesto__qualities span::after {
  content: '·';
  position: absolute; right: -22px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent); font-weight: 700;
}
.manifesto__qualities span:last-child::after { content: ''; }
.manifesto__body {
  font-size: 17px; line-height: 1.7;
  color: var(--text-muted); margin: 0;
  font-weight: 300;
}
.manifesto__body strong { color: var(--text); font-weight: 400; }

/* Closing CTA */
.closing { padding: 100px 0; text-align: center; }
.closing--narrow { padding: 80px 0; }
.closing h2 {
  font-size: 38px; font-weight: 300; color: var(--text);
  margin: 0 0 18px; letter-spacing: -0.015em;
}
.closing--narrow h2 { font-size: 32px; margin-bottom: 14px; }
.closing p {
  font-size: 17px; color: var(--text-dim);
  margin: 0 0 36px; line-height: 1.6;
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.closing--narrow p { font-size: 16px; margin-bottom: 30px; }
.closing__ctas { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Footer */
.site-footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-deep);
  /* Inset top shadow only — footer reads as a recessed well below the body. */
  box-shadow: inset 0 24px 36px -20px rgba(0,0,0,0.4);
}
.site-footer__inner {
  max-width: 1180px; margin: 0 auto; padding: 0 32px;
  display: grid; gap: 36px;
}
.site-footer__badge-row {
  display: flex; justify-content: flex-end;
  margin-bottom: 24px;
}
.site-footer__top {
  display: flex; flex-wrap: wrap; gap: 36px;
  /* Baseline alignment so the email placeholder sits on the same
     baseline as the nav links. */
  align-items: baseline; justify-content: space-between;
}
.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 36px;
  align-items: center; justify-content: space-between;
}
.site-footer__nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 28px;
}
.site-footer__nav a {
  color: var(--text-dim); font-size: 13px;
  transition: color 0.15s;
}
.site-footer__nav a:hover { color: var(--accent); }
.site-footer__legal { color: #555; font-size: 12px; line-height: 1.7; }
.site-footer__legal p { margin: 2px 0; }

/* Mailing-list opt-in checkbox inside the contact form. The checkbox
   is custom-styled (appearance: none + drawn checkmark via ::after)
   so it inherits the same dark-background / subtle-border treatment
   as the text inputs and turns gold when checked. Label is the same
   uppercase pseudo-label vocabulary as the rest of the form labels. */
label.contact-form__optin {
  display: flex; align-items: center; gap: 16px;
  cursor: pointer;
  margin: 0 0 26px;
}
.contact-form__optin input[type="checkbox"] {
  -webkit-appearance: none;
          appearance: none;
  width: 24px !important;
  height: 24px;
  margin: 0 !important;
  padding: 0 !important;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
  transition: border-color 0.15s, background-color 0.15s;
}
.contact-form__optin input[type="checkbox"]:hover { border-color: var(--accent); }
.contact-form__optin input[type="checkbox"]:focus {
  outline: none; border-color: var(--accent);
}
.contact-form__optin input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.contact-form__optin input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 8px; top: 2px;
  width: 6px; height: 12px;
  border: solid #1a1a1a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.contact-form__optin span {
  user-select: none;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 600;
  /* Force the text-bearing box to be exactly the checkbox's height
     and center its contents inside that box. Plain line-height + flex
     align-items aren't enough because uppercase glyphs sit in the
     upper portion of the em-box (the typographic baseline pushes them
     up from the geometric center), so we explicitly box the span and
     flex-center the text inside it. */
  display: inline-flex;
  align-items: center;
  height: 24px;
  line-height: 1;
  padding-top: 1px; /* compensate for cap-height sitting above center */
}

/* Visually hidden — semantic label for screen readers, no visual.
   Same pattern as Bootstrap/Tailwind sr-only. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Footer mailing-list signup — right-aligned email + ghost button row.
   Posts to /subscribe Cloudflare Pages Function which relays to Sender's
   API. No border band; sits as a quiet row in the footer column flow. */
.site-footer__signup {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: flex-end; gap: 12px;
  margin: 0;
}
.site-footer__signup-email {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 10px 14px;
  /* Match the nav-link typography exactly — 13px, default body
     weight — so the placeholder reads as a sibling of the links. */
  font-size: 13px;
  font-family: inherit;
  width: 260px; max-width: 100%;
  transition: border-color 0.15s;
}
.site-footer__signup-email:focus {
  outline: none; border-color: var(--accent);
  background: rgba(0,0,0,0.28);
}
.site-footer__signup-email::placeholder { color: var(--text-dim); }
.site-footer__signup-btn { padding: 9px 18px; font-size: 13px; }
.site-footer__signup-status {
  width: 100%; text-align: right;
  margin: 0; min-height: 1.2em;
  font-size: 12px; color: var(--text-dim); letter-spacing: 0.01em;
}
.site-footer__signup-status:empty { min-height: 0; }
.site-footer__signup-status[data-state="sending"] { color: var(--text-muted); }
.site-footer__signup-status[data-state="success"] { color: var(--accent); }
.site-footer__signup-status[data-state="error"]   { color: #ff8a6a; }

/* Responsive */
@media (max-width: 720px) {
  .hero { padding: 56px 0 48px; }
  .hero--tall { padding: 64px 0 56px; }
  .hero h1 { font-size: 36px; }
  .hero--tall h1 { font-size: 40px; }
  .hero__tagline { font-size: 17px; }
  .reel { padding: 56px 0; }
  .reel__heading { font-size: 26px; margin-bottom: 32px; }
  .storyboard { padding: 56px 0; }
  .storyboard__heading { font-size: 26px; }
  .storyboard__intro { font-size: 15px; margin-bottom: 36px; }
  .hero__video-frame { padding: 0 20px; margin-bottom: 36px; }
  .verticals { padding: 64px 0; }
  .verticals h2 { font-size: 26px; }
  .features { padding: 56px 0; }
  .contact { padding: 12px 0 56px; }
  .contact-form { padding: 24px; }
  .closing { padding: 64px 0; }
  .closing h2 { font-size: 28px; }
  .closing--narrow h2 { font-size: 26px; }
  .manifesto { padding: 64px 0; }
  .manifesto__heading { font-size: 32px; margin-bottom: 24px; }
  .manifesto__qualities { gap: 8px 24px; margin-bottom: 22px; }
  .manifesto__qualities span::after { right: -14px; }
  .manifesto__body { font-size: 16px; }
  .site-header__inner { padding: 14px 20px; gap: 16px; }
  .site-header__nav ul { gap: 18px; }
  .site-footer__nav ul { gap: 12px 20px; }
  .site-footer__ctas { margin-left: auto; }
  .site-footer__signup { gap: 10px; justify-content: stretch; }
  .site-footer__signup-email { width: 100%; flex: 1; }
}

/* -----------------------------------------------------------
   Scroll-driven 3D tilt-in reveal
   Cards start tilted forward on the X axis and rotate flat as
   they intersect the viewport. JS toggles .in-view; CSS animates.
   Respects prefers-reduced-motion.
   ----------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .features__grid,
  .verticals__grid,
  .storyboard__grid,
  .reel__row {
    perspective: 1400px;
    perspective-origin: 50% 30%;
  }

  .feature,
  .vcard,
  .storyboard__panel,
  .reel__item {
    opacity: 0;
    transform: translateY(36px);
    transition:
      opacity 0.7s ease-out,
      transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform, opacity;
  }

  .feature.in-view,
  .vcard.in-view,
  .storyboard__panel.in-view,
  .reel__item.in-view {
    opacity: 1;
    transform: translateY(0);
  }

  /* Slight stagger inside each grid row via nth-child delays */
  .features__grid > .feature:nth-child(2n),
  .verticals__grid > .vcard:nth-child(2n) { transition-delay: 0.06s; }
  .features__grid > .feature:nth-child(3n),
  .verticals__grid > .vcard:nth-child(3n) { transition-delay: 0.12s; }
  .features__grid > .feature:nth-child(4n),
  .verticals__grid > .vcard:nth-child(4n) { transition-delay: 0.18s; }
  /* Storyboard panels: slower per-panel transition, longer stagger so each
     panel lands clearly after the previous one — reads as a narrated reveal. */
  .storyboard__panel {
    transition:
      opacity 1.1s ease-out,
      transform 1.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .storyboard__panel:nth-child(1) { transition-delay: 0s; }
  .storyboard__panel:nth-child(3) { transition-delay: 0.85s; }
  .storyboard__panel:nth-child(5) { transition-delay: 1.7s; }
  /* Arrows start hidden, fade in between each pair of panels. */
  .storyboard__arrow {
    opacity: 0;
    transition: opacity 0.55s ease-out;
  }
  .storyboard__panel:first-child.in-view ~ .storyboard__arrow:nth-child(2) {
    opacity: 1;
    transition-delay: 0.6s;
  }
  .storyboard__panel:first-child.in-view ~ .storyboard__arrow:nth-child(4) {
    opacity: 1;
    transition-delay: 1.45s;
  }
  .reel__item:nth-child(2) { transition-delay: 0.10s; }
  .reel__item:nth-child(3) { transition-delay: 0.20s; }
}
