/* ==========================================================================
   Mostafa Saeed — public site design system
   Dark "engineered" look · aurora backdrop · kinetic type · glass surfaces
   Standalone: no Bootstrap / theme CSS is needed by the public pages.
   ========================================================================== */

:root {
    --bg: #04060f;
    --bg-2: #070b1c;
    --ink: #eaf2ff;
    --muted: #8d9bbd;
    --faint: #5c6a8c;
    --line: rgba(202, 232, 255, 0.11);
    --line-strong: rgba(202, 232, 255, 0.22);
    --glass: rgba(255, 255, 255, 0.035);
    --glass-2: rgba(255, 255, 255, 0.065);
    --brand: #cae8ff;
    --accent: #7fb2ff;
    --accent-2: #9b8cff;
    --accent-3: #5ee9d0;
    --ok: #4ade80;
    --grad: linear-gradient(120deg, #cae8ff 0%, #7fb2ff 45%, #9b8cff 100%);
    --radius: 28px;
    --radius-sm: 16px;
    --gutter: clamp(20px, 4vw, 48px);
    --max: 1280px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
    --f-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
    --f-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--accent); color: #04060f; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: clamp(80px, 11vw, 160px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 100px); }

/* ---------- Atmosphere ---------- */
.fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: var(--bg); }
.fx__grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(202, 232, 255, 0.16) 1px, transparent 1.2px);
    background-size: 34px 34px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
    opacity: 0.5;
}
.fx__blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; will-change: transform; }
.fx__blob--a { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: #1b3aff; animation: drift-a 22s ease-in-out infinite alternate; }
.fx__blob--b { width: 40vw; height: 40vw; right: -10vw; top: 10vh; background: #6a4dff; opacity: 0.4; animation: drift-b 26s ease-in-out infinite alternate; }
.fx__blob--c { width: 34vw; height: 34vw; left: 30vw; bottom: -18vw; background: #0aa5c7; opacity: 0.28; animation: drift-a 30s ease-in-out infinite alternate-reverse; }
.fx__noise {
    position: absolute; inset: 0; opacity: 0.07; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes drift-a { to { transform: translate3d(10vw, 8vh, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-12vw, 14vh, 0) scale(0.9); } }

.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 120; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); }

/* ---------- Preloader + page transition ---------- */
.preloader {
    position: fixed; inset: 0; z-index: 200; background: var(--bg);
    display: grid; place-items: center;
}
.pre-done .preloader, .reduced .preloader, html:not(.js) .preloader, html:not(.js) .curtain { display: none; }
.preloader__inner { text-align: center; }
.preloader__mark { padding: 14px; width: 84px; height: 84px; margin: 0 auto 28px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 0 60px rgba(127, 178, 255, 0.35); }
.preloader__count { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.3em; color: var(--muted); }
.preloader__bar { width: 180px; height: 2px; background: var(--line); margin: 14px auto 0; border-radius: 2px; overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.curtain { position: fixed; inset: 0; z-index: 190; background: var(--bg-2); clip-path: inset(100% 0 0 0); pointer-events: none; }
.navigating .curtain { clip-path: inset(0); }
.curtain::after { content: ''; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; border-radius: 50%; border: 1px solid var(--line-strong); border-top-color: var(--brand); animation: spin 0.9s linear infinite; }

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
    .js .cursor { display: block; }
    .js body, .js a, .js button { cursor: none; }
    .cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; border-radius: 50%; }
    .cursor__dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--brand); }
    .cursor__ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(202, 232, 255, 0.55); transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.35s, border-color 0.35s; }
    .cursor.is-hover .cursor__ring { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: rgba(127, 178, 255, 0.14); border-color: var(--accent); }
    .cursor.is-down .cursor__ring { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
}

/* ---------- Typography helpers ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--grad); }
.display { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.035em; line-height: 0.98; }
.h-xl { font-size: clamp(44px, 8.2vw, 124px); }
.h-lg { font-size: clamp(36px, 5.6vw, 78px); }
.h-md { font-size: clamp(28px, 3.6vw, 48px); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.outline-text { color: transparent; -webkit-text-stroke: 1.5px rgba(202, 232, 255, 0.7); }
.lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); max-width: 62ch; }
.mono { font-family: var(--f-mono); }

.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 80px); max-width: 920px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
@media (max-width: 760px) { .section-head--split { grid-template-columns: 1fr; } }

/* split-text (built by JS) */
.split-line { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0.04em 0.12em; margin: -0.06em -0.04em -0.12em; }
.split-word { display: inline-block; will-change: transform; }

