/* ==========================================================================
   STACK.GE — design system
   Dark technical base. Each direction re-tints the accent and swaps its motif.
   ========================================================================== */

/* ── Tokens ───────────────────────────────────────────────────────────── */
:root {
    --bg:          #08090c;
    --bg-1:        #0c0e13;
    --bg-2:        #11141b;
    --bg-3:        #171b24;
    --line:        rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .16);

    --fg:          #eef1f6;
    --fg-1:        #b9c0cd;
    --fg-2:        #7d8697;
    --fg-3:        #565f70;

    --accent:      #3ddc97;
    --accent-2:    #22d3ee;
    --accent-ink:  #04120c;

    --radius:      14px;
    --radius-lg:   22px;
    --radius-sm:   9px;

    --shell:       1180px;
    --gutter:      clamp(20px, 5vw, 48px);

    --font-sans:   "Noto Sans Georgian", "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display:"Space Grotesk", "Noto Sans Georgian", system-ui, sans-serif;
    --font-mono:   "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

    --ease:        cubic-bezier(.22, 1, .36, 1);
    --dur:         .55s;

    --shadow:      0 24px 60px -24px rgba(0, 0, 0, .85);
}

/* ── Reset ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
figure, figcaption, blockquote { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── Utilities ────────────────────────────────────────────────────────── */
.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.mono { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.muted { color: var(--fg-2); }
.icon { width: 20px; height: 20px; flex: none; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    padding: 12px 20px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

.grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
    --btn-bg: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--btn-bg);
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .01em;
    cursor: pointer;
    transition: transform .3s var(--ease), background .3s var(--ease),
                border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
    font-weight: 600;
    box-shadow: 0 12px 34px -14px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-primary:hover {
    background: color-mix(in srgb, var(--accent) 88%, white);
    box-shadow: 0 18px 44px -14px color-mix(in srgb, var(--accent) 80%, transparent);
}

.btn-ghost { color: var(--fg-1); }
.btn-ghost:hover { color: var(--fg); border-color: var(--fg-2); background: rgba(255, 255, 255, .04); }

.btn-sm { padding: 10px 18px; font-size: .85rem; }
.btn-icon { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.btn:hover .btn-icon { transform: translateX(3px); }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
}

.site-header.is-stuck {
    background: rgba(8, 9, 12, .82);
    backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: .12em;
}

.brand-mark {
    display: grid;
    gap: 3px;
    width: 20px;
}
.brand-mark span {
    height: 3px;
    border-radius: 2px;
    background: var(--accent);
    transition: width .35s var(--ease), background .35s;
}
.brand-mark span:nth-child(1) { width: 100%; }
.brand-mark span:nth-child(2) { width: 68%; background: var(--accent-2); }
.brand-mark span:nth-child(3) { width: 42%; }
.brand:hover .brand-mark span:nth-child(2) { width: 100%; }
.brand:hover .brand-mark span:nth-child(3) { width: 100%; }

.site-nav {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.site-nav a {
    position: relative;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--fg-1);
    font-size: .9rem;
    transition: color .25s, background .25s;
}
.site-nav a:hover { color: var(--fg); background: rgba(255, 255, 255, .05); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switch {
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .1em;
    color: var(--fg-2);
    transition: color .25s, border-color .25s;
}
.lang-switch:hover { color: var(--accent); border-color: var(--accent); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}
.nav-toggle span {
    height: 1.5px;
    background: var(--fg);
    transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: clamp(56px, 9vw, 104px) 0 0;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: -10% -10% 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 78%);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: -280px;
    left: 50%;
    width: 900px;
    height: 620px;
    transform: translateX(-50%);
    background: radial-gradient(circle at 50% 50%,
        color-mix(in srgb, var(--accent) 22%, transparent) 0%,
        transparent 62%);
    filter: blur(30px);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
    padding-bottom: clamp(56px, 8vw, 96px);
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
    padding: 7px 15px 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .025);
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fg-1);
}

.kicker-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
    animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .45; transform: scale(.82); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.15rem, 5.4vw, 4.05rem);
    line-height: 1.06;
    font-weight: 600;
    letter-spacing: -.028em;
    text-wrap: balance;
}

.hero-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(22px);
    animation: word-in .8s var(--ease) forwards;
    animation-delay: calc(var(--w, 0) * 55ms + 120ms);
}

@keyframes word-in {
    to { opacity: 1; transform: translateY(0); }
}

.hero-lead {
    max-width: 56ch;
    margin-top: 26px;
    color: var(--fg-1);
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    line-height: 1.72;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 46px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}
.hero-facts dt {
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fg-3);
}
.hero-facts dd {
    margin-top: 5px;
    font-size: .92rem;
    color: var(--fg-1);
}

/* ── Terminal ─────────────────────────────────────────────────────────── */
.hero-terminal { position: relative; }

.terminal {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--bg-2), var(--bg-1));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .02);
}
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.terminal-title {
    margin-left: 8px;
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .08em;
    color: var(--fg-3);
}

.terminal-body {
    margin: 0;
    padding: 22px 20px 26px;
    font-family: var(--font-mono);
    font-size: .8rem;
    line-height: 1.95;
    color: var(--fg-1);
    white-space: pre-wrap;
    min-height: 232px;
}
.terminal-body::after {
    content: "▌";
    color: var(--accent);
    animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.terminal-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .025);
    font-size: .78rem;
    color: var(--fg-2);
}
.terminal-badge .mono { color: var(--accent); font-size: .7rem; }

.pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

/* ── Marquee ──────────────────────────────────────────────────────────── */
.marquee {
    position: relative;
    padding: 18px 0;
    border-block: 1px solid var(--line);
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 26px;
    width: max-content;
    animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
    to { transform: translateX(-50%); }
}

.marquee-item {
    font-family: var(--font-mono);
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fg-2);
    white-space: nowrap;
}
.marquee-sep { color: var(--accent); opacity: .5; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 120px) 0; }

.section-head {
    max-width: 720px;
    margin-bottom: clamp(38px, 5vw, 62px);
}
.section-head--left { margin-bottom: 0; }

.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3.4vw, 2.6rem);
    line-height: 1.16;
    font-weight: 600;
    letter-spacing: -.022em;
    text-wrap: balance;
}

.section-lead {
    margin-top: 18px;
    color: var(--fg-1);
    font-size: 1.02rem;
    line-height: 1.72;
    max-width: 62ch;
}

/* ── Direction cards ──────────────────────────────────────────────────── */
.direction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 16px;
}

.direction-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 26px 24px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(165deg, var(--bg-2), var(--bg-1) 70%);
    overflow: hidden;
    isolation: isolate;
    transition: transform .45s var(--ease), border-color .45s var(--ease);
}

.direction-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
        color-mix(in srgb, var(--card-accent) 16%, transparent), transparent 62%);
    opacity: 0;
    transition: opacity .45s var(--ease);
}

.direction-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--card-accent) 42%, transparent);
}
.direction-card:hover::before { opacity: 1; }

.card-glow {
    position: absolute;
    top: -1px;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-accent), transparent);
    opacity: .55;
}

/* With an odd number of directions the newest one becomes a full-width banner
   card, so the grid never ends on a lonely tile. */
@media (min-width: 760px) {
    .direction-grid > .direction-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 28px;
        padding: 26px 30px;
    }
    .direction-grid > .direction-card:last-child:nth-child(odd) .card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .direction-grid > .direction-card:last-child:nth-child(odd) .card-body {
        gap: 6px;
    }
    .direction-grid > .direction-card:last-child:nth-child(odd) .card-text {
        max-width: 70ch;
    }
    .direction-grid > .direction-card:last-child:nth-child(odd) .card-foot {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
        gap: 16px;
    }
    .direction-grid > .direction-card:last-child:nth-child(odd) .card-glow {
        left: 30px;
        right: 30px;
    }
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-num { color: var(--fg-3); font-size: .72rem; }

