/* RevLineOS — site.css
   Palette: abyss #060B14 · navy #0B1F3A · ocean #1C6FB8 · teal #1FB2A6 · brass #C9A24A */

:root {
  --abyss: #060B14;
  --navy: #0B1F3A;
  --navy-2: #0E2A4D;
  --ocean: #1C6FB8;
  --teal: #1FB2A6;
  --brass: #C9A24A;
  --brass-light: #E3C574;

  --t-100: #FFFFFF;
  --t-72: rgba(255,255,255,0.72);
  --t-58: rgba(255,255,255,0.58);
  --t-42: rgba(255,255,255,0.42);
  --t-28: rgba(255,255,255,0.28);

  --glass-bg: linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.015) 100%);
  --glass-bg-hover: linear-gradient(180deg, rgba(255,255,255,0.075) 0%, rgba(255,255,255,0.03) 100%);
  --glass-border: rgba(255,255,255,0.08);
  --glass-border-strong: rgba(255,255,255,0.15);

  --grad: linear-gradient(135deg, var(--ocean) 0%, var(--teal) 52%, var(--brass) 100%);
  --grad-soft: linear-gradient(135deg, rgba(28,111,184,0.18), rgba(31,178,166,0.14), rgba(201,162,74,0.16));

  --bg: var(--abyss);
  --bg-deep: #040810;
  --surface: rgba(255,255,255,0.03);
  --line: rgba(255,255,255,0.06);
  --text-soft: #E6EEF7;
  --text-soft-2: #9DB4CC;
  --nav-bg: rgba(6,11,20,0.74);
  --input-bg: rgba(255,255,255,0.035);
  --input-border: rgba(255,255,255,0.1);
  --marker-bg: var(--abyss);
  --panel-bg: linear-gradient(160deg, #0E2A4D, #06101E);
  --shadow: 0 28px 56px -24px rgba(0,0,0,0.6);
  --orb-opacity: .55;
  --grid-line: rgba(255,255,255,0.028);
  --caustic-opacity: .35;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --r-lg: 1.25rem;
  --r-xl: 1.5rem;
  --max: 74rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

html:not([data-theme="dark"]) {
  --abyss: #F4F7FB;
  --navy: #E6EDF5;
  --navy-2: #D8E3F0;
  --bg: #F4F7FB;
  --bg-deep: #E9EFF6;
  --t-100: #0B1F3A;
  --t-72: rgba(11,31,58,0.78);
  --t-58: rgba(11,31,58,0.64);
  --t-42: rgba(11,31,58,0.48);
  --t-28: rgba(11,31,58,0.32);
  --glass-bg: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.72));
  --glass-bg-hover: linear-gradient(180deg, #fff, rgba(255,255,255,0.9));
  --glass-border: rgba(11,31,58,0.09);
  --glass-border-strong: rgba(11,31,58,0.16);
  --surface: rgba(11,31,58,0.035);
  --line: rgba(11,31,58,0.08);
  --text-soft: #0B1F3A;
  --text-soft-2: #2B4C77;
  --nav-bg: rgba(244,247,251,0.8);
  --input-bg: #fff;
  --input-border: rgba(11,31,58,0.14);
  --marker-bg: #fff;
  --panel-bg: linear-gradient(160deg, #DCE7F3, #F4F7FB);
  --shadow: 0 28px 56px -28px rgba(11,31,58,0.28);
  --orb-opacity: .32;
  --grid-line: rgba(11,31,58,0.06);
  --caustic-opacity: .18;
  color-scheme: light;
}
[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  font-size: 100%;
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--t-100);
  background: var(--bg);
  transition: background .35s, color .35s;
  overflow-x: hidden;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
button { font: inherit; color: inherit; }

::selection { background: rgba(31,178,166,0.35); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #14304F; border-radius: 10px; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  padding: .6rem 1rem; background: var(--teal); color: var(--abyss);
  font-weight: 600; border-radius: 999px; z-index: 100; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { position: relative; padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); margin-bottom: 1rem; }
.section-head p { color: var(--t-58); font-size: 1.125rem; max-width: 36rem; }
.center { text-align: center; }
.center .section-head { margin-left: auto; margin-right: auto; }
.center .section-head p { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .grid-3 { gap: 1.5rem; } }

/* ---------- Text ---------- */
.accent {
  display: inline-block; transform: translateZ(0); will-change: transform;
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic; font-weight: 400; letter-spacing: -0.01em;
  font-size: 1.08em; line-height: 1;
  background: linear-gradient(135deg, #E3C574 0%, #C9A24A 60%, #9DB4CC 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-right: .06em;
}
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--t-72); line-height: 1.55; }
.muted { color: var(--t-58); }
.dim { color: var(--t-42); }
.text-gradient {
  background: linear-gradient(135deg, var(--t-100) 0%, var(--text-soft) 45%, var(--text-soft-2) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.text-brand {
  background: linear-gradient(135deg, #5AA9E8 0%, #3FD2C6 50%, #E3C574 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Background: grid, orbs, depth ---------- */
.bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 40% 30%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 85% 65% at 40% 30%, #000 30%, transparent 100%);
}
.depth {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, transparent 55%, rgba(11,31,58,0.55) 100%);
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: var(--orb-opacity); pointer-events: none; will-change: transform;
  transition: translate .9s var(--ease-out);
}
.orb--ocean { background: radial-gradient(circle, rgba(28,111,184,0.6), transparent 70%); }
.orb--teal  { background: radial-gradient(circle, rgba(31,178,166,0.45), transparent 70%); }
.orb--brass { background: radial-gradient(circle, rgba(201,162,74,0.32), transparent 70%); }
.drift-1 { animation: drift1 24s ease-in-out infinite; }
.drift-2 { animation: drift2 30s ease-in-out infinite; }
.drift-3 { animation: drift3 27s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(60px,-40px) scale(1.1); } 66% { transform: translate(-40px,30px) scale(.95); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px,60px) scale(1.15); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(-30px,-50px) scale(1.05); } 66% { transform: translate(40px,20px) scale(.9); } }

