/* ===== Fonts ===== */
@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('assets/fonts/Barlow-Light.ttf') format('truetype');
  font-weight: 300; font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('assets/fonts/Barlow-Regular.ttf') format('truetype');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('assets/fonts/Barlow-Medium.ttf') format('truetype');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('assets/fonts/Barlow-SemiBold.ttf') format('truetype');
  font-weight: 600; font-display: swap;
}

/* ===== Tokens ===== */
:root {
  --roccia: #14181A;
  --roccia-2: #1C2225;
  --ghiaccio: #F4F5F4;
  --ghiaccio-bg: #E6EBEA;
  --ombra: #3F6C7D;
  --ombra-dark: #5B93A6;
  --line: rgba(20,24,26,0.12);
  --line-dark: rgba(244,245,244,0.14);
  --serif-space: -0.015em;
  --ease: cubic-bezier(.16,.8,.24,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--ghiaccio-bg);
  color: var(--roccia);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: var(--serif-space);
  line-height: 1.08;
}

em { font-style: normal; color: var(--ombra); }

a { color: inherit; text-decoration: none; }

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

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

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

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(20,24,26,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 32px;
  height: 76px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 28px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: var(--ghiaccio); font-size: 15px; font-weight: 500;
  opacity: 0.82; transition: opacity 0.25s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--ombra-dark);
  color: var(--roccia) !important;
  padding: 10px 20px; border-radius: 999px;
  font-weight: 600 !important; opacity: 1 !important;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-cta:hover { transform: translateY(-2px) scale(1.02); background: #74AEC0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 16px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.btn-primary {
  background: var(--roccia); color: var(--ghiaccio);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(20,24,26,0.28);
}
.btn-ghost {
  color: var(--roccia); opacity: 0.72; font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding: 15px 4px;
}
.btn-ghost:hover { opacity: 1; }
.btn-lg { font-size: 19px; padding: 20px 36px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--roccia);
  color: var(--ghiaccio);
  padding: 180px 32px 100px;
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hero-peaks {
  position: absolute; inset: 0; z-index: 0; opacity: 0.9;
}
.hero-peaks svg { width: 100%; height: 100%; }
.peak { stroke-width: 2.5; }
.peak-1 { stroke: rgba(244,245,244,0.10); }
.peak-2 { stroke: rgba(244,245,244,0.16); }
.peak-3 { stroke: rgba(91,147,166,0.28); }
.peak-shadow { stroke: rgba(91,147,166,0.45); stroke-width: 3; }

.hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; text-align: center; }
.eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px;
  letter-spacing: 0.18em; color: var(--ombra-dark); margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  margin-bottom: 28px;
}
.hero-title span { display: block; }
.hero-sub {
  max-width: 640px; margin: 0 auto 44px;
  font-size: 19px; color: rgba(244,245,244,0.78); font-weight: 300;
}
.hero-actions {
  display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap;
}
.hero .btn-primary { box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.hero .btn-ghost { color: var(--ghiaccio); opacity: 0.68; }
.hero .btn-ghost:hover { opacity: 1; }

.hero-stats {
  position: relative; z-index: 1;
  max-width: 900px; margin: 88px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; text-align: left;
  border-top: 1px solid var(--line-dark); padding-top: 44px;
}
.stat { display: flex; flex-direction: column; align-items: flex-start; }
.stat-num, .stat-num-text {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 3rem; color: var(--ombra-dark); line-height: 1;
}
.stat-suffix { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.6rem; color: var(--ombra-dark); }
.stat-label {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.04em; color: rgba(244,245,244,0.6);
  margin-top: 10px; line-height: 1.5;
}

/* ===== Manifesto ===== */
.manifesto { padding: 140px 0; background: var(--ghiaccio-bg); }
.kicker {
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ombra); margin-bottom: 18px;
}
.kicker-light { color: var(--ombra-dark); }
.manifesto h2 {
  font-size: clamp(1.9rem, 4vw, 3rem); max-width: 760px; margin-bottom: 76px;
}
.beliefs { list-style: none; }
.beliefs li {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 32px; padding: 36px 0;
  border-top: 1px solid var(--line);
}
.beliefs li:last-child { border-bottom: 1px solid var(--line); }
.belief-index {
  font-family: 'JetBrains Mono', monospace; font-size: 14px;
  color: var(--ombra); opacity: 0.7; padding-top: 4px;
}
.beliefs p { font-size: 19px; max-width: 680px; }
.belief-highlight { background: var(--roccia); color: var(--ghiaccio); margin: 0 -32px; padding: 36px 32px; border: none !important; }
.belief-highlight .belief-index { color: var(--ombra-dark); opacity: 1; }
.belief-highlight em { color: var(--ombra-dark); }