.card-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid color-mix(in srgb, var(--card-accent) 30%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--card-accent) 10%, transparent);
    color: var(--card-accent);
    transition: transform .45s var(--ease), background .45s;
}
.direction-card:hover .card-icon {
    transform: rotate(-6deg) scale(1.06);
    background: color-mix(in srgb, var(--card-accent) 18%, transparent);
}

.card-body { display: flex; flex-direction: column; gap: 9px; }

.card-title {
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 600;
    letter-spacing: -.015em;
}

.card-text {
    color: var(--fg-2);
    font-size: .9rem;
    line-height: 1.62;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.card-link {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fg-2);
    transition: color .3s;
}
.direction-card:hover .card-link { color: var(--card-accent); }

.card-arrow {
    width: 17px;
    height: 17px;
    color: var(--fg-3);
    transition: transform .4s var(--ease), color .4s;
}
.direction-card:hover .card-arrow {
    transform: translateX(4px);
    color: var(--card-accent);
}

/* ── Steps ────────────────────────────────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.step {
    padding: 30px 26px 34px;
    background: var(--bg-1);
    transition: background .4s var(--ease);
}
.step:hover { background: var(--bg-2); }

.step-num {
    display: block;
    margin-bottom: 18px;
    color: var(--accent);
    font-size: .74rem;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 9px;
}

.step-text { color: var(--fg-2); font-size: .9rem; line-height: 1.65; }

/* ── Continuity ───────────────────────────────────────────────────────── */
.continuity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 16px;
}

.continuity-item {
    position: relative;
    padding: 28px 24px 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-1);
    overflow: hidden;
    transition: border-color .4s var(--ease), background .4s var(--ease);
}
.continuity-item::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: .45;
    transition: opacity .4s var(--ease);
}
.continuity-item:hover {
    background: var(--bg-2);
    border-color: color-mix(in srgb, var(--accent) 34%, transparent);
}
.continuity-item:hover::before { opacity: 1; }

.continuity-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    border-radius: 10px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.continuity-icon svg { width: 19px; height: 19px; }

.continuity-title {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.continuity-text { color: var(--fg-2); font-size: .9rem; line-height: 1.65; }

/* ── Work list ────────────────────────────────────────────────────────── */
.work-list {
    border-top: 1px solid var(--line);
}

.work-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto 24px;
    align-items: center;
    gap: 26px;
    padding: 26px 8px;
    border-bottom: 1px solid var(--line);
    transition: background .35s var(--ease), padding .35s var(--ease);
}
.work-item:hover { background: rgba(255, 255, 255, .022); padding-inline: 18px; }

.work-sector { color: var(--fg-3); font-size: .7rem; }

.work-main { display: flex; flex-direction: column; gap: 5px; }

.work-title {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 500;
    transition: color .3s;
}
.work-item:hover .work-title { color: var(--accent); }

.work-text { color: var(--fg-2); font-size: .88rem; }

.work-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.tag {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: .66rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--fg-2);
    white-space: nowrap;
}

.work-arrow {
    width: 18px;
    height: 18px;
    color: var(--fg-3);
    transition: transform .35s var(--ease), color .35s;
}
.work-item:hover .work-arrow { transform: translateX(4px); color: var(--accent); }

/* ── Contact ──────────────────────────────────────────────────────────── */
.contact { border-top: 1px solid var(--line); background: var(--bg-1); }

.contact-head {
    max-width: 62ch;
    margin-bottom: clamp(30px, 4vw, 48px);
}

.contact-channels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 20px);
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: clamp(20px, 2.6vw, 28px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(170deg, var(--bg-2), var(--bg-1));
    transition: border-color .3s var(--ease), transform .3s var(--ease),
                background .3s var(--ease), box-shadow .3s var(--ease);
}

.contact-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
    box-shadow: var(--shadow);
}

.contact-card-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 9%, transparent);
    color: var(--accent);
    transition: background .3s var(--ease), border-color .3s var(--ease);
}
.contact-card-icon .icon { width: 22px; height: 22px; }
.contact-card:hover .contact-card-icon {
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

.contact-card-body { display: grid; gap: 3px; min-width: 0; }

.contact-card-label {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--fg-3);
}

.contact-card-value {
    font-family: var(--font-display);
    font-size: clamp(1.02rem, 1.5vw, 1.18rem);
    font-weight: 500;
    color: var(--fg);
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
}

.contact-card-note {
    font-size: .84rem;
    color: var(--fg-2);
}

.contact-card-arrow {
    margin-left: auto;
    color: var(--fg-3);
    transition: transform .3s var(--ease), color .3s;
}
.contact-card-arrow .icon { width: 18px; height: 18px; }
.contact-card:hover .contact-card-arrow {
    transform: translateX(4px);
    color: var(--accent);
}

.contact-card--wa:hover { border-color: color-mix(in srgb, #25d366 55%, transparent); }
.contact-card--wa:hover .contact-card-icon {
    background: color-mix(in srgb, #25d366 18%, transparent);
    border-color: color-mix(in srgb, #25d366 55%, transparent);
    color: #25d366;
}
.contact-card--wa:hover .contact-card-arrow { color: #25d366; }

.contact-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
    flex-wrap: wrap;
    margin-top: clamp(24px, 3vw, 34px);
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.contact-hours {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .92rem;
    color: var(--fg-1);
}
.contact-hours .icon { width: 18px; height: 18px; color: var(--accent); }
.contact-hours strong {
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--fg);
}

.contact-note {
    font-size: .86rem;
    color: var(--fg-2);
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
    padding: clamp(48px, 6vw, 76px) 0 30px;
    border-top: 1px solid var(--line);
    background: var(--bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(30px, 5vw, 64px);
    padding-bottom: 44px;
}

.footer-note {
    margin-top: 20px;
    max-width: 38ch;
    color: var(--fg-2);
    font-size: .88rem;
    line-height: 1.7;
}
.footer-tagline {
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--fg-3);
}

.footer-col h3 {
    margin-bottom: 16px;
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fg-3);
    font-weight: 500;
}

.footer-col ul { display: grid; gap: 10px; }
.footer-col li { font-size: .9rem; color: var(--fg-1); }
.footer-col a { transition: color .25s; }
.footer-col a:hover { color: var(--accent); }

.footer-num {
    display: inline-block;
    width: 26px;
    font-family: var(--font-mono);
    font-size: .68rem;
    color: var(--fg-3);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: .8rem;
    color: var(--fg-3);
}
.footer-mono { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; }

/* ── Direction hero (shared) ──────────────────────────────────────────── */
.dir-hero {
    position: relative;
    padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.dir-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.dir-hero-inner { position: relative; }

.crumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 34px;
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--fg-3);
}
.crumbs a:hover { color: var(--accent); }

.dir-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: var(--accent);
    font-size: .72rem;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
    animation: pulse 2.4s ease-in-out infinite;
}

.dir-title {
    max-width: 20ch;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.8vw, 3.5rem);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -.028em;
    text-wrap: balance;
}
.dir-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: word-in .75s var(--ease) forwards;
    animation-delay: calc(var(--w, 0) * 50ms + 100ms);
}

.dir-lead {
    max-width: 62ch;
    margin-top: 24px;
    color: var(--fg-1);
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.72;
}

.dir-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.dir-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
    gap: 1px;
    margin-top: clamp(40px, 6vw, 64px);
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.dir-stat {
    padding: 24px 22px;
    background: var(--bg-1);
}

.dir-stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -.03em;
    color: var(--accent);
}
.dir-stat-value small {
    margin-left: 4px;
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 400;
    letter-spacing: .06em;
    color: var(--fg-2);
}

.dir-stat-label {
    margin-top: 6px;
    font-size: .84rem;
    color: var(--fg-2);
}

