/* ==========================================================================
   KIONESIS — Parent company site
   Neutral dark system for the company; each product keeps its own brand.
   ========================================================================== */

:root {
  --bg: #09090b;
  --bg-2: #0f0f12;
  --bg-3: #16161a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --fg: #ededef;
  --fg-2: #a1a1aa;
  --fg-3: #71717a;

  --accent: #9db8ff;          /* Kionesis: cool signal blue, used sparingly */

  /* Product brands */
  --glossa-bg: #0d0f15;
  --glossa-ink: #f6f5f1;
  --glossa-blue: #87a2f2;
  --glossa-coral: #ff8a70;
  --sage-bg: #1d150f;
  --sage-cream: #ece1cf;
  --sage-tan: #d8c3a8;
  --sage-amber: #c98a4b;

  --sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1240px;
  --r: 14px;
  --r-lg: 24px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #0a0a0c; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; }

.h1 { font-size: clamp(2.75rem, 6.2vw, 5.5rem); letter-spacing: -0.05em; line-height: 0.98; }
.h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); letter-spacing: -0.045em; }
.h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); letter-spacing: -0.025em; line-height: 1.2; }

.muted { color: var(--fg-3); }
.dim { color: var(--fg-2); }

.lede { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.6; color: var(--fg-2); max-width: 36rem; }

.label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: -0.005em;
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 46px;
  padding: 0 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.4s var(--ease);
}

.btn svg { transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--fg); color: #0a0a0c; }
.btn-primary:hover { background: #ffffff; }
.btn-secondary { border: 1px solid var(--line-2); color: var(--fg); background: rgba(255, 255, 255, 0.02); }
.btn-secondary:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.05); }
.btn-sm { height: 36px; padding: 0 0.9rem; font-size: 0.875rem; border-radius: 8px; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--fg);
  transition: color 0.25s, gap 0.35s var(--ease);
}
.link:hover { gap: 0.65rem; }

/* --------------------------------------------------------------------------
   Loader & page transition
   -------------------------------------------------------------------------- */
.loader { position: fixed; inset: 0; z-index: 200; }
.loader-panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.5%;
  background: #050506;
  transition: transform 1.15s var(--ease-io);
}
.loader-panel.top { top: 0; }
.loader-panel.bottom { bottom: 0; }

.loader-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(32vw, 360px);
  height: 1px;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: width 0.9s var(--ease-io), opacity 0.4s;
}
.loader-line span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(157, 184, 255, 0.2), #dfe7ff);
  transform-origin: left;
  transform: scaleX(0);
}

