/* ===================================
   Aidin Abbasi - Editorial Theme
   Light + Dark, OS-aware, Fraunces (display) + Inter (body) + JetBrains Mono (terminal)
   =================================== */

* { margin: 0; padding: 0; box-sizing: border-box; min-width: 0; }

html {
    /* Lock the document width to the viewport on mobile so nothing can push
       the body wider (causing the “zoomed-out / empty space on the right” bug).
       overflow-x: clip is the modern way that doesn’t create a scroll container. */
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
}

:root {
    /* Type - Space Grotesk is the modern grotesque used for display headings
       (legible at large sizes on dark, clean italic for em accents).
       Inter is the body & UI face (high x-height, very legible on dark bg).
       JetBrains Mono is for terminal/log/eyebrow moments.
       Token name --font-serif is kept for backwards compatibility. */
    --font-serif: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

    /* Accent (shared light + dark) */
    --acid: #c8ff3d;
    --acid-soft: #d8ff6b;
    --acid-glow: rgba(200, 255, 61, 0.35);
    --cyan: #0ea5b7;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;
    --spacing-3xl: 9rem;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Light theme (default) ---- */
:root,
[data-theme="light"] {
    --bg: #fafbfc;
    --bg-2: #ffffff;
    --panel: #ffffff;
    --panel-2: #f4f6f9;
    --ink: #0f1419;
    --ink-2: #475569;
    --ink-dim: #64748b;
    --ink-faint: #94a3b8;
    --line: rgba(15, 20, 25, 0.08);
    --line-2: rgba(15, 20, 25, 0.14);
    --line-3: rgba(15, 20, 25, 0.22);
    --cyan-bg: rgba(14, 165, 183, 0.08);
    --cyan-border: rgba(14, 165, 183, 0.2);
    --cyan-text: #0e7490;
    --acid-on-bg: #4d6e00;          /* readable acid on light bg */
    --shadow-sm: 0 1px 2px rgba(15, 20, 25, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 20, 25, 0.06);
    --shadow-lg: 0 12px 32px rgba(15, 20, 25, 0.08);
    --shadow-xl: 0 24px 48px rgba(15, 20, 25, 0.1);
    --header-bg: rgba(255, 255, 255, 0.78);
    --status-bg: #0f1419;
    --status-ink: #94a3b8;
    --status-acid: var(--acid);
    --aurora-opacity: 0.35;
    --dotgrid-opacity: 0.5;
}

/* ---- Dark theme ---- */
[data-theme="dark"] {
    --bg: #06070b;
    --bg-2: #0a0c12;
    --panel: #0d1018;
    --panel-2: #11141d;
    --ink: #f4f6fb;
    --ink-2: #dde2ee;     /* brighter body text → comfortably above AA on #06070b */
    --ink-dim: #a9b0c4;   /* secondary captions */
    --ink-faint: #6b7389;
    --line: rgba(190, 205, 255, 0.08);
    --line-2: rgba(190, 205, 255, 0.16);
    --line-3: rgba(190, 205, 255, 0.28);
    --cyan-bg: rgba(125, 211, 252, 0.08);
    --cyan-border: rgba(125, 211, 252, 0.22);
    --cyan-text: #7dd3fc;
    --acid-on-bg: var(--acid);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.7);
    --header-bg: rgba(6, 7, 11, 0.72);
    --status-bg: #000;
    --status-ink: #8b91a6;
    --status-acid: var(--acid);
    --aurora-opacity: 1;
    --dotgrid-opacity: 1;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    /* Inter OpenType: tabular numbers + contextual alts + slashed zero */
    font-feature-settings: 'cv11', 'ss01', 'ss03', 'tnum', 'zero';
    text-rendering: optimizeLegibility;
    transition: background 0.3s, color 0.3s;
}

/* Defensive: never let raw images or media push the layout wider than its parent */
img, svg, video, canvas, iframe { max-width: 100%; }

a { color: inherit; text-decoration: none; }
::selection { background: var(--acid); color: #000; }

/* ===================================
   Atmospheric Layers
   =================================== */
.aurora {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: var(--aurora-opacity);
    transition: opacity 0.3s;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
}
.blob-1 {
    width: 900px; height: 900px;
    background: radial-gradient(circle, #0e5552 0%, transparent 65%);
    top: -300px; left: -200px;
    opacity: 0.65;
    animation: drift 36s ease-in-out infinite;
}
.blob-2 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, #1d3a72 0%, transparent 65%);
    top: 35%; right: -200px;
    opacity: 0.55;
    animation: drift 30s ease-in-out infinite -10s;
}
.blob-3 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--acid) 0%, transparent 60%);
    bottom: 8%; left: 30%;
    opacity: 0.06;
    animation: drift 24s ease-in-out infinite -6s;
}
@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(60px, -50px) scale(1.1); }
}

