/* ————————————————————————————————
   Peachtree Mark — night flight
   Ink #0F0E0C · Bone #EDE8E0 · Ember #E8814F · Muted #8A847A
   Type: Cabinet Grotesk display / Satoshi body / JetBrains Mono meta
   ———————————————————————————————— */

:root {
  --ink: #0f0e0c;
  --ink-2: #161411;
  --bone: #ede8e0;
  --muted: #8a847a;
  --ember: #e8814f;
  --line: rgba(237, 232, 224, 0.12);
  --font-display: "Clash Display", "Satoshi", system-ui, sans-serif;
  --font-accent: "Amaranth", "Georgia", serif;
  --font-body: "Satoshi", system-ui, sans-serif;
  --font-mono: "Clash Display", "Satoshi", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(1.25rem, 4vw, 4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  overflow-x: clip;
}

html.lenis-active { scroll-behavior: auto; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 4px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 200;
  background: var(--bone);
  color: var(--ink);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: top 0.2s;
}

.skip-link:focus-visible { top: 1rem; }

/* ——— Loader ——— */

.loader {
  position: fixed;
  inset: 0;
  z-index: 150;
  background:
    radial-gradient(ellipse 55% 45% at 50% 46%, rgba(232, 129, 79, 0.14), transparent 70%),
    var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

.loader.done {
  transform: translateY(-100%);
  pointer-events: none;
}

.loader-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-canvas {
  width: clamp(18rem, 48vw, 36rem);
  height: auto;
  aspect-ratio: 1280 / 720;
  display: block;
  filter: drop-shadow(0 0 44px rgba(232, 129, 79, 0.22));
}

.loader-fallback {
  width: clamp(16rem, 40vw, 28rem);
  height: auto;
}

.loader-slogan {
  margin-top: -2.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.75rem, 1.3vw, 0.95rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ember);
  opacity: 0;
  transform: translateY(10px);
  animation: loader-slogan-in 0.9s var(--ease-out) 1.4s forwards;
}

@keyframes loader-slogan-in {
  to { opacity: 1; transform: none; }
}

/* ——— Atmosphere ——— */

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0.55;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 40% at 78% 12%, rgba(232, 129, 79, 0.1), transparent 70%),
    radial-gradient(60% 45% at 15% 95%, rgba(232, 129, 79, 0.07), transparent 70%);
}

/* ——— Header ——— */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s;
}

.site-header.scrolled {
  /* near-opaque instead of backdrop blur: identical look on ink, and
     scrolling never pays a per-frame blur cost over the hero video */
  background: rgba(15, 14, 12, 0.94);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem var(--pad);
}

.wordmark {
  position: relative;
  display: flex;
  align-items: center;
}

.wordmark img {
  display: block;
  height: 2.6rem;
  width: auto;
}

/* A band of light sweeps across the logo's own pixels every few seconds */
.logo-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask-image: url("assets/logo-720.png");
  mask-image: url("assets/logo-720.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-position: left center;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.85) 50%,
    transparent 65%
  );
  background-size: 260% 100%;
  background-position: 130% 0;
  background-repeat: no-repeat;
  animation: logo-shine 4.5s ease-in-out infinite;
}

@keyframes logo-shine {
  0%   { background-position: 130% 0; }
  38%  { background-position: -130% 0; }
  100% { background-position: -130% 0; }
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links a { transition: color 0.25s; }
.nav-links a:hover { color: var(--bone); }

/* Dot-to-fill pill: a small ember dot floods the button on hover */
.btn-pill {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.6rem;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid rgba(237, 232, 224, 0.28);
  border-radius: 999px;
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  padding-left: 2.5rem !important;
  transition: color 0.35s, border-color 0.35s, transform 0.3s var(--ease-out);
}

.btn-pill::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--ember);
  z-index: -1;
  transition: transform 0.55s var(--ease-out);
}

.btn-pill:hover { color: var(--ink); border-color: var(--ember); }
.btn-pill:hover::before { transform: scale(60); }
.btn-pill:active { transform: scale(0.98); }

/* Liquid glass (iOS 26-style approximation: backdrop blur + layered
   borders + edge highlights; solid fallback under reduced transparency) */
.glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 12px 34px rgba(0, 0, 0, 0.35);
  color: var(--bone);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.4), transparent 36%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 45%, rgba(255, 255, 255, 0.1));
  pointer-events: none;
}

