/* ==========================================================================
   Boutanna Apps
   Monochrome system drawn from the mark: ink black, ivory, quiet greys.
   ========================================================================== */

@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/intertight-latin.woff2") format("woff2");
  font-weight: 300 800;
  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 Tight";
  src: url("/assets/fonts/intertight-latin-ext.woff2") format("woff2");
  font-weight: 300 800;
  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: "Instrument Serif";
  src: url("/assets/fonts/instrumentserif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  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: "Instrument Serif";
  src: url("/assets/fonts/instrumentserif-italic-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  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: "Instrument Serif";
  src: url("/assets/fonts/instrumentserif-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

:root {
  --bg: #070708;
  --bg-raise: #0d0d0f;
  --surface: #111113;
  --surface-2: #17171a;
  --line: rgba(243, 241, 236, 0.08);
  --line-strong: rgba(243, 241, 236, 0.16);
  --text: #f3f1ec;
  --text-2: #c9c6bf;
  --muted: #8f8d88;
  --dim: #5f5e5a;
  --ink: #070708;

  --deadpoint: #ffb000;
  --getups: #8a9a5b;

  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 4vw, 48px);
  --max: 1320px;
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 36px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--text); color: var(--ink); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--text); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Grain: a very quiet texture so large black fields do not feel flat */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Layout ----------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: calc(860px + var(--gutter) * 2); }
.section { padding-block: clamp(80px, 10vw, 144px); position: relative; }
.section-tight { padding-block: clamp(64px, 8vw, 112px); }
.section + .section.section-flush { padding-top: 0; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Type ------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text); opacity: 0.9; }
.eyebrow.no-dot::before { display: none; }

.display, .h1, .h2, .h3 { font-weight: 500; letter-spacing: -0.04em; line-height: 0.98; color: var(--text); text-wrap: balance; }
.display { font-size: clamp(48px, 9.2vw, 136px); letter-spacing: -0.05em; line-height: 0.92; }
.h1 { font-size: clamp(44px, 7vw, 104px); }
.h2 { font-size: clamp(36px, 5.2vw, 72px); line-height: 1; }
.h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; line-height: 1.1; }
.h4 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.display em, .h1 em, .h2 em { padding-right: 0.04em; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--text-2); max-width: 40ch; text-wrap: pretty; }
.body-l { font-size: 19px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono-num { font-variant-numeric: tabular-nums; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  background: var(--text); color: var(--ink); border: 1px solid var(--text);
  transition: transform 0.4s var(--ease-out), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform 0.4s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); }
.btn-small { --h: 42px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.arrow { width: 16px; height: 16px; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; transition: border-color 0.3s, gap 0.3s var(--ease-out);
}
.link-arrow:hover { border-color: var(--text); gap: 12px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--text-2); border: 1px solid var(--line-strong); background: rgba(255,255,255,0.02);
  white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #5dd39e; box-shadow: 0 0 0 4px rgba(93, 211, 158, 0.15); }
.pill .dot.is-soon { background: #e9c46a; box-shadow: 0 0 0 4px rgba(233, 196, 106, 0.15); }
a.pill { transition: border-color 0.3s; }
a.pill:hover { border-color: var(--text); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .menu-open .site-header {
  background: rgba(7, 7, 8, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 18px; letter-spacing: -0.03em; margin-right: auto; }
.brand img { width: auto; height: 30px; }
.brand-name span { color: var(--muted); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--text-2);
  transition: color 0.25s, background-color 0.25s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--text);
}
.header-cta { margin-left: 8px; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
  position: relative; margin-left: 4px;
}
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); border-radius: 2px;
  transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out);
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--bg);
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease-out), visibility 0s linear 0.35s;
  overflow-y: auto;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition: opacity 0.35s var(--ease), transform 0.5s var(--ease-out), visibility 0s; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex; align-items: center; justify-content: space-between;
  font-size: clamp(36px, 10vw, 52px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.2;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu nav a[aria-current="page"] { color: var(--text); }
.mobile-menu nav a:not([aria-current="page"]) { color: var(--text-2); }
.mobile-menu nav a .arrow { width: 24px; height: 24px; color: var(--muted); }
.mobile-menu-foot { display: grid; gap: 16px; padding-top: 32px; }
.mobile-menu-foot a.mail { font-size: 20px; font-weight: 500; }
body.menu-open { overflow: hidden; }

@media (max-width: 880px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
}
@media (min-width: 881px) { .mobile-menu { display: none; } }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px; overflow: hidden; isolation: isolate;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.hero-copy { position: relative; z-index: 2; }
.hero-copy .pill { margin-bottom: 36px; }
.hero-copy .display { margin-bottom: 32px; }
.hero-copy .lead { margin-bottom: 44px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-mark { position: relative; display: grid; place-items: center; aspect-ratio: 0.8; }
.hero-mark .halo {
  position: absolute; width: 120%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(243, 241, 236, 0.09), rgba(243, 241, 236, 0) 70%);
  z-index: -1;
}
.hero-mark .orbit { position: absolute; inset: 4% -6%; border: 1px solid var(--line); border-radius: 50%; }
.hero-mark .orbit:nth-child(3) { inset: 18% 8%; border-style: dashed; border-color: rgba(243,241,236,0.06); }
.hero-mark img { position: relative; height: 86%; width: auto; filter: drop-shadow(0 30px 80px rgba(0,0,0,0.6)); }
.js .hero-mark img { animation: float 9s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(1.2deg); } }

