/* IP Flip by RECVEL — website V2
 * Light, Windows-native. System fonts only (no font files shipped).
 * One bold cobalt plane in the hero; real alpha.9 screenshots carry the page.
 */

:root {
  --paper: #ffffff;
  --ice: #f1f6fd;
  --ice-2: #e3edfb;
  --line: #d5e1f1;
  --cobalt: #0a5cf0;
  --cobalt-deep: #0746d6;
  --cobalt-ink: #0644c4;
  --graphite: #17202c;
  --slate: #4a5668;
  --on-cobalt: #ffffff;
  --on-cobalt-soft: #d9e6ff;
  --ok: #158a4a;

  --font: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-code: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 136px;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); color: var(--graphite); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-family: var(--font-code); font-size: 0.92em; }
a { color: var(--cobalt-ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--cobalt-deep); text-decoration-thickness: 2px; }
::selection { background: #cfe0ff; color: var(--graphite); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--graphite); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: var(--header-h); }
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--graphite); min-height: 44px; }
.lockup:hover { color: var(--graphite); }
.lockup img { flex: none; }
.lockup-name { font-family: var(--font-display); font-weight: 650; font-size: 1.125rem; letter-spacing: -0.02em; }
.lockup-endorse { font-size: 0.75rem; color: var(--slate); margin-left: -2px; padding-top: 3px; }

