/* ============================================================
   مجله‌خوان — صفحه «درباره ما»
   Cinematic / dark / system-teller experience
   Design tokens → scenes → responsive → reduced-motion
   ============================================================ */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../vendor/vazirmatn/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../vendor/vazirmatn/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* ---------- tokens ---------- */
:root {
    --bg: #04060b;
    --bg-2: #070a12;
    --surface: rgba(148, 172, 205, 0.03);
    --line: rgba(130, 160, 200, 0.14);
    --line-soft: rgba(130, 160, 200, 0.07);
    --ink: #e8edf4;
    --ink-soft: #93a0b2;
    --ink-faint: #5a6a7e;
    --acc: #54d8ff;
    --acc-dim: rgba(84, 216, 255, 0.5);
    --acc-soft: rgba(84, 216, 255, 0.12);
    --ok: #4dffb0;
    --shadow-glow: 0 0 34px -6px rgba(84, 216, 255, 0.35);
    --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
    --mono: "SF Mono", "Cascadia Code", Consolas, "Segoe UI Mono", "Liberation Mono", Menlo, monospace;
    --font: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
}

.a-body {
    min-height: 100vh;
    background:
        radial-gradient(1200px 800px at 50% -10%, rgba(50, 120, 180, 0.10), transparent 60%),
        radial-gradient(900px 700px at 85% 50%, rgba(40, 200, 160, 0.05), transparent 55%),
        var(--bg);
    background-attachment: fixed;
    color: var(--ink);
    font-family: var(--font);
    line-height: 1.9;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.a-body::selection { background: rgba(84, 216, 255, 0.28); }

.a-body::-webkit-scrollbar { width: 9px; }
.a-body::-webkit-scrollbar-track { background: var(--bg); }
.a-body::-webkit-scrollbar-thumb { background: #1b2434; border-radius: 9px; }
.a-body::-webkit-scrollbar-thumb:hover { background: #26324a; }

.aclinic {
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background:
        linear-gradient(rgba(130, 160, 200, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(90deg, rgba(130, 160, 200, 0.035) 1px, transparent 1px) 0 0 / 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 78%);
    mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 78%);
    opacity: 0.55;
}

/* ---------- nav (nearly invisible → appears on scroll/mouse) ---------- */
.anav {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1.6rem;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), background 0.6s var(--ease), border-color 0.6s var(--ease);
    border-bottom: 1px solid transparent;
    pointer-events: none;
}

.a-body.s-nav .anav {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: rgba(4, 6, 11, 0.62);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line-soft);
}

.anav-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.alogo-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 12px rgba(77, 255, 176, 0.8);
    animation: dotpulse 2.4s var(--ease) infinite;
}

.anav-links {
    display: flex;
    align-items: center;
    gap: 1.7rem;
    list-style: none;
}

.anav-links a {
    position: relative;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.92rem;
    padding: 0.5rem 0.1rem;
    transition: color 0.3s var(--ease);
}

.anav-links a::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    height: 1px;
    width: 100%;
    background: var(--acc);
    transform: scaleX(0);
    transform-origin: 100% 50%;
    transition: transform 0.35s var(--ease);
}

.anav-links a:hover { color: var(--ink); }
.anav-links a:hover::after { transform: scaleX(1); }