.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 28px; z-index: 2;
}
.hero-foot .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue i { display: block; width: 1px; height: 36px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--text); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

@media (max-width: 880px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 24px); padding-bottom: 96px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-mark { order: -1; width: min(62vw, 300px); margin: 0 auto 8px; }
  .hero-copy .pill { margin-bottom: 24px; }
  .hero-foot { display: none; }
}

/* Page hero (inner pages) -------------------------------------------------- */
.page-hero { padding: calc(var(--header-h) + clamp(64px, 10vw, 140px)) 0 clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.page-hero .eyebrow { margin-bottom: 28px; }
.page-hero .h1 { max-width: 14ch; }
.page-hero .lead { margin-top: 32px; }
/* Same size and position on every inner page: top aligned with the eyebrow, right aligned with the content edge */
.page-hero-mark {
  position: absolute; z-index: 0; pointer-events: none;
  width: 200px; height: 284px;
  top: calc(var(--header-h) + clamp(64px, 10vw, 140px));
  right: max(var(--gutter), calc((100% - var(--max)) / 2));
  opacity: 0.08;
}
.page-hero .container { position: relative; z-index: 1; }
@media (max-width: 880px) { .page-hero-mark { width: 56px; height: 80px; top: calc(var(--header-h) + 24px); opacity: 0.14; } }

/* Marquee ---------------------------------------------------------------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 26px 0; position: relative; }
.marquee-track { display: flex; width: max-content; gap: 0; }
.js .marquee-track { animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-item { display: inline-flex; align-items: center; gap: 40px; padding-right: 40px; font-size: clamp(22px, 2.6vw, 34px); font-weight: 500; letter-spacing: -0.03em; color: var(--text-2); white-space: nowrap; }
.marquee-item img { height: 22px; width: auto; opacity: 0.5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Section heads ----------------------------------------------------------- */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head .eyebrow { grid-column: 1 / -1; margin-bottom: -8px; }
.section-head .body-l { max-width: 44ch; justify-self: end; }
.section-head.stack { grid-template-columns: 1fr; }
.section-head.stack .body-l { justify-self: start; }
@media (max-width: 880px) { .section-head { grid-template-columns: 1fr; } .section-head .body-l { justify-self: start; } }

/* App showcase cards -------------------------------------------------------- */
.app-list { display: grid; gap: 24px; }
.app-card {
  --accent: var(--text);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  min-height: 600px; isolation: isolate;
  transition: border-color 0.4s;
}
.app-card:hover { border-color: var(--line-strong); }
.app-card[data-app="deadpoint"] { --accent: var(--deadpoint); }
.app-card[data-app="getups"] { --accent: var(--getups); }
.app-card-body { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 24px; position: relative; z-index: 1; }
.app-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.app-icon { width: 72px; height: 72px; border-radius: 18px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 12px 32px rgba(0,0,0,0.4); }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-icon.lg { width: 112px; height: 112px; border-radius: 26px; }
.app-card .h2 { font-size: clamp(40px, 5vw, 68px); }
.app-card .app-tag { color: var(--accent); font-weight: 500; font-size: 15px; letter-spacing: 0.02em; }
.app-card p.body-l { max-width: 38ch; }
.app-card .feature-list { margin-top: auto; }
.app-card-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.app-card-visual {
  position: relative; display: grid; place-items: center; padding: 48px 24px 0; overflow: hidden;
  background: var(--surface-2);
  border-left: 1px solid var(--line);
}
.app-card-visual::before {
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; top: 18%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 34%, transparent), transparent 75%);
  opacity: 0.55; z-index: 0;
}
.app-card-visual .phone { position: relative; z-index: 1; align-self: end; margin-bottom: -96px; transition: transform 0.8s var(--ease-out); }
.app-card:hover .app-card-visual .phone { transform: translateY(-12px); }