.glass::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.glass:hover {
  border-color: rgba(255, 200, 160, 0.55);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)),
    rgba(232, 129, 79, 0.12);
}

@media (prefers-reduced-transparency: reduce) {
  .glass {
    background: var(--ink-2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 1.2rem;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  touch-action: manipulation;
  transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.3s var(--ease-out);
  will-change: transform;
}

.nav-cta:active { transform: scale(0.98); }

/* ——— Hero ——— */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 7rem var(--pad) clamp(2rem, 5vh, 4rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

/* scrims: keep the left column and lower third dark for the giant type,
   and melt the image into the page below */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 14, 12, 0.82) 0%, rgba(15, 14, 12, 0.35) 45%, rgba(15, 14, 12, 0.15) 70%),
    linear-gradient(180deg, rgba(15, 14, 12, 0.55) 0%, rgba(15, 14, 12, 0.1) 40%, rgba(15, 14, 12, 0.92) 100%);
}

.hero-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: auto;
  padding-top: 1rem;
}

.hero-slogan {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  margin-top: 4rem;
  margin-bottom: -2.5rem;
}

.hero-type {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 15.3vw, 15rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 4rem 0 2.5rem;
}

.hero-type .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero-type .line-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}

.hero-type.in .line-inner { transform: none; }
.hero-type .line:nth-child(2) .line-inner { transition-delay: 0.12s; }

.line-outline .line-inner {
  color: var(--ink);
  -webkit-text-stroke: 2px var(--bone);
  paint-order: stroke fill;
}

.line-outline em {
  font-style: normal;
  color: var(--ember);
  -webkit-text-stroke: 0;
  font-size: 0.35em;
  vertical-align: super;
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}

.hero-tag {
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.btn-mega {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.9rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  touch-action: manipulation;
  transition: border-color 0.25s, background 0.25s, transform 0.3s var(--ease-out);
  will-change: transform;
}

.btn-mega:active { transform: scale(0.98); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ——— Manifesto (scroll-scrubbed words) ——— */

.manifesto {
  padding: clamp(8rem, 18vh, 14rem) var(--pad);
  max-width: 68rem;
  margin: 0 auto;
}

.manifesto-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.manifesto-line .mw { opacity: 0.14; }

/* ——— Section labels ——— */

.section-label {
  padding: 0 var(--pad);
  margin-bottom: 2.5rem;
}

.label-mono {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
}

/* ——— Services ——— */

.services { padding: 4rem 0 6rem; }

.service-row {
  display: grid;
  grid-template-columns: 5rem 1fr auto 3rem;
  align-items: center;
  gap: 1.5rem;
  padding: 2.2rem var(--pad);
  border-top: 1px solid var(--line);
  position: relative;
  transition: background 0.35s, color 0.35s;
}

.service-row:last-of-type { border-bottom: 1px solid var(--line); }

.service-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  transition: color 0.35s;
}

.service-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 4.2rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.service-desc {
  max-width: 30ch;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.35s;
}

.service-arrow {
  font-size: 1.6rem;
  color: var(--muted);
  transition: color 0.35s, transform 0.35s var(--ease-out);
}

.service-row:hover { background: var(--ember); color: var(--ink); }
.service-row:hover .service-num,
.service-row:hover .service-desc,
.service-row:hover .service-arrow { color: var(--ink); }
.service-row:hover .service-arrow { transform: translate(4px, -4px); }

/* ——— Marquee ——— */

.marquee {
  overflow: hidden;
  padding: 3.5rem 0;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  animation: marquee 24s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 11vw, 10rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--ink);
  -webkit-text-stroke: 1.5px rgba(237, 232, 224, 0.35);
  paint-order: stroke fill;
}

.marquee-track i {
  font-style: normal;
  color: var(--ember);
  -webkit-text-stroke: 0;
  font-size: 0.35em;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ——— Flight showcase ——— */

.flight { padding: 6rem 0; }

.showcase {
  /* full-bleed cinematic band, edge to edge */
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}

.showcase svg { display: block; width: 100%; height: 100%; }

.showcase video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flight-caption {
  padding: 1.6rem var(--pad) 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: 1rem;
}

/* ——— Work ——— */

.work { padding: 6rem 0 5rem; }

.work-era {
  padding: 2.2rem var(--pad) 1rem;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 60ch;
}

.work-era:first-of-type { padding-top: 0; }

.work-row {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) 2fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem var(--pad);
  border-top: 1px solid var(--line);
}

