/* IdeaXxiom website. Fraxxiom's brand language: graphite, yellow, the crossed double-X. */

@view-transition { navigation: auto; }

/* Inter, served from this site rather than Google so no visitor data leaves it. SIL OFL: fonts/OFL.txt. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  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;
}

:root {
  --ink: #101213;
  --ink-2: #1a1d1f;
  --ink-3: #2a2e31;
  --yellow: #ffd51b;
  --yellow-2: #fed600;
  --paper: #f4f5f5;
  --white: #fff;
  --dim: #9aa0a3;
  --mute: #5c6164;
  --line: #e2e4e5;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
  /* The hero mark's size. Everything in the home scene is measured from it. */
  --s: min(56vw, 44svh);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.011em;
  color: var(--white);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}
body:has(.nav[data-open]) { overflow: hidden; }
h1, h2, h3, p, ol, ul, figure, fieldset { margin: 0; }
ol, ul { padding: 0; list-style: none; }
svg { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.light :focus-visible { outline-color: var(--ink); }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 10px; }

/* ---------- Type ---------- */

.display { font-size: clamp(44px, 8vw, 96px); line-height: 1.04; font-weight: 650; letter-spacing: -.045em; }
.h2 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.06; font-weight: 650; letter-spacing: -.04em; }
.h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; font-weight: 600; letter-spacing: -.025em; }
.lede { font-size: clamp(19px, 2vw, 24px); line-height: 1.36; font-weight: 500; letter-spacing: -.02em; color: var(--dim); }
.light .lede, .light .muted { color: var(--mute); }
.muted { color: var(--dim); }

/* ---------- Layout ---------- */

.band { padding: clamp(96px, 14vw, 168px) var(--gutter); }
.light { background: var(--paper); color: var(--ink); }
.light.white { background: var(--white); }
.wrap { max-width: var(--max); margin-inline: auto; }
.head { max-width: 860px; margin: 0 auto clamp(48px, 7vw, 88px); text-align: center; }
.head .lede { margin-top: 20px; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px;
  font-size: 17px; font-weight: 500; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #ffe04f; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-3); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: rgb(127 127 127 / .12); }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 52px;
  border-bottom: 1px solid rgb(255 255 255 / .07);
  view-transition-name: nav;
}
/* The blur lives on a layer of its own: on .nav itself, backdrop-filter would trap the
   fixed-position mobile menu inside the 52px bar. */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgb(16 18 19 / .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.nav-inner { max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -.025em; text-decoration: none; }
.brand svg { width: 27px; height: 23px; }
.brand svg path { fill: var(--yellow); }
.brand svg path + path { fill: var(--yellow-2); }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 14px; }
.nav-links a:not(.btn) { color: rgb(255 255 255 / .78); text-decoration: none; transition: color .2s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-links .btn { min-height: 32px; padding: 0 15px; font-size: 14px; }
.menu-btn { display: none; }
.nav, .nav::before { transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease); }
/* Over light sections the bar goes light, never while the mobile menu is open: that overlay stays dark. */
.nav[data-light]:not([data-open]) { color: var(--ink); border-bottom-color: rgb(16 18 19 / .08); }
.nav[data-light]:not([data-open])::before { background: rgb(244 245 245 / .78); }
.nav[data-light]:not([data-open]) .nav-links a:not(.btn) { color: rgb(16 18 19 / .7); }
.nav[data-light]:not([data-open]) .nav-links a:not(.btn):hover,
.nav[data-light]:not([data-open]) .nav-links a[aria-current="page"] { color: var(--ink); }
.nav[data-light]:not([data-open]) .menu-btn { color: var(--ink); }
.nav[data-light] :focus-visible { outline-color: var(--ink); }