.app-card.is-soon .app-card-visual { background: #0f100c; }

.feature-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.feature-list li { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 16px; }
.feature-list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent, var(--text)); transform: translateY(-2px); }

@media (max-width: 980px) {
  .app-card { grid-template-columns: 1fr; min-height: 0; }
  .app-card-visual { border-left: 0; border-top: 1px solid var(--line); min-height: 460px; padding-top: 40px; }
  .app-card-visual .phone { margin-bottom: -150px; }
}

/* Placeholder card for future apps */
.app-next {
  border-radius: var(--radius-lg); border: 1px dashed var(--line-strong); padding: clamp(32px, 4vw, 56px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.app-next .h3 { max-width: 22ch; }

/* Principles ------------------------------------------------------------- */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.principle { padding: 36px 32px 8px 0; display: flex; flex-direction: column; gap: 16px; }
.principle + .principle { padding-left: 32px; border-left: 1px solid var(--line); }
.principle .num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--muted); }
.principle p { color: var(--muted); font-size: 16px; }
@media (max-width: 1080px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .principle:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
}
@media (max-width: 620px) {
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 28px 0 0; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--line); margin-top: 28px; }
}

/* Capabilities grid ------------------------------------------------------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cap {
  position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  padding: 32px; min-height: 280px; display: flex; flex-direction: column; gap: 14px; overflow: hidden;
  transition: border-color 0.4s, transform 0.6s var(--ease-out);
}
.cap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(243,241,236,0.07), transparent 60%);
}
.cap:hover { border-color: var(--line-strong); }
.cap:hover::after { opacity: 1; }
.cap-icon { width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line-strong); display: grid; place-items: center; margin-bottom: auto; }
.cap-icon svg { width: 22px; height: 22px; stroke: var(--text); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cap p { color: var(--muted); font-size: 16px; }
.cap .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cap .tags span { font-size: 12px; color: var(--text-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
@media (max-width: 980px) { .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cap-grid { grid-template-columns: 1fr; } .cap { min-height: 0; } .cap-icon { margin-bottom: 24px; } }

/* Process ---------------------------------------------------------------- */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
.step { position: relative; padding: 0 24px 0 0; }
.step-dot { display: flex; align-items: center; gap: 0; margin-bottom: 28px; }
.step-dot b { width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--text); background: var(--bg); flex: none; position: relative; z-index: 1; }
.step-dot i { height: 1px; background: var(--line-strong); flex: 1; }
.step:last-child .step-dot i { background: linear-gradient(90deg, var(--line-strong), transparent); }
.step .num { font-size: 13px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; margin-bottom: 10px; display: block; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 980px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 28px 1fr; gap: 0 20px; padding: 0 0 36px; }
  .step-dot { flex-direction: column; margin: 6px 0 0; grid-row: span 3; height: 100%; }
  .step-dot i { width: 1px; height: auto; flex: 1; }
  .step:last-child .step-dot i { background: linear-gradient(180deg, var(--line-strong), transparent); }
  .step:last-child { padding-bottom: 0; }
}

/* Split blocks ----------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.split-sticky { position: sticky; top: calc(var(--header-h) + 40px); }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split-sticky { position: static; } }

.statement { font-size: clamp(30px, 4.2vw, 60px); line-height: 1.08; letter-spacing: -0.04em; font-weight: 500; text-wrap: balance; }
.statement .dim { color: var(--dim); }

.prose { color: var(--text-2); font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); color: var(--text); letter-spacing: -0.03em; line-height: 1.15; font-weight: 500; margin-top: 2.2em; }
.prose h3 { font-size: 20px; color: var(--text); letter-spacing: -0.02em; font-weight: 600; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.5em; }
.prose a { color: var(--text); border-bottom: 1px solid var(--line-strong); transition: border-color 0.3s; }
.prose a:hover { border-color: var(--text); }
.prose strong { color: var(--text); font-weight: 600; }

/* Feature tiles (product pages) ------------------------------------------ */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 12px; min-height: 240px; }
.tile .k { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--accent, var(--muted)); margin-bottom: auto; }
.tile p { color: var(--muted); font-size: 16px; }
@media (max-width: 980px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 0; } .tile .k { margin-bottom: 20px; } }

