/* Nexorah AI — company site. Palette from regional tile and miniature work: lapis, saffron, turquoise, porcelain. */
@font-face { font-family: "Readex Pro"; src: url("/assets/fonts/readex-pro-latin-wght-normal.woff2") format("woff2"); font-weight: 160 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Readex Pro"; src: url("/assets/fonts/readex-pro-arabic-wght-normal.woff2") format("woff2"); font-weight: 160 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Vazirmatn"; src: url("/assets/fonts/vazirmatn-arabic-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* Sampled from the owner-approved hero video (public/assets/hero/loop + intro, "Ethereal"), 2026-11-07:
     background #03060F, deep blues #17265C #26378B, mid #2F4E9A #4E5FAB #5A6EC6, light #6799D8, ice #A4C3F5. */
  --night: #03060F;
  --navy: #0A1433;
  --violet: #17265C;
  --loop-a: #4E5FAB;
  --loop-b: #2F4E9A;
  --loop-c: #6799D8;
  --spark: #A4C3F5;
  --bg: #F2F5FC;
  --fg: #03060F;
  --muted: #3B4A72;
  --line: color-mix(in oklab, var(--loop-a) 26%, transparent);
  --accent: #2F4E9A;
  --signal: #26378B;
  --font: "Readex Pro", system-ui, sans-serif;
  --measure: 62ch;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--night);
    --fg: #EAF1FF;
    --muted: #9EB2DA;
    --line: color-mix(in oklab, #A4C3F5 18%, transparent);
    --accent: #6799D8;
    --signal: #A4C3F5;
  }
}
:lang(fa) { --font: "Vazirmatn", "Readex Pro", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; font-weight: 340; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: var(--gutter); top: 8px; background: var(--bg); padding: 6px 10px; z-index: 10; }

/* Top bar */
.bar { position: absolute; inset-inline: 0; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px var(--gutter); }
.mark { font-weight: 600; letter-spacing: -0.01em; text-decoration: none; font-size: 1.05rem; display: inline-flex; align-items: center; gap: 10px; }
.mark svg { width: 22px; height: 22px; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 30px); align-items: center; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--fg); opacity: 0.86; }
.nav a:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 760px) { .nav .hide-sm { display: none; } }

/* Hero: a full-bleed rendered video (figure in the right third); headline in the dark left half. */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; align-items: center; overflow: hidden; isolation: isolate; background: var(--night); color: #EAF1FF; }
.hero-stage { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--night); }
.hero-poster, .hero-video { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); object-fit: cover; object-position: 50% 50%; will-change: transform; }
/* the alt text of the poster must never show as page text */
.hero-poster { color: transparent; font-size: 0; z-index: 0; }
/* layer order: poster (bottom) < video / 3D < alive sparks < scrim (top) */
.hero-video, .hero-3d { z-index: 1; }
.hero-alive { z-index: 2; }
.hero-scrim { z-index: 3; }
.hero-video { opacity: 0; transition: opacity 0.8s var(--ease); }
.hero-live .hero-video { opacity: 1; }
/* intro -> loop: the loop sits under the intro and is revealed on its first frame (no fade) */
/* the loop copies stay hidden until their turn; .hero-stage keeps this above ".hero-live .hero-video" (bug 2026-11-08:
   both paused copies showed the finished figure over the whole intro) */
.hero-stage .hero-video-loop { opacity: 0; transition: opacity var(--hero-fade, .25s) ease-in-out; }
.hero-stage .hero-video-loop.hero-on { opacity: 1; }
.hero-stage .hero-video-loop.hero-instant { transition: none; }

.hero-looping .hero-video:not(.hero-video-loop) { opacity: 0; transition: none; }
.hero-3d { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-3d-live .hero-3d { opacity: 1; }
.hero-3d-live .hero-poster { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-alive { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* contrast for the headline (WCAG AA over the darkest part of the frame) and a seamless blend into the page below */
.hero-scrim { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(8, 6, 19, 0.88) 0%, rgba(8, 6, 19, 0.62) 32%, rgba(8, 6, 19, 0) 58%),
  linear-gradient(180deg, rgba(8, 6, 19, 0) 62%, var(--night) 100%); }
[dir="rtl"] .hero-poster, [dir="rtl"] .hero-video { transform: scaleX(-1); }
[dir="rtl"] .hero-scrim { transform: scaleX(-1); }
.bar, .bar a, .bar .nav a { color: #EAF1FF; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 999px; text-decoration: none; font-weight: 500; transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.btn-solid { background: var(--fg); color: var(--bg); }
.btn-solid:hover { background: var(--accent); color: #fff; }
.btn-line { box-shadow: inset 0 0 0 1px var(--fg); }
.btn-line:hover { box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent); }
.hint { margin-top: 30px; font-size: 0.9rem; color: var(--muted); }

/* Sections */
section.band { padding: clamp(64px, 11vw, 140px) var(--gutter); }
.band h2 { margin: 0 0 clamp(28px, 4vw, 48px); font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.8rem); line-height: 1.12; letter-spacing: -0.02em; max-width: 22ch; }
:lang(fa) .band h2, :lang(ar) .band h2 { letter-spacing: 0; line-height: 1.35; }

/* How we know: four marks, not a sequence. */
.marks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-block: 1px solid var(--line); }
.marks div { padding: 28px 26px 32px 0; }
.marks div + div { padding-inline-start: 26px; border-inline-start: 1px solid var(--line); }
@media (max-width: 960px) { .marks div + div { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); } }
.marks svg { width: 34px; height: 34px; display: block; margin-bottom: 18px; }
.marks strong { display: block; font-weight: 500; font-size: 1.1rem; margin-bottom: 6px; }
.marks span { color: var(--muted); }

