/* OWB Studio, onewayblock.com production build of alt11: the prod onewayblock.com / draft v1 style (tokens and components as there), recoloured to the
   main site: its background, text and greys, and the deck gold as the accent. */
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Jura"; src: url("fonts/jura-latin.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  font-size: clamp(16px, .85vw, 24px);
  --accent: #e4c773;
  --accent-hover: #f0d896;
  --accent-wash: rgba(228, 199, 115, .08);
  --bg: #0e1016;
  --text: #f2f3f6;
  --muted: #a6a9b0;
  --dim: #7a7d85;
  --line: #303541;
  --line-hover: #7b8496;
  --f-head: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-body: Archivo, Inter, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --f-btn: Jura, "Space Grotesk", sans-serif;
  color-scheme: dark;
}

html { overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-head);
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}
a { color: inherit; }
ol, ul { list-style: none; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 72vw; width: 100%; margin: 0 auto; }
@media (max-width: 1224px) { .wrap { max-width: 90%; } }
@media (max-width: 768px) { .wrap { max-width: 100%; padding: 0 20px; } }

/* Header */
.header { position: fixed; inset: 0 0 auto; z-index: 100; padding: 2rem 3rem; transition: background-color .3s ease, padding .3s ease; }
.header.is-scrolled { background: rgba(14, 16, 22, .92); padding-block: 1.2rem; border-bottom: 1px solid var(--line); }
@media (max-width: 768px) { .header { padding: 1.5rem 0; } .header.is-scrolled { padding-block: 1rem; } }
.header_inner { display: flex; align-items: center; }
.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); }
.logo svg { width: 28px; height: 24px; }
.logo span { font-weight: 700; font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; }
.nav { margin-left: auto; display: flex; gap: 2rem; align-items: center; }
.nav a {
  color: var(--muted); text-decoration: none; font-family: var(--f-body);
  font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  transition: color .2s ease; position: relative;
}
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent); }
.burger { display: none; margin-left: auto; width: 28px; height: 28px; position: relative; background: none; border: 0; cursor: pointer; z-index: 101; }
.burger::before, .burger::after { content: ""; position: absolute; left: 4px; right: 4px; height: 2px; background: var(--muted); transition: transform .3s ease, top .3s ease; }
.burger::before { top: 9px; } .burger::after { top: 17px; }
.burger[aria-expanded="true"]::before { top: 13px; transform: rotate(45deg); }
.burger[aria-expanded="true"]::after { top: 13px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 99; background: rgba(14, 16, 22, .98); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.menu.open { opacity: 1; pointer-events: auto; }
.menu a { color: var(--text); text-decoration: none; font-size: 1.5rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 768px) { .nav { display: none; } .burger { display: block; } }

/* Hero: left text, the sign figure on the right (prod layout) */
.hero { position: relative; z-index: 2; min-height: calc(100dvh - 9.5rem); display: flex; align-items: center; padding: 6rem 3rem 2rem; }
.hero_inner { display: flex; align-items: center; justify-content: center; gap: 4rem; }
.hero_left { display: flex; flex-direction: column; max-width: max(36vw, 480px); min-width: 420px; }
.hero_right { display: flex; align-items: center; justify-content: center; min-width: 0; }
@media (max-width: 1024px) {
  .hero_inner { flex-direction: column; align-items: flex-start; }
  .hero_left { max-width: 100%; min-width: 0; }
  .hero_right { display: none; }
}
@media (max-width: 768px) { .hero { padding: 7rem 0 3rem; min-height: auto; } }

.label {
  font-family: var(--f-mono); font-size: .7rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 1.5rem; padding-left: 1.5rem; position: relative;
}
.label::before { content: ""; position: absolute; left: 0; top: 50%; width: 1rem; height: 1px; background: var(--accent); }

h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.dim { color: var(--dim); }
.accent { color: var(--accent); }
.tagline { margin-top: 1.5rem; font-family: var(--f-body); font-size: .95rem; line-height: 1.7; color: var(--muted); max-width: 34rem; text-wrap: pretty; }

.cta_row { margin-top: 2.5rem; display: flex; gap: clamp(.6rem, 1vw, 1rem); flex-wrap: wrap; }
.cta {
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 2rem;
  font-family: var(--f-btn); font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--text); background: transparent; cursor: pointer;
  border: 1px solid var(--line); border-radius: 4px; white-space: nowrap;
  transition: border-color .25s ease, background-color .25s ease, color .25s ease;
}
.cta svg { width: 14px; height: 14px; }
.cta:hover { border-color: var(--line-hover); background: rgba(255, 255, 255, .04); }
.cta--accent { border-color: var(--accent); color: var(--accent); }
.cta--accent:hover { border-color: var(--accent-hover); color: var(--accent-hover); background: var(--accent-wash); }

