/* Torus — dark product-site style (after Framer, v0, Lovable, Base44, Emergent, Relevance AI).
   Glow colours are the four ribbons of the Torus mark. */
:root {
  --bg: #07080c;
  --bg-2: #0c0e14;
  --card: #0f1118;
  --card-2: #161925;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #f4f5f8;
  --muted: #b0b5c6;   /* 9.6:1 on --bg */
  --dim: #8d93a8;     /* 6.2:1 on --bg, 5.6:1 on --card */

  --blue: #2f5bff;
  --blue-soft: #8ea6ff;
  --blue-deep: #0737c9;
  --cyan: #00bfff;
  --green: #2ae38f;
  --yellow: #ffc723;
  --pink: #ff6bb5;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1200px;
  --pad: clamp(20px, 4vw, 40px);
  --sec: clamp(88px, 10vw, 140px);   /* vertical space for every section */
  --head-gap: clamp(40px, 5vw, 64px); /* space between a section heading and its content */
  --r: 20px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, dl, dd, ol, ul, pre { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 0.92em; }

/* Icons */
.ic { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: -4px; }
.ic--sm { width: 16px; height: 16px; vertical-align: -3px; }
.c-blue { --c: var(--blue-soft); } .c-cyan { --c: var(--cyan); } .c-green { --c: var(--green); } .c-yellow { --c: var(--yellow); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn--light { background: var(--text); color: #0a0b10; }
.btn--light:hover { background: #fff; }
.btn--ghost { background: rgba(255,255,255,0.05); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { background: rgba(255,255,255,0.1); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.tlink { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-weight: 500; }
.tlink .ic { transition: transform 200ms var(--ease); }
.tlink:hover .ic { transform: translateX(3px); }
.kicker { font-size: 14px; font-weight: 500; color: var(--cyan); margin-bottom: 14px; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; border-bottom: 1px solid transparent; transition: background-color 300ms ease, border-color 300ms ease; }
.nav.is-scrolled { background: rgba(7, 8, 12, 0.78); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav__in { max-width: var(--max); margin: 0 auto; height: 68px; padding: 0 var(--pad); display: flex; align-items: center; gap: 28px; }
.nav__logo img { width: 112px; }
.nav__links { display: flex; gap: 4px; font-size: 14.5px; color: var(--muted); margin-left: 12px; }
.nav__links a { padding: 7px 13px; border-radius: 999px; transition: color 160ms ease, background-color 160ms ease; }
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav__links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,0.09); }
.nav__cta { margin-left: auto; display: flex; gap: 10px; }
.nav__burger { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line-2); background: transparent; border-radius: 12px; position: relative; cursor: pointer; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform 240ms var(--ease); }
.nav__burger span:first-child { top: 16px; } .nav__burger span:last-child { top: 24px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__sheet { display: none; }

/* Brand dropdown: Torus group websites, logos only */
.brand { position: relative; display: flex; align-items: center; gap: 4px; }
.brand__btn { width: 26px; height: 26px; display: grid; place-items: center; border: 0; padding: 0; background: none; color: var(--green); cursor: pointer; border-radius: 6px; }
.brand__btn .ic { transition: transform 240ms var(--ease); }
.brand__btn:hover .ic { transform: translateY(1px); }
.brand.is-open .brand__btn .ic { transform: rotate(180deg); }
.brand__menu {
  position: absolute; top: calc(100% + 14px); left: -6px; width: 184px; padding: 6px;
  display: flex; flex-direction: column; gap: 6px;
  background: rgba(15, 17, 24, 0.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 16px; box-shadow: 0 0 0 1px var(--line-2), 0 24px 60px -18px rgba(0,0,0,0.85);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 180ms ease, transform 240ms var(--ease), visibility 0s 240ms;
}
.brand.is-open .brand__menu { opacity: 1; visibility: visible; transform: none; transition: opacity 180ms ease, transform 240ms var(--ease); }
.brand__card { height: 56px; border-radius: 10px; background: #fff; display: grid; place-items: center; padding: 8px 12px; transition: transform 200ms var(--ease), box-shadow 200ms ease; }
.brand__card img { max-height: 32px; max-width: 100%; width: auto; height: auto; }
.brand__card img[src*="gss"] { max-height: 36px; }
.brand__card img[src*="great-foundation"] { max-height: 44px; }
.brand__card:hover, .brand__card:focus-visible { transform: translateY(-1px); box-shadow: 0 0 0 2px var(--cyan); }
.brand__card.is-current { box-shadow: 0 0 0 2px rgba(0,191,255,0.55); }
.brand__logo { flex: none; width: 112px; height: 46px; border-radius: 10px; background: #fff; display: grid; place-items: center; padding: 8px 10px; }
.brand__logo img { max-width: 100%; max-height: 28px; width: auto; height: auto; }

@media (max-width: 980px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__sheet { position: absolute; top: 68px; left: 0; right: 0; visibility: hidden; display: flex; flex-direction: column; padding: 8px var(--pad) 22px; background: rgba(7,8,12,0.97); border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0); transition: clip-path 360ms var(--ease), visibility 0s 360ms; pointer-events: none; max-height: calc(100svh - 68px); overflow-y: auto; }
  .nav__sheet > a:not(.btn) { padding: 13px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav__sheet a[aria-current="page"] { color: var(--cyan); }
  .nav__sheet .btn { margin-top: 18px; }
  .sheet__t { margin-top: 18px; font-size: 13px; color: var(--dim); }
  .sheet__brands { display: flex; gap: 10px; margin-top: 10px; }
  .nav.is-open .nav__sheet { clip-path: inset(0); pointer-events: auto; visibility: visible; transition: clip-path 360ms var(--ease), visibility 0s; }
  .nav.is-open { background: rgba(7,8,12,0.97); }
}

/* ---------- Glow ---------- */
.glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero > .glow, .page-hero > .glow { bottom: -35%; -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 92%); mask-image: linear-gradient(180deg, #000 45%, transparent 92%); }
.glow i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; mix-blend-mode: screen; will-change: transform; }
.glow .g1 { width: 46vw; height: 46vw; max-width: 720px; max-height: 720px; background: var(--blue-deep); left: 50%; top: 30%; translate: -95% -30%; animation: drift1 18s ease-in-out infinite alternate; opacity: 0.75; }
.glow .g2 { width: 34vw; height: 34vw; max-width: 520px; max-height: 520px; background: var(--cyan); left: 50%; top: 34%; translate: -10% -40%; animation: drift2 22s ease-in-out infinite alternate; opacity: 0.4; }
.glow .g3 { width: 26vw; height: 26vw; max-width: 420px; max-height: 420px; background: var(--green); left: 50%; top: 42%; translate: 30% -20%; animation: drift3 20s ease-in-out infinite alternate; opacity: 0.3; }
.glow .g4 { width: 22vw; height: 22vw; max-width: 360px; max-height: 360px; background: var(--yellow); left: 50%; top: 46%; translate: -50% 10%; animation: drift2 26s ease-in-out infinite alternate-reverse; opacity: 0.2; }
@keyframes drift1 { to { transform: translate(8vw, -4vw) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-7vw, 5vw) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-10vw, -6vw) scale(1.2); } }
.grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 45% at 50% 22%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 45% at 50% 22%, #000 30%, transparent 75%);
  opacity: 0.45;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  padding: 152px var(--pad) clamp(80px, 9vw, 120px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero.is-menu-open { z-index: 3; }
.hero > * { position: relative; z-index: 1; }
.hero > .glow, .hero > .grid-bg { position: absolute; z-index: 0; }
.hero > .prompt { z-index: 5; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 34px; padding: 6px 14px 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line-2);
  font-size: 13.5px; color: var(--muted); text-align: left;
  transition: background-color 200ms ease, color 200ms ease;
}
a.chip:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.chip .ic { transition: transform 200ms var(--ease); }
a.chip:hover .ic { transform: translateX(2px); }
.hero__h {
  margin-top: 28px;
  font-size: clamp(40px, 6.2vw, 82px); font-weight: 600; line-height: 1.03; letter-spacing: -0.045em;
  max-width: 24ch; text-wrap: balance;
}
.hero__p { margin-top: 24px; max-width: 60ch; font-size: clamp(16px, 1.3vw, 18.5px); color: var(--muted); text-wrap: balance; }

/* Entrances (see main.js): fade + 14px rise using `translate`, so hover transforms are untouched */
.js .rv { opacity: 0; translate: 0 14px; transition: opacity 650ms var(--ease) var(--d, 0ms), translate 800ms var(--ease-expo) var(--d, 0ms), transform 300ms var(--ease), box-shadow 300ms ease, background-color 200ms ease, color 200ms ease, filter 400ms ease; }
.js .rv.in { opacity: 1; translate: none; }
.js .rvw .w { translate: 0 110%; transition: translate 900ms var(--ease-expo) calc(var(--i, 0) * 40ms); }
.js .rvw.in .w { translate: none; }
.gen.pop { animation: genpop 700ms var(--ease-expo); }
@keyframes genpop { from { opacity: 0; translate: 0 20px; scale: 0.985; } }

/* Words of split headings */
.w { display: inline-block; }
.wm { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* Prompt box */
.prompt {
  margin-top: 44px; width: min(760px, 100%); position: relative; z-index: 5;
  background: rgba(16, 18, 26, 0.86);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 22px; padding: 18px 16px 14px 18px; text-align: left;
  box-shadow: 0 30px 80px -20px rgba(7, 55, 201, 0.45), 0 0 0 1px var(--line-2);
  transition: box-shadow 300ms ease;
}
.prompt:focus-within { box-shadow: 0 30px 90px -18px rgba(0, 191, 255, 0.5), 0 0 0 1px rgba(255,255,255,0.24); }
.prompt__ring {
  position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--cyan) 78%, var(--green) 84%, var(--yellow) 88%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --a: 360deg; } }
.prompt__drop {
  position: absolute; inset: 0; border-radius: inherit; z-index: 3; pointer-events: none;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: rgba(0, 191, 255, 0.12); box-shadow: inset 0 0 0 2px var(--cyan); color: var(--text); font-weight: 500;
  opacity: 0; transition: opacity 160ms ease;
}
.prompt.is-drag .prompt__drop { opacity: 1; }
.prompt__in { width: 100%; resize: none; border: 0; outline: 0; background: transparent; font-size: 17px; line-height: 1.5; color: var(--text); min-height: 56px; }
.prompt__in::placeholder { color: var(--dim); }
.prompt__bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.prompt__hint { font-size: 13px; color: var(--dim); }
.send {
  margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--text); color: #0a0b10; display: grid; place-items: center; flex: none;
  transition: transform 180ms var(--ease), background-color 200ms ease;
}
.send:hover { transform: scale(1.07); background: #fff; }
.send:active { transform: scale(0.94); }
.pbtn {
  height: 36px; min-width: 36px; padding: 0 9px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line-2); color: var(--muted);
  font-size: 13.5px; cursor: pointer; transition: background-color 160ms ease, color 160ms ease, transform 200ms var(--ease);
}
.pbtn:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.pbtn[aria-expanded="true"] { background: var(--text); color: #0a0b10; }
.pbtn[aria-expanded="true"] .ic { transform: rotate(45deg); }
.pbtn .ic { transition: transform 240ms var(--ease); }

/* + menu: one view at a time, compact */
.plus { position: relative; }
.pmenu {
  position: absolute; top: calc(100% + 8px); left: -4px; z-index: 30; width: 286px; padding: 6px;
  background: #12141c; border-radius: 14px; box-shadow: 0 0 0 1px var(--line-2), 0 24px 60px -16px rgba(0,0,0,0.9);
  animation: pop 200ms var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.pmenu__view { display: flex; flex-direction: column; gap: 1px; }
.pmenu__view[hidden] { display: none; }
.pmenu__i { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; color: var(--text); transition: background-color 140ms ease; }
.pmenu__i:hover, .pmenu__i:focus-visible { background: rgba(255,255,255,0.07); }
.pmenu__i b { display: block; font-weight: 500; font-size: 14px; line-height: 1.3; }
.pmenu__i small { display: block; font-size: 12px; line-height: 1.3; color: var(--dim); }
.pmenu__ic { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.pmenu__ic .ic { width: 16px; height: 16px; }
.pmenu__go { margin-left: auto; color: var(--dim); }
.pmenu__back { border: 0; background: transparent; color: var(--muted); font-size: 12.5px; text-align: left; padding: 6px 8px 8px; cursor: pointer; border-radius: 8px; }
.pmenu__back:hover { color: var(--text); }
.fchk { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; font-size: 14px; cursor: pointer; }
.fchk:hover { background: rgba(255,255,255,0.06); }
.fchk input { width: 15px; height: 15px; accent-color: var(--cyan); margin: 0; }
.fchk .ic { color: var(--dim); }
.pmenu__t { border: 0; background: transparent; text-align: left; padding: 8px; border-radius: 9px; font-size: 14px; cursor: pointer; color: var(--text); }
.pmenu__t:hover { background: rgba(255,255,255,0.07); }

/* Attachments */
.attach { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.attach:empty { display: none; }
.att {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  height: 34px; padding: 0 6px 0 10px; border-radius: 10px; font-size: 13px;
  background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); animation: pop 220ms var(--ease);
}
.att .ic { color: var(--c, var(--cyan)); }
.att b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.att span { color: var(--dim); white-space: nowrap; }
.att--err { box-shadow: inset 0 0 0 1px rgba(255,107,107,0.5); }
.att--err span { color: #ff9b9b; }
.att__x { width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--dim); cursor: pointer; }
.att__x:hover { background: rgba(255,255,255,0.08); color: var(--text); }

.suggest { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 920px; }
.sg {
  height: 36px; padding: 0 15px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); color: var(--muted); font-size: 13.5px;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease);
}
.sg:hover { background: rgba(255,255,255,0.09); color: var(--text); transform: translateY(-1px); }

/* Generation window */
.gen { margin-top: 40px; width: min(1000px, 100%); text-align: left; }
.win, .app { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), 0 40px 120px -30px rgba(0,0,0,0.8); }
.win__bar { height: 44px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.02); font-size: 13px; color: var(--muted); }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.win__title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win__badge { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(255,199,35,0.14); color: var(--yellow); white-space: nowrap; }
.win__badge.is-done, .win__badge--live { background: rgba(42,227,143,0.14); color: var(--green); }
.gen__body { display: grid; grid-template-columns: 0.95fr 1.05fr; min-height: 340px; }
.gen__log { padding: 20px; border-right: 1px solid var(--line); font-family: var(--mono); font-size: 13px; display: flex; flex-direction: column; gap: 12px; }
.gen__log li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; color: var(--muted); opacity: 0; transform: translateY(6px); transition: opacity 300ms ease, transform 300ms var(--ease); }
.gen__log li.in { opacity: 1; transform: none; }
.gen__log li b { color: var(--text); font-weight: 500; }
.gen__log .gi { color: var(--dim); }
.gen__log li.done .gi { color: var(--green); }
.gen__log li.skip { opacity: 0.45; }
.gen__log li.skip .gi { color: var(--dim); }
.gen__log .sub { display: block; color: var(--dim); font-size: 12px; }
.gen__preview { padding: 20px; background: var(--bg-2); opacity: 0.3; transition: opacity 500ms ease; }
.gen__preview.ready { opacity: 1; }
.pv__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.pv__name { font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.pv__env { font-size: 12px; color: var(--cyan); background: rgba(0,191,255,0.12); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pv__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.pv__stat { background: var(--card-2); border-radius: var(--r-sm); padding: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.pv__stat span { display: block; font-size: 12px; color: var(--dim); }
.pv__stat b { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.pv__table { display: flex; flex-direction: column; border-radius: var(--r-sm); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.pv__table div { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 10px; padding: 10px 12px; font-size: 13px; border-top: 1px solid var(--line); }
.pv__table div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv__table div:first-child { border-top: 0; color: var(--dim); font-size: 12px; background: rgba(255,255,255,0.03); }
.tagx { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; justify-self: end; }
.t-ok { background: rgba(42,227,143,0.14); color: var(--green); }
.t-wait { background: rgba(255,199,35,0.14); color: var(--yellow); }
.t-new { background: rgba(0,191,255,0.12); color: var(--cyan); }

/* Real product screenshots, layered */
.shots { position: relative; width: min(1180px, 100%); aspect-ratio: 1600 / 1080; margin-top: 80px; margin-bottom: -6%; pointer-events: none; }
.shot { position: absolute; width: 76%; filter: drop-shadow(0 40px 60px rgba(0,0,0,0.6)); }
.shot--1 { left: 0; top: 0; }
.shot--2 { left: 12%; top: 13%; }
.shot--3 { left: 24%; top: 26%; }
.shots::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -2px; height: 38%; background: linear-gradient(180deg, transparent, var(--bg) 85%); z-index: 2; }

/* ---------- Client logos ---------- */
.logos { position: relative; z-index: 2; padding: 48px 0 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos__label { text-align: center; color: var(--muted); font-size: 14.5px; margin-bottom: 32px; padding: 0 var(--pad); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 64px; width: max-content; animation: marquee 50s linear infinite; }
.marquee__dup { display: contents; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img { height: 36px; width: auto; max-width: none; opacity: 0.7; transition: opacity 200ms ease; }
.marquee img:hover { opacity: 1; }
@keyframes marquee { to { transform: translateX(calc(-50% - 32px)); } }

/* ---------- Sections ---------- */
section { position: relative; }
.sec { padding-block: var(--sec); }
.sec + .sec { border-top: 1px solid var(--line); }
.head { max-width: var(--max); margin: 0 auto var(--head-gap); padding: 0 var(--pad); text-align: center; display: flex; flex-direction: column; align-items: center; }
.head--row { flex-direction: row; justify-content: space-between; align-items: flex-end; text-align: left; gap: 40px; }
.head--row .lede { max-width: 40ch; margin-top: 0; }
.h2 { font-size: clamp(32px, 4.4vw, 58px); font-weight: 600; line-height: 1.05; letter-spacing: -0.04em; max-width: 18ch; text-wrap: balance; }
.lede { margin-top: 18px; max-width: 60ch; color: var(--muted); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; text-wrap: pretty; }
.head .lede { text-wrap: balance; }

/* The Torus way */
.own { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.own .h2 { max-width: 12ch; }
.own__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.own__item { padding: 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 6px; transition: box-shadow 250ms ease, transform 250ms var(--ease); }
.own__item:hover { box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-2px); }
.own__ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.own__item b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.own__item > span:last-child { color: var(--muted); font-size: 14.5px; }

/* Six fabrics: heading on top, the full diagram (as on toruslowcode.com) below, wide and short */
.fabrics3 { padding-block: clamp(80px, 8vw, 112px); }
.fabrics3__head { margin-bottom: clamp(8px, 1.5vw, 20px); }
.fabrics3__head .h2 { max-width: none; }
.fabrics3__head .lede { margin-top: 12px; }
.fabrics3__more { text-align: center; margin-top: clamp(8px, 1.5vw, 20px); }
.fdiag-wrap { container-type: inline-size; max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
.fdiag { position: relative; width: 100%; aspect-ratio: 1100 / 560; }
.fdiag__track { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring__base { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 16; }
.ring__flow { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 2 14; stroke-linecap: round; opacity: 0.7; transform-origin: 550px 280px; animation: ringspin 30s linear infinite; }
@keyframes ringspin { to { transform: rotate(360deg); } }
.fdiag__core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 16cqw; text-align: center; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.fdiag__core img { width: 11cqw; margin-bottom: 1.1cqw; }
.fdiag__core b { font-size: max(13px, 1.45cqw); font-weight: 600; }
.fdiag__core span { margin-top: 0.4cqw; font-size: max(12.5px, 1.2cqw); line-height: 1.45; color: var(--muted); }
.fnode {
  position: absolute; left: var(--x); top: var(--y); width: 7cqw; height: 7cqw; translate: -50% -50%;
  border: 0; border-radius: 50%; cursor: pointer; color: #fff; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 100%, #fff 18%), var(--c));
  box-shadow: 0 0 0 0.55cqw var(--bg), 0 1cqw 3.5cqw -0.7cqw var(--c);
}
.fnode .ic { width: 45%; height: 45%; }
.fnode.is-on { scale: 1.08; box-shadow: 0 0 0 0.55cqw var(--bg), 0 0 0 0.85cqw color-mix(in srgb, var(--c) 55%, transparent), 0 1.2cqw 4.2cqw -0.7cqw var(--c); }
.ftext { position: absolute; left: var(--x); top: var(--y); width: 24cqw; cursor: default; }
.ftext b { display: block; font-size: max(14px, 1.5cqw); font-weight: 600; line-height: 1.25; }
.ftext span { display: block; margin-top: 0.35cqw; font-size: max(13px, 1.3cqw); line-height: 1.45; color: var(--muted); }
.ftext--top { translate: -50% -100%; text-align: center; width: 30cqw; }
.ftext--bottom { translate: -50% 0; text-align: center; width: 30cqw; }
.ftext--right { translate: 0 -50%; }
.ftext--left { translate: -100% -50%; text-align: right; }
.fdiag.has-on .fnode:not(.is-on) { opacity: 0.6; }
.fdiag.has-on .ftext:not(.is-on) { opacity: 0.78; }
.ftext.is-on b { color: #fff; }
.fdiag-list { display: none; }
/* Entrance: circles pop in, text rises (pure CSS so it always completes) */
.js .fdiag-wrap:not(.in) .fnode { opacity: 0; scale: 0.6; }
.js .fdiag-wrap:not(.in) .ftext, .js .fdiag-wrap:not(.in) .fitem { opacity: 0; transform: translateY(14px); }
.ftext, .fitem { transition: opacity 600ms var(--ease), transform 700ms var(--ease-expo); }
.fnode { transition: box-shadow 300ms ease, opacity 600ms var(--ease), scale 700ms var(--ease-expo); }

/* ---------- Product canvas ---------- */
.stage { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); perspective: 1600px; }
.app { transform-origin: 50% 0%; }
.app__body { display: grid; grid-template-columns: 210px 1fr 230px; height: 520px; }
.app__side, .app__insp { padding: 18px 14px; font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.app__side { border-right: 1px solid var(--line); }
.app__insp { border-left: 1px solid var(--line); gap: 0; }
.side__t { font-size: 12px; color: var(--dim); margin: 6px 8px 8px; }
.side__t:not(:first-child) { margin-top: 18px; }
.side__i { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; color: var(--muted); cursor: default; }
.side__i .ic { color: var(--dim); }
.side__i.is-on { background: rgba(255,255,255,0.08); color: var(--text); }
.side__i.is-on .ic { color: var(--green); }
.side__i--dim { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.app__canvas { position: relative; overflow: hidden; background-color: var(--bg-2); background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 22px 22px; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.wires path { fill: none; stroke: rgba(255,255,255,0.2); stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.pulse { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.pulse.p2 { fill: var(--yellow); filter: drop-shadow(0 0 6px var(--yellow)); }
.pulse.p3 { fill: var(--green); filter: drop-shadow(0 0 6px var(--green)); }
.pulse.p4 { fill: var(--pink); filter: drop-shadow(0 0 6px var(--pink)); }
.node { position: absolute; left: var(--x); top: var(--y); width: 26%; background: var(--card-2); border-radius: 12px; padding: 12px 14px; box-shadow: 0 0 0 1px var(--line-2), 0 10px 30px -10px rgba(0,0,0,0.6); display: flex; flex-direction: column; gap: 2px; font-size: 13px; transition: transform 200ms var(--ease), box-shadow 200ms ease; }
.node:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(255,255,255,0.28), 0 16px 40px -12px rgba(0,0,0,0.7); }
.node b { font-weight: 600; font-size: 14px; }
.node small { color: var(--dim); font-family: var(--mono); font-size: 11.5px; }
.node.is-sel { box-shadow: 0 0 0 1.5px var(--blue), 0 0 40px -6px rgba(47,91,255,0.6); }
.node__k { align-self: flex-start; font-size: 11px; padding: 1px 8px; border-radius: 999px; margin-bottom: 6px; font-weight: 500; }
.k-blue { background: rgba(47,91,255,0.2); color: var(--blue-soft); }
.k-cyan { background: rgba(0,191,255,0.15); color: var(--cyan); }
.k-yellow { background: rgba(255,199,35,0.15); color: var(--yellow); }
.k-green { background: rgba(42,227,143,0.14); color: var(--green); }
.k-pink { background: rgba(255,107,181,0.15); color: var(--pink); }
.insp__row { display: flex; justify-content: space-between; gap: 8px; padding: 9px 8px; border-bottom: 1px solid var(--line); color: var(--dim); }
.insp__row b { color: var(--text); font-weight: 500; font-size: 12.5px; }
.insp__row b.on { color: var(--yellow); }
.insp__code { margin-top: 14px; padding: 12px; border-radius: 10px; background: var(--bg-2); font-size: 12px; line-height: 1.7; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.c-k { color: #c792ff; } .c-s { color: var(--blue-soft); } .c-v { color: var(--green); } .c-n { color: var(--yellow); } .c-g { color: var(--green); } .c-y { color: var(--yellow); }

/* ---------- Cards (shared) ---------- */
.card { position: relative; overflow: hidden; isolation: isolate; background: var(--card); border-radius: var(--r); padding: 24px; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; transition: transform 300ms var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 300ms ease; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(47,91,255,0.16), transparent 60%); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity 300ms ease; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(0,191,255,0.7), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card:hover::before, .card:hover::after { opacity: 1; }
.card h3 { margin-top: 18px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.card > p { margin-top: 8px; color: var(--muted); font-size: 15px; max-width: 52ch; }
.card__vis { flex: 1; min-height: 200px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); padding: 16px; display: flex; flex-direction: column; justify-content: center; gap: 12px; font-size: 13px; }
.api__req { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--card-2); }
.m { font-family: var(--mono); font-size: 11.5px; font-weight: 500; padding: 2px 7px; border-radius: 6px; background: rgba(42,227,143,0.14); color: var(--green); }
.api__ok { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--green); }
.api__json { font-family: var(--mono); font-size: 12.5px; line-height: 1.65; color: var(--muted); padding: 4px 10px; }
.api__tags, .dep__chk { display: flex; flex-wrap: wrap; gap: 6px; }
.api__tags span, .dep__chk span { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,0.06); color: var(--muted); }
.src { display: flex; justify-content: space-between; gap: 6px; }
.src span { flex: 1; text-align: center; font-size: 11.5px; padding: 6px 4px; border-radius: 8px; background: var(--card-2); color: var(--muted); }
.merge svg { width: 100%; height: 50px; display: block; }
.merge path { fill: none; stroke: rgba(0,191,255,0.55); stroke-width: 1.5; stroke-dasharray: 4 6; animation: flowdash 1.6s linear infinite; vector-effect: non-scaling-stroke; }
@keyframes flowdash { to { stroke-dashoffset: -20; } }
.ds { align-self: center; text-align: center; padding: 10px 16px; border-radius: 12px; background: rgba(0,191,255,0.1); box-shadow: inset 0 0 0 1px rgba(0,191,255,0.35); }
.ds b { display: block; font-family: var(--mono); font-weight: 500; color: var(--cyan); }
.ds small { color: var(--dim); font-size: 11.5px; }
.vis-ui { flex-direction: row; align-items: center; gap: 14px; }
.ui__web { flex: 1; height: 150px; border-radius: 10px; background: var(--card-2); padding: 10px; display: grid; grid-template-columns: 1fr 2fr; grid-template-rows: 18px 1fr 1fr; gap: 6px; }
.ui__web i { border-radius: 5px; background: rgba(255,255,255,0.08); }
.ui__web .w1 { grid-column: 1 / -1; background: rgba(47,91,255,0.4); }
.ui__web .w2 { grid-row: span 2; }
.ui__web .w3 { background: rgba(255,199,35,0.28); }
.ui__phone { width: 64px; height: 124px; border-radius: 14px; background: var(--card-2); padding: 10px 7px; display: flex; flex-direction: column; gap: 5px; box-shadow: inset 0 0 0 1px var(--line-2); position: relative; }
.ui__phone i { height: 14px; border-radius: 4px; background: rgba(255,255,255,0.08); }
.ui__phone i:first-child { height: 30px; background: rgba(42,227,143,0.3); }
.ui__phone span { position: absolute; bottom: -10px; left: 50%; translate: -50% 0; font-size: 10.5px; padding: 1px 7px; border-radius: 999px; background: var(--cyan); color: #04121a; font-weight: 600; }
.flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.flow i { flex: 1; min-width: 14px; height: 1.5px; background: var(--line-2); }
.st { position: relative; padding: 7px 12px; border-radius: 10px; background: var(--card-2); color: var(--muted); font-size: 13px; }
.st.done { color: var(--green); box-shadow: inset 0 0 0 1px rgba(42,227,143,0.35); }
.st.cur { color: var(--yellow); box-shadow: inset 0 0 0 1px rgba(255,199,35,0.5); animation: blink 2s ease-in-out infinite; }
.st em { position: absolute; top: -18px; left: 0; font-style: normal; font-size: 10.5px; white-space: nowrap; }
@keyframes blink { 50% { box-shadow: inset 0 0 0 1px rgba(255,199,35,0.15), 0 0 24px -4px rgba(255,199,35,0.45); } }
.proc__log { color: var(--muted); font-size: 12px; line-height: 1.8; padding: 0 4px; }
.vis-int { flex-direction: row; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; }
.vis-int span { padding: 8px 12px; border-radius: 10px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; transition: transform 200ms var(--ease), color 200ms ease; }
.vis-int span:hover { transform: translateY(-2px); color: var(--cyan); }
.pipe { display: flex; align-items: center; gap: 10px; }
.env { padding: 10px 14px; border-radius: 12px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); text-align: center; }
.env b { display: block; font-weight: 600; } .env small { color: var(--dim); font-size: 11.5px; }
.bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.bar em { display: block; height: 100%; width: 100%; background: var(--green); transform-origin: left; animation: fill 3.2s var(--ease) infinite; }
.bar.b2 em { animation-delay: 1.2s; background: var(--cyan); }
@keyframes fill { 0% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); } }

/* ---------- Story (sticky) ---------- */
.story__grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.32; transition: opacity 400ms ease; }
.step:first-child { min-height: 46vh; justify-content: flex-start; padding-top: 6vh; }
.step.is-on { opacity: 1; }
.step__n { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--cyan); margin-bottom: 12px; }
.step h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; max-width: 18ch; }
.step p { margin-top: 12px; color: var(--muted); max-width: 44ch; }
.story__sticky { position: sticky; top: calc(50vh - 190px); height: 380px; display: grid; place-items: center; }
.evt { width: min(400px, 100%); background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: 0 0 0 1px var(--line-2), 0 40px 100px -30px rgba(7,55,201,0.55); position: relative; }
.evt__top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.pill { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(0,191,255,0.14); color: var(--cyan); transition: background-color 300ms ease, color 300ms ease; }
.pill.ok { background: rgba(42,227,143,0.16); color: var(--green); }
.pill.wait { background: rgba(255,199,35,0.16); color: var(--yellow); }
.evt__t { margin-top: 10px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.evt__prog { margin: 14px 0 6px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.evt__prog i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green)); transform-origin: left; transform: scaleX(0.25); transition: transform 600ms var(--ease); }
.evt__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; animation: rowin 400ms var(--ease) both; }
.evt__rows div:nth-child(2) { animation-delay: 60ms; } .evt__rows div:nth-child(3) { animation-delay: 120ms; } .evt__rows div:nth-child(4) { animation-delay: 180ms; }
.evt__rows dt { color: var(--dim); }
.evt__rows dd { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
@keyframes rowin { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Products ---------- */
.prod-grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.prod h3 { margin-top: 18px; }
.prod__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prod__ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.prod__k { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,0.07); color: var(--muted); }
.prod--hub { grid-column: span 2; grid-row: span 2; }
.prod--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 18px; }
.prod--wide .prod__ic { flex: none; }
.prod--wide__txt { flex: 1; }
.prod--wide h3 { margin-top: 0; }
.prod--wide .prod__k { flex: none; }
.rails { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rail { padding: 13px 14px; border-radius: 12px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 200ms ease; }
.rail:hover { box-shadow: inset 0 0 0 1px rgba(0,191,255,0.45); }
.rail b { display: block; font-size: 14px; font-weight: 600; }
.rail span { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.partner { max-width: var(--max); margin: 16px auto 0; padding: 0 var(--pad); }
.partner__in { display: flex; align-items: center; gap: 28px; padding: 22px 26px; border-radius: var(--r); background: linear-gradient(90deg, rgba(47,91,255,0.16), rgba(0,191,255,0.06) 60%, transparent); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow 250ms ease, background-color 250ms ease; }
.partner__in:hover { box-shadow: inset 0 0 0 1px rgba(0,191,255,0.5), 0 20px 50px -30px rgba(0,191,255,0.6); }
.partner__logo { flex: none; width: 180px; height: 66px; border-radius: 12px; background: #fff; display: grid; place-items: center; padding: 10px 16px; transition: transform 250ms var(--ease); }
.partner__in:hover .partner__logo { transform: scale(1.03); }
.partner__txt { display: flex; flex-direction: column; gap: 6px; }
.partner__k { font-size: 13px; font-weight: 500; color: var(--cyan); }
.partner__p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.partner__p strong { color: var(--text); font-weight: 500; }

/* ---------- Use cases ---------- */
.cases { border-top: 1px solid var(--line); }
.cases__pin { padding-block: var(--sec); overflow: hidden; }
.cases .head { margin-bottom: 0; }
.cases__track { display: flex; gap: 16px; padding: var(--head-gap) var(--pad) 0; width: max-content; }
.case { width: 360px; flex: none; background: var(--card); border-radius: var(--r); padding: 18px 18px 20px; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; transition: transform 300ms var(--ease), box-shadow 300ms ease; }
.case:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -30px rgba(0,191,255,0.35); }
.case__vis { height: 170px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); padding: 14px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.case h3 { display: flex; align-items: center; gap: 9px; margin-top: 18px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.case h3 .ic { color: var(--cyan); }
.case p { margin-top: 6px; color: var(--muted); font-size: 14.5px; flex: 1; }
.case__btn { margin-top: 16px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; transition: color 160ms ease; }
.case__btn .ic { transition: transform 200ms var(--ease); }
.case__btn:hover { color: var(--cyan); }
.case__btn:hover .ic { transform: translateX(3px); }
.cv__row { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--card-2); font-size: 13px; }
.cv__row span { color: var(--dim); }
.cv__row em { font-style: normal; font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,0.07); color: var(--muted); }
.cv__row em.ok { background: rgba(42,227,143,0.14); color: var(--green); }
.cv__row em.wait { background: rgba(255,199,35,0.14); color: var(--yellow); }
.recon { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.recon div { padding: 14px 10px; border-radius: 10px; background: var(--card-2); }
.recon span { display: block; font-size: 11.5px; color: var(--dim); }
.recon b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.recon b.warn { color: var(--yellow); }
.claim p { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; font-size: 12.5px; color: var(--dim); padding: 5px 0; }
.claim i { height: 8px; border-radius: 6px; background: rgba(255,255,255,0.07); position: relative; overflow: hidden; }
.claim i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: var(--cyan); }

/* ---------- Deploy ---------- */
.deploy { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 72px); align-items: center; }
.deploy .h2 { max-width: 13ch; }
.seg { margin-top: 28px; display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,0.05); box-shadow: inset 0 0 0 1px var(--line); }
.seg__b { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; transition: background-color 220ms ease, color 220ms ease; }
.seg__b:hover { color: var(--text); }
.seg__b.is-on { background: var(--text); color: #0a0b10; }
.deploy__note { margin-top: 18px; color: var(--muted); max-width: 44ch; min-height: 3.2em; }
.deploy__vis { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 22px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.zone { border-radius: 16px; padding: 16px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); opacity: 0.4; filter: saturate(0.2); transition: opacity 400ms ease, filter 400ms ease, box-shadow 400ms ease, transform 400ms var(--ease); }
.zone__t { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.svc { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.svc i { font-style: normal; text-align: center; padding: 18px 6px; border-radius: 10px; background: var(--card-2); font-size: 13px; font-weight: 500; transition: opacity 300ms ease; }
.z-dc .svc i { color: var(--blue-soft); } .z-cloud .svc i { color: var(--cyan); }
.deploy__vis[data-env="onprem"] .z-dc, .deploy__vis[data-env="cloud"] .z-cloud, .deploy__vis[data-env="hybrid"] .zone { opacity: 1; filter: none; box-shadow: inset 0 0 0 1px var(--line-2), 0 0 50px -14px rgba(47,91,255,0.55); }
.deploy__vis[data-env="hybrid"] .z-dc .svc i:nth-child(n+3), .deploy__vis[data-env="hybrid"] .z-cloud .svc i:nth-child(-n+2) { opacity: 0.25; }

/* ---------- Numbers ---------- */
.nums { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.num { padding: 24px 22px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.num--wide { grid-column: 1 / -1; }
.num__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--cyan); background: rgba(0,191,255,0.12); margin-bottom: 16px; }
.num b { display: block; font-size: clamp(40px, 4.4vw, 60px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff 30%, #9aa3c0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num--wide b { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.03em; }
.num > span:last-child { display: block; margin-top: 10px; color: var(--muted); font-size: 14.5px; }

/* About (short, home) */
.about-short { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.about-short .tlink { margin-top: 24px; }

/* People (about page) */
.team { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.person { border-radius: var(--r); overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.person__pic { aspect-ratio: 4 / 4.4; overflow: hidden; }
.person__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; filter: grayscale(1) contrast(1.05); transition: filter 500ms ease, transform 900ms var(--ease-expo); }
.person:hover img { filter: none; transform: scale(1.04); }
.person figcaption { padding: 16px 18px 18px; }
.person b { display: block; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.person span { color: var(--muted); font-size: 14px; }

/* ---------- Final CTA ---------- */
.final { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--sec) * 1.3) var(--pad); text-align: center; display: flex; flex-direction: column; align-items: center; border-top: 1px solid var(--line); }
.final > *:not(.glow) { position: relative; z-index: 1; }
.glow--final .g1 { top: 70%; } .glow--final .g2 { top: 80%; } .glow--final .g3 { top: 85%; } .glow--final .g4 { top: 90%; }
.final__h { font-size: clamp(36px, 5.4vw, 72px); font-weight: 600; line-height: 1.04; letter-spacing: -0.045em; max-width: 15ch; text-wrap: balance; }
.final__cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 80px var(--pad) 28px; overflow: hidden; }
.foot__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.6fr; gap: 36px; font-size: 14.5px; }
.foot__grid > div { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.foot__brand p { color: var(--muted); max-width: 34ch; margin-top: 8px; line-height: 1.6; }
.foot__social { display: flex; gap: 8px; margin-top: 8px; }
.foot__social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); transition: color 160ms ease, background-color 160ms ease; }
.foot__social a:hover { color: var(--text); background: rgba(255,255,255,0.12); }
.foot__social .ic { width: 17px; height: 17px; }
.foot__t { color: var(--text); font-weight: 600; margin-bottom: 4px; }
.foot__grid a { color: var(--muted); transition: color 160ms ease; }
.foot__grid a:hover { color: var(--text); }
.foot__line { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); line-height: 1.5; }
.foot__line .ic { margin-top: 2px; color: var(--dim); }
.foot__line b { color: var(--text); font-weight: 500; }
.foot__word {
  max-width: var(--max); margin: 56px auto 0; text-align: center;
  font-size: clamp(110px, 26vw, 360px); font-weight: 700; letter-spacing: -0.07em; line-height: 0.8;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none;
}
.foot__last { max-width: var(--max); margin: 24px auto 0; display: flex; justify-content: space-between; gap: 12px; color: var(--dim); font-size: 13.5px; }
.foot__last a:hover { color: var(--text); }

/* =====================================================================
   Inner pages: Platform, Docs, About, Contact
   ===================================================================== */
.page-hero { position: relative; isolation: isolate; padding: 168px var(--pad) var(--sec); display: flex; flex-direction: column; align-items: center; text-align: center; }
.page-hero > * { position: relative; z-index: 1; }
.page-hero > .glow, .page-hero > .grid-bg { position: absolute; z-index: 0; }
.page-hero .glow i { opacity: 0.4; }
.page-hero .glow .g1 { top: 18%; } .page-hero .glow .g2 { top: 26%; } .page-hero .glow .g3 { top: 36%; } .page-hero .glow .g4 { top: 36%; }
.page-hero__h { margin-top: 24px; font-size: clamp(40px, 6vw, 80px); font-weight: 600; line-height: 1.03; letter-spacing: -0.045em; max-width: 16ch; text-wrap: balance; }
.page-hero .hero__p { max-width: 62ch; }
.page-hero__cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.page-hero__art { margin-top: 64px; width: min(1000px, 100%); }

/* Platform: sticky fabric tabs, a centred floating bar */
.subnav { position: sticky; top: 78px; z-index: 40; display: flex; justify-content: center; padding: 0 var(--pad); pointer-events: none; }
.subnav__in {
  pointer-events: auto; display: flex; gap: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  padding: 6px; border-radius: 999px;
  background: rgba(15, 17, 24, 0.82); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -18px rgba(0,0,0,0.8);
}
.subnav__in::-webkit-scrollbar { display: none; }
.subnav a { flex: none; height: 38px; padding: 0 15px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; font-size: 14px; color: var(--muted); white-space: nowrap; transition: background-color 200ms ease, color 200ms ease; }
.subnav a:hover { color: var(--text); background: rgba(255,255,255,0.07); }
.subnav a.is-on { background: var(--text); color: #0a0b10; }
.subnav a .ic { color: var(--c, var(--cyan)); }
.subnav a.is-on .ic { color: #0a0b10; }

/* Platform: fabric sections */
.fab { max-width: var(--max); margin: 0 auto; padding: var(--sec) var(--pad); display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 72px); align-items: center; scroll-margin-top: 130px; }
.fab + .fab { border-top: 1px solid var(--line); }
.subnav + .fab { padding-top: clamp(64px, 7vw, 96px); }
.fab:nth-of-type(odd) .fab__copy { order: 2; }
.fab__k { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--c, var(--cyan)); }
.fab__k .fab__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, transparent); }
.fab .h2 { margin-top: 16px; max-width: 14ch; }
.fab .lede { margin-top: 16px; }
.feats { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feat { padding: 18px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 250ms ease, transform 250ms var(--ease); }
.feat:hover { box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-2px); }
.feat h3 { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.feat h3 .ic { color: var(--c, var(--cyan)); }
.feat p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.fab__vis { perspective: 1200px; }
.fab__vis .win { transform-origin: 50% 100%; }
.fab__vis .card__vis { min-height: 320px; border-radius: 0; box-shadow: none; padding: 22px; gap: 16px; font-size: 14px; }

/* Docs */
.docs { max-width: 1320px; margin: 0 auto; padding: 112px var(--pad) var(--sec); display: grid; grid-template-columns: 240px minmax(0, 1fr) 200px; gap: 48px; }
.docs__side { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 112px); overflow-y: auto; scrollbar-width: thin; }
.docs__search { position: relative; margin-bottom: 20px; }
.docs__search input { width: 100%; height: 40px; padding: 0 36px 0 12px; border-radius: 10px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); font-size: 14px; }
.docs__search input::placeholder { color: var(--dim); }
.docs__search input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--cyan); }
.docs__search kbd { position: absolute; right: 8px; top: 50%; translate: 0 -50%; font-family: var(--mono); font-size: 11.5px; color: var(--dim); padding: 2px 6px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line-2); }
.docs__group + .docs__group { margin-top: 20px; }
.docs__group p { font-size: 12.5px; color: var(--dim); margin: 0 0 6px 10px; }
.docs__nav a { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; font-size: 14px; color: var(--muted); transition: background-color 160ms ease, color 160ms ease; }
.docs__nav a .ic { color: var(--dim); }
.docs__nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.docs__nav a.is-on { color: var(--text); background: rgba(47,91,255,0.18); }
.docs__nav a.is-on .ic { color: var(--cyan); }
.docs__empty { font-size: 13.5px; color: var(--dim); padding: 6px 10px; }
.docs__toggle { display: none; }
.doc { min-width: 0; }
.doc__crumb { font-size: 13px; color: var(--dim); }
.doc h1 { margin-top: 10px; font-size: clamp(34px, 4vw, 48px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; scroll-margin-top: 100px; }
.doc h2 { display: flex; align-items: center; gap: 10px; margin-top: 64px; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; padding-top: 32px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.doc h2 .ic { color: var(--cyan); width: 22px; height: 22px; }
.doc h3 { margin-top: 28px; font-size: 17px; font-weight: 600; }
.doc p, .doc li { color: #ced2de; font-size: 16px; line-height: 1.7; }
.doc p { margin-top: 14px; max-width: 70ch; }
.doc ul.bul { margin-top: 12px; padding-left: 20px; list-style: disc; }
.doc ul.bul li { margin-top: 6px; }
.doc ul.bul li::marker { color: var(--dim); }
.doc a.link { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(0,191,255,0.45); text-underline-offset: 3px; }
.doc .lead { font-size: 18px; color: var(--muted); }
.callout { margin-top: 24px; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: rgba(0,191,255,0.08); box-shadow: inset 0 0 0 1px rgba(0,191,255,0.3); }
.callout .ic { color: var(--cyan); margin-top: 2px; }
.callout p { margin: 0; font-size: 15px; color: var(--text); }
.code { position: relative; margin-top: 18px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.code__bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; font-size: 12.5px; color: var(--dim); border-bottom: 1px solid var(--line); }
.code pre { padding: 16px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: #ced2de; }
.copy { background: none; border: 0; color: var(--muted); font-size: 12.5px; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.copy:hover { color: var(--text); background: rgba(255,255,255,0.07); }
.doc-cards { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.doc-card { padding: 18px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 200ms ease, transform 200ms var(--ease); }
.doc-card:hover { box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-2px); }
.doc-card .ic { color: var(--cyan); margin-bottom: 10px; width: 22px; height: 22px; }
.doc-card b { display: block; font-weight: 600; }
.doc-card span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.doc-steps { margin-top: 18px; counter-reset: s; }
.doc-steps li { position: relative; padding: 0 0 18px 44px; }
.doc-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.doc-steps b { color: var(--text); }
.doc__pager { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.doc__pager a { padding: 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 200ms ease; }
.doc__pager a:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.doc__pager small { display: block; color: var(--dim); font-size: 12.5px; }
.doc__pager a:last-child { text-align: right; }
.toc { position: sticky; top: 100px; align-self: start; font-size: 13.5px; }
.toc p { color: var(--dim); font-size: 12.5px; margin-bottom: 8px; }
.toc a { display: block; padding: 4px 0 4px 12px; color: var(--muted); border-left: 1px solid var(--line); transition: color 160ms ease, border-color 160ms ease; }
.toc a:hover { color: var(--text); }
.toc a.is-on { color: var(--text); border-left-color: var(--cyan); }

/* About page */
.statband { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) var(--sec); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.story-text { max-width: var(--max); margin: 0 auto; padding: var(--sec) var(--pad); display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 72px); align-items: start; border-top: 1px solid var(--line); }
.story-text .h2 { max-width: 12ch; }
.story-text p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.story-text p + p { margin-top: 16px; }
.story-text strong { color: var(--text); font-weight: 500; }
.directors { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.director { flex: 0 0 calc((100% - 4 * 12px) / 5); }
.director { border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.director__pic { aspect-ratio: 1; overflow: hidden; background: #dfe3ea; }
.director__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(1); transition: filter 400ms ease, transform 700ms var(--ease-expo); }
.director:hover img { filter: none; transform: scale(1.05); }
.director figcaption { padding: 12px 14px 14px; }
.director b { display: block; font-weight: 600; font-size: 15px; }
.director span { font-size: 13px; color: var(--muted); }
.awards { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.award { height: 120px; border-radius: 16px; background: #f4f5f8; display: grid; place-items: center; padding: 22px; transition: transform 250ms var(--ease); }
.award:hover { transform: translateY(-3px); }
.award img { max-height: 64px; max-width: 100%; width: auto; object-fit: contain; }
.award--tall img { max-height: 84px; }

/* Awards: logo on a white panel, name and year below */
.award-grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.award-card { margin: 0; padding: 10px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 250ms ease, transform 250ms var(--ease); }
.award-card:hover { box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-3px); }
.award-card__logo { height: 136px; border-radius: 12px; background: #fff; display: grid; place-items: center; padding: 22px 26px; }
.award-card__logo img { max-height: 76px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.award-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 12px 8px 4px; }
.award-card b { font-size: 15px; font-weight: 600; }
.award-card span { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: rgba(0,191,255,0.12); color: var(--cyan); font-variant-numeric: tabular-nums; }
.story-text + .sec { border-top: 1px solid var(--line); }

/* Contact page */
.page-hero--short { padding-bottom: clamp(56px, 6vw, 80px); }
.quick { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quick__i { align-items: center; }
.quick__i em { display: block; margin-top: 2px; font-style: normal; font-size: 13px; color: var(--dim); }
.quick__i:hover .tile__ic { background: var(--cyan); color: #04121a; }
.tile__ic { transition: background-color 200ms ease, color 200ms ease; }
.contact-form-sec { padding-bottom: 0; }
.form--wide { max-width: var(--max); margin: 0 auto; width: calc(100% - 2 * var(--pad)); padding: clamp(24px, 3vw, 40px); }
.form__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.form__head .topics { margin-top: 0; }
.fields--3 { grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.offices .head { margin-bottom: var(--head-gap); }
.office-grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.office { border-radius: var(--r); overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.office__map { aspect-ratio: 16 / 9; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.office__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: invert(0.9) hue-rotate(180deg) saturate(0.6) contrast(0.92); }
.office__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.office__k { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--cyan); }
.office h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.office address { font-style: normal; color: var(--muted); font-size: 15px; line-height: 1.6; }
.office__row { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.office__tel { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.office__tel .ic { color: var(--dim); }

/* Contact */
.contact { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) var(--sec); display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: stretch; }
.reach { display: flex; flex-direction: column; gap: 12px; }
.reach .tile { flex: 1 1 auto; align-items: center; }
.reach .tile .tile__ic { align-self: center; }
.tile { position: relative; overflow: hidden; isolation: isolate; display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 250ms ease; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 300ms ease; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(47,91,255,0.16), transparent 60%); }
.tile:hover::before { opacity: 1; }
a.tile:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.tile__ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(0,191,255,0.12); color: var(--cyan); }
.tile small { display: block; font-size: 13px; color: var(--dim); }
.tile b { display: block; font-weight: 500; font-size: 17px; margin-top: 2px; }
.tile address { font-style: normal; color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.tile .maplink { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13.5px; color: var(--cyan); }
.form { padding: 28px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 100px -40px rgba(7,55,201,0.5); }
.form h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; scroll-margin-top: 100px; }
.form > p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.topics { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.topic { height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(255,255,255,0.05); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); font-size: 13.5px; cursor: pointer; transition: background-color 180ms ease, color 180ms ease; }
.topic:hover { color: var(--text); }
.topic.is-on { background: var(--text); color: #0a0b10; box-shadow: none; }
.fields { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; color: var(--muted); }
.field label em { font-style: normal; color: var(--dim); }
.field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 0; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); font-size: 15px; transition: box-shadow 180ms ease; }
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--cyan), 0 0 0 4px rgba(0,191,255,0.12); }
.field input:user-invalid { box-shadow: inset 0 0 0 1px #ff6b6b; }
.form__foot { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form__foot small { color: var(--dim); font-size: 13px; max-width: 36ch; }
.form__done { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: rgba(42,227,143,0.1); box-shadow: inset 0 0 0 1px rgba(42,227,143,0.35); font-size: 14.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .docs { grid-template-columns: 220px minmax(0, 1fr); }
  .toc { display: none; }
  .director { flex-basis: calc((100% - 2 * 12px) / 3); }
}
@media (max-width: 1000px) {
  .app__body { grid-template-columns: 1fr; height: 460px; }
  .app__side, .app__insp { display: none; }
  .foot__grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot__brand, .foot__addr { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .own, .about-short, .deploy, .story-text, .contact { grid-template-columns: 1fr; }
  .fab { grid-template-columns: 1fr; }
  .fab:nth-of-type(odd) .fab__copy { order: 0; }
  .prod-grid { grid-template-columns: 1fr 1fr; }
  .prod--hub { grid-column: 1 / -1; grid-row: auto; }
  .prod--wide { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .prod--wide h3 { margin-top: 18px; }
  .prod--wide .prod__k { position: absolute; top: 24px; right: 24px; }
  .partner__in { flex-direction: column; align-items: flex-start; }
  .docs { grid-template-columns: 1fr; padding-top: 96px; gap: 0; }
  .docs__toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 46px; padding: 0 14px; margin-bottom: 20px; border-radius: 12px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); font-size: 14.5px; cursor: pointer; }
  .docs__side { position: static; max-height: none; display: none; margin-bottom: 24px; }
  .docs__side.is-open { display: block; }
  .statband { grid-template-columns: 1fr 1fr 1fr; }
  .quick { grid-template-columns: 1fr; }
  .fields--3 { grid-template-columns: 1fr 1fr; }
  .office-grid { grid-template-columns: 1fr; }
  .award-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .ftext { display: none; }
  .fdiag { aspect-ratio: 1; width: min(380px, 100%); margin: 0 auto; overflow: clip; }
  .fdiag__track { inset: auto; left: 50%; top: 50%; width: 278.7%; height: 141.9%; translate: -50% -50%; }
  .fnode { width: 17cqw; height: 17cqw; max-width: 66px; max-height: 66px; box-shadow: 0 0 0 5px var(--bg), 0 8px 26px -6px var(--c); }
  .fnode.is-on { box-shadow: 0 0 0 5px var(--bg), 0 0 0 8px color-mix(in srgb, var(--c) 55%, transparent), 0 10px 30px -6px var(--c); }
  .fnode[data-i="0"] { --x: 50% !important; --y: 12% !important; }
  .fnode[data-i="1"] { --x: 82.9% !important; --y: 31% !important; }
  .fnode[data-i="2"] { --x: 82.9% !important; --y: 69% !important; }
  .fnode[data-i="3"] { --x: 50% !important; --y: 88% !important; }
  .fnode[data-i="4"] { --x: 17.1% !important; --y: 69% !important; }
  .fnode[data-i="5"] { --x: 17.1% !important; --y: 31% !important; }
  .fdiag__core { width: 52%; }
  .fdiag-wrap { padding: 0; }
  .fdiag__core img { width: 88px; margin-bottom: 8px; }
  .fdiag__core span { display: none; }
  .fdiag-list { display: flex; flex-direction: column; gap: 8px; margin-top: 32px; text-align: left; }
  .fitem { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 250ms ease; }
  .fitem.is-on { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); }
  .fitem__ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--c); color: #fff; }
  .fitem b { display: block; font-size: 15.5px; font-weight: 600; }
  .fitem span span { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; line-height: 1.5; }
}
@media (max-width: 760px) {
  .hero { padding-top: 120px; }
  .prompt__hint { display: none; }
  .pmenu { width: min(330px, calc(100vw - 48px)); }
  .gen__body { grid-template-columns: 1fr; }
  .gen__log { border-right: 0; border-bottom: 1px solid var(--line); }
  .shots { margin-top: 56px; width: 128%; margin-bottom: -10%; }
  .shot { width: 82%; }
  .logos { padding: 36px 0 48px; }
  .marquee img { height: 30px; }
  .marquee__track { gap: 44px; }
  .app__body { height: 400px; }
  .node { width: 40%; padding: 9px 10px; }
  .node small { display: none; }
  .node:nth-child(2) { --x: 3% !important; --y: 6% !important; }
  .node:nth-child(3) { --x: 55% !important; --y: 6% !important; }
  .node:nth-child(4) { --x: 55% !important; --y: 36% !important; }
  .node:nth-child(5) { --x: 3% !important; --y: 40% !important; }
  .node:nth-child(6) { --x: 3% !important; --y: 72% !important; }
  .node:nth-child(7) { --x: 55% !important; --y: 72% !important; }
  .wires { display: none; }
  .own__list, .prod-grid, .rails, .feats, .fields { grid-template-columns: 1fr; }
  .story__grid { grid-template-columns: 1fr; gap: 0; }
  .story__vis { order: -1; margin-bottom: 20px; }
  .story__sticky { position: static; height: auto; }
  .evt { padding: 16px; }
  .evt__rows div { padding: 7px 0; font-size: 13px; }
  .step, .step:first-child { min-height: 0; padding: 18px; justify-content: flex-start; opacity: 1; background: var(--card); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 300ms ease; }
  .story__steps { display: flex; flex-direction: column; gap: 10px; }
  .step.is-on { box-shadow: inset 0 0 0 1px rgba(0,191,255,0.45); }
  .step h3 { font-size: 20px; }
  .head--row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cases__pin { overflow: visible; }
  .cases__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .cases__track::-webkit-scrollbar { display: none; }
  .case { width: 82vw; scroll-snap-align: center; }
  .seg__b { padding: 0 14px; }
  .deploy__vis { grid-template-columns: 1fr; }
  .num { padding: 20px 18px; }
  .team { grid-template-columns: 1fr 1fr; }
  .person:first-child { grid-column: 1 / -1; }
  .director { flex-basis: calc((100% - 12px) / 2); }
  .statband { grid-template-columns: 1fr; }
  .award-grid { gap: 10px; }
  .award-card__logo { height: 104px; padding: 16px; }
  .award-card__logo img { max-height: 58px; }
  .award-card figcaption { padding: 10px 4px 2px; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px; min-height: 0; }
  .award-card b { font-size: 14px; }
  .form { padding: 20px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__last { flex-direction: column; }
  .doc__pager { grid-template-columns: 1fr; }
  .page-hero { padding-top: 132px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .marquee__track, .ring__flow { animation: none; }
}