/* Product hero ------------------------------------------------------------ */
.product-hero { padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 0; position: relative; overflow: hidden; }
.product-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.product-hero-copy { padding-bottom: clamp(56px, 8vw, 120px); display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.product-hero-copy .h1 { max-width: 12ch; }
.breadcrumbs { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.breadcrumbs a:hover { color: var(--text); }
.product-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; min-height: 560px; }
.product-stage::before {
  content: ""; position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; bottom: -20%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent 75%);
  opacity: 0.6; z-index: -1;
}
.product-stage .phone { margin-bottom: -80px; }
.product-stage .phone + .phone { margin-left: -80px; transform: translateY(-48px) rotate(4deg); z-index: -1; opacity: 0.92; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 980px) {
  .product-hero-grid { grid-template-columns: 1fr; }
  .product-hero-copy { padding-bottom: 24px; }
  .product-stage { min-height: 0; padding-top: 24px; overflow: hidden; margin-inline: calc(var(--gutter) * -1); }
  .product-stage .phone { margin-bottom: -170px; }
  .product-stage .phone + .phone { margin-left: -120px; }
}
@media (max-width: 520px) { .product-stage .phone + .phone { display: none; } }
.product-band { border-top: 1px solid var(--line); position: relative; z-index: 2; background: var(--bg); }

.support-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.support-strip a {
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: border-color 0.3s;
}
.support-strip a:hover { border-color: var(--line-strong); }
.support-strip a span { display: grid; gap: 4px; }
.support-strip small { color: var(--muted); font-size: 14px; }
@media (max-width: 880px) { .support-strip { grid-template-columns: 1fr; } }

/* Phone mockups ---------------------------------------------------------- */
.phone {
  --w: 300px;
  width: var(--w); aspect-ratio: 300 / 620; flex: none;
  border-radius: calc(var(--w) * 0.165); padding: calc(var(--w) * 0.032);
  background: #1a1a1d;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), inset 0 0 0 4px #0b0b0c, 0 40px 100px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(0,0,0,0.6);
  position: relative;
  font-size: calc(var(--w) * 0.043);
  line-height: 1.35;
  letter-spacing: -0.01em;
  user-select: none;
}
.phone-screen { position: relative; height: 100%; border-radius: calc(var(--w) * 0.135); overflow: hidden; background: #0b0b0c; display: flex; flex-direction: column; }
.phone-screen::before { content: ""; position: absolute; top: 2.2%; left: 50%; width: 31%; height: 4.4%; transform: translateX(-50%); background: #000; border-radius: 999px; z-index: 5; }
.phone .sb { display: flex; justify-content: space-between; align-items: center; padding: 5.5% 9% 0; font-weight: 600; font-size: 0.95em; height: 11%; flex: none; }
.phone .sb .sys { display: flex; gap: 0.35em; align-items: center; }
.phone .sb .sys i { display: block; width: 1.1em; height: 0.7em; border-radius: 2px; background: currentColor; opacity: 0.9; }
.phone .sb .sys i:first-child { width: 1em; clip-path: polygon(0 100%, 25% 100%, 25% 70%, 50% 70%, 50% 40%, 75% 40%, 75% 0, 100% 0, 100% 100%); border-radius: 1px; }
.phone .sb .sys i:last-child { width: 1.7em; border-radius: 3px; }
.phone-body { padding: 4% 7% 0; display: flex; flex-direction: column; gap: 0.9em; flex: 1; min-height: 0; }
@media (max-width: 620px) { .phone { --w: 268px; } }
@media (max-width: 360px) { .phone { --w: 240px; } }

/* CTA band --------------------------------------------------------------- */
.cta-band { text-align: center; display: grid; justify-items: center; gap: 32px; }
.cta-band img.cta-mark { height: 84px; width: auto; opacity: 0.95; }
.cta-band .display { font-size: clamp(44px, 8vw, 120px); max-width: 12ch; }
.cta-band .lead { margin-inline: auto; text-align: center; }
.mail-big {
  display: inline-flex; align-items: center; gap: 14px; font-size: clamp(22px, 3.2vw, 40px); font-weight: 500; letter-spacing: -0.03em;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 6px; transition: border-color 0.3s;
  word-break: break-all;
}
.mail-big:hover { border-color: var(--text); }

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

.form-card { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--text-2); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg-raise); border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 14px 16px; font-size: 16px; color: var(--text); transition: border-color 0.25s, background-color 0.25s; appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23f3f1ec' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field select option { background: var(--surface); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--text); background: var(--surface-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; height: 40px; align-items: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 15px; color: var(--text-2); cursor: pointer; transition: all 0.25s; }
.chip input:checked + span { background: var(--text); color: var(--ink); border-color: var(--text); }
.chip input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.form-foot p { color: var(--muted); font-size: 14px; max-width: 34ch; }
.form-status { font-size: 14px; color: var(--text-2); min-height: 1.4em; margin-top: 12px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }

.copy-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; color: var(--text-2);
  transition: border-color 0.3s, color 0.3s;
}
.copy-btn:hover { border-color: var(--text); color: var(--text); }
.copy-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* Info cards / meta lists ------------------------------------------------- */
.meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.meta-grid > div { padding: 24px 24px 0 0; display: grid; gap: 6px; }
.meta-grid > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.meta-grid dt { font-size: 13px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.meta-grid dd { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
@media (max-width: 880px) {
  .meta-grid { grid-template-columns: 1fr 1fr; }
  .meta-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .meta-grid > div:nth-child(n+3) { margin-top: 24px; border-top: 1px solid var(--line); }
}

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: clamp(18px, 1.8vw, 22px); font-weight: 500; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; flex: none; transition: transform 0.4s var(--ease-out), background-color 0.3s; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); }
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.4s var(--ease-out); }
.faq details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .answer { padding: 0 0 28px; color: var(--text-2); max-width: 64ch; }
.faq .answer a { color: var(--text); border-bottom: 1px solid var(--line-strong); }