[data-theme="light"] .blob-1 { background: radial-gradient(circle, #5eead4 0%, transparent 65%); }
[data-theme="light"] .blob-2 { background: radial-gradient(circle, #93c5fd 0%, transparent 65%); }

.dotgrid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image: radial-gradient(rgba(190, 205, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
    opacity: var(--dotgrid-opacity);
}
[data-theme="light"] .dotgrid {
    background-image: radial-gradient(rgba(15, 20, 25, 0.07) 1px, transparent 1px);
}

main, header, footer, .status-bar { position: relative; z-index: 5; }

/* ===================================
   Layout
   =================================== */
.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===================================
   Status Bar
   =================================== */
.status-bar {
    background: var(--status-bg);
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--status-ink);
    padding: 9px 0;
    z-index: 60;
}
.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    max-width: 1280px;
    margin: 0 auto;
    gap: 24px;
    overflow: hidden;
    white-space: nowrap;
}
.status-row span { display: inline-flex; align-items: center; gap: 8px; }
.status-row .acid { color: var(--status-acid); }
.dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.dot.ok {
    background: var(--acid);
    box-shadow: 0 0 10px var(--acid-glow);
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.45; }
}

/* ===================================
   Navigation
   =================================== */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    transition: background 0.3s;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    max-width: 1280px;
    margin: 0 auto;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: -0.005em;
}
.brand-mark {
    width: 32px; height: 32px;
    border: 1px solid var(--acid-on-bg);
    background: linear-gradient(135deg, rgba(200, 255, 61, 0.18), rgba(200, 255, 61, 0.04));
    display: grid;
    place-items: center;
    color: var(--acid-on-bg);
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: inset 0 0 16px rgba(200, 255, 61, 0.1);
}
.brand-name b { color: var(--ink); font-weight: 500; }
.brand-name span { color: var(--ink-faint); font-weight: 400; }
.nav-menu {
    display: flex;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.02em;
    color: var(--ink-2);
}
.nav-menu a {
    transition: var(--transition);
    padding: 8px 14px;
    border-radius: 6px;
    display: flex;
    gap: 6px;
    align-items: center;
}
.nav-menu a:hover {
    color: var(--acid-on-bg);
    background: rgba(200, 255, 61, 0.08);
}
.nav-menu .nav-num { color: var(--ink-faint); font-size: 11px; }
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.theme-toggle {
    width: 36px; height: 36px;
    border: 1px solid var(--line-2);
    background: transparent;
    color: var(--ink-2);
    border-radius: 6px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: var(--transition);
}
.theme-toggle:hover {
    color: var(--acid-on-bg);
    border-color: var(--acid-on-bg);
}
.theme-toggle .sun-icon { display: block; }
.theme-toggle .moon-icon { display: none; }
[data-theme="dark"] .theme-toggle .sun-icon { display: none; }
[data-theme="dark"] .theme-toggle .moon-icon { display: block; }

.lang-switcher {
    display: flex;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    border: 1px solid var(--line-2);
    border-radius: 6px;
    overflow: hidden;
    color: var(--ink-dim);
}
.lang-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 8px 12px;
    transition: var(--transition-fast);
    font-family: inherit;
    font-size: inherit;
    letter-spacing: inherit;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active {
    background: var(--acid);
    color: #000;
    font-weight: 600;
}

/* ---- Mobile nav: hamburger + drawer (hidden on desktop) ---- */
.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    border: 1px solid var(--line-2);
    background: transparent;
    border-radius: 6px;
    padding: 0;
    cursor: pointer;
    position: relative;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    transition: var(--transition);
}
.nav-toggle:hover {
    border-color: var(--acid-on-bg);
}
.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
    transform-origin: center;
}
.nav-toggle.open .nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    background: var(--acid-on-bg);
}
.nav-toggle.open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    background: var(--acid-on-bg);
}

/* Mobile drawer
   IMPORTANT: when closed we use `display: none` (not just transform off-screen)
   because a fixed element positioned past the viewport still inflates the
   document scrollWidth on iOS Safari/Chrome - even with overflow-x: clip on
   <html>. That bug caused the page to render ~308px wider than the viewport,
   which manifested as “zoomed-out / empty space on the right”. */
.mobile-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(82vw, 320px);
    max-width: 100vw;
    background: var(--bg-2);
    border-left: 1px solid var(--line-2);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.35);
    z-index: 70;
    padding: 96px 28px 28px;
    overflow-y: auto;
    flex-direction: column;
    gap: 28px;
}
.mobile-drawer.open {
    display: flex;
    animation: drawer-slide-in 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes drawer-slide-in {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}
.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.drawer-link {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--ink);
    padding: 14px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}
.drawer-link:hover,
.drawer-link:active {
    color: var(--acid-on-bg);
    background: rgba(200, 255, 61, 0.06);
    border-color: var(--line-2);
}
.drawer-link .nav-num {
    font-size: 12px;
    color: var(--ink-faint);
    font-weight: 600;
    letter-spacing: 0.08em;
}

.mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    z-index: 65;
}
.mobile-backdrop.open {
    opacity: 1;
    visibility: visible;
}
body.nav-open {
    overflow: hidden;
}