/* reveal states — only hide content when JS is running so no-JS stays readable */
.js [data-reveal] { opacity: 0; transform: translateY(36px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-clip] { clip-path: inset(0 0 100% 0); }
.js [data-clip].is-in { clip-path: none; }
.js [data-hero-in], .js .hero__visual { opacity: 0; }
.js [data-hero-name] { visibility: hidden; }
.reduced [data-hero-in], .reduced .hero__visual { opacity: 1 !important; }
.reduced [data-hero-name] { visibility: visible !important; }
.reduced .statement .w { opacity: 1; }
.reduced [data-reveal], .reduced [data-clip] { opacity: 1 !important; transform: none !important; clip-path: none !important; }

/* ---------- Buttons ---------- */
.btn {
    --h: 58px;
    position: relative; display: inline-flex; align-items: center; gap: 14px;
    height: var(--h); padding: 0 8px 0 28px; border-radius: 999px;
    font-weight: 600; font-size: 15.5px; letter-spacing: 0.01em; white-space: nowrap;
    overflow: hidden; isolation: isolate; will-change: transform;
    transition: box-shadow 0.4s var(--ease), border-color 0.3s, background 0.3s;
}
.btn .roll { position: relative; display: inline-block; overflow: hidden; line-height: 1.35; }
.btn .roll > span, .btn .roll::after { display: block; transition: transform 0.55s var(--ease); }
.btn .roll::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
.btn:hover .roll > span, .btn:hover .roll::after { transform: translateY(-100%); }
.btn__icon {
    width: calc(var(--h) - 16px); height: calc(var(--h) - 16px); border-radius: 50%;
    display: grid; place-items: center; font-size: 15px; transition: transform 0.5s var(--ease);
}
.btn:hover .btn__icon { transform: rotate(-45deg); }
.btn--primary { background: var(--brand); color: #04101f; box-shadow: 0 10px 40px -10px rgba(127, 178, 255, 0.7); }
.btn--primary .btn__icon { background: #04101f; color: var(--brand); }
.btn--primary::before {
    content: ''; position: absolute; inset: 0; z-index: -1; background: var(--grad); opacity: 0; transition: opacity 0.4s;
}
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover { box-shadow: 0 16px 60px -8px rgba(155, 140, 255, 0.8); }
.btn--ghost { border: 1px solid var(--line-strong); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost .btn__icon { background: var(--glass-2); }
.btn--ghost:hover { border-color: var(--brand); background: var(--glass-2); }
.btn--sm { --h: 46px; padding-left: 22px; font-size: 14px; }
.btn--block { width: 100%; justify-content: space-between; }

/* ---------- Header ---------- */
.header {
    position: fixed; z-index: 100; top: 18px; left: 0; right: 0;
    transition: transform 0.6s var(--ease), top 0.4s var(--ease);
}
.header.is-hidden { transform: translateY(-140%); }
.header__bar {
    width: min(1180px, 100% - var(--gutter) * 2); margin-inline: auto;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 10px 12px 10px 16px; border-radius: 999px;
    border: 1px solid transparent; transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
.header.is-scrolled .header__bar {
    background: rgba(8, 12, 28, 0.62); border-color: var(--line);
    backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand__mark { width: 44px; height: 44px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--glass-2); padding: 5px; }
.brand__mark img, .preloader__mark img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.brand__text small { display: block; font-family: var(--f-mono); font-size: 10.5px; font-weight: 400; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; margin-top: -2px; }
.nav { display: none; gap: 4px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); }
.nav a { position: relative; padding: 9px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color 0.3s, background 0.3s; }
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: #04101f; background: var(--brand); }
.header__cta { display: none; }
.burger { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; position: relative; background: var(--glass); }
.burger span { position: absolute; width: 18px; height: 1.5px; background: var(--ink); transition: transform 0.45s var(--ease), opacity 0.3s; }
.burger span:nth-child(1) { transform: translateY(-4px); }
.burger span:nth-child(2) { transform: translateY(4px); }
.menu-open .burger span:nth-child(1) { transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: rotate(-45deg); }
@media (min-width: 1040px) {
    .nav { display: flex; }
    .header__cta { display: inline-flex; }
    .burger { display: none; }
}

/* ---------- Mobile menu ---------- */
.mmenu {
    position: fixed; inset: 0; z-index: 90; background: rgba(4, 6, 15, 0.96);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 40px;
    clip-path: circle(0% at calc(100% - 44px) 44px); visibility: hidden;
    transition: clip-path 0.8s var(--ease-io), visibility 0s 0.8s;
}
.menu-open .mmenu { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; transition: clip-path 0.8s var(--ease-io), visibility 0s; }
.mmenu__links a {
    display: flex; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line);
    font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 9vw, 56px); letter-spacing: -0.03em;
    transform: translateY(40px); opacity: 0; transition: transform 0.7s var(--ease), opacity 0.7s var(--ease), color 0.3s;
}
.mmenu__links a small { font-family: var(--f-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.2em; }
.mmenu__links a:hover { color: var(--brand); }
.menu-open .mmenu__links a { transform: none; opacity: 1; }
.menu-open .mmenu__links li:nth-child(1) a { transition-delay: 0.25s; }
.menu-open .mmenu__links li:nth-child(2) a { transition-delay: 0.31s; }
.menu-open .mmenu__links li:nth-child(3) a { transition-delay: 0.37s; }
.menu-open .mmenu__links li:nth-child(4) a { transition-delay: 0.43s; }
.menu-open .mmenu__links li:nth-child(5) a { transition-delay: 0.49s; }
.menu-open .mmenu__links li:nth-child(6) a { transition-delay: 0.55s; }
.mmenu__foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 15px; }
.socials { display: flex; gap: 10px; }
.socials a {
    width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid var(--line-strong); background: var(--glass); font-size: 15px; transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.socials a:hover { background: var(--brand); color: #04101f; border-color: var(--brand); transform: translateY(-4px); }
.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 150px 0 90px; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 992px) { .hero__grid { grid-template-columns: 1.08fr 0.92fr; gap: 20px; } }
.hero__status {
    display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 12px; border-radius: 999px;
    border: 1px solid var(--line-strong); background: var(--glass); font-size: 13.5px; color: var(--muted); backdrop-filter: blur(8px);
}
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.pulse::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--ok); animation: ping 2s ease-out infinite; }
@keyframes ping { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.hero__hello { margin: 34px 0 6px; font-family: var(--f-mono); font-size: 14px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brand); }
.hero__name { font-size: clamp(54px, 9.4vw, 148px); line-height: 0.9; }
.hero__name > span { display: block; }
.hero__name .outline-text, .hero__name .outline-text .split-word { letter-spacing: 0.01em; }
.hero__role {
    margin-top: 26px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    font-family: var(--f-display); font-size: clamp(20px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.02em;
}
.hero__role .slash { color: var(--accent); font-family: var(--f-mono); }
.rotator { position: relative; display: inline-block; height: 1.3em; overflow: hidden; clip-path: inset(0 -0.2em); vertical-align: bottom; min-width: 9ch; }
.rotator__item { position: absolute; left: 0; top: 0; white-space: nowrap; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.js .rotator__item:not(:first-child) { opacity: 0; }
.reduced .rotator__item:not(:first-child) { display: none; }
.hero__lead { margin-top: 26px; }
.hero__cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__socials { margin-top: 36px; display: flex; align-items: center; gap: 18px; color: var(--faint); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.hero__socials::before { content: ''; width: 46px; height: 1px; background: var(--line-strong); }

.hero__visual { position: relative; width: min(540px, 100%); margin-inline: auto; aspect-ratio: 1 / 1.05; }
.hero__ring {
    position: absolute; inset: 6% 4% 8% 4%; border-radius: 50%;
    background: conic-gradient(from 0deg, #1b3aff, #7fb2ff, #9b8cff, #5ee9d0, #1b3aff);
    filter: blur(46px); opacity: 0.55; animation: spin 14s linear infinite;
}
.hero__disc {
    position: absolute; inset: 9% 7% 11% 7%; border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: radial-gradient(circle at 50% 30%, rgba(202, 232, 255, 0.12), rgba(8, 12, 28, 0.2) 60%, transparent 70%);
}
.hero__disc::before, .hero__disc::after { content: ''; position: absolute; inset: -9%; border-radius: 50%; border: 1px dashed rgba(202, 232, 255, 0.18); animation: spin 60s linear infinite; }
.hero__disc::after { inset: -19%; border-style: solid; border-color: rgba(202, 232, 255, 0.07); animation-direction: reverse; animation-duration: 90s; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__photo {
    position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto;
    -webkit-mask-image: linear-gradient(#000 82%, transparent);
    mask-image: linear-gradient(#000 82%, transparent);
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
}
.fchip {
    position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 16px 10px 12px; border-radius: 14px; font-size: 13.5px; font-weight: 600;
    background: rgba(10, 15, 36, 0.72); border: 1px solid var(--line-strong);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 40px -18px #000;
    animation: float 6s ease-in-out infinite;
}
.fchip i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--grad); color: #04101f; font-size: 13px; }
.fchip--1 { top: 12%; left: -4%; }
.fchip--2 { top: 38%; right: -6%; animation-delay: -2s; }
.fchip--3 { bottom: 22%; left: -9%; animation-delay: -4s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@media (max-width: 560px) { .fchip--1 { left: 0; } .fchip--2 { right: 0; } .fchip--3 { left: 0; } }
.term {
    position: absolute; z-index: 3; right: -2%; bottom: 3%; width: min(300px, 62%);
    border-radius: 16px; border: 1px solid var(--line-strong); background: rgba(4, 7, 20, 0.82);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 60px -20px #000; overflow: hidden;
    font-family: var(--f-mono); font-size: 11.5px; line-height: 1.7;
}
.term__bar { display: flex; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.term__bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.term__bar i:nth-child(2) { background: #febc2e; }
.term__bar i:nth-child(3) { background: #28c840; }
.term__body { padding: 12px 14px 14px; color: var(--muted); min-height: 112px; }
.term__body .ok { color: var(--ok); }
.term__body .cmd { color: var(--brand); }
.term__caret { display: inline-block; width: 7px; height: 13px; background: var(--brand); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; display: none; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--faint); }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--brand), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (min-width: 992px) and (min-height: 760px) { .scroll-cue { display: flex; flex-direction: column; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding-block: 26px; border-block: 1px solid var(--line); background: linear-gradient(90deg, var(--bg), transparent 15%, transparent 85%, var(--bg)); position: relative; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 46s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__item { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--f-display); font-weight: 600; font-size: clamp(24px, 3.2vw, 44px); letter-spacing: -0.03em; color: var(--muted); white-space: nowrap; }
.marquee__item::after { content: '✦'; color: var(--accent); font-size: 0.5em; }
.marquee--outline .marquee__item { font-size: clamp(54px, 9vw, 130px); color: transparent; -webkit-text-stroke: 1.5px rgba(202, 232, 255, 0.4); }
.marquee--outline { border: 0; padding-block: 10px; }
.marquee--outline .marquee__item { letter-spacing: 0.01em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 18px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { position: relative; padding: 38px 34px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass); overflow: hidden; }
.stat__num { font-family: var(--f-display); font-weight: 700; font-size: clamp(60px, 8vw, 104px); letter-spacing: -0.05em; line-height: 1; }
.stat__label { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.stat__icon { position: absolute; right: 22px; top: 20px; font-size: 20px; color: var(--accent); opacity: 0.7; }

/* ---------- Spotlight surface (cursor-follow glow) ---------- */
.spot { position: relative; --mx: 50%; --my: 50%; }
.spot::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(127, 178, 255, 0.16), transparent 60%);
    opacity: 0; transition: opacity 0.4s;
}
.spot::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
    background: radial-gradient(260px circle at var(--mx) var(--my), rgba(202, 232, 255, 0.9), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask-composite: exclude;
    opacity: 0; transition: opacity 0.4s;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }
.spot > * { position: relative; z-index: 2; }

/* ---------- About (home) ---------- */
.about { display: grid; gap: 56px; align-items: center; }
@media (min-width: 992px) { .about { grid-template-columns: 0.85fr 1.15fr; gap: 90px; } }
.about__media { position: relative; max-width: 520px; width: 100%; margin-inline: auto; }
.about__frame { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); background: linear-gradient(160deg, #0d1850, #050a30 70%); aspect-ratio: 4 / 5; }
.about__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.about__frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(4, 6, 15, 0.7)); }
.about__badge { position: absolute; right: -34px; bottom: -34px; width: 150px; height: 150px; z-index: 3; }
.about__badge svg { width: 100%; height: 100%; animation: spin 24s linear infinite; }
.about__badge text { font-family: var(--f-mono); font-size: 10.6px; letter-spacing: 0.32em; fill: var(--brand); text-transform: uppercase; }
.about__badge b { position: absolute; inset: 0; display: grid; place-items: center; }
.about__badge b i { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #04101f; font-size: 20px; }
.statement { font-family: var(--f-display); font-size: clamp(24px, 3vw, 40px); line-height: 1.22; letter-spacing: -0.025em; font-weight: 500; }
.js .statement .w { opacity: 0.16; }
.about__text { margin-top: 28px; }
.about__cta { margin-top: 38px; }

/* ---------- Services bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(12, 1fr); }
.svc {
    grid-column: span 12; display: flex; flex-direction: column; gap: 18px; min-height: 290px; padding: 32px;
    border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass); overflow: hidden;
    transition: border-color 0.3s;
}
@media (min-width: 640px) { .svc { grid-column: span 6; } }
@media (min-width: 1000px) {
    .svc:nth-child(1) { grid-column: span 7; }
    .svc:nth-child(2) { grid-column: span 5; }
    .svc:nth-child(3), .svc:nth-child(4), .svc:nth-child(5) { grid-column: span 4; }
    .svc:nth-child(6) { grid-column: span 5; }
    .svc:nth-child(7) { grid-column: span 7; }
}
.svc:hover { border-color: var(--line-strong); }
.svc__top { display: flex; justify-content: space-between; align-items: flex-start; }
.svc__icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 24px; color: var(--brand); border: 1px solid var(--line-strong); background: rgba(127, 178, 255, 0.08); transition: transform 0.6s var(--ease), background 0.4s, color 0.4s; }
.svc:hover .svc__icon { transform: rotate(-8deg) scale(1.08); background: var(--brand); color: #04101f; }
.svc__num { font-family: var(--f-mono); font-size: 13px; color: var(--faint); letter-spacing: 0.15em; }
.svc__title { font-family: var(--f-display); font-weight: 650; font-size: clamp(23px, 2.2vw, 30px); letter-spacing: -0.025em; line-height: 1.12; margin-top: auto; }
.svc__desc { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.svc__more { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--brand); }
.svc__more i { transition: transform 0.4s var(--ease); }
.svc:hover .svc__more i { transform: translateX(6px); }
.svc__link::before { content: ''; position: absolute; inset: 0; z-index: 4; }

/* ---------- Tech stack ---------- */
.stack { border-top: 1px solid var(--line); }
.stack__row { display: grid; gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: center; }
@media (min-width: 820px) { .stack__row { grid-template-columns: 260px 1fr; gap: 40px; } }
.stack__label { display: flex; align-items: baseline; gap: 14px; font-family: var(--f-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.stack__label small { font-family: var(--f-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.15em; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
    padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--glass);
    font-size: 14.5px; font-weight: 500; transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.tag:hover { transform: translateY(-4px) rotate(-2deg); background: var(--brand); color: #04101f; border-color: var(--brand); box-shadow: 0 12px 30px -10px rgba(127, 178, 255, 0.8); }

/* ---------- Projects (sticky stack) ---------- */
.projects { display: grid; gap: 28px; }
.proj {
    position: sticky; top: calc(96px + var(--i, 0) * 22px);
    display: grid; border-radius: calc(var(--radius) + 6px); overflow: hidden;
    border: 1px solid var(--line-strong); background: linear-gradient(160deg, #0b1230, #070b1c);
    box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, 0.9); transform-origin: 50% 0;
}
@media (min-width: 900px) { .proj { grid-template-columns: 0.82fr 1.18fr; min-height: 520px; } }
.proj__info { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px; order: 2; }
@media (min-width: 900px) { .proj__info { order: 1; } }
.proj__meta { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.proj__meta b { color: var(--accent); font-weight: 400; }
.proj__title { font-family: var(--f-display); font-weight: 650; font-size: clamp(28px, 3.4vw, 46px); letter-spacing: -0.03em; line-height: 1.04; }
.proj__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.6s var(--ease); }
.proj__title a:hover { background-size: 100% 2px; }
.proj__desc { color: var(--muted); font-size: 16px; }
.proj__info .btn { margin-top: auto; align-self: flex-start; }
.proj__img { position: relative; order: 1; min-height: 260px; overflow: hidden; background: linear-gradient(135deg, #10206e, #1a0f4d); }
@media (min-width: 900px) { .proj__img { order: 2; } }
.proj__img img { position: absolute; inset: -6%; max-width: none; width: 112%; height: 112%; object-fit: cover; transition: transform 1.1s var(--ease); }
.proj:hover .proj__img img { transform: scale(1.06); }
.proj__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 11, 28, 0.55), transparent 35%); pointer-events: none; }
.proj__fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: 88px; font-weight: 800; color: rgba(202, 232, 255, 0.15); letter-spacing: -0.05em; }
@media (max-width: 899px) { .proj { position: relative; top: 0; } }

/* ---------- Timeline ---------- */
.tl-wrap { display: grid; gap: 40px; }
@media (min-width: 992px) { .tl-wrap { grid-template-columns: 0.7fr 1.3fr; gap: 80px; } .tl-sticky { position: sticky; top: 120px; align-self: start; } }
.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.timeline__fill { position: absolute; left: 6px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--grad); transform-origin: 50% 0; transform: scaleY(0); }
.reduced .timeline__fill, html:not(.js) .timeline__fill { transform: scaleY(1); }
.job { position: relative; padding: 0 0 46px; }
.job:last-child { padding-bottom: 0; }
.job::before { content: ''; position: absolute; left: -36px; top: 8px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 6px rgba(127, 178, 255, 0.12); }
.job__period { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.job__role { font-family: var(--f-display); font-weight: 650; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.025em; line-height: 1.12; margin-top: 8px; }
.job__co { margin-top: 6px; color: var(--brand); font-weight: 500; }
.job__desc { margin-top: 10px; color: var(--muted); max-width: 60ch; }

/* ---------- Approach ---------- */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.steps .step:last-child:nth-child(5) { grid-column: auto; }
@media (min-width: 1060px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps .step:last-child:nth-child(5) { grid-column: span 2; } }
.step { padding: 34px 30px 36px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass); overflow: hidden; min-height: 280px; display: flex; flex-direction: column; }
.step__num { font-family: var(--f-display); font-weight: 800; font-size: 96px; line-height: 0.9; letter-spacing: 0; color: transparent; -webkit-text-stroke: 1.5px rgba(202, 232, 255, 0.35); transition: -webkit-text-stroke-color 0.4s, color 0.4s; }
.step:hover .step__num { color: rgba(127, 178, 255, 0.18); -webkit-text-stroke-color: var(--brand); }
.step__title { margin-top: auto; padding-top: 28px; font-family: var(--f-display); font-weight: 650; font-size: 25px; letter-spacing: -0.02em; line-height: 1.15; }
.step__desc { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

/* ---------- CTA ---------- */
.cta { position: relative; text-align: center; border-radius: calc(var(--radius) + 10px); border: 1px solid var(--line-strong); padding: clamp(56px, 9vw, 130px) var(--gutter); overflow: hidden; background: radial-gradient(ellipse 80% 90% at 50% 0%, rgba(80, 110, 255, 0.28), transparent 70%), linear-gradient(180deg, #0a1030, #060a1c); }
.cta::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(202, 232, 255, 0.18) 1px, transparent 1.2px); background-size: 30px 30px; mask-image: radial-gradient(ellipse at 50% 0, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0, #000, transparent 70%); opacity: 0.5; }
.cta > * { position: relative; }
.cta .lead { margin: 22px auto 0; }
.cta__actions { margin-top: 44px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 56px; align-items: start; }
@media (min-width: 992px) { .contact { grid-template-columns: 0.9fr 1.1fr; gap: 90px; } }
.contact__list { margin-top: 38px; display: grid; gap: 14px; }
.contact__item { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--glass); transition: transform 0.4s var(--ease), border-color 0.3s; }
a.contact__item:hover { transform: translateX(8px); border-color: var(--line-strong); }
.contact__item i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(127, 178, 255, 0.1); color: var(--brand); border: 1px solid var(--line-strong); flex-shrink: 0; }
.contact__item small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.contact__item span { font-weight: 500; word-break: break-word; }
.form-card { padding: clamp(24px, 3.4vw, 44px); border-radius: calc(var(--radius) + 4px); border: 1px solid var(--line-strong); background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { position: relative; }
.field__input {
    width: 100%; padding: 26px 18px 10px; border-radius: 16px; font: inherit; font-size: 16px; color: var(--ink);
    border: 1px solid var(--line-strong); background: rgba(4, 7, 20, 0.5); transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
textarea.field__input { min-height: 150px; resize: vertical; }
.field__input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(127, 178, 255, 0.14); background: rgba(4, 7, 20, 0.8); }
.field__label { position: absolute; left: 18px; top: 17px; font-size: 15.5px; color: var(--faint); pointer-events: none; transition: transform 0.3s var(--ease), color 0.3s; transform-origin: 0 0; }
.field__input:focus + .field__label, .field__input:not(:placeholder-shown) + .field__label, .field.has-value .field__label { transform: translateY(-11px) scale(0.76); color: var(--accent); }
.field__input.is-invalid { border-color: #ff6b81; }
.field-error { display: block; margin: 6px 6px 0; font-size: 13px; color: #ff8fa0; }
.cselect { position: relative; }
.cselect__toggle { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; }
.cselect__toggle .cselect__value { color: var(--faint); }
.cselect__toggle .cselect__value.has-value { color: var(--ink); }
.cselect__toggle i { font-size: 12px; transition: transform 0.4s var(--ease); }
.cselect.is-open .cselect__toggle i { transform: rotate(180deg); }
.cselect__menu { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px); padding: 8px; border-radius: 18px; border: 1px solid var(--line-strong); background: rgba(8, 12, 30, 0.97); backdrop-filter: blur(20px); box-shadow: 0 30px 60px -20px #000; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0s 0.3s; max-height: 320px; overflow: auto; }
.cselect.is-open .cselect__menu { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s, transform 0.4s var(--ease); }
.cselect__option { padding: 12px 14px; border-radius: 12px; cursor: pointer; font-size: 15px; color: var(--muted); transition: background 0.2s, color 0.2s; }
.cselect__option:hover, .cselect__option.is-selected { background: rgba(127, 178, 255, 0.14); color: var(--ink); }
.cselect__native { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.form-msg { margin-bottom: 18px; padding: 0; border-radius: 14px; font-size: 15px; }
.form-msg.success, .form-msg.error { padding: 14px 18px; }
.form-msg.success { background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.4); color: #9ff0bb; }
.form-msg.error { background: rgba(255, 107, 129, 0.1); border: 1px solid rgba(255, 107, 129, 0.4); color: #ffb0bc; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* ---------- Page hero (sub pages) ---------- */
.phero { padding: 190px 0 clamp(50px, 7vw, 90px); position: relative; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 30px; }
.crumbs a:hover { color: var(--brand); }
.crumbs i { font-size: 9px; }
.crumbs .is-current { color: var(--brand); }
.phero .lead { margin-top: 28px; }

/* ---------- Services index rows ---------- */
.rows { border-top: 1px solid var(--line); }
.row-link { position: relative; display: grid; gap: 14px; align-items: center; padding: 38px 8px; border-bottom: 1px solid var(--line); transition: padding 0.5s var(--ease), background 0.4s; }
@media (min-width: 900px) { .row-link { grid-template-columns: 90px 1.1fr 1fr 64px; gap: 30px; } }
.row-link::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(127, 178, 255, 0.1), transparent); opacity: 0; transition: opacity 0.4s; }
.row-link:hover { padding-inline: 28px; }
.row-link:hover::before { opacity: 1; }
.row-link > * { position: relative; }
.row-link__num { font-family: var(--f-mono); font-size: 14px; color: var(--accent); letter-spacing: 0.15em; }
.row-link__title { font-family: var(--f-display); font-weight: 650; font-size: clamp(26px, 3.4vw, 46px); letter-spacing: -0.03em; line-height: 1.05; }
.row-link__desc { color: var(--muted); font-size: 15.5px; }
.row-link__arrow { width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform 0.5s var(--ease), background 0.3s, color 0.3s; }
.row-link:hover .row-link__arrow { transform: rotate(-45deg); background: var(--brand); color: #04101f; border-color: var(--brand); }

/* ---------- Service detail ---------- */
.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 992px) { .split { grid-template-columns: 1.5fr 0.8fr; gap: 70px; } .aside { position: sticky; top: 120px; } }
.features { display: grid; gap: 14px; margin-top: 30px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--glass); font-weight: 500; }
.feature i { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: rgba(94, 233, 208, 0.12); color: var(--accent-3); font-size: 14px; }
.panel { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass); }
.panel + .panel { margin-top: 18px; }
.panel h3 { font-family: var(--f-display); font-size: 22px; letter-spacing: -0.02em; margin-bottom: 16px; }
.panel__link { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15.5px; transition: color 0.3s, padding 0.4s var(--ease); }
.panel__link:hover { color: var(--brand); padding-left: 10px; }
.big-icon { width: 88px; height: 88px; border-radius: 26px; display: grid; place-items: center; font-size: 36px; color: var(--brand); border: 1px solid var(--line-strong); background: rgba(127, 178, 255, 0.08); margin-bottom: 30px; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter { padding: 11px 22px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--glass); font-size: 14.5px; font-weight: 500; color: var(--muted); transition: all 0.35s var(--ease); }
.filter:hover { color: var(--ink); border-color: var(--brand); }
.filter.is-active { background: var(--brand); color: #04101f; border-color: var(--brand); }
.pgrid { display: grid; gap: 26px; }
@media (min-width: 720px) { .pgrid { grid-template-columns: 1fr 1fr; } .pgrid .pcard:nth-child(even) { margin-top: 70px; } }
.pgrid--plain .pcard:nth-child(even) { margin-top: 0; }
.pcard { display: block; position: relative; }
.pcard.is-hidden { display: none; }
.pcard__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line-strong); background: linear-gradient(135deg, #10206e, #1a0f4d); transform-style: preserve-3d; will-change: transform; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.08); }
.pcard__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(4, 6, 15, 0.75)); }
.pcard__arrow { position: absolute; z-index: 2; right: 18px; top: 18px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #04101f; transform: scale(0) rotate(-90deg); transition: transform 0.6s var(--ease); }
.pcard:hover .pcard__arrow { transform: none; }
.pcard__body { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 22px 6px 0; }
.pcard__cat { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.pcard__title { font-family: var(--f-display); font-weight: 650; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.025em; line-height: 1.1; margin-top: 6px; }
.pcard__title span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.6s var(--ease); }
.pcard:hover .pcard__title span { background-size: 100% 1px; }
.empty { text-align: center; color: var(--muted); padding: 80px 0; }

/* ---------- Project detail ---------- */
.cover { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 16 / 8; background: linear-gradient(135deg, #10206e, #1a0f4d); margin-bottom: clamp(40px, 6vw, 80px); }
.cover img { position: absolute; max-width: none; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; }
.meta { display: grid; gap: 0; }
.meta__row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.meta__row small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.meta__row span { font-weight: 500; }
.prose p { color: var(--muted); font-size: 18px; margin-bottom: 20px; }
.gallery { display: grid; gap: 22px; margin-top: 50px; }
.gallery img { width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); }

/* ---------- About page ---------- */
.edu-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .edu-grid { grid-template-columns: 1fr 1fr; } }
.edu { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass); display: flex; flex-direction: column; gap: 6px; }
.edu__year { font-family: var(--f-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.16em; }
.edu__name { font-family: var(--f-display); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; }
.edu__by { color: var(--muted); font-size: 15px; }
.langs { display: flex; gap: 16px; flex-wrap: wrap; }
.lang { padding: 26px 40px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass); }
.lang b { display: block; font-family: var(--f-display); font-size: 28px; letter-spacing: -0.03em; }
.lang span { color: var(--muted); }
.story { display: grid; gap: 48px; }
@media (min-width: 992px) { .story { grid-template-columns: 0.8fr 1.2fr; gap: 90px; align-items: start; } .story__media { position: sticky; top: 120px; } }

/* ---------- Footer ---------- */
.footer { position: relative; padding-top: clamp(60px, 8vw, 110px); border-top: 1px solid var(--line); overflow: hidden; background: linear-gradient(180deg, transparent, rgba(7, 11, 28, 0.9)); }
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 0.6fr 1fr; gap: 60px; } }
.footer__bio { margin-top: 20px; color: var(--muted); max-width: 44ch; }
.footer h4 { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); font-weight: 400; margin-bottom: 20px; }
.footer__links li + li { margin-top: 10px; }
.footer__links a { color: var(--muted); transition: color 0.3s, padding 0.4s var(--ease); display: inline-block; }
.footer__links a:hover { color: var(--brand); padding-left: 8px; }
.footer__contact li { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.footer__contact li + li { margin-top: 12px; }
.footer__contact i { color: var(--accent); width: 18px; text-align: center; }
.footer__contact a:hover { color: var(--brand); }
.footer .socials { margin-top: 22px; }
.footer__bar { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 26px 0 30px; border-top: 1px solid var(--line); background: var(--bg); color: var(--faint); font-size: 14px; }
.to-top { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); transition: color 0.3s; }
.to-top:hover { color: var(--brand); }
.to-top i { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform 0.5s var(--ease), background 0.3s, color 0.3s; }
.to-top:hover i { transform: translateY(-5px); background: var(--brand); color: #04101f; }

.wa {
    position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center; background: #25d366; color: #fff; font-size: 28px;
    box-shadow: 0 14px 40px -8px rgba(37, 211, 102, 0.7); transition: transform 0.4s var(--ease);
}
.wa::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.4s ease-out infinite; }
.wa:hover { transform: scale(1.1) rotate(-8deg); }

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