.rule { height: 1px; background: linear-gradient(90deg, transparent, rgba(31,178,166,0.35) 50%, transparent); }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r-xl);
}
.glass-strong {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-strong);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-radius: var(--r-xl);
}
.glass-hover { transition: transform .45s var(--ease-out), border-color .3s, background .3s, box-shadow .3s; }
.glass-hover:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-strong);
  background: var(--glass-bg-hover);
  box-shadow: var(--shadow);
}
.card { padding: clamp(1.5rem, 3vw, 2rem); }
.card h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.card p { color: var(--t-58); font-size: 1rem; line-height: 1.6; }

.gradient-border { position: relative; border-radius: var(--r-xl); background: var(--surface); }
.gradient-border::before {
  content: ''; position: absolute; inset: 0; padding: 1px; border-radius: inherit;
  background: linear-gradient(135deg, rgba(28,111,184,0.55), rgba(31,178,166,0.35), rgba(201,162,74,0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

.icon-tile {
  width: 3rem; height: 3rem; border-radius: .9rem; margin-bottom: 1.25rem;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--glass-border);
  color: var(--teal);
}
.icon-tile--warn { color: #E28B7B; background: rgba(226,139,123,0.08); border-color: rgba(226,139,123,0.2); }
.icon-tile svg { width: 1.4rem; height: 1.4rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .975rem;
  line-height: 1; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .3s ease, background .25s, border-color .25s;
}
.btn svg { width: 1rem; height: 1rem; }
.btn-primary {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--teal) 100%);
  color: #fff;
  box-shadow: 0 12px 32px -12px rgba(31,178,166,0.55), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: linear-gradient(135deg, var(--teal) 0%, var(--brass) 100%);
}
.btn-primary:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 18px 40px -12px rgba(201,162,74,0.45), inset 0 1px 0 rgba(255,255,255,0.22); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: scale(.99); }
.btn-ghost {
  background: var(--surface); color: var(--t-100); font-weight: 500;
  border-color: var(--glass-border-strong);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: var(--glass-bg-hover); border-color: rgba(255,255,255,0.22); transform: translateY(-1px); }
