/* ============================================================================
   TELOS NEXUS — telosnexus.io
   Built from the Canva Master Visual Identity System (DAHVQ-yU0-M), the
   Validation Design (DAHVeF8iTts) and the official Grape lockup (#750FB7).

   Editorial canvas #FFFBF8 · black display type · #750FB7 brand purple ·
   dark "system panels" (Night → Rich Telos Purple) carrying luminous violet
   routes, nodes and signals · orange #E8500A as a rare contextual accent.
   Arabic-first, logical properties only, reduced-motion safe.
   ========================================================================== */

:root {
  /* Canva master palette */
  --night: #0D0D1A;
  --purple-rich: #3D1F6E;
  --purple-luminous: #7B4FA6;
  --warm-neutral: #E8E0D5;
  --white: #FFFFFF;
  --graphite: #6F6A78;
  /* Official lockup (brand kit) */
  --brand: #750FB7;
  --brand-deep: #5A0B8F;
  /* Canva canvas + signal register */
  --canvas: #FFFBF8;
  --ink: #000000;
  --ink-2: #2B2733;
  --ink-3: #5E5968;
  --violet: #8B3DFF;
  --violet-soft: #C9A7FF;
  --accent: #E8500A;             /* contextual accent — never dominant */
  --rule: rgb(0 0 0 / .12);

  --display-en: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --text-en: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --arabic: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --display: var(--arabic);
  --text: var(--arabic);

  --pad: clamp(20px, 3.3vw, 64px);
  --top-h: 88px;
  --radius: clamp(18px, 1.6vw, 26px);
  --ease: cubic-bezier(.22, .8, .24, 1);
}
html[lang="en"] { --display: var(--display-en); --text: var(--text-en); }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--canvas); color: var(--ink); -webkit-text-size-adjust: 100%; scroll-padding-top: var(--top-h); overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--text); font-size: 1.0625rem; line-height: 1.6; background: var(--canvas); -webkit-font-smoothing: antialiased; overflow-x: clip; }
html[lang="ar"] body { line-height: 1.8; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg, img { display: block; max-width: 100%; }
bdi { unicode-bidi: isolate; }
::selection { background: var(--brand); color: var(--white); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 6px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; inset-block-start: 12px; inset-inline-start: 12px; z-index: 200; padding: 10px 16px; background: var(--ink); color: var(--white); border-radius: 8px; transform: translateY(-160%); }
.skip:focus { transform: none; }

/* ---------- type ---------- */
.display { font-family: var(--display); font-weight: 600; font-size: clamp(3.4rem, 1rem + 8.4vw, 11rem); line-height: .9; letter-spacing: -.032em; color: var(--ink); }
.display--m { font-size: clamp(2.6rem, 1rem + 5vw, 6.8rem); line-height: .94; letter-spacing: -.03em; }
.display > span { display: block; }
html[lang="ar"] .display { font-weight: 700; letter-spacing: 0; line-height: 1.12; font-size: clamp(3rem, .8rem + 8vw, 9.6rem); }
html[lang="ar"] .display--m { line-height: 1.22; font-size: clamp(2.3rem, .9rem + 4.4vw, 5.8rem); }
.label { font-family: var(--text); font-weight: 700; font-size: clamp(.95rem, .85rem + .35vw, 1.2rem); line-height: 1.35; letter-spacing: 0; color: var(--ink); }
html[lang="en"] .label--caps { text-transform: uppercase; letter-spacing: .01em; }
.pair { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 12px 32px; align-items: start; }
.pair__text { font-size: clamp(1rem, .92rem + .35vw, 1.22rem); line-height: 1.45; color: var(--ink-2); max-width: 34em; }
html[lang="ar"] .pair__text { line-height: 1.8; }
.pairs { display: grid; gap: clamp(28px, 4vw, 72px); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 1rem; transition: background .25s var(--ease), transform .2s var(--ease), box-shadow .3s var(--ease); }
.btn:active { transform: scale(.98); }
.btn--brand { background: var(--brand); color: var(--white); box-shadow: 0 10px 30px -12px rgb(117 15 183 / .7); }
.btn--brand:hover { background: var(--brand-deep); box-shadow: 0 14px 36px -12px rgb(117 15 183 / .85); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .95rem; }
.btn--block { width: 100%; }
.arrow-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 700; font-size: clamp(1rem, .95rem + .3vw, 1.2rem); color: var(--ink); }
.arrow-link svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
[dir="rtl"] .arrow-link svg { transform: scaleX(-1); }
.arrow-link:hover svg { transform: translateX(6px); }
[dir="rtl"] .arrow-link:hover svg { transform: scaleX(-1) translateX(6px); }
.arrow-link span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease); }
[dir="rtl"] .arrow-link span { background-position: 100% 100%; }
.arrow-link:hover span { background-size: 100% 1.5px; }
.plain-link { font-weight: 700; font-size: clamp(1rem, .95rem + .3vw, 1.2rem); border-block-end: 1.5px solid var(--ink); padding-block-end: 2px; font-family: var(--text-en); }
.plain-link:hover { color: var(--brand); border-color: var(--brand); }
.is-soon { color: var(--ink-3); cursor: default; }
.state { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 500; color: var(--ink-3); }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.state--live { color: var(--brand); }
.state--live::before { background: currentColor; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .35s, box-shadow .35s; }
.top.is-solid { background: rgb(255 251 248 / .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--rule); }
.top__in { height: var(--top-h); padding-inline: var(--pad); display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 14px; }
.logo__mark { width: 40px; height: 40px; transition: transform .9s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-90deg); }
.logo__name { font-family: var(--text-en); font-size: 1.3rem; font-weight: 400; letter-spacing: -.01em; color: var(--ink); }
.top__nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.top__nav > * { display: inline-flex; gap: 6px; min-height: 44px; align-items: center; padding-inline: 14px; font-size: 1rem; font-weight: 500; color: var(--ink-2); border-radius: 999px; transition: background .25s, color .25s; }
.top__nav a:hover { background: rgb(117 15 183 / .08); color: var(--brand); }
.top__nav small { font-size: .7rem; color: var(--ink-3); }
.top__end { display: flex; align-items: center; gap: 8px; }
.lang { min-height: 44px; padding-inline: 12px; font-size: .95rem; font-weight: 500; color: var(--ink-2); }
.lang:hover { color: var(--brand); }
html[lang="en"] .lang { font-family: var(--arabic); }
html[lang="ar"] .lang { font-family: var(--text-en); }
.menu-btn { display: none; position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); }
.menu-btn i { position: absolute; left: 15px; right: 15px; height: 2px; border-radius: 2px; background: var(--white); transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn i:first-of-type { top: 19px; } .menu-btn i:last-of-type { top: 27px; }
.menu-btn[aria-expanded="true"] i:first-of-type { top: 23px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-of-type { top: 23px; transform: rotate(-45deg); }

.sheet { position: fixed; inset: 0; z-index: 90; background: var(--canvas); padding: calc(var(--top-h) + 16px) var(--pad) max(28px, env(safe-area-inset-bottom)); display: grid; grid-template-rows: 1fr auto; gap: 24px; }
.sheet[hidden] { display: none; }
.sheet__nav { display: grid; align-content: start; }
.sheet__nav > * { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: baseline; padding-block: 18px; border-block-end: 1px solid var(--rule); }
.sheet__nav small { grid-row: span 2; font-family: var(--text-en); font-weight: 700; color: var(--brand); font-size: .9rem; }
.sheet__nav b { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.05; letter-spacing: -.03em; }
html[lang="ar"] .sheet__nav b { letter-spacing: 0; line-height: 1.3; }
.sheet__nav span { color: var(--ink-3); }
@media (prefers-reduced-motion: no-preference) {
  .sheet:not([hidden]) .sheet__nav > * { animation: sheet-in .55s var(--ease) both; }
  .sheet:not([hidden]) .sheet__nav > *:nth-child(2) { animation-delay: .05s; }
  .sheet:not([hidden]) .sheet__nav > *:nth-child(3) { animation-delay: .1s; }
  .sheet:not([hidden]) .sheet__nav > *:nth-child(4) { animation-delay: .15s; }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- slides ---------- */
.slide { position: relative; padding: clamp(96px, 11vw, 170px) var(--pad); }
.slide + .slide { border-block-start: 1px solid var(--rule); }

/* ---------- system panels (dark, luminous) ---------- */
.panel { position: relative; overflow: hidden; border-radius: var(--radius); background: radial-gradient(120% 90% at 50% 100%, #1D0B38 0%, #120B24 45%, var(--night) 100%); color: var(--white); isolation: isolate; }
.panel--wide { aspect-ratio: 1600 / 360; min-height: 220px; }
.panel__cap { position: absolute; inset-inline: 22px; inset-block-end: 16px; display: flex; justify-content: space-between; gap: 16px; font-size: .8rem; color: rgb(255 255 255 / .6); pointer-events: none; }
.panel svg { width: 100%; height: 100%; }

/* radial starburst */
.burst__faint line { stroke: rgb(201 167 255 / .08); stroke-width: 1; }
.burst__ring { fill: none; stroke: rgb(201 167 255 / .22); stroke-width: 1; }
.burst__ring--in { stroke-dasharray: 2 6; }
.burst__dots circle { fill: rgb(233 216 255 / .7); }
.burst__spokes line { stroke: url(#spoke); stroke-width: 1.4; stroke-linecap: round; }
.burst__nodes .nd { fill: #9C5CFF; }
.burst__nodes .nd--hot { fill: #F3EAFF; }
.burst__core { fill: #F3EAFF; }
/* network wave */
.wave__axis { stroke: url(#axis); stroke-width: 2.2; }
.wave--close .wave__axis { stroke: url(#axis2); }
.wave__lines line { stroke: rgb(155 92 255 / .55); stroke-width: 1; }
.wave__nodes .wn { fill: #B98CFF; }
.wave__nodes .wn--hot { fill: #F3EAFF; }
/* ecosystem map */
.eco-ring { fill: none; stroke: rgb(201 167 255 / .16); stroke-width: 1; }
.eco-spokes line { stroke: rgb(201 167 255 / .08); }
.eco-ticks line { stroke: rgb(201 167 255 / .35); }
.eco-route__line { stroke: rgb(155 92 255 / .45); stroke-width: 2; fill: none; stroke-dasharray: 3 7; transition: stroke .4s; }
.eco-route__node { fill: #9C5CFF; transition: fill .4s; }
.eco-route__halo { fill: none; stroke: rgb(201 167 255 / 0); stroke-width: 1.5; transition: stroke .4s; }
.eco-route.is-on .eco-route__line { stroke: #E9D8FF; stroke-dasharray: none; }
.eco-route.is-on .eco-route__node { fill: #FFFFFF; }
.eco-route.is-on .eco-route__halo { stroke: rgb(201 167 255 / .6); }
.eco-core { fill: #FFFFFF; }

/* orchestrated drawing — routes activate sequentially, nodes connect with controlled timing */
@media (prefers-reduced-motion: no-preference) {
  .js [data-draw]:not(.is-in) .burst__spokes line,
  .js [data-draw]:not(.is-in) .wave__lines line { stroke-dasharray: 400; stroke-dashoffset: 400; }
  .js [data-draw]:not(.is-in) .burst__nodes circle,
  .js [data-draw]:not(.is-in) .wave__nodes circle,
  .js [data-draw]:not(.is-in) .burst__core { opacity: 0; }
  .js [data-draw].is-in .burst__spokes line { stroke-dasharray: 400; animation: route 1.3s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
  .js [data-draw].is-in .burst__nodes circle { animation: node .6s var(--ease) both; animation-delay: calc(700ms + var(--i) * 45ms); }
  .js [data-draw].is-in .burst__core { animation: node .5s var(--ease) both; }
  .js [data-draw].is-in .wave__lines line { stroke-dasharray: 400; animation: route 1.4s var(--ease) both; animation-delay: calc(var(--x) * 1100ms); }
  .js [data-draw].is-in .wave__nodes circle { animation: node .5s var(--ease) both; animation-delay: calc(300ms + var(--x) * 1100ms); }
  .js [data-draw]:not(.is-in) .ui { opacity: 0; transform: translateY(14px); }
  .js [data-draw].is-in .ui { transition: opacity .8s var(--ease) .15s, transform .8s var(--ease) .15s; }
}
@keyframes route { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
@keyframes node { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 01 hero ---------- */
.hero { min-height: max(720px, 100svh); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; column-gap: clamp(16px, 2vw, 32px); padding-block: calc(var(--top-h) + clamp(40px, 7vh, 96px)) clamp(40px, 6vh, 72px); }
.hero__pair { grid-column: 6 / -1; grid-row: 1; }
.hero__title { grid-column: 1 / 9; grid-row: 2; align-self: end; margin-block-end: clamp(28px, 4vh, 48px); }
.hero__panel { grid-column: 9 / -1; grid-row: 2 / 4; align-self: end; aspect-ratio: 1 / 1.05; margin-block-start: 48px; }
.hero__panel svg { position: absolute; inset: 0; }
.hero__actions { grid-column: 1 / 9; grid-row: 3; align-self: end; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.ln { overflow: hidden; padding-block-end: .12em; margin-block-end: -.08em; }
.ln > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero .ln > span { animation: rise 1s var(--ease) both; }
  .js .hero .ln:nth-child(2) > span { animation-delay: .09s; }
  .js .hero .ln:nth-child(3) > span { animation-delay: .18s; }
  .js .hero__pair, .js .hero__actions { animation: fade .9s var(--ease) .45s both; }
}
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- 02 essence ---------- */
.essence { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(48px, 6vw, 96px); }
.essence__title { grid-column: 1 / 7; }
.essence .pairs { grid-column: 7 / -1; align-self: start; }
.essence__panel { grid-column: 1 / -1; }

/* ---------- 03 ecosystem ---------- */
.eco { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(40px, 5vw, 80px); }
.eco__title { grid-column: 1 / -1; }
.eco__panel { grid-column: 1 / 6; aspect-ratio: 1; align-self: start; position: sticky; top: calc(var(--top-h) + 24px); }
.eco__list { grid-column: 7 / -1; display: grid; }
.eco__item { display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; row-gap: 6px; padding-block: 28px; border-block-start: 1px solid var(--rule); transition: background .3s; }
.eco__list li:last-child .eco__item { border-block-end: 1px solid var(--rule); }
.eco__num { grid-row: span 3; font-family: var(--text-en); font-weight: 700; font-size: 1.05rem; color: var(--brand); padding-block-start: .35em; }
.eco__item .label { font-family: var(--text-en); text-transform: none; font-weight: 500; font-size: .95rem; color: var(--ink-3); direction: ltr; text-align: start; }
[dir="rtl"] .eco__item .label { text-align: right; }
.eco__item b { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 1rem + 2.4vw, 3.2rem); line-height: 1; letter-spacing: -.035em; }
html[lang="ar"] .eco__item b { letter-spacing: 0; line-height: 1.3; }
.eco__text { color: var(--ink-2); max-width: 32em; }
a.eco__item:hover b, .eco__list li.is-on a.eco__item b { color: var(--brand); }
.eco__item.is-soon b { color: var(--ink-3); }

/* ---------- 04 work ---------- */
.work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(40px, 5vw, 72px); }
.work > h2 { grid-column: 1 / 7; }
.work__pair { grid-column: 7 / -1; align-self: end; }
.products { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 28px); }
.prod a { display: grid; gap: 14px; }
.prod__panel { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 8%; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.prod a:hover .prod__panel { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgb(61 31 110 / .8); }
.prod__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.prod__meta b { font-family: var(--display-en); font-weight: 700; font-size: 1.6rem; letter-spacing: -.03em; direction: ltr; }
.prod__text { color: var(--ink-2); }
.work__all { grid-column: 1 / -1; justify-self: start; }

/* product UI fragments — luminous interface grammar on dark */
.ui { width: 100%; max-width: 360px; display: grid; gap: 14px; font-size: .88rem; color: rgb(255 255 255 / .8); }
.ui__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ui__row--dim { color: rgb(255 255 255 / .55); font-size: .8rem; }
.ui__tag { padding: 4px 10px; border-radius: 999px; background: rgb(139 61 255 / .22); color: #D9C2FF; font-size: .74rem; }
.ui__big { font-family: var(--display-en); font-size: clamp(2rem, 1.2rem + 2vw, 2.8rem); font-weight: 700; color: var(--white); letter-spacing: -.03em; direction: ltr; text-align: start; }
[dir="rtl"] .ui__big { text-align: right; }
.ui__big small { font-size: .45em; color: #C9A7FF; }
.ui__bars { display: grid; gap: 7px; }
.ui__bars i, .ui__meter i { display: block; height: 7px; border-radius: 4px; background: linear-gradient(90deg, #8B3DFF var(--w), rgb(255 255 255 / .08) var(--w)); }
[dir="rtl"] .ui__bars i, [dir="rtl"] .ui__meter i { background: linear-gradient(270deg, #8B3DFF var(--w), rgb(255 255 255 / .08) var(--w)); }
.ui__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.ui__q { font-family: var(--display-en); font-size: 2.2rem; font-weight: 700; color: var(--white); text-align: center; direction: ltr; }
.ui__choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; direction: ltr; }
.ui__choices span { padding: 10px; border-radius: 12px; border: 1px solid rgb(255 255 255 / .16); text-align: center; font-size: 1.15rem; }
.ui__choices .is-on { border-color: #9C5CFF; background: rgb(139 61 255 / .28); color: var(--white); }
.ui__cols { display: flex; align-items: flex-end; gap: 8px; height: 120px; direction: ltr; }
.ui__cols i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(to top, #5A1FB0, #A66BFF); }
.ui--chain { gap: 10px; }
.ui__node { position: relative; padding: 11px 14px; border-radius: 12px; border: 1px solid rgb(255 255 255 / .14); }
.ui__node + .ui__node { margin-inline-start: 20px; }
.ui__node.is-on { border-color: #9C5CFF; background: rgb(139 61 255 / .2); color: var(--white); }
.ui--flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.ui--flow span { padding: 9px 12px; border-radius: 10px; border: 1px solid rgb(255 255 255 / .16); font-size: .82rem; }
.ui--flow span.is-on { border-color: #9C5CFF; background: rgb(139 61 255 / .28); color: var(--white); }
.ui--flow i { width: 14px; height: 1.5px; background: #9C5CFF; }
.ui__meter { display: grid; gap: 6px; font-size: .78rem; color: rgb(255 255 255 / .6); }

/* ---------- 05 principles ---------- */
.principles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 48px; }
.principles > h2 { grid-column: 1 / 6; align-self: start; }
.rules { grid-column: 7 / -1; display: grid; }
.rules li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding-block: 26px; border-block-start: 1px solid var(--rule); }
.rules__n { font-family: var(--display-en); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); line-height: 1; color: var(--ink); }
.rules p { color: var(--ink-2); font-size: clamp(1rem, .95rem + .25vw, 1.15rem); }
.rules b { color: var(--ink); }

/* ---------- 06 close ---------- */
.close { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(48px, 6vw, 96px); }
.close > h2 { grid-column: 1 / 8; }
.close .pairs { grid-column: 8 / -1; align-self: end; }
.close__panel { grid-column: 1 / -1; aspect-ratio: 1600 / 520; min-height: 280px; display: grid; place-items: center; }
.close__panel .wave { position: absolute; inset: 0; opacity: .55; }
.close__lockup { position: relative; z-index: 1; display: grid; justify-items: center; gap: clamp(18px, 2.4vw, 32px); width: min(58%, 640px); }
.panel .close__mark { width: clamp(64px, 9vw, 128px); height: auto; aspect-ratio: 1; fill: #9C5CFF; }
.close__word { width: 100%; height: auto; }

/* ---------- footer ---------- */
.foot { border-block-start: 1px solid var(--rule); padding: 40px var(--pad) 36px; }
.foot__in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px 40px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: center; font-family: var(--text-en); font-size: .95rem; }
.foot__nav > * { min-height: 44px; display: inline-flex; align-items: center; }
.foot__nav a { color: var(--ink-2); }
.foot__nav a:hover { color: var(--brand); }
.foot__meta { display: grid; gap: 2px; text-align: end; font-size: .85rem; color: var(--ink-3); }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .top__nav, .top__end .btn { display: none; }
  .menu-btn { display: block; }
  .top__end { margin-inline-start: auto; }
  .hero { min-height: auto; grid-template-rows: auto; row-gap: 40px; }
  .hero__pair { grid-column: 1 / -1; grid-row: auto; }
  .hero__title { grid-column: 1 / -1; grid-row: auto; margin: 0; }
  .hero__actions { grid-column: 1 / -1; grid-row: auto; }
  .hero__panel { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; margin: 0; }
  .essence__title, .essence .pairs, .work > h2, .work__pair, .principles > h2, .rules, .close > h2, .close .pairs { grid-column: 1 / -1; }
  .eco__panel { grid-column: 1 / -1; position: relative; top: auto; aspect-ratio: 16 / 11; }
  .eco__list { grid-column: 1 / -1; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- phone ---------- */
@media (max-width: 680px) {
  :root { --top-h: 72px; }
  .logo__mark { width: 34px; height: 34px; }
  .logo__name { font-size: 1.12rem; }
  .pair { grid-template-columns: 1fr; }
  .hero__panel { aspect-ratio: 1; }
  .hero__actions .btn { flex: 1 1 100%; }
  .panel--wide { aspect-ratio: 16 / 10; }
  .products { grid-template-columns: 1fr; }
  .prod__panel { aspect-ratio: 16 / 11; }
  .rules li { grid-template-columns: 48px 1fr; }
  .close__panel { aspect-ratio: 4 / 5; }
  .close__lockup { width: 76%; }
  .foot__in { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .foot__meta { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ============================================================================
   MOTION v2 — the mark assembles, routes carry signals, depth responds.
   Canva Motion Principles: sequential routes, controlled timing, smooth
   deceleration, no bounce, no glow pulses, no floating objects.
   ========================================================================== */
.mk-b, .mk-d { transform-box: fill-box; transform-origin: center; }
.close__panel { perspective: 1200px; }
.close__lockup { transition: transform 1.2s var(--ease); transform: translate3d(var(--dx, 0), var(--dy, 0), 0); }
.panel .close__mark { transform: rotate(var(--spin, 0deg)); transition: transform .9s var(--ease); overflow: visible; }
.eco-core__turn { transform-box: fill-box; transform-origin: center; transform: rotate(var(--turn, 0deg)); transition: transform 1.1s var(--ease); }
.eco-signal { fill: #F3EAFF; opacity: 0; }
.sig { fill: #F3EAFF; opacity: 0; }
.wave__signal { fill: #F3EAFF; opacity: 0; }
.essence__panel .wave { transform: translate3d(var(--drift, 0px), 0, 0) scale(1.06); transition: transform .6s linear; }

@media (prefers-reduced-motion: no-preference) {
  /* header mark assembles once on load */
  .js .mk--head .mk-b { animation: mk-blade 1.1s var(--ease) both; }
  .js .mk--head .mk-b2 { animation-delay: .08s; } .js .mk--head .mk-b3 { animation-delay: .16s; } .js .mk--head .mk-b4 { animation-delay: .24s; }
  .js .mk--head .mk-d { animation: mk-drop .7s var(--ease) both; animation-delay: .55s; }
  .js .mk--head .mk-d2 { animation-delay: .62s; } .js .mk--head .mk-d3 { animation-delay: .69s; } .js .mk--head .mk-d4 { animation-delay: .76s; }

  /* closing lockup: blades arrive from their own directions, drops lock, wordmark wipes in */
  .js .close__panel:not(.is-in) .mk--close .mk-b,
  .js .close__panel:not(.is-in) .mk--close .mk-d,
  .js .close__panel:not(.is-in) .close__word { opacity: 0; }
  .js .close__panel.is-in .mk--close .mk-b1 { animation: mk-in-ne 1.3s var(--ease) both .1s; }
  .js .close__panel.is-in .mk--close .mk-b2 { animation: mk-in-se 1.3s var(--ease) both .2s; }
  .js .close__panel.is-in .mk--close .mk-b3 { animation: mk-in-sw 1.3s var(--ease) both .3s; }
  .js .close__panel.is-in .mk--close .mk-b4 { animation: mk-in-nw 1.3s var(--ease) both .4s; }
  .js .close__panel.is-in .mk--close .mk-d { animation: mk-drop .8s var(--ease) both; }
  .js .close__panel.is-in .mk--close .mk-d1 { animation-delay: 1.05s; } .js .close__panel.is-in .mk--close .mk-d2 { animation-delay: 1.15s; }
  .js .close__panel.is-in .mk--close .mk-d3 { animation-delay: 1.25s; } .js .close__panel.is-in .mk--close .mk-d4 { animation-delay: 1.35s; }
  .js .close__panel.is-in .close__word { animation: wipe 1.2s var(--ease) both 1.35s; }

  /* ecosystem: a signal travels core → active surface */
  .eco-route.is-on .eco-signal { animation: travel 2.2s var(--ease) infinite; }
  /* hero radial: signals leave the core along engineered spokes */
  .js .hero__panel.is-in .sig { animation: travel 3.6s cubic-bezier(.45, 0, .2, 1) infinite; animation-delay: calc(1.6s + var(--k) * 320ms); }
  /* essence wave: one signal runs the axis */
  .js .essence__panel.is-in .wave__signal { animation: axis-run 5.5s cubic-bezier(.45, 0, .55, 1) infinite 1.4s; }

  /* headings reveal line by line when they enter */
  .js [data-lines] > span { clip-path: inset(0 0 100% 0); transform: translateY(.35em); transition: clip-path 1s var(--ease), transform 1s var(--ease); }
  .js [data-lines] > span:nth-child(2) { transition-delay: .12s; }
  .js [data-lines].is-in > span { clip-path: inset(0 0 -.25em 0); transform: none; }

  /* product UIs: data populates in measured sequence */
  .js .prod__panel:not(.is-in) .ui__cols i { transform: scaleY(0); }
  .js .prod__panel.is-in .ui__cols i { transform-origin: bottom; transition: transform .9s var(--ease); }
  .js .prod__panel.is-in .ui__cols i:nth-child(2) { transition-delay: .06s; } .js .prod__panel.is-in .ui__cols i:nth-child(3) { transition-delay: .12s; }
  .js .prod__panel.is-in .ui__cols i:nth-child(4) { transition-delay: .18s; } .js .prod__panel.is-in .ui__cols i:nth-child(5) { transition-delay: .24s; }
  .js .prod__panel.is-in .ui__cols i:nth-child(6) { transition-delay: .30s; } .js .prod__panel.is-in .ui__cols i:nth-child(7) { transition-delay: .36s; }
  .js .prod__panel.is-in .ui__cols i:nth-child(8) { transition-delay: .42s; }
  .js .prod__panel:not(.is-in) .ui__bars i, .js .prod__panel:not(.is-in) .ui__meter i { transform: scaleX(0); }
  .js .prod__panel.is-in .ui__bars i, .js .prod__panel.is-in .ui__meter i { transform-origin: left; transition: transform 1.1s var(--ease) .2s; }
  [dir="rtl"] .js .prod__panel.is-in .ui__bars i, [dir="rtl"] .js .prod__panel.is-in .ui__meter i { transform-origin: right; }
}
@keyframes mk-blade { from { opacity: 0; transform: rotate(-80deg) scale(.4); } }
@keyframes mk-drop { from { opacity: 0; transform: scale(0); } }
@keyframes mk-in-ne { from { opacity: 0; transform: translate(260px, -260px) rotate(-60deg); } }
@keyframes mk-in-se { from { opacity: 0; transform: translate(260px, 260px) rotate(-60deg); } }
@keyframes mk-in-sw { from { opacity: 0; transform: translate(-260px, 260px) rotate(-60deg); } }
@keyframes mk-in-nw { from { opacity: 0; transform: translate(-260px, -260px) rotate(-60deg); } }
@keyframes wipe { from { opacity: 1; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes travel {
  0%   { opacity: 0; transform: translate(var(--sx), var(--sy)); }
  12%  { opacity: 1; }
  70%  { opacity: 1; transform: translate(0, 0); }
  100% { opacity: 0; transform: translate(0, 0); }
}
@keyframes axis-run { 0% { opacity: 0; transform: translateX(0); } 8% { opacity: 1; } 92% { opacity: 1; } 100% { opacity: 0; transform: translateX(1600px); } }