.main-nav ul { display: flex; gap: var(--s1); }
.main-nav a {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 44px; padding: 0 12px;
  color: var(--graphite); text-decoration: none; font-size: 0.9688rem; font-weight: 500;
  border-radius: 8px;
}
.main-nav a:hover { background: var(--ice); color: var(--graphite); }
.main-nav a[aria-current] { color: var(--cobalt-ink); box-shadow: inset 0 -2px 0 var(--cobalt); border-radius: 0; }
.nav-status {
  font-size: 0.75rem; font-weight: 600; color: var(--cobalt-ink);
  background: var(--ice-2); border-radius: 999px; padding: 2px 8px; white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  font: 600 1rem/1.2 var(--font); text-decoration: none; letter-spacing: -0.005em;
  transition: background-color 160ms var(--ease), box-shadow 160ms var(--ease), color 160ms var(--ease);
}
.btn-primary { background: var(--cobalt); color: #fff; box-shadow: 0 1px 2px rgba(7, 70, 214, 0.25), 0 6px 16px -6px rgba(7, 70, 214, 0.45); }
.btn-primary:hover { background: var(--cobalt-deep); color: #fff; text-decoration: none; }
.btn-quiet { background: transparent; color: var(--graphite); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-quiet:hover { color: var(--graphite); background: var(--ice); box-shadow: inset 0 0 0 1.5px #b9cbe6; text-decoration: none; }

.status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #e8a317; box-shadow: 0 0 0 3px rgba(232, 163, 23, 0.18);
  margin-right: 8px; vertical-align: 0.1em;
}

/* ---------- Hero (Composition A: product plate, slim cobalt edge) ---------- */
.hero { position: relative; padding: clamp(24px, 3vw, 56px) 0 clamp(56px, 7vw, 96px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.375rem, 1.1rem + 4.1vw, 4.75rem);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 650;
}
.lede { margin-top: var(--s5); font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.1875rem); line-height: 1.55; color: #3a4452; max-width: 42ch; }
.compat { margin-top: var(--s4); color: var(--slate); font-size: 0.9688rem; max-width: 42ch; }
.hero .btn-row { margin-top: var(--s5); gap: var(--s2) var(--s5); }
.status-line { margin-top: var(--s4); font-size: 0.9688rem; color: var(--graphite); }
.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 600 1rem/1.2 var(--font); color: var(--cobalt-ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.text-link:hover { text-decoration-thickness: 2px; color: var(--cobalt-deep); }

.hero-shot { position: relative; margin: 0; padding-right: 48px; }
.hero-shot::before {
  content: ""; position: absolute; z-index: 0;
  right: 0; top: 80px; width: 96px; height: 440px;
  background: var(--cobalt);
}
.hero-shot img {
  position: relative; z-index: 1; width: 380px; max-width: 100%; height: auto;
  box-shadow: 0 12px 32px rgba(27, 34, 44, 0.10), 0 1px 3px rgba(27, 34, 44, 0.08);
}
.hero-shot figcaption, .stage figcaption { margin-top: var(--s3); font-size: 0.8125rem; line-height: 1.4; color: var(--slate); }

/* ---------- Story ---------- */
/* Default (narrow / short windows): one column, chooser above the full image,
   the selected description directly below. Nothing sticky, nothing scroll-linked. */
.story { padding: var(--s9) 0 var(--s8); border-top: 1px solid var(--line); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "steps"; column-gap: clamp(40px, 6vw, 96px); }
.story-head { grid-area: head; padding-bottom: var(--s5); }
.story-head h2, .jobs h2, .companion h2 {
  font-size: clamp(1.875rem, 1.35rem + 1.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 650;
  max-width: 16em;
}
.story-head p, .section-lede { margin-top: var(--s4); color: var(--slate); font-size: 1.0625rem; max-width: 40em; }

.story-stage { grid-area: stage; min-width: 0; }
.stage-inner { display: grid; justify-items: start; }
.shot-picker {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 3px;
  width: 100%; max-width: 380px;
  background: var(--ice); border: 1px solid var(--line); border-radius: 10px; margin-bottom: var(--s4);
}
.shot-picker button {
  font: 500 0.9375rem/1 var(--font); color: var(--slate);
  min-height: 44px; padding: 0 6px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}
.shot-picker button:hover { color: var(--graphite); background: rgba(255,255,255,0.75); }
.shot-picker button[aria-pressed="true"] { background: #fff; color: var(--cobalt-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(23,32,44,0.10), 0 2px 6px -2px rgba(23,32,44,0.12); }
.shot-picker button:focus-visible { outline-offset: 1px; }
.no-js .shot-picker, .no-js .full-link { display: none; }
.nojs-links { display: none; margin-top: var(--s2); font-size: 0.9375rem; color: var(--slate); }
.no-js .nojs-links { display: block; }

.stage { margin: 0; width: 100%; max-width: 380px; }
.stage-frame { display: grid; width: 100%; max-width: 380px; aspect-ratio: 380 / 600; }
.stage-frame img {
  grid-area: 1 / 1; width: 100%; max-width: 380px; height: auto;
  box-shadow: 0 12px 32px rgba(27, 34, 44, 0.10), 0 1px 3px rgba(27, 34, 44, 0.08);
  opacity: 0; visibility: hidden;
  transition: opacity 140ms linear, visibility 0s linear 140ms;
}
.stage-frame img.is-active { opacity: 1; visibility: visible; transition: opacity 140ms linear, visibility 0s; }
.stage figcaption { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--s4); }
.stage figcaption .text-link { font-size: 0.875rem; font-weight: 500; min-height: 36px; }

.story-steps { grid-area: steps; }
.step { padding: var(--s5) 0 0; }
.step h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.25; letter-spacing: -0.02em; font-weight: 650; }
.step p { margin-top: var(--s2); max-width: 34em; color: var(--slate); }
.js .step:not(.is-active) { display: none; }
.story-note { margin-top: var(--s7); font-size: 0.875rem; color: var(--slate); }

/* Wide: two columns. Steps all visible; selected one emphasised. */
@media (min-width: 1024px) {
  .story-grid { grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "head stage" "steps stage"; }
  .js .step:not(.is-active) { display: block; }
  .step { padding: var(--s5) 0 var(--s5) var(--s5); border-left: 1px solid var(--line); position: relative; min-height: 180px; }
  .step::before { content: ""; position: absolute; left: -1px; top: var(--s5); width: 2px; height: 0; background: var(--cobalt); transition: height 200ms var(--ease); }
  .step.is-active::before { height: 2.4em; }
  .js .step h3 { color: var(--slate); transition: color 140ms linear; }
  .js .step.is-active h3 { color: var(--graphite); }
}
/* Wide and tall enough for the whole stage: sticky stage + scroll-linked steps. */
@media (min-width: 1024px) and (min-height: 800px) {
  .stage-inner { position: sticky; top: 24px; }
  .step { min-height: 240px; }
  .step:last-child { min-height: 300px; }
}

/* ---------- Jobs ---------- */
.jobs { background: var(--ice); padding: var(--s9) 0; border-block: 1px solid var(--line); }
.job-list { margin-top: var(--s7); display: grid; }
.job {
  display: grid; grid-template-columns: 15rem minmax(0, 1fr) auto; gap: var(--s4) var(--s6);
  align-items: baseline; padding: var(--s5) 0; border-top: 1px solid var(--line);
}
.job:last-child { border-bottom: 1px solid var(--line); }
.job h3 { font-size: 1.25rem; letter-spacing: -0.015em; font-weight: 650; }
.job p { color: var(--slate); max-width: 34em; }
.job .job-addr {
  font-family: var(--font-display); font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem); font-weight: 600;
  letter-spacing: -0.02em; color: var(--graphite); max-width: none; white-space: nowrap; text-align: right;
}
.job-addr .pfx { color: var(--cobalt-ink); margin-left: 2px; }
.job .job-addr-word { color: var(--cobalt-ink); }

/* ---------- Companion ---------- */
.companion { padding: var(--s9) 0; }
.companion-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.fine { margin-top: var(--s5); font-size: 0.9375rem; color: var(--slate); max-width: 36em; }
.pair { position: relative; display: grid; gap: var(--s6); padding-left: 28px; margin-top: var(--s2); }
.pair::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--cobalt), var(--ice-2)); border-radius: 2px; }
.pair li { position: relative; display: grid; gap: 2px; }
.pair li::before { content: ""; position: absolute; left: -28px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--cobalt); }
.pair-where { font-size: 0.875rem; color: var(--slate); }
.pair strong { font-family: var(--font-display); font-size: 1.375rem; letter-spacing: -0.02em; font-weight: 650; }
.pair span:last-child { color: var(--slate); max-width: 28em; }

