:root {
  --ink: #0b1b27;
  --ink-2: #163042;
  --muted: #60717d;
  --paper: #f5f8f8;
  --white: #ffffff;
  --ice: #dff4f6;
  --aqua: #68d9e8;
  --aqua-2: #a5eef4;
  --deep: #071722;
  --deep-2: #0d2432;
  --line: #d9e3e7;
  --accent: #f2b966;
  --shadow: 0 18px 50px rgba(5, 27, 40, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 10px 14px; border-radius: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 23, 34, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--aqua); color: var(--deep); font-size: 19px; transform: rotate(-7deg); }
.brand strong { display: block; font-size: .96rem; letter-spacing: .015em; }
.brand small { display: block; opacity: .62; font-size: .72rem; margin-top: 1px; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a { color: rgba(255,255,255,.78); text-decoration: none; font-size: .88rem; font-weight: 650; }
.site-header nav a:hover { color: #fff; }

.hero { min-height: 720px; position: relative; display: grid; align-items: center; overflow: hidden; background: var(--deep); }
.hero-photo { position: absolute; inset: 0; background: url("narwhal-ice-edge.jpg") center 55% / cover no-repeat; transform: scale(1.015); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,18,27,.93) 0%, rgba(4,18,27,.79) 44%, rgba(4,18,27,.25) 72%, rgba(4,18,27,.08) 100%), linear-gradient(0deg, rgba(4,18,27,.24), transparent 45%); }
.hero-content { position: relative; z-index: 2; color: #fff; padding: 98px 0 84px; }
.eyebrow { margin: 0 0 18px; letter-spacing: .18em; font-size: .72rem; font-weight: 800; color: var(--aqua-2); }
.eyebrow.dark { color: #1f7280; }
.hero h1 { font-size: clamp(3.4rem, 7vw, 6.6rem); line-height: .94; letter-spacing: -.055em; margin: 0; max-width: 900px; font-weight: 770; }
.hero h1 span { color: var(--aqua-2); }
.hero-copy { max-width: 620px; font-size: clamp(1.08rem, 2vw, 1.28rem); color: rgba(255,255,255,.78); margin: 28px 0 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.button { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 21px; border-radius: 999px; font-weight: 760; font-size: .92rem; }
.button-primary { background: var(--aqua); color: var(--deep); }
.button-primary:hover { background: var(--aqua-2); }
.button-ghost { border: 1px solid rgba(255,255,255,.32); color: #fff; background: rgba(255,255,255,.05); }
.button-ghost:hover { background: rgba(255,255,255,.1); }
.hero-note { margin-top: 48px; color: rgba(255,255,255,.6); font-size: .81rem; }
.hero-note span { color: var(--accent); margin-right: 6px; }

.metrics { background: #fff; border-bottom: 1px solid var(--line); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric-grid > div { padding: 30px 26px; border-right: 1px solid var(--line); }
.metric-grid > div:first-child { padding-left: 0; }
.metric-grid > div:last-child { border-right: 0; }
.metric-grid strong { display: block; font-size: 1.85rem; letter-spacing: -.035em; }
.metric-grid span { color: var(--muted); font-size: .82rem; }
.demo-note { text-align: center; margin: 0; padding: 0 20px 20px; color: #87949c; font-size: .72rem; }

.section { padding: 104px 0; }
.section-heading { max-width: 830px; margin-bottom: 48px; }
.section-heading h2, .engineering-copy h2, .insight-main h2, .photo-break h2 { margin: 0; font-size: clamp(2.35rem, 4vw, 4.2rem); line-height: 1.02; letter-spacing: -.045em; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: end; }
.split-heading > p { color: var(--muted); margin: 0 0 4px; font-size: 1.02rem; }

.pipeline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; min-height: 315px; position: relative; box-shadow: 0 2px 0 rgba(9,38,52,.02); transition: transform .2s ease, box-shadow .2s ease; }
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-number { position: absolute; right: 22px; top: 20px; color: #a3b2ba; font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.step-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--ice); display: grid; place-items: center; color: #1b7b88; font-size: 1.5rem; margin-bottom: 35px; }
.step-card h3 { font-size: 1.35rem; margin: 0 0 10px; }
.step-card p { color: var(--muted); margin: 0; font-size: .92rem; }
.step-card small { position: absolute; left: 26px; right: 26px; bottom: 24px; color: #91a0a8; font-size: .72rem; }

.section-dark { background: var(--deep); color: #fff; }
.light-heading { max-width: 940px; }
.light-heading h2 { color: #fff; }
.dashboard-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.chart-card { background: var(--deep-2); border: 1px solid rgba(255,255,255,.09); border-radius: 20px; padding: 28px; overflow: hidden; min-height: 380px; }
.chart-wide { min-height: 430px; }
.chart-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.chart-label, .micro-label { color: #7f9aaa; letter-spacing: .15em; font-size: .66rem; font-weight: 800; }
.chart-card h3 { margin: 4px 0 0; font-size: 1.45rem; }
.status-pill { border: 1px solid rgba(104,217,232,.35); background: rgba(104,217,232,.08); color: var(--aqua-2); border-radius: 999px; padding: 6px 10px; font-size: .68rem; font-weight: 700; }
.delta { color: #9de7bd; font-weight: 800; }
.bar-chart { height: 250px; margin-top: 30px; display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.13); background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px); background-size: 100% 25%; }
.bar { height: var(--h); position: relative; border-radius: 7px 7px 0 0; background: linear-gradient(180deg, var(--aqua), #2a7e8d); min-height: 10px; }
.bar span { position: absolute; left: 50%; transform: translateX(-50%); bottom: -28px; white-space: nowrap; color: #8ca0ac; font-size: .62rem; }
.chart-caption { color: #8ca0ac; margin: 42px 0 0; font-size: .78rem; }
.photo-card { padding: 0; display: grid; grid-template-rows: 240px 1fr; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-caption { padding: 24px 28px 28px; }
.photo-caption p { color: #91a7b3; margin-bottom: 0; font-size: .88rem; }
.line-chart { width: 100%; height: 220px; margin-top: 30px; overflow: visible; }
.gridline { stroke: rgba(255,255,255,.08); stroke-width: 1; fill: none; }
.area { fill: url(#area); }
.signal { fill: none; stroke: var(--aqua); stroke-width: 4; stroke-linecap: round; }
.line-chart circle { fill: var(--deep-2); stroke: var(--aqua); stroke-width: 4; }
.axis-row { display: flex; justify-content: space-between; color: #6f8794; font-size: .62rem; font-weight: 700; letter-spacing: .08em; }
.donut-wrap { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; margin-top: 46px; }
.donut { width: 180px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--aqua) 0 44%, #438ea0 44% 75%, #234b5c 75% 100%); position: relative; }
.donut::after { content: "100%\A NARWHAL"; white-space: pre; position: absolute; inset: 29px; border-radius: 50%; background: var(--deep-2); display: grid; place-items: center; text-align: center; color: #bed4dd; font-size: .68rem; font-weight: 800; letter-spacing: .08em; }
.donut-key { display: grid; gap: 14px; }
.donut-key span { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 9px; color: #9fb1bb; font-size: .78rem; }
.donut-key b { color: #fff; }
.key-dot { width: 8px; height: 8px; border-radius: 50%; display: block; }
.k1 { background: var(--aqua); } .k2 { background: #438ea0; } .k3 { background: #234b5c; }

.engineering-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 90px; align-items: center; }
.engineering-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.02rem; max-width: 640px; }
.check-list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-weight: 680; }
.check-list span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ice); color: #177280; font-size: .78rem; }
.quote-panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 42px; box-shadow: var(--shadow); }
.quote-mark { margin: -8px 0 -18px; font-family: Georgia, serif; font-size: 5rem; line-height: 1; color: var(--aqua); }
.quote { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; line-height: 1.35; color: var(--ink-2); }
.quote-rule { width: 48px; border-top: 3px solid var(--aqua); margin: 30px 0 18px; }
.quote-credit { margin: 0; font-weight: 780; font-size: .84rem; }
.quote-credit span { color: var(--muted); font-weight: 500; }

.photo-break { min-height: 560px; position: relative; display: grid; align-items: center; color: #fff; background: url("narwhal-ice-edge.jpg") center 62% / cover no-repeat fixed; }
.photo-break-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,22,32,.88), rgba(5,22,32,.46) 65%, rgba(5,22,32,.16)); }
.photo-break-copy { position: relative; z-index: 1; padding: 84px 0; }
.photo-break-copy h2 { max-width: 760px; }
.photo-break-copy > p:last-child { max-width: 620px; color: rgba(255,255,255,.74); font-size: 1rem; }

.insight-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; }
.insight-main > p:not(.eyebrow) { max-width: 720px; color: var(--muted); font-size: 1.04rem; }
.formula { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-top: 38px; padding: 22px 24px; border-radius: 16px; border: 1px solid var(--line); background: #fff; width: fit-content; font-size: .96rem; }
.formula span { font-weight: 760; }
.formula b { color: #92a2aa; }
.formula strong { color: #176f7d; }
.insight-aside { align-self: start; background: var(--deep); color: #fff; border-radius: 20px; padding: 34px; }
.insight-aside h3 { font-size: 1.5rem; line-height: 1.2; margin: 10px 0 12px; }
.insight-aside p { color: #9db2bd; font-size: .9rem; }
.insight-aside .aside-joke { color: var(--aqua-2); font-weight: 700; margin-bottom: 0; }

.site-footer { background: #031018; color: #fff; padding: 60px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 48px; align-items: start; }
.footer-brand { align-items: flex-start; }
.privacy-note strong, .credits strong { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #b7c8d0; }
.privacy-note p, .credits p { color: #718995; font-size: .76rem; line-height: 1.6; }
.credits a { color: #b2dde2; }
.credits a:hover { color: #fff; }

@media (max-width: 960px) {
  .site-header nav { display: none; }
  .hero { min-height: 650px; }
  .hero-shade { background: linear-gradient(90deg, rgba(4,18,27,.9), rgba(4,18,27,.56)); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid > div:nth-child(2) { border-right: 0; }
  .metric-grid > div:first-child, .metric-grid > div:nth-child(3) { padding-left: 20px; }
  .pipeline-grid { grid-template-columns: repeat(2, 1fr); }
  .split-heading, .engineering-grid, .insight-grid, .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .photo-break { background-attachment: scroll; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .nav-wrap { min-height: 66px; }
  .brand small { display: none; }
  .hero { min-height: 610px; }
  .hero-content { padding: 78px 0 62px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .section { padding: 74px 0; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid strong { font-size: 1.5rem; }
  .metric-grid > div { padding: 22px 16px; }
  .pipeline-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 280px; }
  .dashboard-grid { gap: 14px; }
  .chart-card { padding: 22px; min-height: 340px; }
  .photo-card { padding: 0; }
  .donut-wrap { grid-template-columns: 1fr; }
  .donut { margin: 0 auto; }
  .quote-panel { padding: 28px; }
  .quote { font-size: 1.35rem; }
  .formula { gap: 10px; }
  .photo-break { min-height: 510px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