/* Roles / careers -------------------------------------------------------- */
.role-list { border-top: 1px solid var(--line); }
.role { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 16px 32px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.role p { color: var(--muted); font-size: 16px; }
.role .arrow { color: var(--muted); transition: transform 0.4s var(--ease-out), color 0.3s; }
.role:hover .arrow { color: var(--text); transform: translateX(4px); }
@media (max-width: 720px) { .role { grid-template-columns: 1fr auto; } .role p { grid-column: 1; grid-row: 2; } .role .arrow { grid-row: 1 / span 2; grid-column: 2; } }

/* Brand assets ----------------------------------------------------------- */
.asset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.asset { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: grid; }
.asset-preview { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.asset-preview img { height: 52%; width: auto; }
.asset-preview.light { background: var(--text); }
.asset-preview.dark { background: #000; }
.asset-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; background: var(--surface); border-top: 1px solid var(--line); flex-wrap: wrap; }
.asset-foot .links { display: flex; gap: 8px; }
@media (max-width: 720px) { .asset-grid { grid-template-columns: 1fr; } }

/* Footer ----------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 112px) 0 32px; position: relative; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.6fr)); gap: 40px; }
.footer-brand { display: grid; gap: 20px; align-content: start; }
.footer-brand p { color: var(--muted); max-width: 32ch; font-size: 16px; }
.footer-brand .link-arrow { justify-self: start; }
.footer-col h2 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-2); transition: color 0.25s; font-size: 16px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--muted); font-size: 14px; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--text); }
@media (max-width: 880px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 20px; } }

/* 404 -------------------------------------------------------------------- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) 0 80px; }
.notfound .inner { display: grid; justify-items: center; gap: 28px; }
.notfound img { height: 120px; width: auto; }
.notfound .display { font-size: clamp(88px, 18vw, 220px); }

/* Legal ------------------------------------------------------------------ */
.legal-meta { color: var(--muted); font-size: 15px; margin-top: 24px; }
.toc { display: grid; gap: 10px; font-size: 15px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 20px; }
.toc a:hover { color: var(--text); }

/* Reveal animations ------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .split-lines .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.js .split-lines .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.js .split-lines.is-in .line > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .split-lines .line > span { transform: none; }
  .js .marquee-track { animation: none; }
}

/* Utilities -------------------------------------------------------------- */
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; } .mt-xl { margin-top: clamp(56px, 7vw, 104px); }
.center { text-align: center; }
.stack-s { display: grid; gap: 12px; } .stack-m { display: grid; gap: 24px; } .stack-l { display: grid; gap: 40px; }
.max-50 { max-width: 50ch; }

/* Additions -------------------------------------------------------------- */
.theme-deadpoint { --accent: var(--deadpoint); }
.theme-getups { --accent: var(--getups); }
.body-l a { color: var(--text); border-bottom: 1px solid var(--line-strong); transition: border-color 0.3s; }
.body-l a:hover { border-color: var(--text); }

.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile-link { min-height: 360px; padding: clamp(28px, 4vw, 48px); gap: 18px; transition: border-color 0.4s, background-color 0.4s; }
.tile-link .eyebrow { margin-bottom: auto; }
.tile-link .h3 { max-width: 20ch; }
.tile-link p { max-width: 42ch; }
.tile-link .link-arrow { align-self: flex-start; margin-top: 8px; }
.tile-link:hover { border-color: var(--line-strong); background: var(--surface-2); }
.tile-link:hover .link-arrow { border-color: var(--text); gap: 12px; }
@media (max-width: 880px) { .tiles-2 { grid-template-columns: 1fr; } .tile-link { min-height: 300px; } }

.process-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .process-4 { grid-template-columns: 1fr; } }