/* Drawer footer (lang switch + contact email inside the mobile drawer) */
.drawer-foot {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--line-2);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.drawer-lang {
    align-self: flex-start;
}
.drawer-email {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--acid-on-bg);
    word-break: break-all;
    overflow-wrap: anywhere;
    transition: color 0.2s;
    line-height: 1.5;
}
.drawer-email:hover,
.drawer-email:active {
    color: var(--acid-soft);
}

/* ===================================
   Hero
   =================================== */
.hero {
    padding: 100px 0 72px;
    position: relative;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-dim);
    margin-bottom: 32px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: var(--panel);
    backdrop-filter: blur(8px);
    white-space: nowrap;
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-meta b { color: var(--acid-on-bg); font-weight: 500; }
.hero-meta .hero-meta-sep { color: var(--ink-faint); }
.hero-meta .dot { width: 7px; height: 7px; }

.hero-title {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(40px, 4.6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--ink);
    max-width: 14ch;
}
.hero-title em {
    font-style: italic;
    font-weight: 500;
    color: var(--acid-on-bg);
    text-shadow: 0 0 40px var(--acid-glow);
}

.hero-sub {
    margin-top: 36px;
    font-size: 18px;
    color: var(--ink-2);
    max-width: 560px;
    line-height: 1.6;
    font-weight: 400;
}

.hero-cta {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 26px;
    border-radius: 8px;
    background: var(--acid);
    color: #000;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 0 0 0 var(--acid-glow);
}
.btn-primary:hover {
    background: var(--acid-soft);
    transform: translateY(-1px);
    box-shadow: 0 8px 32px var(--acid-glow);
}
.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px;
    border-radius: 8px;
    border: 1px solid var(--line-2);
    background: var(--panel);
    backdrop-filter: blur(8px);
    font-size: 14px;
    color: var(--ink);
    font-family: var(--font-sans);
    font-weight: 500;
    transition: var(--transition);
}
.btn-ghost:hover {
    border-color: var(--ink-2);
    background: var(--panel-2);
}

.hero-trust {
    margin-top: 48px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--ink-faint);
    font-size: 13px;
    font-family: var(--font-mono);
    flex-wrap: wrap;
}
.hero-trust-line {
    flex: 0 0 32px;
    height: 1px;
    background: var(--line-2);
}

/* Hero visual: photo + agent graph */
.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
}
.profile-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.profile-card::before {
    content: '';
    position: absolute;
    top: 12px; right: 12px;
    width: 8px; height: 8px;
    background: var(--acid);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--acid-glow);
}
.profile-link {
    flex-shrink: 0;
    display: block;
    text-decoration: none;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.profile-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.profile-link:hover .profile-photo {
    transform: scale(1.04);
}
.profile-caption {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.profile-caption-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--acid-on-bg);
    font-weight: 600;
}
.profile-caption-name {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.profile-caption-role {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-dim);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.agent-graph {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-md);
    aspect-ratio: 500 / 360;
    overflow: hidden;
}
.agent-graph svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 0 40px rgba(13, 85, 82, 0.2));
}
.agent-graph .node-bg {
    fill: var(--panel-2);
    stroke: var(--line-2);
    stroke-width: 1;
    transition: stroke 0.3s;
}
.agent-graph .node:hover .node-bg { stroke: var(--cyan-text); }
.agent-graph .node-center .node-bg {
    fill: var(--bg);
    stroke: var(--acid-on-bg);
    stroke-width: 1.5;
}
.agent-graph .node text {
    font-family: var(--font-mono);
    font-size: 10px;
    fill: var(--ink-2);
    letter-spacing: 0.06em;
    text-anchor: middle;
    text-transform: uppercase;
    font-weight: 500;
}
.agent-graph .node-center text {
    fill: var(--acid-on-bg);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
}
.agent-graph .node text.sub {
    font-size: 9px;
    fill: var(--ink-dim);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: none;
}
.agent-graph .node-center text.sub { fill: var(--ink-dim); font-weight: 400; }
.agent-graph .node-center text.sub-acid { fill: var(--acid-on-bg); }
.agent-graph .node-center text.sub-faint { fill: var(--ink-faint); }
.agent-graph .edge {
    stroke: var(--line-3);
    stroke-width: 1;
    fill: none;
    stroke-dasharray: 3 5;
    animation: dash 30s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -200; } }

/* ===================================
   Marquee
   =================================== */
.marquee-section {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    margin-top: 32px;
    background: var(--panel);
}
.marquee {
    display: flex;
    gap: 0;
    animation: scroll 60s linear infinite;
    width: max-content;
    align-items: center;
}
.marquee span {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--ink-2);
    white-space: nowrap;
    padding: 18px 32px;
    border-right: 1px solid var(--line);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}