.work-row:last-child { border-bottom: 1px solid var(--line); }

.work-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.05;
}

.work-desc {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 44ch;
}

.work-tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  white-space: nowrap;
}

.work-tag i { font-style: normal; margin-left: 0.3rem; }

.work-link { transition: background 0.3s; }
.work-link:hover { background: rgba(232, 129, 79, 0.08); }
.work-link:hover .work-name { color: var(--ember); }

/* Case-study cards with browser-chrome frames, in a carousel */

.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 var(--pad);
  margin-bottom: 1.6rem;
}

.work-head .work-era { padding: 0; max-width: 46ch; }

.work-arrows { display: flex; gap: 0.6rem; }

.work-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--bone);
  font-size: 1.1rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.2s;
}

.work-arrow:hover { border-color: var(--ember); color: var(--ember); }
.work-arrow:active { transform: scale(0.94); }

.work-carousel {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem var(--pad) 1rem;
  scrollbar-width: none;
}

.work-carousel::-webkit-scrollbar { display: none; }

.work-carousel:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: -2px;
  border-radius: 12px;
}

.work-card {
  display: block;
  flex: 0 0 clamp(17rem, 30vw, 23rem);
  scroll-snap-align: start;
}

.work-carousel .shot-frame {
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.work-carousel .shot-bar { padding: 0.45rem 0.75rem; }
.work-carousel .shot-bar span { font-size: 0.6rem; }
.work-carousel .shot-bar i { width: 7px; height: 7px; }

.shot-frame {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
}

.shot-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(237, 232, 224, 0.22);
}

.shot-bar i:first-child { background: var(--ember); }

.shot-bar span {
  margin-left: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 64 / 45;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s var(--ease-out);
}

.work-card:hover .shot-frame img { transform: scale(1.025); }

/* Flipbook preview: a strip of six scroll-position frames, stepped through
   so the card looks like someone browsing the site */
.shot-anim {
  width: 100%;
  aspect-ratio: 64 / 45;
  background-size: 100% 600%;
  background-repeat: no-repeat;
  background-position: 0 0;
  animation: shot-flip 9s steps(1, end) infinite;
}

@keyframes shot-flip {
  0%      { background-position-y: 0%; }
  16.66%  { background-position-y: 20%; }
  33.33%  { background-position-y: 40%; }
  50%     { background-position-y: 60%; }
  66.66%  { background-position-y: 80%; }
  83.33%, 100% { background-position-y: 100%; }
}

.work-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.9rem;
}

.work-card .work-name { font-size: 1.15rem; }

.work-card .work-desc { margin-top: 0.25rem; font-size: 0.88rem; }

.work-linkcard:hover .work-name { color: var(--ember); }

.work-textcard {
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(80% 90% at 80% 0%, rgba(232, 129, 79, 0.08), transparent 70%),
    var(--ink-2);
}

.textcard-inner { padding: 1.5rem; }
.textcard-inner .work-tag { display: block; margin-top: 0.5rem; }
.textcard-inner .work-desc { margin-top: 0.8rem; }

@media (max-width: 700px) {
  .work-head { flex-direction: column; align-items: flex-start; }
  .work-card { flex-basis: 78vw; }
}

/* ——— Stats ——— */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 3.5rem var(--pad);
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: 0; }

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ——— Plans ——— */

.plans { padding: 8rem 0 4rem; }

.plans-intro {
  padding: 0 var(--pad);
  max-width: 44rem;
  margin-bottom: 3.5rem;
}

.plans-intro h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
}

.plans-intro p {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 48ch;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  padding: 0 var(--pad);
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.2rem 2rem 2.4rem;
  transition: border-color 0.3s;
}

.plan:hover { border-color: rgba(237, 232, 224, 0.3); }

.plan-featured { border-color: var(--ember); }
.plan-featured:hover { border-color: var(--ember); }
.plan-featured .plan-name { color: var(--ember); }

.plan-name {
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.plan-price {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.plan-price span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  letter-spacing: -0.02em;
  color: var(--bone);
  margin-right: 0.3rem;
}

.plan-for {
  margin-top: 0.9rem;
  color: var(--bone);
  font-weight: 500;
  font-size: 0.98rem;
}

.plan-list {
  list-style: none;
  margin: 1.6rem 0 2.2rem;
  display: grid;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.plan-list li { padding-left: 1.2rem; position: relative; }

.plan-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--ember);
  font-weight: 700;
}