.chips-field { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.field-legend { font-size: 14px; color: var(--text-2); font-weight: 500; padding: 0; margin-bottom: 12px; }

.app-row { display: flex !important; align-items: center; gap: 16px; }
.app-row .app-icon { width: 52px; height: 52px; border-radius: 13px; }
.app-row > span:last-child { display: grid; gap: 2px; }

.product-hero .app-icon.lg { margin-top: 4px; }
.cta-band .app-icon.lg { margin-bottom: 4px; }

/* Small screens: tighter rhythm --------------------------------------------- */
@media (max-width: 620px) {
  body { font-size: 16px; }
  .body-l { font-size: 17px; }
  .lead { font-size: 18px; }
  .btn { --h: 52px; padding: 0 20px; font-size: 15.5px; }
  .btn-row > .btn, .app-card-actions > .btn { flex: 1 1 auto; }
  .hero-mark { width: min(54vw, 230px); }
  .hero-copy .display { margin-bottom: 24px; }
  .hero-copy .lead { margin-bottom: 32px; }
  .cap { padding: 24px; gap: 10px; }
  .cap-icon { margin-bottom: 14px; width: 44px; height: 44px; }
  .tile { padding: 24px; }
  .app-card-body { padding: 24px; gap: 20px; }
  .app-icon { width: 60px; height: 60px; border-radius: 15px; }
  .feature-list li { font-size: 15.5px; padding: 12px 0; }
  .section-head { margin-bottom: 40px; gap: 20px; }
  .marquee { padding: 20px 0; }
  .principle p, .cap p, .tile p { font-size: 15.5px; }
}

.asset-preview { position: relative; overflow: hidden; }
.asset-preview img { position: absolute; top: 22%; left: 50%; height: 56%; width: auto; transform: translateX(-50%); }
.product-stage .phone + .phone { margin-left: -36px; }
@media (max-width: 620px) {
  .app-icon.lg { width: 84px; height: 84px; border-radius: 20px; }
}
.product-hero .h1 { font-size: clamp(44px, 5.4vw, 84px); max-width: 13ch; }
@media (min-width: 981px) { .product-hero .app-icon.lg { width: 88px; height: 88px; border-radius: 21px; } }

/* Coming soon visual (apps without screens yet) ------------------------------ */
.soon-visual { position: relative; z-index: 1; display: grid; place-items: center; align-content: center; gap: 28px; width: 100%; min-height: 460px; }
.soon-visual .ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); transform: translate(-50%, -58%); pointer-events: none; }
.soon-visual .ring:nth-child(1) { width: 230px; height: 230px; }
.soon-visual .ring:nth-child(2) { width: 340px; height: 340px; opacity: 0.7; }
.soon-visual .ring:nth-child(3) { width: 460px; height: 460px; opacity: 0.4; border-style: dashed; }
.soon-icon { position: relative; width: 148px; height: 148px; border-radius: 34px; box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 30px 80px -10px rgba(0,0,0,0.7); }
.js .soon-icon { animation: float 9s ease-in-out infinite; }
.soon-label { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2); background: rgba(7,7,8,0.6); border: 1px solid var(--line-strong); }
.soon-label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.app-card-visual:has(.soon-visual) { padding: 40px 24px; }
.product-stage:has(.soon-visual) { align-items: center; }
.product-stage .soon-visual { min-height: 560px; }
@media (max-width: 980px) {
  .app-card-visual:has(.soon-visual) { min-height: 0; }
  .product-stage .soon-visual { min-height: 420px; margin-bottom: 24px; }
}
@media (max-width: 620px) {
  .soon-visual { min-height: 360px; }
  .soon-visual .ring:nth-child(3) { width: 340px; height: 340px; }
  .soon-visual .ring:nth-child(2) { width: 270px; height: 270px; }
  .soon-visual .ring:nth-child(1) { width: 190px; height: 190px; }
  .soon-icon { width: 116px; height: 116px; border-radius: 27px; }
}

