/* Zyn — jade is a stone, and so is the ledger.
   Obsidian and mineral are the ground; jade is a material (the brushed
   metal of the mark, the pins that fix epochs to Zcash), never a flat
   accent. Archivo at its widest carries the display voice of the ZYN
   wordmark; Geist is the brand's text face; Geist Mono reads the ledger. */

@font-face { font-family: Archivo; src: url(/assets/fonts/Archivo-Variable.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: Geist; src: url(/assets/fonts/Geist-Variable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(/assets/fonts/GeistMono-Variable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --obsidian: #06110e;
  --stone-1: #0b1915;
  --stone-2: #10221d;
  --stone-3: #173029;
  --mineral: #f2f1eb;
  --mineral-2: #e7e5dc;
  --mineral-3: #d8d6cb;
  --ink: #0a1a15;
  --ink-2: #3a4742;
  --steel: #8a9691;
  --steel-2: #6b7772;
  --jade: #0b7a61;
  --jade-2: #13a07e;
  --jade-3: #58e8bb;
  --mint: #35e6ae;
  --display: Archivo, 'Arial Black', sans-serif;
  --sans: Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1280px;
  --brushed: linear-gradient(100deg, #0a6b55 0%, #1fb489 22%, #7af5cf 38%, #16a07d 52%, #0b7a61 70%, #3fd8a8 86%, #0b7a61 100%);
  --brushed-text: linear-gradient(100deg, #2fc497 0%, #6ff0c8 30%, #c6fff0 42%, #45dcac 56%, #20b387 76%, #5ee9bd 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
.strata, .api, .trust { min-height: 100svh; align-content: center; }
.product { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.product-head, .showcase { width: 100%; }
/* the canvas the headings come apart on */
.cubes { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }
body { margin: 0; background: var(--obsidian); color: var(--mineral); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
h1, h2, p { margin: 0; }

/* film grain over everything, like the soft-touch surfaces in the brand kit */
.grain { position: fixed; inset: -50%; z-index: 0; pointer-events: none; opacity: 0.06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: min(100svh, 980px); padding-top: 76px; display: grid; grid-template-rows: 1fr auto; overflow: hidden; background: radial-gradient(90% 70% at 78% 30%, #10251f 0%, var(--obsidian) 62%); isolation: isolate; }
/* The header stays at the top; once the page moves it becomes a frosted
   obsidian bar, and the link for the section in view is lit. */
.top { position: fixed; z-index: 30; top: 0; left: 0; right: 0; padding: 18px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); display: flex; align-items: center; justify-content: space-between; transition: background .35s, padding .35s, box-shadow .35s; }
.top.scrolled { padding-top: 12px; padding-bottom: 12px; background: rgba(6, 17, 14, 0.92); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgba(242, 241, 235, 0.08); }
.top nav a[aria-current='true'] { color: var(--mineral); }
.top nav a[aria-current='true']:not(.nav-open)::after { content: ''; display: block; height: 1px; margin-top: 3px; background: var(--jade-3); }
.lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 850 22px/1 var(--display); font-stretch: 125%; letter-spacing: 0.02em; }
.lockup img { width: 36px; height: 36px; }
.top nav { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--steel); transition: color .2s; }
.top nav a:hover { color: var(--mineral); }
.top .nav-open { color: var(--mineral); padding-bottom: 2px; border-bottom: 1px solid var(--jade-2); }
.menu { display: none; font: 600 12px/1 var(--display); font-stretch: 120%; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mineral); background: none; border: 1px solid rgba(242, 241, 235, 0.25); padding: 10px 14px; cursor: pointer; }
.menu[aria-expanded='true'] { background: var(--mineral); color: var(--ink); }

/* The blend lives on the container: its transform makes it a stacking
   context, and a blend inside one only sees the container, not the page. */
.mark { position: absolute; z-index: 1; pointer-events: none; right: -6vw; top: 46%; width: min(58vw, 860px); aspect-ratio: 1; mix-blend-mode: screen; transform: translateY(-50%); animation: mark-in 1.6s cubic-bezier(.2, .7, .1, 1) both; }
.mark img { width: 100%; height: 100%; display: block; }
.mark .sweep { position: absolute; inset: 0; mix-blend-mode: overlay; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.85) 50%, transparent 62%) no-repeat; background-size: 250% 100%; background-position: 160% 0; animation: sweep 7s 1.2s ease-in-out infinite; }
@keyframes mark-in { from { opacity: 0; transform: translateY(-46%) scale(.96); filter: brightness(.3); } }
@keyframes sweep { 0% { background-position: 160% 0; } 40%, 100% { background-position: -60% 0; } }

.hero-copy { position: relative; z-index: 2; align-self: end; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(28px, 5vh, 56px); display: grid; gap: 26px; }
.hero h1 { font: 800 clamp(44px, 5.8vw, 100px)/0.9 var(--display); font-stretch: 125%; letter-spacing: -0.035em; max-width: 9ch; color: #fbfaf5; text-rendering: geometricPrecision; }
.hero h1 .line { display: inline-block; animation: rise 1s cubic-bezier(.2, .7, .1, 1) both; }
.hero h1 .line:nth-child(2) { animation-delay: .08s; }
.hero h1 .line:nth-child(3) { animation-delay: .16s; }
.hero h1 .line:nth-child(4) { animation-delay: .24s; }
.jade { background: var(--brushed-text); background-size: 180% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes rise { from { opacity: 0; transform: translateY(0.35em); } }
.lede { max-width: 40ch; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: #c3c9c2; animation: rise 1s .34s both; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; animation: rise 1s .42s both; }
.button { display: inline-block; padding: 16px 26px; background: var(--mineral); color: var(--ink); text-decoration: none; font: 700 15px/1 var(--display); font-stretch: 112%; letter-spacing: 0.04em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); transition: background .2s; }
.button:hover { background: var(--jade-3); }
.quiet { color: var(--steel); text-decoration: none; font-size: 15px; transition: color .2s; }
.quiet:hover { color: var(--mineral); }

.readout { position: relative; z-index: 2; border-top: 1px solid rgba(242, 241, 235, 0.1); background: rgba(6, 17, 14, 0.6); backdrop-filter: blur(6px); padding: 14px var(--gutter); display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); }
.readout b { color: var(--mineral); font-weight: 500; }
.readout .ok { color: var(--mint); }
.readout .ok::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); vertical-align: 1px; animation: blink 2.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------------------------------------------------------------- strata */
.strata { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 7vw, 110px) var(--gutter); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.strata h2, .index h2, .trust h2 { font: 800 clamp(34px, 4.6vw, 64px)/0.95 var(--display); font-stretch: 118%; letter-spacing: -0.03em; }
.strata-copy { position: sticky; top: 40px; display: grid; gap: 22px; }
.strata-copy > p:not(.trace):not(.recent) { color: #b9c0ba; max-width: 46ch; }
.switch { display: inline-flex; gap: 4px; justify-self: start; padding: 4px; border: 1px solid rgba(242, 241, 235, 0.14); }
.switch button { font: 600 12px/1 var(--display); font-stretch: 120%; letter-spacing: 0.1em; text-transform: uppercase; background: none; color: var(--steel); border: 0; padding: 10px 14px; cursor: pointer; }
.switch button[aria-selected='true'] { background: var(--mineral); color: var(--ink); }
.trace { color: #b9c0ba; font-size: 15px; max-width: 50ch; }
.trace code { font: 500 13px var(--mono); color: var(--jade-3); }
.recent { font: 400 12px/1.6 var(--mono); color: var(--steel-2); letter-spacing: 0.02em; }

.core { position: relative; border-left: 1px solid rgba(242, 241, 235, 0.12); padding-left: 1px; }
.layers { position: relative; display: grid; }
.layer { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; min-height: 30px; font: 500 12px/1.2 var(--mono); color: rgba(242, 241, 235, 0.72); border-top: 1px solid rgba(0, 0, 0, 0.55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); animation: settle .8s cubic-bezier(.2, .7, .1, 1) both; }
.layer::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--tone); }
.layer::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='60'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .35' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E"); background-size: 300px 100%; }
.layer .ep { font-weight: 600; color: var(--mineral); }
.layer .root { opacity: .6; }
.layer { text-decoration: none; }
.layer:hover .ep { color: var(--jade-3); }
.layer .pinned { color: var(--jade-3); white-space: nowrap; }
.layer .loose { color: var(--steel-2); white-space: nowrap; }
@keyframes settle { from { opacity: 0; transform: translateY(-14px); } }
.pin { position: absolute; width: 2px; background: linear-gradient(var(--jade-3), var(--jade)); box-shadow: 0 0 12px rgba(88, 232, 187, 0.45); pointer-events: none; }
.pin::before { content: ''; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #c9ffe9, var(--jade-2) 55%, #064a3b); }
.bedrock { position: relative; margin-top: 0; min-height: 76px; display: flex; align-items: flex-end; justify-content: space-between; padding: 12px 18px; font: 600 12px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #9fb3ab; background: repeating-linear-gradient(135deg, #1a2a26 0 6px, #14231f 6px 12px); border-top: 2px solid #2c4a41; }
.bedrock span:first-child { font: 800 22px/1 var(--display); font-stretch: 125%; letter-spacing: 0.04em; color: var(--mineral); }

/* ---------------------------------------------------------------- product */
.product { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 7vw, 110px) var(--gutter); }
.product-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.product h2, .api h2 { font: 800 clamp(34px, 4.6vw, 64px)/0.95 var(--display); font-stretch: 118%; letter-spacing: -0.03em; }
.product-head p { color: #b9c0ba; max-width: 46ch; }
.showcase { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.tabs { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: t; }
.tabs button { width: 100%; text-align: left; display: grid; gap: 6px; padding: 18px 18px 18px 22px; background: transparent; border: 0; border-left: 2px solid rgba(242, 241, 235, 0.1); color: var(--steel); font: 400 14px/1.5 var(--sans); cursor: pointer; transition: border-color .25s, background .25s, color .25s; }
.tabs b { font: 700 18px/1.1 var(--display); font-stretch: 118%; color: var(--mineral); letter-spacing: -0.01em; }
.tabs button:hover { background: rgba(242, 241, 235, 0.03); }
.tabs button[aria-selected='true'] { border-left-color: var(--jade-3); background: linear-gradient(90deg, rgba(88, 232, 187, 0.08), transparent 70%); color: #c3c9c2; }
.window { margin: 0; border-radius: 10px; overflow: hidden; background: #0c1714; box-shadow: 0 0 0 1px rgba(242, 241, 235, 0.1), 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 120px -40px rgba(19, 160, 126, 0.35); transform: perspective(1800px) rotateY(-4deg) rotateX(1.5deg); transform-origin: left center; transition: transform .6s cubic-bezier(.2, .7, .1, 1); }
.window:hover { transform: none; }
.bar { display: flex; align-items: center; gap: 10px; padding: 11px 16px; background: #111f1b; border-bottom: 1px solid rgba(242, 241, 235, 0.08); font: 500 12px/1 var(--mono); color: #9fb0a9; text-decoration: none; }
.bar .lock { width: 9px; height: 11px; border: 1.5px solid var(--jade-3); border-radius: 2px; position: relative; top: 1px; }
.bar .open { margin-left: auto; color: var(--jade-3); }
.screen { position: relative; aspect-ratio: 16 / 10; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.shot.is-on { opacity: 1; }

/* ---------------------------------------------------------------- api */
.api { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 7vw, 110px) var(--gutter); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.api-copy { display: grid; gap: 18px; }
.api-copy p { color: #b9c0ba; max-width: 42ch; }
.terminal { background: #030a08; border: 1px solid rgba(242, 241, 235, 0.1); border-radius: 10px; padding: 20px 22px; font: 400 13px/1.65 var(--mono); overflow-x: auto; }
.cmd { color: #c3c9c2; white-space: nowrap; }
.prompt { color: var(--jade-3); margin-right: 8px; }
.terminal pre { margin: 14px 0 0; color: #8fa39b; font: inherit; }
.terminal pre .k { color: #c3c9c2; }
.terminal pre .s { color: var(--jade-3); }
.terminal pre .n { color: #e8c46a; }

/* ---------------------------------------------------------------- index */
.index { background: var(--mineral); color: var(--ink); padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); position: relative; }
.index-head { max-width: var(--max); margin: 0 auto clamp(36px, 5vw, 60px); padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.index-head p { color: var(--ink-2); max-width: 46ch; }
/* six apps, 3 x 2: each a live capture over its name */
.tiles { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--max); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.tile { position: relative; display: grid; grid-template-rows: auto 1fr; background: #fbfaf6; box-shadow: 0 0 0 1px var(--mineral-3), 0 24px 48px -32px rgba(10, 26, 21, 0.35); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); transition: transform .45s cubic-bezier(.2, .7, .1, 1), box-shadow .45s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--jade), 0 34px 60px -30px rgba(10, 26, 21, 0.45); }
.tile-shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); border-bottom: 1px solid var(--mineral-3); }
.tile-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; transition: transform .8s cubic-bezier(.2, .7, .1, 1); }
.tile:hover .tile-shot img { transform: scale(1.04); }
.tile-body { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: 22px 22px 26px; }
.tile-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tile h3 { margin: 0; font: 800 clamp(24px, 2.2vw, 30px)/1 var(--display); font-stretch: 122%; letter-spacing: -0.025em; }
.tile h3 a { color: var(--ink); text-decoration: none; }
.tile h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.tile .where { font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--jade); }
.tile p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.tile .inline { position: relative; z-index: 2; color: var(--jade); text-underline-offset: 3px; }
.tile-go { position: relative; z-index: 2; justify-self: start; font: 500 13px/1 var(--mono); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--jade); padding-bottom: 3px; }
.tile-go span { color: var(--jade); }

/* ---------------------------------------------------------------- trust + hallmarks */
.trust { background: var(--mineral); color: var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); max-width: var(--max); margin: 0 auto; padding: clamp(92px, 9vw, 120px) var(--gutter) clamp(32px, 4vw, 56px); }
.trust-wrap { background: var(--mineral); }
.disclose, .marks { display: grid; gap: 22px; align-content: start; }
.marks { padding-top: clamp(28px, 3vw, 44px); }
.disclose { background: var(--ink); color: #c2c9c3; padding: clamp(32px, 4vw, 52px); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); box-shadow: 0 30px 60px -30px rgba(6, 17, 14, 0.5); }
.disclose h2 { color: var(--mineral); margin-bottom: 12px; }
.disclose p { max-width: 50ch; font-size: 17px; }
.disclose b { color: var(--mineral); font-weight: 600; }
.marks-intro { color: var(--ink-2); max-width: 44ch; }
.punches { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 28px; }
.punches li { display: grid; gap: 14px; align-content: start; }
.punches p { font-size: 15px; color: var(--ink-2); }
.punches b { color: var(--ink); display: block; }
.punch { justify-self: start; display: inline-grid; place-items: center; min-width: 150px; height: 64px; padding: 0 22px; font: 800 14px/1 var(--display); font-stretch: 125%; letter-spacing: 0.14em; color: #9d9b8e; background: var(--mineral); text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8), -1px -1px 0 rgba(0, 0, 0, 0.22); box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.18), inset -3px -3px 6px rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.06); transition: transform .3s; }
.punches li:hover .punch { transform: scale(0.97); }
.p-oval { border-radius: 999px; }
.p-shield { border-radius: 6px 6px 40px 40px; }
.p-cut { clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%); }
.p-oct { clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px); }

/* ---------------------------------------------------------------- faq */
.faq { max-width: var(--max); margin: 0 auto; padding: clamp(92px, 9vw, 120px) var(--gutter) clamp(88px, 10vw, 140px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 80px); align-items: start; color: var(--ink); box-shadow: 0 0 0 100vmax var(--mineral); clip-path: inset(0 -100vmax); background: var(--mineral); }
.faq h2 { font: 800 clamp(34px, 4.6vw, 64px)/0.95 var(--display); font-stretch: 118%; letter-spacing: -0.03em; }
.faq-head { display: grid; gap: 18px; position: sticky; top: 110px; }
.faq-head p { color: var(--ink-2); max-width: 36ch; }
.faq a { color: var(--jade); text-underline-offset: 3px; }
.faq-list { border-top: 1px solid var(--mineral-3); }
.qa { border-bottom: 1px solid var(--mineral-3); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 22px 0; font: 600 clamp(17px, 1.5vw, 20px)/1.35 var(--sans); letter-spacing: -0.01em; color: var(--ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; flex: none; font: 400 26px/1 var(--mono); color: var(--jade); transition: transform .3s cubic-bezier(.2, .7, .1, 1); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--jade); }
.qa p { margin: -6px 0 24px; max-width: 64ch; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.qa[open] p { animation: rise .45s cubic-bezier(.2, .7, .1, 1) both; }

/* ---------------------------------------------------------------- transitions */
/* Where the page turns from obsidian to mineral and back, it does so through
   strata: bands of stone in between, the ledger section's geology at page scale. */
.seam { position: relative; height: clamp(70px, 9vw, 140px); line-height: 0; background: var(--mineral); margin: -1px 0; z-index: 1; }
.seam-svg { display: block; width: 100%; height: 100%; }
.seam-up { transform: scaleY(-1); }
.seam-down::before { content: ''; position: absolute; left: 0; right: 0; top: -120px; height: 120px; background: linear-gradient(transparent, #0b1915); pointer-events: none; }
.rule { border: 0; height: 1px; max-width: var(--max); margin: 0 auto; background: linear-gradient(90deg, transparent, rgba(88, 232, 187, 0.35) 30%, rgba(242, 241, 235, 0.14) 70%, transparent); }
.product { position: relative; }
.product::before { content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: 18%; height: 70%; background: radial-gradient(50% 50% at 62% 50%, rgba(19, 160, 126, 0.13), transparent 70%); pointer-events: none; }
.reveal { transition: transform .9s cubic-bezier(.2, .7, .1, 1), opacity .9s cubic-bezier(.2, .7, .1, 1); }
.reveal.pre { opacity: 0.001; transform: translateY(28px); }
.tiles li.reveal.pre { transform: translateY(24px); }

/* ---------------------------------------------------------------- footer */
.foot { position: relative; overflow: hidden; padding: clamp(56px, 7vw, 88px) var(--gutter) 0; background: var(--obsidian); }
.foot-row { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; font-size: 14px; color: var(--steel); }
.foot nav { display: flex; flex-wrap: wrap; gap: 24px; }
.foot nav a { color: var(--mineral); text-decoration: none; border-bottom: 1px solid rgba(242, 241, 235, 0.2); }
.foot nav a:hover { border-color: var(--jade-3); }
.giant { margin: clamp(24px, 4vw, 48px) 0 0; font: 900 clamp(120px, 33vw, 520px)/0.74 var(--display); font-stretch: 125%; letter-spacing: -0.04em; text-align: center; background: var(--brushed); background-size: 160% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; transform: translateY(12%); user-select: none; }

/* ---------------------------------------------------------------- narrow */
@media (max-width: 900px) {
  .hero { min-height: auto; }
  .mark { position: relative; top: auto; right: auto; width: 112vw; margin: -8vw -34vw -10vw auto; transform: none; }
  @keyframes mark-in { from { opacity: 0; transform: scale(.96); filter: brightness(.3); } }
  .hero-copy { padding-top: 0; }
  .strata { grid-template-columns: 1fr; }
  .strata-copy { position: static; }
  .index-head { grid-template-columns: 1fr; }
  .product-head, .showcase, .api { grid-template-columns: 1fr; }
  .window { transform: none; }
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .seam { height: 64px; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  /* clear the fixed header when a section settles at the top */
  .strata, .product, .api, .index, .faq { padding-top: 88px; }
  .menu { display: inline-block; }
  .top nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 6px var(--gutter) 14px; background: rgba(6, 17, 14, 0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(242, 241, 235, 0.08); display: none; }
  .top nav.open { display: flex; }
  .top nav a, .top nav a:not(.nav-open) { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(242, 241, 235, 0.08); }
  .top nav .nav-open { border-bottom: 0; color: var(--jade-3); }
  .top nav a[aria-current='true']:not(.nav-open)::after { display: none; }
  .layer .root { display: none; }
  .punches { grid-template-columns: 1fr; }
  .readout { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .cubes { display: none; }
}