.plan-cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.5rem;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  touch-action: manipulation;
}

.plans-note {
  padding: 2.8rem var(--pad) 0;
  color: var(--muted);
  max-width: 54ch;
}

.plans-note a {
  color: var(--ember);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ——— ROI math ——— */

.worth { padding: 6rem 0 4rem; }

.worth-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  padding: 0 var(--pad);
  align-items: start;
}

.worth-intro h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
}

.worth-intro em {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--ember);
}

.worth-intro p {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 42ch;
}

.worth-calc {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem 2rem 2.2rem;
}

.worth-calc .field-label { margin-top: 1.4rem; }
.worth-calc .field-label:first-child { margin-top: 0; }

.worth-value-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.worth-dollar {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ember);
}

#w-value { max-width: 11rem; font-variant-numeric: tabular-nums; }

.worth-slider-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

#w-count {
  flex: 1;
  accent-color: var(--ember);
  min-height: 44px;
}

#w-count-out {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  min-width: 2ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.worth-results {
  margin-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.worth-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.worth-row span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.worth-row strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.worth-net strong {
  color: var(--ember);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.worth-breakeven {
  margin-top: 1.3rem;
  color: var(--bone);
  font-weight: 500;
}

@media (max-width: 900px) {
  .worth-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ——— About ——— */

.about { padding: 8rem 0 6rem; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  padding: 0 var(--pad);
  align-items: start;
}

.about-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
}

.about-title em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 700;
  color: var(--ember);
}

.about-body p { color: var(--muted); max-width: 58ch; }
.about-body p + p { margin-top: 1.2rem; color: var(--bone); font-weight: 500; }

.about-facts {
  list-style: none;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.about-facts li {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}

.about-facts li span {
  flex: 0 0 10rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  padding-top: 0.3rem;
}

/* ——— Contact ——— */

.contact { padding: 8rem 0 7rem; }

.contact-mega {
  display: block;
  padding: 0 var(--pad);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 14.5vw, 14rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  will-change: transform;
  transition: transform 0.3s var(--ease-out);
}

.contact-mega-line { display: block; }

.contact-mega em {
  font-style: normal;
  color: var(--ember);
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}

.contact-mega:hover em { transform: translate(0.06em, -0.06em); }
.contact-mega:hover .contact-mega-line:last-child { color: var(--ink); -webkit-text-stroke: 2px var(--bone); paint-order: stroke fill; }
.contact-mega:hover .contact-mega-line:last-child em { color: var(--ember); -webkit-text-stroke: 0; }

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 1.6rem var(--pad) 0;
  border-top: 1px solid var(--line);
}

.contact-info p { max-width: 40ch; color: var(--muted); }

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 700;
}

.contact-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.25s;
}

.contact-links a:hover { color: var(--ember); }

/* ——— Legal pages ——— */

.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: 9rem var(--pad) 5rem;
}
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.5rem; }
.legal h2 { font-size: 1.3rem; margin: 2.2rem 0 0.6rem; }
.legal p { color: var(--muted); }
.legal p a { color: var(--ember); font-weight: 500; text-decoration: underline; }
.legal-updated { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.legal .btn-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 2.5rem;
  padding: 0 1.4rem;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bone);
  text-decoration: none;
  cursor: pointer;
}
.legal .btn-back:hover { border-color: var(--ember); color: var(--ember); }

/* ——— Audit page ——— */

.audit-page .label-mono { display: block; margin-bottom: 1rem; }

.audit-lede { font-size: 1.1rem; }

.audit-list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  margin: 0.6rem 0 0.4rem;
  color: var(--muted);
}

.audit-list li { padding-left: 1.2rem; position: relative; }

.audit-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--ember);
  font-weight: 700;
}

.audit-list strong { color: var(--bone); }

.audit-form { margin: 1.4rem 0 0.6rem; }

.audit-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.audit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

#audit-url {
  flex: 1 1 16rem;
  min-height: 44px;
  padding: 0 1.2rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1rem;
}

#audit-url::placeholder { color: var(--muted); }

#audit-url:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
  border-color: var(--ember);
}

.audit-submit { flex: 0 0 auto; }
.audit-submit:disabled { opacity: 0.6; cursor: wait; }

.audit-progress {
  margin-top: 1.1rem;
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.audit-progress i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ember), var(--peachskin, #ffc9a3));
}

.audit-progress.running i {
  /* eases toward ~94% over 90s; completion snaps it to full */
  animation: audit-fill 90s cubic-bezier(0.08, 0.65, 0.25, 1) forwards;
}

