:root {
  --black: #000000;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --paper: #f5f5f7;
  --white: #ffffff;
  --blue: #0071e3;
  --teal: #0071e3;
  --steel: #e8e8ed;
  --warm: #fbfbfd;
  --max: 1420px;
  --page-pad: clamp(24px, 4.4vw, 70px);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--black);
  color: var(--ink);
  letter-spacing: 0;
}

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

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

.scroll-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--blue);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  min-height: 68px;
  padding: 0 clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.78);
  color: var(--white);
  backdrop-filter: blur(22px);
}

.brand {
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  flex: 1;
  gap: clamp(14px, 1.7vw, 24px);
  overflow-x: auto;
  white-space: nowrap;
  color: rgba(245, 245, 247, 0.62);
  font-size: 12px;
  text-transform: none;
}

.nav-links a {
  padding: 27px 0 23px;
  border-bottom: 2px solid transparent;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--white);
  border-color: var(--white);
}

.nav-contact {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(245, 245, 247, 0.34);
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  text-transform: none;
}

main {
  overflow: hidden;
  padding-bottom: 70px;
}

.hero-full {
  position: relative;
  width: 100%;
  min-height: calc(100svh - 68px);
  margin: 0 0 clamp(24px, 3.8vw, 58px);
  overflow: hidden;
  color: var(--white);
  background: var(--black);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-full.in-view {
  opacity: 1;
  transform: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.54) 33%, rgba(0, 0, 0, 0.18) 62%, rgba(0, 0, 0, 0.1) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, transparent 42%, rgba(0, 0, 0, 0.42) 100%);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - 68px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(24px, 4vw, 60px);
}

.hero-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 20px;
  color: rgba(245, 245, 247, 0.72);
  font-size: 13px;
}

.hero-full .hero-copy {
  max-width: 780px;
  padding: clamp(64px, 11vh, 110px) 0 0;
}

.hero-full .eyebrow {
  color: rgba(245, 245, 247, 0.82);
  letter-spacing: 0.02em;
}

.hero-full h1 {
  max-width: 820px;
  color: var(--white);
  font-size: clamp(44px, 5.5vw, 86px);
  line-height: 0.97;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

.hero-full .lead {
  max-width: 650px;
  color: rgba(245, 245, 247, 0.78);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.42);
}

.hero-actions .button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.masthead {
  min-height: clamp(210px, 34vw, 420px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: clamp(46px, 7vw, 92px) 24px clamp(34px, 5vw, 70px);
  color: var(--white);
}

.scenario-masthead {
  min-height: 240px;
}

.wordmark {
  font-size: clamp(96px, 20vw, 260px);
  line-height: 0.78;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.wordmark.small {
  font-size: clamp(76px, 12vw, 160px);
}

.masthead-line,
.meta-row {
  width: min(var(--max), calc(100vw - 48px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  color: rgba(245, 245, 247, 0.68);
  font-size: clamp(11px, 1.2vw, 13px);
  text-transform: none;
}

.masthead-line span,
.meta-row span {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 12px;
}

.report-page {
  width: min(var(--max), calc(100vw - clamp(22px, 4vw, 72px)));
  margin: 0 auto clamp(24px, 3.8vw, 58px);
  padding: clamp(24px, 3.8vw, 48px);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translateY(42px) scale(0.985);
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.report-page.in-view,
.scenario-row.in-view,
.tilt-card.in-view {
  opacity: 1;
  transform: none;
}

.report-header {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 18px;
  margin-bottom: clamp(38px, 5.2vw, 78px);
  color: #86868b;
  font-size: 12px;
}

.report-header span:first-child {
  color: var(--ink);
  font-weight: 600;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.44fr) minmax(520px, 0.56fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  min-height: clamp(540px, 62vw, 720px);
}

.hero-copy {
  align-self: center;
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 12px;
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 4.2vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 650;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  font-weight: 640;
}

h3 {
  margin: 0 0 14px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.08;
  font-weight: 640;
}

.lead,
.report-page p {
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.48;
  font-weight: 400;
}

.lead {
  margin: 28px 0 0;
  max-width: 620px;
}

.image-panel {
  position: relative;
  margin: 0;
  overflow: hidden;
  min-height: clamp(420px, 42vw, 610px);
  height: clamp(420px, 42vw, 610px);
  background: #111115;
  clip-path: inset(0 0 0 0);
  isolation: isolate;
}

.image-panel::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: -30%;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.16) 48%, transparent 58%);
  transform: translateX(-38%) rotate(4deg);
  animation: media-sheen 8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  pointer-events: none;
}

.image-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.liquid-panel {
  position: absolute;
  z-index: 4;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 20px 60px rgba(0, 0, 0, 0.2);
  color: var(--white);
  backdrop-filter: blur(40px) saturate(180%);
}

.liquid-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.22), transparent 38%);
  pointer-events: none;
}

.liquid-panel span,
.liquid-panel strong {
  position: relative;
  z-index: 1;
}

.liquid-panel span {
  color: rgba(245, 245, 247, 0.72);
  font-size: 12px;
}

