:root {
  --ink: #171816;
  --paper: #f3efe6;
  --panel: #faf8f2;
  --line: #d7d1c5;
  --muted: #716e67;
  --coral: #ff6b4a;
  --cyan: #9de3e0;
  --olive: #c9d4a7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Geist", Arial, sans-serif; }
a { color: inherit; }
.topbar { height: 78px; padding: 0 4.5vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 91%, transparent); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: -.045em; }
.brand-name em { color: var(--coral); font-family: Georgia, serif; font-weight: 500; }
.brand-mark { width: 34px; height: 34px; position: relative; display: inline-grid; place-items: center; }
.brand-mark i { position: absolute; width: 23px; height: 23px; border: 1.5px solid var(--ink); border-radius: 50%; }
.brand-mark i:nth-child(1) { transform: translateX(-5px); }
.brand-mark i:nth-child(2) { transform: translateX(5px); }
.brand-mark i:nth-child(3) { width: 7px; height: 7px; background: var(--coral); border: 0; }
.brand-mark.small { transform: scale(.82); transform-origin: left center; margin-right: -5px; }
.nav-link { font: 600 11px "Geist Mono", monospace; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--ink); padding: 8px 0; }
.nav-link span { color: var(--coral); margin-left: 7px; }

main, footer { width: min(1420px, 91vw); margin: 0 auto; }
.hero { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 1.1fr .9fr; grid-template-rows: 1fr auto; gap: 0 8vw; align-items: center; padding: 8vh 0 5vh; }
.eyebrow { margin: 0; color: var(--muted); font: 600 10px "Geist Mono", monospace; text-transform: uppercase; letter-spacing: .13em; }
.eyebrow > span { display: inline-block; width: 22px; height: 1px; vertical-align: middle; margin-right: 9px; background: var(--coral); }
.hero h1 { margin: 24px 0 26px; font-size: clamp(64px, 8.5vw, 132px); line-height: .82; letter-spacing: -.085em; font-weight: 650; }
.hero h1 i { font-family: Georgia, serif; font-weight: 400; color: var(--coral); }
.hero-intro { max-width: 540px; margin: 0 0 34px; color: var(--muted); font-size: clamp(16px, 1.4vw, 20px); line-height: 1.55; letter-spacing: -.02em; }
.primary-button { display: inline-flex; align-items: center; gap: 44px; padding: 14px 16px 14px 20px; color: white; background: var(--ink); border-radius: 7px; font-size: 13px; font-weight: 650; text-decoration: none; transition: transform .2s, background .2s; }
.primary-button span { color: var(--cyan); font-size: 19px; }
.primary-button:hover { transform: translateY(-2px); background: #292a27; }

.hero-graphic { width: min(38vw, 520px); aspect-ratio: 1; justify-self: end; position: relative; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); box-shadow: 0 35px 90px rgba(48, 43, 34, .08); animation: graphic-breathe 6s ease-in-out infinite; }
.orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; inset: 11%; transform-origin: center; animation: orbit-clockwise 18s linear infinite; }
.orbit::before { content: ""; position: absolute; width: 10px; height: 10px; left: 50%; top: -5px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px var(--panel); }
.orbit-one span { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); font: italic 90px Georgia, serif; color: var(--coral); animation: delta-counterspin 18s linear infinite; }
.orbit-two { inset: 30%; border-color: var(--ink); animation: orbit-counterclockwise 11s linear infinite; }
.orbit-two::before { width: 8px; height: 8px; left: auto; right: 11%; top: 8%; background: var(--cyan); box-shadow: 0 0 0 4px var(--panel); }
.axis { position: absolute; background: var(--line); }
.axis-horizontal { height: 1px; width: 100%; top: 50%; transform-origin: center; animation: axis-scan-horizontal 7s ease-in-out infinite; }
.axis-vertical { width: 1px; height: 100%; left: 50%; transform-origin: center; animation: axis-scan-vertical 7s ease-in-out infinite; }
.degree { position: absolute; padding: 5px; background: var(--panel); color: var(--muted); font: 500 9px "Geist Mono", monospace; }
.degree-0 { right: -3px; top: 50%; transform: translateY(-50%); }
.degree-90 { top: -3px; left: 50%; transform: translateX(-50%); }
.degree-180 { left: -9px; top: 50%; transform: translateY(-50%); }
.degree-270 { bottom: -3px; left: 50%; transform: translateX(-50%); }
.graphic-dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 4px solid var(--panel); box-shadow: 0 0 0 1px var(--line); }
.dot-coral { background: var(--coral); left: 18%; top: 28%; animation: dot-drift-coral 5s ease-in-out infinite; }
.dot-cyan { background: var(--cyan); right: 19%; bottom: 28%; animation: dot-drift-cyan 5s ease-in-out infinite reverse; }
.graphic-label { position: absolute; right: 4%; top: 14%; padding: 8px 12px; border-radius: 30px; background: var(--olive); font: 600 9px "Geist Mono", monospace; text-transform: uppercase; letter-spacing: .08em; transform: rotate(6deg); animation: label-float 4s ease-in-out infinite; }