/* ── Signal theme (IT support) ────────────────────────────────────────── */
.dir-hero--signal .signal-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(61, 220, 151, .07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(61, 220, 151, .07) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 70% at 30% 30%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 30%, #000, transparent 75%);
}

.dir-hero--signal .signal-sweep {
    position: absolute;
    top: -40%;
    left: -20%;
    width: 60%;
    height: 180%;
    background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--accent) 9%, transparent), transparent);
    transform: rotate(12deg);
    animation: sweep 9s ease-in-out infinite;
}
@keyframes sweep {
    0%, 100% { transform: translateX(-10%) rotate(12deg); opacity: .5; }
    50%      { transform: translateX(60%) rotate(12deg); opacity: 1; }
}

.console {
    margin-top: clamp(40px, 6vw, 60px);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: linear-gradient(165deg, var(--bg-2), var(--bg-1));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.console-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .02);
    color: var(--fg-3);
    font-size: .7rem;
}

.console-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: .68rem;
}

.console-rows { padding: 8px 20px 4px; }

.console-row {
    display: grid;
    grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) 90px;
    align-items: center;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.console-row:last-child { border-bottom: 0; }

.console-label { color: var(--fg-2); font-size: .7rem; }

.console-bar {
    position: relative;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .07);
    overflow: hidden;
}
.console-fill {
    position: absolute;
    inset: 0;
    transform-origin: left;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    animation: fill 1.4s var(--ease) forwards;
    animation-delay: calc(var(--i, 0) * 160ms + 300ms);
}
@keyframes fill { to { transform: scaleX(1); } }

.console-value {
    text-align: right;
    font-size: .95rem;
    color: var(--fg);
    letter-spacing: 0;
    text-transform: none;
}
.console-value small {
    margin-left: 3px;
    font-size: .66rem;
    color: var(--fg-3);
}

.heartbeat {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 46px;
    padding: 0 20px 16px;
    opacity: .55;
}
.heartbeat span {
    flex: 1;
    height: var(--h);
    border-radius: 1px;
    background: linear-gradient(to top, var(--accent), transparent);
    animation: beat 2.4s ease-in-out infinite;
    animation-delay: calc(var(--h) * -0.02s);
}
@keyframes beat {
    0%, 100% { transform: scaleY(.55); opacity: .5; }
    50%      { transform: scaleY(1); opacity: 1; }
}

/* ── Motifs for generic directions ────────────────────────────────────── */
.motif { position: absolute; inset: 0; }

/* postal — concentric rings, like postmarks */
.motif--postal {
    background:
        radial-gradient(circle at 82% 22%, transparent 0 78px, color-mix(in srgb, var(--accent) 16%, transparent) 78px 79px, transparent 79px 118px, color-mix(in srgb, var(--accent) 10%, transparent) 118px 119px, transparent 119px 158px, color-mix(in srgb, var(--accent) 6%, transparent) 158px 159px, transparent 159px),
        radial-gradient(circle at 82% 22%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 55%);
}

/* paper — ruled lines and a soft warm wash over an ink canvas */
.motif--paper {
    background-image: repeating-linear-gradient(to bottom, rgba(242, 239, 232, .06) 0 1px, transparent 1px 34px);
    mask-image: linear-gradient(to bottom, #000, transparent 85%);
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.motif--paper::after {
    content: "";
    position: absolute;
    top: -30%;
    right: -10%;
    width: 55%;
    height: 130%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 11%, transparent), transparent 62%);
    filter: blur(20px);
}

/* violet — soft orbs */
.motif--violet {
    background:
        radial-gradient(circle at 78% 18%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 46%),
        radial-gradient(circle at 92% 62%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 42%);
    filter: blur(6px);
}

/* cobalt — blueprint grid */
.motif--cobalt {
    background-image:
        linear-gradient(to right, rgba(96, 165, 250, .09) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(96, 165, 250, .09) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 65% 75% at 75% 25%, #000, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 65% 75% at 75% 25%, #000, transparent 72%);
}

/* ember — heat gradient from the corner */
.motif--ember {
    background:
        radial-gradient(ellipse 60% 80% at 88% 8%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
        radial-gradient(ellipse 50% 60% at 70% 90%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 62%);
}

/* ── Per-theme composition ────────────────────────────────────────────── */

/* 02 · postal — centred, framed like an envelope front */
.dir-hero--postal { text-align: center; }
.dir-hero--postal .dir-hero-inner { display: grid; justify-items: center; }
.dir-hero--postal .crumbs { justify-self: start; }
.dir-hero--postal .dir-title { max-width: 24ch; }
.dir-hero--postal .dir-lead { margin-inline: auto; }
.dir-hero--postal .dir-actions { justify-content: center; }
.dir-hero--postal .dir-stats {
    width: 100%;
    max-width: 760px;
    border-radius: 4px;
    border-style: dashed;
    border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}
.dir-hero--postal .dir-stat { background: transparent; }
.dir-hero--postal .dir-stat-value { font-family: var(--font-mono); letter-spacing: -.02em; }

.dir-postal .cap-grid { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.dir-postal .cap-card {
    border-radius: 4px;
    border-left: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
    background: transparent;
}
.dir-postal .cap-card:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.dir-postal .cap-icon { border-radius: 4px; }

/* 03 · paper — ink canvas, warm gilded rules, editorial composition.
   The page stays inside the dark brand shell: "paper" is expressed through
   rule lines, serif-free editorial rhythm and a cream/gold accent, not by
   inverting the whole canvas to white. */
.dir-hero--paper {
    background:
        radial-gradient(ellipse 80% 60% at 78% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 68%),
        linear-gradient(175deg, #14150f, var(--bg) 72%);
    color: var(--fg);
    border-bottom-color: color-mix(in srgb, var(--accent) 18%, transparent);
}
.dir-hero--paper .crumbs { color: var(--fg-3); }
.dir-hero--paper .crumbs a:hover { color: var(--accent); }
.dir-hero--paper .dir-eyebrow { color: var(--accent); }
.dir-hero--paper .dir-lead { color: var(--fg-1); }
.dir-hero--paper .dir-title { font-weight: 500; letter-spacing: -.035em; }
.dir-hero--paper .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 12px 34px -16px color-mix(in srgb, var(--accent) 55%, transparent);
}
.dir-hero--paper .btn-primary:hover {
    background: color-mix(in srgb, var(--accent) 88%, white);
}
.dir-hero--paper .btn-ghost { color: var(--fg-1); border-color: var(--line-strong); }
.dir-hero--paper .btn-ghost:hover { color: var(--fg); background: rgba(255, 255, 255, .05); border-color: var(--fg-2); }
.dir-hero--paper .dir-stats {
    background: var(--line);
    border-color: color-mix(in srgb, var(--accent) 16%, transparent);
    border-radius: 0;
}
.dir-hero--paper .dir-stat { background: var(--bg-1); }
.dir-hero--paper .dir-stat-value { color: var(--accent); font-weight: 500; }
.dir-hero--paper .dir-stat-value small { color: var(--fg-2); }
.dir-hero--paper .dir-stat-label { color: var(--fg-2); }
.dir-hero--paper .motif--paper {
    background-image: repeating-linear-gradient(to bottom, rgba(242, 239, 232, .07) 0 1px, transparent 1px 34px);
}

/* The paper direction: warm ink tokens — a quieter, editorial corner of the
   dark shell rather than a white page stub. */
.dir-paper {
    --bg:          #0a0b08;
    --bg-1:        #101209;
    --bg-2:        #16180f;
    --bg-3:        #1d2015;
    --line:        rgba(242, 239, 232, .09);
    --line-strong: rgba(242, 239, 232, .2);
    --fg:          #f2efe8;
    --fg-1:        #c6c3b7;
    --fg-2:        #8d8a7c;
    --fg-3:        #66645a;
    --accent:      #d8c9a0;
    --accent-2:    #a3e635;
    --accent-ink:  #0a0b08;
    --shadow:      0 24px 60px -30px rgba(0, 0, 0, .9);
    background: var(--bg);
    color: var(--fg);
}

.dir-paper .grain { opacity: .04; }
.dir-paper .site-header.is-stuck {
    background: rgba(10, 11, 8, .84);
    border-bottom-color: var(--line);
}
.dir-paper .site-nav a:hover { background: rgba(255, 255, 255, .06); }
.dir-paper .lang-switch { color: var(--fg-2); }
.dir-paper .lang-switch:hover { color: var(--accent); border-color: var(--accent); }
.dir-paper .nav-toggle span { background: var(--fg); }
.dir-paper .site-nav.is-open { background: rgba(10, 11, 8, .98); }

.dir-paper .eyebrow { color: var(--accent); }
.dir-paper .section-lead { color: var(--fg-1); }
.dir-paper .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 12px 34px -16px color-mix(in srgb, var(--accent) 45%, transparent);
}
.dir-paper .btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, white); }
.dir-paper .btn-ghost { color: var(--fg-1); border-color: var(--line-strong); }
.dir-paper .btn-ghost:hover { color: var(--fg); background: rgba(255, 255, 255, .05); }