.liquid-panel strong {
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 550;
}

.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(calc(var(--panel-x, 0) * 1px), calc((var(--panel-y, 0) * 1px) + (var(--scroll-ratio, 0) * -18px)), 0) scale(1.045);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: media-drift 14s ease-in-out infinite alternate;
  will-change: transform;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.button.clipped {
  border-radius: 0;
  clip-path: polygon(0 12px, 12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.button:hover {
  transform: translateY(-2px);
}

.pdf-note {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.section-lead,
.model-layout,
.proof-layout,
.scope-layout,
.decision-grid {
  display: grid;
  gap: clamp(34px, 5vw, 72px);
}

.section-lead {
  grid-template-columns: 0.34fr 0.66fr;
  align-items: start;
}

.scenario-list {
  margin-top: clamp(44px, 5vw, 72px);
  border-top: 1px solid var(--ink);
}

.scenario-row {
  display: grid;
  grid-template-columns: 78px minmax(260px, 0.78fr) minmax(320px, 1.18fr);
  gap: clamp(22px, 3vw, 42px);
  align-items: start;
  padding: clamp(24px, 3.2vw, 38px) 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms ease, background 220ms ease;
}

.scenario-row:hover {
  background: linear-gradient(90deg, rgba(0, 113, 227, 0.08), transparent 46%);
  transform: translate(calc(var(--mx, 0) * 8px), calc(var(--my, 0) * 5px));
}

.scenario-row span {
  color: var(--blue);
  font-weight: 600;
}

.scenario-row strong {
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1;
  font-weight: 620;
}

.scenario-row p {
  margin: 0;
  color: #58636d;
}

.model-layout,
.scope-layout,
.proof-layout {
  grid-template-columns: 0.46fr 0.54fr;
  align-items: start;
}

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

.decision-grid article,
.layer-stack article {
  border-top: 1px solid var(--ink);
  padding-top: 22px;
}

.layer-stack {
  display: grid;
  gap: 22px;
}

.layer-stack article {
  display: grid;
  grid-template-columns: 62px 1fr;
  column-gap: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
}

.layer-stack article span {
  color: var(--blue);
  font-weight: 600;
}

.layer-stack article p {
  grid-column: 2;
  margin: 0;
}

.scope-list,
.compact-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.scope-list li,
.compact-list li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--line);
  color: #424245;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.42;
}

.scope-list li::before,
.compact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 9px;
  height: 9px;
  background: var(--blue);
}

.visual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.visual-grid img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  opacity: 0;
  transform: translateY(28px) rotateX(calc(var(--my, 0) * -4deg)) rotateY(calc(var(--mx, 0) * 4deg));
  transition: opacity 700ms ease, transform 700ms ease, box-shadow 220ms ease;
  animation: deliverable-float 9s ease-in-out infinite alternate;
  will-change: transform;
}

.visual-grid img:nth-child(2) {
  animation-delay: -3.5s;
}

.visual-grid img:hover {
  box-shadow: 0 22px 48px rgba(29, 29, 31, 0.14);
  transform: translateY(-4px) rotateX(calc(var(--my, 0) * -4deg)) rotateY(calc(var(--mx, 0) * 4deg));
}

.process-page ol {
  margin: clamp(42px, 5vw, 70px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  list-style: none;
  border-top: 1px solid var(--ink);
}

.process-page li {
  min-height: 170px;
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  color: #1d2730;
  font-weight: 500;
  line-height: 1.15;
}

.process-page li:last-child {
  border-right: 0;
}

.process-page li::before {
  display: block;
  content: counter(list-item, decimal-leading-zero);
  margin-bottom: 42px;
  color: var(--blue);
  font-size: 14px;
}

.final-cta {
  background: var(--white);
}

.final-cta h2 {
  max-width: 980px;
}

.calculator-section {
  background: #050506;
  color: var(--white);
}

.calculator-section .report-header,
.calculator-section .section-label,
.calculator-section p {
  color: rgba(245, 245, 247, 0.66);
}

.calculator-section .report-header span:first-child,
.calculator-section h2,
.calculator-section h3 {
  color: var(--white);
}

.calculator-header {
  max-width: 820px;
  margin: 0 auto clamp(36px, 5vw, 64px);
  text-align: center;
}

.estimator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
}

.estimator-form,
.estimator-result {
  padding: clamp(26px, 4vw, 48px);
}

.estimator-form {
  background: #0d0d0f;
}

.estimator-result {
  min-height: 560px;
  background: radial-gradient(circle at 70% 18%, rgba(0, 113, 227, 0.25), transparent 42%), #050506;
}

.estimator-section {
  padding: 28px 0;
  border-bottom: 1px solid #242428;
}

.estimator-section:first-child {
  padding-top: 0;
}

.estimator-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.estimator-section h3,
.estimator-result h3 {
  margin: 0 0 18px;
  font-size: clamp(19px, 1.8vw, 26px);
}

.estimator-section h3 span {
  color: var(--blue);
}

.option-row {
  display: grid;
  gap: 14px;
}