.marquee span b {
    color: var(--acid-on-bg);
    font-weight: 600;
    margin-right: 10px;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ===================================
   Section frame
   =================================== */
section.block {
    padding: 120px 0;
    position: relative;
}
.section-head {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 72px;
}
.section-head-left { display: flex; flex-direction: column; gap: 8px; }
.section-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--acid-on-bg);
    padding-top: 14px;
    border-top: 2px solid var(--acid-on-bg);
    display: inline-block;
    font-weight: 600;
}
.section-tag-num {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 64px;
    color: var(--ink-2);
    letter-spacing: -0.04em;
    font-weight: 500;
    line-height: 0.9;
}
.section-head-right h2 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-wrap: balance;
    max-width: 920px;
    color: var(--ink);
    margin-bottom: 0;
}
.section-head-right h2 em {
    font-style: italic;
    font-weight: 500;
    color: var(--acid-on-bg);
    text-shadow: 0 0 30px var(--acid-glow);
}
.lede {
    margin-top: 24px;
    font-family: var(--font-sans);
    font-size: 18px;
    color: var(--ink-2);
    max-width: 680px;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: -0.005em;
}

/* ===================================
   Capabilities
   =================================== */
.caps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line-2);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.cap {
    padding: 36px 32px;
    background: var(--panel);
    transition: background 0.25s;
    position: relative;
    cursor: default;
    min-height: 280px;
}
.cap:hover { background: var(--panel-2); }
.cap-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--acid-on-bg);
    letter-spacing: 0.14em;
    font-weight: 600;
}
.cap-title {
    margin-top: 20px;
    font-family: var(--font-serif);
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 500;
    color: var(--ink);
}
.cap-title em {
    font-style: italic;
    font-weight: 500;
    color: var(--cyan-text);
}
.cap-desc {
    margin-top: 16px;
    font-family: var(--font-sans);
    color: var(--ink-2);
    font-size: 15.5px;
    line-height: 1.65;
    font-weight: 400;
}
.cap-tags {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.cap-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 4px 9px;
    background: var(--cyan-bg);
    border: 1px solid var(--cyan-border);
    color: var(--cyan-text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 3px;
}
.cap-corner {
    position: absolute;
    top: 24px; right: 24px;
    width: 14px; height: 14px;
    border-top: 1px solid var(--line-3);
    border-right: 1px solid var(--line-3);
    transition: border-color 0.25s;
}
.cap:hover .cap-corner { border-color: var(--acid-on-bg); }

/* ===================================
   Selected Work - editorial rows w/ thumbnails
   =================================== */
.work-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line-2);
}
.work-row {
    display: grid;
    grid-template-columns: 60px 280px 1fr 140px;
    gap: 36px;
    padding: 36px 0;
    border-bottom: 1px solid var(--line-2);
    align-items: start;
    transition: padding 0.25s;
    position: relative;
}
.work-row::before {
    content: '';
    position: absolute;
    left: -24px; right: -24px;
    top: 0; bottom: 0;
    background: rgba(200, 255, 61, 0.04);
    opacity: 0;
    transition: opacity 0.25s;
    border-radius: 8px;
    pointer-events: none;
}
.work-row:hover::before { opacity: 1; }
.work-num {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--acid-on-bg);
    letter-spacing: 0.14em;
    font-weight: 600;
    padding-top: 6px;
}
.work-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--panel-2);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--line-2);
    position: relative;
    box-shadow: var(--shadow-sm);
}
.work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.work-row:hover .work-thumb img { transform: scale(1.04); }
.work-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
}
.work-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-dim);
    font-weight: 500;
}
.work-title {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 0;
}
.work-title em {
    font-style: italic;
    font-weight: 500;
    color: var(--acid-on-bg);
}
.work-desc {
    font-family: var(--font-sans);
    color: var(--ink-2);
    font-size: 16px;
    line-height: 1.7;
    font-weight: 400;
    max-width: 60ch;
    margin-bottom: 0;
}
.work-tags {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.work-tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    padding: 5px 11px;
    border: 1px solid var(--line-2);
    color: var(--ink-2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 3px;
    background: var(--panel-2);
}
.work-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 6px;
    text-align: right;
}
.work-stat {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-dim);
    line-height: 1.7;
}
.work-stat b {
    display: block;
    color: var(--ink);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 32px;
    letter-spacing: -0.03em;
    font-weight: 600;
    text-transform: none;
    line-height: 1;
    margin-bottom: 8px;
}

/* ===================================
   Build log (terminal)
   =================================== */