.anav-links a:focus-visible {
    outline: 2px solid var(--acc-dim);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ---------- scene shell ---------- */
.astage { position: relative; z-index: 2; }

.scene {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: clamp(5rem, 10vh, 8rem) clamp(1.2rem, 6vw, 6rem);
    overflow: hidden;
}

.a-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.acc { color: var(--acc); }
.dim { color: var(--ink-soft); }
.small { font-size: 0.92em; }

.sentence {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    max-width: 46ch;
    position: relative;
    z-index: 2;
}

.sentence.center { align-items: center; }
.sentence.short { gap: 0.1rem; margin-top: 0.4rem; }

.scene-index, .scene-note {
    position: absolute;
    font-family: var(--mono);
    color: var(--ink-faint);
    letter-spacing: 0.28em;
    font-size: 0.68rem;
    text-transform: uppercase;
    z-index: 2;
}

.scene-index { bottom: 1.6rem; inset-inline-start: 1.8rem; }
.scene-note { bottom: 1.6rem; inset-inline-end: 1.8rem; text-align: center; max-width: 60ch; }

/* ---------- reveal choreography ---------- */
.js .scene .l:not(.final-line),
.js .scene .core-line,
.js .scene .il,
.js .scene .fl {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(7px);
    transition:
        opacity 1s var(--ease),
        transform 1.1s var(--ease),
        filter 1.1s var(--ease);
    will-change: opacity, transform, filter;
}

.js .sentence .l:not(.final-line):nth-child(2) { transition-delay: 0.12s; }
.js .sentence .l:not(.final-line):nth-child(3) { transition-delay: 0.24s; }
.js .sentence .l:not(.final-line):nth-child(4) { transition-delay: 0.4s; }

.js .s1 .l:nth-child(1) { transition-delay: 0s; }
.js .s1 .l:nth-child(2) { transition-delay: 0.18s; }
.js .s1 .l:nth-child(3) { transition-delay: 0.4s; }

.js .core-line:nth-child(2) { transition-delay: 0.15s; }
.js .core-line:nth-child(3) { transition-delay: 0.3s; }
.js .core-line:nth-child(4) { transition-delay: 0.5s; }

.js .il:nth-child(1) { transition-delay: 0.1s; }
.js .il:nth-child(2) { transition-delay: 0.6s; }
.js .il:nth-child(3) { transition-delay: 1.1s; }
.js .il:nth-child(4) { transition-delay: 1.6s; }

.js .fl:nth-child(1) { transition-delay: 0.1s; }
.js .fl:nth-child(2) { transition-delay: 0.75s; }
.js .fl:nth-child(3) { transition-delay: 1.4s; }

.js .scene.on .l:not(.final-line),
.js .scene.on .core-line,
.js .scene.on .il,
.js .scene.on .fl {
    opacity: 1;
    transform: none;
    filter: none;
}

/* hero uses pure animation (fills only), keep out of transition reveal */
.js .hero-inner > * { animation: heroUp 1.1s var(--ease) both; }
.js .hero-inner > *:nth-child(1) { animation-delay: 0.1s; }
.js .hero-inner > *:nth-child(2) { animation-delay: 0.3s; }
.js .hero-inner > *:nth-child(3) { animation-delay: 0.5s; }
.hero { text-align: center; }

.hero-canvas { opacity: 0.75; }

.hero-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(130, 160, 200, 0.05) 1px, transparent 1px) 0 0 / 64px 64px,
        linear-gradient(90deg, rgba(130, 160, 200, 0.05) 1px, transparent 1px) 0 0 / 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 72%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 72%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    max-width: 1000px;
    padding: 1rem;
}

.tick {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    color: var(--ink-soft);
    border: 1px solid var(--line-soft);
    background: var(--surface);
    border-radius: 999px;
    padding: 0.42rem 1.1rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    direction: ltr;
}

.tick-label {
    color: var(--ok);
    font-weight: 600;
}

.tick-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 10px rgba(77, 255, 176, 0.85);
    animation: dotpulse 2.2s var(--ease) infinite;
}

.tick-gap {
    width: 1px;
    height: 13px;
    background: var(--line);
}

.tick-status {
    color: var(--acc);
    font-weight: 600;
    transition: opacity 0.4s var(--ease);
}

.tick-status.fading { opacity: 0; }

.hero-title {
    font-size: clamp(2.1rem, 6vw, 4.4rem);
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.hero-sub {
    color: var(--ink-soft);
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    max-width: 42ch;
    text-wrap: balance;
}

.scrollcue {
    position: absolute;
    bottom: 1.9rem;
    inset-inline-start: 50%;
    translate: -50% 0;
    width: 22px;
    height: 38px;
    border: 1px solid var(--ink-faint);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 7px;
    z-index: 2;
}

.scrollcue span {
    width: 3px;
    height: 9px;
    border-radius: 3px;
    background: var(--acc);
    animation: scrollcue 2s var(--ease) infinite;
}

@keyframes dotpulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.82); } }
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); filter: blur(7px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- scene 1 : entry ---------- */
.s1 .circuit {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, transparent 0, transparent 34%, rgba(84, 216, 255, 0.06) 35%, transparent 36%, transparent 60%, rgba(84, 216, 255, 0.05) 61%, transparent 62%, transparent 78%, rgba(84, 216, 255, 0.04) 79%, transparent 80%),
        radial-gradient(circle at 50% 50%, rgba(40, 120, 170, 0.10), transparent 55%);
    animation: breathe 9s ease-in-out infinite;
    z-index: 0;
}