.btn-sm { padding: .65rem 1.15rem; font-size: .9rem; }
.btn-block { width: 100%; }
@media (min-width: 600px) { .btn-block { width: auto; } }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .38rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 500;
  border: 1px solid; letter-spacing: .01em;
}
.badge { max-width: 100%; }
.badge .dot { flex: none;  width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; animation: pulseSoft 3s ease-in-out infinite; }
.badge--teal { color: #6BDCD2; border-color: rgba(31,178,166,0.3); background: rgba(31,178,166,0.08); }
.badge--brass { color: var(--brass-light); border-color: rgba(201,162,74,0.32); background: rgba(201,162,74,0.09); }
.badge--muted { color: var(--t-58); border-color: var(--glass-border); background: var(--surface); }
@keyframes pulseSoft { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
  transform: translateZ(0);
}
.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; }
@media (min-width: 720px) { .nav-inner { height: 5rem; } }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-mark { width: 2rem; height: 2rem; border-radius: .55rem; }
.brand span b { font-weight: 700; }
.nav-links { display: none; align-items: center; gap: .25rem; }
.nav-links a { padding: .5rem 1rem; font-size: .925rem; color: var(--t-72); border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--t-100); }
.nav-links a[aria-current="page"] { color: var(--t-100); background: var(--surface); }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-actions .btn-primary { display: none; }
@media (min-width: 480px) { .nav-actions .btn-primary { display: inline-flex; } }
.menu-btn {
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--glass-border-strong); background: transparent; cursor: pointer;
}
.menu-btn svg { width: 1.4rem; height: 1.4rem; } .menu-btn svg path { stroke-width: 2.25; }
@media (min-width: 900px) { .menu-btn { display: none; } }
.mobile-menu {
  display: none; position: absolute; top: 100%; left: var(--gutter); right: var(--gutter); margin-top: .5rem; padding: .5rem;
  background: var(--bg); border: 1px solid var(--glass-border-strong); border-radius: var(--r-xl);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: 0 24px 48px -20px rgba(0,0,0,0.5);
}
.mobile-menu.open { display: block; animation: menuIn .22s var(--ease-out); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }
.mobile-menu a { display: block; padding: .8rem 1rem; border-radius: .9rem; color: var(--t-72); font-size: .95rem; }
.mobile-menu a:hover, .mobile-menu a[aria-current="page"] { color: var(--t-100); background: var(--surface); }
@media (min-width: 900px) { .mobile-menu { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(8rem, 16vw, 11rem) 0 clamp(4rem, 8vw, 7rem); }
.hero .wrap { position: relative; }
.hero h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  line-height: 1.02; letter-spacing: -0.03em; font-weight: 700;
  max-width: 17ch;
}
.hero .lead { max-width: 34rem; margin-top: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.hero-actions .btn { flex: 1 1 auto; }
@media (min-width: 600px) { .hero-actions .btn { flex: 0 0 auto; } }
.hero-load { opacity: 0; transform: translateY(20px); animation: heroIn .9s var(--ease-out) forwards; }
.hero-load-1 { animation-delay: .05s; } .hero-load-2 { animation-delay: .2s; }
.hero-load-3 { animation-delay: .35s; } .hero-load-4 { animation-delay: .5s; }
.hero-load-5 { animation-delay: .65s; } .hero-load-6 { animation-delay: 1.9s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

/* Page heroes (inner pages) */
.page-hero { padding: clamp(8rem, 15vw, 10.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2) { transition-delay: .1s; }
.stagger.in > *:nth-child(3) { transition-delay: .2s; }
.stagger.in > *:nth-child(4) { transition-delay: .3s; }
.stagger.in > *:nth-child(5) { transition-delay: .4s; }

/* ---------- Product cards (home) ---------- */
.product-card { display: flex; flex-direction: column; gap: 1rem; }
.product-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.product-card h3 { font-size: 1.45rem; }
.product-card .link { margin-top: auto; padding-top: .5rem; color: #6BDCD2; font-weight: 500; display: inline-flex; align-items: center; gap: .4rem; font-size: .95rem; }
.product-card .link svg { width: .9rem; height: .9rem; transition: transform .25s; }
.product-card:hover .link svg { transform: translateX(3px); }

/* ---------- How we build (flow) ---------- */
.flow { position: relative; display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.flow-line { display: none; position: absolute; left: 1.7rem; right: calc((100% - 5rem) / 3 + 2.5rem - 1.7rem); top: 1.7rem; height: 2px; pointer-events: none; opacity: .7; }
@media (min-width: 900px) { .flow-line { display: block; } }
.flow-line svg { width: 100%; height: 100%; overflow: visible; }
.flow-path { stroke-dasharray: 7 6; animation: flowDash 1.4s linear infinite; }
@keyframes flowDash { to { stroke-dashoffset: -26; } }
.step { position: relative; padding: 0; }
.step-marker {
  width: 3.4rem; height: 3.4rem; border-radius: 50%; margin-bottom: 1.5rem;
  display: grid; place-items: center; position: relative; z-index: 1;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em;
  background: var(--marker-bg); border: 1px solid var(--glass-border-strong);
  transition: color .5s, border-color .5s, box-shadow .5s;
}
.step:nth-child(2) .step-marker { color: #5AA9E8; border-color: rgba(28,111,184,0.55); box-shadow: 0 0 40px -8px rgba(28,111,184,0.5); }
.step:nth-child(3) .step-marker { color: #3FD2C6; border-color: rgba(31,178,166,0.55); box-shadow: 0 0 40px -8px rgba(31,178,166,0.5); }
.step:nth-child(4) .step-marker { color: var(--brass-light); border-color: rgba(201,162,74,0.55); box-shadow: 0 0 40px -8px rgba(201,162,74,0.5); }
.step h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.step p { color: var(--t-58); }
.step-who { font-size: .85rem; color: var(--t-42); margin-bottom: .5rem; }

/* ---------- Trust strip ---------- */
.trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.5rem clamp(1.5rem, 3vw, 2.25rem); }
.trust p { color: var(--t-72); font-size: 1.05rem; }
.trust p b { color: var(--t-100); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem); text-align: center; }
.cta-band::after {
  content: ''; position: absolute; inset: auto -20% -60% -20%; height: 120%;
  background: radial-gradient(ellipse at 50% 100%, rgba(31,178,166,0.22), rgba(28,111,184,0.12) 40%, transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 22ch; margin: 0 auto 1rem; }
.cta-band p { color: var(--t-58); max-width: 34rem; margin: 0 auto 2rem; }

/* ---------- Products page ---------- */
.product { position: relative; overflow: hidden; }
.product-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) { .product-grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; } .product-grid.flip > .product-visual { order: -1; } }
.product-copy h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 1rem 0 1.25rem; }
.product-copy .lead { margin-bottom: 1.75rem; }
.checklist { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: .8rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; color: var(--t-72); font-size: 1rem; line-height: 1.5; }
.checklist svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: .15rem; color: var(--teal); }
.callout { padding: 1.15rem 1.35rem; border-radius: var(--r-lg); display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 2rem; }
.callout svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: .15rem; color: var(--brass-light); }
.callout p { color: var(--t-72); font-size: .975rem; }
.callout p b { color: var(--t-100); }
.product-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Product visuals — abstract UI panels */
.panel { padding: 1.35rem; border-radius: var(--r-xl); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; font-size: .85rem; color: var(--t-42); }
.panel-title { color: var(--t-72); font-weight: 500; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1rem; border-radius: .9rem; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; transition: background .4s, border-color .4s; }
.row + .row { margin-top: .55rem; }
.row .lbl { color: var(--t-72); }
.row .sub { display: block; color: var(--t-42); font-size: .78rem; margin-top: .15rem; }
.chip { font-size: .72rem; font-weight: 600; padding: .28rem .6rem; border-radius: 999px; white-space: nowrap; }
.chip--ok { color: #6BDCD2; background: rgba(31,178,166,0.12); border: 1px solid rgba(31,178,166,0.25); }
.chip--warn { color: var(--brass-light); background: rgba(201,162,74,0.12); border: 1px solid rgba(201,162,74,0.3); }
.chip--wait { color: var(--t-58); background: var(--surface); border: 1px solid var(--glass-border-strong); }
.progress { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--grad); width: var(--w, 60%); transform-origin: left; animation: fill 1.6s var(--ease-out) both; }
@keyframes fill { from { transform: scaleX(0); } }
.human-gate { margin-top: .85rem; padding: .85rem 1rem; border-radius: .9rem; border: 1px dashed rgba(201,162,74,0.45); background: rgba(201,162,74,0.06); display: flex; align-items: center; gap: .8rem; font-size: .88rem; color: var(--brass-light); }
.human-gate svg { width: 1.1rem; height: 1.1rem; flex: none; }

.video-mock { position: relative; aspect-ratio: 16/10; border-radius: var(--r-lg); overflow: hidden; background: var(--panel-bg); border: 1px solid var(--glass-border); }
.video-mock .face { position: absolute; left: 1.25rem; bottom: 1.25rem; width: 5.5rem; height: 5.5rem; border-radius: 50%; border: 2px solid rgba(255,255,255,0.15); background: linear-gradient(135deg, rgba(28,111,184,0.6), rgba(31,178,166,0.35)); }
.video-mock .caption { position: absolute; left: 7.5rem; right: 1.25rem; bottom: 1.35rem; }
.video-mock .caption span { display: block; height: .55rem; border-radius: 999px; background: rgba(255,255,255,0.14); margin-bottom: .45rem; }
.video-mock .caption span:nth-child(2) { width: 70%; }
.video-mock .caption span:nth-child(3) { width: 45%; background: rgba(255,255,255,0.09); }
.play { position: absolute; top: 50%; left: 50%; width: 3.75rem; height: 3.75rem; transform: translate(-50%,-50%); border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 20px 40px -12px rgba(31,178,166,0.5); }
.play::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(31,178,166,0.45); animation: playPulse 2.2s ease-out infinite; }
.play svg { width: 1.1rem; height: 1.1rem; margin-left: .2rem; }
@keyframes playPulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
.ai-tag { position: absolute; top: 1rem; left: 1rem; font-size: .7rem; font-weight: 600; color: var(--t-72); padding: .3rem .6rem; border-radius: 999px; background: rgba(6,11,20,0.6); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(8px); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: .9rem; }
.stat { padding: .85rem; border-radius: .9rem; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.stat b { display: block; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.stat span { font-size: .75rem; color: var(--t-42); }
.notes { padding: .9rem 1rem; border-radius: .9rem; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; color: var(--t-58); line-height: 1.55; margin-bottom: .9rem; }
.notes b { color: var(--t-72); font-weight: 500; }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 1.25rem; }
.wave i { display: block; width: 3px; border-radius: 2px; background: linear-gradient(180deg, var(--teal), var(--brass)); animation: waveAnim 1.2s ease-in-out infinite; }
.wave i:nth-child(1) { height: 8px; } .wave i:nth-child(2) { height: 16px; animation-delay: .15s; } .wave i:nth-child(3) { height: 12px; animation-delay: .3s; } .wave i:nth-child(4) { height: 20px; animation-delay: .45s; } .wave i:nth-child(5) { height: 10px; animation-delay: .6s; } .wave i:nth-child(6) { height: 14px; animation-delay: .75s; }
@keyframes waveAnim { 0%,100% { transform: scaleY(.5); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- About ---------- */
.prose { max-width: 40rem; }
.prose p { color: var(--t-72); font-size: 1.1rem; line-height: 1.7; }
.prose p + p { margin-top: 1.25rem; }
.prose h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 1.25rem; }
.thesis { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) { .thesis { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.thesis-side { display: grid; gap: 1rem; }
.thesis-side .card { padding: 1.35rem 1.5rem; }
.thesis-side .card h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.thesis-side .card p { font-size: .95rem; }

.team { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .team { grid-template-columns: repeat(3, 1fr); } }
.person { padding: 1.75rem; display: flex; flex-direction: column; }
.avatar {
  width: 8.5rem; height: 8.5rem; border-radius: 50%; margin-bottom: 1.5rem; position: relative;
  overflow: hidden; background: linear-gradient(135deg, var(--navy-2), var(--abyss));
  border: 1px solid var(--glass-border-strong);
}
.avatar::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05); pointer-events: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.no-img img { display: none; }
.avatar .initials {
  position: absolute; inset: 0; display: none; place-items: center;
  font-weight: 700; font-size: 1.9rem; letter-spacing: -0.04em; color: var(--t-42);
}
.avatar.no-img .initials { display: grid; }
.avatar--company { background: var(--navy); }
.person h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.person .role { color: #6BDCD2; font-size: .9rem; font-weight: 500; margin-bottom: 1rem; }
.person p.bio { color: var(--t-58); font-size: .975rem; line-height: 1.6; }

.vision { padding: clamp(2rem, 4vw, 3rem); display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .vision { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; } }
.vision h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: .75rem; }
.vision p { color: var(--t-72); }
.vision .now { padding: 1.25rem 1.5rem; }
.vision .now h4 { font-size: .85rem; color: var(--t-42); font-weight: 500; margin-bottom: .75rem; }
.vision .now ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.vision .now li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--t-72); font-size: .975rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 4rem; } }
.contact-aside p { color: var(--t-58); }
.contact-aside .email { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.5rem; padding: .85rem 1.15rem; font-weight: 500; color: var(--t-100); }
.contact-aside .email svg { width: 1.1rem; height: 1.1rem; color: var(--teal); }
.contact-aside .addr { margin-top: .9rem; font-size: .9rem; color: var(--t-42); }
.contact-aside ul { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .8rem; color: var(--t-58); font-size: .975rem; }
.contact-aside ul li { display: flex; gap: .75rem; align-items: flex-start; }
.contact-aside ul svg { width: 1.1rem; height: 1.1rem; flex: none; margin-top: .2rem; color: var(--teal); }