.dir-paper .dir-section--alt { background: var(--bg-1); }
.dir-paper .cap-card { background: transparent; }
.dir-paper .cap-icon {
    border-color: color-mix(in srgb, var(--accent) 24%, transparent);
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    color: var(--accent);
}
.dir-paper .case-card { background: transparent; border-color: var(--line); }
.dir-paper .case-card .tag { color: var(--accent); border-color: var(--line-strong); }
.dir-paper .timeline-marker { background: var(--bg); color: var(--accent); border-color: var(--line-strong); }
.dir-paper .timeline-item::before { background: linear-gradient(to bottom, var(--line-strong), transparent); }
.dir-paper .faq-item summary:hover { color: var(--accent); }
.dir-paper .faq-plus::before,
.dir-paper .faq-plus::after { background: var(--fg-2); }
.dir-paper .dir-cta {
    background:
        radial-gradient(ellipse 60% 100% at 50% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%),
        var(--bg-1);
}
.dir-paper .contact { background: var(--bg-1); }
.dir-paper .contact-card {
    background: var(--bg);
    border-color: var(--line-strong);
    border-radius: 0;
}
.dir-paper .contact-card:hover {
    background: color-mix(in srgb, var(--accent) 4%, var(--bg));
    box-shadow: none;
}
.dir-paper .site-footer { background: var(--bg); }
.dir-paper .footer-col a:hover { color: var(--accent); }

.dir-paper .cap-grid { gap: 0; border-top: 1px solid var(--line); }
.dir-paper .cap-card {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    padding-inline: 0;
}
.dir-paper .cap-card:hover { background: transparent; transform: none; }
.dir-paper .cap-card:hover .cap-title { color: var(--accent); }
.dir-paper .cap-icon { border-radius: 50%; }
.dir-paper .case-card { border-radius: 0; background: transparent; }
.dir-paper .timeline-marker { border-radius: 0; }

/* 04 · violet — split hero with a floating "receipt" panel */
.dir-hero--violet .dir-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    column-gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
.dir-hero--violet .crumbs,
.dir-hero--violet .dir-eyebrow,
.dir-hero--violet .dir-title,
.dir-hero--violet .dir-lead,
.dir-hero--violet .dir-actions { grid-column: 1; }
.dir-hero--violet .dir-stats {
    grid-column: 2;
    grid-row: 1 / span 6;
    grid-template-columns: 1fr;
    margin-top: 0;
    border-radius: 26px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--bg-2)), var(--bg-1));
    box-shadow: var(--shadow);
    transform: rotate(-1.4deg);
}
.dir-hero--violet .dir-stat { background: transparent; padding: 26px 28px; }
.dir-hero--violet .dir-stat-value { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

.dir-violet .cap-card { border-radius: 26px; }
.dir-violet .cap-icon { border-radius: 50%; }
.dir-violet .case-card { border-radius: 26px; }
.dir-violet .timeline-marker { border-radius: 14px; }

/* 05 · cobalt — blueprint rail on the left */
.dir-hero--cobalt .dir-hero-inner {
    padding-left: clamp(0px, 3vw, 34px);
    border-left: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
}
.dir-hero--cobalt .dir-title { max-width: 22ch; }
.dir-hero--cobalt .dir-stats {
    border-radius: 2px;
    background: transparent;
    border-color: color-mix(in srgb, var(--accent) 22%, transparent);
}
.dir-hero--cobalt .dir-stat { background: transparent; }
.dir-hero--cobalt .dir-stat-value { font-family: var(--font-mono); font-weight: 500; }

.dir-cobalt .cap-grid { gap: 0; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; background: var(--line); }
.dir-cobalt .cap-card {
    border: 0;
    border-radius: 0;
    background: var(--bg-1);
    position: relative;
}
.dir-cobalt .cap-card::before,
.dir-cobalt .cap-card::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
    opacity: 0;
    transition: opacity .35s;
}
.dir-cobalt .cap-card::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.dir-cobalt .cap-card::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.dir-cobalt .cap-card:hover::before,
.dir-cobalt .cap-card:hover::after { opacity: 1; }
.dir-cobalt .cap-icon { border-radius: 2px; }
.dir-cobalt .case-card { border-radius: 2px; }
.dir-cobalt .timeline-marker { border-radius: 2px; }

/* 06 · ember — oversized watermark number, wide bleed */
.dir-hero--ember { padding-bottom: clamp(64px, 9vw, 120px); }
.dir-hero--ember .dir-hero-inner { position: relative; }
.dir-hero--ember .dir-hero-inner::after {
    content: "06";
    position: absolute;
    right: -2%;
    top: -18%;
    font-family: var(--font-display);
    font-size: clamp(9rem, 22vw, 20rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.06em;
    color: color-mix(in srgb, var(--accent) 9%, transparent);
    pointer-events: none;
    z-index: -1;
}
.dir-hero--ember .dir-title { max-width: 24ch; }
.dir-hero--ember .dir-stats {
    border-radius: 0;
    border: 0;
    border-top: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    background: transparent;
    gap: 0;
}
.dir-hero--ember .dir-stat {
    background: transparent;
    border-right: 1px solid var(--line);
    padding-inline: 0 24px;
}
.dir-hero--ember .dir-stat:last-child { border-right: 0; }

.dir-ember .cap-card { border-radius: 0 18px 0 18px; }
.dir-ember .cap-icon { border-radius: 0 10px 0 10px; }
.dir-ember .case-card { border-radius: 0 18px 0 18px; }
.dir-ember .timeline-marker { border-radius: 0 12px 0 12px; }

@media (max-width: 1000px) {
    .dir-hero--violet .dir-hero-inner { grid-template-columns: 1fr; }
    .dir-hero--violet .dir-stats {
        grid-column: 1;
        grid-row: auto;
        margin-top: 40px;
        transform: none;
    }
}

/* ── 06.x · rack (infrastructure family) ──────────────────────────────── */
.rack-lines {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(251, 146, 60, .07) 0 1px,
        transparent 1px 44px
    );
    mask-image: radial-gradient(ellipse 80% 80% at 30% 20%, #000, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 30% 20%, #000, transparent 80%);
}

.rack-glow {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%);
    filter: blur(40px);
}

.dir-hero--rack .dir-title { max-width: 22ch; }

/* Rack elevation: each sub-direction is a pull-out unit */
.rack-section { padding-top: clamp(48px, 7vw, 88px); }

.rack {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background:
        repeating-linear-gradient(to bottom, rgba(255, 255, 255, .015) 0 1px, transparent 1px 46px),
        linear-gradient(170deg, var(--bg-2), var(--bg-1));
    box-shadow: var(--shadow);
}