/* Work index: rows, large names. */
.work { list-style: none; margin: 0; padding: 0; }
.work li { border-top: 1px solid var(--line); }
.work li:last-child { border-bottom: 1px solid var(--line); }
.work a { display: grid; grid-template-columns: minmax(0, 30%) minmax(0, 1fr) 11.5rem; gap: 24px; align-items: baseline; padding: 26px 0; text-decoration: none; }
.work .name { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 400; letter-spacing: -0.015em; transition: color 0.2s var(--ease); }
.work a:hover .name { color: var(--accent); }
.work .what { color: var(--muted); }
.work .kind { font-size: 0.92rem; color: var(--muted); text-align: end; overflow-wrap: anywhere; }
.work .kind .host { display: block; }
@media (max-width: 760px) { .work .kind { text-align: start; } }
.work .kind b { font-weight: 500; color: var(--fg); }
@media (max-width: 760px) { .work a { grid-template-columns: 1fr; gap: 6px; } }

/* Library band: real numbers in the type, not a stat-card row. */


@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Inner pages: account, connect, plans (L5) */
.page { max-width: 1080px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) var(--gutter) 64px; }
.page-head { margin-bottom: 24px; }
.page-head h1, .panel h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 520; letter-spacing: -0.015em; margin: 0 0 6px; }
.panel { border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 3vw, 28px); margin-bottom: 18px; background: color-mix(in oklab, var(--bg) 92%, var(--loop-a) 8%); }
.panel h2 { font-size: 1.15rem; font-weight: 520; margin: 0 0 10px; }
.panel h3 { font-size: 1rem; font-weight: 520; margin: 18px 0 6px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid .panel { margin-bottom: 0; }
.grid + .panel { margin-top: 18px; }
.form { max-width: 460px; margin-inline: auto; display: grid; gap: 10px; }
.form label { font-weight: 480; font-size: 0.95rem; }
.form input { font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
.form input:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.form .btn { justify-self: start; margin-top: 6px; }
button.btn { font: inherit; cursor: pointer; }
button.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.form-error { color: #b3261e; margin: 0; }
.notice { border-inline-start: 3px solid var(--signal); padding: 10px 14px; background: color-mix(in oklab, var(--signal) 10%, transparent); border-radius: 6px; }
.facts { display: grid; gap: 8px; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.state { font-weight: 520; }
.state.on { color: var(--signal); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--accent); color: var(--bg); font-size: 0.85rem; font-weight: 520; }
.tag { font-size: 0.82rem; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line); }
.tag-accepted { border-color: var(--signal); color: var(--signal); }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { text-align: start; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 480; color: var(--muted); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
code.copy { display: block; overflow-wrap: anywhere; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); user-select: all; }
.table td:first-child { white-space: nowrap; }

/* Library pages (L7) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 520; color: var(--accent); margin: 0 0 10px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: var(--measure); color: var(--muted); }
.lib-hero { text-align: center; padding: clamp(24px, 6vw, 72px) 0 clamp(28px, 5vw, 56px); }
.lib-hero h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; margin: 0 auto 14px; max-width: 18ch; }
.lib-hero .lead { margin: 0 auto 26px; }
.lib-hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.odo-hero { margin: clamp(36px, 6vw, 64px) auto 0; padding: clamp(22px, 4vw, 40px) clamp(16px, 4vw, 48px); border-radius: 22px; border: 1px solid var(--line); max-width: 760px;
  background: radial-gradient(120% 140% at 50% 0%, color-mix(in oklab, var(--loop-a) 22%, transparent), transparent 62%), color-mix(in oklab, var(--bg) 88%, var(--violet) 12%); }
.odo-hero-label { margin: 10px 0 4px; font-size: 1.05rem; }
.odo-hero-break { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* odometer: each digit is a 10-row strip moved by a class (no inline styles under the CSP) */
.odo { display: inline-flex; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; line-height: 1; }
.odo-digits { display: inline-flex; align-items: flex-end; }
.odo-d { display: inline-block; height: 1em; overflow: hidden; }
.odo-strip { display: flex; flex-direction: column; transition: transform 1.2s var(--ease); }
.odo-strip > span { height: 1em; display: block; text-align: center; }
.odo-sep { display: inline-block; width: 0.32em; text-align: center; opacity: 0.6; }
.n0 { transform: translateY(0); } .n1 { transform: translateY(-10%); } .n2 { transform: translateY(-20%); } .n3 { transform: translateY(-30%); } .n4 { transform: translateY(-40%); }
.n5 { transform: translateY(-50%); } .n6 { transform: translateY(-60%); } .n7 { transform: translateY(-70%); } .n8 { transform: translateY(-80%); } .n9 { transform: translateY(-90%); }
.odo-xl { font-size: clamp(3.4rem, 12vw, 7.5rem); font-weight: 300; letter-spacing: -0.02em; color: var(--fg); }
.odo-md { font-size: clamp(2rem, 4.6vw, 2.8rem); font-weight: 380; }
@media (prefers-reduced-motion: reduce) { .odo-strip { transition: none; } .live-dot { animation: none; } }

.lib-live { margin-top: 12px; }
.live-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.live-head h2 { margin: 0; font-size: 1.2rem; font-weight: 520; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 color-mix(in oklab, var(--signal) 60%, transparent); animation: live 2.4s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--signal) 55%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.tile { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 20px; background: color-mix(in oklab, var(--bg) 92%, var(--loop-a) 8%); }
.tile-label { margin-top: 10px; font-weight: 480; }
.tile-hint { font-size: 0.85rem; color: var(--muted); }
.lib-how { margin-top: clamp(36px, 6vw, 64px); }
.lib-how h2, .plans-h { font-size: 1.2rem; font-weight: 520; margin: 0 0 14px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 6px; }
.steps li strong::before { content: counter(s) "  "; color: var(--accent); font-variant-numeric: tabular-nums; }
.steps li span { color: var(--muted); }

.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-bottom: 28px; }
.plan { border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.plan-featured { border-color: color-mix(in oklab, var(--accent) 55%, transparent); background: color-mix(in oklab, var(--bg) 90%, var(--accent) 10%); }
.plan h3 { margin: 0; font-size: 1.1rem; font-weight: 520; }
.plan-price { margin: 8px 0 0; font-size: 1.05rem; }
.plan-aed { font-size: 2.4rem; font-weight: 420; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.plan ul { padding-inline-start: 18px; margin: 12px 0 16px; color: var(--muted); font-size: 0.95rem; flex: 1; }
.request summary { list-style: none; display: inline-flex; cursor: pointer; }
.request summary::-webkit-details-marker { display: none; }
.request-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.workspace { margin-top: 8px; }
.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.15rem; font-weight: 520; margin: 28px 0 8px; }
.prose li { margin-bottom: 6px; }
.status-list { list-style: none; padding: 0; margin: 0; }
.status-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ok { color: var(--signal); font-weight: 520; }
.bad { color: #b3261e; font-weight: 520; }

/* Owner panel (L8) */
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 12px var(--gutter); border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.admin-nav a { text-decoration: none; opacity: 0.8; }
.admin-nav a[aria-current="page"] { opacity: 1; color: var(--accent); font-weight: 520; }
.admin .page h1 { font-size: 1.6rem; font-weight: 520; margin: 0 0 18px; }
.admin .page h2 { font-size: 1.1rem; font-weight: 520; }
.admin-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 8px 0; }
.admin-form label { display: grid; gap: 4px; font-size: 0.88rem; color: var(--muted); }
.admin-form label.check { display: flex; align-items: center; gap: 6px; }
.admin-form input, .admin-form select, .admin-form textarea { font: inherit; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); min-width: 0; }
.admin-form textarea { width: min(100%, 640px); }
.admin-form .btn { padding: 9px 16px; }
.table-wrap { overflow-x: auto; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.85rem; max-width: 60ch; }
a.tile { text-decoration: none; color: inherit; }
.admin-fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.inline-form { display: inline; margin: 0; }

/* Work pages (owner-managed list) */
.work .host { font-weight: 400; opacity: 0.8; }
.work-page { max-width: 1040px; margin: 0 auto; }
.work-head { padding: clamp(10px, 3vw, 28px) 0 18px; }
.work-head h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 10px; }
.work-logo { width: 64px; height: 64px; border-radius: 16px; display: block; margin-bottom: 14px; }
.work-hero { margin: 8px 0 28px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px color-mix(in oklab, var(--loop-a) 45%, transparent); }
.work-hero img, .work-shots img, .visit-shot img { display: block; width: 100%; height: auto; }
.work-grid { display: grid; gap: clamp(20px, 4vw, 48px); grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 820px) { .work-grid { grid-template-columns: 1fr; } }
.work-side { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: color-mix(in oklab, var(--bg) 92%, var(--loop-a) 8%); }
.work-side h2 { font-size: 1rem; font-weight: 520; margin: 4px 0 8px; }
.work-side ul { margin: 0 0 14px; padding-inline-start: 18px; color: var(--muted); }
.tags { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; font-size: 0.85rem; }
.work-shots { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin: 28px 0; }
.work-shots figure { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 0; margin: 36px 0 24px; border-radius: 22px; overflow: hidden; text-decoration: none; color: #EAF1FF;
  background: radial-gradient(120% 140% at 0% 0%, var(--violet), var(--night) 70%); border: 1px solid color-mix(in oklab, var(--loop-a) 45%, transparent); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.visit:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -24px color-mix(in oklab, var(--loop-a) 70%, transparent); }
