/* ETHRAL · site vitrine. Design system + pages. */
@font-face { font-family: "Azonix"; src: url("/brand/fonts/azonix-v2.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Louis George"; src: url("/brand/fonts/louis-george-light.woff") format("woff"); font-weight: 300 400; font-display: swap; }
@font-face { font-family: "Louis George"; src: url("/brand/fonts/louis-george-bold.woff") format("woff"); font-weight: 600 800; font-display: swap; }

:root {
  --bg: #07060d;
  --bg-2: #0d0b18;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #f4f1ff;
  --muted: #a7a1c2;
  --faint: #6f6a8a;
  --violet: #7c3aed;
  --magenta: #b21cff;
  --indigo: #3b2bd9;
  --teal: #19a6ad;
  --grad: linear-gradient(120deg, #b21cff 0%, #6d28ff 38%, #3b2bd9 66%, #19a6ad 100%);
  --grad-soft: linear-gradient(120deg, rgba(178, 28, 255, 0.18), rgba(59, 43, 217, 0.14) 60%, rgba(25, 166, 173, 0.16));
  --radius: 22px;
  --radius-sm: 14px;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --display: "Azonix", "Louis George", system-ui, sans-serif;
  --text: "Louis George", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
strong, b { font-weight: 700; }
::selection { background: rgba(178, 28, 255, 0.45); color: #fff; }
:focus-visible { outline: 2px solid #c9a4ff; outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #fff; color: #07060d; font-weight: 700; transition: top .2s; }
.skip:focus { top: 16px; }

/* grain + ambient glows over the whole page */
body::before {
  content: "";
  position: fixed; inset: -50%;
  z-index: 60; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: overlay;
}

.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #cfc6ff;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--grad); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s, border-color .35s;
  isolation: isolate; overflow: hidden; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: #fff; color: #0b0915; box-shadow: 0 10px 40px -10px rgba(178, 28, 255, 0.6); }
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); opacity: 0; transition: opacity .4s; }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 50px -12px rgba(178, 28, 255, 0.85); }
.btn-primary:hover::before { opacity: 1; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: rgba(201, 164, 255, 0.6); background: rgba(124, 58, 237, 0.12); transform: translateY(-2px); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: #e6dcff; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- header: exact WEYVI navigation (in the page flow, over the hero) ---------- */
:root { --weyvi-ease: cubic-bezier(0.16, 1, 0.3, 1); --wv-muted: #aaa2ba; --wv-ink: #f7f3ff; --wv-line: #ffffff1b; }
.site-header { position: absolute; inset: 0 0 auto; z-index: 50; }
.nav { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; max-width: 1180px; margin: 0 auto; padding: clamp(1rem, 2vw, 1.4rem) clamp(1rem, 4vw, 2rem); }
.nav a { color: var(--wv-muted); text-decoration: none; }
.brand { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 0.55rem; min-width: 0; }
.brand img { width: 34px; height: auto; }
.brand span { font-family: "Louis George", system-ui, sans-serif; font-weight: 700; font-size: 15.68px; letter-spacing: 0.16em; color: var(--wv-muted); }
.nav-links { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.3rem); list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; font-size: 16px; font-weight: 400; transition: color .16s var(--weyvi-ease), opacity .16s var(--weyvi-ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 0.65rem; }
.nav-ghost { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.55rem; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--wv-line); background: rgba(255, 255, 255, 0.07); font-size: 16px; font-weight: 760; white-space: nowrap; }
.nav .nav-ghost { color: var(--wv-ink); }
.nav-cta { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.65rem; padding: 0 1rem; border-radius: 999px; font-size: 16px; font-weight: 780; white-space: nowrap; background: linear-gradient(135deg, rgba(172, 102, 255, 0.98), rgba(94, 76, 255, 0.98) 52%, rgba(28, 196, 224, 0.92)), #7b4dff; border: 1px solid rgba(222, 212, 255, 0.28); box-shadow: 0 14px 42px rgba(91, 67, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.25); transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, filter .16s ease; }
.nav .nav-cta, .mobile-menu .nav-cta { color: #fff; }
.nav-cta svg { width: 16px; height: 16px; }
.nav-cta:hover { filter: brightness(1.05); border-color: rgba(255, 255, 255, 0.38); box-shadow: 0 18px 54px rgba(91, 67, 255, 0.42), 0 0 34px rgba(28, 196, 224, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.nav-cta:active { filter: brightness(0.96); }
.nav a:focus-visible, .menu-btn:focus-visible { outline: 2px solid rgba(88, 213, 255, 0.72); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(88, 213, 255, 0.1); }

/* mobile: round hamburger + floating dropdown, as on WEYVI */
.menu-wrap { display: none; position: relative; }
.menu-btn { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 999px; border: 1px solid var(--wv-line); background: rgba(255, 255, 255, 0.08); color: var(--wv-ink); padding: 0; cursor: pointer; }
.hamburger { display: grid; place-items: center; gap: 4px; width: 18px; }
.hamburger i { display: block; width: 18px; height: 1.5px; border-radius: 99px; background: currentColor; transform-origin: 50% center; transition: transform .24s var(--weyvi-ease), opacity .24s var(--weyvi-ease); }
.menu-wrap[data-menu-phase="open"] .hamburger i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-wrap[data-menu-phase="open"] .hamburger i:nth-child(2) { opacity: 0; transform: scaleX(0.25); }
.menu-wrap[data-menu-phase="open"] .hamburger i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.mobile-menu { display: none; position: absolute; top: 3rem; right: 0; width: min(260px, 100vw - 2rem); gap: 0.35rem; padding: 0.75rem; border-radius: 22px; border: 1px solid var(--wv-line); background: rgb(8, 7, 16); box-shadow: 0 22px 70px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.035); }
.menu-wrap[data-menu-phase="open"] .mobile-menu, .menu-wrap[data-menu-phase="closing"] .mobile-menu { display: grid; }
.menu-wrap[data-menu-phase="open"] .mobile-menu { animation: wv-menu-in .24s var(--weyvi-ease) both; }
.menu-wrap[data-menu-phase="closing"] .mobile-menu { animation: wv-menu-out .24s var(--weyvi-ease) both; pointer-events: none; }
.menu-wrap[data-menu-phase="open"] .mobile-menu > * { animation: wv-menu-item-in .24s var(--weyvi-ease) 45ms both; }
.mobile-menu a { display: flex; align-items: center; min-height: 2.7rem; padding: 0.7rem 0.8rem; border-radius: 14px; color: var(--wv-ink); transition: color .16s var(--weyvi-ease), background .16s var(--weyvi-ease); }
.mobile-menu a:not(.nav-cta):hover { background: rgba(255, 255, 255, 0.06); }
.mobile-menu a[aria-current="page"] { color: #fff; }
.mobile-menu .nav-cta { justify-content: center; margin-top: 0.2rem; }
@keyframes wv-menu-in { from { opacity: 0; transform: translate3d(0, -8px, 0) scale(.975); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes wv-menu-out { from { opacity: 1; transform: none; filter: blur(0); } to { opacity: 0; transform: translate3d(0, -6px, 0) scale(.982); filter: blur(3px); } }
@keyframes wv-menu-item-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@media (max-width: 820px) {
  .nav-links, .nav-actions { display: none; }
  .menu-wrap { display: block; }
}
@media (max-width: 430px) { .nav { padding-inline: 0.85rem; } }

/* pointer glow following the mouse (as on WEYVI) */
.pointer-glow { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 20%), rgba(150, 60, 255, 0.14), transparent 60%); }
main, .site-footer { position: relative; z-index: 1; }
@media (pointer: coarse), (hover: none) { .pointer-glow { display: none; } }

/* back to top: ETHRAL style (rounded square like the logo pieces, fills up as you scroll) */
.back-to-top { --p: 0; position: fixed; right: max(1.2rem, env(safe-area-inset-right)); bottom: max(1.2rem, env(safe-area-inset-bottom)); z-index: 30; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 14px; color: #fff; cursor: pointer; isolation: isolate; overflow: hidden;
  background: linear-gradient(#0d0b18, #0d0b18) padding-box, linear-gradient(135deg, #b21cff, #3b2bd9 55%, #19a6ad) border-box; border: 1px solid transparent;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(178, 28, 255, 0.18);
  opacity: 0; pointer-events: none; transform: translateY(14px) rotate(-8deg); transition: opacity .25s, transform .45s var(--weyvi-ease), box-shadow .3s; }
.btt-fill { position: absolute; inset: 0; z-index: -1; transform-origin: bottom; transform: scaleY(var(--p)); background: linear-gradient(0deg, rgba(178, 28, 255, 0.55), rgba(59, 43, 217, 0.35) 60%, rgba(25, 166, 173, 0.3)); transition: transform .15s linear; }
.back-to-top svg { width: 18px; height: 18px; transition: transform .35s var(--weyvi-ease); }
.back-to-top[data-visible="true"] { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { box-shadow: 0 18px 46px rgba(0, 0, 0, 0.4), 0 0 38px rgba(178, 28, 255, 0.4); }
.back-to-top:hover svg { transform: translateY(-3px); }
.back-to-top:hover .btt-fill { transform: scaleY(1); }
.back-to-top:focus-visible { outline: 2px solid rgba(214, 150, 255, 0.9); outline-offset: 3px; }
@media (max-width: 640px) { .back-to-top { width: 42px; height: 42px; border-radius: 12px; right: max(.9rem, env(safe-area-inset-right)); bottom: max(.9rem, env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .back-to-top, .btt-fill { transition: opacity .12s linear; } }

/* ---------- custom cursor: same as WEYVI, ring tinted with the ETHRAL magenta on links ---------- */
@media (pointer: fine) {
  html.weyvi-custom-cursor-enabled body, html.weyvi-custom-cursor-enabled body * { cursor: none !important; }
  html.weyvi-custom-cursor-enabled textarea:not([data-weyvi-resize-probe]) { resize: none !important; }
  html.weyvi-custom-cursor-enabled textarea[data-weyvi-resize]:not(:disabled):not([readonly]) {
    background-image: linear-gradient(135deg, transparent 0 48%, rgba(255, 255, 255, 0.34) 48% 56%, transparent 56% 70%, rgba(255, 255, 255, 0.34) 70% 78%, transparent 78%);
    background-position: right 5px bottom 5px; background-repeat: no-repeat; background-size: 10px 10px;
  }
}
.weyvi-global-cursor { position: fixed; inset: 0; z-index: 2147483000; opacity: 0; pointer-events: none; transition: opacity 120ms ease; }
.weyvi-global-cursor.is-visible { opacity: 1; }
.weyvi-global-cursor-dot, .weyvi-global-cursor-ring { position: fixed; left: 0; top: 0; pointer-events: none; will-change: transform, width, height, border-color, background; }
.weyvi-global-cursor-dot { width: 6px; height: 6px; border-radius: 999px; background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.34), 0 0 22px rgba(123,77,255,.18); }
.weyvi-global-cursor-ring { width: 30px; height: 30px; border-radius: 999px; border: 1px solid rgba(255,255,255,.64); background: rgba(123,77,255,.035); box-shadow: 0 0 18px rgba(123,77,255,.12);
  transition: width 180ms var(--weyvi-ease), height 180ms var(--weyvi-ease), border-color 180ms var(--weyvi-ease), background 180ms var(--weyvi-ease), box-shadow 180ms var(--weyvi-ease), border-radius 180ms var(--weyvi-ease); }
.weyvi-global-cursor.is-interactive .weyvi-global-cursor-ring { width: 42px; height: 42px; background: rgba(178, 28, 255, .1); border-color: rgba(206, 110, 255, .85); box-shadow: 0 0 0 1px rgba(25, 166, 173, .14), 0 0 24px rgba(178, 28, 255, .3); }
.weyvi-global-cursor.is-interactive .weyvi-global-cursor-dot { background: #f1d4ff; }
.weyvi-global-cursor.is-text .weyvi-global-cursor-ring { width: 2px; height: 22px; border: 0; border-radius: 2px; background: rgba(255,255,255,.78); box-shadow: 0 0 12px rgba(123,77,255,.24); }
.weyvi-global-cursor.is-text .weyvi-global-cursor-dot { opacity: 0; }
.weyvi-global-cursor-icon { position: fixed; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; opacity: 0; pointer-events: none; transition: opacity 140ms var(--weyvi-ease); will-change: transform; }
.weyvi-global-cursor-icon svg { grid-area: 1 / 1; opacity: 0; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; filter: drop-shadow(0 0 1.5px rgba(5, 4, 12, 0.95)) drop-shadow(0 0 8px rgba(123, 77, 255, 0.55)); transition: opacity 140ms var(--weyvi-ease), transform 180ms var(--weyvi-ease); }
.weyvi-global-cursor[class*="is-resize-"] .weyvi-global-cursor-icon, .weyvi-global-cursor.is-move .weyvi-global-cursor-icon, .weyvi-global-cursor.is-grab .weyvi-global-cursor-icon, .weyvi-global-cursor.is-grabbing .weyvi-global-cursor-icon { opacity: 1; }
.weyvi-global-cursor[class*="is-resize-"] .weyvi-cursor-arrows, .weyvi-global-cursor.is-move .weyvi-cursor-move, .weyvi-global-cursor.is-grab .weyvi-cursor-move, .weyvi-global-cursor.is-grabbing .weyvi-cursor-move { opacity: 1; }
.weyvi-global-cursor.is-resize-ew .weyvi-cursor-arrows { transform: rotate(0deg); }
.weyvi-global-cursor.is-resize-ns .weyvi-cursor-arrows { transform: rotate(90deg); }
.weyvi-global-cursor.is-resize-nwse .weyvi-cursor-arrows { transform: rotate(45deg); }
.weyvi-global-cursor.is-resize-nesw .weyvi-cursor-arrows { transform: rotate(-45deg); }
.weyvi-global-cursor.is-grab .weyvi-cursor-move { transform: scale(0.9); }
.weyvi-global-cursor.is-grabbing .weyvi-cursor-move { transform: scale(0.78); }
.weyvi-global-cursor[class*="is-resize-"] .weyvi-global-cursor-dot, .weyvi-global-cursor.is-move .weyvi-global-cursor-dot, .weyvi-global-cursor.is-grab .weyvi-global-cursor-dot, .weyvi-global-cursor.is-grabbing .weyvi-global-cursor-dot { opacity: 0; }
.weyvi-global-cursor[class*="is-resize-"] .weyvi-global-cursor-ring, .weyvi-global-cursor.is-move .weyvi-global-cursor-ring, .weyvi-global-cursor.is-grab .weyvi-global-cursor-ring { width: 38px; height: 38px; background: rgba(123,77,255,.1); border-color: rgba(151,114,255,.55); box-shadow: 0 0 22px rgba(123,77,255,.2); }
.weyvi-global-cursor.is-grabbing .weyvi-global-cursor-ring { width: 30px; height: 30px; background: rgba(123,77,255,.2); border-color: rgba(151,114,255,.85); }
.weyvi-global-cursor.is-disabled .weyvi-global-cursor-ring { background: transparent; border-color: rgba(255,255,255,.28); border-style: dashed; box-shadow: none; }
.weyvi-global-cursor.is-disabled .weyvi-global-cursor-dot { background: rgba(255,255,255,.45); box-shadow: none; }
@media (pointer: coarse), (hover: none) { .weyvi-global-cursor { display: none !important; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 72% 45%, rgba(109, 40, 255, 0.28), transparent 70%),
    radial-gradient(35% 40% at 88% 20%, rgba(25, 166, 173, 0.22), transparent 70%),
    radial-gradient(40% 45% at 60% 85%, rgba(178, 28, 255, 0.18), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(59, 43, 217, 0.18), transparent 70%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 180px; z-index: -1; background: linear-gradient(transparent, var(--bg)); }
.hero-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero-poster { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: 0; transition: opacity .6s; }
.no-webgl .hero-poster { opacity: 1; }
.hero-content { position: relative; padding: 140px 0 120px; max-width: 640px; }
.hero .lead { max-width: 36em; }
@media (min-width: 901px) { .hero .lead { max-width: min(36em, 50vw); } }
.hero h1 { font-size: clamp(44px, 6.4vw, 92px); letter-spacing: -0.035em; line-height: 0.96; margin: 26px 0 28px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.is-loaded .hero h1 .line > span { transform: none; }
.hero h1 .line:nth-child(2) > span { transition-delay: .1s; }
.hero h1 .line:nth-child(3) > span { transition-delay: .2s; }
.hero .lead { margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-fade { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease) .45s, transform 1s var(--ease) .45s; }
.is-loaded .hero-fade { opacity: 1; transform: none; }
.hero-meta { position: absolute; left: 0; right: 0; bottom: 36px; display: flex; justify-content: space-between; align-items: end; color: var(--faint); font-size: 13px; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 10px; letter-spacing: 0.24em; }
.scroll-cue i { position: relative; width: 1px; height: 46px; background: var(--line-2); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }
@media (max-width: 900px) {
  .hero { align-items: end; }
  .hero-content { padding: 60svh 0 96px; }
  .hero h1 { font-size: clamp(40px, 11vw, 60px); margin: 18px 0 20px; }
  .hero-meta .coords { display: none; }
}

/* page hero (inner pages) */
.page-hero { position: relative; padding: 180px 0 90px; overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 70% at 80% 10%, rgba(109, 40, 255, 0.25), transparent 70%), radial-gradient(30% 50% at 95% 50%, rgba(25, 166, 173, 0.16), transparent 70%);
}
.page-hero h1 { font-size: clamp(42px, 6vw, 84px); letter-spacing: -0.035em; margin: 22px 0 26px; max-width: 16ch; }
.page-hero .mark-bg { position: absolute; right: -4%; top: 50%; width: min(46vw, 620px); transform: translateY(-46%) rotate(-8deg); opacity: 0.07; z-index: -1; }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: clamp(90px, 12vw, 170px) 0; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(44px, 6vw, 80px); max-width: 780px; }
.section-head h2 { font-size: clamp(36px, 5vw, 68px); letter-spacing: -0.03em; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* marquee */
.marquee { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; background: rgba(255,255,255,.012); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 56px; font-family: var(--display); font-size: clamp(15px, 1.6vw, 20px); letter-spacing: 0.16em; color: #d7cffb; white-space: nowrap; }
.marquee span::after { content: ""; width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); background: var(--grad); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* manifesto: words light up while scrolling */
.manifesto .wrap > p { font-size: clamp(30px, 4.3vw, 60px); line-height: 1.14; font-weight: 700; letter-spacing: -0.025em; max-width: 22ch; margin: 0; }
.manifesto .w { color: rgba(244, 241, 255, 0.14); transition: color .5s; }
.manifesto .w.on { color: var(--ink); }
.manifesto .w.hl.on { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.manifesto-side { display: grid; gap: 18px; align-content: end; color: var(--muted); max-width: 42ch; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .cards.three { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .cards, .cards.four { grid-template-columns: 1fr; } }
.card {
  --mx: 50%; --my: 50%;
  position: relative; padding: clamp(26px, 3vw, 38px); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transform-style: preserve-3d; transition: border-color .4s, transform .5s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(150, 90, 255, 0.2), transparent 45%);
}
.card:hover { border-color: rgba(190, 150, 255, 0.35); }
.card:hover::before { opacity: 1; }
.card .num { display: block; margin-top: 26px; font-family: var(--display); font-size: 12px; letter-spacing: 0.2em; color: var(--faint); }
.card .num + h3 { margin-top: 8px; }
.card h3 { font-size: clamp(24px, 2.2vw, 30px); margin: 18px 0 14px; letter-spacing: -0.02em; }
.card p { color: var(--muted); margin: 0; }
.card ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; color: #d9d2f5; font-size: 15px; }
.card li { display: flex; gap: 10px; align-items: baseline; }
.card li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 2px; transform: translateY(-2px) rotate(45deg); background: var(--grad); }
.card .icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(190,150,255,.25); }
.card .icon svg { width: 26px; height: 26px; color: #efe7ff; }
.card.big { min-height: 320px; display: flex; flex-direction: column; }
.card.big .card-foot { margin-top: auto; padding-top: 26px; }

/* agent network */
.agent-stage { position: relative; aspect-ratio: 1 / 0.9; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(70% 70% at 50% 50%, rgba(109, 40, 255, 0.16), transparent 70%), rgba(255,255,255,.015); overflow: hidden; }
.agent-stage canvas { width: 100%; height: 100%; }
.agent-legend { position: absolute; left: 20px; bottom: 18px; right: 20px; display: flex; justify-content: space-between; font-family: var(--display); font-size: 10px; letter-spacing: 0.2em; color: var(--faint); }
.loop-steps { display: grid; gap: 14px; margin-top: 34px; }
.loop-step { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.02); transition: border-color .4s, background-color .4s; }
.loop-step.is-active { border-color: rgba(190, 150, 255, 0.45); background: rgba(124, 58, 237, 0.1); }
.loop-step b { font-family: var(--display); font-size: 12px; letter-spacing: 0.16em; color: #cbb8ff; padding-top: 4px; font-weight: 400; }
.loop-step h3 { font-size: 19px; margin-bottom: 4px; }
.loop-step p { margin: 0; color: var(--muted); font-size: 15px; }

/* WEYVI showcase */
.weyvi-band { position: relative; border-radius: 34px; padding: clamp(28px, 5vw, 70px); overflow: hidden; isolation: isolate; border: 1px solid rgba(190, 150, 255, 0.2); background: radial-gradient(80% 90% at 100% 0%, rgba(25, 166, 173, 0.18), transparent 60%), radial-gradient(70% 80% at 0% 100%, rgba(178, 28, 255, 0.2), transparent 60%), #0b0916; }
.weyvi-band .split { align-items: center; }
.weyvi-logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); letter-spacing: 0.18em; font-size: 15px; }
.weyvi-logo img { width: 40px; height: 40px; }
.weyvi-band h2 { font-size: clamp(34px, 4.4vw, 58px); letter-spacing: -0.03em; margin: 24px 0 20px; }
.feature-list { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: baseline; color: #ddd5f7; }
.feature-list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px; transform: translateY(-2px) rotate(45deg); background: var(--grad); }

.studio {
  position: relative; border-radius: 22px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(13, 11, 24, 0.9); box-shadow: 0 50px 120px -40px rgba(109, 40, 255, 0.6), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden; transform: perspective(1400px) rotateY(-9deg) rotateX(4deg); transition: transform 1s var(--ease);
}
.studio:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.studio-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.studio-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.studio-bar em { margin-left: 10px; font-style: normal; }
.studio-body { display: grid; grid-template-columns: 0.9fr 1.3fr; min-height: 380px; }
.studio-chat { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-right: 1px solid var(--line); }
.bubble { max-width: 92%; padding: 11px 14px; border-radius: 16px; font-size: 13px; line-height: 1.45; opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.bubble.me { align-self: flex-end; background: linear-gradient(135deg, #6d28ff, #3b2bd9); color: #fff; border-bottom-right-radius: 5px; }
.bubble.ai { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-bottom-left-radius: 5px; color: #e4ddff; }
.bubble.ai img { width: 22px; height: 22px; flex: none; }
.bubble.show { opacity: 1; transform: none; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: #cbb8ff; animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { opacity: .2; transform: translateY(-2px); } }
.studio-preview { position: relative; padding: 16px; background: linear-gradient(180deg, #120f22, #0c0a17); }
.site { height: 100%; border-radius: 12px; overflow: hidden; background: #f7f3ee; color: #1c1612; position: relative; }
.site-nav { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 11px; font-weight: 700; }
.site-nav span:last-child { display: flex; gap: 10px; font-weight: 400; opacity: .7; }
.site-hero { padding: 18px 16px 14px; background: linear-gradient(135deg, #2b1d14, #6b3a24); color: #fbeee0; }
.site-hero b { display: block; font-size: 18px; line-height: 1.1; max-width: 12ch; letter-spacing: -0.01em; }
.site-hero small { display: block; margin-top: 8px; opacity: .8; font-size: 10px; }
.site-hero i { display: inline-block; margin-top: 12px; padding: 6px 12px; border-radius: 99px; background: #fbeee0; color: #2b1d14; font-style: normal; font-size: 10px; font-weight: 700; }
.site-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 16px 16px; }
.site-grid div { height: 64px; border-radius: 8px; background: linear-gradient(135deg, #e7d8c9, #cdb39c); }
.site-grid div:nth-child(2) { background: linear-gradient(135deg, #d9c2ab, #a97c5d); }
.site-grid div:nth-child(3) { background: linear-gradient(135deg, #efe3d6, #d8bfa6); }
.site .build { transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s; }
.studio:not(.built) .site .build { opacity: 0; transform: translateY(12px); filter: blur(6px); }
.site .build:nth-child(2) { transition-delay: .15s; } .site .build:nth-child(3) { transition-delay: .3s; }
.skeleton { position: absolute; inset: 0; display: grid; gap: 10px; align-content: start; padding: 16px; background: #f7f3ee; transition: opacity .6s; }
.skeleton div { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #e8e1d8, #f4efe8, #e8e1d8); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton div:nth-child(1) { width: 40%; } .skeleton div:nth-child(2) { height: 90px; } .skeleton div:nth-child(3) { width: 70%; }
.studio.built .skeleton { opacity: 0; pointer-events: none; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (max-width: 700px) {
  .studio { transform: none; }
  .studio-body { grid-template-columns: 1fr; }
  .studio-chat { border-right: 0; border-bottom: 1px solid var(--line); }
  .studio-preview { min-height: 280px; }
}

/* method timeline */
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.timeline .progress { position: absolute; left: 27px; top: 10px; width: 1px; height: 0; background: var(--grad); box-shadow: 0 0 18px rgba(178, 28, 255, 0.8); }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: clamp(20px, 3vw, 40px); padding: 26px 0; }
.step .dot { position: relative; z-index: 1; width: 55px; height: 55px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2); font-family: var(--display); font-size: 12px; color: #cbb8ff; transition: border-color .5s, box-shadow .5s; }
.step.is-active .dot { border-color: rgba(201, 164, 255, 0.9); box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.14), 0 0 40px rgba(178, 28, 255, 0.4); }
.step h3 { font-size: clamp(24px, 2.6vw, 34px); margin: 8px 0 10px; }
.step p { color: var(--muted); max-width: 56ch; margin: 0; }
.step .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: #cfc7ea; background: rgba(255,255,255,.02); }

/* commitments */
.commit { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.commit > div { padding: clamp(24px, 3vw, 36px); border-right: 1px solid var(--line); background: rgba(255,255,255,.015); }
.commit > div:last-child { border-right: 0; }
.commit h3 { font-size: 20px; margin: 18px 0 10px; }
.commit p { color: var(--muted); font-size: 15px; margin: 0; }
.commit svg { width: 28px; height: 28px; color: #d9c8ff; }
@media (max-width: 1000px) { .commit { grid-template-columns: 1fr 1fr; } .commit > div:nth-child(2) { border-right: 0; } .commit > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 600px) { .commit { grid-template-columns: 1fr; } .commit > div { border-right: 0; border-bottom: 1px solid var(--line); } .commit > div:last-child { border-bottom: 0; } }

/* big CTA */
.cta { position: relative; padding: clamp(110px, 14vw, 200px) 0; text-align: center; overflow: hidden; isolation: isolate; }
.cta canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(50% 60% at 50% 50%, rgba(109, 40, 255, 0.28), transparent 70%); }
.cta h2 { font-size: clamp(44px, 7vw, 108px); letter-spacing: -0.04em; line-height: .95; max-width: 14ch; margin: 24px auto 26px; }
.cta .lead { margin: 0 auto 40px; }
.cta .hero-actions { justify-content: center; }

/* stats-free facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fact { padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.fact b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(18px, 1.8vw, 22px); letter-spacing: .06em; margin-bottom: 8px; }
.fact span { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* image frames (3D stills) */
.visual { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: #08070f; }
.visual img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease); }
.visual:hover img { transform: scale(1.08); }
.visual figcaption { position: absolute; left: 20px; bottom: 16px; font-family: var(--display); font-size: 10px; letter-spacing: .2em; color: rgba(255,255,255,.6); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.02); transition: border-color .3s, background-color .3s; }
.faq details[open] { border-color: rgba(190, 150, 255, 0.35); background: rgba(124, 58, 237, 0.06); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 26px; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 22px; margin: 0; color: var(--muted); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside { display: grid; gap: 18px; }
.contact-aside .card { padding: 26px; }
.contact-aside a.mail { font-size: clamp(20px, 2vw, 26px); font-weight: 700; word-break: break-all; }
form.contact { display: grid; gap: 16px; padding: clamp(24px, 3.5vw, 44px); border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: 14px; color: #ddd6f6; }
.field .opt { font-weight: 300; color: var(--faint); }
.field input, .field textarea, .field select {
  width: 100%; padding: 15px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(7, 6, 13, 0.6);
  color: var(--ink); font: inherit; font-size: 16px; transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: rgba(190, 150, 255, 0.8); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23cbb8ff' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field select option { background: #0d0b18; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { font-size: 13px; color: var(--faint); line-height: 1.55; }
.notice a { color: #cbb8ff; text-decoration: underline; text-underline-offset: 3px; }
.form-status { display: none; padding: 14px 16px; border-radius: 14px; font-size: 15px; }
.form-status.ok { display: block; background: rgba(25, 166, 173, 0.14); border: 1px solid rgba(25, 166, 173, 0.45); }
.form-status.err { display: block; background: rgba(255, 90, 120, 0.1); border: 1px solid rgba(255, 90, 120, 0.4); }
form.contact .btn { justify-self: start; }
form.contact .btn[disabled] { opacity: .6; cursor: progress; }

/* legal pages */
.legal { padding: 160px 0 100px; }
.legal-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .legal-grid { grid-template-columns: 1fr; } .legal-toc { position: static !important; } }
.legal h1 { font-size: clamp(38px, 5vw, 64px); margin: 18px 0 14px; letter-spacing: -0.03em; }
.legal .updated { color: var(--faint); font-size: 14px; margin-bottom: 40px; }
.legal-toc { position: sticky; top: 110px; display: grid; gap: 4px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.02); font-size: 14px; }
.legal-toc b { font-family: var(--display); font-weight: 400; font-size: 10px; letter-spacing: .2em; color: var(--faint); margin-bottom: 8px; }
.legal-toc a { padding: 6px 8px; border-radius: 8px; color: #cfc7ea; }
.legal-toc a:hover { background: rgba(255,255,255,.05); color: #fff; }
.prose { max-width: 76ch; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 48px 0 16px; letter-spacing: -0.015em; scroll-margin-top: 110px; }
.prose h3 { font-size: 18px; margin: 28px 0 10px; }
.prose p, .prose li { color: #cfc8e6; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose a { color: #d6c4ff; text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 10px 0 24px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: #fff; font-weight: 700; background: rgba(255,255,255,.03); }
.prose td { color: #cfc8e6; }
.table-scroll { overflow-x: auto; }
.id-card { display: grid; grid-template-columns: 200px 1fr; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin: 10px 0 20px; }
.id-card dt, .id-card dd { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.id-card dt { color: var(--faint); font-size: 14px; background: rgba(255,255,255,.02); }
.id-card dd { color: #ece7ff; }
@media (max-width: 600px) { .id-card { grid-template-columns: 1fr; } .id-card dt { border-bottom: 0; padding-bottom: 2px; } }

/* footer */
.site-footer { position: relative; border-top: 1px solid var(--line); padding: 80px 0 40px; background: linear-gradient(180deg, transparent, rgba(59, 43, 217, 0.06)); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.footer-top p { color: var(--muted); font-size: 15px; max-width: 36ch; margin-top: 18px; }
.footer-col h4 { font-family: var(--display); font-weight: 400; font-size: 11px; letter-spacing: .2em; color: var(--faint); margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: #d8d1f1; font-size: 15px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-word { font-family: var(--display); font-size: clamp(64px, 17vw, 260px); letter-spacing: .06em; line-height: 1; padding-top: .08em; margin: 70px 0 30px; text-align: center; background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; color: var(--faint); font-size: 13px; border-top: 1px solid var(--line); padding-top: 24px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a:hover { color: #fff; }

/* 404 */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 20px; }
.lost h1 { font-family: var(--display); font-weight: 400; font-size: clamp(90px, 20vw, 220px); letter-spacing: .08em; line-height: 1; }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="scale"] { transform: scale(.96); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  .manifesto .w { color: var(--ink); }
}

@media (max-width: 600px) { .agent-legend { display: none; } .agent-stage { aspect-ratio: 1 / 1; } }

/* ---------- expertise illustrations (HTML/CSS, illustrative only) ---------- */
.ill-frame { padding: clamp(18px, 2.4vw, 30px); background: radial-gradient(80% 80% at 80% 0%, rgba(109, 40, 255, 0.18), transparent 60%), radial-gradient(60% 70% at 0% 100%, rgba(25, 166, 173, 0.12), transparent 60%), #0b0916; }
.ill-frame figcaption { position: static; margin-top: 16px; }
.ill { position: relative; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(10, 9, 20, 0.92); box-shadow: 0 40px 90px -40px rgba(109, 40, 255, 0.55); font-size: 14px; overflow: hidden; }
.ill b { font-weight: 700; }
.ill small { color: var(--faint); font-size: 12px; }

/* agent run */
.ill-agent { padding: 20px; }
.ill-head { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #efe9ff; }
.ill-head .live { width: 9px; height: 9px; border-radius: 50%; background: #3ee6a2; box-shadow: 0 0 0 4px rgba(62, 230, 162, 0.15); animation: live 1.6s infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 7px rgba(62, 230, 162, 0.04); } }
.ill-tag { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: rgba(124, 58, 237, 0.18); color: #d6c4ff; font-size: 12px; font-weight: 700; }
.ill-goal { margin: 16px 0; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: #d9d2f5; }
.ill-goal b { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.ill-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ill-steps li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); color: #cfc8e6; opacity: .45; transition: opacity .5s, border-color .5s, background-color .5s; transition-delay: calc(var(--i) * .9s + .3s); }
.ill-steps .st { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; transition: background-color .4s, border-color .4s; transition-delay: inherit; }
.ill-steps .st::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .4s var(--ease); transition-delay: inherit; }
.ill-steps .tl { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.05); color: var(--muted); }
.in .ill-steps li { opacity: 1; }
.in .ill-steps li:not(:nth-child(4)) { border-color: rgba(190, 150, 255, 0.3); background: rgba(124, 58, 237, 0.08); }
.in .ill-steps li:not(:nth-child(4)) .st { background: linear-gradient(135deg, #b21cff, #3b2bd9); border-color: transparent; }
.in .ill-steps li:not(:nth-child(4)) .st::after { transform: rotate(45deg) scale(1); }
.in .ill-steps li:nth-child(3) .st { background: none; border-color: #c9a4ff; border-top-color: transparent; animation: spin 1s linear infinite; }
.in .ill-steps li:nth-child(3) .st::after { transform: scale(0); }
@keyframes spin { to { transform: rotate(360deg); } }
.ill-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--faint); font-size: 12px; }
.ill-foot svg { width: 15px; height: 15px; }

/* product app */
.ill-app { display: grid; grid-template-columns: 56px 1fr; min-height: 330px; background: #0d0b18; }
.ill-app aside { display: grid; align-content: start; justify-items: center; gap: 12px; padding: 16px 0; border-right: 1px solid var(--line); background: rgba(255,255,255,.02); }
.ill-app aside i { width: 22px; height: 22px; border-radius: 7px; background: rgba(255,255,255,.07); }
.ill-app aside i.on { background: linear-gradient(135deg, #b21cff, #3b2bd9); }
.ill-logo { width: 26px; height: 26px; border-radius: 8px; background: url("/brand/ethral-mark.svg") center / 70% no-repeat, rgba(255,255,255,.06); margin-bottom: 8px; }
.ill-user { margin-top: 90px; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #19a6ad, #6d28ff); }
.ill-main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.ill-top { display: flex; align-items: center; gap: 10px; }
.ill-top b { color: #efe9ff; margin-right: auto; }
.ill-search { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--faint); font-size: 12px; }
.ill-btn { padding: 6px 12px; border-radius: 999px; background: #fff; color: #0b0915; font-size: 12px; font-weight: 700; }
.ill-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ill-kpis div { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.025); display: grid; gap: 10px; }
.ill-kpis em { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.06); position: relative; overflow: hidden; }
.ill-kpis em::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 3px; background: var(--grad); transition: width 1.2s var(--ease) .4s; }
.in .ill-kpis em::after { width: var(--w); }
.ill-chart { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.ill-chart .bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; margin-top: 10px; }
.ill-chart .bars i { flex: 1; height: 4%; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #b21cff, #3b2bd9 70%, rgba(25,166,173,.8)); transition: height 1s var(--ease); transition-delay: calc(var(--i) * 60ms + .3s); }
.in .ill-chart .bars i { height: var(--h); }
.ill-rows { display: grid; gap: 8px; }
.ill-rows span { height: 10px; border-radius: 5px; background: rgba(255,255,255,.05); }
.ill-rows span:nth-child(2) { width: 80%; } .ill-rows span:nth-child(3) { width: 62%; }

/* integration flow */
.ill-flow { padding: 18px 12px 14px; }
.ill-flow svg { width: 100%; height: auto; overflow: visible; }
.ill-flow rect { fill: rgba(255,255,255,.04); stroke: rgba(190,150,255,.35); }
.ill-flow text { fill: #e6dfff; font-family: var(--text); font-size: 15px; font-weight: 700; text-anchor: middle; }
.ill-flow text.core { fill: #fff; font-family: var(--display); font-size: 13px; font-weight: 400; letter-spacing: .1em; }
.ill-flow .flow { fill: none; stroke: rgba(178, 28, 255, 0.55); stroke-width: 1.6; stroke-dasharray: 5 7; animation: flow 1.6s linear infinite; animation-delay: calc(var(--i) * -.3s); }
.ill-flow .flow.out { stroke: rgba(25, 166, 173, 0.6); }
@keyframes flow { to { stroke-dashoffset: -24; } }
.ill-flow .core-halo { fill: rgba(109, 40, 255, 0.22); animation: halo 2.4s ease-in-out infinite; transform-origin: 320px 150px; }
@keyframes halo { 50% { transform: scale(1.18); opacity: .5; } }
.ill-caption { display: flex; justify-content: space-between; padding: 6px 18px 0; font-family: var(--display); font-size: 10px; letter-spacing: .2em; color: var(--faint); text-transform: uppercase; }

/* design board */
.ill-design { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto auto; gap: 12px; padding: 14px; background: #0d0b18; }
.ill-swatches { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ill-swatches div { display: grid; gap: 4px; }
.ill-swatches span { height: 58px; border-radius: 10px; background: var(--c); border: 1px solid var(--line); }
.ill-swatches small { color: #e6dfff; font-weight: 700; font-size: 12px; }
.ill-swatches code { font-size: 10px; color: var(--faint); font-family: ui-monospace, monospace; }
.ill-type { display: grid; grid-template-columns: auto auto; align-content: center; gap: 4px 16px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.ill-type .aa-d { font-family: var(--display); font-size: 40px; line-height: 1; }
.ill-type .aa-t { font-size: 44px; font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ill-type small { grid-column: 1 / -1; }
.ill-ui { display: grid; gap: 8px; align-content: center; justify-items: start; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.ill-ui .p { padding: 7px 14px; border-radius: 999px; background: linear-gradient(135deg, #ac66ff, #5e4cff 52%, #1cc4e0); color: #fff; font-weight: 700; font-size: 12px; }
.ill-ui .g { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: #efe9ff; font-size: 12px; }
.ill-ui .tg { width: 40px; height: 22px; border-radius: 999px; background: linear-gradient(135deg, #b21cff, #3b2bd9); position: relative; }
.ill-ui .tg i { position: absolute; right: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.ill-3d { grid-column: 1 / -1; position: relative; height: 130px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.ill-3d img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 45%; transform: scale(1.5); transform-origin: 72% 45%; }
.ill-3d small { position: absolute; left: 12px; bottom: 10px; font-family: var(--display); letter-spacing: .18em; font-size: 10px; color: rgba(255,255,255,.7); }
@media (max-width: 520px) { .ill-design { grid-template-columns: 1fr; } .ill-swatches { grid-template-columns: repeat(5, 1fr); } .ill-swatches code { display: none; } .ill-kpis small { font-size: 10px; } .ill-search { display: none; } }

/* official logo frame (company page) */
.logo-frame { background: #0b0916; }
.logo-frame img { object-fit: contain; transform: none; }
.logo-frame:hover img { transform: scale(1.02); }

/* ---------- phone fixes ---------- */
@media (max-width: 900px) {
  .sticky-head { position: static !important; }
  .facts.three { grid-template-columns: 1fr 1fr !important; }
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head h2, .page-hero h1 { overflow-wrap: anywhere; }
  .split { gap: 36px; }
  .manifesto .wrap > p { font-size: clamp(28px, 8vw, 40px); }
  .page-hero { padding: 130px 0 56px; }
  .page-hero .mark-bg { width: 70vw; right: -20vw; }
  .cta { padding: 96px 0; }
  .cta h2 { font-size: clamp(40px, 12vw, 64px); }
  .weyvi-band { border-radius: 26px; }
  .footer-word { margin: 48px 0 24px; }
}
@media (max-width: 520px) {
  .facts.three { grid-template-columns: 1fr !important; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .card { padding: 24px; }
  .card.big { min-height: 0; }
  .loop-step { grid-template-columns: 40px 1fr; padding: 16px; }
  .step { grid-template-columns: 48px 1fr; gap: 18px; }
  .step .dot { width: 47px; height: 47px; }
  .timeline::before, .timeline .progress { left: 23px; }
  .studio-body { min-height: 0; }
  .contact-aside .card { padding: 22px; }
  form.contact { padding: 22px; }
  .legal { padding: 120px 0 80px; }
  .id-card dd { overflow-wrap: anywhere; }
}