/* Hero figure: one OWB sign in three layers of the same size and orientation, offset along one diagonal by 14 px per layer.
   The pointer slides the layers apart (front most, back least; --mx/--my run -1…1) and tilts the whole stack a little;
   the stack floats as prod's figure does. */
.geo { position: relative; width: clamp(220px, 22vw, 400px); height: clamp(260px, 26vw, 450px); will-change: transform; animation: float 6s ease-in-out infinite; }
.geo_stack { position: absolute; inset: 0; transition: transform .6s cubic-bezier(.25, .46, .45, .94); }
.geo_s { position: absolute; left: 20%; top: 50%; width: 60%; aspect-ratio: 55 / 48; margin-top: -26.18%; overflow: visible;
  transform: translate(calc(var(--d) * 14px + var(--mx, 0) * var(--k)), calc(var(--d) * 14px + var(--my, 0) * var(--k)));
  transition: transform .6s cubic-bezier(.25, .46, .45, .94); }
.geo_s--back { --d: -1; --k: 8px; fill: none; stroke: rgba(166, 169, 176, .35); }
.geo_s--mid { --d: 0; --k: 16px; fill: none; stroke: var(--accent); }
.geo_s--front { --d: 1; --k: 24px; fill: rgba(228, 199, 115, .12); stroke: none; }
.geo_scan { position: absolute; left: 0; width: 100%; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(228, 199, 115, .3), transparent); animation: scan 4s ease-in-out infinite; }
.is-active .geo_scan { background: linear-gradient(90deg, transparent, rgba(228, 199, 115, .6), transparent); }
.geo_glow { position: absolute; inset: -20%; border-radius: 50%; background: radial-gradient(circle, rgba(228, 199, 115, .05) 0%, transparent 70%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.is-active .geo_glow { opacity: 1; }
@keyframes float {
  0%, 100% { transform: perspective(600px) rotateX(0) rotateY(0) translateY(0); }
  33% { transform: perspective(600px) rotateX(2deg) rotateY(-3deg) translateY(-8px); }
  66% { transform: perspective(600px) rotateX(-1deg) rotateY(2deg) translateY(4px); }
}
@keyframes scan { 0%, 100% { opacity: 0; transform: translateY(-60px); } 50% { opacity: 1; transform: translateY(60px); } }

/* Metrics band: the x402 figures and the scanner link */
.metrics { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 3rem; padding: 2rem 3rem; border-block: 1px solid var(--line); }
.metric { text-align: center; }
.metric_val { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.metric_val em { font-style: normal; color: var(--accent); }
.metric_label { font-family: var(--f-mono); font-size: .65rem; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; margin-top: .3rem; }
.metric_src { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; color: var(--muted); text-decoration: none; transition: color .2s ease; }
.metric_src:hover { color: var(--accent); }
@media (max-width: 768px) { .metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; padding: 2rem 1.25rem; } }

/* Sections */
.section { position: relative; z-index: 2; padding: 7rem 0; border-bottom: 1px solid var(--line); }
.section--last { border-bottom: 0; }
@media (max-width: 768px) { .section { padding: 4.5rem 0; } }
.section_head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: end; margin-bottom: 4rem; }
@media (max-width: 1024px) { .section_head { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 3rem; } }
.h2 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
/* a grey second line balances on its own, so it never leaves one word behind */
.h2 .dim { display: block; }
.lead { font-family: var(--f-body); font-size: .95rem; line-height: 1.7; color: var(--muted); max-width: 36rem; text-wrap: pretty; }

/* The two figures under the intro, in the x402 band's style: side by side, one under the other on phones */
.fact_row { margin-top: 2rem; display: flex; gap: 3rem; }
.metric--fact { text-align: left; }
@media (max-width: 768px) { .fact_row { flex-direction: column; gap: 1.5rem; } }

/* Products: draft rows without the numbering */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) 8rem; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: background-color .25s ease; }
.row:hover { background: rgba(255, 255, 255, .015); }
.row_title { font-size: 1.3rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.row_body { font-family: var(--f-body); font-size: .9rem; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.row_body b { color: var(--text); font-weight: 500; }
.row_link { display: inline-block; margin-top: .6rem; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .04em; color: var(--accent); text-decoration: none; transition: color .2s ease; }
.row_link:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.status { font-family: var(--f-mono); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: right; white-space: nowrap; }
.status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: .5rem; border: 1px solid currentColor; vertical-align: 1px; }
.status--live { color: var(--accent); }
.status--live::before { background: var(--accent); border-color: var(--accent); }
.status--build { color: var(--text); }
/* Gold like the live statuses; the half-filled square says the rollout is under way */
.status--progress { color: var(--accent); }
.status--progress::before { background: linear-gradient(to top, var(--accent) 50%, transparent 50%); border-color: var(--accent); }
@media (max-width: 900px) {
  .row { grid-template-columns: minmax(0, 1fr); gap: .6rem; padding: 1.6rem 0; }
  .status { text-align: left; grid-row: 2; }
}

/* Roadmap */
.phase { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 3rem; padding: 2.25rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.phase:last-child { border-bottom: 1px solid var(--line); }
.phase_when { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.phase--now .phase_when { color: var(--accent); }
.phase_title { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.phase_goal { margin-top: .6rem; font-family: var(--f-body); font-size: .95rem; line-height: 1.7; color: var(--muted); max-width: 40rem; text-wrap: pretty; }
@media (max-width: 900px) {
  .phase { grid-template-columns: 1fr; gap: .9rem; padding: 2rem 0; }
  .phase_title { font-size: 1.35rem; }
}

/* Backers: equal cells, 4 + 4 + 3 with the short row centred; each logo sized to the same ink area (--h) */
.backers { margin-top: 1rem; display: flex; flex-wrap: wrap; justify-content: center; }
.backers li { flex: 0 0 25%; height: 8rem; display: grid; place-items: center; }
.backers img { display: block; width: auto; height: calc(var(--h) * .85); max-width: 90%; object-fit: contain; opacity: .7; transition: opacity .2s ease; }
.backers li:hover img { opacity: 1; }
@media (max-width: 768px) {
  .backers li { flex-basis: 50%; height: 6rem; }
  .backers img { height: calc(var(--h) * .55); }
}

/* Contact: the form posts to /api/contact (functions/). The two result lines show via :target after a no-JS post, via the hidden attribute with JS. */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; }
@media (max-width: 1024px) { .split { grid-template-columns: 1fr; gap: 2.5rem; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.field { display: grid; gap: .5rem; }
.field--wide, .form_foot { grid-column: 1 / -1; }
.field label, .field_error { font-family: var(--f-mono); font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
/* Inline validation (JS): a gold underline and a gold label-style line under the field; the line takes no room while empty */
.field_error { color: var(--accent); }
.field_error:empty { display: none; }
.field [aria-invalid="true"] { border-bottom-color: var(--accent); }
.field label small { font-size: 1em; letter-spacing: .04em; text-transform: none; color: var(--dim); }
.field input, .field textarea { width: 100%; padding: .6rem 0 .7rem; border: 0; border-bottom: 1px solid var(--line-hover); border-radius: 0; background: transparent; color: var(--text); font: 400 1rem/1.4 var(--f-body); }
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 0; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.form[hidden] { display: none; }
.form_foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form_note { font-family: var(--f-body); font-size: .95rem; line-height: 1.6; color: var(--muted); }
.form_note:target { display: block; }
.form_note a { color: var(--accent); text-underline-offset: 3px; }
.form_note--sent { font-size: 1.25rem; color: var(--text); }
.form_note--error { margin-top: 1.5rem; }
.contact_side:has(.form_note--sent:target) .form { display: none; }

/* Footer */
.footer { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 3rem; border-top: 1px solid var(--line); font-family: var(--f-body); font-size: .75rem; color: var(--dim); }
.footer_right { display: flex; gap: 1.2rem; align-items: center; }
.footer a { text-decoration: none; color: var(--dim); transition: color .2s ease; }
.footer a:hover { color: var(--accent); }
.footer svg { width: 14px; height: 14px; fill: currentColor; display: block; }
@media (max-width: 768px) { .footer { flex-direction: column; gap: .6rem; text-align: center; padding: 1.25rem 1.5rem; } }

/* Entry motion (prod fade-up); without JS everything simply shows */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.25, .46, .45, .94); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .geo, .geo_scan { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