.visit-shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.visit-shot img { transition: transform 0.6s var(--ease); }
.visit:hover .visit-shot img { transform: scale(1.03); }
.visit-body { display: grid; gap: 6px; padding: clamp(20px, 4vw, 40px); }
.visit-body .eyebrow { color: var(--loop-c); }
.visit-title { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 500; letter-spacing: -0.015em; }
.visit .muted { color: #9EB2DA; }
@media (max-width: 680px) { .visit { grid-template-columns: 1fr; } }
.admin-form label.wide { width: 100%; }
.admin-form label.wide textarea { width: 100%; }

.mark img { width: 26px; height: 26px; border-radius: 7px; display: block; }
.host-pill { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 3px 10px; border-radius: 99px; border: 1px solid color-mix(in oklab, var(--accent) 50%, transparent); color: var(--accent); font-size: 0.82rem; white-space: nowrap; }
.work a:hover .host-pill { background: color-mix(in oklab, var(--accent) 14%, transparent); }
.visit-top { margin-top: 6px; }

/* the owner's logo next to the brand name everywhere (footer sign, brand eyebrows, panel header) */
.sign { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); }
.sign-logo { width: clamp(44px, 7vw, 84px); height: auto; border-radius: 22%; flex: none; }
.eyebrow-brand::before { content: ""; display: inline-block; width: 22px; height: 22px; margin-inline-end: 10px; vertical-align: -7px; border-radius: 6px; background: url("/assets/icon-180.png") center / cover no-repeat; }
.brand-badge { display: block; width: 60px; height: 60px; border-radius: 16px; margin: 0 0 14px; box-shadow: 0 0 28px color-mix(in oklab, var(--loop-c) 45%, transparent); }
.lib-hero .brand-badge { margin-inline: auto; }