/* ---------- Release band ---------- */
.release { padding: 0 0 var(--s9); }
.release-inner {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s5); align-items: center;
  padding: var(--s6) 0 0; border-top: 1px solid var(--line);
}
.release h2 { font-size: 1.375rem; letter-spacing: -0.015em; font-weight: 650; white-space: nowrap; }
.release p { color: var(--slate); max-width: 42em; }

/* ---------- Sub pages ---------- */
.page-head { padding: clamp(48px, 8vw, 112px) 0 var(--s8); }
.page-head h1 { font-size: clamp(2.5rem, 1.4rem + 3.8vw, 4.5rem); line-height: 1; letter-spacing: -0.04em; font-weight: 700; max-width: 11em; }
.page-head .lede { max-width: 38em; }
.page-head .status-line { margin-top: var(--s5); font-size: 0.9688rem; }

.page-section { padding: var(--s8) 0; border-top: 1px solid var(--line); }
.page-section h2 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); letter-spacing: -0.03em; line-height: 1.1; font-weight: 700; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split > div > p { margin-top: var(--s3); color: var(--slate); max-width: 34em; }

.gates { display: grid; }
.gates li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2) var(--s5); padding: var(--s5) 0; border-top: 1px solid var(--line); }
.gates li:last-child { border-bottom: 1px solid var(--line); }
.gates h3 { font-size: 1.1875rem; letter-spacing: -0.01em; font-weight: 650; }
.gates p { grid-column: 1; color: var(--slate); max-width: 36em; }
.gate-state {
  grid-column: 2; grid-row: 1 / span 2; align-self: start;
  font-size: 0.8125rem; font-weight: 600; color: #7a4b00; background: #fff4dc; border: 1px solid #f1d9a4;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}

.spec { width: 100%; border-collapse: collapse; font-size: 1rem; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 14px 0; border-top: 1px solid var(--line); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 1px solid var(--line); }
.spec th { font-weight: 500; color: var(--slate); width: 42%; padding-right: var(--s4); }
.table-note { margin-top: var(--s3); font-size: 0.875rem; color: var(--slate); }

.prose p + p { margin-top: var(--s3); }
.prose ul { margin-top: var(--s3); display: grid; gap: var(--s2); }
.prose li { padding-left: 18px; position: relative; color: var(--slate); }
.prose li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); }
.prose h3 { font-size: 1.125rem; margin-top: var(--s5); font-weight: 650; }
.next-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }

.faq { display: grid; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s4); align-items: center;
  padding: 18px 0; min-height: 44px; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt);
  transform: rotate(45deg) translateY(-3px); transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq summary:hover { color: var(--cobalt-ink); }
.faq .a { padding: 0 0 var(--s5); color: var(--slate); max-width: 40em; }
.faq .a p + p { margin-top: var(--s3); }

.nf { padding: clamp(64px, 12vw, 160px) 0; }
.nf-code { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 600; letter-spacing: -0.03em; color: var(--cobalt-ink); margin-bottom: var(--s4); }
.nf h1 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); letter-spacing: -0.04em; line-height: 1.02; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ice); border-top: 1px solid var(--line); padding: var(--s8) 0 var(--s6); font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s6) var(--s7); }
.footer-brand p { margin-top: var(--s3); color: var(--slate); max-width: 26em; }
.footer-links { display: grid; gap: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--graphite); text-decoration: none; }
.footer-links a:hover { color: var(--cobalt-ink); text-decoration: underline; }
.footer-facts { display: grid; gap: var(--s2); color: var(--slate); }
.legal { grid-column: 1 / -1; padding-top: var(--s5); border-top: 1px solid var(--line); display: grid; gap: var(--s1); font-size: 0.8125rem; color: var(--slate); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .job { grid-template-columns: 12rem minmax(0, 1fr); }
  .job .job-addr { grid-column: 2; text-align: left; }
}

@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
  .hero-shot { justify-self: start; }
  .story-stage { justify-self: start; width: 100%; max-width: 380px; }
  .companion-grid { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .release-inner { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .release .btn { justify-self: start; margin-top: var(--s2); }
}

@media (max-width: 1023px) and (min-width: 700px) {
  /* Tablet: keep copy and image side by side when there is room. */
  .hero-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s6); align-items: start; }
  .hero-shot { padding-right: 0; }
  .hero-shot::before { display: none; }
  .br-wide { display: none; }
}

@media (max-width: 699px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .br-wide { display: none; }
  .hero-shot { padding-right: 0; width: 100%; max-width: 380px; }
  .hero-shot::before { display: none; }
  .story, .jobs, .companion { padding-block: 56px; }
  .release { padding-bottom: 56px; }
  .job { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .job .job-addr { grid-column: 1; margin-top: var(--s1); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .gates li { grid-template-columns: minmax(0, 1fr); }
  .gate-state { grid-column: 1; grid-row: auto; justify-self: start; }
  .spec th { width: 40%; }
  .page-head { padding-bottom: var(--s6); }
  .page-section { padding: var(--s7) 0; }
}

@media (max-width: 420px) {
  .main-nav a { padding: 0 9px; font-size: 0.9375rem; }
}

@media (max-width: 560px) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 0; padding-top: 4px; min-height: 0; }
  .lockup { min-height: 48px; }
  .main-nav ul { justify-content: flex-start; margin-left: -12px; }
}

@media (max-width: 360px) {
  .main-nav a { padding: 0 7px; }
  .shot-picker button { font-size: 0.875rem; padding: 0 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
}

@media (forced-colors: active) {
  .hero-shot::before { forced-color-adjust: none; }
  .shot-picker button[aria-pressed="true"] { outline: 2px solid CanvasText; }
}

@media print {
  .site-header, .shot-picker { display: none; }
  .hero-shot::before { display: none; }
}