@media (max-width: 760px) {
  .menu-btn {
    display: grid; place-items: center; width: 44px; height: 44px; margin: 0 -10px 0 auto;
    background: none; border: 0; color: var(--white); cursor: pointer;
  }
  .menu-btn span { grid-area: 1 / 1; width: 18px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
  .menu-btn span:first-child { transform: translateY(-4px); }
  .menu-btn span:last-child { transform: translateY(4px); }
  /* Two lines cross into an X, which is the brand's own shape. */
  .nav[data-open] .menu-btn span:first-child { transform: rotate(45deg); }
  .nav[data-open] .menu-btn span:last-child { transform: rotate(-45deg); }

  .nav-links {
    position: fixed; inset: 52px 0 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 20px var(--gutter); background: var(--ink); font-size: 30px; font-weight: 600; letter-spacing: -.03em;
    visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility 0s .3s;
  }
  .nav[data-open] .nav-links { visibility: visible; opacity: 1; transition: opacity .3s var(--ease); }
  .nav-links li { opacity: 0; transform: translateY(-10px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .nav[data-open] .nav-links li { opacity: 1; transform: none; transition-delay: calc(var(--i) * 50ms + 60ms); }
  .nav-links a:not(.btn) { display: block; padding: 10px 0; }
  .nav-links .btn { margin-top: 24px; min-height: 52px; font-size: 18px; width: 100%; }
}

/* ---------- Scroll scenes ---------- */
/* main.js sets --p on each [data-scene]: 0 as it reaches the top, 1 as its end leaves. */

.scene { --p: 0; position: relative; height: var(--len, 300vh); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.stage > * { grid-area: 1 / 1; }

/* Home hero: the two X's, people and work, slide together into the mark, then the
   camera flies through the gap where they cross and lands in the product. */
.hero {
  --len: 420vh;
  --a: clamp(0, var(--p) / .28, 1);
  --ae: calc(var(--a) * var(--a) * (3 - 2 * var(--a)));
  --b: clamp(0, (var(--p) - .3) / .12, 1);
  --c: clamp(0, (var(--p) - .5) / .4, 1);
}
.mark {
  z-index: 1; width: var(--s); height: var(--s); overflow: visible;
  translate: 0 calc(-6svh * (1 - var(--c)));
  /* The gap sits at 48.9% down the mark: zooming on it keeps it centred. */
  transform-origin: 50% 48.9%;
  scale: pow(90, var(--c));
  animation: mark-in 1.2s var(--ease) both;
}
.mark .veil { fill: var(--ink); }
.mark .x1, .mark .x2 { transform-box: fill-box; transform-origin: 50% 50%; }
.mark .x1 { fill: var(--yellow); transform: translate(calc(-150px * (1 - var(--ae))), 0) rotate(calc(-9deg * (1 - var(--ae)))); }
.mark .x2 { fill: var(--yellow-2); transform: translate(calc(114px + 150px * (1 - var(--ae))), 6px) rotate(calc(9deg * (1 - var(--ae)))); }
@keyframes mark-in { from { opacity: 0; scale: .9; } }

.hero-word {
  z-index: 2; align-self: start; margin-top: calc(44svh + var(--s) / 2 + 3svh);
  font-size: clamp(20px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.025em; white-space: nowrap;
  opacity: calc(1 - var(--a) * 3.2);
  translate: calc(var(--side) * var(--s) * .37 * (1 - var(--ae))) 0;
  animation: fade-in 1s .4s var(--ease) backwards;
}
.hero-word.left { --side: -1; }
.hero-word.right { --side: 1; }
.hero-title {
  z-index: 2; align-self: start; margin-top: calc(44svh + var(--s) / 2 + 4svh); padding: 0 var(--gutter); text-align: center;
  opacity: calc(var(--b) - clamp(0, var(--c) * 12, 1));
  translate: 0 calc(28px * (1 - var(--b)));
}
.hero-cue {
  z-index: 2; align-self: end; margin-bottom: 4svh; display: grid; justify-items: center; gap: 10px;
  font-size: 12px; color: var(--dim); opacity: calc(1 - var(--a) * 4);
}
.hero-cue::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--dim), transparent); transform-origin: top; animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
.hero-app {
  z-index: 0; width: min(1080px, 92vw); height: min(660px, 76svh);
  opacity: clamp(0, var(--c) * 3, 1);
  scale: calc(.84 + .16 * var(--c));
}

/* Home statement: the words light up as you read down. --n and --i come from main.js. */
.statement { --len: 240vh; }
.statement .stage { padding: 0 var(--gutter); }
.words { max-width: 980px; font-size: clamp(30px, 4.6vw, 56px); line-height: 1.14; font-weight: 650; letter-spacing: -.035em; }
.words span { opacity: calc(.18 + .82 * clamp(0, var(--p) * 1.3 * var(--n) - var(--i), 1)); }

/* About: the mark comes apart into its two strokes, then closes again. */
.split {
  --len: 300vh;
  --sep: calc(clamp(0, (var(--p) - .08) / .3, 1) - clamp(0, (var(--p) - .62) / .28, 1));
  --sepe: calc(var(--sep) * var(--sep) * (3 - 2 * var(--sep)));
}
.split .mark { animation: none; scale: 1; translate: 0 -8svh; width: min(60vw, 40svh); height: min(60vw, 40svh); }
.split .x1 { transform: translate(calc(-170px * var(--sepe)), 0); }
.split .x2 { transform: translate(calc(114px + 170px * var(--sepe)), 6px); }
.split-label { z-index: 2; translate: calc(var(--side) * min(60vw, 40svh) * .405 * var(--sepe)) calc(-8svh + min(60vw, 40svh) * .44); font-size: clamp(20px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.025em; opacity: var(--sep); }
.split-label.left { --side: -1; }
.split-label.right { --side: 1; }
.split-caption { z-index: 2; align-self: end; margin-bottom: 12svh; max-width: 640px; padding: 0 var(--gutter); text-align: center; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.3; font-weight: 600; letter-spacing: -.025em; }
.split-caption.one { opacity: calc(clamp(0, (var(--p) - .2) / .1, 1) - clamp(0, (var(--p) - .52) / .08, 1)); }
.split-caption.two { opacity: clamp(0, (var(--p) - .82) / .08, 1); }

/* ---------- Product UI (decorative, drawn in HTML) ---------- */

.ui {
  --m-bg: var(--ink-2); --m-side: #15181a; --m-card: #202427; --m-text: #e9ebec; --m-dim: #8f9598; --m-line: rgb(255 255 255 / .07);
  display: grid; grid-template-columns: 200px 1fr; overflow: hidden; text-align: left;
  background: var(--m-bg); color: var(--m-text); font-size: 13px; line-height: 1.4; letter-spacing: -.005em;
  border-radius: 18px; box-shadow: 0 0 0 1px var(--m-line), 0 40px 120px rgb(0 0 0 / .45);
}
.ui-light {
  --m-bg: var(--white); --m-side: #f7f8f8; --m-card: var(--white); --m-text: var(--ink); --m-dim: #6b7073; --m-line: #e4e6e7;
  box-shadow: 0 0 0 1px var(--m-line), 0 30px 80px rgb(16 18 19 / .12);
}
.ui-side { display: flex; flex-direction: column; gap: 2px; padding: 18px 12px; background: var(--m-side); border-right: 1px solid var(--m-line); }
.ui-co { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; font-size: 14px; font-weight: 600; }
.ui-logo { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--tenant, var(--yellow)); color: var(--ink); font-weight: 700; transition: background-color .45s var(--ease); }
.ui-group { padding: 14px 8px 6px; font-size: 11px; font-weight: 500; color: var(--m-dim); }
.ui-item { position: relative; padding: 7px 8px; border-radius: 8px; color: var(--m-dim); }
.ui-item.on { background: var(--m-line); color: var(--m-text); }
.ui-item.on::before { content: ""; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--tenant, var(--yellow)); transition: background-color .45s var(--ease); }
.ui-main { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-content: start; padding: 22px; overflow: hidden; }
.ui-col { display: grid; gap: 16px; align-content: start; }
.ui-h { grid-column: 1 / -1; font-size: 20px; font-weight: 600; letter-spacing: -.025em; }
.m-card { display: grid; gap: 12px; padding: 16px; border-radius: 14px; background: var(--m-card); box-shadow: 0 0 0 1px var(--m-line); }
.m-row { display: flex; align-items: center; gap: 10px; }
.m-title { font-size: 14px; font-weight: 600; }
.m-name { display: block; font-weight: 600; }
.m-dim { display: block; font-size: 12px; color: var(--m-dim); }
.av { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--c, #cfd3d6); color: var(--ink); font-size: 12px; font-weight: 600; }
.av-stack { display: flex; }
.av-stack .av { width: 26px; height: 26px; font-size: 10px; margin-left: -8px; box-shadow: 0 0 0 2px var(--m-card); }
.av-stack .av:first-child { margin-left: 0; }
.m-reacts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.m-reacts span:not(.m-dim) { padding: 3px 10px; border-radius: 999px; background: var(--m-line); }
.m-req { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--m-line); }
.m-req b { display: block; font-weight: 600; }
.chip { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.chip.ok { background: #d9f2e4; color: #17633f; }
.chip.wait { background: #fff1c2; color: #6b5200; }
.chip.info { background: #e3ecfb; color: #24508f; }
.ui:not(.ui-light) .chip.ok { background: rgb(74 222 128 / .14); color: #86efac; }
.ui:not(.ui-light) .chip.wait { background: rgb(255 213 27 / .14); color: var(--yellow); }
.ui:not(.ui-light) .chip.info { background: rgb(96 165 250 / .15); color: #93c5fd; }
.m-course { grid-template-columns: auto 1fr; align-items: center; }
.ring { width: 44px; height: 44px; rotate: -90deg; }
.ring circle { fill: none; stroke: var(--m-line); stroke-width: 3.5; }
.ring .on { stroke: var(--yellow); stroke-linecap: round; stroke-dasharray: var(--v) 100; }
.ui-light .ring .on, .tile .ring .on { stroke: #e5b800; }
.bubble { max-width: 80%; padding: 9px 13px; border-radius: 18px; background: var(--m-line); }
.bubble.me { justify-self: end; background: var(--yellow); color: var(--ink); }
.typing { display: flex; gap: 4px; padding: 12px 14px; border-radius: 18px; background: var(--m-line); justify-self: start; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--m-dim); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

@media (max-width: 700px) {
  .ui { grid-template-columns: 1fr; }
  .ui-side { display: none; }
  .ui-main { grid-template-columns: 1fr; padding: 16px; }
}

/* ---------- Tiles ---------- */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; max-width: var(--max); margin: 0 auto; }
.tile {
  --tile: var(--white); --art: var(--paper);
  grid-column: span 2; display: flex; flex-direction: column; gap: 10px; min-height: 440px; overflow: hidden;
  padding: 36px 32px 0; border-radius: 28px; background: var(--tile);
}
.white .tile { --tile: var(--paper); --art: var(--white); }
.tile.wide { grid-column: span 4; }
.tile p { color: var(--mute); max-width: 46ch; }
.tile-art {
  --m-card: var(--art); --m-text: var(--ink); --m-dim: #6b7073; --m-line: rgb(16 18 19 / .07);
  display: grid; gap: 12px; align-content: start; margin: auto -8px 0; padding: 20px 20px 24px;
  border-radius: 20px 20px 0 0; background: var(--art); font-size: 13px; line-height: 1.4;
}
.tile-art .m-card { box-shadow: none; background: var(--tile); }
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile { grid-column: span 1; }
  .tile.wide { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile { min-height: 0; padding: 28px 24px 0; }
}

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 12px; }
.cal b { font-weight: 500; color: var(--m-dim); padding-bottom: 4px; }
.cal span { position: relative; padding: 5px 0; border-radius: 8px; }
.cal .today { background: var(--ink); color: var(--white); font-weight: 600; }
.cal .off { background: #d9f2e4; color: #17633f; }
.cal .ev::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #e5b800; }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.board > div { display: grid; gap: 6px; align-content: start; }
.board b { font-size: 11px; font-weight: 500; color: var(--m-dim); }
.board span { padding: 8px 9px; border-radius: 10px; background: var(--tile, var(--m-card)); font-size: 12px; line-height: 1.3; }
.board .done { color: var(--m-dim); text-decoration: line-through; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; gap: 4px; }
.bar div { display: flex; justify-content: space-between; }
.bar i { display: block; height: 8px; border-radius: 4px; background: linear-gradient(var(--ink), var(--ink)) no-repeat var(--m-line); background-size: var(--v) 100%; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.fields b { display: block; font-weight: 600; }

/* Scroll-linked entrances, where the browser supports them. Elsewhere tiles just sit still. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tile { view-timeline: --tile; }
    .tile, .mod, .principle, .setup li {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 22%;
    }
    .tile .ring .on { animation: ring linear both; animation-timeline: --tile; animation-range: cover 25% cover 55%; }
    .bar i { animation: fill-bar linear both; animation-timeline: --tile; animation-range: cover 25% cover 55%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(56px) scale(.96); } }
@keyframes ring { from { stroke-dasharray: 0 100; } }
@keyframes fill-bar { from { background-size: 0 100%; } }

/* ---------- Brand demo ---------- */

.demo { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 80px); align-items: center; max-width: var(--max); margin: 0 auto; }
.demo .lede { margin: 20px 0 36px; }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--ink-3);
  background: var(--ink-2); color: var(--white); font-size: 17px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 4px rgb(255 213 27 / .2); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding: 0; border: 0; }
.swatches legend { width: 100%; margin-bottom: 12px; font-size: 14px; font-weight: 500; }
.swatches label { position: relative; cursor: pointer; }
.swatches input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatches .dot { display: block; width: 36px; height: 36px; border-radius: 50%; background: var(--sw); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.swatches label:hover .dot { transform: scale(1.08); }
.swatches input:checked + .dot { box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--white); }
.swatches input:focus-visible + .dot { outline: 2px solid var(--yellow); outline-offset: 6px; }
.browser { border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 40px 120px rgb(0 0 0 / .5); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #24282b; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3b4043; }
.browser-url { flex: 1; margin: 0 40px 0 24px; padding: 6px 12px; border-radius: 8px; background: #16191b; color: var(--dim); font-size: 13px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-url b { color: var(--white); font-weight: 500; }
.browser .ui { border-radius: 0; box-shadow: none; height: 420px; }
.ui-btn { justify-self: start; padding: 8px 14px; border-radius: 999px; background: var(--tenant); color: var(--ink); font-weight: 600; transition: background-color .45s var(--ease); }
@media (max-width: 860px) {
  .demo { grid-template-columns: 1fr; }
}

/* ---------- Services: sticky showcase ---------- */

.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); max-width: var(--max); margin: 0 auto; }
.screens { grid-column: 2; grid-row: 1; position: sticky; top: calc(50svh - 240px); align-self: start; height: 480px; }
.screen { position: absolute; inset: 0; height: auto; opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.screen.is-active { opacity: 1; transform: none; }
.screen .ui-main { grid-template-columns: 1fr; height: 100%; }
.screen.ui { grid-template-columns: 1fr; }
.steps { grid-column: 1; grid-row: 1; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.step h2 { color: var(--mute); transition: color .5s var(--ease); }
.step.is-active h2 { color: var(--ink); }
.step h2 { font-size: clamp(30px, 3.6vw, 44px); }
.step p { font-size: 19px; color: var(--mute); max-width: 42ch; }
.timeline { display: grid; gap: 0; }
.timeline li { position: relative; display: grid; gap: 2px; padding: 0 0 18px 28px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.timeline li::after { content: ""; position: absolute; left: 5.5px; top: 20px; bottom: 2px; width: 1px; background: var(--m-line); }
.timeline li:last-child::after { display: none; }
.timeline li.next::before { background: var(--m-card); box-shadow: inset 0 0 0 2px var(--m-line); }
.cert { display: grid; gap: 6px; justify-items: center; padding: 28px; border-radius: 14px; text-align: center; background: var(--paper); box-shadow: inset 0 0 0 1px var(--m-line); }
.cert svg { width: 40px; height: 34px; }
.cert path { fill: #e5b800; }
/* Phones: no sticky screen. The two columns dissolve into one list with each step's screen above it. */
@media (max-width: 860px) {
  .showcase { display: flex; flex-direction: column; gap: 0; }
  .screens, .steps { display: contents; }
  .screen, .screen.is-active { position: relative; inset: auto; height: min(440px, 62svh); margin-top: 80px; opacity: 1; transform: none; }
  .screen:first-child { margin-top: 0; }
  .step { min-height: 0; padding-top: 28px; }
  .step h2 { color: var(--ink); }
  .screen:nth-child(1) { order: 1; } .step:nth-child(1) { order: 2; }
  .screen:nth-child(2) { order: 3; } .step:nth-child(2) { order: 4; }
  .screen:nth-child(3) { order: 5; } .step:nth-child(3) { order: 6; }
  .screen:nth-child(4) { order: 7; } .step:nth-child(4) { order: 8; }
  .screen:nth-child(5) { order: 9; } .step:nth-child(5) { order: 10; }
  .screen:nth-child(6) { order: 11; } .step:nth-child(6) { order: 12; }
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .screen { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
    }
  }
}

/* ---------- Services: carousel ---------- */

.rail-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: var(--max); margin: 0 auto 40px; }
.rail-btns { display: flex; gap: 10px; }
.round {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--ink-3); color: var(--white); cursor: pointer; transition: background-color .2s, opacity .2s;
}
.round:hover { background: #3a3f42; }
.round:disabled { opacity: .35; cursor: default; }
.round svg { width: 10px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rail {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 8px max(var(--gutter), (100% - var(--max)) / 2 + var(--gutter));
  scroll-padding-inline: max(var(--gutter), (100% - var(--max)) / 2 + var(--gutter));
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -4px; border-radius: 28px; }
.mod {
  flex: 0 0 min(300px, 78vw); scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; min-height: 300px;
  padding: 30px 28px; border-radius: 24px; background: var(--ink-2); box-shadow: inset 0 1px 0 rgb(255 255 255 / .05);
}
.mod p { color: var(--dim); }
.mod .side { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--dim); }
.mod .side::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.mod .side.work::before { background: var(--white); }
.rail-note { max-width: var(--max); margin: 40px auto 0; color: var(--dim); }

/* ---------- Numbered setup (a real sequence) ---------- */

.setup { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: var(--max); margin: 0 auto; counter-reset: step; }
.setup li { display: grid; gap: 10px; align-content: start; padding: 32px 28px 36px; border-radius: 24px; background: var(--paper); counter-increment: step; }
.setup li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 650; }
.setup p { color: var(--mute); }
@media (max-width: 960px) { .setup { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .setup { grid-template-columns: 1fr; } }

/* ---------- Page heroes ---------- */

.page-hero { padding: calc(52px + clamp(80px, 14vw, 160px)) var(--gutter) clamp(80px, 12vw, 140px); text-align: center; }
.page-hero h1 { max-width: 1000px; margin-inline: auto; text-wrap: balance; }
.page-hero .lede { max-width: 720px; margin: 24px auto 0; }
.rise { animation: rise-in 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 120ms + 100ms); }
@keyframes rise-in { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } }

.draw { width: min(220px, 50vw); height: auto; margin: 0 auto 48px; overflow: visible; }
.draw path { fill: transparent; stroke: var(--yellow); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s var(--ease) forwards, fill-mark .7s 1.2s var(--ease) forwards; }
.draw path + path { stroke: var(--yellow-2); animation-delay: .3s, 1.45s; --fill: var(--yellow-2); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill-mark { to { fill: var(--fill, var(--yellow)); stroke-width: 0; } }

/* ---------- About ---------- */

.prose { max-width: 720px; margin: 0 auto; display: grid; gap: 24px; font-size: clamp(19px, 1.9vw, 22px); line-height: 1.5; letter-spacing: -.015em; }
.prose p:first-child { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.2; font-weight: 600; letter-spacing: -.03em; }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 56px clamp(32px, 6vw, 80px); max-width: 960px; margin: 0 auto; }
.principle { display: grid; gap: 12px; align-content: start; padding-top: 28px; border-top: 1px solid var(--line); }
.principle p { color: var(--mute); }
@media (max-width: 700px) { .principles { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Contact ---------- */

.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 96px); max-width: var(--max); margin: 0 auto; align-items: start; }
.next-steps { display: grid; gap: 24px; margin-top: 28px; counter-reset: step; }
.next-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; counter-increment: step; color: var(--mute); }
.next-steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 14px; font-weight: 600; }
.next-steps b { display: block; color: var(--ink); font-weight: 600; }
.signin-note { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--mute); }
.signin-note b { color: var(--ink); font-weight: 600; }
.form-card { position: relative; padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: var(--white); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form .full { grid-column: 1 / -1; }
.form .field input, .form .field select, .form .field textarea { background: var(--paper); border-color: transparent; color: var(--ink); }
.form .field input:focus, .form .field select:focus, .form .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgb(16 18 19 / .1); }
.form textarea { min-height: 150px; resize: vertical; }
.form .btn { justify-self: start; }
.form-status { grid-column: 1 / -1; color: #b42318; font-weight: 500; }
.hp { position: absolute; left: -9999px; }
.sent { display: none; justify-items: center; gap: 12px; padding: 48px 0; text-align: center; }
.sent svg { width: 72px; height: 72px; margin-bottom: 12px; }
.sent circle { fill: var(--yellow); }
.sent path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.form-card.is-sent .form { display: none; }
.form-card.is-sent .sent { display: grid; animation: rise-in .6s var(--ease) both; }
.form-card.is-sent .sent path { animation: draw .5s .35s var(--ease) forwards; }
.sent p { color: var(--mute); }
.form-note { font-size: 14px; color: var(--mute); }
.form-note a, .legal a { color: var(--ink); text-decoration-color: #e5b800; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Legal pages ---------- */

.page-hero.compact { padding-bottom: clamp(56px, 8vw, 96px); }
.legal { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.6; }
.legal h2 { margin: 56px 0 14px; font-size: clamp(22px, 2.4vw, 26px); line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.legal h3 { margin: 28px 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.legal p, .legal ul { margin-bottom: 16px; color: #2f3336; }
.legal ul { padding-left: 1.25em; list-style: disc; }
.legal li { margin-bottom: 8px; padding-left: 4px; }
.legal strong { color: var(--ink); font-weight: 600; }
.short { margin-bottom: 8px; padding: 28px 32px; border-radius: 24px; background: var(--white); }
.short h2 { margin-top: 0; }
.short ul { margin-bottom: 0; }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.footer { padding: 56px var(--gutter) 40px; background: var(--ink); color: var(--dim); font-size: 14px; border-top: 1px solid rgb(255 255 255 / .06); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; max-width: var(--max); margin: 0 auto; }
.footer .brand { color: var(--white); }
.footer nav { display: flex; flex-wrap: wrap; gap: 28px; }
.footer nav a { text-decoration: none; transition: color .2s; }
.footer nav a:hover { color: var(--white); }
.footer-legal { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .06); font-size: 12px; }
.footer-legal nav { gap: 20px; }

/* ---------- Page transitions ---------- */

::view-transition-old(root) { animation: .22s var(--ease) both vt-out; }
::view-transition-new(root) { animation: .5s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Reduced motion: every scene settles into a still layout ---------- */

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .scene { height: auto; }
  .stage { position: relative; height: auto; display: flex; flex-direction: column; align-items: center; gap: 40px; padding: 140px var(--gutter) 100px; overflow: visible; }
  .hero { --p: .45; }
  .hero .veil, .hero-word, .hero-cue { display: none; }
  .hero .mark, .hero-title, .hero-app { margin: 0; align-self: center; translate: none; scale: none; opacity: 1; }
  .hero-app { order: 1; }
  .hero-app { height: 560px; }
  .statement { --p: 1; }
  .split { --p: .4; }
  .split .mark, .split-label { translate: none; }
  .split-caption { margin: 0; opacity: 1 !important; }
  .split-caption.two { display: none; }
  .split-label { display: none; }
}