/* ===== Home page (one block, 2026-11-08 owner round): full-screen figure, compact glass, neon 3D modules ===== */
.glass-site {
  background: var(--night); color-scheme: dark;
  --bg: #03060F; --fg: #EAF1FF; --muted: #9EB2DA; --line: color-mix(in oklab, #A4C3F5 18%, transparent); --accent: #6799D8; --signal: #A4C3F5;
  --g-tint: rgba(10, 20, 51, 0.5); --g-tint-near: rgba(23, 38, 92, 0.45);
  --g-fill: linear-gradient(135deg, rgba(164, 195, 245, 0.15) 0%, rgba(103, 153, 216, 0.05) 32%, rgba(47, 78, 154, 0.02) 62%, rgba(164, 195, 245, 0.1) 100%);
  --g-rim: linear-gradient(155deg, rgba(234, 241, 255, 0.6) 0%, rgba(164, 195, 245, 0.14) 28%, rgba(103, 153, 216, 0.06) 62%, rgba(103, 153, 216, 0.5) 100%);
  --g-shadow: inset 0 1px 0 rgba(234, 241, 255, 0.16), inset 0 -1px 0 rgba(3, 6, 15, 0.45), 0 1px 2px rgba(3, 6, 15, 0.5), 0 14px 30px -14px rgba(3, 6, 15, 0.8), 0 40px 80px -44px rgba(38, 55, 139, 0.7);
  --mono: 600 0.7rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.home-cc, .gs-inner { background: transparent; color: #EAF1FF; }
.cc-mono { font: var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: #6799D8; }

/* scene behind the glass: four soft blobs in the video's blues (eased falloff = no visible rim), faint grain */
.scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--night); }
.scene::after { content: ""; position: absolute; inset: 0; background: url("/assets/grain.png"); opacity: 0.045; mix-blend-mode: overlay; }
.scene i { position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%; will-change: transform; --c: 38, 55, 139; --a: 0.7;
  background: radial-gradient(closest-side, rgba(var(--c), var(--a)) 0%, rgba(var(--c), calc(var(--a) * 0.62)) 34%, rgba(var(--c), calc(var(--a) * 0.3)) 58%, rgba(var(--c), calc(var(--a) * 0.1)) 80%, rgba(var(--c), 0) 100%); }
.scene i:nth-child(1) { left: -18vmax; top: 8vh; animation: g-a 28s ease-in-out infinite alternate; }
.scene i:nth-child(2) { right: -22vmax; top: 30vh; --c: 47, 78, 154; --a: 0.56; animation: g-b 34s ease-in-out infinite alternate; }
.scene i:nth-child(3) { left: 22vw; bottom: -30vmax; --c: 90, 110, 198; --a: 0.4; animation: g-c 24s ease-in-out infinite alternate; }
.scene i:nth-child(4) { right: 12vw; top: -26vmax; width: 44vmax; height: 44vmax; --c: 103, 153, 216; --a: 0.28; animation: g-a 20s ease-in-out infinite alternate-reverse; }
@keyframes g-a { to { transform: translate3d(9vmax, 6vmax, 0) scale(1.08); } }
@keyframes g-b { to { transform: translate3d(-10vmax, -7vmax, 0) scale(0.94); } }
@keyframes g-c { to { transform: translate3d(6vmax, -9vmax, 0) scale(1.1); } }

/* one glass surface (the 3D modules have their own, see below: grouping properties would flatten them) */
.glass-site :is(.cc-nav .nav, .cc-title, .cc-chips a, .cc-btn-glass, .cc-lib, .cc-foot) {
  isolation: isolate; border: 0; background: var(--g-fill), var(--g-tint); box-shadow: var(--g-shadow); }
.glass-site :is(.cc-nav .nav, .cc-chips a, .cc-btn-glass, .cc-lib, .cc-foot) { position: relative; }
.glass-site :is(.cc-nav .nav, .cc-title, .cc-chips a, .cc-btn-glass, .cc-lib, .cc-foot)::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; background: var(--g-rim); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.glass-site :is(.cc-chips a, .cc-btn-glass, .cc-nav .nav) { background: var(--g-fill), var(--g-tint-near); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-site .cc-title { -webkit-backdrop-filter: blur(26px) saturate(165%); backdrop-filter: blur(26px) saturate(165%); }
  .glass-site :is(.cc-nav .nav, .cc-chips a, .cc-btn-glass) { -webkit-backdrop-filter: blur(18px) saturate(185%); backdrop-filter: blur(18px) saturate(185%); }
}
.glass-site :is(.cc-chips a) { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.glass-site .cc-chips a:hover { transform: translateY(-2px); box-shadow: var(--g-shadow), 0 0 0 1px rgba(164, 195, 245, 0.35), 0 0 36px -8px rgba(103, 153, 216, 0.55); }

/* top bar and pill menu */
.home-cc .cc-bar { position: absolute; z-index: 5; padding: 18px clamp(16px, 2.4vw, 34px); }
.home-cc .cc-bar .mark { color: #EAF1FF; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.cc-nav .nav { gap: 2px; padding: 5px; border-radius: 999px; }
.cc-nav .nav a { padding: 7px 13px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #B8C8EA; opacity: 1; }
.cc-nav .nav a:hover { color: #EAF1FF; background: rgba(103, 153, 216, 0.16); text-decoration: none; }
.cc-nav .nav a:last-child { color: #03060F; background: #A4C3F5; box-shadow: 0 0 18px rgba(103, 153, 216, 0.55); }

/* hero: the figure fills the screen; the title is a compact glass card at the far left */
.cc-hero { min-height: 100svh; display: block; background: transparent; }
.cc-hero .hero-stage { position: absolute; inset: 0; -webkit-mask: linear-gradient(180deg, #000 80%, transparent); mask: linear-gradient(180deg, #000 80%, transparent); }
.cc-hero .hero-poster, .cc-hero .hero-video { object-fit: cover; object-position: 50% 30%; }
.cc-hero .hero-scrim { background: linear-gradient(90deg, rgba(3, 6, 15, 0.85) 0%, rgba(3, 6, 15, 0.45) 22%, transparent 40%), linear-gradient(180deg, rgba(3, 6, 15, 0.5) 0%, transparent 16%); }
.cc-hud { position: absolute; z-index: 4; font: var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: #B8C8EA; display: flex; align-items: center; gap: 10px; top: 80px; }
.cc-hud-tl { left: clamp(16px, 2.4vw, 34px); }
.cc-hud-tr { right: clamp(16px, 2.4vw, 34px); }
.cc-dot { width: 7px; height: 7px; border-radius: 50%; background: #A4C3F5; box-shadow: 0 0 10px #6799D8; animation: live 2.4s infinite; }
.cc-title { position: absolute; z-index: 4; left: clamp(16px, 2.4vw, 34px); bottom: clamp(40px, 9vh, 96px); width: min(23.5rem, 30vw); padding: 20px 22px 20px; border-radius: 18px; }
.cc-title .cc-kicker { max-width: none; font-size: 0.7rem; margin: 0 0 8px; font: var(--mono); letter-spacing: 0.24em; text-transform: uppercase; color: #6799D8; }
.cc-title h1 { margin: 0; font-weight: 700; text-transform: uppercase; line-height: 1; font-size: clamp(1.5rem, 2.3vw, 2.35rem); color: #EAF1FF; }
.cc-title h1 span { display: block; color: #A4C3F5; text-shadow: 0 0 22px rgba(103, 153, 216, 0.45); }
.cc-title .cc-sub { max-width: none; margin: 12px 0 16px; color: #B8C8EA; font-size: 0.9rem; line-height: 1.5; }
.cc-title .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-title .btn { padding: 10px 15px; }
.cc-btn-glow { background: #A4C3F5; color: #03060F; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.74rem; box-shadow: 0 0 0 1px rgba(234, 241, 255, 0.5) inset, 0 0 26px rgba(103, 153, 216, 0.6); }
.cc-btn-glow:hover { background: #EAF1FF; color: #03060F; }
.cc-btn-glass { color: #EAF1FF; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.74rem; }
.cc-chips { position: absolute; z-index: 4; right: clamp(16px, 2.4vw, 34px); bottom: clamp(40px, 9vh, 96px); display: grid; gap: 8px; width: min(12.5rem, 24vw); }
.cc-chips a { display: grid; gap: 3px; padding: 11px 14px; border-radius: 12px; text-decoration: none; color: #EAF1FF; }
.cc-chips strong { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.88rem; }
.cc-chips .cc-mono { font-size: 0.62rem; white-space: nowrap; }
.cc-scroll { position: absolute; z-index: 4; left: 50%; bottom: 16px; transform: translateX(-50%); font: var(--mono); letter-spacing: 0.3em; text-transform: uppercase; color: #9EB2DA; }
.cc-scroll::after { content: ""; display: block; width: 1px; height: 22px; margin: 8px auto 0; background: linear-gradient(#A4C3F5, transparent); }

/* sections: small headings, no long rules, a 1180 px column */
.cc-deck, .home-cc .band, .cc-lib, .cc-foot { max-width: 1180px; margin-inline: auto; }
.home-cc .band { padding: clamp(28px, 4vw, 48px) var(--gutter) 0; background: transparent; }
.cc-sec-head, .home-cc .cc-lists .band > h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
.home-cc h2, .cc-sec-head h2 { max-width: none; line-height: 1.2; margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(1rem, 1.5vw, 1.25rem); color: #EAF1FF; }

/* the five modules: neon 3D slabs on a curved row; pointer tilt from boot.js (--rx/--ry) */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.cc-deck { padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(24px, 3vw, 40px); }
.cc-deck-kicker { margin: 0 0 8px; text-align: center; }
.cc-deck h2 { text-align: center; margin: 0 auto clamp(26px, 3.4vw, 44px); font-size: clamp(1.15rem, 2vw, 1.6rem); }
.cc-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.3vw, 18px); perspective: 1200px; perspective-origin: 50% 35%; }
.cc-mod { --base: 0deg; --z: 0px; --rx: 0deg; --ry: 0deg; position: relative; display: grid; gap: 8px; align-content: start; min-height: 312px; padding: 18px 16px 16px; border-radius: 18px; text-decoration: none; color: #EAF1FF;
  background: linear-gradient(160deg, rgba(47, 78, 154, 0.42), rgba(10, 20, 51, 0.82) 55%, rgba(3, 6, 15, 0.9));
  box-shadow: 0 0 0 1px rgba(164, 195, 245, 0.4), 0 0 18px rgba(103, 153, 216, 0.45), 0 0 46px -6px rgba(90, 110, 198, 0.55), inset 0 0 22px rgba(103, 153, 216, 0.18), 0 40px 60px -30px #000;
  transform-style: preserve-3d; transform: rotateY(calc(var(--base) + var(--ry))) rotateX(var(--rx)) translateZ(var(--z)); transition: transform 0.6s var(--ease), box-shadow 0.4s var(--ease); }
.cc-mod::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; transform: translateZ(1px);
  background: conic-gradient(from var(--spin), #A4C3F5, #5A6EC6 18%, rgba(103, 153, 216, 0.15) 40%, #6799D8 60%, #EAF1FF 75%, #4E5FAB 88%, #A4C3F5);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: cc-spin 8s linear infinite; }
@keyframes cc-spin { to { --spin: 360deg; } }
.cc-slab { position: absolute; inset: 0; border-radius: inherit; transform: translateZ(-28px); background: linear-gradient(160deg, #17265C, #03060F); box-shadow: 0 0 0 1.5px rgba(103, 153, 216, 0.75), 0 0 26px rgba(47, 78, 154, 0.7); pointer-events: none; }
.cc-mod > :not(.cc-slab) { transform: translateZ(14px); }
.cc-mod .cc-ico { transform: translateZ(42px); }
.cc-mod strong { transform: translateZ(30px); }
.cc-mod-0 { --base: 26deg; --z: -30px; } .cc-mod-1 { --base: 13deg; --z: -8px; }
.cc-mod-3 { --base: -13deg; --z: -8px; } .cc-mod-4 { --base: -26deg; --z: -30px; }
.cc-hot { --z: 36px; }
.cc-mod:hover { --z: 50px; box-shadow: 0 0 0 1px rgba(234, 241, 255, 0.7), 0 0 26px rgba(164, 195, 245, 0.7), 0 0 70px rgba(103, 153, 216, 0.6), inset 0 0 28px rgba(103, 153, 216, 0.25), 0 50px 70px -30px #000; }
.cc-mod-top { display: flex; justify-content: space-between; }
.cc-live { color: #A4C3F5; }
.cc-hot .cc-live::before, .cc-live-b::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; background: #A4C3F5; box-shadow: 0 0 8px #6799D8; vertical-align: 1px; }
.cc-ico { width: 44px; height: 44px; color: #A4C3F5; filter: drop-shadow(0 0 10px rgba(103, 153, 216, 0.8)); margin-top: 4px; }
.cc-ico svg { width: 100%; height: 100%; }
.cc-mod strong { font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.05; text-shadow: 0 0 18px rgba(103, 153, 216, 0.6); }
.cc-mod-text { color: #B8C8EA; font-size: 0.84rem; line-height: 1.45; }
.cc-tele { display: grid; gap: 5px; }
.cc-tele span { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; background: rgba(3, 6, 15, 0.45); border: 1px solid rgba(164, 195, 245, 0.12); }
.cc-tele .cc-mono { font-size: 0.62rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-tele b { font: 700 0.7rem/1 ui-monospace, Menlo, monospace; letter-spacing: 0.1em; color: #EAF1FF; white-space: nowrap; }
.cc-spark { width: 100%; height: 44px; color: #6799D8; margin-top: auto; }
.cc-spark .area { fill: url(#cc-grad); stroke: none; opacity: 0.55; }
.cc-open { color: #EAF1FF; }

/* marks: four compact tiles */
.cc-marks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; border: 0; }
.cc-marks div, .cc-marks div + div { display: grid; gap: 6px; align-content: start; padding: 16px; border: 0; border-radius: 14px; }
.cc-marks svg { width: 28px; height: 28px; color: #A4C3F5; filter: drop-shadow(0 0 8px rgba(103, 153, 216, 0.6)); }
.cc-marks strong { font-size: 0.95rem; }
.cc-marks span { color: #9EB2DA; font-size: 0.84rem; line-height: 1.45; }

/* products, work and services: a grid of compact glass tiles, not full-width rows */
.glass-site .work { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 10px; border: 0; }
.glass-site .work li, .glass-site .work li:last-child { border: 0; }
.glass-site .work a { display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; gap: 6px; height: 100%; padding: 15px 16px; border-radius: 14px; }
.glass-site .work .name { font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: #EAF1FF; }
.glass-site .work .what { color: #9EB2DA; font-size: 0.84rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.glass-site .work .kind { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; justify-content: flex-start; text-align: start; font-size: 0.74rem; color: #A4C3F5; }
.glass-site .work .kind b { font: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #A4C3F5; }
.home-cc .host-pill { margin: 0; font-size: 0.74rem; color: #A4C3F5; border-color: rgba(164, 195, 245, 0.35); }

/* the library: one compact panel, text and a small live readout */
.cc-lib { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: clamp(20px, 3vw, 40px); align-items: center; margin-top: clamp(32px, 4vw, 52px); margin-bottom: 0; padding: clamp(22px, 3vw, 32px); border-radius: 20px;
  background: radial-gradient(70% 120% at 0% 0%, rgba(38, 55, 139, 0.45), transparent 65%), var(--g-fill), var(--g-tint); }
.home-cc .cc-lib { margin-inline: max(var(--gutter), calc((100% - 1180px) / 2 + var(--gutter))); }
.cc-lib-main { display: grid; gap: 10px; justify-items: start; }
.cc-lib h2 { text-transform: none; font-weight: 400; letter-spacing: -0.01em; font-size: clamp(1.15rem, 1.9vw, 1.6rem); line-height: 1.25; }
.cc-lib-text { margin: 0; color: #9EB2DA; font-size: 0.88rem; max-width: 46ch; }
.cc-lib-side { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; }
.cc-lib-knot { width: 112px; height: auto; border-radius: 28%; animation: cc-breathe 6s ease-in-out infinite; }
.cc-lib-tele { grid-template-columns: 1fr; }
@keyframes cc-breathe { 0%, 100% { box-shadow: 0 0 0 1px rgba(164, 195, 245, 0.35), 0 0 34px rgba(103, 153, 216, 0.4); } 50% { box-shadow: 0 0 0 1px rgba(164, 195, 245, 0.55), 0 0 60px rgba(103, 153, 216, 0.7); } }

/* footer: one slim glass bar */
.cc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: clamp(28px, 4vw, 44px) auto clamp(18px, 3vw, 28px); padding: 14px 18px; border-radius: 16px; color: #9EB2DA; font-size: 0.86rem; }
.home-cc .cc-foot { margin-inline: max(var(--gutter), calc((100% - 1180px) / 2 + var(--gutter))); }
.cc-foot-brand { display: flex; align-items: center; gap: 10px; color: #EAF1FF; font-weight: 700; text-decoration: none; }
.cc-foot-brand img { width: 32px; height: 32px; border-radius: 9px; }
.cc-foot-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.cc-foot-nav a { color: #B8C8EA; text-decoration: none; }
.cc-foot-nav a:hover { color: #EAF1FF; }

@media (prefers-reduced-motion: reduce) { .scene i, .cc-mod::before, .cc-dot, .cc-lib-knot { animation: none; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-site :is(.cc-nav .nav, .cc-title, .cc-chips a, .cc-btn-glass) { background: var(--g-fill), #0A1433; } }
@media (prefers-reduced-transparency: reduce) {
  .glass-site :is(.cc-nav .nav, .cc-title, .cc-chips a, .cc-btn-glass, .cc-lib, .cc-foot) { background: #0A1433; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .scene i { display: none; } }

@media (max-width: 1100px) {
  .cc-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cc-mod { --base: 0deg !important; --z: 0px !important; }
  .cc-marks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-title { width: min(23.5rem, 42vw); }
}
@media (max-width: 760px) {
  .home-cc .cc-bar { padding: 12px 14px; gap: 10px; }
  .home-cc .cc-bar .mark { font-size: 0.95rem; }
  .cc-nav .nav { padding: 4px; gap: 0; }
  .cc-nav .nav a { padding: 7px 9px; font-size: 0.64rem; letter-spacing: 0.1em; }
  .cc-hud-tr, .cc-scroll { display: none; }
  .cc-hud-tl { top: 62px; left: 14px; }
  .cc-hero { min-height: 0; display: flex; flex-direction: column; }
  .cc-hero .hero-stage { position: relative; width: 100%; height: 62svh; min-height: 360px; }
  .cc-hero .hero-poster, .cc-hero .hero-video { object-position: 50% 20%; }
  .cc-hero .hero-scrim { background: linear-gradient(180deg, rgba(3, 6, 15, 0.6) 0%, transparent 22%); }
  .cc-title { position: relative; left: auto; bottom: auto; width: auto; margin: -56px 14px 0; }
  .cc-chips { position: relative; right: auto; bottom: auto; width: auto; margin: 12px 14px 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cc-chips a { padding: 9px 10px; }
  .cc-chips strong { font-size: 0.78rem; }
  .cc-chips .cc-mono { font-size: 0.56rem; letter-spacing: 0.06em; }
  .cc-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-tele b { font-size: 0.62rem; letter-spacing: 0.04em; }
  .cc-mod { min-height: 0; }
  .cc-mod .cc-spark, .cc-mod .cc-mod-text { display: none; }
  .cc-mod > :not(.cc-slab), .cc-mod .cc-ico, .cc-mod strong { transform: translateZ(3px); } /* above the 1px neon rim, no visible growth */
  .cc-marks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-lib { grid-template-columns: 1fr; }
  .cc-lib-side { grid-template-columns: 84px 1fr; }
  .cc-lib-knot { width: 84px; }
}

