/* ==========================================================================
   Portex Global — homepage
   Hand-built rebuild of the Framer homepage (portex-global.com)
   ========================================================================== */

/* ---------- Fonts (served from /assets/fonts, sourced from the Framer project) ---------- */
@font-face { font-family: "ABC Schengen"; src: url("/assets/fonts/abc-schengen.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Berkeley Mono"; src: url("/assets/fonts/berkeley-mono.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
/* The Berkeley Mono file in use draws "/" as a backslash. Borrow only the slash from Geist Mono (OFL). */
@font-face { font-family: "Mono Slash"; src: url("/assets/fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+002F; }
@font-face { font-family: "BDO Grotesk"; src: url("/assets/fonts/bdo-grotesk.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
/* Inter + Geist Mono, self-hosted (no requests to Google: faster, and GDPR-friendly) */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-latin-ext.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-latin-ext.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Logo: the Framer site renders the Regular cut at weight 700 (synthetic bold) — kept as-is to match */
@font-face { font-family: "Parabole Display"; src: url("/assets/fonts/parabole-display.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #0A0B0A;
  --text: #ECEEE8;
  --white: #FFFFFF;
  --muted: #878D84;
  --dim: #7D8279;            /* ≥ 4.5:1 on --bg (was #5C6159, 3.1:1) */
  --deep: #3B3939;
  --accent: #56F24E;
  --accent-50: rgba(86, 242, 78, .6); /* ≥ 4.5:1 on --bg */
  /* One opaque line colour for every rule on the page (outer guides, dividers, cells).
     Opaque on purpose: overlapping borders can never render brighter than a single line. */
  --line: #1C1D1C;
  --node: var(--accent);         /* green squares where lines meet */
  --gx: 30px;                    /* outer guide inset */

  --f-display: "ABC Schengen", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Mono Slash", "Berkeley Mono", "Geist Mono", ui-monospace, Menlo, monospace;
  --f-grotesk: "BDO Grotesk", "Inter", sans-serif;
  --f-sans: "Inter", system-ui, -apple-system, sans-serif;
  --f-logo: "Parabole Display", var(--f-display);

  --pad-x: 52px;
  --max: 1600px;
  --section-y: 120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg, iframe { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Helpers ---------- */
.accent { color: var(--accent); }
.container { width: 100%; max-width: var(--max); margin: 0 auto; position: relative; z-index: 1; }

/* Dotted 4-side frame (Framer's dashed border look) */
.btn--ghost, .tag, .loop__step { position: relative; }
.btn--ghost::before, .tag::before, .loop__step::before {
  --fc: rgba(255, 255, 255, .14);
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--fc) 50%, transparent 0) top left / 4px 1px repeat-x,
    linear-gradient(90deg, var(--fc) 50%, transparent 0) bottom left / 4px 1px repeat-x,
    linear-gradient(0deg, var(--fc) 50%, transparent 0) top left / 1px 4px repeat-y,
    linear-gradient(0deg, var(--fc) 50%, transparent 0) top right / 1px 4px repeat-y;
}
/* Intersection nodes: 3px green squares centred on every corner where lines meet */
.tag::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    linear-gradient(var(--node), var(--node)) top left / 1px 1px no-repeat,
    linear-gradient(var(--node), var(--node)) top right / 1px 1px no-repeat,
    linear-gradient(var(--node), var(--node)) bottom left / 1px 1px no-repeat,
    linear-gradient(var(--node), var(--node)) bottom right / 1px 1px no-repeat;
}
.cell::after {
  content: ""; position: absolute; inset: -2px; pointer-events: none; z-index: 2;
  background:
    linear-gradient(var(--node), var(--node)) top left / 3px 3px no-repeat,
    linear-gradient(var(--node), var(--node)) top right / 3px 3px no-repeat,
    linear-gradient(var(--node), var(--node)) bottom left / 3px 3px no-repeat,
    linear-gradient(var(--node), var(--node)) bottom right / 3px 3px no-repeat;
}

/* Card cell: hairline border + green corners. In grids, borders collapse. */
.cell { position: relative; border: 1px solid var(--line); }
.grid { display: grid; }
.grid > .cell { margin: 0 -1px -1px 0; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ---------- Outer grid: fixed verticals + guide-to-guide section rules ---------- */
.guides { position: fixed; inset: 0; z-index: 9; pointer-events: none; display: flex; justify-content: center; }
.guides__inner { position: relative; width: 100%; max-width: 1800px; height: 100%; }
.guides__inner::before, .guides__inner::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.guides__inner::before { left: var(--gx); }
.guides__inner::after { right: var(--gx); }

/* A horizontal rule that runs exactly between the two guides, with a node at each end */
.section::before, .footer::before {
  content: ""; position: absolute; top: 0; height: 1px; z-index: 1; pointer-events: none;
  left: max(var(--gx), calc(50% - 900px + var(--gx))); right: max(var(--gx), calc(50% - 900px + var(--gx)));
  background:
    linear-gradient(var(--node), var(--node)) left center / 3px 3px no-repeat,
    linear-gradient(var(--node), var(--node)) right center / 3px 3px no-repeat,
    linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat;
  height: 3px; margin-top: -1px; margin-left: -1px; margin-right: -1px;
}

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 8;
  padding: 32px 30px 0;
  background: linear-gradient(to bottom, rgba(10, 11, 10, .92), rgba(10, 11, 10, .72));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.header__bar {
  position: relative; max-width: 1740px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 8px 8px 18px; min-height: 55px;
}
.header__bar::before, .header__bar::after {
  content: ""; position: absolute; left: -1px; right: -1px; height: 3px;
  background:
    linear-gradient(var(--node), var(--node)) left center / 3px 3px no-repeat,
    linear-gradient(var(--node), var(--node)) right center / 3px 3px no-repeat,
    linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat;
}
.header__bar::before { top: -1px; }
.header__bar::after { bottom: -1px; }

.logo { display: inline-flex; align-items: flex-start; gap: 3px; font-family: var(--f-logo); font-weight: 700; color: var(--white); line-height: 1; }
.logo__word { font-size: 18px; letter-spacing: .01em; }
/* "Global" is set in Inter: the display face breaks up at small sizes */
.logo__sup { font-family: var(--f-sans); font-weight: 500; font-size: 10px; letter-spacing: .02em; color: var(--accent); margin-top: -1px; }
.logo--header .logo__word { font-size: 23px; }
.logo--header .logo__sup { font-size: 11.5px; margin-top: -2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 20px;
  font-family: var(--f-mono); font-size: 13px; line-height: 20.8px; letter-spacing: .03em; text-transform: uppercase;
  white-space: nowrap; cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.btn--solid { background: var(--white); color: #171717; }
.btn--solid:hover { background: rgba(255, 255, 255, .82); }
.btn--ghost { color: var(--white); background: transparent; }
.btn--ghost::before { --fc: rgba(255, 255, 255, .34); }
.btn--ghost:hover::before { --fc: rgba(255, 255, 255, .6); }
.btn--sm { padding: 6px 14px; font-size: 12px; line-height: 18px; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Tags ([01] — CONTROL TOWER) ---------- */
.tag {
  display: inline-flex; align-items: center; gap: .55em; align-self: flex-start;
  padding: 10px;
  font-family: var(--f-mono); font-size: 11px; line-height: 13.2px; letter-spacing: 1.5px;
  color: var(--accent); white-space: nowrap;
}
.tag::before { --fc: rgba(86, 242, 78, .22); }
.tag__num { color: var(--accent-50); }
.tag__muted { color: #8A8F86; }
.tag__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin: 0 6px 0 2px; animation: pulse 2s ease-in-out infinite; }
.tag--live { gap: 0; }
.tag--live .tag__muted { margin-right: .7em; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Type ---------- */
.h1 {
  font-family: var(--f-display); font-weight: 400;
  font-size: 64px; line-height: 1.05; letter-spacing: -2px;
  color: var(--text); max-width: 860px;
}
.h2 {
  font-family: var(--f-display); font-weight: 400;
  font-size: 40px; line-height: 1.1; letter-spacing: -1px; color: var(--text);
}
.h2--700 { max-width: 700px; }
.h2--xl { font-size: 56px; line-height: 1.05; letter-spacing: -1.5px; max-width: 700px; }
.h3 { font-family: var(--f-grotesk); font-weight: 400; font-size: 19px; line-height: 1.2; color: var(--text); }
.lead { font-family: var(--f-display); font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 560px; text-wrap: balance; }
.body { font-family: var(--f-sans); font-size: 15px; line-height: 1.65; color: var(--muted); }
.body-sm { font-family: var(--f-sans); font-size: 13px; line-height: 1.6; color: var(--muted); }
.side-copy { font-family: var(--f-sans); font-size: 14px; line-height: 1.6; color: var(--muted); width: 300px; }

/* ---------- Pixel fields (assets/pixels.js) ---------- */
.pxfield { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
.hero-wrap { position: relative; max-width: 1740px; margin: 0 auto; }
.pxfield--hero {
  top: 87px; height: calc(100% - 87px);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.5) 35%, #000 60%), linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(90deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.5) 35%, #000 60%);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px var(--pad-x) 0; }
.hero__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }

/* ---------- Status strip ---------- */
.status { position: relative; padding: 175px var(--pad-x) 140px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; background: rgba(10, 11, 10, .72); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.stat__label { font-family: var(--f-mono); font-size: 10px; line-height: 12px; letter-spacing: 1.5px; color: var(--dim); }
.stat__value { font-family: var(--f-mono); font-size: 20px; line-height: 24px; color: var(--text); }
.stat__value.accent { color: var(--accent); }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section-y) var(--pad-x); overflow: clip; }
.section > .container { display: flex; flex-direction: column; gap: 48px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head__main { display: flex; flex-direction: column; gap: 16px; flex: 1 1 0; max-width: 640px; min-width: 0; }
.stack-head { display: flex; flex-direction: column; gap: 16px; }

/* Console frames that host the live embeds */
.console { position: relative; overflow: hidden; }
.console--tower { padding-top: 30px; min-height: 593px; }
.console--trace { padding: 30px 0 26px; min-height: 364px; }
.console .embed { position: relative; z-index: 1; }
.console .pxfield { opacity: .9; }
.embed { width: 100%; border: 0; background: transparent; }
.console--tower .embed { height: 563px; }
.console--trace .embed { height: 308px; }

/* ---------- [02] Loop ---------- */
.loop__card { display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; }
.loop__meta { display: flex; align-items: center; gap: 5px; margin-bottom: 2px; }
.loop__num, .loop__step {
  display: inline-flex; align-items: center; justify-content: center; height: 28px;
  font-family: var(--f-mono); font-size: 11px; line-height: 13.2px; letter-spacing: 1.5px;
}
.loop__num { width: 28px; color: var(--accent); border: .5px dotted var(--accent); }
.loop__step { padding: 4px 6px; color: rgba(255, 255, 255, .51); }
.loop__step::before { --fc: rgba(255, 255, 255, .28); }

/* ---------- Split layouts ([03], [04]) ---------- */
.section > .split { flex-direction: row; align-items: center; gap: 64px; }
.split__copy { display: flex; flex-direction: column; gap: 24px; flex: 0 0 auto; }
.split__copy--420 { width: 420px; }
.split__copy--400 { width: 400px; }
.split__media { flex: 1 1 0; min-width: 0; }
.split__media .embed { height: 560px; }
#developers .split__media .embed { height: 508px; }

.memory { display: flex; flex-direction: column; }
.memory li { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); }
.memory li:last-child { border-bottom: 1px solid var(--line); }
.memory__title, .memory__desc { font-family: var(--f-mono); font-size: 13px; line-height: 1.6; letter-spacing: .03em; text-transform: uppercase; }
.memory__title { color: var(--white); }
.memory__desc { color: rgba(255, 255, 255, .45); }

.features { display: flex; flex-direction: column; gap: 29px; }
.features li { display: flex; flex-direction: column; gap: 6px; font-family: var(--f-mono); font-size: 11px; line-height: 13.2px; letter-spacing: 1.5px; color: var(--white); }
.features__key { color: rgba(255, 255, 255, .5); }

/* ---------- [05] Integrations ---------- */
.tool { display: flex; flex-direction: column; gap: 6px; padding: 20px; transition: background-color .3s ease; }
.tool:hover { background: rgba(86, 242, 78, .025); }
.tool__logo { display: flex; align-items: center; height: 26px; margin-bottom: 22px; color: var(--accent); opacity: .38; transition: opacity .3s ease; }
.tool:hover .tool__logo { opacity: .8; }
.tool__logo svg { height: 100%; width: auto; }
.tool__name { font-family: var(--f-mono); font-size: 14px; line-height: 16.8px; color: var(--text); }
.tool__type { font-family: var(--f-mono); font-size: 10px; line-height: 12px; letter-spacing: 1px; color: var(--dim); }

/* ---------- Proof ---------- */
.section--proof > .container { gap: 0; }
.metrics { margin-top: -1px; }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 32px; }
.quote blockquote { font-family: var(--f-mono); font-size: 19px; line-height: 1.4; letter-spacing: -.3px; color: var(--white); }
.quote figcaption { font-family: var(--f-mono); font-size: 11px; line-height: 13.2px; letter-spacing: 1px; color: rgba(255, 255, 255, .55); }
.metric { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; }
.metric__value { font-family: var(--f-mono); font-size: 36px; line-height: 1.2; color: var(--text); }
.metric__value.accent { color: var(--accent); }
.metric__label { font-family: var(--f-mono); font-size: 10px; line-height: 15px; letter-spacing: 1px; color: var(--dim); }

/* ---------- [10] CTA ---------- */
.cta__stage { position: relative; overflow: hidden; min-height: 560px; display: flex; align-items: center; justify-content: center; padding: 96px 32px; }
.pxfield--cta {
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, transparent 30%, #000 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, transparent 30%, #000 75%);
}
.cta__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; max-width: 760px; }
.cta__inner .tag { align-self: center; }
.cta__inner .body { max-width: 480px; }
.cta__inner .ctas { justify-content: center; }
.cmd {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 10px 16px; border-radius: 8px;
  background: rgba(20, 21, 20, .85); border: 1px solid var(--line);
  font: 13px/1.4 "Geist Mono", ui-monospace, monospace; color: #C9CDC6; white-space: nowrap; max-width: 100%; overflow: hidden;
}
.cmd__p { color: var(--accent); }
.cmd__c { width: 7px; height: 15px; background: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.cta__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 8px; }
.cta__facts li { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 1.2px; color: var(--muted); }
.cta__facts i { width: 5px; height: 5px; background: var(--accent); }

/* ---------- Footer: one collapsed grid of cells ---------- */
.footer { padding: 40px var(--pad-x) 48px; position: relative; z-index: 1; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; }
.footer__grid > .cell { margin: 0 -1px -1px 0; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px; }
.footer__brand p { font-family: var(--f-mono); font-size: 12px; line-height: 1.6; letter-spacing: .03em; text-transform: uppercase; color: var(--dim); max-width: 300px; }
.footer__brand .btn { margin-top: auto; }
.logo--footer .logo__word { font-size: 21px; }
.logo--footer .logo__sup { font-size: 11px; margin-top: -2px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; }
.footer__title { font-family: var(--f-mono); font-size: 10px; line-height: 12px; letter-spacing: 1.5px; color: var(--dim); margin-bottom: 4px; }
.footer__col a { font-family: var(--f-sans); font-size: 13.5px; line-height: 1.2; color: var(--muted); transition: color .2s ease; width: fit-content; }
.footer__col a:hover { color: var(--text); }
.footer__mark { grid-column: 1 / -1; position: relative; aspect-ratio: 35 / 8; padding: 0; cursor: crosshair; }
.pxfield--mark { inset: 6% 28px; width: calc(100% - 56px); height: 88%; }
.footer__mark-label { position: absolute; top: 18px; right: 24px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 1.5px; color: var(--accent); }
.footer__bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 18px 28px; font-family: var(--f-mono); font-size: 10px; line-height: 12px; letter-spacing: 1px; color: var(--dim); }
.footer__bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__clocks { display: inline-flex; gap: 18px; }
.footer__clocks [data-time]::after { content: " " attr(data-time); color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.no-anim { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .tag__dot { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Side-by-side diagrams need ~700px of room — stack them earlier than the rest */
@media (max-width: 1199px) {
  .section > .split, .section > .split--reverse { flex-direction: column; align-items: stretch; gap: 48px; }
  .split__copy--420, .split__copy--400 { width: 100%; max-width: 640px; }
  .split__media .embed, #developers .split__media .embed { height: 520px; }
  .grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tool { padding: 20px 16px; }
  .console--tower, .console--trace { min-height: 0; }
}

@media (max-width: 950px) {
  .h1 { font-size: 50px; letter-spacing: -1.5px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 582px) {
  :root { --pad-x: 24px; --section-y: 96px; --gx: 6px; }

  .header { padding: 8px 6px 0; }
  .header__bar { justify-content: center; padding: 12px 10px; min-height: 0; }
  .logo--header .logo__word { font-size: 21px; }
  .logo--header .logo__sup { font-size: 10.5px; }
  .header__cta { display: none; }

  .hero { padding-top: 110px; }
  .pxfield--hero { top: 50px; height: calc(100% - 50px); -webkit-mask-image: linear-gradient(transparent 25%, #000 70%); mask-image: linear-gradient(transparent 25%, #000 70%); }
  .hero__inner { gap: 28px; }
  .h1 { font-size: 36px; letter-spacing: -1px; }
  .h2 { font-size: 30px; }
  .h2--xl { font-size: 36px; }
  .ctas { flex-direction: column; align-items: flex-start; }

  .status { padding-top: 60px; padding-bottom: 80px; }
  .side-copy { width: 100%; }
  .section-head { flex-direction: column; align-items: flex-start; }

  .grid--2 { grid-template-columns: 1fr; }
  .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop { grid-template-columns: 1fr; }
  .metric__value { font-size: 28px; }
  .tool { padding: 18px 16px; }
  .quote { padding: 24px; }
  .quote blockquote { font-size: 16px; }

  .console--tower, .console--trace { min-height: 0; }
  .console--tower .embed { height: 600px; }

  .cta__stage { min-height: 0; padding: 64px 16px; }
  .cta__inner .ctas { flex-direction: column; align-items: center; }
  .cmd { font-size: 11px; padding: 9px 12px; }
  .cta__facts { flex-direction: column; align-items: center; }

  .footer { padding-top: 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col:last-of-type { grid-column: 1 / -1; }
  .footer__brand, .footer__col { padding: 22px 18px; }
  .pxfield--mark { inset: 8% 14px; width: calc(100% - 28px); }
  .footer__mark-label { top: 10px; right: 12px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; padding: 16px 18px; }
}

/* ==========================================================================
   Navigation, skip link, mobile menu
   ========================================================================== */
.skip { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 8px 12px; background: var(--white); color: #111; font: 500 13px var(--f-sans); transform: translateY(-150%); transition: transform .2s ease; }
.skip:focus { transform: none; }
.header__bar { gap: 24px; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a:not(.btn) { font: 13.5px/1 var(--f-sans); color: var(--muted); transition: color .2s ease; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); }
.nav__cta { display: none; }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; position: relative; flex: none; }
.menu-btn i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform .25s ease, top .25s ease; }
.menu-btn i:first-child { top: 16px; } .menu-btn i:last-child { top: 23px; }
.menu-btn[aria-expanded="true"] i:first-child { top: 19.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { top: 19.5px; transform: rotate(-45deg); }

@media (max-width: 950px) {
  .header__bar { gap: 12px; }
  .nav {
    /* the header (backdrop-filter) is the containing block, so size against the viewport explicitly */
    position: fixed; left: var(--gx); right: var(--gx); top: var(--hdr, 87px); bottom: auto; height: calc(100dvh - var(--hdr, 87px));
    margin: 0; overflow-y: auto; overscroll-behavior: contain;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px;
    background: var(--bg); border: 1px solid var(--line); border-top: 0;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .nav a:not(.btn) { font: 400 26px/1.2 var(--f-display); letter-spacing: -.5px; color: var(--text); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { display: inline-flex; margin-top: 20px; align-self: flex-start; }
  .menu-btn { display: inline-block; }
  .header__cta { margin-left: auto; }
}
@media (max-width: 582px) {
  .header__bar { justify-content: space-between; }
}

/* ==========================================================================
   Subpages
   ========================================================================== */
.page-hero { position: relative; padding: 190px var(--pad-x) 110px; overflow: clip; }
.page-hero--compact { padding-bottom: 72px; }
.page-hero--legal { padding: 170px var(--pad-x) 56px; }
.page-hero--404 { min-height: 88vh; display: flex; align-items: center; }
.pxfield--page {
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.35) 40%, #000 75%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.35) 40%, #000 75%);
}
.page-hero--404 .pxfield--page { -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 45%, transparent 35%, #000 80%); mask-image: radial-gradient(ellipse 55% 60% at 50% 45%, transparent 35%, #000 80%); }
.page-hero__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; position: relative; z-index: 1; }
.page-hero__inner--center { align-items: center; text-align: center; }
.page-hero__inner--center .tag { align-self: center; }
.h1--page { font-size: 56px; letter-spacing: -1.6px; max-width: 900px; }
.legal-meta { font: 12px/1.4 var(--f-mono); letter-spacing: 1px; color: var(--dim); text-transform: uppercase; }
.section--flush { padding-top: 0; }
.section--flush::before { display: none; }

/* forms on a page */
.split--form { align-items: flex-start !important; }
.lead-form--inline { max-width: none; padding: 32px; }
.lead-form--inline .lead__foot { margin: 28px -32px -32px; padding: 16px 32px; }
.is-sent .lead__body > :not(.tag):not(.lead__title):not(.lead__intro) { opacity: .35; pointer-events: none; transition: opacity .3s ease; }

.next-steps { list-style: none; display: flex; flex-direction: column; margin-top: 8px; }
.next-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 22px 20px; margin-bottom: -1px; }
.next-steps__n { font: 11px/1.4 var(--f-mono); letter-spacing: 1.5px; color: var(--accent); padding-top: 3px; }
.next-steps h3 { margin-bottom: 8px; }

/* legal pages */
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal--single { grid-template-columns: minmax(0, 760px); }
.legal__toc { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; }
.legal__toc a { font: 13px/1.35 var(--f-sans); color: var(--muted); transition: color .2s ease; }
.legal__toc a:hover { color: var(--text); }
.prose { max-width: 760px; color: #B9BDB5; font: 15.5px/1.75 var(--f-sans); }
.prose h2 { font: 400 24px/1.25 var(--f-display); letter-spacing: -.4px; color: var(--text); margin: 48px 0 14px; scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-bottom: 14px; }
.prose ul { padding-left: 20px; list-style: square; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(86, 242, 78, .5); text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 500; }
mark.todo { background: rgba(217, 112, 31, .16); color: #F2B07A; padding: 1px 5px; border-radius: 3px; font: 13px/1.6 "Geist Mono", ui-monospace, monospace; }

.footer__legal { display: inline-flex; gap: 18px; }
.footer__legal a:hover { color: var(--text); }
.footer__title { font-weight: 400; }

@media (max-width: 950px) {
  .legal { grid-template-columns: 1fr; gap: 32px; }
  .legal__toc { position: static; }
  .h1--page { font-size: 44px; }
}
@media (max-width: 582px) {
  .page-hero { padding: 130px var(--pad-x) 72px; }
  .page-hero--legal { padding: 120px var(--pad-x) 40px; }
  .h1--page { font-size: 34px; letter-spacing: -1px; }
  .lead-form--inline { padding: 22px 18px; }
  .lead-form--inline .lead__foot { margin: 22px -18px -22px; padding: 14px 18px; }
  .prose { font-size: 15px; }
  .footer__legal { gap: 14px; }
}
@media (max-width: 400px) {
  .tag { font-size: 10px; letter-spacing: 1px; padding: 9px 8px; }
  .h1 { font-size: 32px; }
}
