/* ==========================================================================
   Frankenstein — Landing Page
   Design tokens, global styles, sections 1–6, editorial typography
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  --color-base: #0E0E0E;
  --color-surface: #1A1A1A;
  --color-surface-elevated: #222222;
  --color-text: #E8E4DC;
  --color-accent: #E8954B;

  --opacity-heading: 1;
  --opacity-body: 0.70;
  --opacity-meta: 0.45;
  --opacity-hairline: 0.10;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 16px;

  --border-hairline: 1px solid rgba(232, 228, 220, 0.10);

  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-sans: 'Inter', system-ui, sans-serif;
}

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

html {
  scroll-snap-type: y mandatory;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-snap-type: none;
  }
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-base);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(232, 228, 220, 0.04) 0%, transparent 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Focus Rings --- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* --- Typography --- */
h1, h2 {
  font-family: var(--font-mono);
  color: var(--color-text);
  opacity: var(--opacity-heading);
}

h1 {
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h2 {
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
}

p {
  opacity: var(--opacity-body);
  max-width: 560px;
}

strong {
  font-weight: 500;
}

/* --- Section Label --- */
.section-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}


/* --- Layout --- */
.section {
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  padding: 80px 24px;
  position: relative;
}

/* Section dividers — hairline between sections (not on hero) */
.section + .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  max-width: 1280px;
  height: 1px;
  background: rgba(232, 228, 220, 0.08);
}

/* Hide dividers on small mobile — too tight */
@media (max-width: 479px) {
  .section + .section::before {
    display: none;
  }
}

.section-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* --- Links --- */
a {
  color: var(--color-accent);
  text-decoration: none;
  position: relative;
  display: inline-block;
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 200ms ease;
}

a:hover::after {
  width: 100%;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-base);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 18px;
  padding: 16px 32px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: filter 120ms ease;
  text-decoration: none;
  line-height: 1;
}

.btn-primary::after {
  display: none;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  padding: 12px 24px;
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: filter 120ms ease;
  text-decoration: none;
  line-height: 1;
}

.btn-ghost::after {
  display: none;
}

.btn-ghost:hover {
  filter: brightness(1.2);
}