.loader-brand, .loader-count {
  position: absolute;
  bottom: var(--gutter);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-3);
  transition: opacity 0.4s;
}
.loader-brand { left: var(--gutter); letter-spacing: 0.2em; color: var(--fg-2); }
.loader-count {
  right: var(--gutter);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.loader.is-opening .loader-brand, .loader.is-opening .loader-count { opacity: 0; }
.loader.is-opening .loader-line { width: 100vw; }
.loader.is-open .loader-line { opacity: 0; }
.loader.is-open .loader-panel.top { transform: translateY(-101%); }
.loader.is-open .loader-panel.bottom { transform: translateY(101%); }
.loader.is-done { display: none; }
.loader.quick .loader-brand, .loader.quick .loader-count, .loader.quick .loader-line { display: none; }

.curtain {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: #050506;
  transform: translateY(101%);
  pointer-events: none;
}
.curtain.is-active { transform: translateY(0); transition: transform 0.7s var(--ease-io); pointer-events: all; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s, transform 0.9s var(--ease);
  transform: translateY(-100%);
}
body.is-ready .nav { transform: none; }
.nav.is-scrolled {
  background: rgba(9, 9, 11, 0.72);
  border-color: var(--line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.16em; }
.brand svg { flex-shrink: 0; }

.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-link { display: block; padding: 0.4rem 0.85rem; font-size: 0.9rem; color: var(--fg-2); border-radius: 8px; transition: color 0.2s, background 0.2s; }
.nav-link:hover { color: var(--fg); }
.nav-link.active { color: var(--fg); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.nav-toggle { display: none; position: relative; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line-2); }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--fg); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 23px; }
body.menu-open .nav-toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--bg);
  padding: 96px var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-io);
}
body.menu-open .mobile-menu { clip-path: inset(0); }
body.menu-open .nav { background: var(--bg); }
.mobile-menu a.mm-link { display: block; font-size: 2rem; font-weight: 500; letter-spacing: -0.04em; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(55% 65% at 75% 42%, rgba(39, 70, 140, 0.42) 0%, rgba(14, 26, 56, 0.25) 45%, transparent 75%),
    var(--bg);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-gl { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
body.is-ready .hero-gl { opacity: 1; }
.hero-gl canvas { display: block; width: 100% !important; height: 100% !important; }

.hero-body { position: relative; z-index: 2; flex: 1; display: flex; align-items: center; padding-top: 68px; }
.hero-copy { max-width: 40rem; padding: 4rem 0 3rem; }
.hero-copy .h1 { margin-bottom: 1.5rem; }
.hero-copy .lede { margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-products { position: relative; z-index: 2; border-top: 1px solid var(--line); }
.hero-products .container { display: grid; grid-template-columns: auto 1fr 1fr; align-items: stretch; }
.hero-products-label { display: flex; align-items: center; padding: 1.4rem 2.5rem 1.4rem 0; font-size: 0.875rem; color: var(--fg-3); border-right: 1px solid var(--line); }

.hp-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.25rem 1.75rem;
  border-right: 1px solid var(--line);
  transition: background 0.3s;
}
.hp-item:last-child { border-right: 0; }
.hp-item:hover { background: rgba(255, 255, 255, 0.025); }
.hp-item img { width: 36px; height: 36px; border-radius: 9px; }
.hp-item strong { display: block; font-weight: 500; font-size: 0.95rem; }
.hp-item span { display: block; font-size: 0.85rem; color: var(--fg-3); }
.hp-item .arrow { margin-left: auto; color: var(--fg-3); transition: transform 0.35s var(--ease), color 0.3s; }
.hp-item:hover .arrow { transform: translateX(3px); color: var(--fg); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: clamp(5rem, 11vw, 9rem) 0; }
.section + .section { padding-top: 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lede { justify-self: end; }
.divider { border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   Product panels
   -------------------------------------------------------------------------- */
.products { display: grid; gap: 1.25rem; }

.product {
  position: sticky;
  top: 88px;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  transform-origin: 50% 0;
  will-change: transform;
}
.product:nth-child(2) { top: 104px; }

.product-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.product .shade { position: absolute; inset: 0; z-index: 3; background: #000; opacity: 0; pointer-events: none; }

.product-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.75rem; }
.product-brand img { width: 40px; height: 40px; border-radius: 10px; }
.product-brand .name { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.product-brand .cat { font-size: 0.85rem; opacity: 0.6; }

.product-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.product-desc { font-size: 1rem; line-height: 1.65; opacity: 0.72; max-width: 32rem; margin-bottom: 1.75rem; }

.product-points { list-style: none; display: grid; gap: 0.7rem; margin-bottom: 2rem; }
.product-points li { display: flex; gap: 0.75rem; font-size: 0.95rem; opacity: 0.85; }
.product-points svg { flex-shrink: 0; margin-top: 0.3rem; }

.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }

/* Browser frame around real screenshots */
.browser {
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.8s var(--ease);
}
.browser-bar { display: flex; align-items: center; gap: 0.75rem; height: 34px; padding: 0 0.85rem; background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.browser-url { flex: 1; text-align: center; font-size: 0.75rem; color: rgba(255, 255, 255, 0.45); font-family: var(--mono); margin-right: 42px; }
.browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.product:hover .browser { transform: translateY(-4px); }

/* Glossa theme */
.product--glossa {
  color: var(--glossa-ink);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(135, 162, 242, 0.16), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(255, 138, 112, 0.08), transparent 70%),
    var(--glossa-bg);
}
.product--glossa .product-title em { font-style: italic; color: var(--glossa-blue); }
.product--glossa .product-points svg { color: var(--glossa-blue); }
.product--glossa .btn-primary { background: var(--glossa-blue); color: #0d0f15; }
.product--glossa .btn-primary:hover { background: #a3b8f7; }

/* SageLume theme */
.product--sagelume {
  color: var(--sage-cream);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(201, 138, 75, 0.2), transparent 70%),
    linear-gradient(160deg, #241a12 0%, var(--sage-bg) 60%);
  border-color: rgba(216, 195, 168, 0.14);
}
.product--sagelume .product-title em { font-style: italic; color: var(--sage-amber); }
.product--sagelume .product-points svg { color: var(--sage-amber); }
.product--sagelume .btn-primary { background: var(--sage-cream); color: #221811; }
.product--sagelume .btn-primary:hover { background: #f5ecdd; }
.product--sagelume .link { color: var(--sage-cream); }

/* Upcoming product */
.product-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.75rem, 4vw, 3.5rem);
  border-radius: var(--r-lg);
  border: 1px dashed var(--line-2);
  background: var(--bg-2);
}
.product-next h3 { margin-bottom: 0.35rem; }
.product-next p { color: var(--fg-2); font-size: 0.95rem; max-width: 34rem; }
.status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--fg-2); padding: 0.3rem 0.7rem; border: 1px solid var(--line-2); border-radius: 999px; margin-bottom: 0.9rem; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* --------------------------------------------------------------------------
   Platform diagram
   -------------------------------------------------------------------------- */
.platform { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); padding: clamp(1.25rem, 3vw, 2.5rem); }

.layer-label { font-size: 0.8rem; color: var(--fg-3); margin-bottom: 0.85rem; display: flex; justify-content: space-between; }

.layer-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.lp {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: var(--bg-3);
  border: 1px solid var(--line);
}
.lp img { width: 30px; height: 30px; border-radius: 8px; }
.lp strong { display: block; font-size: 0.95rem; font-weight: 500; }
.lp span { font-size: 0.8rem; color: var(--fg-3); }
.lp.ghost { border-style: dashed; background: transparent; color: var(--fg-3); }
.lp.ghost .plus { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px dashed var(--line-2); }

.connectors { position: relative; height: 56px; }
.connectors svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.connectors path { stroke: rgba(255, 255, 255, 0.2); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.connectors path.dashed { stroke-dasharray: 4 4; stroke: rgba(255, 255, 255, 0.12); }
.connectors circle { fill: var(--accent); }

.layer-platform {
  border-radius: 14px;
  padding: 1.1rem;
  background: linear-gradient(180deg, rgba(157, 184, 255, 0.06), rgba(157, 184, 255, 0.02));
  border: 1px solid rgba(157, 184, 255, 0.18);
}
.layer-platform-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.layer-platform-head strong { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 500; }
.layer-platform-head span { font-size: 0.8rem; color: var(--fg-3); }
.services { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; }
.service { padding: 0.85rem 0.9rem; border-radius: 10px; background: rgba(9, 9, 11, 0.6); border: 1px solid var(--line); }
.service b { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.15rem; }
.service span { font-size: 0.75rem; color: var(--fg-3); font-family: var(--mono); }

/* --------------------------------------------------------------------------
   Feature / principle grids
   -------------------------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cell { background: var(--bg); padding: clamp(1.5rem, 3vw, 2.25rem); }
.cell .num { font-family: var(--mono); font-size: 0.8rem; color: var(--fg-3); margin-bottom: 2.5rem; display: block; }
.cell h3 { margin-bottom: 0.65rem; }
.cell p { font-size: 0.95rem; color: var(--fg-2); line-height: 1.6; }
.cell .icon { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line-2); margin-bottom: 1.5rem; color: var(--fg-2); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.prose p { color: var(--fg-2); margin-bottom: 1.15rem; line-height: 1.7; }
.prose p strong { color: var(--fg); font-weight: 500; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.fact { padding: 1.25rem 1.25rem 0 0; }
.fact b { display: block; font-size: 1.6rem; font-weight: 500; letter-spacing: -0.04em; }
.fact span { font-size: 0.85rem; color: var(--fg-3); }

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 5rem);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(39, 70, 140, 0.5), transparent 65%),
    var(--bg-2);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 2rem;
  align-items: end;
}
.cta .lede { margin-top: 1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* --------------------------------------------------------------------------
   Inner pages
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: calc(68px + clamp(4rem, 10vw, 8rem)) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(50% 80% at 85% 0%, rgba(39, 70, 140, 0.35), transparent 70%), var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero .h1 { max-width: 14ch; margin-bottom: 1.5rem; }

/* Product detail */
.pd-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.5rem; }
.pd-head img { width: 48px; height: 48px; border-radius: 12px; }
.pd-head strong { display: block; font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; }
.pd-head span { color: var(--fg-3); font-size: 0.9rem; }

.gallery { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; margin-top: 3rem; }
.gallery .browser img { aspect-ratio: 16 / 10; }
.gallery-stack { display: grid; gap: 1rem; }

.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.feature { background: var(--bg); padding: 1.6rem; }
.feature h4 { font-size: 1.02rem; letter-spacing: -0.015em; margin-bottom: 0.45rem; display: flex; align-items: center; gap: 0.55rem; }
.feature h4 i { width: 6px; height: 6px; border-radius: 50%; background: var(--dot, var(--accent)); flex-shrink: 0; }
.feature p { font-size: 0.92rem; color: var(--fg-2); }

.meta-table { width: 100%; border-collapse: collapse; }
.meta-table th, .meta-table td { text-align: left; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; vertical-align: top; }
.meta-table th { width: 38%; font-weight: 400; color: var(--fg-3); padding-right: 1rem; }

.badge { display: inline-block; font-size: 0.78rem; font-weight: 500; padding: 0.25rem 0.6rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-2); }

/* Forms */
.form { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); padding: clamp(1.5rem, 3vw, 2.25rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.875rem; color: var(--fg-2); margin-bottom: 0.45rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  outline: 0;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.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.5l5 5 5-5' stroke='%23a1a1aa' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.4rem;
}
.field select option { background: var(--bg-2); }
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #52525b; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(157, 184, 255, 0.6); box-shadow: 0 0 0 3px rgba(157, 184, 255, 0.12); }
.form .btn { width: 100%; }
.form-note { margin-top: 0.9rem; font-size: 0.82rem; color: var(--fg-3); }
.form-feedback { display: none; margin-top: 1rem; padding: 0.85rem 1rem; border-radius: 10px; font-size: 0.9rem; border: 1px solid rgba(157, 184, 255, 0.3); background: rgba(157, 184, 255, 0.07); }
.form-feedback.show { display: block; }

.contact-list { display: grid; border-top: 1px solid var(--line); }
.contact-item { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.contact-item span { display: block; font-size: 0.85rem; color: var(--fg-3); margin-bottom: 0.3rem; }
.contact-item a { font-size: 1.1rem; font-weight: 500; transition: color 0.2s; }
.contact-item a:hover { color: var(--accent); }
.contact-item p { font-size: 0.92rem; color: var(--fg-2); margin-top: 0.25rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: clamp(3.5rem, 7vw, 5rem) 0 0; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: 3rem; }
.footer p { margin-top: 1rem; font-size: 0.92rem; color: var(--fg-3); max-width: 22rem; }
.footer h4 { font-size: 0.85rem; font-weight: 500; letter-spacing: 0; color: var(--fg); margin-bottom: 1rem; }
.footer ul { list-style: none; display: grid; gap: 0.6rem; }
.footer ul a { font-size: 0.92rem; color: var(--fg-3); transition: color 0.2s; }
.footer ul a:hover { color: var(--fg); }
.footer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--fg-3); }
.wordmark {
  font-weight: 600;
  font-size: clamp(4rem, 19.5vw, 17.5rem);
  letter-spacing: -0.065em;
  line-height: 0.75;
  text-align: center;
  white-space: nowrap;
  margin-bottom: -0.03em;
  background: linear-gradient(180deg, #1f1f24 0%, #0f0f12 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .product-inner { grid-template-columns: 1fr; }
  .product, .product:nth-child(2) { position: relative; top: 0; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .feature-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .section-head, .split, .cta, .gallery { grid-template-columns: 1fr; }
  .section-head .lede { justify-self: start; }
  .hero-products .container { grid-template-columns: 1fr; padding: 0; }
  .hero-products-label { display: none; }
  .hp-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 1rem var(--gutter); }
  .grid-3, .layer-products { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .connectors { height: 36px; }
  .hero-body { align-items: flex-end; }
  .hero-copy { padding-top: 46vh; padding-bottom: 2rem; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .services { grid-template-columns: 1fr 1fr; }
  .form-row, .feature-list, .facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .product-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Gallery: lead image fills the height of the stacked column */
.gallery > .browser { display: flex; flex-direction: column; }
.gallery > .browser img { flex: 1; min-height: 0; height: 100%; aspect-ratio: auto; }
@media (max-width: 820px) { .gallery > .browser img { aspect-ratio: 16 / 10; height: auto; } }
@media (max-width: 820px) {
  .connectors { height: 0.75rem; }
  .connectors svg { display: none; }
  .layer-label span:last-child, .layer-platform-head span { display: none; }
}

/* ==========================================================================
   Photography — duotone images that sit inside the dark theme
   ========================================================================== */
.photo {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
  will-change: transform;
}
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9, 9, 11, 0) 45%, rgba(9, 9, 11, 0.65) 100%),
    radial-gradient(80% 60% at 80% 0%, rgba(80, 110, 190, 0.18), transparent 70%);
}
.photo figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(9, 9, 11, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.photo.r-45 { aspect-ratio: 4 / 5; }
.photo.r-54 { aspect-ratio: 5 / 4; }
.photo.r-32 { aspect-ratio: 3 / 2; }

/* Wipe-up reveal */
.js .photo[data-reveal] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0 round var(--r-lg)); transition: clip-path 1.4s var(--ease-io); }
.js .photo[data-reveal].in { clip-path: inset(0 0 0 0 round var(--r-lg)); }

/* Wide cinematic band with copy over the image */
.photo-band { aspect-ratio: 21 / 9; display: flex; align-items: flex-end; }
.photo-band::after { background: linear-gradient(90deg, rgba(9, 9, 11, 0.82) 0%, rgba(9, 9, 11, 0.35) 55%, rgba(9, 9, 11, 0.1) 100%), linear-gradient(180deg, transparent 40%, rgba(9, 9, 11, 0.6)); }
.photo-band .band-copy { position: relative; z-index: 2; padding: clamp(1.75rem, 4vw, 3.5rem); max-width: 40rem; }
.photo-band .band-copy .h2 { margin-bottom: 1rem; }
.photo-band .band-copy p { color: var(--fg-2); max-width: 30rem; }
.photo-band .band-meta { position: absolute; z-index: 2; top: clamp(1.25rem, 3vw, 2rem); right: clamp(1.25rem, 3vw, 2rem); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-2); }

/* Page hero with a photo */
.page-hero .hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.page-hero .hero-split .photo { aspect-ratio: 5 / 4; }

/* Photo + list layout */
.photo-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.25rem, 3vw, 2rem); align-items: stretch; }
.photo-split .photo { min-height: 100%; }
.stack-list { display: grid; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stack-list .cell + .cell { border-top: 1px solid var(--line); }

/* "Next product" over a photo */
.product-next.has-photo { position: relative; overflow: hidden; isolation: isolate; border-style: solid; border-color: var(--line); min-height: 320px; align-items: flex-end; }
.product-next.has-photo > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.product-next.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9, 9, 11, 0.9), rgba(9, 9, 11, 0.4) 70%, rgba(9, 9, 11, 0.2)), linear-gradient(180deg, transparent 30%, rgba(9, 9, 11, 0.7)); }

