/* ==========================================================
   Aethel Media Group — "Steep" design architecture
   serif editorial on warm paper · single peach accent
   ========================================================== */

:root {
  /* Colors */
  --ink: #17191c;
  --paper: #ffffff;
  --mist: #f2f2f3;
  --fog: #fafafb;
  --slate: #777b86;
  --ash: #979799;
  --smoke: #a3a6af;
  --peach: #fbe1d1;
  --sienna: #5d2a1a;
  --hairline: #ececec;

  /* Type */
  --serif: "Source Serif 4", "Signifier", Georgia, ui-serif, serif;
  --sans: "Inter", "Sohne", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-w: 1200px;
  --section-gap: 80px;

  /* Radii */
  --r-card: 24px;
  --r-elevated: 20px;
  --r-input: 16px;
  --r-btn: 9999px;

  /* Elevation — floating artifacts only */
  --shadow-artifact: 0 0 0 1px rgba(4,23,43,0.05), 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

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

html { scroll-behavior: smooth; }

body {
  overflow-x: clip;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* Ambient continuous background — soft warm hues drifting behind every
   section, so the page reads as one surface instead of banded blocks */
body::before {
  content: "";
  position: fixed;
  inset: -25% -15%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 30% at 18% 20%, rgba(251, 225, 209, 0.30), transparent 70%),
    radial-gradient(42% 34% at 84% 14%, rgba(242, 242, 243, 0.55), transparent 72%),
    radial-gradient(40% 32% at 80% 74%, rgba(251, 225, 209, 0.20), transparent 70%),
    radial-gradient(36% 30% at 10% 82%, rgba(242, 242, 243, 0.60), transparent 72%);
  animation: ambient-drift 50s ease-in-out infinite alternate;
}
@keyframes ambient-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(2.5%, -3%, 0) scale(1.07) rotate(1.2deg); }
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Type scale ---------- */
.display, .heading-lg, .heading {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
}
.display    { font-size: clamp(44px, 7.2vw, 90px); letter-spacing: -0.025em; }
.heading-lg { font-size: clamp(36px, 5vw, 64px);  letter-spacing: -0.015em; }
.heading    { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.015em; }

.display em, .heading-lg em, .heading em { font-style: italic; }

h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.009em;
  line-height: 1.3;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 430;
  text-decoration: none;
  border-radius: var(--r-btn);
  padding: 12px 24px;
  line-height: 1;
  transition: opacity .15s ease, background .15s ease, color .15s ease, translate .2s ease;
  white-space: nowrap;
}
.btn:hover { translate: 0 -2px; }
.btn:active { translate: 0 0; }
.btn-filled { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn-filled:hover { opacity: .85; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--peach); border-color: var(--sienna); color: var(--sienna); }

.btn-row { display: flex; gap: 12px; align-items: center; }
.btn-row-center { justify-content: center; }

.text-link {
  color: var(--ink);
  font-size: 16px;
  font-weight: 430;
  text-decoration: none;
  padding: 12px 0;
  display: inline-block;
  transition: letter-spacing .25s ease;
}
.text-link:hover { text-decoration: underline; letter-spacing: 0.01em; }

/* ---------- Intro overlay ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .8s cubic-bezier(.76, 0, .24, 1);
}
.intro.intro-leave { transform: translateY(-100%); }
.intro.intro-gone { display: none; }
.intro-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  translate: 0 14px;
  animation: intro-in .7s ease .15s forwards;
}
.intro-name {
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 96px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.intro-sub {
  font-size: 13px;
  font-weight: 450;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ash);
}
.intro-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--peach);
  border: 1px solid var(--sienna);
  margin-top: 6px;
  animation: intro-pulse 1.2s ease infinite;
}
@keyframes intro-in { to { opacity: 1; translate: 0 0; } }
@keyframes intro-pulse { 50% { transform: scale(1.35); } }

/* Hero entrance — gated behind intro */
.js .rise {
  opacity: 0;
  translate: 0 26px;
  transition: opacity .8s ease, translate .8s cubic-bezier(.22, 1, .36, 1);
}
body.intro-done .rise { opacity: 1; translate: 0 0; }
body.intro-done .hero-eyebrow { transition-delay: .05s; }
body.intro-done h1.rise       { transition-delay: .15s; }
body.intro-done .hero-sub     { transition-delay: .3s; }
body.intro-done .btn-row.rise { transition-delay: .42s; }