@keyframes breathe { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

.s1 .l { font-size: clamp(1.3rem, 3.4vw, 2.3rem); font-weight: 500; }
.s1 .l.emph { font-weight: 800; font-size: clamp(1.6rem, 4.4vw, 3.2rem); color: var(--acc); text-shadow: var(--shadow-glow); }

/* ---------- scene 2 : pages processed ---------- */
.s2 .l { font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 500; }

.counter {
    position: relative;
    z-index: 2;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.counter-label {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.38em;
    color: var(--ink-soft);
}

.counter-num {
    font-family: var(--mono);
    font-size: clamp(2.6rem, 9vw, 6.5rem);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
    color: var(--ink);
    background: linear-gradient(180deg, #eef4fb, var(--ink-soft));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.15;
    text-shadow: 0 0 40px rgba(84, 216, 255, 0.12);
}

.counter-note { font-size: 0.75rem; color: var(--ink-faint); }

/* ---------- scene 3 : converge ---------- */
.s3 .l { font-size: clamp(1.3rem, 3.4vw, 2.3rem); font-weight: 500; }
.s3 .l.emph { font-weight: 800; font-size: clamp(1.6rem, 4.4vw, 3.2rem); color: var(--acc); text-shadow: var(--shadow-glow); }

.converge {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.cwin {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 92px;
    height: 60px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(10, 16, 26, 0.85);
    box-shadow: 0 4px 24px -8px rgba(0, 0, 0, 0.7);
    opacity: 0.25;
    transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px))) scale(1);
    transition: transform 2.2s var(--ease), opacity 2.2s var(--ease);
}

.cwin::before {
    content: "";
    display: block;
    height: 14px;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(84, 216, 255, 0.04);
    border-radius: 7px 7px 0 0;
}

.cwin span {
    display: block;
    height: 3px;
    width: 62%;
    margin: 8px 8px 0;
    background: linear-gradient(90deg, rgba(84, 216, 255, 0.3), transparent);
    border-radius: 2px;
}

.converge-core {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--acc) 0%, rgba(84, 216, 255, 0.35) 40%, transparent 70%);
    box-shadow: 0 0 34px rgba(84, 216, 255, 0.5);
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 1s var(--ease) 1.6s, transform 1.6s var(--ease) 1.6s;
}

.s3.on .converge-core { opacity: 1; transform: scale(1); }

.s3.on .cwin { opacity: 0; }
.s3.on .cwin:nth-child(-n+8) { transform: translate(-50%, -50%) scale(0.25); transition-duration: 2.4s, 2.4s; }

.s3.on .cwin:nth-child(1)  { transition-delay: 0.05s; }
.s3.on .cwin:nth-child(2)  { transition-delay: 0.18s; }
.s3.on .cwin:nth-child(3)  { transition-delay: 0.1s; }
.s3.on .cwin:nth-child(4)  { transition-delay: 0.3s; }
.s3.on .cwin:nth-child(5)  { transition-delay: 0.4s; }
.s3.on .cwin:nth-child(6)  { transition-delay: 0.22s; }
.s3.on .cwin:nth-child(7)  { transition-delay: 0.5s; }
.s3.on .cwin:nth-child(8)  { transition-delay: 0.13s; }
.s3.on .cwin:nth-child(9)  { transition-delay: 0.6s; }
.s3.on .cwin:nth-child(10) { transition-delay: 0.35s; }

/* ---------- scene 4 : dark surrender ---------- */
.s4 { background: radial-gradient(ellipse 60% 50% at 50% 50%, #070a12, #02030a 78%); }

.s4-fog {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 42% at 50% 50%, transparent 0%, rgba(2, 3, 10, 0.8) 78%);
    z-index: 0;
}

.s4 .sentence { z-index: 2; }
.s4 .l { font-size: clamp(1.1rem, 2.6vw, 1.7rem); font-weight: 500; }
.s4 .l.big { font-size: clamp(1.9rem, 5vw, 3.6rem); font-weight: 800; margin-top: 1.4rem; color: var(--ink); text-shadow: none; }
.s4 .l[data-delay] { transition-delay: 1.1s; }

.s4 .l.big:hover { color: var(--acc); text-shadow: var(--shadow-glow); }

/* ---------- speed ---------- */
.speed { flex-direction: column; gap: 2rem; }

.speed-wrap {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(1.4rem, 4vw, 3.6rem);
    width: 100%;
    max-width: 1080px;
}

.speed-side { display: flex; flex-direction: column; gap: 1rem; }
.speed-side.ai { align-items: flex-end; text-align: start; }

.speed-t {
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line-soft);
    width: fit-content;
}