@media (max-width: 820px) {
  .page-hero .hero-split, .photo-split { grid-template-columns: 1fr; }
  .photo-band { aspect-ratio: auto; min-height: 420px; }
  .photo-split .photo { aspect-ratio: 4 / 3; min-height: 0; }
  .photo figcaption span:last-child { display: none; }
}

/* ==========================================================================
   v3 — product cards that always fit, product detail sections
   ========================================================================== */

/* Home product cards: compact, photo instead of screenshot */
.product-inner { padding: clamp(1.5rem, 3vw, 2.75rem); gap: clamp(1.5rem, 3.5vw, 3.5rem); }
.product-title { font-size: clamp(1.9rem, 3vw, 2.7rem); margin-bottom: 1rem; }
.product-desc { margin-bottom: 1.4rem; }
.product-points { margin-bottom: 1.6rem; gap: 0.55rem; }
.product-photo { width: 100%; aspect-ratio: 4 / 3; max-height: min(58vh, 480px); }
.product.no-stick { position: relative; top: auto; }

/* Product detail (products page) */
.product-static { position: relative; top: auto; transform: none !important; }
.pd + .pd { padding-top: 0; }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: clamp(1.5rem, 4vw, 3.5rem); }
.pd-grid.reverse .pd-copy { order: 2; }
.pd-copy .product-desc { max-width: 34rem; }