@keyframes graphic-breathe {
  0%, 100% { box-shadow: 0 35px 90px rgba(48, 43, 34, .08); }
  50% { box-shadow: 0 42px 110px rgba(48, 43, 34, .14); }
}

@keyframes orbit-clockwise { to { transform: rotate(360deg); } }
@keyframes orbit-counterclockwise { to { transform: rotate(-360deg); } }
@keyframes delta-counterspin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}
@keyframes axis-scan-horizontal {
  0%, 100% { transform: rotate(-2deg) scaleX(.98); opacity: .7; }
  50% { transform: rotate(3deg) scaleX(1); opacity: 1; }
}
@keyframes axis-scan-vertical {
  0%, 100% { transform: rotate(2deg) scaleY(.98); opacity: .7; }
  50% { transform: rotate(-3deg) scaleY(1); opacity: 1; }
}
@keyframes dot-drift-coral {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10px, -8px) scale(1.15); }
}
@keyframes dot-drift-cyan {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-9px, 10px) scale(1.15); }
}
@keyframes label-float {
  0%, 100% { transform: translateY(0) rotate(6deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}
.hero-meta { grid-column: 1 / -1; border-top: 1px solid var(--ink); padding-top: 15px; display: grid; grid-template-columns: 48px 1fr; }
.hero-meta span { font: 600 10px "Geist Mono", monospace; }
.hero-meta p { margin: 0; color: var(--muted); font-size: 12px; }

.tools { padding: 110px 0 120px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 38px; }
.section-heading h2 { margin: 14px 0 0; font-size: clamp(38px, 5vw, 70px); line-height: .95; letter-spacing: -.065em; }
.section-heading > p { max-width: 370px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 0 22px 70px rgba(48, 43, 34, .08); }
.tool-card { min-height: 530px; padding: 30px; display: flex; flex-direction: column; position: relative; text-decoration: none; overflow: hidden; }
.tool-card:nth-child(even) { border-left: 1px solid var(--ink); }
.tool-card:nth-child(n+3) { border-top: 1px solid var(--ink); }
.featured { background: var(--ink); color: white; transition: background .25s; }
.featured:hover { background: #22231f; }
.toric { background: var(--panel); transition: background .25s; }
.toric:hover { background: #fffdfa; }
.toric .status { color: #5d7757; border-color: var(--line); }
.toric .status i { background: #7ca274; }
.toric .card-copy p { color: var(--muted); }
.toric .card-copy > span { color: var(--muted); }
.toric .card-action { border-color: var(--line); }
.toric:hover .card-action b { transform: translate(3px,-3px); }
.distometry { background: #e8efdc; transition: background .25s; }
.distometry:hover { background: #f0f5e7; }
.distometry .status { color: #5d7757; border-color: #bcc8aa; }
.distometry .status i { background: #7ca274; }
.distometry .card-copy p,.distometry .card-copy > span { color: var(--muted); }
.distometry .card-action { border-color: #bcc8aa; }
.distometry:hover .card-action b { transform: translate(3px,-3px); }
.osdi { background: #e2e0f2; transition: background .25s; }
.osdi:hover { background: #eeecf8; }
.osdi .status { color: #5d7757; border-color: #bdb9d8; }
.osdi .status i { background: #7ca274; }
.osdi .card-copy p,.osdi .card-copy > span { color: var(--muted); }
.osdi .card-action { border-color: #bdb9d8; }
.osdi:hover .card-action b { transform: translate(3px,-3px); }
.rxlab { grid-column: 1 / -1; min-height: 480px; background: #f6d9cf; transition: background .25s; }
.rxlab:hover { background: #fbe5de; }
.rxlab .status { color: #5d7757; border-color: #d7bdb4; }
.rxlab .status i { background: #7ca274; }
.rxlab .card-copy p,.rxlab .card-copy > span { color: var(--muted); }
.rxlab .card-action { border-color: #d7bdb4; }
.rxlab:hover .card-action b { transform: translate(3px,-3px); }
.upcoming { background: var(--panel); }
.card-topline { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.card-number { font: 600 10px "Geist Mono", monospace; }
.status { border: 1px solid #464742; border-radius: 30px; padding: 7px 10px; color: #c7c7c0; font: 500 9px "Geist Mono", monospace; text-transform: uppercase; letter-spacing: .07em; }
.status i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #8dbb80; margin-right: 6px; box-shadow: 0 0 0 3px rgba(141,187,128,.15); }
.status.muted { color: var(--muted); border-color: var(--line); }
.card-symbol { flex: 1; min-height: 220px; position: relative; }
.lens { position: absolute; width: 180px; height: 180px; border: 1px solid #4b4c47; border-radius: 50%; top: 47%; }
.lens-left { left: calc(50% - 163px); transform: translateY(-50%); animation: prisma-lens-left 6s ease-in-out infinite; }
.lens-right { right: calc(50% - 163px); transform: translateY(-50%); animation: prisma-lens-right 6s ease-in-out infinite; }
.bridge { position: absolute; left: 50%; top: 47%; width: 48px; height: 1px; background: var(--cyan); transform: translate(-50%, -50%); }
.vector { position: absolute; width: 122px; height: 3px; background: var(--coral); left: 50%; top: 47%; transform: translate(-50%, -50%) rotate(-36deg); transform-origin: center; animation: prisma-vector 4.5s ease-in-out infinite; }
.vector::after { content: ""; position: absolute; right: -2px; top: -4px; border-left: 9px solid var(--coral); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.card-copy { position: relative; z-index: 2; }
.card-copy p { margin: 0 0 7px; color: #9a9b95; font: 500 9px "Geist Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.card-copy h3 { margin: 0 0 12px; font-size: clamp(36px, 4vw, 58px); letter-spacing: -.06em; }
.card-copy > span { display: block; max-width: 510px; color: #b8b8b1; font-size: 13px; line-height: 1.55; }
.upcoming .card-copy > span { color: var(--muted); }
.upcoming .card-copy h3 { font-size: clamp(28px, 3vw, 42px); }
.card-action { display: flex; align-items: center; justify-content: space-between; margin-top: 30px; padding-top: 15px; border-top: 1px solid #41423d; font-size: 12px; font-weight: 650; }
.card-action b { color: var(--coral); font-size: 20px; transition: transform .2s; }
.featured:hover .card-action b { transform: translate(3px, -3px); }
.future-mark { flex: 1; display: grid; place-items: center; color: var(--line); font: 300 130px/1 Georgia, serif; }
.toric-symbol { flex: 1; min-height: 220px; position: relative; display: grid; place-items: center; }
.toric-ring { width: 190px; height: 190px; border: 1px solid var(--line); border-radius: 50%; background: radial-gradient(circle, transparent 0 32%, var(--line) 32.5% 33%, transparent 33.5%); animation: toric-ring-turn 12s linear infinite; }
.toric-axis { position: absolute; width: 156px; height: 3px; border-radius: 3px; background: var(--coral); transform: rotate(-24deg); animation: toric-axis-settle 5s ease-in-out infinite; }
.toric-axis::before, .toric-axis::after { content: ""; position: absolute; top: -5px; width: 6px; height: 13px; border: 2px solid var(--ink); border-top: 0; border-bottom: 0; }
.toric-axis::before { left: 14px; }.toric-axis::after { right: 14px; }
.toric-symbol i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); animation: symbol-pulse 2.5s ease-in-out infinite; }
.distometry-symbol { flex: 1; min-height: 220px; position: relative; display: grid; place-items: center; }
.profile { position: absolute; width: 52px; height: 180px; border: 2px solid var(--ink); border-top: 0; border-bottom: 0; border-radius: 50%; }
.profile-front { transform: translateX(-9px); animation: profile-front-shift 5s ease-in-out infinite; }
.profile-back { width: 34px; border-color: var(--coral); transform: translateX(8px); animation: profile-back-shift 5s ease-in-out infinite; }
.distance-line { position: absolute; left: 12%; top: 50%; display: flex; align-items: center; gap: 6px; color: var(--muted); font: italic 15px Georgia, serif; animation: distance-measure 5s ease-in-out infinite; }
.distance-line i { width: 22px; height: 1px; background: var(--ink); }
.distance-line i:last-child { width: 9px; }
.distometry-symbol em { position: absolute; right: 11%; top: 26%; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--cyan); color: var(--ink); font: italic 17px Georgia, serif; animation: result-badge-float 4s ease-in-out infinite; }
.osdi-symbol { flex: 1; min-height: 220px; position: relative; display: grid; place-items: center; }
.osdi-symbol .eye { position: absolute; width: 205px; height: 112px; border: 1px solid var(--ink); border-radius: 50%; transform: rotate(20deg); animation: osdi-eye-one 6s ease-in-out infinite; }
.osdi-symbol .eye-two { border-color: var(--coral); transform: rotate(-20deg); animation: osdi-eye-two 6s ease-in-out infinite; }
.osdi-symbol b { width: 66px; height: 66px; position: relative; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--cyan); font: italic 38px Georgia, serif; animation: osdi-score-pulse 3s ease-in-out infinite; }
.osdi-symbol em { position: absolute; right: 13%; bottom: 19%; padding: 7px 10px; border-radius: 30px; background: var(--panel); color: var(--muted); font: 600 9px "Geist Mono", monospace; font-style: normal; animation: osdi-scale-float 4s ease-in-out infinite; }
.rxlab-symbol { flex: 1; min-height: 220px; position: relative; display: grid; place-items: center; }
.rx-ring { width: 190px; height: 190px; border: 1px solid #c7a9a0; border-radius: 50%; background: repeating-radial-gradient(circle,transparent 0 24%,rgba(23,24,22,.07) 24.5% 25%); }
.rx-axis { position: absolute; width: 164px; height: 2px; background: var(--ink); transform: rotate(-28deg); animation: rx-axis-one 7s ease-in-out infinite; }
.rx-axis-two { background: var(--coral); transform: rotate(62deg); animation: rx-axis-two 7s ease-in-out infinite; }
.rxlab-symbol > i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px var(--ink); }
.rxlab-symbol em { position: absolute; right: 10%; bottom: 15%; padding: 7px 10px; border-radius: 30px; background: var(--ink); color: var(--cyan); font: 600 9px "Geist Mono", monospace; font-style: normal; animation: result-badge-float 4s ease-in-out infinite; }

@keyframes prisma-lens-left {
  0%, 100% { transform: translate(-2px, -50%); }
  50% { transform: translate(5px, -50%); }
}
@keyframes prisma-lens-right {
  0%, 100% { transform: translate(2px, -50%); }
  50% { transform: translate(-5px, -50%); }
}
@keyframes prisma-vector {
  0%, 100% { transform: translate(-50%, -50%) rotate(-36deg) scaleX(.92); }
  50% { transform: translate(-50%, -50%) rotate(-28deg) scaleX(1.08); }
}
@keyframes toric-ring-turn { to { transform: rotate(360deg); } }
@keyframes toric-axis-settle {
  0%, 100% { transform: rotate(-24deg); }
  50% { transform: rotate(-14deg); }
}
@keyframes symbol-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(23,24,22,.12); }
  50% { transform: scale(1.25); box-shadow: 0 0 0 8px rgba(23,24,22,0); }
}
@keyframes profile-front-shift {
  0%, 100% { transform: translateX(-9px); }
  50% { transform: translateX(-15px); }
}
@keyframes profile-back-shift {
  0%, 100% { transform: translateX(8px); }
  50% { transform: translateX(14px); }
}
@keyframes distance-measure {
  0%, 100% { transform: translateX(0); opacity: .72; }
  50% { transform: translateX(5px); opacity: 1; }
}
@keyframes result-badge-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-9px) rotate(5deg); }
}
@keyframes osdi-eye-one {
  0%, 100% { transform: rotate(20deg) scaleX(1); }
  50% { transform: rotate(14deg) scaleX(.94); }
}
@keyframes osdi-eye-two {
  0%, 100% { transform: rotate(-20deg) scaleX(1); }
  50% { transform: rotate(-14deg) scaleX(.94); }
}
@keyframes osdi-score-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes osdi-scale-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes rx-axis-one {
  0%, 100% { transform: rotate(-28deg); }
  50% { transform: rotate(-20deg); }
}
@keyframes rx-axis-two {
  0%, 100% { transform: rotate(62deg); }
  50% { transform: rotate(70deg); }
}

.principles { padding: 90px 0 110px; border-top: 1px solid var(--line); }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; border-top: 1px solid var(--ink); }
.principles-grid > div { padding: 24px 30px 0 0; }
.principles-grid > div + div { padding-left: 30px; border-left: 1px solid var(--line); }
.principles-grid span { display: block; color: var(--coral); font: 600 9px "Geist Mono", monospace; margin-bottom: 50px; }
.principles-grid strong { display: block; font-size: 28px; letter-spacing: -.04em; }
.principles-grid p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }

footer { min-height: 140px; display: grid; grid-template-columns: .5fr 1fr auto; align-items: center; gap: 7vw; border-top: 1px solid var(--ink); }
footer p, footer > span { color: var(--muted); font-size: 11px; }
footer > span { font-family: "Geist Mono", monospace; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 10vh; }
  .hero-graphic { width: min(75vw, 480px); justify-self: center; margin: 80px 0; }
  .hero-meta { grid-column: 1; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card:nth-child(even) { border-left: 0; }
  .tool-card + .tool-card { border-top: 1px solid var(--ink); }
  .tool-card { min-height: 480px; }
  .section-heading { align-items: start; flex-direction: column; }
}

@media (max-width: 600px) {
  .topbar { padding: 0 20px; height: 68px; }
  main, footer { width: calc(100% - 32px); }
  .nav-link { font-size: 9px; }
  .hero { min-height: calc(100vh - 68px); padding-top: 8vh; }
  .hero h1 { font-size: clamp(58px, 19vw, 82px); }
  .hero-graphic { width: 86vw; margin: 60px 0; }
  .orbit-one span { font-size: 64px; }
  .tools { padding: 80px 0; }
  .tool-card { min-height: 450px; padding: 22px; }
  .lens { width: 125px; height: 125px; }
  .lens-left { left: calc(50% - 112px); }
  .lens-right { right: calc(50% - 112px); }
  .principles-grid { grid-template-columns: 1fr; }
  .principles-grid > div, .principles-grid > div + div { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0; }
  .principles-grid span { margin-bottom: 20px; }
  footer { grid-template-columns: 1fr; gap: 12px; padding: 30px 0; }
  footer p { margin: 0; }
}

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