.speed-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.speed-list li {
    font-family: var(--mono);
    font-size: clamp(0.85rem, 1.8vw, 1.05rem);
    letter-spacing: 0.2em;
    color: var(--ink-soft);
    padding: 0.28rem 0.5rem;
    border-radius: 6px;
    transition: color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
    width: fit-content;
}

.speed-side:hover .speed-list li:nth-child(1) { transition-delay: 0s; }
.speed-list li:hover { color: var(--ink); background: var(--surface); transform: translateX(-3px); }
.speed-side.ai .speed-list li { direction: ltr; }
.speed-side.ai .speed-list li:hover { transform: translateX(3px); color: var(--acc); }

.speed-side.ai .speed-list li { color: var(--acc-dim); }
.speed-side.ai .speed-list li:hover { color: var(--acc); }

.speed-line {
    position: relative;
    width: 8px;
    height: min(240px, 34vh);
}

.speed-line::before {
    content: "";
    position: absolute;
    inset-inline-start: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--line), transparent);
}

.speed-marker {
    position: absolute;
    inset-inline-start: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.speed-marker span {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    animation: ring 2.6s var(--ease) infinite;
}

.m-human { top: 22%; background: var(--ink-soft); box-shadow: 0 0 10px rgba(220, 226, 236, 0.4); animation: dropSlow 8s var(--ease) infinite; }
.m-ai { bottom: 22%; background: var(--acc); box-shadow: 0 0 14px rgba(84, 216, 255, 0.7); animation: dropFast 3.4s ease-in-out infinite; }

.m-human span { border: 1px solid rgba(220, 226, 236, 0.35); animation-duration: 4s; }
.m-ai span { border: 1px solid var(--acc-dim); animation-duration: 1.8s; }

@keyframes dropSlow { 0% { transform: translateY(0); } 50% { transform: translateY(46%); } 100% { transform: translateY(0); } }
@keyframes dropFast { 0% { transform: translateY(0); } 40% { transform: translateY(190%); } 70% { transform: translateY(60%); } 100% { transform: translateY(0); } }
@keyframes ring { 0% { transform: scale(0.7); opacity: 0.9; } 100% { transform: scale(1.9); opacity: 0; } }

.speed .scene-note { position: static; margin-top: 0.2rem; }

/* ---------- internet : live network ---------- */
.internet .net-canvas { opacity: 0.55; }

.net-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.4rem;
    text-align: center;
}

.net-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
}

.chip {
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border: 1px solid var(--line-soft);
    background: var(--surface);
    padding: 0.42rem 0.95rem;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.chip.pulse { color: var(--acc); border-color: var(--acc-dim); animation: chipPulse 2.6s ease-in-out infinite; }

@keyframes chipPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(84, 216, 255, 0.0); } 50% { box-shadow: 0 0 18px 0 rgba(84, 216, 255, 0.18); } }

.internet .l { font-size: clamp(1.3rem, 3.4vw, 2.3rem); font-weight: 500; }
.internet .l.emph { font-weight: 800; font-size: clamp(1.7rem, 4.6vw, 3.3rem); color: var(--acc); text-shadow: var(--shadow-glow); }

/* ---------- transition scene ---------- */
.transition .trans-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.transition .l { font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 500; }
.transition .l.final-line { font-weight: 700; opacity: 0; transform: translateY(16px); filter: blur(6px); transition: opacity 1s var(--ease) 0.2s, transform 1s var(--ease) 0.2s, filter 1s var(--ease) 0.2s; }
.transition .l.final-line.show { opacity: 1; transform: none; filter: none; }

.trans-stage {
    min-height: 4.6rem;
    display: grid;
    place-items: center;
    font-family: var(--mono);
    font-size: clamp(1.9rem, 6vw, 4rem);
    letter-spacing: 0.08em;
    color: var(--acc);
    text-shadow: var(--shadow-glow);
    direction: ltr;
}