.rack-unit {
    position: relative;
    display: grid;
    grid-template-columns: 62px 44px minmax(0, 1fr) 10px 22px;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(100deg, var(--bg-3), var(--bg-2));
    transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}

.rack-unit::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 2px;
    border-radius: 2px;
    background: var(--unit-accent);
    opacity: .5;
    transition: opacity .4s, top .4s var(--ease), bottom .4s var(--ease);
}

.rack-unit:hover {
    transform: translateX(6px);
    border-color: color-mix(in srgb, var(--unit-accent) 40%, transparent);
    background: linear-gradient(100deg, var(--bg-3), color-mix(in srgb, var(--unit-accent) 7%, var(--bg-2)));
}
.rack-unit:hover::before { opacity: 1; top: 0; bottom: 0; }

.rack-unit-num {
    font-size: .7rem;
    color: var(--fg-3);
    letter-spacing: .08em;
}

.rack-unit-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid color-mix(in srgb, var(--unit-accent) 28%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--unit-accent) 9%, transparent);
    color: var(--unit-accent);
    transition: transform .4s var(--ease);
}
.rack-unit:hover .rack-unit-icon { transform: scale(1.06); }

.rack-unit-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.rack-unit-title {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

.rack-unit-text {
    color: var(--fg-2);
    font-size: .86rem;
    line-height: 1.55;
}

.rack-unit-led {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--unit-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--unit-accent) 16%, transparent);
    animation: pulse 2.8s ease-in-out infinite;
    animation-delay: calc(var(--i) * 220ms);
}

.rack-unit-arrow {
    color: var(--fg-3);
    transition: transform .4s var(--ease), color .4s;
}
.rack-unit-arrow .icon { width: 18px; height: 18px; }
.rack-unit:hover .rack-unit-arrow { transform: translateX(4px); color: var(--unit-accent); }

/* ── Provider comparison (storage) ────────────────────────────────────── */
.provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 14px;
    align-items: stretch;
}

/* Five providers: 3 on the first row, 2 wider ones on the second — no orphan. */
@media (min-width: 900px) {
    .provider-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .provider-grid > .provider-card { grid-column: span 2; }
    .provider-grid > .provider-card:nth-child(4),
    .provider-grid > .provider-card:nth-child(5) { grid-column: span 3; }
}

@media (min-width: 1240px) {
    .provider-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .provider-grid > .provider-card,
    .provider-grid > .provider-card:nth-child(4),
    .provider-grid > .provider-card:nth-child(5) { grid-column: auto; }
    .provider-card { padding: 22px 18px 24px; }
    .provider-type { font-size: .54rem; padding: 3px 7px; }
}

.provider-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 22px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-1);
    transition: border-color .4s var(--ease), transform .4s var(--ease), background .4s var(--ease);
}
.provider-card:hover {
    border-color: color-mix(in srgb, var(--accent) 34%, transparent);
    background: var(--bg-2);
    transform: translateY(-3px);
}

.provider-card.is-highlight {
    border-color: color-mix(in srgb, var(--accent) 44%, transparent);
    background:
        radial-gradient(ellipse 90% 60% at 50% 0%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 68%),
        var(--bg-2);
}

.provider-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.provider-name {
    font-family: var(--font-display);
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: -.012em;
}

.provider-type {
    padding: 3px 9px;
    border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
    border-radius: 999px;
    color: var(--accent);
    font-size: .58rem;
    line-height: 1.6;
    white-space: nowrap;
}

.provider-text {
    color: var(--fg-2);
    font-size: .875rem;
    line-height: 1.62;
}

.provider-pros {
    display: grid;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.provider-pros li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: .845rem;
    color: var(--fg-1);
    line-height: 1.5;
}
.provider-check {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    flex: none;
    color: var(--accent);
}

.provider-cons {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    color: var(--fg-3);
    font-size: .8rem;
    line-height: 1.58;
}
.provider-cons .mono {
    display: block;
    margin-bottom: 4px;
    font-size: .58rem;
    color: color-mix(in srgb, var(--accent) 70%, var(--fg-3));
}

.provider-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .02);
    color: var(--fg-2);
    font-size: .86rem;
    line-height: 1.62;
}
.provider-note .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent); }

/* Sibling switcher on sub-direction pages */
.siblings-section { border-top: 1px solid var(--line); }

.sibling-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 10px;
}

.sibling-card {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-1);
    transition: border-color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease);
}
.sibling-card:hover {
    border-color: color-mix(in srgb, var(--unit-accent) 40%, transparent);
    background: var(--bg-2);
    transform: translateY(-2px);
}

.sibling-num { font-size: .64rem; color: var(--fg-3); }

.sibling-icon { color: var(--unit-accent); }
.sibling-icon .icon { width: 17px; height: 17px; }

.sibling-title {
    font-size: .88rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sibling-arrow {
    width: 15px;
    height: 15px;
    color: var(--fg-3);
    transition: transform .35s var(--ease), color .35s;
}
.sibling-card:hover .sibling-arrow { transform: translateX(3px); color: var(--unit-accent); }

@media (max-width: 640px) {
    .rack { padding: 10px; }
    .rack-unit {
        grid-template-columns: 40px minmax(0, 1fr) 18px;
        gap: 12px;
        padding: 16px 14px;
    }
    .rack-unit-num,
    .rack-unit-led { display: none; }
    .rack-unit-icon { width: 38px; height: 38px; }
    .rack-unit-text { font-size: .82rem; }
}

/* ── 07.x · collaboration hub ─────────────────────────────────────────── */
.anchor-section { padding-top: clamp(40px, 6vw, 72px); }

.anchor-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px 32px;
    padding: clamp(26px, 3.4vw, 40px);
    border: 1px solid color-mix(in srgb, var(--card-accent) 38%, transparent);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse 70% 120% at 0% 0%, color-mix(in srgb, var(--card-accent) 13%, transparent), transparent 62%),
        linear-gradient(160deg, var(--bg-2), var(--bg-1));
    overflow: hidden;
    isolation: isolate;
    transition: transform .45s var(--ease), border-color .45s var(--ease);
}
.anchor-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--card-accent) 60%, transparent);
}

.anchor-glow {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-accent), transparent);
    opacity: .7;
}

.anchor-head {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.anchor-num { color: var(--fg-3); font-size: .7rem; }

.anchor-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid color-mix(in srgb, var(--card-accent) 32%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--card-accent) 11%, transparent);
    color: var(--card-accent);
}

.anchor-flag {
    margin-left: auto;
    padding: 4px 11px;
    border: 1px solid color-mix(in srgb, var(--card-accent) 30%, transparent);
    border-radius: 999px;
    color: var(--card-accent);
    font-size: .58rem;
    white-space: nowrap;
}

.anchor-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.anchor-title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    font-weight: 600;
    letter-spacing: -.018em;
    text-wrap: balance;
}

.anchor-text {
    color: var(--fg-2);
    font-size: .94rem;
    line-height: 1.66;
    max-width: 74ch;
}

.anchor-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    align-self: end;
    white-space: nowrap;
}

.anchor-link {
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fg-2);
    transition: color .3s;
}
.anchor-card:hover .anchor-link { color: var(--card-accent); }

.anchor-arrow {
    width: 18px;
    height: 18px;
    color: var(--fg-3);
    transition: transform .4s var(--ease), color .4s;
}
.anchor-card:hover .anchor-arrow { transform: translateX(4px); color: var(--card-accent); }

/* Grouped service grid */
.service-section { padding-top: clamp(48px, 7vw, 88px); }

.service-group + .service-group { margin-top: clamp(30px, 4vw, 46px); }