.audit-progress.done i {
  animation: none;
  width: 100%;
  transition: width 0.3s;
}

@keyframes audit-fill {
  0% { width: 0; }
  100% { width: 94%; }
}

.audit-status {
  margin-top: 0.9rem;
  color: var(--ember);
  font-weight: 500;
}

.audit-error {
  margin-top: 0.9rem;
  color: #d64545;
  font-weight: 500;
}

.audit-results { margin-top: 2rem; }

.audit-results-title { font-size: 1.2rem; margin-bottom: 1.4rem; }
.audit-results-title span { color: var(--ember); }

.audit-scores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.score-card { text-align: center; }
.score-card svg { width: 100%; max-width: 7.5rem; height: auto; }

.score-card span {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.audit-vitals {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.6rem 0 0.4rem;
}

.vital {
  flex: 1 1 9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
}

.vital span {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.vital strong { font-size: 1.15rem; color: var(--bone); }

.audit-next {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}

@media (max-width: 540px) {
  .audit-scores { grid-template-columns: repeat(2, 1fr); }
}

/* ——— Intake form ——— */

.start-form { margin-top: 1.5rem; }

.field-group {
  border: 0;
  padding: 1.8rem 0 0.4rem;
  border-top: 1px solid var(--line);
  margin-top: 1.6rem;
}

.field-group:first-of-type { border-top: 0; margin-top: 0; padding-top: 0.4rem; }

.field-legend {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--bone);
  padding-bottom: 0.9rem;
}

.field-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.1rem 0 0.45rem;
}

.field-label em { font-style: normal; text-transform: none; letter-spacing: 0.02em; }

.text-input {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
}

textarea.text-input { resize: vertical; }

.text-input::placeholder { color: var(--muted); }

.text-input:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
  border-color: var(--ember);
}

.field-hint {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.choice { position: relative; }

.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.choice input:checked + span {
  border-color: var(--ember);
  color: var(--bone);
  background: rgba(232, 129, 79, 0.14);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}

.start-submit {
  margin-top: 2.2rem;
  font-size: 1rem;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 1.8rem;
}

.start-success { margin-top: 1rem; }
.start-success h2 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.start-success p { color: var(--muted); }
.start-summary { margin-top: 1rem; font-size: 0.9rem; }

/* ——— Footer ——— */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem var(--pad) 2.6rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-brand { font-weight: 700; color: var(--bone); }

.footer-slogan {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--bone);
}

.footer-social { display: flex; gap: 1.2rem; }
.footer-social a:hover { color: var(--ember); }

.footer-meta {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-meta a:hover { color: var(--bone); }

/* ——— Reveal ——— */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.reveal.in { opacity: 1; transform: none; }

/* ——— Responsive ——— */

@media (max-width: 900px) {
  .service-row { grid-template-columns: 3rem 1fr 2rem; }
  .service-desc { display: none; }
  .plan-grid { grid-template-columns: 1fr; max-width: 30rem; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .hero-meta-row { flex-direction: column; gap: 0.4rem; }
  .about-facts li span { flex-basis: 7.5rem; }
}

@media (max-width: 420px) {
  .nav { padding: 0.9rem 1.1rem; gap: 1rem; }
  .wordmark { font-size: 0.9rem; }
  .nav-cta { font-size: 0.8rem; padding: 0 0.95rem; }
  .hero-type { font-size: clamp(2rem, 13.5vw, 3.4rem); }
  .contact-mega { font-size: clamp(3.2rem, 18vw, 5rem); }
}

/* ——— Reduced motion ——— */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loader { display: none; }
  .marquee-track { animation: none; }
  .logo-shine { animation: none; opacity: 0; }
  .btn-pill::before { transition: none; }
  .shot-anim { animation: none; }
  .loader-mark { animation: none; }
  .hero-type .line-inner { transform: none; transition: none; }
  .manifesto-line .mw { opacity: 1; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav-cta, .btn-mega, .contact-mega { transition: none; }
}

/* File input: match the pill language of the rest of the form */
input[type="file"].text-input { padding-top: 0.65rem; padding-bottom: 0.65rem; }
.text-input::file-selector-button {
  font: inherit;
  font-size: 0.9rem;
  color: var(--bone);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-right: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.text-input::file-selector-button:hover {
  border-color: var(--ember);
  color: var(--ember);
}