/* ===== Case / Anecdote ===== */
.case {
  position: relative;
  background: var(--roccia); color: var(--ghiaccio);
  padding: 140px 0;
  overflow: hidden;
}
.case-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 15% 20%, rgba(91,147,166,0.18), transparent 70%),
    radial-gradient(500px 500px at 90% 80%, rgba(63,108,125,0.22), transparent 70%);
}
.case-inner { position: relative; z-index: 1; }
.case-title {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  max-width: 820px; margin-bottom: 48px;
}
.case-body { max-width: 720px; }
.case-body p { font-size: 19px; color: rgba(244,245,244,0.82); font-weight: 300; margin-bottom: 20px; }
.case-punchline { color: var(--ghiaccio) !important; font-weight: 500 !important; font-size: 21px !important; }

.case-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 80px; padding-top: 44px; border-top: 1px solid var(--line-dark);
  max-width: 900px;
}
.case-stat { display: flex; flex-direction: column; }
.case-stat .stat-num, .case-stat .stat-num-text { font-size: 3.2rem; color: var(--ombra-dark); }
.case-stat .stat-label { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: rgba(244,245,244,0.6); margin-top: 10px; }

/* ===== Method ===== */
.method { padding: 140px 0; background: var(--ghiaccio-bg); }
.method h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 760px; margin-bottom: 70px; }
.method-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  margin-bottom: 90px;
}
.method-card {
  background: var(--ghiaccio-bg); padding: 36px 28px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.method-card:hover { background: #DEE6E4; transform: translateY(-4px); }
.method-num {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: var(--ombra); margin-bottom: 22px;
}
.method-card h3 { font-size: 19px; margin-bottom: 12px; }
.method-card p { font-size: 15.5px; opacity: 0.78; }

.compare { border-top: 1px solid var(--line); }
.compare-row {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.compare-head {
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
  letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6;
}
.compare-row span:first-child { font-weight: 500; }
.compare-you { background: var(--roccia); color: var(--ghiaccio); margin: 0 -32px; padding: 20px 32px; border: none; }
.compare-you span:first-child { color: var(--ombra-dark); font-family: 'Space Grotesk', sans-serif; font-weight: 700; }

/* ===== About ===== */
.about { padding: 140px 0; background: var(--roccia); color: var(--ghiaccio); }
.about-inner {
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 60px; align-items: center;
}
.about-text h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 0 0 32px; }
.about-text p { font-size: 17px; color: rgba(244,245,244,0.78); font-weight: 300; margin-bottom: 18px; }
.about-text em { color: var(--ombra-dark); font-style: normal; font-weight: 500; }
.about-mark { justify-self: center; }
.about-mark img { width: 220px; filter: invert(1); opacity: 0.9; }

/* ===== CTA final ===== */
.cta-final {
  position: relative;
  background: var(--ghiaccio-bg);
  padding: 160px 0 130px; text-align: center; overflow: hidden;
}
.cta-peaks { position: absolute; inset: 0; opacity: 0.5; }
.cta-peaks svg { width: 100%; height: 100%; }
.cta-peaks .peak-1 { stroke: rgba(20,24,26,0.06); stroke-width: 2.5; }
.cta-peaks .peak-shadow { stroke: rgba(63,108,125,0.28); stroke-width: 3; }
.cta-inner { position: relative; z-index: 1; }
.cta-final h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 24px; }
.cta-sub { max-width: 560px; margin: 0 auto 48px; font-size: 18px; opacity: 0.75; }

/* ===== Footer ===== */
.foot { background: var(--roccia); padding: 32px 0; }
.foot-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; gap: 12px;
}
.foot-inner span { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: rgba(244,245,244,0.5); }

/* ===== Reveal animation base state ===== */
.reveal { opacity: 0; transform: translateY(28px); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 140px 24px 80px; }
  .hero-stats { grid-template-columns: 1fr; gap: 36px; }
  .beliefs li { grid-template-columns: 1fr; gap: 12px; }
  .belief-highlight { margin: 0; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .compare-row { grid-template-columns: 1fr; gap: 6px; }
  .compare-you { margin: 0; }
  .about-inner { grid-template-columns: 1fr; text-align: center; }
  .about-mark { order: -1; }
  .case-stats { grid-template-columns: 1fr; gap: 40px; }
  .section-inner { padding: 0 24px; }
}
@media (max-width: 560px) {
  .method-grid { grid-template-columns: 1fr; }
}