.service-group-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    color: var(--fg-2);
    font-size: .66rem;
    letter-spacing: .14em;
}
.service-group-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--line-strong), transparent);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 14px;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 22px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(165deg, var(--bg-2), var(--bg-1) 72%);
    transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--card-accent) 42%, transparent);
    background: linear-gradient(165deg, var(--bg-3), var(--bg-1) 72%);
}

.service-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-num { color: var(--fg-3); font-size: .66rem; }

.service-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid color-mix(in srgb, var(--card-accent) 28%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--card-accent) 9%, transparent);
    color: var(--card-accent);
    transition: transform .4s var(--ease);
}
.service-card:hover .service-icon { transform: scale(1.07); }

.service-title {
    font-family: var(--font-display);
    font-size: 1.04rem;
    font-weight: 600;
    letter-spacing: -.012em;
}

.service-text {
    color: var(--fg-2);
    font-size: .855rem;
    line-height: 1.6;
}

.service-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.service-link {
    font-family: var(--font-mono);
    font-size: .64rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fg-3);
    transition: color .3s;
}
.service-card:hover .service-link { color: var(--card-accent); }

.service-arrow {
    width: 16px;
    height: 16px;
    color: var(--fg-3);
    transition: transform .4s var(--ease), color .4s;
}
.service-card:hover .service-arrow { transform: translateX(4px); color: var(--card-accent); }

/* ── Integration cards (service cross-links) ──────────────────────────── */
.integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 12px;
}

.integration-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 16px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-1);
    transition: border-color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease);
}
.integration-card:hover {
    border-color: color-mix(in srgb, var(--accent) 38%, transparent);
    background: var(--bg-2);
    transform: translateY(-2px);
}

.integration-name {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

.integration-text {
    grid-column: 1;
    color: var(--fg-2);
    font-size: .82rem;
    line-height: 1.55;
}

.integration-arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 17px;
    height: 17px;
    color: var(--fg-3);
    transition: transform .35s var(--ease), color .35s;
}
.integration-card:hover .integration-arrow { transform: translateX(3px); color: var(--accent); }

/* ── Vendor strip (NAS brands) ────────────────────────────────────────── */
.vendor-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}
.vendor-strip .tag {
    padding: 6px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .02);
    color: var(--fg-2);
    font-family: var(--font-mono);
    font-size: .66rem;
    letter-spacing: .04em;
}

@media (max-width: 640px) {
    .anchor-card { grid-template-columns: minmax(0, 1fr); }
    .anchor-foot { justify-content: space-between; }
    .anchor-flag { display: none; }
}

/* ── 07 · cloud (Nextcloud) ───────────────────────────────────────────── */
.dir-hero--cloud { padding-bottom: clamp(64px, 9vw, 110px); }

.cloud-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(56, 189, 248, .06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(56, 189, 248, .06) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 75% 70% at 40% 30%, #000, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 40% 30%, #000, transparent 78%);
}

.cloud-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .5;
    animation: drift 18s ease-in-out infinite;
}
.cloud-orb--a {
    top: -14%;
    left: 8%;
    width: 420px;
    height: 420px;
    background: color-mix(in srgb, var(--accent) 34%, transparent);
}
.cloud-orb--b {
    top: 18%;
    right: 4%;
    width: 360px;
    height: 360px;
    background: color-mix(in srgb, var(--accent-2) 30%, transparent);
    animation-delay: -6s;
}
.cloud-orb--c {
    bottom: -22%;
    left: 42%;
    width: 300px;
    height: 300px;
    background: color-mix(in srgb, var(--accent) 20%, transparent);
    animation-delay: -12s;
}

@keyframes drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(24px, -28px, 0) scale(1.08); }
}

.cloud-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.cloud-hero-copy .dir-stats { margin-top: clamp(34px, 5vw, 52px); }

/* Floating sync panel */
.cloud-panel {
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    background: linear-gradient(165deg, rgba(23, 27, 36, .92), rgba(12, 14, 19, .96));
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    overflow: hidden;
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    transition: transform .7s var(--ease);
}
.cloud-panel:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }

.cloud-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .025);
    color: var(--fg-3);
    font-size: .68rem;
}
.cloud-panel-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--accent);
    font-size: .66rem;
}

.cloud-files { padding: 8px 12px; }

.cloud-file {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 8px;
    border-radius: 10px;
    opacity: 0;
    transform: translateX(-8px);
    animation: file-in .6s var(--ease) forwards;
    animation-delay: calc(var(--i) * 110ms + 400ms);
    transition: background .3s;
}
.cloud-file:hover { background: rgba(255, 255, 255, .04); }

@keyframes file-in {
    to { opacity: 1; transform: none; }
}

.cloud-file-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
}
.cloud-file-icon .icon { width: 17px; height: 17px; }

.cloud-file-name { font-size: .88rem; color: var(--fg-1); }
.cloud-file-size { font-size: .66rem; color: var(--fg-3); }

.cloud-panel-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px 20px;
    border-top: 1px solid var(--line);
    color: var(--fg-3);
    font-size: .66rem;
}

.cloud-meter {
    flex: 1;
    height: 4px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
}
.cloud-meter-fill {
    display: block;
    height: 100%;
    width: 23%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ── Trial card (boarding-pass style) ─────────────────────────────────── */
.trial-section { padding-top: clamp(40px, 6vw, 72px); }

.trial-card {
    display: grid;
    grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
    border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse 70% 120% at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 62%),
        linear-gradient(160deg, var(--bg-2), var(--bg-1));
    overflow: hidden;
    box-shadow: 0 30px 70px -40px color-mix(in srgb, var(--accent) 60%, transparent);
}

.trial-stub {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 0;
    padding: 34px 22px;
    border-right: 1px dashed color-mix(in srgb, var(--accent) 34%, transparent);
    background: color-mix(in srgb, var(--accent) 7%, transparent);
    text-align: center;
}

.trial-badge {
    font-size: .82rem;
    letter-spacing: .1em;
    color: var(--accent);
    line-height: 1.5;
}

.trial-stub-line {
    width: 1px;
    height: 46px;
    background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--accent) 50%, transparent), transparent);
}

.trial-stub-note { font-size: .62rem; color: var(--fg-3); }

.trial-body { padding: clamp(26px, 3.6vw, 42px); }

.trial-title {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.6vw, 1.95rem);
    font-weight: 600;
    letter-spacing: -.02em;
    margin-bottom: 12px;
    text-wrap: balance;
}

.trial-text {
    color: var(--fg-1);
    font-size: .96rem;
    line-height: 1.72;
    max-width: 66ch;
}

.trial-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
    gap: 10px 24px;
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.trial-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .9rem;
    color: var(--fg-1);
}
.trial-check {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    color: var(--accent);
}

.trial-foot {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.trial-note { font-size: .78rem; color: var(--fg-3); max-width: 42ch; }

/* ── Deployment plans ─────────────────────────────────────────────────── */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 16px;
    align-items: stretch;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 26px 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-1);
    transition: border-color .4s var(--ease), transform .4s var(--ease), background .4s var(--ease);
}
.plan-card:hover {
    border-color: color-mix(in srgb, var(--accent) 34%, transparent);
    transform: translateY(-4px);
}

.plan-card.is-highlight {
    border-color: color-mix(in srgb, var(--accent) 46%, transparent);
    background:
        radial-gradient(ellipse 90% 60% at 50% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
        var(--bg-2);
    box-shadow: 0 24px 60px -34px color-mix(in srgb, var(--accent) 55%, transparent);
}

.plan-flag {
    position: absolute;
    top: -1px;
    right: 22px;
    padding: 5px 12px;
    border-radius: 0 0 8px 8px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: .6rem;
    letter-spacing: .1em;
}

.plan-name {
    font-family: var(--font-display);
    font-size: 1.16rem;
    font-weight: 600;
    letter-spacing: -.015em;
}

.plan-tagline {
    margin-top: 6px;
    font-size: .66rem;
    color: var(--accent);
}

.plan-specs {
    display: grid;
    gap: 8px;
    margin: 22px 0;
    padding: 18px 0;
    border-block: 1px solid var(--line);
}
.plan-specs li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-mono);
    font-size: .74rem;
    letter-spacing: .02em;
    color: var(--fg-1);
}
.plan-specs li::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    flex: none;
}

