/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

/* ---------- Design tokens ---------- */
:root {
  --bg: #150f0c;
  --bg-alt: #1c1410;
  --surface: #241a14;
  --surface-line: rgba(247, 237, 224, 0.1);

  --ember: #ff6a3d;
  --ember-hot: #ff3d2e;
  --gold: #ffb84d;
  --cream: #f7ede0;
  --muted: #b6a493;

  --font-display: "Fraunces", ui-serif, serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1160px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Base ---------- */
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  max-width: 18ch;
  margin-bottom: 3rem;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.75rem;
}

section {
  padding-block: clamp(4rem, 3rem + 5vw, 7rem);
  position: relative;
}

section[id] {
  scroll-margin-top: 6rem;
}

/* film-grain texture over the whole page */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  transform: translateY(-150%);
  background: var(--ember);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 1000;
  font-weight: 600;
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(1rem);
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--ember) 55%, var(--ember-hot));
  color: #1a0f08;
  box-shadow: 0 8px 24px -8px rgba(255, 106, 61, 0.65);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(255, 106, 61, 0.8);
}

.btn-ghost {
  background: transparent;
  border-color: var(--surface-line);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--ember);
  color: var(--ember);
}

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(21, 15, 12, 0.72);
  border-bottom: 1px solid var(--surface-line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo span {
  color: var(--ember);
  font-style: italic;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav ul a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 100%;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav ul a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(4.5rem, 3.5rem + 6vw, 8rem);
  padding-bottom: 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 60rem;
  background:
    radial-gradient(38rem 26rem at 20% 10%, rgba(255, 106, 61, 0.32), transparent 60%),
    radial-gradient(30rem 24rem at 85% 25%, rgba(255, 184, 77, 0.22), transparent 60%);
  filter: blur(10px);
  animation: glow-breathe 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
  padding-bottom: 4.5rem;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 1.9rem + 3.2vw, 4.6rem);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34rem;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* staggered reveal on load */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal-up 0.8s var(--ease) forwards;
  animation-delay: calc(var(--d) * 0.12s + 0.1s);
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* scroll-triggered reveal — hidden only once JS (and the observer that
   reveals it) is confirmed running; without JS, content stays visible */
.reveal-on-scroll {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Ticker ---------- */
.ticker {
  position: relative;
  border-top: 1px solid var(--surface-line);
  border-bottom: 1px solid var(--surface-line);
  background: var(--bg-alt);
  overflow: hidden;
  white-space: nowrap;
  padding-block: 1rem;
}

.ticker-track {
  display: inline-flex;
  gap: 1.25rem;
  align-items: center;
  animation: ticker-scroll 26s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.ticker-track .dot {
  color: var(--ember);
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Stats / Results ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--surface-line);
  border-left: 1px solid var(--surface-line);
}

.stat-tile {
  border-right: 1px solid var(--surface-line);
  border-bottom: 1px solid var(--surface-line);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3rem);
  color: var(--ember);
  font-weight: 600;
}

.stat-value em {
  font-style: italic;
  color: var(--gold);
  font-size: 0.55em;
  margin-left: 0.15em;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.disclaimer {
  margin-top: 1.75rem;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 42rem;
  border-left: 2px solid var(--surface-line);
  padding-left: 0.9rem;
}

.disclaimer strong {
  color: var(--cream);
}

/* ---------- Services ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 106, 61, 0.45);
}

.card-icon {
  width: 30px;
  height: 30px;
  color: var(--ember);
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Process / Timeline ---------- */
.timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--surface-line);
  margin-left: 1rem;
}

.timeline li {
  display: flex;
  gap: 1.75rem;
  padding: 1.75rem 0 1.75rem 2rem;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 2.1rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 4px var(--bg), 0 0 16px rgba(255, 106, 61, 0.7);
}

.timeline-index {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.9rem;
  padding-top: 0.1rem;
  min-width: 2ch;
}

.timeline h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.timeline p {
  color: var(--muted);
  max-width: 42rem;
}

/* ---------- Offer ---------- */
.offer {
  background: var(--bg-alt);
}

.offer-inner {
  position: relative;
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  padding: 3.5rem 2rem;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid rgba(255, 184, 77, 0.25);
  overflow: hidden;
}

.offer h2 {
  margin-inline: auto;
  font-size: clamp(1.9rem, 1.5rem + 1.8vw, 2.6rem);
}

.offer-copy {
  color: var(--muted);
  max-width: 34rem;
  margin: 0 auto 1.75rem;
}

.offer-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.2rem;
  margin-bottom: 2.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.offer-embers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.offer-embers span {
  position: absolute;
  bottom: -10%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px 2px rgba(255, 106, 61, 0.8);
  animation: ember-rise 7s linear infinite;
  opacity: 0;
}

.offer-embers span:nth-child(1) { left: 10%; animation-delay: 0s; }
.offer-embers span:nth-child(2) { left: 25%; animation-delay: 1.2s; }
.offer-embers span:nth-child(3) { left: 42%; animation-delay: 2.6s; }
.offer-embers span:nth-child(4) { left: 58%; animation-delay: 0.6s; }
.offer-embers span:nth-child(5) { left: 74%; animation-delay: 3.4s; }
.offer-embers span:nth-child(6) { left: 88%; animation-delay: 1.9s; }

@keyframes ember-rise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 0.9; }
  100% { transform: translateY(-22rem) scale(0.3); opacity: 0; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1.25rem;
}

.contact-info p {
  color: var(--muted);
  max-width: 34ch;
  margin-bottom: 1.75rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-mono);
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 106, 61, 0.4);
  padding-bottom: 2px;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-row-split > div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

input,
textarea {
  background: var(--bg);
  border: 1px solid var(--surface-line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease);
}

input:focus,
textarea:focus {
  border-color: var(--ember);
  outline: none;
}

.form-status {
  font-size: 0.88rem;
  color: var(--gold);
  min-height: 1.2em;
}

.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-bottom: -0.3rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--surface-line);
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--ember);
}

.footer-copy {
  width: 100%;
  color: var(--muted);
  font-size: 0.82rem;
  order: 3;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Nav switches to the hamburger pattern well before the desktop nav would
   ever get cramped, so there's no dead zone where it wraps mid-layout. */
@media (max-width: 880px) {
  .nav {
    position: fixed;
    inset: 4.2rem 1rem auto 1rem;
    background: var(--surface);
    border: 1px solid var(--surface-line);
    border-radius: var(--radius);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 1.5rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), visibility 0s linear 0.25s;
  }

  .nav[data-state="open"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), visibility 0s linear 0s;
  }

  .nav ul {
    flex-direction: column;
    gap: 1.1rem;
  }

  .nav-cta {
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 720px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .form-row-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .stat-row {
    grid-template-columns: 1fr;
  }
}