.option-row label,
.check-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  color: rgba(245, 245, 247, 0.82);
  font-size: 15px;
}

.option-row input,
.check-line input {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}

.range {
  width: 100%;
  accent-color: var(--blue);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: rgba(245, 245, 247, 0.48);
  font-size: 12px;
}

.score-card,
.result-card {
  margin-top: 24px;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.score-card span,
.result-card span {
  display: block;
  color: rgba(245, 245, 247, 0.62);
  font-size: 13px;
  margin-bottom: 10px;
}

.score-card strong {
  color: var(--white);
  font-size: clamp(58px, 8vw, 112px);
  line-height: 0.9;
  font-weight: 650;
}

.result-card strong {
  color: var(--white);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
  font-weight: 620;
}

.estimator-result .button {
  margin-top: 28px;
}

footer {
  width: min(var(--max), calc(100vw - 48px));
  margin: 0 auto;
  padding: 26px 0 48px;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
}

@keyframes media-drift {
  from {
    filter: saturate(0.96) brightness(0.98);
  }
  to {
    filter: saturate(1.08) brightness(1.04);
  }
}

@keyframes media-sheen {
  0%,
  58% {
    transform: translateX(-44%) rotate(4deg);
    opacity: 0;
  }
  68% {
    opacity: 1;
  }
  86%,
  100% {
    transform: translateX(44%) rotate(4deg);
    opacity: 0;
  }
}

@keyframes deliverable-float {
  from {
    filter: brightness(0.995);
  }
  to {
    filter: brightness(1.025);
  }
}

@media (max-width: 980px) {
  .site-nav {
    min-height: auto;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .nav-contact {
    display: none;
  }

  .masthead-line,
  .meta-row,
  .hero-grid,
  .section-lead,
  .scenario-row,
  .model-layout,
  .scope-layout,
  .proof-layout,
  .decision-grid,
  .estimator-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .image-panel {
    min-height: 360px;
  }

  .process-page ol {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-page li:nth-child(2n) {
    border-right: 0;
  }

  .hero-overlay {
    padding: 22px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 8px;
    font-size: 12px;
  }

  .hero-full h1 {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1;
    letter-spacing: -0.035em;
  }

  .hero-full .hero-copy {
    padding-top: 26px;
  }

  .hero-full .lead {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.4;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.58) 72%, rgba(0, 0, 0, 0.32) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 36%, rgba(0, 0, 0, 0.5) 100%);
  }
}

@media (max-width: 560px) {
  .report-page {
    width: calc(100vw - 22px);
    padding: 20px;
  }

  .report-header {
    grid-template-columns: 1fr auto;
  }

  .report-header span:nth-child(2) {
    display: none;
  }

  .actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .process-page ol {
    grid-template-columns: 1fr;
  }

  .process-page li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

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

@media print {
  @page {
    size: A4;
    margin: 9mm;
  }

  html,
  body {
    background: white;
    color: #111;
  }

  .site-nav,
  .masthead,
  .scroll-progress,
  .button,
  .actions,
  .pdf-note {
    display: none !important;
  }

  main {
    padding: 0;
  }

  .hero-full {
    width: auto;
    height: 180mm;
    min-height: 0;
    margin: 0 0 10mm;
    opacity: 1 !important;
    transform: none !important;
    break-inside: avoid;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-overlay {
    min-height: 180mm;
    padding: 12mm;
  }

  .hero-full h1 {
    max-width: 120mm;
    color: white;
    font-size: 30pt;
  }

  .hero-full .lead {
    max-width: 105mm;
    color: rgba(255, 255, 255, 0.78);
    font-size: 10pt;
  }

  .report-page {
    width: auto;
    min-height: 0;
    margin: 0 0 10mm;
    padding: 0;
    box-shadow: none;
    opacity: 1 !important;
    transform: none !important;
    break-inside: avoid;
  }

  .report-header {
    margin-bottom: 9mm;
    font-size: 8pt;
  }

  .hero-grid,
  .section-lead,
  .model-layout,
  .scope-layout,
  .proof-layout,
  .decision-grid {
    display: grid;
    grid-template-columns: 0.42fr 0.58fr;
    gap: 8mm;
  }

  .hero-grid {
    min-height: auto;
  }

  h1 {
    font-size: 30pt;
    line-height: 0.96;
  }

  h2 {
    font-size: 22pt;
  }

  h3 {
    font-size: 15pt;
  }

  .lead,
  .report-page p,
  .scope-list li,
  .compact-list li {
    font-size: 9pt;
    line-height: 1.36;
  }

  .image-panel {
    min-height: 0;
    max-height: 125mm;
  }

  .image-panel img {
    max-height: 125mm;
    object-fit: contain;
    transform: none !important;
  }

  .visual-grid img {
    opacity: 1 !important;
    transform: none !important;
    max-height: 86mm;
    object-fit: contain;
  }

  .process-page ol {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-page li {
    min-height: 34mm;
    font-size: 9pt;
  }

  .proof-page {
    break-before: page;
  }

  footer {
    display: none;
  }
}