.more-log {
    margin-top: 56px;
    border: 1px solid var(--line-2);
    background: var(--panel);
    font-family: var(--font-mono);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.more-log-head {
    padding: 14px 22px;
    border-bottom: 1px solid var(--line-2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--status-bg);
    color: var(--status-ink);
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.more-log-dots { display: flex; gap: 6px; }
.more-log-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--ink-faint);
}
.more-log-dots span:first-child { background: #ff5f57; }
.more-log-dots span:nth-child(2) { background: #febc2e; }
.more-log-dots span:last-child { background: #28c840; }

.more-log-row {
    padding: 16px 22px;
    display: grid;
    grid-template-columns: 90px 90px 1fr auto;
    gap: 24px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    transition: background 0.15s;
}
.more-log-row:hover { background: rgba(200, 255, 61, 0.04); }
.more-log-row:last-child { border-bottom: none; }
.more-log-row .ts { color: var(--ink-faint); font-size: 12px; letter-spacing: 0.04em; }
.more-log-row .lvl { color: var(--acid-on-bg); font-size: 11px; letter-spacing: 0.14em; font-weight: 600; }
.more-log-row .msg {
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 15.5px;
    font-weight: 400;
    letter-spacing: -0.005em;
}
.more-log-row .ok {
    color: var(--cyan-text);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* ===================================
   Who I help
   =================================== */
.who-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.who-col h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 36px;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: var(--ink);
    line-height: 1.05;
}
.who-col h3 em {
    font-style: italic;
    font-weight: 500;
    color: var(--acid-on-bg);
}
.who-col > p {
    font-family: var(--font-sans);
    font-size: 17px;
    color: var(--ink-2);
    line-height: 1.7;
    font-weight: 400;
    max-width: 50ch;
    margin-bottom: 32px;
}
.who-list {
    list-style: none;
    border-top: 1px solid var(--line-2);
    counter-reset: wn;
}
.who-list li {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 20px;
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--ink);
    align-items: start;
    font-weight: 400;
    line-height: 1.55;
    counter-increment: wn;
    transition: padding 0.2s;
}
.who-list li::before {
    content: "0" counter(wn);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--acid-on-bg);
    letter-spacing: 0.08em;
    font-weight: 600;
    padding-top: 4px;
}
.who-list li:last-child { border-bottom: none; }
.who-list li:hover { padding-left: 8px; }

/* ===================================
   Process timeline
   =================================== */
.process {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--line-2);
    margin-left: 24px;
}
.step {
    position: relative;
    padding: 0 0 56px 56px;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: start;
}
.step:last-child { padding-bottom: 0; }
.step::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 6px;
    width: 13px; height: 13px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--acid-on-bg);
    box-shadow: 0 0 14px var(--acid-glow);
}
.step-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.step-num {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--acid-on-bg);
    letter-spacing: 0.14em;
    font-weight: 600;
    text-transform: uppercase;
}
.step h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 0;
}
.step h3 em {
    font-style: italic;
    font-weight: 500;
    color: var(--acid-on-bg);
}
.step p {
    font-family: var(--font-sans);
    font-size: 16.5px;
    color: var(--ink-2);
    line-height: 1.7;
    max-width: 56ch;
    font-weight: 400;
    margin: 0;
}
.step-time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 10px;
    border: 1px solid var(--line-2);
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

/* ===================================
   Trust strip
   =================================== */
.trust-row {
    margin-top: 80px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--line-2);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.trust-chip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    background: var(--panel);
    font-size: 12.5px;
    color: var(--ink);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    transition: background 0.2s;
}
.trust-chip:hover { background: var(--panel-2); }
.trust-chip svg {
    width: 20px; height: 20px;
    color: var(--acid-on-bg);
    flex-shrink: 0;
}

