:root {
  --shell: #2a2226;
  --shell-2: #3b2d33;
  --paper: #fffefa;
  --paper-2: #f4f0e9;
  --ink: #2a2226;
  --muted: #6d6464;
  --rule: #d2cbc1;
  --signal: #a6335d;
  --signal-soft: #efd6df;
  --proof: #54705f;
  --boundary: #c28a2c;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --display: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif;
  --body: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper-2); color: var(--ink); font-family: var(--body); line-height: 1.55; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; top: 0.75rem; left: 1rem; z-index: 100; padding: 0.65rem 0.8rem; background: var(--signal); color: #fff; transform: translateY(-160%); transition: transform 160ms ease; }
.skip-link:focus { transform: translateY(0); }
.romeoapps-brandbar a:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }
.page { overflow: hidden; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr); gap: clamp(2rem, 7vw, 8rem); min-height: min(720px, calc(100svh - 58px)); padding: clamp(3rem, 6vw, 6rem) clamp(1.4rem, 7vw, 8rem); background: var(--shell); color: var(--paper); isolation: isolate; }
.hero::after { position: absolute; right: -12vw; bottom: -18vw; width: 56vw; height: 56vw; border: 1px solid rgba(239, 214, 223, 0.22); border-radius: 50%; box-shadow: 0 0 0 5vw rgba(239, 214, 223, 0.04), 0 0 0 10vw rgba(239, 214, 223, 0.025); content: ""; pointer-events: none; }
.hero__grid { position: absolute; inset: 0; z-index: -1; opacity: 0.3; background-image: linear-gradient(rgba(255, 254, 250, 0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 254, 250, 0.14) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(90deg, #000 0 60%, transparent 92%); }
.hero__copy, .contract-card { position: relative; z-index: 1; }
.hero__copy { align-self: center; max-width: 720px; }
.eyebrow, .section-label, .control-label, .card-head, .card-foot, .pane-head, .contract-row small, .contract-row strong, .signal-strip, .hero__note, .control-note, .method-index, .method-card > b, .delivery-price, .delivery-note { font-family: var(--mono); letter-spacing: 0.07em; text-transform: uppercase; }
.eyebrow { display: flex; justify-content: space-between; gap: 1rem; width: min(100%, 560px); margin: 0 0 1.7rem; color: #efd6df; font-size: 0.68rem; }
.eyebrow b { color: #f0a2bd; font-weight: 500; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; }
h1 { max-width: 13ch; margin-bottom: 1.4rem; font-size: clamp(3.35rem, 6.3vw, 7.2rem); letter-spacing: -0.09em; line-height: 0.84; text-transform: uppercase; }
h1 em, h2 em { color: #e9a1ba; font-style: normal; }
.hero__intro { max-width: 610px; margin-bottom: 2rem; color: rgba(255, 254, 250, 0.78); font-size: clamp(1.05rem, 1.55vw, 1.3rem); }
.hero__actions, .closing-links { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 0.7rem; padding: 0.85rem 1.15rem; border: 1px solid transparent; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; text-decoration: none; text-transform: uppercase; transition: transform 160ms ease, background 160ms ease, color 160ms ease; }
.button:hover { transform: translateY(-3px); }
.button--primary { background: var(--signal); color: #fff; }
.button--primary:hover { background: #bc4b73; }
.button--secondary { border-color: rgba(255, 254, 250, 0.45); color: var(--paper); }
.button--secondary:hover { background: rgba(255, 254, 250, 0.1); }
.button--dark { background: var(--ink); color: var(--paper); }
.button--dark:hover { background: var(--shell-2); }
.hero__note { display: flex; align-items: center; gap: 0.55rem; max-width: 670px; margin: 1.4rem 0 0; color: rgba(255, 254, 250, 0.54); font-size: 0.63rem; line-height: 1.55; }
.status-dot, .card-head__status i { display: inline-block; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #9ac5a9; box-shadow: 0 0 0 5px rgba(154, 197, 169, 0.1); }

.contract-card { align-self: center; overflow: hidden; border: 1px solid rgba(239, 214, 223, 0.55); background: var(--paper); color: var(--ink); box-shadow: 22px 22px 0 rgba(166, 51, 93, 0.2); animation: card-in 650ms ease both; }
.card-head, .card-foot { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 1rem; color: var(--muted); font-size: 0.62rem; }
.card-head { border-bottom: 1px solid var(--rule); }
.card-head__status { color: var(--proof); }
.card-head__status i { width: 6px; height: 6px; margin-right: 0.35rem; box-shadow: none; background: var(--proof); }
.contract-rows { padding: 1rem; }
.contract-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 0.8rem; align-items: center; min-height: 77px; padding: 0.8rem; border: 1px solid var(--rule); background: #faf8f3; }
.contract-row + .contract-row { border-top: 0; }
.contract-row.is-ready { border-color: #9ab4a2; background: #edf3ee; }
.contract-row.is-signal { border-color: rgba(166, 51, 93, 0.5); background: #f8e9ee; }
.contract-row > span { color: var(--muted); font: 0.7rem var(--mono); }
.contract-row b { display: block; font-family: var(--display); font-size: 1.2rem; letter-spacing: -0.035em; text-transform: uppercase; }
.contract-row small { display: block; margin-top: 0.18rem; color: var(--muted); font-size: 0.56rem; letter-spacing: 0.03em; }
.contract-row strong { color: var(--proof); font-size: 0.58rem; font-weight: 500; }
.contract-row.is-signal strong { color: var(--signal); }
.card-foot { border-top: 1px solid var(--rule); }
.card-foot b { color: var(--signal); font-weight: 500; }
@keyframes card-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.signal-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule); background: #e7d5dc; color: var(--ink); font-size: 0.65rem; }
.signal-strip span { padding: 1rem 1.1rem; border-right: 1px solid rgba(42, 34, 38, 0.18); text-align: center; }
.signal-strip span:last-child { border-right: 0; }

.intro-section, .bench-section, .method-section { padding: clamp(5rem, 10vw, 10rem) clamp(1.4rem, 7vw, 8rem); }
.intro-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 0.64fr); gap: 1rem 8vw; background: var(--paper); }
.section-label { margin-bottom: 0.8rem; color: var(--proof); font-size: 0.66rem; }
h2 { max-width: 11ch; margin-bottom: 0; font-size: clamp(3rem, 6.3vw, 7rem); letter-spacing: -0.09em; line-height: 0.86; text-transform: uppercase; }
.intro-section > p { align-self: end; max-width: 520px; margin-bottom: 0.35rem; color: var(--muted); font-size: 1.04rem; }

.bench-section { background: var(--paper-2); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr); gap: 1rem 8vw; max-width: 1180px; margin-bottom: 4rem; }
.section-heading .section-label { grid-column: 1 / -1; }
.section-heading > p:last-child { align-self: end; max-width: 510px; margin-bottom: 0.35rem; color: var(--muted); }
.bench-shell { display: grid; grid-template-columns: minmax(185px, 0.55fr) minmax(260px, 1fr) minmax(270px, 1fr); border: 1px solid var(--rule); background: var(--rule); }
.bench-controls, .payload-pane, .readback-pane { min-width: 0; padding: 1.1rem; }
.bench-controls { display: flex; flex-direction: column; gap: 0.8rem; background: var(--shell); color: var(--paper); }
.control-label { margin: 0; color: #efd6df; font-size: 0.62rem; }
.fixture-tabs { display: grid; gap: 0.45rem; }
.fixture-tab, .run-button, .copy-button { width: 100%; min-height: 44px; border: 1px solid transparent; cursor: pointer; font: 0.64rem var(--mono); letter-spacing: 0.04em; text-align: left; text-transform: uppercase; }
.fixture-tab { padding: 0.7rem 0.75rem; border-color: rgba(255, 254, 250, 0.18); background: transparent; color: rgba(255, 254, 250, 0.66); }
.fixture-tab:hover, .fixture-tab.is-active { border-color: #e9a1ba; background: rgba(233, 161, 186, 0.12); color: var(--paper); }
.run-button, .copy-button { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0.75rem; }
.run-button { margin-top: auto; background: var(--signal); color: #fff; }
.run-button:hover { background: #bc4b73; }
.copy-button { border-color: rgba(255, 254, 250, 0.25); background: transparent; color: var(--paper); }
.copy-button:hover { background: rgba(255, 254, 250, 0.1); }
.control-note { min-height: 4.3em; margin: 0.3rem 0 0; color: rgba(255, 254, 250, 0.52); font-size: 0.55rem; line-height: 1.55; text-transform: none; }
.payload-pane, .readback-pane { background: #f4f7f2; }
.readback-pane { background: #f8e9ee; }
.pane-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; color: var(--muted); font-size: 0.6rem; }
pre { min-height: 277px; overflow: auto; margin: 0; padding: 1rem; border: 1px solid var(--rule); background: #fffefa; color: var(--ink); font: 0.73rem/1.65 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.pane-note { min-height: 3.2em; margin: 0.8rem 0 0; color: var(--muted); font: 0.61rem/1.5 var(--mono); }
.readback-status { display: inline-flex; min-width: 5.5rem; justify-content: center; margin-bottom: 0.9rem; padding: 0.48rem 0.65rem; background: var(--paper); color: var(--muted); font: 0.66rem var(--mono); letter-spacing: 0.08em; }
.readback-status.is-pass { background: #dcebe0; color: var(--proof); }
.readback-status.is-hold, .readback-status.is-review { background: #f3e3b9; color: #825b14; }
.readback-title { max-width: 18ch; margin-bottom: 0.7rem; font-family: var(--display); font-size: clamp(1.7rem, 2.7vw, 2.5rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.95; text-transform: uppercase; }
.readback-detail { min-height: 5.4em; margin-bottom: 1.5rem; color: var(--muted); font-size: 0.86rem; }
.readback-list { display: grid; gap: 0.65rem; margin: 0; }
.readback-list div { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.55rem; border-top: 1px solid rgba(42, 34, 38, 0.17); font: 0.65rem var(--mono); }
.readback-list dt { color: var(--muted); text-transform: uppercase; }
.readback-list dd { max-width: 60%; margin: 0; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.trace { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 0.6rem; align-items: stretch; margin-top: 1.8rem; }
.trace-step { min-height: 110px; padding: 0.9rem; border: 1px solid var(--rule); background: var(--paper); }
.trace-step span { display: block; margin-bottom: 1rem; color: var(--muted); font: 0.62rem var(--mono); }
.trace-step b { display: block; font-family: var(--display); font-size: 1.15rem; text-transform: uppercase; }
.trace-step small { display: block; margin-top: 0.25rem; color: var(--muted); font: 0.62rem var(--mono); }
.trace-step.is-complete { border-color: #9ab4a2; background: #edf3ee; }
.trace-step.is-review { border-color: rgba(194, 138, 44, 0.55); background: #fff7e5; }
.trace-arrow { align-self: center; color: var(--signal); font-size: 1.6rem; }

.method-section { background: var(--paper); }
.method-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr); gap: 1rem 8vw; margin-bottom: 3.5rem; }
.method-heading .section-label { grid-column: 1 / -1; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.method-card { min-height: 320px; padding: clamp(1.3rem, 3vw, 2.4rem); border: 1px solid var(--rule); background: var(--paper-2); }
.method-card--dark { background: var(--shell); color: var(--paper); }
.method-card--signal { border-color: rgba(166, 51, 93, 0.5); background: var(--signal-soft); }
.method-index { display: block; margin-bottom: 3.5rem; color: var(--proof); font-size: 0.63rem; }
.method-card--dark .method-index { color: #e9a1ba; }
.method-card h3 { max-width: 9ch; margin-bottom: 1rem; font-size: clamp(2rem, 3.4vw, 3.3rem); letter-spacing: -0.08em; line-height: 0.88; text-transform: uppercase; }
.method-card p { max-width: 34ch; margin-bottom: 2.2rem; color: var(--muted); font-size: 0.9rem; }
.method-card--dark p { color: rgba(255, 254, 250, 0.68); }
.method-card > b { color: var(--proof); font-size: 0.6rem; font-weight: 500; }
.method-card--dark > b { color: #e9a1ba; }

.delivery-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr); gap: clamp(2.5rem, 8vw, 9rem); padding: clamp(5rem, 10vw, 10rem) clamp(1.4rem, 7vw, 8rem); background: var(--boundary); color: var(--ink); }
.delivery-section .section-label { color: var(--ink); }
.delivery-copy h2 { max-width: 10ch; margin-bottom: 1.4rem; }
.delivery-price { margin-bottom: 0.7rem; color: var(--ink); font-size: 1.25rem; }
.delivery-price span { color: rgba(42, 34, 38, 0.65); font-size: 0.7rem; }
.delivery-note { max-width: 580px; margin-bottom: 1.8rem; color: rgba(42, 34, 38, 0.75); font-size: 0.65rem; line-height: 1.6; }
.delivery-section .button--primary { background: var(--ink); }
.delivery-section .button--primary:hover { background: var(--shell-2); }
.delivery-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.delivery-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(42, 34, 38, 0.25); }
.delivery-steps li:first-child { border-top: 1px solid rgba(42, 34, 38, 0.25); }
.delivery-steps li > span { color: rgba(42, 34, 38, 0.6); font: 0.7rem var(--mono); }
.delivery-steps b { font-family: var(--display); font-size: 1.35rem; text-transform: uppercase; }
.delivery-steps p { margin: 0.25rem 0 0; color: rgba(42, 34, 38, 0.72); font-size: 0.86rem; }

.closing-section { padding: clamp(5rem, 9vw, 8rem) clamp(1.4rem, 7vw, 8rem); background: var(--signal); color: #fff; }
.closing-section .section-label { color: #f3c6d4; }
.closing-section h2 { max-width: 11ch; margin-bottom: 1.1rem; }
.closing-section > p:not(.section-label) { max-width: 650px; margin-bottom: 1.8rem; color: rgba(255, 255, 255, 0.8); font-size: 1.05rem; }
.text-link { color: #fff; font: 0.7rem var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.text-link:hover { color: #f3c6d4; }
.site-footer { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 2rem; align-items: center; padding: 1.5rem clamp(1.4rem, 7vw, 8rem); background: var(--ink); color: var(--paper); }
.footer-brand { display: inline-flex; align-items: center; gap: 0.55rem; font: 800 1rem var(--display); text-decoration: none; }
.footer-brand img { border-radius: 4px; background: var(--paper); }
.site-footer p { margin: 0; color: rgba(255, 254, 250, 0.6); font-size: 0.78rem; }
.site-footer div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem; font: 0.62rem var(--mono); text-transform: uppercase; }
.site-footer a:hover { color: #f3c6d4; }
.noscript { margin: 0; padding: 1rem; background: var(--boundary); color: var(--ink); }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__copy { max-width: 700px; }
  .contract-card { max-width: 680px; }
  .bench-shell { grid-template-columns: 1fr 1fr; }
  .bench-controls { grid-row: span 2; }
  .readback-pane { grid-column: 2; }
  .trace { grid-template-columns: repeat(2, 1fr); }
  .trace-arrow { display: none; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .method-card:last-child { grid-column: 1 / -1; }
  .delivery-section { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .romeoapps-brandbar { gap: 0.5rem; }
  .romeoapps-brandbar__meta { font-size: 0.58rem; }
  .hero { padding-top: 3.5rem; }
  h1 { font-size: clamp(3.2rem, 16vw, 5.4rem); }
  h2 { font-size: clamp(2.8rem, 14vw, 4.8rem); }
  .signal-strip { grid-template-columns: 1fr 1fr; }
  .signal-strip span:nth-child(2) { border-right: 0; }
  .signal-strip span:nth-child(-n + 2) { border-bottom: 1px solid rgba(42, 34, 38, 0.18); }
  .intro-section, .section-heading, .method-heading { display: block; }
  .intro-section > p, .section-heading > p:last-child { margin-top: 1.4rem; }
  .bench-shell { display: block; }
  .bench-controls, .payload-pane, .readback-pane { display: block; }
  .bench-controls { min-height: auto; }
  .run-button { margin-top: 0.6rem; }
  pre { min-height: 220px; }
  .trace { display: grid; grid-template-columns: 1fr 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .method-card:last-child { grid-column: auto; }
  .method-card { min-height: auto; }
  .method-index { margin-bottom: 2rem; }
  .delivery-section { gap: 3rem; }
  .site-footer { grid-template-columns: 1fr; gap: 0.9rem; }
  .site-footer div { justify-content: flex-start; }
}

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