/* Peach highlight wash on italic phrases — sweeps left to right */
.hl {
  background-image: linear-gradient(var(--peach), var(--peach));
  background-repeat: no-repeat;
  background-size: 0% 46%;
  background-position: 0 70%;
  padding: 0 .06em;
  margin: 0 -.06em;
}
@keyframes hl-sweep {
  from { background-size: 0% 46%; }
  to   { background-size: 100% 46%; }
}
/* Hero: sweeps once the intro curtain has lifted and the headline has settled */
body.intro-done .hero .hl {
  animation: hl-sweep 1.3s cubic-bezier(.3, 0, .2, 1) 1s both;
}
/* Elsewhere: sweeps when scrolled into view */
.hl.in {
  animation: hl-sweep 1.1s cubic-bezier(.3, 0, .2, 1) .2s both;
}

/* ---------- Nav ---------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.logo {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.logo-sub {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 450;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  padding: 2px 0;
}
.nav-links a:hover { color: var(--slate); }
.nav-ctas { display: flex; align-items: center; gap: 20px; }
.nav-ctas .text-link { padding: 0; }
.nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 48px 24px 0; }
.hero-stage {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-stage::before {
  content: "";
  position: absolute;
  inset: -40px -80px 0;
  background:
    radial-gradient(46% 42% at 28% 24%, rgba(251, 225, 209, 0.55), transparent 70%),
    radial-gradient(40% 38% at 76% 68%, rgba(251, 225, 209, 0.4), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-copy {
  text-align: center;
  max-width: 760px;
  position: relative;
  z-index: 2;
  padding: 148px 0 110px;
}
.hero-eyebrow {
  font-size: 14px;
  font-weight: 450;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--slate);
  line-height: 1.5;
  max-width: 560px;
  margin: 24px auto 32px;
}
.hero .btn-row { justify-content: center; }

/* ---------- Floating artifacts ---------- */
.artifact {
  background: var(--paper);
  border-radius: var(--r-elevated);
  box-shadow: var(--shadow-artifact);
  padding: 16px 20px 16px 16px;
  font-size: 14px;
}
.hero-stage > .artifact { position: absolute; z-index: 1; }

.artifact-chat     { top: -16px; left: -8px; width: 238px; --rot: -2deg; transform: rotate(var(--rot)) translateY(var(--par, 0px)); }
.artifact-table    { top: -4px; right: -20px; width: 258px; --rot: 1.5deg; transform: rotate(var(--rot)) translateY(var(--par, 0px)); }
.artifact-stat     { bottom: 32px; left: 32px; width: 216px; --rot: 1deg; transform: rotate(var(--rot)) translateY(var(--par, 0px)); }
.artifact-composer { bottom: -4px; left: 50%; --rot: 0deg; transform: translateX(-50%) translateY(var(--par, 0px)); width: 420px; display: flex; align-items: center; gap: 12px; border-radius: var(--r-input); padding: 12px 12px 12px 18px; }

/* Gentle perpetual float on hero artifacts (--par carries scroll parallax) */
@keyframes float-soft {
  from { transform: rotate(var(--rot)) translateY(var(--par, 0px)); }
  to   { transform: rotate(var(--rot)) translateY(calc(var(--par, 0px) - 9px)); }
}
@keyframes float-center {
  from { transform: translateX(-50%) translateY(var(--par, 0px)); }
  to   { transform: translateX(-50%) translateY(calc(var(--par, 0px) - 7px)); }
}
body.intro-done .artifact-chat  { animation: float-soft 4.2s ease-in-out 1.2s infinite alternate; }
body.intro-done .artifact-table { animation: float-soft 5.1s ease-in-out 1.6s infinite alternate; }
body.intro-done .artifact-stat  { animation: float-soft 4.6s ease-in-out 1.4s infinite alternate; }
body.intro-done .artifact-composer { animation: float-center 5.4s ease-in-out 1.8s infinite alternate; }