.trans-word {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    filter: blur(6px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
}

.trans-word.show { opacity: 1; transform: none; filter: none; }
.trans-word.hide { opacity: 0; transform: translateY(-10px) scale(0.98); filter: blur(6px); }

/* ---------- core message ---------- */
.core { flex-direction: column; gap: 0.7rem; text-align: center; }

.core-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 46% 40% at 50% 50%, rgba(84, 216, 255, 0.10), transparent 70%);
    animation: breathe 7s ease-in-out infinite;
    z-index: 0;
}

.core-line {
    position: relative;
    font-size: clamp(1.6rem, 4.6vw, 3.4rem);
    font-weight: 500;
    line-height: 1.7;
    z-index: 2;
}

.core-line.acc { font-weight: 800; color: var(--acc); text-shadow: var(--shadow-glow); }

/* ---------- architecture loop ---------- */
.arch { flex-direction: column; gap: 1.6rem; }

.arch-flow {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.arch-node {
    font-family: var(--mono);
    font-size: clamp(0.8rem, 1.9vw, 1.05rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.7rem 2.1rem;
    background: var(--surface);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: border-color 0.5s var(--ease), color 0.5s var(--ease), box-shadow 0.5s var(--ease);
    width: min(340px, 82vw);
    text-align: center;
}

.arch-node:hover {
    border-color: var(--acc-dim);
    color: var(--acc);
    box-shadow: var(--shadow-glow);
}

.arch-conn {
    position: relative;
    width: 1px;
    height: 44px;
    background: var(--line);
    overflow: hidden;
}

.arch-conn span {
    position: absolute;
    inset-inline-start: 50%;
    top: -8px;
    translate: -50% 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--acc);
    box-shadow: 0 0 10px rgba(84, 216, 255, 0.8);
    animation: flowDown 2.2s var(--ease) infinite;
}

.arch-conn span::before {
    content: "";
    position: absolute;
    top: -22px;
    left: -1px;
    width: 2px;
    height: 24px;
    background: linear-gradient(180deg, transparent, rgba(84, 216, 255, 0.5));
}

@keyframes flowDown { from { top: -8px; opacity: 0; } 15% { opacity: 1; } to { top: calc(100% + 6px); opacity: 0; } }

.arch-loop {
    position: absolute;
    inset-inline-start: calc(50% + 150px);
    top: 0;
    bottom: 0;
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0;
    transition: opacity 1s var(--ease) 0.6s;
}

.s3.on .converge-core { transform: scale(1); }

.arch.on .arch-loop { opacity: 1; }

.arch-loop-line {
    position: relative;
    width: 1px;
    flex: 1;
    background: linear-gradient(180deg, var(--acc-dim), transparent 85%);
    overflow: hidden;
}

.arch-loop-line::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: 50%;
    translate: -50% 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--acc);
    box-shadow: 0 0 12px rgba(84, 216, 255, 0.9);
    animation: flowUp 3.4s linear infinite;
}

@keyframes flowUp { from { top: calc(100% + 2px); } to { top: -6px; } }

.arch-loop-label {
    font-size: 0.72rem;
    color: var(--ink-faint);
    white-space: nowrap;
    font-weight: 500;
}

.arch .scene-note { position: static; margin-top: 1.2rem; }

/* ---------- timeline ---------- */
.time { flex-direction: column; gap: 2.6rem; }

.time .l { font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 500; text-align: center; }
.time .sentence.short .l { font-size: clamp(1rem, 2.4vw, 1.4rem); }

.timeline {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    width: min(880px, 92vw);
    padding: 0 0.4rem;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 4px;
    inset-inline: 3%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line) 8%, var(--line) 92%, transparent);
}

.timeline::after {
    content: "";
    position: absolute;
    top: 2px;
    inset-inline-start: 3%;
    width: 12px;
    height: 5px;
    border-radius: 4px;
    background: var(--acc);
    filter: blur(1px);
    box-shadow: 0 0 10px var(--acc);
    animation: timeSweep 6s var(--ease) infinite;
}

@keyframes timeSweep { 0% { inset-inline-start: 3%; } 55% { inset-inline-start: 90%; } 100% { inset-inline-start: 90%; } }

.tp {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
}

.tp i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10182a;
    border: 1px solid var(--line);
}