.form { padding: clamp(1.5rem, 3vw, 2.25rem); }
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: .9rem; font-weight: 500; color: var(--t-72); margin-bottom: .45rem; }
.field label .opt { color: var(--t-42); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--t-100);
  background: var(--input-bg); border: 1px solid var(--input-border);
  border-radius: .9rem; padding: .85rem 1rem; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--t-28); }
.field input:focus, .field textarea:focus { outline: none; border-color: rgba(31,178,166,0.6); box-shadow: 0 0 0 3px rgba(31,178,166,0.15); }
.field.invalid input, .field.invalid textarea { border-color: rgba(226,139,123,0.7); }
.field .err { display: none; margin-top: .4rem; font-size: .82rem; color: #F0A697; }
.field.invalid .err { display: block; }
.form-foot { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-top: 1.5rem; }
.form-foot small { color: var(--t-42); font-size: .82rem; max-width: 30rem; }
.form-success { display: none; text-align: center; padding: 2.5rem 1rem; }
.form-success.show { display: block; }
.form.sent .form-body { display: none; }
.form-success .tick { width: 3.5rem; height: 3.5rem; border-radius: 50%; margin: 0 auto 1.25rem; background: var(--grad); display: grid; place-items: center; }
.form-success .tick svg { width: 1.5rem; height: 1.5rem; }
.form-success h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.form-success p { color: var(--t-58); }
.honey { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; border-top: none; padding: 6rem 0 2.5rem; background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 18%, var(--bg-deep) 100%); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer p { color: var(--t-42); font-size: .925rem; max-width: 24rem; margin-top: .9rem; }
.footer h4 { font-size: .85rem; color: var(--t-58); font-weight: 500; margin-bottom: .9rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer ul a { color: var(--t-72); font-size: .95rem; transition: color .2s; }
.footer ul a:hover { color: var(--t-100); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--t-42); font-size: .85rem; }

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .stagger > *, .hero-load { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Theme toggle ---------- */
.theme-btn {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--glass-border-strong); background: var(--surface); cursor: pointer;
  transition: background .25s, transform .3s var(--ease-out);
}
.theme-btn:hover { background: var(--glass-bg-hover); transform: rotate(15deg); }
.theme-btn svg { width: 1.3rem; height: 1.3rem; } .theme-btn svg * { stroke-width: 2; }
.theme-btn .sun { display: none; } .theme-btn .moon { display: block; }
[data-theme="dark"] .theme-btn .sun { display: block; } [data-theme="dark"] .theme-btn .moon { display: none; }
html:not([data-theme="dark"]) .btn-primary { color: #fff; }
html:not([data-theme="dark"]) .brand-mark rect { fill: #0B1F3A; }
html:not([data-theme="dark"]) .icon-tile--warn { color: #B9462F; background: rgba(185,70,47,0.08); border-color: rgba(185,70,47,0.2); }
html:not([data-theme="dark"]) .badge--teal { color: #0F7F77; background: rgba(31,178,166,0.1); }
html:not([data-theme="dark"]) .badge--brass { color: #8A6A1E; background: rgba(201,162,74,0.14); }
html:not([data-theme="dark"]) .chip--ok { color: #0F7F77; } html:not([data-theme="dark"]) .chip--warn { color: #8A6A1E; }
html:not([data-theme="dark"]) .human-gate { color: #8A6A1E; }
html:not([data-theme="dark"]) .product-card .link, html:not([data-theme="dark"]) .person .role { color: #0F7F77; }
html:not([data-theme="dark"]) .callout svg { color: #8A6A1E; }
html:not([data-theme="dark"]) .accent { background: linear-gradient(135deg, #A57F26 0%, #C9A24A 60%, #2B4C77 100%); -webkit-background-clip: text; background-clip: text; }
html:not([data-theme="dark"]) .step:nth-child(4) .step-marker { color: #8A6A1E; }
html:not([data-theme="dark"]) .ai-tag { color: var(--t-72); background: rgba(255,255,255,0.75); border-color: var(--glass-border); }
html:not([data-theme="dark"]) .video-mock .caption span { background: rgba(11,31,58,0.12); }
html:not([data-theme="dark"]) .avatar { border-color: rgba(11,31,58,0.14); box-shadow: 0 0 0 6px rgba(31,178,166,0.08), 0 24px 48px -24px rgba(11,31,58,0.3); }

/* ---------- Hero: two-column with live demo ---------- */
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-grid h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; } }
.hero-demo { position: relative; display: none; }
@media (min-width: 1000px) { .hero-demo { display: block; } }
.hero-demo::before { content: ''; position: absolute; inset: -10% -6%; background: radial-gradient(ellipse at 50% 60%, rgba(31,178,166,0.22), rgba(28,111,184,0.12) 45%, transparent 70%); filter: blur(30px); pointer-events: none; }
.hero-demo .panel { position: relative; }
.demo-stage { position: relative; min-height: 24.5rem; }
.demo-step { position: absolute; inset: 0; opacity: 0; transform: translateY(6px); transition: opacity 1s ease, transform 1s ease; pointer-events: none; }
.demo-step.on { opacity: 1; transform: none; }
.demo-label { font-size: .78rem; color: var(--t-42); margin-bottom: .6rem; display: flex; align-items: center; gap: .5rem; }
.demo-label i { width: .4rem; height: .4rem; border-radius: 50%; background: var(--teal); display: inline-block; }
.typewriter { min-height: 4.5rem; }
.typewriter .caret { display: none; }
.typewriter .tw-text { opacity: 0; transition: opacity 1.4s ease; }
.demo-step.on .typewriter .tw-text { opacity: 1; }
@keyframes blink { 50% { opacity: 0; } }
.assembling { display: grid; gap: .55rem; }
.assembling .piece { transform: none; display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: .8rem; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; color: var(--t-72); opacity: 0; transform: translateX(-8px); }
.demo-step.on .assembling .piece { animation: pieceIn .9s ease forwards; }
.demo-step.on .assembling .piece:nth-child(2) { animation-delay: 1.2s; }
.demo-step.on .assembling .piece:nth-child(3) { animation-delay: 2.4s; }
.demo-step.on .assembling .piece:nth-child(4) { animation-delay: 3.6s; }
@keyframes pieceIn { to { opacity: 1; transform: none; } }
.assembling .piece svg { width: 1rem; height: 1rem; color: var(--teal); flex: none; }
.demo-step .stats-row .stat { opacity: 0; transform: translateY(6px); }
.demo-step.on .stats-row .stat { animation: pieceIn .9s ease forwards; }
.demo-step.on .stats-row .stat:nth-child(1) { animation-delay: 1.5s; }
.demo-step.on .stats-row .stat:nth-child(2) { animation-delay: 3s; }
.demo-step.on .stats-row .stat:nth-child(3) { animation-delay: 4.5s; }
.demo-progress { display: flex; gap: .4rem; margin-top: 1rem; }
.demo-progress span { flex: 1; height: 3px; border-radius: 999px; background: var(--line); overflow: hidden; position: relative; }
.demo-progress span::after { content: ''; position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.demo-progress span.active::after { animation: barFill var(--dur, 4s) linear forwards; }
.demo-progress span.done::after { transform: scaleX(1); }
@keyframes barFill { to { transform: scaleX(1); } }

/* headline word arrival */
.hero h1 .w { display: inline-block; -webkit-text-fill-color: var(--t-100); background: none; opacity: 0; transform: translateY(.5em); animation: wordIn .8s var(--ease-out) forwards; }
.hero h1[data-words] .accent { opacity: 0; animation: accentIn 1.1s ease forwards; }
.page-hero h1 .accent { animation: none; opacity: 1; }
@keyframes wordIn { to { opacity: 1; transform: none; } }
@keyframes accentIn { to { opacity: 1; } }

/* ---------- Caustic light ---------- */
.caustic {
  position: absolute; inset: -20%; pointer-events: none; opacity: var(--caustic-opacity); mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 30% 22% at 20% 30%, rgba(31,178,166,0.55), transparent 70%),
    radial-gradient(ellipse 26% 20% at 70% 20%, rgba(28,111,184,0.55), transparent 70%),
    radial-gradient(ellipse 34% 18% at 45% 65%, rgba(31,178,166,0.35), transparent 70%),
    radial-gradient(ellipse 22% 26% at 85% 70%, rgba(201,162,74,0.22), transparent 70%);
  filter: blur(40px) contrast(1.2);
  animation: caustic 26s ease-in-out infinite alternate; animation-play-state: paused;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 100%);
}
.caustic--2 { animation-duration: 34s; animation-direction: alternate-reverse; transform: scale(1.3) rotate(15deg); opacity: calc(var(--caustic-opacity) * .6); }
@keyframes caustic {
  0%   { transform: translate(0,0) scale(1) rotate(0deg); }
  33%  { transform: translate(6%,-4%) scale(1.15) rotate(4deg); }
  66%  { transform: translate(-5%,5%) scale(.95) rotate(-3deg); }
  100% { transform: translate(3%,2%) scale(1.08) rotate(2deg); }
}
html:not([data-theme="dark"]) .caustic { mix-blend-mode: multiply; filter: blur(50px); }

/* ---------- Flow: self-drawing line, lit steps ---------- */
.flow-line .flow-path { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: none; }
.flow.in .flow-line .flow-path { animation: drawLine 1.8s var(--ease-out) forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.flow .step-marker { color: var(--t-42); border-color: var(--glass-border); box-shadow: none; }
.flow .step > :not(.step-marker) { opacity: .35; transition: opacity .6s; }
.flow.in .step > :not(.step-marker) { opacity: 1; }
.flow.in .step:nth-child(2) > :not(.step-marker) { transition-delay: .2s; }
.flow.in .step:nth-child(3) > :not(.step-marker) { transition-delay: .9s; }
.flow.in .step:nth-child(4) > :not(.step-marker) { transition-delay: 1.6s; }
.flow.in .step:nth-child(2) .step-marker { transition-delay: .1s; color: #5AA9E8; border-color: rgba(28,111,184,0.6); box-shadow: 0 0 40px -8px rgba(28,111,184,0.55); }
.flow.in .step:nth-child(3) .step-marker { transition-delay: .8s; color: #3FD2C6; border-color: rgba(31,178,166,0.6); box-shadow: 0 0 40px -8px rgba(31,178,166,0.55); }
.flow.in .step:nth-child(4) .step-marker { transition-delay: 1.5s; color: var(--brass-light); border-color: rgba(201,162,74,0.6); box-shadow: 0 0 40px -8px rgba(201,162,74,0.55); }

/* ---------- Warranty panel: completes on scroll ---------- */
.claim-panel .row[data-final] .chip { transition: all .4s; }
.claim-panel .progress > span { animation: none; width: var(--w); transition: width 1.2s var(--ease-out); }
.claim-panel .human-gate { opacity: .4; transition: opacity .6s, transform .6s; transform: translateY(4px); }
.claim-panel.done .human-gate { opacity: 1; transform: none; }
.claim-panel .ready-count { transition: color .4s; }

/* ---------- Team cards ---------- */
.person { text-align: center; align-items: center; padding: 2.25rem 1.75rem 2rem; position: relative; overflow: hidden; }
.person::before {
  content: ''; position: absolute; top: -4rem; left: 50%; width: 18rem; height: 14rem; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 40%, rgba(31,178,166,0.28), rgba(28,111,184,0.12) 45%, transparent 70%);
  filter: blur(24px); opacity: .7; transition: opacity .5s; pointer-events: none;
}
.person:hover::before { opacity: 1; }
.person::after {
  content: ''; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(28,111,184,0.6), rgba(31,178,166,0.45), rgba(201,162,74,0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .5s;
}
.person:hover::after { opacity: 1; }
.person > * { position: relative; z-index: 1; }
.avatar { width: 9.5rem; height: 9.5rem; margin: 0 auto 1.5rem; padding: 0; background: var(--navy); border: 1px solid var(--glass-border-strong); box-shadow: 0 0 0 6px rgba(31,178,166,0.06), 0 24px 48px -20px rgba(31,178,166,0.35); }
.avatar::after { display: none; }
.avatar img, .avatar .initials { border-radius: 50%; }
.avatar img { box-shadow: none; }
.avatar .initials { inset: 0; background: var(--navy); }
.person .bio { max-width: 28ch; }
html:not([data-theme="dark"]) .person::before { opacity: .45; }

/* ---------- Footer: deep water ---------- */
.footer-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.footer-fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.footer-light { position: absolute; left: 50%; top: 10%; width: 120%; height: 90%; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 100%, rgba(28,111,184,0.16), rgba(31,178,166,0.05) 45%, transparent 70%); filter: blur(30px); }
.ring { position: absolute; border-radius: 50%; border: 1px solid var(--line); animation: spin linear infinite; }
.ring--1 { width: 60rem; height: 60rem; right: -25rem; top: -20rem; animation-duration: 240s; border-style: dashed; }
.ring--2 { width: 40rem; height: 40rem; left: -18rem; bottom: -22rem; animation-duration: 180s; animation-direction: reverse; }
.ring--3 { width: 22rem; height: 22rem; right: 12%; bottom: -12rem; animation-duration: 120s; border-color: rgba(201,162,74,0.16); }
.ring::before { content: ''; position: absolute; top: -3px; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.ring--3::before { background: var(--brass); box-shadow: 0 0 12px var(--brass); }
@keyframes spin { to { transform: rotate(360deg); } }
.footer-word {
  position: absolute; left: 50%; bottom: -.28em; transform: translateX(-50%); white-space: nowrap;
  font-size: clamp(6rem, 22vw, 20rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--line); user-select: none;
  background: linear-gradient(180deg, var(--surface), transparent 80%); -webkit-background-clip: text; background-clip: text;
}
.footer .wrap { position: relative; z-index: 1; }
.cta-sub { margin-top: 1.1rem; font-size: .9rem; color: var(--t-42); }
@media (prefers-reduced-motion: reduce) {
  .ring, .caustic { animation: none !important; }
  .hero h1 .w, .hero h1 .accent { opacity: 1 !important; transform: none !important; animation: none !important; }
  .flow .step > :not(.step-marker) { opacity: 1 !important; }
  .flow-line .flow-path { stroke-dashoffset: 0 !important; }
}

.video-ghost { margin-top: .9rem; aspect-ratio: 16/6; border-radius: var(--r-lg); border: 1px dashed var(--glass-border-strong); display: grid; place-items: center; color: var(--t-28); font-size: .82rem; }
html:not([data-theme="dark"]) .depth { background: linear-gradient(180deg, transparent 0%, transparent 60%, var(--bg) 100%); }
html:not([data-theme="dark"]) .hero { background: linear-gradient(180deg, #E4EDF7 0%, var(--bg) 100%); }
html:not([data-theme="dark"]) .orb--ocean { background: radial-gradient(circle, rgba(28,111,184,0.45), transparent 70%); }
html:not([data-theme="dark"]) .footer-word { -webkit-text-stroke: 1px rgba(11,31,58,0.1); }

.hero.on-screen .caustic { animation-play-state: running; }

/* Headings with an italic accent: solid text, no clipped gradient (avoids double-paint of the accent) */
.has-accent { color: var(--t-100); background: none; -webkit-text-fill-color: currentColor; }
.has-accent .accent { -webkit-text-fill-color: transparent; }

@media (max-width: 720px) {
  .hero { padding-top: 6.5rem; }
  .hero h1 { font-size: clamp(2.1rem, 9.5vw, 2.6rem); }
  .nav-inner { height: 3.75rem; }
  .theme-btn, .menu-btn { width: 2.6rem; height: 2.6rem; color: var(--t-100); }
  .caustic { display: none; }            /* saves battery on phones; orbs still give depth */
  .footer-word { font-size: 5.5rem; }
  .ring--1 { width: 34rem; height: 34rem; right: -18rem; }
}
