:root {
  --ink: #171814;
  --ink-soft: #55584f;
  --paper: #f1efe8;
  --paper-bright: #f8f7f2;
  --charcoal: #11120f;
  --charcoal-soft: #1b1d18;
  --line: rgba(23, 24, 20, 0.15);
  --line-dark: rgba(255, 255, 255, 0.13);
  --rust: #b86838;
  --rust-light: #d68a55;
  --sage: #99a489;
  --max: 1200px;
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
::selection { background: var(--rust); color: #fff; }

.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 999; transform: translateY(-150%); padding: 10px 14px; background: #fff; color: #000; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: #fff;
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(17, 18, 15, .92); backdrop-filter: blur(18px); border-color: var(--line-dark); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 600; letter-spacing: -.02em; }
.brand em { font-family: var(--serif); font-weight: 400; color: var(--rust-light); }
.brand-mark { width: 22px; height: 22px; border: 1px solid currentColor; border-radius: 50%; position: relative; flex: 0 0 auto; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; border: 1px solid currentColor; border-radius: 50%; }
.brand-mark::before { inset: 4px -5px 4px 7px; }
.brand-mark::after { inset: 8px 3px -5px 3px; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: .88rem; }
.site-nav a { text-decoration: none; color: rgba(255,255,255,.74); transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: #fff; }
.site-nav .nav-cta { border: 1px solid rgba(255,255,255,.28); padding: 9px 14px; color: #fff; }
.menu-button { display: none; color: #fff; border: 0; background: transparent; padding: 8px; }
.menu-button > span:not(.sr-only) { display: block; width: 23px; height: 1px; margin: 6px 0; background: currentColor; }

.hero { min-height: 780px; color: #fff; background: var(--charcoal); position: relative; overflow: hidden; display: grid; align-items: center; padding: 145px 0 90px; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 76% 34%, rgba(184,104,56,.18), transparent 33%), linear-gradient(135deg, #10110e 0%, #171913 58%, #0c0d0b 100%); }
.hero-haze { position: absolute; width: 55vw; height: 55vw; right: -20vw; bottom: -35vw; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 8vw rgba(255,255,255,.015), 0 0 0 16vw rgba(255,255,255,.012); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(50px, 8vw, 110px); align-items: center; }
.eyebrow { margin: 0 0 20px; text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 600; color: var(--rust); }
.hero .eyebrow, .section-dark .eyebrow, .download-section .eyebrow { color: var(--rust-light); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; margin-top: 0; }
h1 { font-size: clamp(3.7rem, 6.4vw, 6.7rem); letter-spacing: -.055em; max-width: 850px; margin-bottom: 28px; }
h2 { font-size: clamp(2.6rem, 4.7vw, 4.8rem); letter-spacing: -.045em; margin-bottom: 28px; }
h3 { font-size: 2rem; letter-spacing: -.025em; margin-bottom: 16px; }
.hero-lede { font-size: 1.08rem; color: rgba(255,255,255,.69); max-width: 690px; margin: 0; }
.hero-actions, .link-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border: 1px solid transparent; text-decoration: none; font-weight: 600; font-size: .9rem; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--rust); color: #fff; }
.button-primary:hover { background: #ca7440; }
.button-quiet { border-color: rgba(255,255,255,.2); color: #fff; }
.button-outline { border-color: var(--line); }
.button-quiet-light { border-color: rgba(255,255,255,.28); color: #fff; }
.hero-facts { list-style: none; padding: 0; margin: 45px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.hero-facts li { padding: 20px 16px 0 0; }
.hero-facts strong { display: block; font-size: .9rem; }
.hero-facts span { display: block; color: rgba(255,255,255,.49); font-size: .77rem; margin-top: 2px; }

.visual-panel { min-height: 570px; background: #20221c; border: 1px solid rgba(255,255,255,.13); box-shadow: 0 45px 90px rgba(0,0,0,.35); padding: 16px; transform: rotate(1deg); }
.visual-topline { display: flex; justify-content: space-between; font-size: .72rem; color: rgba(255,255,255,.45); padding: 0 2px 14px; }
.status-dot::before { content: ""; width: 6px; height: 6px; display: inline-block; margin-right: 7px; border-radius: 50%; background: #72a06d; }
.visual-image { height: 370px; position: relative; overflow: hidden; background: linear-gradient(#5d6259 0 38%, #343830 38% 100%); }
.visual-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,11,9,.75), transparent 58%); }
.visual-ridge { position: absolute; width: 130%; height: 45%; left: -15%; bottom: 16%; background: #272a25; clip-path: polygon(0 90%, 13% 55%, 24% 75%, 39% 21%, 48% 62%, 62% 37%, 76% 70%, 90% 30%, 100% 65%, 100% 100%, 0 100%); }
.ridge-two { bottom: -8%; background: #171915; transform: scaleX(-1); }
.visual-sun { position: absolute; width: 70px; height: 70px; top: 58px; right: 90px; border-radius: 50%; background: #d69a60; box-shadow: 0 0 70px rgba(214,154,96,.45); }
.visual-image p { position: absolute; z-index: 3; left: 24px; bottom: 18px; margin: 0; font-family: var(--serif); font-size: 1.8rem; line-height: 1.15; }
.visual-image em { color: rgba(255,255,255,.58); }
.visual-filmstrip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-top: 11px; }
.visual-filmstrip span { height: 72px; background: linear-gradient(145deg, #454a3f, #282b25); border: 1px solid transparent; }
.visual-filmstrip span:nth-child(2), .visual-filmstrip span:nth-child(5) { background: linear-gradient(145deg, #645844, #292c26); }
.visual-filmstrip .selected { border-color: var(--rust-light); }
.visual-toolbar { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding-top: 12px; }
.visual-toolbar span { color: rgba(255,255,255,.57); font-size: .62rem; border: 1px solid rgba(255,255,255,.1); padding: 5px 8px; }

.truth-band { background: #d9d4c8; border-bottom: 1px solid var(--line); }
.truth-grid { display: grid; grid-template-columns: .6fr 1.35fr .55fr; gap: 50px; align-items: start; padding-top: 46px; padding-bottom: 46px; }
.truth-grid p { margin: 0; color: #3d4039; }
.truth-title { font-family: var(--serif); font-size: 1.55rem; line-height: 1.15; color: var(--ink) !important; }
.truth-grid a, .text-link { color: var(--rust); text-decoration: none; font-weight: 600; font-size: .9rem; }

.section { padding: clamp(90px, 11vw, 150px) 0; }
.split-heading, .attribution-grid { display: grid; grid-template-columns: 1fr .78fr; gap: clamp(60px, 10vw, 140px); align-items: start; }
.prose { font-size: 1.08rem; color: var(--ink-soft); }
.prose p:first-child { margin-top: 5px; }
.prose p + p { margin-top: 25px; }
.section-dark { color: #fff; background: var(--charcoal); }
.section-intro { display: grid; grid-template-columns: .9fr 1.3fr; column-gap: 100px; align-items: end; margin-bottom: 65px; }
.section-intro .eyebrow { grid-column: 1 / -1; }
.section-intro h2 { margin-bottom: 0; }
.section-intro > p:last-child { color: rgba(255,255,255,.58); max-width: 430px; justify-self: end; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "stacking culling toolbar"
    "stacking xmp xmp"
    "export export loading"
    "curves curves curves";
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.feature-card { min-width: 0; min-height: 340px; padding: 34px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); background: rgba(255,255,255,.018); }
.feature-card:hover { background: rgba(255,255,255,.035); }
.feature-card p, .feature-card li { color: rgba(255,255,255,.59); }
.feature-card ul { padding-left: 18px; margin-bottom: 0; }
.feature-number { display: block; color: var(--rust-light); font-size: .72rem; letter-spacing: .12em; margin-bottom: 55px; }
.feature-stacking { grid-area: stacking; }
.feature-culling { grid-area: culling; }
.feature-toolbar { grid-area: toolbar; }
.feature-xmp { grid-area: xmp; }
.feature-export { grid-area: export; }
.feature-loading { grid-area: loading; }
.feature-curves { grid-area: curves; }
.feature-large { min-height: 680px; display: flex; flex-direction: column; }
.feature-large ul { margin-top: 34px; }
.feature-wide {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  grid-template-areas:
    "number number"
    "copy list";
  column-gap: 45px;
  align-content: start;
}
.feature-wide > .feature-number { grid-area: number; }
.feature-wide > div:first-of-type { grid-area: copy; }
.feature-wide > .mini-list { grid-area: list; }
.feature-curves { min-height: 280px; }
.mini-list { display: grid; align-content: end; }
.mini-list span { padding: 10px 0; border-bottom: 1px solid var(--line-dark); color: rgba(255,255,255,.65); font-size: .86rem; }
.center-action { text-align: center; margin-top: 45px; }
.foundation-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(50px, 9vw, 130px); align-items: center; }
.foundation-image { min-height: 560px; position: relative; background: #d6d1c5; overflow: hidden; }
.foundation-image::before { content: ""; position: absolute; inset: 15%; border-left: 1px solid rgba(23,24,20,.14); border-bottom: 1px solid rgba(23,24,20,.14); }
.curve { position: absolute; inset: 15%; border-radius: 50%; border-top: 2px solid transparent; transform: rotate(-28deg); }
.curve-luma { border-left: 2px solid var(--ink); }
.curve-red { inset: 22%; border-left: 1px solid var(--rust); transform: rotate(-36deg); }
.foundation-image span { position: absolute; bottom: 30px; left: 30px; font-family: var(--serif); font-size: 1.5rem; }
.foundation-copy p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.06rem; }
.status-section { background: #dedace; }
.status-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.status-card { background: var(--paper-bright); padding: clamp(30px, 5vw, 62px); border-top: 3px solid var(--rust); }
.status-card p { color: var(--ink-soft); }
.status-heading { font-weight: 600; margin-bottom: 28px; }
.pulse { width: 9px; height: 9px; display: inline-block; margin-right: 9px; border-radius: 50%; background: #73986b; box-shadow: 0 0 0 6px rgba(115,152,107,.15); }
.download-section { color: #fff; background: var(--charcoal); padding-top: 90px; padding-bottom: 90px; }
.download-box { display: grid; grid-template-columns: 1fr auto; gap: 20px 80px; align-items: center; border: 1px solid var(--line-dark); padding: clamp(35px, 7vw, 85px); }
.download-box h2 { max-width: 760px; margin-bottom: 18px; }
.download-box p { color: rgba(255,255,255,.6); max-width: 690px; }
.download-actions { display: grid; gap: 10px; min-width: 220px; }
.download-note { grid-column: 1 / -1; margin: 25px 0 0; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: .78rem; }
.attribution-section { background: var(--paper-bright); }
.attribution-grid .link-row { display: grid; justify-items: start; gap: 12px; }
.site-footer { color: rgba(255,255,255,.58); background: #0c0d0b; padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, .65fr); gap: 55px; }
.footer-brand { color: #fff; }
.footer-grid h2 { font-family: var(--sans); color: #fff; font-weight: 600; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid a { display: block; text-decoration: none; margin: 9px 0; font-size: .86rem; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { max-width: 310px; font-size: .86rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 50px; margin-top: 65px; padding-top: 25px; border-top: 1px solid var(--line-dark); font-size: .72rem; }
.footer-bottom p { max-width: 570px; margin: 0; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

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

@media (max-width: 980px) {
  .menu-button { display: block; }
  .site-nav { position: fixed; inset: 74px 0 auto; display: none; padding: 25px 20px 35px; background: rgba(17,18,15,.98); border-top: 1px solid var(--line-dark); flex-direction: column; align-items: stretch; gap: 7px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 0; }
  .site-nav .nav-cta { text-align: center; margin-top: 10px; }
  .hero-grid, .foundation-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
  .visual-panel { max-width: 680px; width: 100%; justify-self: center; transform: none; }
  .truth-grid { grid-template-columns: 1fr; gap: 20px; }
  .section-intro { grid-template-columns: 1fr; }
  .section-intro > p:last-child { justify-self: start; }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "stacking culling"
      "toolbar xmp"
      "export export"
      "loading curves";
  }
  .feature-large { min-height: 340px; }
  .feature-large ul { margin-top: 20px; }
  .feature-curves { min-height: 340px; }
  .status-grid { grid-template-columns: 1fr; gap: 25px; }
  .download-box { grid-template-columns: 1fr; }
  .download-note { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 66px; }
  .site-nav { top: 66px; }
  .hero { min-height: auto; padding: 115px 0 70px; }
  h1 { font-size: clamp(3.1rem, 15vw, 4.5rem); }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts li { padding-bottom: 10px; }
  .visual-panel { min-height: auto; padding: 10px; }
  .visual-image { height: 290px; }
  .visual-filmstrip span { height: 52px; }
  .split-heading, .attribution-grid { grid-template-columns: 1fr; gap: 25px; }
  .section { padding: 80px 0; }
  .feature-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "stacking"
      "culling"
      "toolbar"
      "xmp"
      "export"
      "loading"
      "curves";
  }
  .feature-wide {
    grid-template-columns: 1fr;
    grid-template-areas:
      "number"
      "copy"
      "list";
    row-gap: 24px;
  }
  .feature-wide > .feature-number { margin-bottom: 31px; }
  .download-box { padding: 34px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 15px; }
}