/* ===================================
   Contact
   =================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: start;
}
.contact-info p {
    font-size: 16.5px;
    color: var(--ink);
    margin-bottom: 18px;
    line-height: 1.55;
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 14px;
    align-items: start;
    font-weight: 400;
}
.contact-info p::before {
    content: '';
    width: 16px; height: 16px;
    border: 1.5px solid var(--acid-on-bg);
    border-radius: 50%;
    display: block;
    margin-top: 5px;
    background: radial-gradient(circle, var(--acid-on-bg) 30%, transparent 35%);
}
.email-block {
    margin-top: 36px;
    border-top: 1px solid var(--line-2);
    padding-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.email-block .email {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--acid-on-bg);
    display: block;
    letter-spacing: 0;
    font-weight: 500;
    text-shadow: 0 0 24px var(--acid-glow);
    transition: color 0.2s;
    word-break: break-all;
}
.email-block .email:hover { color: var(--acid-soft); }

.contact-form-wrap {
    padding: 36px;
    background: var(--panel);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    max-width: none;
}
.field { display: flex; flex-direction: column; }
.field label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-dim);
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}
.field label::before { content: "› "; color: var(--acid-on-bg); }

.field input,
.field textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line-2);
    padding: 14px 16px;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 400;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    border-radius: 6px;
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--acid-on-bg);
    background: var(--bg-2);
    box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.12);
}
.field textarea {
    resize: vertical;
    min-height: 110px;
    font-family: var(--font-sans);
}

.submit-button {
    margin-top: 4px;
    padding: 16px 26px;
    border: none;
    border-radius: 8px;
    background: var(--acid);
    color: #000;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    align-self: flex-start;
    letter-spacing: 0.01em;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.submit-button:hover:not(:disabled) {
    background: var(--acid-soft);
    box-shadow: 0 8px 32px var(--acid-glow);
    transform: translateY(-1px);
}
.submit-button:disabled { opacity: 0.6; cursor: not-allowed; }
.submit-button .btn-loading { display: none; }
.submit-button.loading .btn-text { display: none; }
.submit-button.loading .btn-loading { display: inline; }
.submit-button.loading svg { display: none; }

.error-message {
    display: block;
    color: #ef4444;
    font-size: 12.5px;
    margin-top: 6px;
    font-family: var(--font-mono);
}
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.form-feedback {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.04em;
    display: none;
}
.form-feedback.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid #10b981;
}
.form-feedback.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid #ef4444;
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--line);
    margin-top: 100px;
    background: var(--panel);
}
.foot {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--ink-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.foot-copy { color: var(--ink-dim); }
.foot-mark {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--ink);
    text-transform: none;
    letter-spacing: -0.02em;
    font-weight: 600;
    text-align: center;
}
.foot-mark .acid { color: var(--acid-on-bg); }
.foot-right {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: flex-end;
}
.social-links {
    display: flex;
    gap: 8px;
}
.social-link {
    width: 36px; height: 36px;
    border: 1px solid var(--line-2);
    display: grid;
    place-items: center;
    color: var(--ink-2);
    transition: var(--transition);
    border-radius: 6px;
}
.social-link:hover {
    color: var(--acid-on-bg);
    border-color: var(--acid-on-bg);
    background: rgba(200, 255, 61, 0.05);
}
.footer-links {
    display: flex;
    gap: 16px;
}
.footer-link {
    background: none;
    border: none;
    color: var(--ink-dim);
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
    text-decoration: none;
}
.footer-link:hover { color: var(--acid-on-bg); }

/* ===================================
   Modals (preserved)
   =================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow-y: auto;
    padding: var(--spacing-md);
}
.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}
.modal-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h2 {
    font-family: var(--font-serif);
    font-size: 26px;
    margin: 0;
    color: var(--ink);
    font-weight: 600;
    letter-spacing: -0.02em;
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--ink-2);
    cursor: pointer;
    width: 36px; height: 36px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    transition: var(--transition);
}
.modal-close:hover {
    background: var(--panel-2);
    color: var(--ink);
}
.modal-body {
    padding: var(--spacing-md);
    line-height: 1.7;
    color: var(--ink-2);
    font-size: 15px;
}
.modal-body h3 {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
    color: var(--ink);
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.01em;
}
.modal-body h3:first-child { margin-top: 0; }
.modal-body p { margin-bottom: var(--spacing-sm); color: var(--ink-2); }

/* ===================================
   RTL (FA was excluded; safe to keep)
   =================================== */
[dir="rtl"] .nav-menu { flex-direction: row-reverse; }

/* ===================================
   Responsive - three-stage system
   ≥ 1100px : desktop (default)
   768-1099 : tablet
   481-767  : phone
   ≤ 480    : small phone
   =================================== */