.pd-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, 0.1); margin: 0.5rem 0 2rem; }
.pd-facts .fact { padding: 1.1rem 1rem 0 0; }
.pd-facts .fact b { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -0.04em; }
.pd-facts .fact span { opacity: 0.6; color: inherit; }
.pd-domain { font-family: var(--mono); font-size: 0.8rem; opacity: 0.55; }

.collage { position: relative; padding-bottom: 14%; }
.collage .photo { border-color: rgba(255, 255, 255, 0.1); }
.collage-main { width: 84%; margin-left: auto; aspect-ratio: 4 / 3; }
.collage-inset { position: absolute; left: 0; bottom: 0; width: 42%; aspect-ratio: 4 / 5; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85); }
.collage-inset figcaption span:last-child { display: none; }
.pd-grid.reverse .collage-main { margin-left: 0; margin-right: auto; }
.pd-grid.reverse .collage-inset { left: auto; right: 0; }

.pd-features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.pd-features .feature { background: transparent; padding: clamp(1.25rem, 2.5vw, 1.9rem); border-right: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.pd-features .feature:nth-child(3n) { border-right: 0; }
.pd-features .feature:nth-last-child(-n+3) { border-bottom: 0; }
.pd-features .feature p { color: inherit; opacity: 0.68; }
.product--sagelume .pd-facts, .product--sagelume .pd-features, .product--sagelume .pd-features .feature { border-color: rgba(236, 225, 207, 0.12); }

@media (max-width: 1024px) {
  .pd-features { grid-template-columns: 1fr 1fr; }
  .pd-features .feature:nth-child(3n) { border-right: 1px solid rgba(255, 255, 255, 0.08); }
  .pd-features .feature:nth-child(2n) { border-right: 0; }
  .pd-features .feature:nth-last-child(-n+3) { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .pd-features .feature:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 820px) {
  .pd-grid { grid-template-columns: 1fr; }
  .pd-grid.reverse .pd-copy { order: 0; }
  .product-photo { max-height: none; }
}
@media (max-width: 560px) {
  .pd-features { grid-template-columns: 1fr; }
  .pd-features .feature { border-right: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important; }
  .pd-features .feature:last-child { border-bottom: 0 !important; }
  .pd-facts .fact b { font-size: 1.35rem; }
}
.collage-main figcaption { justify-content: flex-end; }
.collage-main figcaption span:first-child { display: none; }
.pd-grid.reverse .collage-main figcaption { justify-content: flex-start; }
.loader-brand { display: inline-flex; align-items: center; gap: 0.6rem; }
