:root {
  --ink: #10181b;
  --paper: #ffffff;
  --soft: #f2f5f4;
  --line: #d8dfdd;
  --muted: #657176;
  --teal: #0b7768;
  --teal-light: #8fd3c6;
  --red: #b54143;
  --night: #0b1317;
  --night-panel: #132025;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 3px; }

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}
.brand { display: flex; gap: 10px; align-items: center; font-size: 0.83rem; font-weight: 760; text-decoration: none; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; color: #fff; background: var(--ink); font-size: 0.68rem; }
.site-header nav { display: flex; gap: 26px; }
.site-header nav a { color: var(--muted); font-size: 0.78rem; font-weight: 700; text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }
.header-action { justify-self: end; min-height: 38px; padding: 9px 14px; color: #fff; background: var(--ink); font-size: 0.77rem; font-weight: 760; text-decoration: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  min-height: 690px;
  border-bottom: 1px solid var(--line);
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 92px 7vw 88px; }
.eyebrow, .case-index {
  margin: 0 0 22px;
  color: var(--teal);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
}
.hero h1 { max-width: 840px; margin: 0; font-size: 4.5rem; line-height: 0.98; letter-spacing: 0; }
.hero-summary { max-width: 720px; margin: 32px 0 0; color: #49575c; font-size: 1.16rem; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 38px; }
.paid-proof { display: flex; gap: 14px; align-items: center; width: fit-content; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); text-decoration: none; }
.paid-proof strong { color: var(--teal); font-size: 1.45rem; line-height: 1; }
.paid-proof span { max-width: 310px; color: var(--muted); font-size: 0.75rem; }
.paid-proof:hover span { color: var(--ink); }
.primary-action { display: inline-flex; min-height: 46px; align-items: center; padding: 0 18px; color: #fff; background: var(--teal); font-size: 0.82rem; font-weight: 780; text-decoration: none; }
.primary-action:hover { background: #075e53; }
.text-action { font-size: 0.82rem; font-weight: 760; text-decoration: none; }
.text-action span { color: var(--red); }

.hero-proof { display: flex; flex-direction: column; justify-content: space-between; padding: 56px 4vw; color: #f5f8f7; background: var(--night); }
.proof-lead span { color: var(--teal-light); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.68rem; font-weight: 800; }
.proof-lead strong { display: block; max-width: 480px; margin-top: 18px; font-size: 1.7rem; line-height: 1.14; }
.hero-proof dl { margin: 44px 0 0; }
.hero-proof dl div { padding: 18px 0; border-top: 1px solid #2b393e; }
.hero-proof dt { font-size: 0.82rem; font-weight: 760; }
.hero-proof dd { margin: 5px 0 0; color: #9babb0; font-size: 0.75rem; }

.work-intro { display: grid; grid-template-columns: 0.45fr 1.55fr; gap: 8vw; padding: 84px 7vw 54px; }
.work-intro h2, .capabilities > h2, .delivery h2 { max-width: 880px; margin: 0; font-size: 2.6rem; line-height: 1.08; }
.work-intro > div > p { max-width: 680px; margin: 20px 0 0; color: var(--muted); }

.case { padding: 72px 7vw 84px; border-top: 1px solid var(--line); }
.case-heading { display: grid; grid-template-columns: 1fr minmax(320px, 0.7fr); gap: 8vw; align-items: end; margin-bottom: 40px; }
.case-heading h2 { margin: 0; font-size: 3.4rem; line-height: 1; }
.case-lede { margin: 0; color: var(--muted); font-size: 1.03rem; }
.case-media { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--soft); }
.case-media > img { width: 100%; height: auto; }
.gateway-media { background: var(--night); }
.case-paid { background: #edf5f2; }
.mobile-qa-visual { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); min-height: 460px; overflow: hidden; border: 1px solid #b8cbc5; border-radius: 4px; background: #fff; }
.qa-device { align-self: center; width: calc(100% - 10vw); max-width: 760px; margin: 56px auto; border: 1px solid #bdcac7; box-shadow: 0 20px 60px rgba(22, 54, 49, 0.12); }
.device-bar { display: flex; justify-content: space-between; align-items: center; min-height: 58px; padding: 0 22px; color: #fff; background: #183c3d; }
.device-bar span { font-size: 0.8rem; font-weight: 760; }
.device-bar b { color: #b9f0d1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.66rem; }
.qa-device ol { margin: 0; padding: 0 22px; list-style: none; }
.qa-device li { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; min-height: 78px; border-bottom: 1px solid #e5ece9; }
.qa-device li:last-child { border-bottom: 0; }
.qa-device li > span { display: grid; width: 28px; height: 28px; place-items: center; color: #fff; background: var(--teal); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.62rem; }
.qa-device li b, .qa-device li small { display: block; }
.qa-device li b { font-size: 0.84rem; }
.qa-device li small { margin-top: 3px; color: var(--muted); font-size: 0.7rem; }
.qa-device li em { color: var(--teal); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.65rem; font-style: normal; font-weight: 800; }
.qa-outcome { display: flex; flex-direction: column; justify-content: center; padding: 48px 4vw; color: #fff; background: #b64d3d; }
.qa-outcome > span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.66rem; font-weight: 800; }
.qa-outcome > strong { max-width: 390px; margin-top: 20px; font-size: 2rem; line-height: 1.08; }
.qa-outcome > p { max-width: 390px; margin: 20px 0 0; color: #ffe2db; font-size: 0.82rem; }
.qa-outcome > div { margin-top: 54px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.35); }
.qa-outcome > div b, .qa-outcome > div small { display: block; }
.qa-outcome > div b { font-size: 1.55rem; }
.qa-outcome > div small { margin-top: 4px; color: #ffe2db; font-size: 0.7rem; }
.case-detail-grid { display: grid; grid-template-columns: 1fr 1.15fr 0.72fr; gap: 5vw; margin-top: 38px; }
.case-detail-grid h3 { margin: 0 0 12px; font-size: 0.8rem; text-transform: uppercase; }
.case-detail-grid p, .case-detail-grid li { color: var(--muted); font-size: 0.86rem; }
.case-detail-grid p { margin: 0; }
.case-detail-grid ul { display: grid; gap: 8px; margin: 0; padding-left: 18px; }
.case-stack { padding-left: 22px; border-left: 3px solid var(--teal); }
.case-stack span { display: block; margin-top: 16px; color: var(--teal); font-size: 0.72rem; font-weight: 760; }

.case-dark { color: #f5f8f7; background: var(--night); border-top-color: #26353a; }
.case-dark .case-index { color: var(--teal-light); }
.case-dark .case-lede, .case-dark .case-detail-grid p, .case-dark .case-detail-grid li { color: #9eafb4; }
.case-dark .case-media { border-color: #2a3a40; background: #03080b; }
.case-dark .case-stack { border-left-color: var(--teal-light); }
.case-dark .case-stack span { color: var(--teal-light); }
.planet-media {
  position: relative;
  width: min(100%, 1180px);
  margin-inline: auto;
  aspect-ratio: 3 / 2;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}
.case-media > .planet-desktop { width: 100%; height: 100%; object-fit: contain; object-position: center; }

.case-demo { background: #f6f8f7; }
.release-demo { overflow: hidden; border: 1px solid #cad5d3; border-radius: 5px; background: #fff; }
.demo-topline { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 16px 20px; color: #eaf4f2; background: #173b42; }
.demo-topline > div:first-child { display: flex; gap: 10px; align-items: baseline; }
.demo-topline span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.65rem; }
.demo-mode-switcher { display: flex; gap: 3px; padding: 3px; background: #0d282e; }
.mode-tab { min-height: 34px; padding: 0 12px; color: #a9c3c0; background: transparent; border: 0; font-size: 0.74rem; font-weight: 750; cursor: pointer; }
.mode-tab.is-active { color: var(--ink); background: #fff; }
.mode-view { padding: 20px; }
.is-hidden { display: none; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; border: 1px solid var(--line); }
.metric-grid article { min-height: 112px; padding: 18px; border-right: 1px solid var(--line); }
.metric-grid article:last-child { border: 0; }
.metric-grid p { margin: 0 0 10px; color: var(--muted); font-size: 0.72rem; font-weight: 730; }
.metric-grid strong { display: block; font-size: 1.7rem; line-height: 1; }
.metric-grid span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.7rem; }
.decision-metric { background: #fff4f1; }
.decision-metric strong, .metric-warn, .held { color: #a9542b !important; }
.metric-good, .accepted { color: var(--teal) !important; }
.rejected { color: var(--red) !important; }
.demo-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; }
.demo-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.panel-title { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-title p { margin: 0; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.64rem; font-weight: 800; }
.panel-title h3 { margin: 5px 0 0; font-size: 1rem; }
.panel-title > span { color: var(--muted); font-size: 0.72rem; }
.checklist { padding: 0 20px; }
.check-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; min-height: 68px; border-bottom: 1px solid #e9eeec; }
.check-row:last-child { border: 0; }
.check-mark { display: grid; width: 25px; height: 25px; place-items: center; color: var(--muted); background: var(--soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.62rem; }
.check-row b { display: block; font-size: 0.82rem; }
.check-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.7rem; }
.check-row em { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.62rem; font-style: normal; text-transform: uppercase; }
.check-row.is-passed .check-mark { color: #fff; background: var(--teal); }
.check-row.is-passed em { color: var(--teal); }
.run-action { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); background: #f2f8f6; }
.run-action button { min-height: 38px; padding: 0 13px; color: #fff; background: var(--teal); border: 0; font-size: 0.76rem; font-weight: 760; cursor: pointer; }
.run-action button:disabled { color: #6d7c80; background: #d9e3e0; cursor: default; }
.run-action span { color: var(--muted); font-size: 0.7rem; }
.pill { display: inline-block; padding: 5px 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.65rem !important; font-weight: 800; }
.pill-hold { color: #9e4d28 !important; background: #fff0e9; }
.pill-pass { color: var(--teal) !important; background: #e8f6f2; }
.pill-blue { color: #23658b !important; background: #eaf5fb; }
.issue-card { margin: 18px; padding: 17px; border-left: 4px solid var(--red); background: #fff5f2; }
.issue-card > span, .handoff > span { color: var(--red); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.64rem; font-weight: 800; }
.issue-card h4 { margin: 14px 0 8px; font-size: 1.02rem; line-height: 1.25; }
.issue-card p, .handoff p, .panel-intro { margin: 0; color: var(--muted); font-size: 0.77rem; }
.handoff { margin: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.handoff p { margin-top: 7px; }
.panel-intro { padding: 18px 20px 8px; }
.event-actions { display: grid; gap: 8px; padding: 10px 20px 20px; }
.event-actions button { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; min-height: 58px; padding: 10px; text-align: left; color: var(--ink); background: #fff; border: 1px solid var(--line); cursor: pointer; }
.event-actions button:hover { border-color: var(--teal); background: #f3f8f6; }
.event-actions button > span:first-child { display: grid; width: 28px; height: 28px; place-items: center; color: var(--teal); background: #e7f5f1; font-weight: 800; }
.event-actions b, .event-actions small { display: block; }
.event-actions b { font-size: 0.8rem; }
.event-actions small { margin-top: 2px; color: var(--muted); font-size: 0.68rem; }
.history-panel ul { margin: 0; padding: 0 20px; list-style: none; }
.history-panel li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid #e9eeec; font-size: 0.76rem; }
.history-panel li > span:last-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.65rem; font-weight: 800; }
.empty-history { display: block !important; color: var(--muted); font-style: italic; }

.capabilities { padding: 92px 7vw; border-top: 1px solid var(--line); }
.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capability-grid article { min-height: 250px; padding: 28px 26px; border-right: 1px solid var(--line); }
.capability-grid article:last-child { border: 0; }
.capability-grid span { color: var(--red); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.7rem; font-weight: 800; }
.capability-grid h3 { margin: 50px 0 12px; font-size: 1.12rem; }
.capability-grid p { margin: 0; color: var(--muted); font-size: 0.82rem; }
.capability-proof-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 22px; color: var(--teal); font-size: 0.75rem; font-weight: 780; text-decoration: none; }
.capability-proof-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.capability-proof-link span { color: var(--red); }

.delivery { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 8vw; padding: 92px 7vw; color: #f5f8f7; background: var(--night); }
.delivery .eyebrow { color: var(--teal-light); }
.delivery ol { margin: 0; padding: 0; list-style: none; }
.delivery li { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid #2b393e; }
.delivery li > span { color: var(--teal-light); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.7rem; font-weight: 800; }
.delivery h3 { margin: 0; font-size: 1rem; }
.delivery li p { margin: 6px 0 0; color: #9eafb4; font-size: 0.82rem; }

.contact { padding: 110px 7vw; border-bottom: 1px solid var(--line); }
.contact h2 { max-width: 950px; margin: 0; font-size: 3.3rem; line-height: 1.04; }
.contact > p:not(.eyebrow) { max-width: 680px; margin: 24px 0 0; color: var(--muted); font-size: 1rem; }
.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; padding: 24px 5vw; color: var(--muted); font-size: 0.7rem; }
.site-footer span:last-child { justify-self: end; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 590px; }
  .hero-proof { min-height: 440px; }
  .work-intro, .case-heading, .delivery { grid-template-columns: 1fr; gap: 30px; }
  .case-detail-grid { grid-template-columns: 1fr 1fr; }
  .case-stack { grid-column: 1 / -1; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .capability-grid article:nth-child(2) { border-right: 0; }
  .capability-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .demo-grid { grid-template-columns: 1fr; }
  .mobile-qa-visual { grid-template-columns: 1fr; }
  .qa-outcome { min-height: 330px; }
}

@media (max-width: 640px) {
  .site-header { min-height: 66px; padding: 0 18px; }
  .brand { font-size: 0.75rem; }
  .brand-mark { width: 28px; height: 28px; }
  .header-action { min-height: 36px; padding: 8px 10px; font-size: 0.7rem; }
  .hero-copy { min-height: 550px; padding: 72px 22px 64px; }
  .hero h1 { font-size: 3rem; }
  .hero-summary { font-size: 1rem; }
  .paid-proof { align-items: flex-start; }
  .hero-proof { min-height: 410px; padding: 42px 22px; }
  .proof-lead strong { font-size: 1.4rem; }
  .work-intro, .case, .capabilities, .delivery, .contact { padding-left: 22px; padding-right: 22px; }
  .work-intro { padding-top: 64px; }
  .work-intro h2, .capabilities > h2, .delivery h2 { font-size: 2rem; }
  .case { padding-top: 58px; padding-bottom: 64px; }
  .case-heading h2 { font-size: 2.55rem; }
  .qa-device { width: calc(100% - 24px); margin: 28px auto; }
  .qa-device ol { padding: 0 14px; }
  .qa-device li { grid-template-columns: 30px 1fr; min-height: 82px; }
  .qa-device li em { display: none; }
  .qa-outcome { min-height: 300px; padding: 40px 24px; }
  .case-detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .case-stack { grid-column: auto; }
  .planet-media { aspect-ratio: 3 / 2; }
  .demo-topline { align-items: flex-start; }
  .demo-mode-switcher { display: grid; }
  .mode-view { padding: 12px; }
  .metric-grid article { min-height: 104px; padding: 14px 12px; }
  .metric-grid strong { font-size: 1.35rem; }
  .panel-title, .checklist, .event-actions, .history-panel ul { padding-left: 14px; padding-right: 14px; }
  .check-row { grid-template-columns: auto 1fr; min-height: 76px; }
  .check-row em { display: none; }
  .run-action { padding: 14px; }
  .run-action span { display: none; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: 210px; border-right: 0; border-bottom: 1px solid var(--line); }
  .capability-grid article:last-child { border-bottom: 0; }
  .capability-grid h3 { margin-top: 32px; }
  .contact { padding-top: 82px; padding-bottom: 82px; }
  .contact h2 { font-size: 2.45rem; }
  .site-footer { grid-template-columns: 1fr; padding: 24px 22px; }
  .site-footer span:last-child { justify-self: start; }
}

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