/* ---- Tablet (≤ 1099px) ---- */
@media (max-width: 1099px) {
    .wrap { padding: 0 28px; }
    .nav-container { padding: 16px 28px; gap: 16px; }
    .status-row { padding: 0 28px; gap: 18px; }
    /* Drop the 4th-6th status items on tablet (keep online · clock · location) */
    .status-row span:nth-child(n+4) { display: none; }

    .hero { padding: 64px 0 56px; }
    .hero-grid { gap: 40px; grid-template-columns: 1.1fr 1fr; }

    .section-head {
        grid-template-columns: 180px 1fr;
        gap: 40px;
        margin-bottom: 56px;
    }
    .section-tag-num { font-size: 56px; }
    section.block { padding: 96px 0; }

    .caps { grid-template-columns: repeat(2, 1fr); }

    .work-row {
        grid-template-columns: 44px 200px 1fr 100px;
        gap: 24px;
    }
    .work-title { font-size: 26px; }
    .work-stat b { font-size: 28px; }

    .who-grid { gap: 56px; }
    .trust-row { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Tablet portrait & small tablet (≤ 960px): collapse multi-col layouts ---- */
@media (max-width: 960px) {
    /* Show hamburger, hide desktop nav */
    .nav-menu { display: none; }
    .nav-toggle { display: inline-flex; }
    /* Compact header actions on tablet */
    .nav-actions { gap: 8px; }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero-text { order: 1; }
    .hero-visual { order: 2; max-width: 560px; margin: 0 auto; width: 100%; }
    .hero-title { max-width: 100%; }

    .section-head {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 44px;
    }
    .section-tag-num { font-size: 44px; }

    .who-grid { grid-template-columns: 1fr; gap: 48px; }

    .step {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-left: 36px;
        padding-bottom: 40px;
    }

    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-form-wrap { padding: 28px; }

    .foot {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .foot-right { justify-content: center; flex-wrap: wrap; }
}

/* ---- Phone (≤ 767px) ---- */
@media (max-width: 767px) {
    .wrap { padding: 0 20px; }
    .nav-container { padding: 12px 20px; gap: 10px; }
    .status-row { padding: 0 20px; gap: 14px; font-size: 10.5px; }
    /* Status bar: keep only ONLINE + clock + booking on phone */
    .status-row span:nth-child(3),
    .status-row span:nth-child(4),
    .status-row span:nth-child(6) { display: none; }
    /* Hide brand secondary text to free up space */
    .brand-name span { display: none; }
    /* Slim header further */
    .lang-switcher { display: none; }

    .hero { padding: 40px 0 40px; }
    .hero-grid { gap: 36px; }
    .hero-meta {
        white-space: normal;
        font-size: 10px;
        padding: 7px 13px;
        gap: 8px;
        line-height: 1.4;
    }
    .hero-meta .hero-meta-sep { display: none; }
    .hero-sub { font-size: 16.5px; margin-top: 28px; }
    .hero-cta { margin-top: 32px; gap: 10px; }
    .hero-trust { margin-top: 36px; gap: 14px; font-size: 11.5px; }
    .hero-trust-line { flex: 0 0 18px; }

    /* Hide the agent graph on phones - text labels are unreadable below ~520px */
    .agent-graph { display: none; }
    .hero-visual { gap: 0; }

    section.block { padding: 64px 0; }
    .section-head { gap: 12px; margin-bottom: 36px; }
    .section-tag { font-size: 10.5px; }
    .section-tag-num { font-size: 36px; }
    .lede { font-size: 16px; margin-top: 18px; }

    .caps { grid-template-columns: 1fr; border-radius: 10px; }
    .cap { padding: 28px 22px; min-height: auto; }
    .cap-title { font-size: 24px; margin-top: 16px; }
    .cap-desc { font-size: 15px; margin-top: 12px; }
    .cap-corner { top: 18px; right: 18px; }

    .work-row {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 28px 0;
    }
    /* Disable the negative-margin hover overlay on phone (caused horizontal scroll) */
    .work-row::before { display: none; }
    .work-num { padding-top: 0; font-size: 12px; }
    .work-thumb { max-width: 100%; }
    .work-meta { padding-top: 0; gap: 10px; }
    .work-title { font-size: 22px; }
    .work-desc { font-size: 15px; line-height: 1.6; }
    .work-side { align-items: flex-start; text-align: left; padding-top: 0; }
    .work-stat b { font-size: 26px; }

    .more-log { margin-top: 36px; }
    .more-log-head { padding: 12px 16px; font-size: 10.5px; }
    .more-log-row {
        grid-template-columns: 70px 1fr;
        gap: 12px;
        padding: 12px 16px;
    }
    .more-log-row .lvl,
    .more-log-row .ok { display: none; }
    .more-log-row .ts { font-size: 11px; }
    .more-log-row .msg { font-size: 14px; }

    .who-col h3 { font-size: 26px; }
    .who-col > p { font-size: 16px; margin-bottom: 24px; }
    .who-list li { grid-template-columns: 32px 1fr; gap: 14px; font-size: 15.5px; padding: 14px 0; }
    .who-list li:hover { padding-left: 4px; }

    .process { margin-left: 14px; }
    .step { padding-left: 28px; padding-bottom: 32px; gap: 10px; }
    .step::before { left: -7px; width: 11px; height: 11px; }
    .step h3 { font-size: 22px; }
    .step p { font-size: 15.5px; }

    .trust-row { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
    .trust-chip { padding: 16px 18px; font-size: 11.5px; gap: 10px; }
    .trust-chip svg { width: 16px; height: 16px; }

    .contact-form-wrap { padding: 22px; }
    .field input, .field textarea { font-size: 16px; padding: 13px 14px; }
    .email-block .email { font-size: 16px; overflow-wrap: anywhere; word-break: break-word; }

    .footer { margin-top: 56px; padding: 32px 0; }
    .foot { gap: 16px; }
    .foot-mark { font-size: 18px; }

    /* Modals on phone */
    .modal { padding: 12px; }
    .modal-content { max-height: 92vh; }
    .modal-header { padding: 18px; }
    .modal-header h2 { font-size: 22px; }
    .modal-body { padding: 18px; font-size: 14.5px; }
    .modal-body h3 { font-size: 16px; margin-top: 18px; }

    /* Marquee: tighter padding so it doesn't dominate */
    .marquee span { padding: 14px 22px; font-size: 12px; }
}

/* ---- Small phone (≤ 480px) ---- */
@media (max-width: 480px) {
    .wrap { padding: 0 16px; }
    .nav-container { padding: 10px 16px; gap: 8px; }
    .status-row { padding: 0 16px; gap: 10px; font-size: 10px; }
    /* On the smallest screens keep only ONLINE + clock */
    .status-row span:nth-child(5) { display: none; }

    .brand-mark { width: 28px; height: 28px; font-size: 14px; }
    .theme-toggle { width: 34px; height: 34px; }
    .nav-toggle { width: 36px; height: 36px; }

    .hero { padding: 32px 0 36px; }
    .hero-meta {
        font-size: 9.5px;
        padding: 6px 10px;
        letter-spacing: 0.12em;
    }
    .hero-title { font-size: 36px; line-height: 1.08; }
    .hero-sub { font-size: 15.5px; margin-top: 24px; }
    .hero-cta { width: 100%; flex-direction: column; align-items: stretch; }
    .btn-primary, .btn-ghost {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    .hero-trust { gap: 10px; font-size: 10.5px; }

    section.block { padding: 48px 0; }
    .section-tag-num { font-size: 30px; }

    .cap { padding: 24px 18px; }
    .cap-title { font-size: 22px; }

    .work-title { font-size: 20px; }
    .work-tag { font-size: 9.5px; padding: 4px 9px; }

    .who-col h3 { font-size: 22px; }
    .step h3 { font-size: 20px; }

    .trust-row { grid-template-columns: 1fr; }

    .profile-card { flex-direction: column; align-items: center; gap: 14px; padding: 14px; text-align: center; }
    .profile-photo { width: 100%; height: auto; max-width: 200px; aspect-ratio: 1; }
    .profile-caption { align-items: center; }

    .contact-form-wrap { padding: 18px; }
    .footer-link, .foot-copy, .foot { font-size: 10.5px; letter-spacing: 0.08em; }
}

/* ===================================
   AI Video Marketing Spotlight
   =================================== */

/* "NEW" pill badge on capability card */
.cap-new-badge {
    position: absolute;
    top: 24px; right: 24px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    background: var(--acid);
    color: #000;
    padding: 3px 8px;
    border-radius: 999px;
}

/* Full-width vertical stack: top-row → wide-img → details */
.video-showcase {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Row 1: left col (video + img stacked) | right col (tall image) */
.video-top-row {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 12px;
    align-items: stretch;
}

/* Left column: video on top, image below - both same 16:9 width */
.video-left-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Video player panel */
.video-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow-lg);
    background: var(--panel-2);
}
.video-demo-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--panel-2);
}

/* "DEMO REEL" overlay badge */
.video-demo-badge {
    position: absolute;
    top: 14px; left: 14px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    background: rgba(6, 7, 11, 0.72);
    color: var(--acid);
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(200, 255, 61, 0.3);
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.video-demo-badge::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--acid);
    box-shadow: 0 0 8px var(--acid-glow);
    animation: pulse 1.8s infinite;
}
[data-theme="light"] .video-demo-badge {
    background: rgba(255, 255, 255, 0.82);
    color: var(--acid-on-bg);
    border-color: rgba(77, 110, 0, 0.3);
}

/* Right column: tall image filling full height of the two stacked items */
.video-aside-img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-2);
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.video-aside-img:hover { transform: scale(1.02); }