.tp.done i { background: var(--ink-faint); box-shadow: 0 0 8px rgba(90, 106, 126, 0.5); }

.tp.now { color: var(--ink); }
.tp.now i {
    background: var(--acc);
    box-shadow: 0 0 16px var(--acc);
    animation: dotpulse 2.2s var(--ease) infinite;
}

/* ---------- fear (subtle) ---------- */
.fear { flex-direction: column; gap: 0.9rem; text-align: center; max-width: 760px; }

.fear-text {
    font-size: clamp(1.05rem, 2.5vw, 1.6rem);
    line-height: 2.1;
    font-weight: 500;
    max-width: 52ch;
    text-wrap: balance;
}

.fear-text.dim { color: var(--ink-soft); }

.fear-word {
    font-weight: 800;
    color: var(--acc);
    text-shadow: 0 0 26px rgba(84, 216, 255, 0.55);
    animation: fearGlow 3.6s ease-in-out infinite;
    display: inline-block;
}

@keyframes fearGlow { 0%, 100% { text-shadow: 0 0 10px rgba(84, 216, 255, 0.25); } 50% { text-shadow: 0 0 30px rgba(84, 216, 255, 0.65); } }

/* ---------- interaction ---------- */
.interact { flex-direction: column; gap: 1.3rem; text-align: center; }

.interact-lines { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 1.3rem; }

.interact .il {
    font-size: clamp(1.35rem, 3.6vw, 2.5rem);
    font-weight: 600;
    line-height: 1.75;
}

.interact .il:hover { color: var(--acc); }

/* ---------- final ---------- */
.final {
    background: radial-gradient(ellipse 70% 55% at 50% 45%, #05070d, #02030a 85%);
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.final::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg) 0%, transparent 12%, transparent 88%, var(--bg) 100%);
    pointer-events: none;
    z-index: 1;
}

.final .fl {
    position: relative;
    z-index: 2;
    font-size: clamp(1.6rem, 4.6vw, 3.3rem);
    font-weight: 600;
    line-height: 1.8;
}

.final .fl.big { font-weight: 800; }

.final-status {
    position: relative;
    z-index: 2;
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.3em;
    color: var(--ink-soft);
    direction: ltr;
}

.final-status .tick-dot { width: 7px; height: 7px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .anav { padding: 0.7rem 1rem; }
    .anav-links { gap: 1rem; display: none; }
    .a-body.s-nav .anav-links { display: flex; }
    .anav-links a { font-size: 0.84rem; }
    .a-body.s-nav .anav-links { flex-wrap: wrap; row-gap: 0.2rem; }

    .speed-wrap { grid-template-columns: 1fr; gap: 1.6rem; justify-items: center; }
    .speed-side, .speed-side.ai { align-items: center; text-align: center; }
    .speed-line { height: 60px; width: min(70vw, 420px); }
    .speed-line::before { inset: 50% auto auto 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
    .speed-marker { top: 50%; }
    .m-human { top: 50%; inset-inline-start: 12%; animation: none; }
    .m-ai { top: 50%; inset-inline-start: 84%; animation: none; }
    .speed-list li, .speed-side.ai .speed-list li { direction: ltr; }

    .arch-loop { display: none; }

    .scene-index, .scene-note { display: none; }

    .cwin { width: 64px; height: 42px; }

    .scrollcue { display: none; }
}

@media (max-width: 560px) {
    .anav-links { gap: 0.7rem; }
    .anav-links a { font-size: 0.78rem; }
    .anav-logo span:last-child { font-size: 0.92rem; }

    .tick { font-size: 0.68rem; letter-spacing: 0.16em; }
    .hero-title { line-height: 1.5; }

    .converge { opacity: 0.4; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .a-canvas { display: none; }

    .js .hero-inner > *,
    .js .scene .l,
    .js .scene .core-line,
    .js .scene .il,
    .js .scene .fl {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
        animation: none;
    }

    .tick-dot, .alogo-dot, .scrollcue span, .speed-marker span, .arch-conn span,
    .arch-loop-line::before, .fear-word, .chip.pulse, .timeline::after,
    .tp.now i, .s1 .circuit, .core-glow {
        animation: none;
    }

    .anav, .a-body.s-nav .anav { transition: none; }
    .s3.on .converge-core { transition: none; }
    .transition .l.final-line { transition: none; }
    .trans-word { transition: none; }
}