/* Apps page: index + case studies ------------------------------------------ */
[data-app="deadpoint"] { --accent: var(--deadpoint); }
[data-app="getups"] { --accent: var(--getups); }

.app-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 48px; max-width: 760px; }
.app-index-item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 14px 20px 14px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.5s var(--ease-out);
}
.app-index-item:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.app-index-item .app-icon { width: 48px; height: 48px; border-radius: 12px; }
.app-index-item b { display: block; font-weight: 600; letter-spacing: -0.02em; }
.app-index-item small { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.app-index-item .dot { width: 6px; height: 6px; border-radius: 50%; background: #5dd39e; }
.app-index-item .dot.is-soon { background: #e9c46a; }
.app-index-item .arrow { color: var(--muted); transform: rotate(90deg); }
@media (max-width: 620px) { .app-index { grid-template-columns: 1fr; margin-top: 36px; } }

.case { padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--line); scroll-margin-top: var(--header-h); }
.case-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 32px; }
.case-title { display: flex; align-items: center; gap: 24px; }
.case-num { display: block; font-size: 14px; font-weight: 500; letter-spacing: 0.02em; color: var(--accent); margin-bottom: 8px; }
.case-title .h1 { font-size: clamp(48px, 7vw, 104px); }
.case-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.case-stage {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: stretch;
  min-height: 600px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
}
.case-stage::before {
  content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -6%; bottom: -40%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 28%, transparent), transparent 72%);
}
.case-stage-copy { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; align-items: flex-start; }
.case-pitch { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.18; letter-spacing: -0.03em; font-weight: 500; max-width: 18ch; text-wrap: balance; }
.case-stage-visual { position: relative; display: flex; justify-content: center; align-items: flex-end; padding: 48px 24px 0; }
.case-stage-visual .phone { margin-bottom: -110px; }
.case-stage-visual .phone + .phone { margin-left: -36px; transform: translateY(-56px) rotate(4deg); z-index: -1; }
.case-stage-visual .soon-visual { align-self: center; }
.case[data-app="getups"] .case-stage { background: #0f100c; }

@media (max-width: 980px) {
  .case-stage { grid-template-columns: 1fr; min-height: 0; }
  .case-stage-copy { padding-bottom: 0; }
  .case-stage-visual { min-height: 480px; padding-top: 32px; overflow: hidden; }
  .case-stage-visual .phone { margin-bottom: -170px; }
}
@media (max-width: 620px) {
  .case-title { gap: 16px; }
  .case-actions { width: 100%; }
  .case-actions .btn { flex: 1 1 auto; }
  .case-stage-visual .phone + .phone { display: none; }
  .case-stage-visual { min-height: 420px; }
}

.case-brief { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.brief { padding: 28px 32px 0 0; display: grid; gap: 14px; align-content: start; }
.brief + .brief { padding-left: 32px; border-left: 1px solid var(--line); }
.brief-k { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.brief p { color: var(--text-2); font-size: 17px; line-height: 1.6; }
@media (max-width: 880px) {
  .case-brief { grid-template-columns: 1fr; }
  .brief, .brief + .brief { padding: 24px 0; border-left: 0; }
  .brief + .brief { border-top: 1px solid var(--line); }
}

.case-flow { margin-top: clamp(48px, 6vw, 80px); display: grid; gap: 20px; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: flow; }
.flow li {
  position: relative; display: grid; gap: 6px; align-content: start;
  padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.flow li:not(:last-child)::after {
  content: ""; position: absolute; top: 38px; right: -12px; width: 12px; height: 1px; background: var(--line-strong);
}
.flow-n {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px;
  font-size: 13px; font-weight: 600; color: var(--ink); background: var(--accent);
}
.flow b { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.flow small { color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 980px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .flow li:nth-child(2)::after { display: none; } }
@media (max-width: 520px) {
  .flow { grid-template-columns: 1fr; gap: 10px; }
  .flow li { grid-template-columns: auto 1fr; column-gap: 16px; padding: 18px 20px; }
  .flow-n { grid-row: span 2; margin: 0; }
  .flow li::after { display: none; }
}

.case-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.principle-card { padding: 28px; border-radius: var(--radius); border: 1px dashed var(--line-strong); display: grid; gap: 10px; align-content: start; }
.principle-card .k { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.15; color: var(--text); }
.principle-card p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 880px) { .case-principles { grid-template-columns: 1fr; } }

.case-meta { margin-top: clamp(40px, 5vw, 64px); }

.case-principles-wrap { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 20px; }
.case-principles-wrap .case-principles { margin-top: 0; }
@media (max-width: 620px) { .case-pitch { font-size: 22px; } }

/* Contact page ------------------------------------------------------------- */
.contact-main { padding-bottom: clamp(40px, 5vw, 72px); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-intro { display: grid; gap: 0; align-content: start; }
.contact-intro .lead { margin-top: 28px; }
.direct-line { padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 14px; justify-items: start; }
.direct-mail { font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; transition: border-color 0.3s; word-break: break-all; }
.direct-mail:hover { border-color: var(--text); }
.next-steps { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 18px; }
.next-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.next-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.next-steps li > span { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); line-height: 1.3; }
.next-steps b { display: block; font-weight: 600; letter-spacing: -0.02em; }
.next-steps small { color: var(--muted); font-size: 15px; }
.contact-form { position: sticky; top: calc(var(--header-h) + 24px); }
.form-head { display: grid; gap: 8px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.form-head p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 980px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form { position: static; }
}

.reach-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.reach {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; min-height: 300px;
  padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.4s, transform 0.6s var(--ease-out);
}
.reach::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(243,241,236,0.07), transparent 60%); }
.reach:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.reach:hover::after { opacity: 1; }
.reach .cap-icon { margin-bottom: auto; }
.reach p { color: var(--muted); font-size: 15.5px; }
.reach .link-arrow { align-self: flex-start; margin-top: 8px; font-size: 15px; }
.reach:hover .link-arrow { border-color: var(--text); gap: 12px; }
@media (max-width: 1080px) { .reach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .reach-grid { grid-template-columns: 1fr; } .reach { min-height: 0; padding: 24px; } .reach .cap-icon { margin-bottom: 14px; } }

/* Phones showing real screenshots */
.phone-shot .phone-screen { background: #0b0b0b; }
.phone-shot .phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone .sb-overlay { position: absolute; top: 0; left: 0; right: 0; z-index: 4; color: #fff; height: 7.4%; padding: 0.6% 9% 0 11%; align-items: center; }

/* Screenshot gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shot { margin: 0; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); padding: 40px 24px 0; display: grid; justify-items: center; gap: 0; overflow: hidden; position: relative; isolation: isolate; }
.shot::before { content: ""; position: absolute; z-index: -1; width: 80%; aspect-ratio: 1; top: 30%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent 72%); }
.shot .phone { --w: 260px; margin-bottom: -150px; }
.shot figcaption { position: relative; z-index: 2; align-self: end; width: calc(100% + 48px); margin: 0 -24px; padding: 20px 24px 22px; background: var(--surface); border-top: 1px solid var(--line); display: grid; gap: 2px; }
.shot figcaption b { font-weight: 600; letter-spacing: -0.02em; }
.shot figcaption span { color: var(--muted); font-size: 15px; }
@media (max-width: 980px) { .gallery { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }

/* Contact form states ------------------------------------------------------ */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }
.contact-form.is-sending [data-form-submit] { opacity: 0.7; cursor: progress; }
.contact-form [data-form-submit]:disabled { transform: none; }
.form-status:not(:empty) { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: rgba(229, 72, 77, 0.1); border: 1px solid rgba(229, 72, 77, 0.3); color: #f1b3b5; }
.form-status a { color: var(--text); border-bottom: 1px solid var(--line-strong); }
.form-success { display: grid; justify-items: center; text-align: center; gap: 16px; padding: clamp(32px, 6vw, 72px) 8px; outline: none; }
.form-success[hidden] { display: none; }
.form-success p { color: var(--text-2); max-width: 38ch; }
.form-success .btn { margin-top: 8px; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(93, 211, 158, 0.12); border: 1px solid rgba(93, 211, 158, 0.35); animation: pop 0.6s var(--ease-out); }
.success-icon svg, .toast svg { width: 28px; height: 28px; fill: none; stroke: #5dd39e; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 120;
  display: inline-flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  padding: 12px 20px 12px 14px; border-radius: 999px; font-size: 15px; font-weight: 500;
  background: var(--text); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  transition: transform 0.5s var(--ease-out), opacity 0.3s;
}
.toast svg { width: 20px; height: 20px; stroke: #1f8f5f; flex: none; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* Legal pages ---------------------------------------------------------------- */
.legal-summary { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; }
.legal-summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.legal-summary li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--text-2); font-size: 17px; line-height: 1.55; }
.legal-summary li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text); margin-top: 0.62em; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 1.4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--surface); }
.prose tbody tr:last-child td { border-bottom: 0; }
.legal-hero { padding-bottom: clamp(32px, 4vw, 56px); }