.plan-text {
    margin-top: auto;
    color: var(--fg-2);
    font-size: .88rem;
    line-height: 1.66;
}

/* ── 02 · mail — webmail interfaces ───────────────────────────────────── */
.webmail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 16px;
}

.webmail-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 30px 26px 26px;
    border: 1px solid var(--line);
    border-radius: 4px;
    border-left: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
    background: transparent;
    transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.webmail-card:hover {
    background: color-mix(in srgb, var(--accent) 5%, transparent);
    border-left-color: var(--accent);
    transform: translateY(-3px);
}

.webmail-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
}

.webmail-name {
    font-family: var(--font-display);
    font-size: 1.24rem;
    font-weight: 600;
    letter-spacing: -.02em;
}

.webmail-tag {
    font-size: .64rem;
    color: var(--accent);
}

.webmail-text {
    color: var(--fg-1);
    font-size: .92rem;
    line-height: 1.7;
}

.webmail-features {
    display: grid;
    gap: 9px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px dashed color-mix(in srgb, var(--accent) 26%, transparent);
}
.webmail-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .86rem;
    color: var(--fg-1);
    line-height: 1.55;
}
.webmail-check {
    width: 15px;
    height: 15px;
    margin-top: 3px;
    flex: none;
    color: var(--accent);
}

.webmail-free {
    align-self: flex-start;
    padding: 5px 12px;
    border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
    border-radius: 999px;
    font-size: .6rem;
    color: var(--accent);
}

/* ── 02 · mail — delivery flow (mailcow → SMTP → inbox) ───────────────── */
.mail-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 12px;
    margin-bottom: clamp(30px, 4vw, 46px);
}

.mail-flow-step {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 22px 22px 24px;
    border: 1px dashed color-mix(in srgb, var(--accent) 30%, transparent);
    border-radius: 4px;
    background: color-mix(in srgb, var(--accent) 4%, transparent);
}

.mail-flow-label {
    font-size: .66rem;
    letter-spacing: .14em;
    color: var(--accent);
}

.mail-flow-text {
    color: var(--fg-1);
    font-size: .88rem;
    line-height: 1.6;
}

.mail-flow-arrow {
    position: absolute;
    top: 50%;
    right: -18px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    border-radius: 50%;
    background: var(--bg-1);
    color: var(--accent);
}
.mail-flow-arrow .icon { width: 14px; height: 14px; }

@media (max-width: 720px) {
    .mail-flow-arrow { display: none; }
}

@media (max-width: 1000px) {
    .cloud-hero-grid { grid-template-columns: 1fr; }
    .cloud-panel { transform: none; max-width: 520px; }
    .trial-card { grid-template-columns: minmax(0, 1fr); }
    .trial-stub {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 14px 18px;
        padding: 20px 26px;
        border-right: 0;
        border-bottom: 1px dashed color-mix(in srgb, var(--accent) 34%, transparent);
        text-align: left;
    }
    .trial-stub-line { width: 46px; height: 1px; background: linear-gradient(to right, transparent, color-mix(in srgb, var(--accent) 50%, transparent), transparent); }
}

/* ── Capability cards ─────────────────────────────────────────────────── */
.cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 16px;
}

.cap-card {
    position: relative;
    padding: 28px 26px 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-1);
    transition: border-color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease);
}
.cap-card:hover {
    border-color: color-mix(in srgb, var(--accent) 34%, transparent);
    background: var(--bg-2);
    transform: translateY(-3px);
}

.cap-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
    border-radius: 11px;
    background: color-mix(in srgb, var(--accent) 9%, transparent);
    color: var(--accent);
}

.cap-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 9px;
}

.cap-text { color: var(--fg-2); font-size: .9rem; line-height: 1.66; }

/* ── Timeline ─────────────────────────────────────────────────────────── */
.dir-section--alt { background: var(--bg-1); border-block: 1px solid var(--line); }

.timeline {
    position: relative;
    display: grid;
    gap: 0;
    max-width: 820px;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 22px;
    padding-bottom: 34px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 34px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--line-strong), transparent);
}
.timeline-item:last-child::before { display: none; }

.timeline-marker {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    border-radius: 50%;
    background: var(--bg);
    color: var(--accent);
    font-size: .72rem;
}

.timeline-body h3 {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 600;
    margin-bottom: 7px;
    padding-top: 9px;
}
.timeline-body p { color: var(--fg-2); font-size: .92rem; line-height: 1.68; max-width: 58ch; }

/* ── Cases ────────────────────────────────────────────────────────────── */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 16px;
}

.case-card {
    padding: 28px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(165deg, var(--bg-2), var(--bg-1));
    transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.case-card:hover {
    border-color: color-mix(in srgb, var(--accent) 30%, transparent);
    transform: translateY(-3px);
}

.case-card .tag { margin-bottom: 16px; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 28%, transparent); }

.case-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 9px;
}
.case-card p { color: var(--fg-2); font-size: .9rem; line-height: 1.66; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(30px, 5vw, 64px);
    align-items: start;
}

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 4px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    transition: color .25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }

.faq-plus {
    position: relative;
    flex: none;
    width: 14px;
    height: 14px;
}
.faq-plus::before,
.faq-plus::after {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    height: 1.5px;
    background: var(--fg-2);
    transition: transform .3s var(--ease), background .3s;
}
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: rotate(0); }
.faq-item[open] .faq-plus::before,
.faq-item[open] .faq-plus::after { background: var(--accent); }

.faq-item p {
    padding: 0 4px 22px;
    color: var(--fg-2);
    font-size: .92rem;
    line-height: 1.7;
    max-width: 62ch;
}

/* ── Direction CTA ────────────────────────────────────────────────────── */
.dir-cta {
    position: relative;
    padding: clamp(56px, 8vw, 96px) 0;
    border-top: 1px solid var(--line);
    background:
        radial-gradient(ellipse 60% 100% at 50% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
        var(--bg);
    text-align: center;
}

.dir-cta-inner { display: grid; justify-items: center; gap: 16px; }

.dir-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -.022em;
    max-width: 24ch;
    text-wrap: balance;
}
.dir-cta p { color: var(--fg-1); max-width: 52ch; }
.dir-cta .btn { margin-top: 10px; }

/* ── 404 ──────────────────────────────────────────────────────────────── */
.not-found { min-height: 62vh; display: grid; place-items: center; }
.not-found-inner { display: grid; justify-items: center; gap: 16px; text-align: center; }
.not-found-code {
    font-size: clamp(3rem, 10vw, 6rem);
    letter-spacing: .1em;
    color: var(--accent);
    opacity: .35;
}

/* ── Reveal animation ─────────────────────────────────────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-terminal { max-width: 560px; }
    .contact-channels { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .work-item { grid-template-columns: 120px minmax(0, 1fr) 20px; }
    .work-tags { display: none; }
}

@media (max-width: 820px) {
    .site-nav {
        position: fixed;
        inset: 76px 0 auto;
        flex-direction: column;
        gap: 2px;
        padding: 16px var(--gutter) 26px;
        background: rgba(8, 9, 12, .97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--line);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s var(--ease), transform .3s var(--ease);
    }
    .site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
    .site-nav a { padding: 13px 4px; font-size: 1rem; border-radius: 0; border-bottom: 1px solid var(--line); }
    .nav-toggle { display: flex; }
    .header-cta { display: none; }
    .header-inner { gap: 14px; }
    .header-actions { margin-left: auto; }
}

@media (max-width: 640px) {
    .contact-card { gap: 14px; padding: 18px; }
    .contact-card-icon { width: 44px; height: 44px; }
    .contact-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
    .hero-facts { gap: 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .work-item { grid-template-columns: minmax(0, 1fr) 20px; gap: 14px; }
    .work-sector { grid-column: 1 / -1; }
    .console-row { grid-template-columns: minmax(0, 1fr) 70px; }
    .console-bar { display: none; }
    .timeline-item { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
    .timeline-item::before { left: 21px; }
    .dir-stats { grid-template-columns: 1fr; }
}

/* ==========================================================================
   About page — one individual layout, not a direction clone
   ========================================================================== */