.artifact-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.artifact-title { font-size: 13px; font-weight: 480; color: var(--ink); flex: 1; }
.artifact-tag {
  font-size: 11px;
  font-weight: 450;
  color: var(--sienna);
  background: var(--peach);
  border-radius: 9999px;
  padding: 3px 10px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-live { background: var(--sienna); }

/* chat bubbles */
.chat-row {
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.4;
  max-width: 92%;
}
.chat-in  { background: var(--mist); color: var(--ink); }
.chat-out { background: var(--ink); color: var(--paper); margin-left: auto; }
.chat-meta { font-size: 12px; color: var(--slate); margin-top: 10px; }
.chat-meta strong { color: var(--ink); font-weight: 500; }

/* table artifact */
.artifact-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.artifact-table td { padding: 7px 4px; border-top: 1px solid var(--hairline); }
.artifact-table tr:first-child td { border-top: none; }
.t-mut { color: var(--ash); }
.t-ok {
  color: var(--sienna);
  font-weight: 480;
  background: var(--peach);
  border-radius: 9999px;
  padding: 2px 9px;
  font-size: 12px;
}

/* stat artifact */
.stat-num { font-size: 26px; font-weight: 500; letter-spacing: -0.009em; }
.stat-delta { font-size: 13px; color: var(--slate); margin: 4px 0 12px; }
.stat-chart { width: 100%; height: auto; display: block; }

.mini-rows { margin-top: 14px; border-top: 1px solid var(--hairline); }
.mini-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
}
.mini-row:last-child { border-bottom: none; }

/* composer artifact */
.composer-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ash);
  border: 1px solid var(--hairline);
  font-size: 15px;
  flex-shrink: 0;
}
.composer-placeholder { flex: 1; color: var(--smoke); font-size: 15px; }
.composer-send {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

/* inline artifact (feature sections) — --par carries scroll parallax */
.artifact-inline { width: min(420px, 100%); margin: 0 auto; padding: 20px; transform: translateY(var(--par, 0px)); }

/* ---------- Quiet strip (marquee) ---------- */
.strip {
  overflow: hidden;
  padding: 56px 0 8px;
  font-size: 14px;
  color: var(--ash);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.strip-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.strip-set {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  white-space: nowrap;
}
.strip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--peach);
  border: 1px solid rgba(93, 42, 26, 0.35);
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-gap) 0; }
/* Former fog bands are now transparent — the ambient body layer carries
   the tonal variation, so scrolling feels like one continuous surface */
.section-fog { background: transparent; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--slate);
  line-height: 1.5;
  margin-top: 20px;
}