/* Row 3: props strip + client badge side by side */
.video-details {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: stretch;
}
.video-details .video-props {
    flex: 1;
}
.video-details .video-client-badge {
    flex-shrink: 0;
    min-width: 210px;
    align-self: stretch;
}

/* 3-cell value-props strip */
.video-props {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line-2);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.video-prop {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px 14px;
    background: var(--panel);
    transition: background 0.2s;
}
.video-prop:hover { background: var(--panel-2); }
.video-prop-label {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--acid-on-bg);
    font-weight: 700;
}
.video-prop-value {
    font-family: var(--font-sans);
    font-size: 13.5px;
    color: var(--ink-2);
    line-height: 1.45;
    font-weight: 400;
}

/* "Trusted by Bien-Zenker" client badge */
.video-client-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--panel);
    border: 1px solid var(--line-2);
    border-left: 3px solid var(--acid-on-bg);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-2);
    box-shadow: var(--shadow-sm);
}
.video-client-badge::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--acid);
    box-shadow: 0 0 10px var(--acid-glow);
    flex-shrink: 0;
    animation: pulse 1.8s infinite;
}
.video-client-badge b { color: var(--ink); font-weight: 600; }

/* ---- Responsive: AI Video section ---- */

/* Tablet (≤1099px) */
@media (max-width: 1099px) {
    .video-top-row { grid-template-columns: 1.4fr 1fr; }
}

/* Tablet portrait (≤960px): stack to single column */
@media (max-width: 960px) {
    .video-top-row { grid-template-columns: 1fr; }
    .video-aside-img { aspect-ratio: 16 / 9; height: auto; }
    .video-details { flex-direction: column; }
    .video-details .video-client-badge { min-width: auto; }
}

/* Phone (≤767px) */
@media (max-width: 767px) {
    .video-showcase { gap: 10px; }
    .video-left-col { gap: 10px; }
    .video-props { grid-template-columns: repeat(3, 1fr); }
    .video-prop { padding: 12px 10px; }
    .video-prop-label { font-size: 9px; letter-spacing: 0.12em; }
    .video-prop-value { font-size: 12.5px; }
    .video-client-badge { font-size: 10.5px; padding: 13px 16px; gap: 10px; }
}

/* Small phone (≤480px) */
@media (max-width: 480px) {
    .video-props { grid-template-columns: 1fr; }
    .video-prop { padding: 12px 14px; flex-direction: row; align-items: center; gap: 12px; }
    .video-prop-label { min-width: 56px; }
}