/* --- Section Fade-in --- */
/* Gap section handles its own entrance via gap-visible class */
.section-inner {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.gap-section .section-inner {
  opacity: 1;
  transform: none;
  transition: none;
}

.section-inner.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .section-inner {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   SECTION 1 — Hero (styles in hero-animation.css)
   ========================================================================== */

.hero {
  padding: 160px 62px 120px;
  overflow: hidden;
}

/* ==========================================================================
   SECTION 4 — Animation
   ========================================================================== */

.animation-section {
  padding: 40px 20px;
  justify-content: center;
}

.animation-section .section-inner {
  max-width: 1200px;
}

/* Hide desktop animation on mobile, mobile animation on desktop */
@media (max-width: 767px) {
  .anim-stage { display: none; }
}
@media (min-width: 768px) {
  .animation-section .stage-mobile { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .anim-stage {
    display: none;
  }
}

@media (min-width: 768px) {
  .animation-section {
    padding: 40px 48px;
  }
}

@media (min-width: 1024px) {
  .animation-section {
    padding: 40px 96px;
  }
}

/* ==========================================================================
   SECTION 2 — The Gap (styles in gap-animation.css)
   ========================================================================== */

/* ==========================================================================
   SECTION 3 — What We Do
   ========================================================================== */

.what-section .section-inner {
  max-width: 720px;
}

.what-text h2 {
  margin-bottom: 24px;
}

.what-text p {
  margin-bottom: 16px;
}

.what-callout {
  border-left: 2px solid rgba(232, 149, 75, 0.40);
  padding-left: 20px;
  max-width: 560px;
  margin-top: 40px;
}

.what-callout p {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  opacity: 0.85;
  margin-bottom: 0;
}

/* ==========================================================================
   SECTION 5 — Proof
   ========================================================================== */

.proof-section .section-inner {
  max-width: 720px;
}

.proof-text h2 {
  margin-bottom: 24px;
}

.proof-text p {
  margin-bottom: 16px;
}

/* Pull quote — magazine callout treatment */
.pull-quote {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-text);
  opacity: 0.85;
  border-left: 2px solid rgba(232, 149, 75, 0.60);
  padding-left: 24px;
  margin: 48px 0;
  max-width: 600px;
}

/* proof-link removed — case study not yet available */

/* ==========================================================================
   SECTION 6 — What You Get
   ========================================================================== */

.get-section .section-inner {
  max-width: 760px;
}

.get-text h2 {
  margin-bottom: 40px;
}

.deliverables-list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.deliverable-item {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  column-gap: 20px;
  padding: 0 0 32px;
}
.deliverable-item:last-child { padding-bottom: 0; }

.deliverable-num {
  position: relative;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.deliverable-num svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.deliverable-num .ring-circle {
  fill: var(--color-base);
  stroke: var(--color-accent);
  stroke-width: 1.5;
}
.deliverable-num .numeral {
  position: relative;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 32px;
  color: var(--color-accent);
  line-height: 1;
  z-index: 1;
  transform: translateY(-0.5px);
}

.deliverable-body {
  padding-top: 4px;
  min-width: 0;
}

.deliverable-title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 18px;
  color: var(--color-text);
  line-height: 1.3;
  margin: 0 0 8px;
}

.deliverable-desc {
  font-size: 16px;
  max-width: 520px;
  color: rgba(232, 228, 220, 0.70);
  line-height: 1.6;
  margin: 0;
  text-wrap: pretty;
}

.closing-line {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  margin-top: 40px;
  color: rgba(232, 228, 220, 0.45);
  letter-spacing: -0.005em;
}

.closing-callout {
  border-left: 2px solid rgba(232, 149, 75, 0.40);
  padding-left: 20px;
  max-width: 560px;
  margin-top: 48px;
}

.closing-callout p {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.4;
  opacity: 0.85;
  margin: 0;
  letter-spacing: -0.01em;
}

@media (max-width: 767px) {
  .get-section { padding-top: 48px; padding-bottom: 48px; }
  .get-section .section-label { margin-bottom: 12px; }
  .get-text h2 { margin-bottom: 16px; }
  .deliverable-item {
    grid-template-columns: 48px 1fr;
    column-gap: 14px;
    padding-bottom: 12px;
  }
  .deliverable-num { width: 44px; height: 44px; }
  .deliverable-num .numeral { font-size: 18px; }
  .deliverable-title { font-size: 16px; margin-bottom: 3px; }
  .deliverable-desc { font-size: 14px; line-height: 1.45; }
  .closing-line { font-size: 16px; margin-top: 24px; }
  .closing-callout { margin-top: 32px; }
  .closing-callout p { font-size: 18px; }
}

/* ==========================================================================
   SECTION 7 — CTA
   ========================================================================== */

.cta-section .section-inner {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cta-text h2 {
  margin-bottom: 16px;
}

.cta-blurb {
  margin-bottom: 32px;
}

.cta-primary {
  margin-bottom: 64px;
}

.cta-secondary-label {
  font-size: 14px;
  opacity: var(--opacity-meta);
  margin-bottom: 16px;
}

.cta-secondary-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  opacity: 0.30;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.footer-logo {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

/* ==========================================================================
   Responsive — Tablet (768px+)
   ========================================================================== */

@media (min-width: 768px) {
  .section {
    padding: 80px 48px;
  }

  .section + .section::before {
    left: 48px;
    right: 48px;
  }

  h2 {
    font-size: 36px;
  }

  .section-label {
    font-size: 14px;
  }

  body {
    font-size: 17px;
  }

  .cta-secondary-buttons {
    flex-direction: row;
  }

  .pull-quote {
    font-size: 19px;
  }
}

/* ==========================================================================
   Responsive — Desktop (1024px+)
   ========================================================================== */

@media (min-width: 1024px) {
  .section {
    padding: 80px 96px;
  }

  .section + .section::before {
    left: 96px;
    right: 96px;
  }

  h2 {
    font-size: 44px;
  }

  .section-label {
    font-size: 14px;
  }

  body {
    font-size: 18px;
  }

  .pull-quote {
    font-size: 21px;
  }
}
