/* ==========================================================================
   Armaghansoft — design system
   پالت قهوه‌ای گرم، تایپوگرافی وزیرمتن، راست‌چین. همه‌ی مقادیر از توکن‌های :root
   خوانده می‌شوند؛ رنگ یا فاصله‌ی جدید را ابتدا به‌صورت توکن تعریف کنید.
   ========================================================================== */

@font-face { font-family: "Vazirmatn FD"; src: url("/fonts/Vazirmatn-FD-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn FD"; src: url("/fonts/Vazirmatn-FD-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn FD"; src: url("/fonts/Vazirmatn-FD-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn FD"; src: url("/fonts/Vazirmatn-FD-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn FD"; src: url("/fonts/Vazirmatn-FD-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn FD"; src: url("/fonts/Vazirmatn-FD-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
    /* Brown scale */
    --espresso: #0f0a1f;
    --coffee-900: #1a1033;
    --coffee-800: #261848;
    --coffee-700: #36205f;
    --brown-600: #5b3fd6;
    --brown-500: #7a5cf0;
    --caramel-500: #8b5cf6;
    --caramel-400: #a78bfa;
    --caramel-300: #c4b5fd;
    --sand-300: #d9d0f5;
    --sand-200: #e7e1fa;
    --sand-100: #f1edfd;
    --cream-50: #f8f6ff;
    --white: #fdfcff;
    --sage-600: #5c7a55;
    --rust-600: #a5452c;

    /* Semantic */
    --bg: var(--cream-50);
    --surface: var(--white);
    --surface-sand: var(--sand-100);
    --text: #1c1530;
    --text-muted: #5f5878;
    --text-soft: #8a83a3;
    --heading: var(--coffee-900);
    --line: #e4ddf5;
    --line-strong: #cfc4ee;
    --primary: var(--brown-600);
    --primary-hover: var(--coffee-700);
    --accent: var(--caramel-500);
    --accent-hover: #7044e0;
    --focus: #7c5cff;

    /* Type */
    --font: "Vazirmatn FD", Vazirmatn, Tahoma, system-ui, sans-serif;
    --fs-xs: .8125rem;
    --fs-sm: .9375rem;
    --fs-base: 1.0625rem;
    --fs-lg: 1.1875rem;
    --fs-h3: clamp(1.125rem, 1.05rem + .3vw, 1.3rem);
    --fs-h2: clamp(1.6rem, 1.25rem + 1.4vw, 2.4rem);
    --fs-h1: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);

    /* Space & shape */
    --gutter: clamp(1rem, .6rem + 1.6vw, 2rem);
    --section: clamp(4rem, 2.6rem + 5vw, 7.5rem);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgb(26 16 51 / .06), 0 1px 1px rgb(26 16 51 / .04);
    --shadow: 0 10px 30px -12px rgb(26 16 51 / .22), 0 2px 6px rgb(26 16 51 / .05);
    --shadow-lg: 0 30px 60px -24px rgb(15 10 31 / .38);
    --header-h: 76px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    font-family: var(--font);
    font-size: var(--fs-base);
    line-height: 1.95;
    color: var(--text);
    background: var(--bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul[class], ol[class] { list-style: none; padding: 0; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.45; font-weight: 800; text-wrap: balance; }
p { text-wrap: pretty; }
address { font-style: normal; }
::selection { background: var(--caramel-300); color: var(--espresso); }

:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus, [tabindex="-1"]:focus, h1:focus { outline: none; }

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

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
    position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 100;
    background: var(--coffee-900); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }
.icon { flex-shrink: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: var(--fs-sm); font-weight: 700; color: var(--accent); margin-bottom: .75rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--caramel-300); }
.lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 62ch; line-height: 2; }

.link-arrow {
    display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--primary);
    border-bottom: 1.5px solid var(--line-strong); padding-bottom: 2px; transition: gap .25s var(--ease), border-color .2s;
}
.link-arrow:hover { gap: .75rem; border-color: var(--primary); }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: transparent;
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px;
    font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; white-space: nowrap;
    background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
    transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(-3px); }
.btn-primary { --btn-bg: var(--primary); --btn-fg: var(--white); --btn-bd: var(--primary); box-shadow: 0 8px 20px -10px rgb(91 63 214 / .7); }
.btn-primary:hover { --btn-bg: var(--primary-hover); --btn-bd: var(--primary-hover); }
.btn-accent { --btn-bg: var(--caramel-400); --btn-fg: var(--espresso); --btn-bd: var(--caramel-400); }
.btn-accent:hover { --btn-bg: var(--caramel-300); --btn-bd: var(--caramel-300); }
.btn-outline { --btn-fg: var(--coffee-900); --btn-bd: var(--line-strong); --btn-bg: transparent; }
.btn-outline:hover { --btn-bd: var(--coffee-900); --btn-bg: var(--white); }
.btn-ghost-light { --btn-fg: var(--sand-100); --btn-bd: rgb(241 237 253 / .28); }
.btn-ghost-light:hover { --btn-bd: var(--sand-100); }
.btn-sm { min-height: 42px; padding: .55rem 1.1rem; }
.btn-lg { min-height: 54px; padding: .85rem 1.75rem; font-size: var(--fs-base); }
.btn-block { width: 100%; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; }
.brand-mark-bg { fill: var(--coffee-900); }
.brand-mark-stroke { fill: none; stroke: var(--sand-100); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark-accent { stroke: var(--caramel-300); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 900; font-size: 1.15rem; color: var(--coffee-900); letter-spacing: -.01em; }
.brand-tagline { font-size: .7rem; font-weight: 600; color: var(--text-soft); letter-spacing: .14em; text-transform: uppercase; direction: ltr; text-align: end; }
.brand--light .brand-mark-bg { fill: var(--caramel-400); }
.brand--light .brand-mark-stroke { stroke: var(--espresso); }
.brand--light .brand-mark-accent { stroke: var(--white); }
.brand--light .brand-name { color: var(--sand-100); }
.brand--light .brand-tagline { color: var(--caramel-300); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgb(248 246 255 / .82);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgb(26 16 51 / .5); background: rgb(248 246 255 / .94); }
.header-inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.main-nav { margin-inline-start: auto; }
.nav-list { display: flex; align-items: center; gap: .25rem; }
.nav-link {
    position: relative; display: block; padding: .5rem .9rem; border-radius: 999px;
    font-weight: 600; font-size: var(--fs-sm); color: var(--text-muted); transition: color .2s, background-color .2s;
}
.nav-link:hover { color: var(--coffee-900); background: var(--sand-100); }
.nav-link.active { color: var(--coffee-900); }
.nav-link.active::after {
    content: ""; position: absolute; inset-inline: 50%; bottom: 2px; width: 5px; height: 5px; margin-inline: -2.5px;
    border-radius: 50%; background: var(--accent);
}
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: var(--fs-sm); color: var(--coffee-800); }
.header-phone .icon { color: var(--accent); }
.nav-toggle {
    display: none; width: 46px; height: 46px; border-radius: 12px; align-items: center; justify-content: center;
    background: var(--white); border: 1px solid var(--line); color: var(--coffee-900);
}
.nav-toggle-close { display: none; }
.nav-mobile-extra { display: none; }

@media (max-width: 1100px) {
    .header-phone { display: none; }
}

@media (max-width: 920px) {
    :root { --header-h: 68px; }
    .nav-toggle { display: inline-flex; }
    .header-cta { display: none; }
    .header-actions { margin-inline-start: auto; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
        background: var(--bg); padding: 1.5rem var(--gutter) 2rem;
        display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
        overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
    }
    .nav-open .main-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
    .nav-open .nav-toggle-open { display: none; }
    .nav-open .nav-toggle-close { display: inline; }
    .nav-open { overflow: hidden; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-list li { border-bottom: 1px solid var(--line); }
    .nav-link { padding: 1.05rem .25rem; font-size: 1.25rem; font-weight: 700; color: var(--coffee-900); border-radius: 0; }
    .nav-link:hover { background: none; }
    .nav-link.active { color: var(--accent); }
    .nav-link.active::after { display: none; }
    .nav-mobile-extra { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
    .nav-phone { display: inline-flex; gap: .5rem; align-items: center; font-weight: 700; color: var(--coffee-800); }
}

/* Dark header on the home page (sits over the dark hero) */
.site-header--dark { background: rgb(15 10 31 / .55); }
.site-header--dark.is-scrolled { background: rgb(15 10 31 / .92); border-color: rgb(245 242 255 / .07); box-shadow: 0 10px 30px -20px rgb(0 0 0 / .8); }
.site-header--dark .brand-mark-bg { fill: var(--caramel-400); }
.site-header--dark .brand-mark-stroke { stroke: var(--espresso); }
.site-header--dark .brand-mark-accent { stroke: var(--white); }
.site-header--dark .brand-name { color: var(--sand-100); }
.site-header--dark .brand-tagline { color: var(--caramel-300); }
.site-header--dark .header-phone { color: var(--sand-200); }
.site-header--dark .header-phone .icon { color: var(--caramel-300); }
.site-header--dark .header-cta { --btn-bg: var(--caramel-400); --btn-bd: var(--caramel-400); --btn-fg: var(--espresso); box-shadow: none; }
.site-header--dark .header-cta:hover { --btn-bg: var(--caramel-300); --btn-bd: var(--caramel-300); }
.site-header--dark .nav-toggle { background: rgb(245 242 255 / .06); border-color: rgb(245 242 255 / .14); color: var(--sand-100); }
@media (min-width: 921px) {
    .site-header--dark .nav-link { color: var(--sand-300); }
    .site-header--dark .nav-link:hover { color: var(--white); background: rgb(245 242 255 / .07); }
    .site-header--dark .nav-link.active { color: var(--white); }
    .site-header--dark .nav-link.active::after { background: var(--caramel-300); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.5rem) var(--section); }
.section--sand { background: var(--surface-sand); }
.section--dark { background: var(--coffee-900); color: var(--sand-200); position: relative; overflow: hidden; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(rgb(167 139 250 / .12) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.section--dark .container { position: relative; }
.section-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap;
    margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.25rem);
}
.section-head > :first-child { flex: 0 1 auto; min-width: 0; }
.section-head h2 { font-size: var(--fs-h2); }
.section-intro { color: var(--text-muted); max-width: 46ch; }
.section--dark .section-intro { color: var(--sand-300); }
.section-intro a { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line-strong); }
.section-foot { margin-top: 2.5rem; }

/* ---------- Hero (home, crystal) ---------- */
.hero {
    --crys-pink: #f0abfc; --crys-cyan: #67e8f9; --crys-violet: #a78bfa;
    position: relative; isolation: isolate; overflow: hidden;
    margin-top: calc(-1 * var(--header-h));
    padding: calc(var(--header-h) + clamp(2rem, 1rem + 4vw, 4.5rem)) 0 clamp(2.5rem, 2rem + 2vw, 4rem);
    color: var(--sand-200);
    background: radial-gradient(120% 80% at 50% 0%, #241552 0%, var(--espresso) 60%);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.aurora--1 { width: 560px; height: 560px; top: -180px; left: 4%; background: #7c3aed; }
.aurora--2 { width: 460px; height: 460px; top: 25%; left: 32%; background: #db2777; opacity: .28; animation-duration: 22s; }
.aurora--3 { width: 520px; height: 520px; bottom: -220px; right: -120px; background: #0891b2; opacity: .3; animation-duration: 26s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }
.hero-stars {
    position: absolute; inset: 0; opacity: .5;
    background-image: radial-gradient(rgb(255 255 255 / .55) 1px, transparent 1.4px), radial-gradient(rgb(196 181 253 / .5) 1px, transparent 1.4px);
    background-size: 90px 90px, 140px 140px; background-position: 0 0, 45px 70px;
    mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }

.hero-badge {
    display: inline-flex; align-items: center; gap: .65rem; padding: .4rem .5rem .4rem 1rem; margin-bottom: 1.75rem;
    border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; color: var(--sand-200);
    background: rgb(255 255 255 / .06); border: 1px solid rgb(196 181 253 / .3); backdrop-filter: blur(8px);
    transition: border-color .2s, background-color .2s;
}
.hero-badge:hover { border-color: rgb(196 181 253 / .7); background: rgb(255 255 255 / .1); }
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgb(74 222 128 / .2); animation: pulse 2.4s ease-in-out infinite; margin-inline-start: .5rem; }
.hero-badge-link { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .7rem; border-radius: 999px; background: linear-gradient(135deg, var(--crys-violet), var(--crys-pink)); color: var(--espresso); font-weight: 800; font-size: var(--fs-xs); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgb(74 222 128 / 0); } }

.hero-title { font-size: clamp(2.3rem, 1.2rem + 4.6vw, 5rem); font-weight: 900; line-height: 1.3; letter-spacing: -.02em; color: var(--white); margin-bottom: 1.5rem; }
.hero-title-line { display: block; }
.hero-title-sub {
    font-size: .62em; font-weight: 800; margin-top: .25em;
    background: linear-gradient(90deg, #fff, var(--crys-violet) 45%, var(--crys-pink) 75%, var(--crys-cyan));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rotator { --lh: 1.4em; position: relative; display: inline-grid; height: var(--lh); overflow: hidden; vertical-align: top; }
.rotator-track { display: grid; animation: rotate-words 12.5s cubic-bezier(.7, 0, .2, 1) infinite; }
.rotator-word {
    display: block; height: var(--lh); line-height: var(--lh); white-space: nowrap;
    background: linear-gradient(100deg, var(--crys-violet), var(--crys-pink) 55%, var(--crys-cyan));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes rotate-words {
    0%, 16% { transform: translateY(0); }
    20%, 36% { transform: translateY(calc(-1 * var(--lh))); }
    40%, 56% { transform: translateY(calc(-2 * var(--lh))); }
    60%, 76% { transform: translateY(calc(-3 * var(--lh))); }
    80%, 96% { transform: translateY(calc(-4 * var(--lh))); }
    100% { transform: translateY(calc(-5 * var(--lh))); }
}
.hero-lead { font-size: clamp(1.05rem, .95rem + .4vw, 1.22rem); color: var(--sand-300); max-width: 54ch; line-height: 2; margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.btn-glow {
    --btn-fg: #fff; --btn-bd: transparent;
    background: linear-gradient(135deg, #7c3aed, #a855f7 50%, #db2777); background-size: 200% 100%;
    box-shadow: 0 14px 40px -12px rgb(168 85 247 / .8), inset 0 1px 0 rgb(255 255 255 / .25);
    transition: background-position .5s var(--ease), transform .2s var(--ease), box-shadow .2s;
}
.btn-glow:hover { background-position: 100% 0; box-shadow: 0 18px 50px -12px rgb(219 39 119 / .7), inset 0 1px 0 rgb(255 255 255 / .25); }

/* Crystal visual */
.hero-crystal { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin-inline: auto; display: grid; place-items: center; }
.crystal { position: relative; z-index: 2; width: 62%; filter: drop-shadow(0 30px 60px rgb(124 58 237 / .55)); animation: crystal-float 7s ease-in-out infinite; }
.crystal-edges path { fill: none; stroke: rgb(255 255 255 / .45); stroke-width: 1.2; stroke-linejoin: round; }
.crystal-shine { animation: shine 5s ease-in-out infinite; }
@keyframes shine { 0%, 40% { transform: translateX(0) skewX(-18deg); } 80%, 100% { transform: translateX(560px) skewX(-18deg); } }
@keyframes crystal-float { 50% { transform: translateY(-16px) rotate(2deg); } }
.crystal-halo {
    position: absolute; inset: 14%; border-radius: 50%; z-index: 0;
    background: conic-gradient(from 0deg, #7c3aed, #db2777, #0891b2, #7c3aed); filter: blur(60px); opacity: .55;
    animation: spin 14s linear infinite;
}
.crystal-ring { position: absolute; border-radius: 50%; border: 1px solid rgb(196 181 253 / .22); z-index: 1; }
.crystal-ring--1 { inset: 6%; transform: rotateX(70deg); animation: spin 30s linear infinite; border-top-color: rgb(240 171 252 / .7); }
.crystal-ring--2 { inset: 0; border-style: dashed; opacity: .5; animation: spin 60s linear infinite reverse; }
@keyframes spin { to { rotate: 360deg; } }
.sparkle { position: absolute; z-index: 3; width: 18px; height: 18px; background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: twinkle 3s ease-in-out infinite; }
.sparkle--1 { top: 16%; right: 30%; }
.sparkle--2 { top: 48%; left: 18%; width: 12px; height: 12px; animation-delay: -1s; }
.sparkle--3 { bottom: 20%; right: 22%; width: 14px; height: 14px; animation-delay: -2s; }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

.glass-chip, .glass-card {
    position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: .55rem;
    background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16);
    backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 20px 40px -20px rgb(0 0 0 / .6), inset 0 1px 0 rgb(255 255 255 / .12);
    color: var(--white); animation: chip-float 6s ease-in-out infinite;
}
.glass-chip { padding: .5rem 1rem; border-radius: 999px; font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; }
.chip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--crys-violet); box-shadow: 0 0 12px var(--crys-violet); }
.chip-dot--pink { background: var(--crys-pink); box-shadow: 0 0 12px var(--crys-pink); }
.chip-dot--cyan { background: var(--crys-cyan); box-shadow: 0 0 12px var(--crys-cyan); }
.glass-chip--a { top: 12%; left: 4%; }
.glass-chip--b { top: 30%; right: 0; animation-delay: -2s; }
.glass-chip--c { bottom: 16%; left: 0; animation-delay: -4s; }
.glass-card { bottom: 4%; right: 8%; padding: .7rem 1.1rem .7rem 1.3rem; border-radius: 16px; animation-delay: -3s; }
.glass-card strong { display: block; font-size: 1.2rem; font-weight: 900; line-height: 1.3; }
.glass-card small { display: block; font-size: var(--fs-xs); color: var(--sand-300); }
.glass-card-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgb(74 222 128 / .15); color: #86efac; }
@keyframes chip-float { 50% { transform: translateY(-10px); } }

.hero-statsbar {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
    border-radius: var(--radius-lg); overflow: hidden;
    background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1); backdrop-filter: blur(12px);
}
.hero-statsbar div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .25rem; padding: 1.4rem 1.6rem; }
.hero-statsbar div + div { border-inline-start: 1px solid rgb(255 255 255 / .08); }
.hero-statsbar dd {
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 900; line-height: 1.2;
    background: linear-gradient(90deg, #fff, var(--crys-violet)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-statsbar dt { font-size: var(--fs-xs); color: var(--sand-300); line-height: 1.7; }

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .hero-actions { justify-content: center; }
    .hero-crystal { max-width: 420px; }
    .hero-statsbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-statsbar div:nth-child(3) { border-inline-start: 0; }
    .hero-statsbar div:nth-child(n+3) { border-top: 1px solid rgb(255 255 255 / .08); }
}
@media (max-width: 560px) {
    .hero-actions .btn { width: 100%; }
    .glass-chip { font-size: var(--fs-xs); padding: .4rem .75rem; }
    .glass-card small { display: none; }
    .hero-statsbar div { padding: 1rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .rotator-track, .aurora, .crystal, .crystal-shine, .crystal-halo, .crystal-ring, .sparkle, .glass-chip, .glass-card, .hero-badge-dot { animation: none !important; }
}

/* Spotlight cards: glow follows the pointer (vars set in site.js) */
.service-card, .project-card { position: relative; }
.service-card::after, .project-card::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(139 92 246 / .14), transparent 45%);
}
.service-card:hover::after, .project-card:hover::before { opacity: 1; }
.service-card:hover, .project-card:hover {
    border-color: transparent;
    background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, #a78bfa, #f0abfc, #67e8f9) border-box;
}
.service-card--dark:hover { background: linear-gradient(var(--coffee-900), var(--coffee-900)) padding-box, linear-gradient(135deg, #a78bfa, #f0abfc, #67e8f9) border-box; }
.service-card--dark { background: linear-gradient(150deg, #2a1660, var(--coffee-900)); }

/* ---------- Marquee ---------- */
.marquee {
    position: relative; overflow: hidden; padding-block: 1.6rem;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex-shrink: 0; }
.marquee-group li { display: inline-flex; align-items: center; white-space: nowrap; font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); font-weight: 800; color: var(--coffee-800); }
.marquee-group li::after { content: ""; width: 9px; height: 9px; margin-inline: 1.75rem; background: var(--caramel-400); transform: rotate(45deg); border-radius: 2px; }
@keyframes marquee { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.service-card {
    display: flex; flex-direction: column; gap: .75rem; padding: 1.75rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    transition: border-color .25s, transform .3s var(--ease), box-shadow .3s;
}
.service-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.service-card h3 { font-size: var(--fs-h3); }
.service-card p { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.95; }
.service-card .ticks { margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--line); }
.service-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.service-icon {
    width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
    background: var(--sand-100); color: var(--brown-600); border: 1px solid var(--sand-200);
}
.service-num { font-weight: 800; font-size: var(--fs-sm); color: var(--text-soft); letter-spacing: .05em; }
.service-card--dark { background: var(--coffee-900); border-color: var(--coffee-900); color: var(--sand-200); }
.service-card--dark h3 { color: var(--white); }
.service-card--dark p { color: var(--sand-300); }
.service-card--dark .service-icon { background: rgb(167 139 250 / .14); border-color: transparent; color: var(--caramel-300); }
.service-card--dark .ticks { border-color: rgb(255 255 255 / .1); }
.service-card--dark .ticks li { color: var(--sand-200); }

.ticks { display: grid; gap: .4rem; }
.ticks li { position: relative; padding-inline-start: 1.5rem; font-size: var(--fs-sm); color: var(--text); font-weight: 500; }
.ticks li::before {
    content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 11px; height: 6px;
    border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.ticks--lg li { font-size: var(--fs-base); padding-block: .2rem; }

@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Project card ---------- */
.project-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.project-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
.project-card-media > * { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover .project-card-media > * { transform: scale(1.035); }
.project-card-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.project-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-xs); font-weight: 700; color: var(--accent); }
.project-card-index { color: var(--text-soft); font-weight: 800; }
.project-card-title { font-size: var(--fs-h3); line-height: 1.6; }
.project-card-title a { transition: color .2s; }
.project-card:hover .project-card-title a { color: var(--brown-600); }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.project-card-summary {
    font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.95;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.project-card-more {
    margin-top: auto; padding-top: .75rem; display: inline-flex; align-items: center; gap: .4rem;
    font-size: var(--fs-sm); font-weight: 700; color: var(--primary); transition: gap .25s var(--ease);
}
.project-card:hover .project-card-more { gap: .7rem; }

.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.project-card--lg { grid-column: span 2; grid-row: span 1; }
.project-card--lg { flex-direction: row; }
.project-card--lg .project-card-media { flex: 1.35; aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-inline-start: 1px solid var(--line); order: 2; }
.project-card--lg .project-card-body { flex: 1; padding: 2rem; justify-content: center; }
.project-card--lg .project-card-title { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
.project-card--lg .project-card-summary { -webkit-line-clamp: 5; }

.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }

@media (max-width: 1000px) {
    .work-grid, .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project-card--lg { grid-column: span 2; }
}
@media (max-width: 680px) {
    .work-grid, .projects-grid { grid-template-columns: 1fr; }
    .project-card--lg { grid-column: auto; flex-direction: column; }
    .project-card--lg .project-card-media { order: 0; aspect-ratio: 16 / 10; border-inline-start: 0; border-bottom: 1px solid var(--line); }
    .project-card--lg .project-card-body { padding: 1.4rem 1.5rem 1.6rem; }
}

/* ---------- Covers (generated SVG mockups) ---------- */
.cover, .cover-img { width: 100%; height: 100%; display: block; }
.cover { font-family: var(--font); direction: ltr; }
.cover .cv-bg { fill: var(--cv-bg); }
.cover--t0 { --cv-bg: #e2daf7; }
.cover--t1 { --cv-bg: #261848; }
.cover--t2 { --cv-bg: #9d7cf7; }
.cover--t3 { --cv-bg: #d6ccf2; }
.cover .cv-shadow { fill: rgb(15 10 31 / .16); }
.cover--t1 .cv-shadow { fill: rgb(0 0 0 / .35); }
.cover .cv-win { fill: #fdfcff; }
.cover .cv-bar { fill: #eee9fc; }
.cover .cv-dot { fill: #cdc2ef; }
.cover .cv-addr { fill: #fdfcff; }
.cover .cv-dark { fill: #1f1440; }
.cover .cv-card { fill: #fff; stroke: #e8e2fa; stroke-width: 1.2; }
.cover .cv-soft { fill: #f4f1fe; }
.cover .cv-soft-2 { fill: #ebe5fb; }
.cover .cv-img { fill: #efeafd; }
.cover .cv-line { fill: #e3dcf7; }
.cover .cv-muted { fill: #cbbfee; }
.cover .cv-strong { fill: #36205f; }
.cover .cv-accent { fill: #8b5cf6; }
.cover .cv-accent-2 { fill: #c4b5fd; }
.cover .cv-inv { fill: rgb(236 232 255 / .28); }
.cover .cv-inv-solid { fill: #fbfaff; }
.cover .cv-inv-dot { fill: rgb(236 232 255 / .16); }
.cover .cv-side-active { fill: rgb(167 139 250 / .16); }
.cover .cv-ok { fill: #6f8f63; }
.cover .cv-ok-soft { fill: rgb(111 143 99 / .14); }
.cover .cv-err { fill: #b0553a; }
.cover .cv-err-soft { fill: rgb(176 85 58 / .13); }
.cover .cv-grid { stroke: #ebe6fb; stroke-width: 1; }
.cover .cv-grid-inv { stroke: rgb(236 232 255 / .15); stroke-width: 1; }
.cover .cv-area { fill: rgb(139 92 246 / .14); }
.cover .cv-stroke { fill: none; stroke: #8b5cf6; stroke-width: 3; stroke-linecap: round; }
.cover .cv-ring { stroke: #8b5cf6; stroke-width: 3; }
.cover .cv-ring-accent { stroke: #8b5cf6; stroke-width: 4; }
.cover .cv-text { fill: #1f1440; }
.cover .cv-text-inv { fill: #f7f4ff; }
.cover .cv-region { fill: #e6dff9; stroke: #c9bced; stroke-width: 1.5; }
.cover .cv-region-2 { fill: #d9cff5; }
.cover .cv-route { fill: none; stroke: #8b5cf6; stroke-width: 2.5; stroke-dasharray: 6 6; }
.cover .cv-pulse { fill: rgb(139 92 246 / .16); }
.cover .cv-pulse-inv { fill: rgb(167 139 250 / .18); }
.cover .cv-scan { fill: none; stroke: #c4b5fd; stroke-width: 4; stroke-linecap: round; }
.cover .cv-link { fill: none; stroke: rgb(236 232 255 / .22); stroke-width: 1.5; stroke-dasharray: 4 5; }
.cover .cv-link-hot { fill: none; stroke: #c4b5fd; stroke-width: 2.5; }
.cover .cv-glass { fill: rgb(245 242 255 / .08); stroke: rgb(245 242 255 / .14); }
.cover .cv-gauge { fill: none; stroke: #ebe6fb; stroke-width: 12; stroke-linecap: round; }
.cover .cv-gauge-val { fill: none; stroke: #8b5cf6; stroke-width: 12; stroke-linecap: round; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; }
.process-step { position: relative; padding: 1.75rem 1.5rem; border-radius: var(--radius-lg); background: rgb(245 242 255 / .045); border: 1px solid rgb(245 242 255 / .09); }
.process-step h3 { font-size: var(--fs-h3); margin: 1.1rem 0 .5rem; }
.process-step p { font-size: var(--fs-sm); color: var(--sand-300); line-height: 1.95; }
.process-num {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    font-weight: 900; font-size: 1.15rem; color: var(--espresso); background: var(--caramel-300);
}
.process-step:not(:last-child)::after {
    content: ""; position: absolute; top: 50px; inset-inline-start: calc(1.5rem + 58px); inset-inline-end: -1.25rem;
    border-top: 1.5px dashed rgb(167 139 250 / .35);
}
@media (max-width: 960px) {
    .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-step::after { display: none; }
}
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ---------- About split / stats ---------- */
.about-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.about-split-copy > p { color: var(--text-muted); margin-bottom: 1.5rem; max-width: 56ch; }
.about-split-copy .ticks { margin-bottom: 2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.stat {
    display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .4rem;
    padding: 1.75rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
}
.stat:nth-child(1) { background: var(--coffee-900); border-color: var(--coffee-900); }
.stat:nth-child(1) dd { color: var(--caramel-300); }
.stat:nth-child(1) dt { color: var(--sand-300); }
.stat:nth-child(4) { background: var(--sand-100); }
.stat dd { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.9rem); font-weight: 900; line-height: 1.1; color: var(--coffee-900); }
.stat dt { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.8; }
.stats-grid--compact .stat { padding: 1.4rem; }
@media (max-width: 900px) { .about-split { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.faq-wrap h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.faq { display: grid; gap: .75rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.15rem 1.4rem; font-weight: 700; color: var(--coffee-900); cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { color: var(--accent); transition: transform .25s var(--ease); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p { padding: 0 1.4rem 1.3rem; color: var(--text-muted); font-size: var(--fs-sm); line-height: 2.05; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ---------- Page header ---------- */
.page-header {
    position: relative; padding-block: clamp(2rem, 1.5rem + 2vw, 3rem) clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
    background: var(--sand-100); border-bottom: 1px solid var(--line); overflow: hidden;
}
.page-header::after {
    content: ""; position: absolute; inset-block: 0; left: -10%; width: 55%; pointer-events: none;
    background: radial-gradient(closest-side, rgb(167 139 250 / .3), transparent);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.85rem); font-weight: 900; margin-bottom: .75rem; }
.page-header-body { max-width: 860px; }
.breadcrumbs { margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; font-size: var(--fs-xs); color: var(--text-soft); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .35rem; }
.breadcrumbs a:hover { color: var(--coffee-900); text-decoration: underline; text-underline-offset: 4px; }
.breadcrumbs [aria-current] { color: var(--coffee-800); font-weight: 600; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.25rem; }
.chip {
    display: inline-flex; align-items: center; gap: .5rem; min-height: 42px; padding: .45rem 1rem;
    border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
    font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); transition: all .2s;
}
.chip:hover { color: var(--coffee-900); border-color: var(--coffee-800); }
.chip[aria-current="page"] { background: var(--coffee-900); border-color: var(--coffee-900); color: var(--white); }
.chip-count { font-size: var(--fs-xs); min-width: 1.6em; padding: 0 .4em; text-align: center; border-radius: 999px; background: var(--sand-100); color: var(--text-muted); }
.chip[aria-current="page"] .chip-count { background: rgb(255 255 255 / .14); color: var(--caramel-300); }

/* ---------- Project detail ---------- */
.detail-cover {
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9; margin-top: calc(-1 * clamp(1rem, .5rem + 2vw, 2rem)); border: 6px solid var(--white);
}
.detail-cover > * { width: 100%; height: 100%; object-fit: cover; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 1rem + 4vw, 4.5rem); margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); align-items: start; }
.prose h2 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); margin: 2.5rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-muted); margin-bottom: 1rem; max-width: 70ch; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.feature-list li {
    display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.1rem; line-height: 1.8;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--fs-sm); font-weight: 500;
}
.feature-check { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--sand-100); color: var(--brown-600); flex-shrink: 0; }
.outcomes { display: grid; gap: .25rem; counter-reset: out; }
.outcomes li { counter-increment: out; display: flex; gap: 1rem; align-items: baseline; padding: .9rem 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--coffee-800); }
.outcomes li::before { content: counter(out, persian) "."; color: var(--accent); font-weight: 900; min-width: 1.2em; }
.detail-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1rem; }
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .5rem 1.5rem; }
.spec > div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.spec > div:last-child { border-bottom: 0; }
.spec dt { font-size: var(--fs-xs); color: var(--text-soft); font-weight: 600; margin-bottom: .2rem; }
.spec dd { font-weight: 700; color: var(--coffee-900); line-height: 1.8; font-size: var(--fs-sm); }
.spec dd a { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.tags li { font-size: var(--fs-xs); font-weight: 600; padding: .2rem .7rem; border-radius: 999px; background: var(--sand-100); color: var(--coffee-800); border: 1px solid var(--sand-200); }
.aside-cta { background: var(--coffee-900); color: var(--sand-300); padding: 1.6rem; border-radius: var(--radius-lg); }
.aside-cta-title { color: var(--white); font-weight: 800; font-size: 1.1rem; line-height: 1.7; margin-bottom: .4rem; }
.aside-cta p:not(.aside-cta-title) { font-size: var(--fs-sm); margin-bottom: 1.25rem; }
@media (max-width: 960px) {
    .detail-grid { grid-template-columns: 1fr; }
    .detail-aside { position: static; }
}
@media (max-width: 600px) { .feature-list { grid-template-columns: 1fr; } .detail-cover { border-width: 3px; } }

/* ---------- Services page ---------- */
.service-rows { display: grid; }
.service-row {
    display: grid; grid-template-columns: 140px minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem clamp(1.5rem, 1rem + 3vw, 4rem);
    padding-block: clamp(2rem, 1.6rem + 1.5vw, 3rem); border-bottom: 1px solid var(--line); align-items: start;
}
.service-row:first-child { padding-top: 0; }
.service-row-head { display: flex; flex-direction: column; gap: 1rem; }
.service-row-head .service-num { font-size: 2.4rem; font-weight: 900; color: var(--sand-300); line-height: 1; }
.service-row h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.85rem); margin-bottom: .6rem; }
.service-row-body > p { color: var(--text-muted); max-width: 56ch; }
.service-row-related { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: 1rem; font-size: var(--fs-sm); }
.service-row-related span { color: var(--text-soft); }
.service-row-related a { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line-strong); }
.service-row-related a:hover { text-decoration-color: var(--primary); }
.service-row-points { padding: 1.25rem 1.5rem; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
@media (max-width: 900px) {
    .service-row { grid-template-columns: 1fr; }
    .service-row-head { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- About page ---------- */
.about-story { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.values-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.value { padding: 1.75rem 1.5rem; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.value h3 { font-size: var(--fs-h3); margin: 1.1rem 0 .4rem; }
.value p { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.95; }
@media (max-width: 1000px) { .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .about-story { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: start; }
.contact-form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow-sm); }
.form-title { font-size: 1.35rem; margin-bottom: 1.5rem; }
.form { display: grid; gap: 1.15rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--fs-sm); font-weight: 700; color: var(--coffee-800); }
.req { color: var(--rust-600); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 50px; padding: .7rem 1rem; border-radius: 12px;
    background: var(--cream-50); border: 1.5px solid var(--line-strong); color: var(--text);
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.9; }
.field input[dir="ltr"] { text-align: right; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-soft); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--caramel-400); }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--brown-600); background: var(--white); box-shadow: 0 0 0 4px rgb(139 92 246 / .16);
}
.field .invalid { border-color: var(--rust-600); }
.validation-message { color: var(--rust-600); font-size: var(--fs-xs); font-weight: 600; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .5rem; }
.form-error {
    margin-bottom: 1.25rem; padding: .9rem 1.1rem; border-radius: 12px; font-size: var(--fs-sm); line-height: 1.9;
    background: rgb(165 69 44 / .08); border: 1px solid rgb(165 69 44 / .3); color: var(--rust-600);
}
.form-error a { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.form-note { font-size: var(--fs-xs); color: var(--text-soft); }
.form-success { text-align: center; padding: 2rem 0; display: grid; justify-items: center; gap: .75rem; }
.form-success p { color: var(--text-muted); max-width: 44ch; margin-bottom: .75rem; }
.form-success-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgb(92 122 85 / .14); color: var(--sage-600); }
.contact-info { display: grid; gap: .75rem; }
.contact-item {
    display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .2s var(--ease);
}
a.contact-item:hover { border-color: var(--line-strong); transform: translateX(-3px); }
.contact-item small { display: block; font-size: var(--fs-xs); color: var(--text-soft); font-weight: 600; }
.contact-item strong { display: block; font-size: var(--fs-sm); color: var(--coffee-900); line-height: 1.8; }
.contact-item strong[dir="ltr"] { text-align: right; }
.contact-item-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--sand-100); color: var(--brown-600); flex-shrink: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } .form-actions .btn { width: 100%; } }

/* ---------- Status pages ---------- */
.status-page { padding-block: clamp(4rem, 3rem + 6vw, 8rem); text-align: center; }
.status-inner { display: grid; justify-items: center; gap: .75rem; }
.status-inner .lead { margin-inline: auto; }
.status-code { font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: 900; line-height: 1; color: var(--sand-300); letter-spacing: -.02em; }
.status-page h1 { font-size: var(--fs-h2); }
.status-ref { font-size: var(--fs-sm); color: var(--text-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: var(--sand-300); padding-top: clamp(3rem, 2rem + 4vw, 5rem); font-size: var(--fs-sm); }
.footer-cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem;
    padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); border-radius: var(--radius-lg);
    background: linear-gradient(120deg, var(--coffee-800), var(--brown-600)); position: relative; overflow: hidden;
}
.footer-cta::after {
    content: ""; position: absolute; width: 340px; height: 340px; left: -120px; top: -160px; border-radius: 50%;
    border: 60px solid rgb(167 139 250 / .1); pointer-events: none;
}
.footer-cta .eyebrow { margin-bottom: .4rem; }
.footer-cta-title { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.75rem); font-weight: 800; color: var(--white); line-height: 1.6; max-width: 26ch; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, .75fr)) minmax(0, 1.2fr); gap: 2.5rem; padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.footer-about p { margin-block: 1.25rem; line-height: 2.05; max-width: 40ch; color: var(--sand-300); }
.footer-title { color: var(--white); font-weight: 800; margin-bottom: 1rem; font-size: var(--fs-base); }
.footer-col ul { display: grid; gap: .55rem; }
.footer-col a { color: var(--sand-300); transition: color .2s; }
.footer-col a:hover { color: var(--caramel-300); }
.footer-contact { display: grid; gap: .8rem; }
.footer-contact > * { display: flex; gap: .65rem; align-items: flex-start; line-height: 1.85; }
.footer-contact .icon { color: var(--caramel-400); margin-top: .2rem; }
.social { display: flex; gap: .5rem; }
.social a {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    border: 1px solid rgb(241 237 253 / .14); color: var(--sand-200); transition: all .2s;
}
.social a:hover { background: var(--caramel-400); border-color: var(--caramel-400); color: var(--espresso); }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
    padding-block: 1.5rem; border-top: 1px solid rgb(241 237 253 / .1); font-size: var(--fs-xs); color: var(--text-soft);
}
.footer-version { font-size: var(--fs-xs); color: var(--text-soft); opacity: .7; margin-inline-start: auto; }
.to-top { display: inline-flex; align-items: center; gap: .4rem; color: var(--sand-300); }
.to-top:hover { color: var(--caramel-300); }
.rot-up { transform: rotate(45deg); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
    .footer-about, .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }
    .footer-cta-actions, .footer-cta-actions .btn { width: 100%; }
}

/* ---------- Reveal on scroll (only when JS is active) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; } }

@media print {
    .site-header, .site-footer, .nav-toggle, .hero-visual { display: none !important; }
    body { background: #fff; }
}
