:root {
  --ink: #141517;
  --paper: #f5f4ef;
  --white: #fff;
  --muted: #676a67;
  --line: #d7d6d0;
  --accent: #d9ff38;
  --blue: #d9eff1;
  --max: 1320px;
  --body-size: 1.5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; font-size: 17px; line-height: 1.6; }
img, video { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin-top: 0; }
h1, h2, h3 { margin: 0; font-family: Arial, Helvetica, sans-serif; font-weight: 800; line-height: 1.02; letter-spacing: -.045em; }
h1 { font-size: clamp(3.2rem, 7vw, 6.4rem); }
h2 { font-size: clamp(1.7rem, 5vw, 3rem); }
h3 { font-size: clamp(1.8rem, 2.6vw, 2.6rem); }

.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; max-width: var(--max); margin: 0 auto; padding: 16px 28px; border-bottom: 1px solid var(--line); background: rgba(245,244,239,.92); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: var(--accent); background: var(--ink); font-size: .75rem; }
nav { display: flex; gap: 26px; font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
nav a:hover, nav a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }

main, footer { max-width: var(--max); margin: 0 auto; }
.hero { display: grid; grid-template-columns: 1fr .9fr; min-height: 790px; border-bottom: 1px solid var(--line); }
.hero-copy { display: flex; flex-direction: column; padding: clamp(70px, 9vw, 125px) clamp(28px, 6vw, 78px) 42px 28px; }
.kicker, .version-tag, .small-title, .section-label { margin: 0 0 25px; font-family: Arial, Helvetica, sans-serif; font-size: .76rem; font-weight: 800; line-height: 1.35; letter-spacing: .12em; text-transform: uppercase; }
.section-label { font-size: 1.1rem; }
.lead { max-width: 690px; margin: 34px 0 0; }
.lead, .overview-copy p, .project-heading > p, .system-intro p, .video-copy p:not(.small-title), .app-copy > p, .health-reference p:not(.small-title):not(.credit), .about p:not(.small-title):not(.role) { font-size: var(--body-size); line-height: 1.7; }
.hero-actions, .about-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid var(--ink); font-size: .84rem; font-weight: 800; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--accent); }
.quick-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: auto 0 0; padding: 65px 0 0; list-style: none; }
.quick-facts li { padding-top: 13px; border-top: 1px solid var(--line); }
.quick-facts strong, .quick-facts span { display: block; }
.quick-facts span { margin-top: 5px; color: var(--muted); font-size: .82rem; }
.hero-image { position: relative; min-height: 620px; margin: 0; overflow: hidden; background: #d4d1c9; }
.hero-image img { height: 100%; object-fit: cover; }
.hero-image figcaption, .feature-photo figcaption, .concept-card figcaption, .gallery figcaption, .health-reference figcaption { position: absolute; inset: auto 14px 14px; padding: 8px 10px; color: white; background: rgba(20,21,23,.86); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.overview { display: grid; grid-template-columns: .7fr 2fr 1fr; gap: 55px; padding: 110px 28px; border-bottom: 1px solid var(--line); }
.overview-copy h2 { max-width: 900px; margin-bottom: 38px; }
.overview-copy p { max-width: 800px; }
.relevance { padding: 24px; align-self: start; border: 1px solid var(--ink); background: var(--white); }
.relevance ul { margin: 0; padding-left: 18px; }
.relevance li { margin: 10px 0; }

.project-section { padding: 120px 28px; border-bottom: 1px solid var(--line); }
.project-section.v2 { background: #eeeee9; }
.project-heading { display: grid; grid-template-columns: 1.35fr .65fr; gap: 70px; align-items: end; margin-bottom: 65px; }
.project-heading > p { max-width: 550px; margin: 0; }
.version-tag { margin-bottom: 20px; color: #596900; }
.system-grid { display: grid; grid-template-columns: 1fr 1.35fr; margin-bottom: 75px; }
.system-grid.dark { color: var(--paper); background: var(--ink); }
.system-grid.accent { background: var(--accent); }
.system-intro { padding: clamp(32px, 5vw, 65px); }
.system-intro p { max-width: 560px; margin: 28px 0 0; }
.system-list { margin: 0; padding: 0; border-left: 1px solid currentColor; }
.system-list div { display: grid; grid-template-columns: 130px 1fr; gap: 25px; padding: 23px 30px; border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.system-list div:last-child { border-bottom: 0; }
.system-list dt { font-weight: 800; }
.system-list dd { margin: 0; }
.feature-photo { position: relative; height: min(75vw, 850px); margin: 0 0 80px; overflow: hidden; background: #ccc; }
.feature-photo img { height: 100%; object-fit: cover; object-position: center 48%; }
.media-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 28px; }
.text-link { font-weight: 800; text-decoration: underline; text-underline-offset: 5px; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.video-grid figure { margin: 0; background: var(--ink); }
.video-grid video { aspect-ratio: 16 / 9; object-fit: contain; background: #090a0b; }
.video-grid figcaption { padding: 12px 14px; color: white; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.v2-intro-grid { display: grid; grid-template-columns: 1.25fr .75fr; margin-bottom: 75px; background: var(--white); }
.concept-card { position: relative; min-height: 620px; margin: 0; padding: 24px; border-right: 1px solid var(--line); }
.concept-card img { height: 100%; object-fit: contain; }
.pipeline-card { padding: 48px 36px; }
.pipeline-card ol { margin: 0; padding: 0; list-style: none; }
.pipeline-card li { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 19px 0; border-top: 1px solid var(--line); }
.pipeline-card li > span { color: var(--muted); font-size: .74rem; font-weight: 800; }
.pipeline-card strong { font-size: 1.25rem; }
.pipeline-card p { margin: 5px 0 0; color: var(--muted); }
.video-feature { display: grid; grid-template-columns: .65fr 1.35fr; margin: 75px 0; color: white; background: var(--ink); }
.video-copy { padding: clamp(32px, 5vw, 62px); }
.video-copy p:not(.small-title) { margin: 28px 0; }
.video-feature video { height: 100%; max-height: 720px; object-fit: contain; background: #08090a; }
.gallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: 280px; gap: 10px; margin-bottom: 75px; }
.gallery figure { position: relative; margin: 0; overflow: hidden; background: #d4d1c9; }
.gallery img { height: 100%; object-fit: cover; }
.gallery-main { grid-row: span 2; }
.app-interface { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(45px, 8vw, 110px); align-items: center; margin-bottom: 75px; padding: clamp(34px, 6vw, 78px); color: var(--paper); background: var(--ink); }
.status-line { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-bottom: 23px; }
.status-line .small-title { margin: 0; }
.work-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 2px 10px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: .69rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.app-copy h3 { max-width: 700px; margin-bottom: 30px; }
.app-copy > p { max-width: 720px; }
.app-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 38px 0 0; padding: 0; list-style: none; }
.app-steps li { display: grid; grid-template-columns: 35px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid rgba(245,244,239,.25); }
.app-steps li > span { color: var(--accent); font-size: .72rem; font-weight: 800; }
.app-steps strong { font-size: 1rem; }
.app-steps p { margin: 4px 0 0; color: #b8bbb6; font-size: .9rem; line-height: 1.5; }
.phone { width: min(100%, 360px); margin: 0 auto; padding: 13px; border: 2px solid #363a3c; border-radius: 44px; background: #08090a; box-shadow: 0 26px 65px rgba(0,0,0,.35); }
.phone-speaker { width: 34%; height: 5px; margin: 3px auto 11px; border-radius: 999px; background: #414548; }
.phone-screen { min-height: 610px; overflow: hidden; padding: 28px 21px 25px; border-radius: 31px; color: var(--ink); background: #f4f3ec; }
.app-topbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: .86rem; font-weight: 800; }
.sync-dot { color: #49720a; font-size: .67rem; letter-spacing: .05em; text-transform: uppercase; }
.sync-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #76a724; }
.app-date { display: flex; justify-content: space-between; align-items: end; margin: 28px 0 13px; }
.app-date span { color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.app-date strong { font-size: 1.15rem; }
.mini-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 24px; }
.mini-calendar span { display: grid; aspect-ratio: 1; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: .7rem; font-weight: 700; }
.mini-calendar .selected { border-color: var(--ink); color: var(--ink); background: var(--accent); }
.result-card { padding: 23px; border: 1px solid var(--ink); background: var(--white); }
.result-label { display: block; margin-bottom: 18px; color: var(--muted); font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sample-symbol { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 78px; margin-bottom: 17px; border-radius: 10px; background: #f1eade; }
.sample-symbol i { display: block; width: 62px; height: 19px; border: 2px solid #51483b; border-radius: 50% 45% 48% 52%; background: #95866e; transform: rotate(8deg); }
.sample-symbol i:nth-child(2) { width: 49px; transform: rotate(-5deg); }
.sample-symbol i:nth-child(3) { width: 29px; transform: rotate(13deg); }
.result-card dl { margin: 0; }
.result-card dl div { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-top: 1px solid var(--line); }
.result-card dt { color: var(--muted); font-size: .75rem; }
.result-card dd { margin: 0; font-size: .78rem; font-weight: 800; text-align: right; }
.result-status { display: flex; gap: 8px; align-items: center; margin: 17px 0 0; color: #49720a; font-size: .78rem; font-weight: 800; }
.result-status span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: white; background: #5d8e13; }
.guide-link { padding-top: 20px; font-size: .74rem; font-weight: 800; text-align: center; }
.health-reference { display: grid; grid-template-columns: .75fr 1.25fr; gap: 60px; align-items: start; padding: 55px; border: 1px solid var(--ink); background: var(--white); }
.health-reference > div { position: sticky; top: 100px; }
.health-reference h3 { margin-bottom: 30px; }
.health-reference figure { position: relative; width: 65%; max-width: 650px; margin: 0; justify-self: center; }
.credit { margin-top: 28px; color: var(--muted); font-size: .82rem; }
.credit a { text-decoration: underline; }

.about { display: grid; grid-template-columns: .7fr 1.3fr; gap: 75px; align-items: center; padding: 100px 28px; }
.about img { width: min(100%, 390px); aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(100%); }
.about h2 { margin-bottom: 12px; }
.about .role { margin-bottom: 32px; color: #596900; font-weight: 800; }
.about p:not(.small-title):not(.role) { max-width: 740px; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 28px; color: var(--paper); background: var(--ink); font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

@media (max-width: 980px) {
  nav { gap: 16px; }
  .hero, .overview, .project-heading, .system-grid, .v2-intro-grid, .video-feature, .app-interface, .health-reference, .about { grid-template-columns: 1fr; }
  .hero-image { min-height: 720px; order: -1; }
  .quick-facts { margin-top: 55px; }
  .overview { gap: 35px; }
  .system-list { border-left: 0; border-top: 1px solid currentColor; }
  .concept-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .health-reference > div { position: static; }
}

@media (max-width: 700px) {
  .site-header { padding: 12px 18px; }
  nav a:not(:last-child) { display: none; }
  .hero-copy, .overview, .project-section, .about { padding-left: 18px; padding-right: 18px; }
  .hero-image { min-height: 540px; }
  .quick-facts { grid-template-columns: 1fr; }
  .project-heading { gap: 30px; }
  .video-grid { grid-template-columns: 1fr; }
  .media-heading { align-items: start; flex-direction: column; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .gallery-main { grid-column: span 2; grid-row: auto; }
  .health-reference { padding: 24px; gap: 35px; }
  .health-reference figure { width: 75%; }
  .app-interface { padding: 35px 22px; }
  .app-steps { grid-template-columns: 1fr; }
  .phone { width: min(100%, 340px); }
  .phone-screen { min-height: 560px; padding: 24px 17px 21px; }
  .system-list div { grid-template-columns: 90px 1fr; }
  footer { flex-direction: column; }
}