.about-hero {
    position: relative;
    padding: clamp(60px, 8vw, 104px) 0 clamp(48px, 7vw, 84px);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(ellipse 52% 60% at 78% 18%, rgba(61, 220, 151, .1), transparent 68%),
        radial-gradient(ellipse 46% 52% at 12% 84%, rgba(34, 211, 238, .07), transparent 70%);
}

.about-hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000, transparent 78%);
    pointer-events: none;
}

.about-hero-glow {
    position: absolute;
    top: -180px;
    right: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61, 220, 151, .16), transparent 64%);
    filter: blur(30px);
    pointer-events: none;
}

.about-crumbs { position: relative; margin-bottom: 38px; }

.about-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(36px, 6vw, 72px);
    align-items: center;
}

.about-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: var(--accent);
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(2.05rem, 4.6vw, 3.4rem);
    line-height: 1.07;
    font-weight: 600;
    letter-spacing: -.03em;
    text-wrap: balance;
}
.about-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: word-in .78s var(--ease) forwards;
    animation-delay: calc(var(--w, 0) * 48ms + 90ms);
}

.about-lead {
    max-width: 58ch;
    margin-top: 25px;
    color: var(--fg-1);
    font-size: clamp(1rem, 1.28vw, 1.1rem);
    line-height: 1.74;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

/* Portrait + terminal column */
.about-hero-side { display: grid; gap: 18px; justify-items: stretch; }

.about-portrait {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: linear-gradient(150deg, var(--bg-2), var(--bg-1));
    box-shadow: var(--shadow);
}

.about-portrait-frame {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
    background: var(--bg-3);
    overflow: hidden;
    box-shadow:
        0 0 0 4px color-mix(in srgb, var(--accent) 8%, transparent),
        0 14px 30px -16px rgba(0, 0, 0, .9);
}

.about-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 34%;
    /* The source is a wide portrait shot; zoom on the face so it reads at 96px */
    transform: scale(1.6);
    transform-origin: 52% 36%;
    filter: saturate(.94) contrast(1.03);
    transition: transform .6s var(--ease), filter .6s var(--ease);
}
.about-portrait:hover .about-portrait-img {
    transform: scale(1.68);
    filter: saturate(1) contrast(1.05);
}

/* Faint scan-line texture over the photo — keeps the technical tone */
.about-portrait-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, .05) 0 1px,
        transparent 1px 8px
    );
    mix-blend-mode: overlay;
    pointer-events: none;
}

.about-portrait-initial {
    position: relative;
    z-index: 1;
    font-size: 1.32rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--accent);
}

.about-portrait figcaption { display: grid; gap: 3px; }
.about-portrait-name {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
}
.about-portrait-role { color: var(--fg-2); font-size: .7rem; }

.about-terminal { font-size: .78rem; }
.about-terminal-body {
    min-height: 0;
    font-size: .74rem;
    line-height: 1.85;
    padding: 18px 18px 22px;
}

.about-service-panel {
    display: grid;
    gap: 1px;
    padding: 10px;
    background: var(--line);
}

.about-service-line {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 14px;
    background: var(--bg-1);
    color: var(--fg-1);
}

.about-service-index {
    color: var(--accent);
    font-size: .7rem;
}

/* Stats strip */
.about-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: 1px;
    margin-top: clamp(44px, 6vw, 70px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
    overflow: hidden;
}

.about-stat { padding: 22px 20px; background: rgba(12, 14, 19, .82); }

.about-stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.8vw, 2.05rem);
    font-weight: 600;
    letter-spacing: -.03em;
    color: var(--accent);
}
.about-stat-value small {
    margin-left: 4px;
    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 400;
    letter-spacing: .06em;
    color: var(--fg-2);
}
.about-stat-label { margin-top: 5px; font-size: .82rem; color: var(--fg-2); }

/* Intro — two columns: heading left, prose right */
.about-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(30px, 5vw, 66px);
    align-items: start;
}

.about-intro-body { display: grid; gap: 18px; }
.about-intro-body p {
    color: var(--fg-1);
    font-size: clamp(.98rem, 1.15vw, 1.06rem);
    line-height: 1.78;
    max-width: 64ch;
}
.about-intro-body p:first-child { color: var(--fg); }

/* Year-by-year path — horizontal year rail, not the generic timeline */
.about-years {
    display: grid;
    border-top: 1px solid var(--line);
}

.about-year {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: clamp(18px, 3vw, 38px);
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
    transition: background .4s var(--ease), padding-inline .4s var(--ease);
}
.about-year:hover {
    background: rgba(255, 255, 255, .022);
    padding-inline: 16px;
}

.about-year-mark {
    position: relative;
    padding-top: 3px;
    color: var(--fg-2);
    font-size: .88rem;
    font-weight: 500;
    letter-spacing: .06em;
    transition: color .35s;
}
.about-year-mark::before {
    content: "";
    position: absolute;
    top: 8px;
    left: -16px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line-strong);
    transition: background .35s, box-shadow .35s;
}
.about-year:hover .about-year-mark { color: var(--accent); }
.about-year:hover .about-year-mark::before {
    background: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.about-year-body { display: grid; gap: 8px; }

.about-year-title {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 600;
}

.about-year-text {
    color: var(--fg-2);
    font-size: .92rem;
    line-height: 1.68;
    max-width: 62ch;
}

.about-year-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* Four principles read better as 2 × 2 than 3 + orphan */
.about-principles .cap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Now cards */
.about-now-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
    overflow: hidden;
}

.about-now-item {
    padding: 28px 26px 30px;
    background: var(--bg-1);
    transition: background .4s var(--ease);
}
.about-now-item:hover { background: var(--bg-2); }

.about-now-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--accent-2) 12%, transparent);
    color: var(--accent-2);
}

.about-now-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.about-now-text { color: var(--fg-2); font-size: .9rem; line-height: 1.66; }

/* Project cards get a tag row at the bottom */
.about-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

/* Closing note */
.about-note { padding: 0 0 clamp(56px, 8vw, 96px); }

.about-note-inner {
    padding: clamp(30px, 4vw, 52px);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse 60% 100% at 0% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 68%),
        var(--bg-1);
}

.about-note-title {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.about-note-text {
    font-family: var(--font-display);
    font-size: clamp(1.06rem, 1.9vw, 1.42rem);
    line-height: 1.52;
    font-weight: 500;
    letter-spacing: -.015em;
    max-width: 40ch;
    text-wrap: balance;
}

@media (max-width: 1000px) {
    .about-hero-inner { grid-template-columns: minmax(0, 1fr); }
    .about-hero-side {
        justify-items: stretch;
        max-width: 520px;
        margin-inline: auto;
    }
    .about-intro-grid { grid-template-columns: minmax(0, 1fr); }
    .about-portrait { width: 100%; }
}

@media (max-width: 780px) {
    .about-principles .cap-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
    .about-year { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .about-year-mark::before { top: 7px; left: -14px; }
    .about-year:hover { padding-inline: 0; background: transparent; }
    .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-note-text { max-width: none; }
    .about-portrait { gap: 14px; padding: 14px 16px; }
    .about-portrait-frame { width: 76px; height: 76px; }
}

/* ── Motion preferences ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
    .hero-title .word, .dir-title .word { opacity: 1; transform: none; }
}