/* ---------- Service cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--mist);
  border-radius: var(--r-card);
  padding: 32px 28px 20px;
  display: flex;
  flex-direction: column;
  transition: translate .35s ease, background .35s ease;
}
.card:hover { translate: 0 -6px; }
.card-tag {
  font-size: 14px;
  color: var(--ash);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--peach);
  border: 1px solid rgba(93, 42, 26, 0.35);
}
.card h3 { margin-bottom: 12px; }
.card p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  flex: 1;
}
.card .text-link { padding: 20px 0 8px; }
.card-cta { background: var(--paper); border: 1px solid var(--hairline); }

/* ---------- Feature (2-col) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-flip .feature-copy { order: 2; }
.feature-flip .feature-visual { order: 1; }
.feature-copy p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--slate);
  margin: 24px 0;
}
.check-list { list-style: none; margin-bottom: 8px; }
.check-list li {
  padding: 10px 0 10px 32px;
  position: relative;
  font-size: 16px;
  border-top: 1px solid var(--hairline);
}
.check-list li:first-child { border-top: none; }
.check-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--ash);
}

/* ---------- Peach card ---------- */
.peach-card {
  background: var(--peach);
  color: var(--sienna);
  border-radius: var(--r-card);
  padding: 64px;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.peach-kicker {
  font-size: 14px;
  font-weight: 450;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: .75;
}
.peach-quote {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.4;
  letter-spacing: -0.009em;
}
.peach-attr { font-size: 15px; font-weight: 450; margin-top: 24px; }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.process-step {
  background: var(--mist);
  border-radius: var(--r-card);
  padding: 32px 28px;
}
.process-num {
  font-family: var(--serif);
  font-size: 30px;
  font-style: italic;
  color: var(--sienna);
  background: var(--peach);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  line-height: 1;
}
.process-step h3 { margin-bottom: 12px; }
.process-step p { font-size: 16px; line-height: 1.5; color: var(--slate); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 760px; }
.faq-wrap .heading { margin-bottom: 40px; }
.faq-list details {
  border-top: 1px solid var(--hairline);
  padding: 4px 0;
}
.faq-list details:last-child { border-bottom: 1px solid var(--hairline); }
.faq-list summary {
  font-size: 18px;
  font-weight: 450;
  letter-spacing: -0.009em;
  padding: 20px 40px 20px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--ash);
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--slate);
  padding: 0 40px 24px 0;
}

/* ---------- CTA ---------- */
.section-cta { padding-bottom: 112px; }
.cta-wrap { text-align: center; max-width: 720px; }
.cta-wrap .section-sub { margin: 20px auto 36px; }
.cta-note { font-size: 14px; color: var(--ash); margin-top: 28px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.logo-footer { font-size: 22px; }
.footer-tag { font-size: 15px; color: var(--slate); margin-top: 8px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  color: var(--slate);
  font-size: 15px;
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: 14px; color: var(--ash); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  translate: 0 16px;
  transition: opacity .7s ease, translate .7s ease;
}
.reveal.in { opacity: 1; translate: 0 0; }

/* Chart line draw-in (dash values set by JS) — 1.5s, in step with the
   stat count-up so number and trendline finish together */
.stat-chart path { transition: stroke-dashoffset 1.5s cubic-bezier(.33, 1, .68, 1); }
.stat-chart circle { opacity: 0; transition: opacity .35s ease 1.35s; }
.chart-drawn .stat-chart path { stroke-dashoffset: 0 !important; }
.chart-drawn .stat-chart circle { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .rise { opacity: 1 !important; translate: none !important; transition: none !important; }
  .intro { display: none !important; }
  .hl { animation: none !important; background-size: 100% 46% !important; }
  .strip-track, .intro-mark, .intro-dot, body::before,
  body.intro-done .artifact-chat, body.intro-done .artifact-table,
  body.intro-done .artifact-stat, body.intro-done .artifact-composer { animation: none !important; }
  .stat-chart path { transition: none !important; stroke-dashoffset: 0 !important; }
  .stat-chart circle { opacity: 1 !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .artifact-chat  { left: -4px; width: 240px; }
  .artifact-table { right: -4px; width: 256px; }
}

@media (max-width: 900px) {
  .nav-links, .nav-ctas .text-link { display: none; }
  .hero-stage { min-height: 0; display: block; }
  .hero-copy { padding: 32px 0 40px; }
  .hero-stage > .artifact { position: static; transform: none; margin: 0 auto 16px; }
  .artifact-chat, .artifact-table, .artifact-stat { width: min(360px, 100%); }
  .artifact-composer { width: min(420px, 100%); }
  .artifact-table, .artifact-stat { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature-flip .feature-copy { order: 1; }
  .feature-flip .feature-visual { order: 2; }
  .process-grid { grid-template-columns: 1fr; }
  .peach-card { padding: 40px 28px; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 900px) {
  .nav-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }
  .nav-burger span {
    width: 20px;
    height: 1.5px;
    background: var(--ink);
    display: block;
  }
  .nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px 24px;
  }
  .nav.nav-open .nav-links a { padding: 10px 0; font-size: 18px; }
}
