/* ============================================
   DIGIGAMI - Design system v2 (light + dark)
   Palette order (fixed): pink, coral, orange, yellow, green, cyan, blue, purple
   ============================================ */

:root {
    /* Accent fills: the original 2026 mockup hexes, used for fills, gradients, the wheel and the logo */
    --pink: #d16ba5;
    --coral: #f28d7d;
    --orange: #f0856a;
    --yellow: #f3e06e;
    --green: #5bd6a2;
    --cyan: #5ed5d5;
    --blue: #5da5d5;
    --purple: #9b6dd6;

    /* Gradients for fills (same in both themes) */
    --gradient-spiral: linear-gradient(135deg, var(--cyan), var(--green), var(--yellow), var(--orange), var(--pink));
    --gradient-mystical: linear-gradient(135deg, var(--purple) 0%, var(--cyan) 50%, var(--green) 100%);

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 7rem;

    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --radius-lg: 24px;
    --radius-md: 16px;
    --header-h: 64px;
}

/* ---------- LIGHT theme (default when no data-theme and system is light) ---------- */
:root,
:root[data-theme="light"] {
    color-scheme: light;
    --bg-void: #fbfbfe;
    --bg-deep: #f3f3f8;
    --bg-medium: #e9e9f2;
    --bg-surface: #ffffff;
    --bg-elevated: #f3f3f8;
    --text-primary: #14141c;
    --text-secondary: #4a4a5c;
    --text-muted: #5f5f73;
    --line: rgba(20, 20, 28, 0.12);
    --line-strong: rgba(20, 20, 28, 0.28);
    --header-bg: rgba(251, 251, 254, 0.92);
    --glass: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.75) 100%);
    --shadow-card: 0 20px 40px rgba(20, 20, 40, 0.08);
    --cosmic-strength: 0.55;
    /* Accent TEXT shades: darker versions of the 8 accents, AA 4.5:1 on every light background */
    --t-pink: #b1377c;
    --t-coral: #c52c14;
    --t-orange: #c03613;
    --t-yellow: #77670a;
    --t-green: #1d7650;
    --t-cyan: #1e7272;
    --t-blue: #286c9a;
    --t-purple: #8249cc;
    --gradient-spiral-text: linear-gradient(135deg, var(--t-cyan), var(--t-green), var(--t-yellow), var(--t-orange), var(--t-pink));
}

/* ---------- DARK theme (the original 2026 mockup backgrounds) ---------- */
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg-void: #050508;
    --bg-deep: #0a0a0f;
    --bg-medium: #111118;
    --bg-surface: #1a1a24;
    --bg-elevated: #242430;
    --text-primary: #f0f0f8;
    --text-secondary: #a0a0b8;
    --text-muted: #8a8aa3;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.22);
    --header-bg: rgba(5, 5, 8, 0.9);
    --glass: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    --shadow-card: 0 30px 60px rgba(0, 0, 0, 0.3);
    --cosmic-strength: 1;
    --t-pink: #d16ba5;
    --t-coral: #f28d7d;
    --t-orange: #f0856a;
    --t-yellow: #f3e06e;
    --t-green: #5bd6a2;
    --t-cyan: #5ed5d5;
    --t-blue: #5da5d5;
    --t-purple: #b48ee6;
    --gradient-spiral-text: var(--gradient-spiral);
}

/* No-JS fallback: follow the system setting */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        color-scheme: dark;
        --bg-void: #050508;
        --bg-deep: #0a0a0f;
        --bg-medium: #111118;
        --bg-surface: #1a1a24;
        --bg-elevated: #242430;
        --text-primary: #f0f0f8;
        --text-secondary: #a0a0b8;
        --text-muted: #8a8aa3;
        --line: rgba(255, 255, 255, 0.09);
        --line-strong: rgba(255, 255, 255, 0.22);
        --header-bg: rgba(5, 5, 8, 0.9);
        --glass: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
        --shadow-card: 0 30px 60px rgba(0, 0, 0, 0.3);
        --cosmic-strength: 1;
        --t-pink: #d16ba5;
        --t-coral: #f28d7d;
        --t-orange: #f0856a;
        --t-yellow: #f3e06e;
        --t-green: #5bd6a2;
        --t-cyan: #5ed5d5;
        --t-blue: #5da5d5;
        --t-purple: #b48ee6;
        --gradient-spiral-text: var(--gradient-spiral);
    }
}

/* ---------- High contrast ---------- */
:root[data-contrast="high"][data-theme="light"] {
    --text-secondary: #24242e;
    --text-muted: #33333f;
    --line: rgba(0, 0, 0, 0.45);
    --line-strong: rgba(0, 0, 0, 0.8);
    --bg-void: #ffffff;
}
:root[data-contrast="high"][data-theme="dark"] {
    --text-secondary: #e2e2ee;
    --text-muted: #c6c6d8;
    --line: rgba(255, 255, 255, 0.4);
    --line-strong: rgba(255, 255, 255, 0.8);
    --bg-void: #000000;
}
:root[data-contrast="high"] a:not(.btn):not(.logo) { text-decoration: underline; }

/* ---------- Text size ---------- */
html { font-size: 100%; }
:root[data-text="sm"] { font-size: 90%; }
:root[data-text="lg"] { font-size: 115%; }
:root[data-text="xl"] { font-size: 130%; }

/* ---------- Reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    font-family: var(--font-body);
    background: var(--bg-void);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--t-cyan); }
::selection { background: var(--cyan); color: #050508; }
:focus-visible { outline: 3px solid var(--t-cyan); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 3000; padding: 0.75rem 1rem; background: var(--bg-surface); color: var(--text-primary); border-radius: 10px; border: 2px solid var(--t-cyan); }
.skip-link:focus { top: 0.75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* ---------- Cosmic background ---------- */
.cosmic-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; opacity: var(--cosmic-strength); pointer-events: none; }
.cosmic-bg::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(155, 109, 214, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(94, 213, 213, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(91, 214, 162, 0.05) 0%, transparent 50%);
    animation: cosmicPulse 20s ease-in-out infinite;
}
@keyframes cosmicPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.1); } }
.stars {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, var(--cyan), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--purple), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--pink), transparent),
        radial-gradient(2px 2px at 160px 120px, var(--green), transparent),
        radial-gradient(1px 1px at 230px 80px, var(--yellow), transparent),
        radial-gradient(2px 2px at 300px 150px, var(--cyan), transparent),
        radial-gradient(1px 1px at 370px 50px, var(--purple), transparent),
        radial-gradient(2px 2px at 440px 200px, var(--pink), transparent);
    background-size: 500px 250px;
    animation: starsFloat 60s linear infinite;
    opacity: 0.6;
}
@keyframes starsFloat { from { transform: translateY(0); } to { transform: translateY(-250px); } }
.grid-overlay {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(94, 213, 213, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 213, 213, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--header-bg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1400px; margin: 0 auto; min-height: var(--header-h); padding: 0 var(--space-md); display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }

.logo { display: flex; align-items: center; gap: var(--space-sm); text-decoration: none; min-height: 44px; }
.logo-mark { width: 40px; height: 40px; flex-shrink: 0; }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo-text { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; background: var(--gradient-spiral); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links { display: none; gap: var(--space-lg); }
.nav-link { color: var(--text-secondary); text-decoration: none; font-size: 0.92rem; font-weight: 500; position: relative; padding: 0.6rem 0; }
.nav-link::after { content: ''; position: absolute; bottom: 0.3rem; left: 0; width: 0; height: 2px; background: var(--gradient-spiral); transition: width 0.3s var(--ease-out-expo); }
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: var(--space-sm); }
.btn.header-cta { display: none; }

/* details-based menus (work without JS) */
.hdr-menu { position: relative; }
.hdr-menu > summary {
    list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; padding: 0 0.9rem;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    border: 1px solid var(--line-strong); border-radius: 100px; color: var(--text-primary);
    font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; background: var(--bg-surface);
}
.hdr-menu > summary::-webkit-details-marker { display: none; }
.hdr-menu[open] > summary { border-color: var(--t-cyan); }
.hdr-panel {
    position: absolute; right: 0; top: calc(100% + 10px); width: min(340px, calc(100vw - 32px));
    background: var(--bg-surface); border: 1px solid var(--line-strong); border-radius: var(--radius-md);
    padding: var(--space-md); box-shadow: var(--shadow-card); z-index: 1100;
}
.menu-links { display: flex; flex-direction: column; margin-bottom: var(--space-md); }
.menu-links a { display: flex; align-items: center; min-height: 44px; color: var(--text-primary); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.menu-links a:last-child { border-bottom: none; }
.menu-links a:hover { color: var(--t-cyan); }
.menu-cta { width: 100%; justify-content: center; margin-top: var(--space-sm); }

/* Display controls (rendered by js/site.js) */
.controls-note { font-size: 0.85rem; color: var(--text-muted); }
.ctl { border: none; margin-bottom: var(--space-md); }
.ctl legend, .ctl-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.4rem; font-family: var(--font-mono); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; }
.seg button {
    min-height: 44px; background: transparent; border: none; border-right: 1px solid var(--line); color: var(--text-primary);
    font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; cursor: pointer;
}
.seg button:last-child { border-right: none; }
.seg button[aria-pressed="true"] { background: var(--gradient-mystical); color: #050508; }
.switch {
    width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
    background: transparent; border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 0.9rem; margin-bottom: var(--space-sm);
    color: var(--text-primary); font-family: var(--font-body); font-size: 0.92rem; font-weight: 600; cursor: pointer;
}
.switch-track { width: 40px; height: 22px; border-radius: 100px; background: var(--bg-medium); border: 1px solid var(--line-strong); position: relative; flex-shrink: 0; }
.switch-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-muted); transition: transform 0.2s ease; }
.switch[aria-checked="true"] .switch-track { background: var(--green); border-color: var(--green); }
.switch[aria-checked="true"] .switch-track::after { transform: translateX(18px); background: #050508; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); min-height: 48px; padding: 0.85rem 1.75rem;
    border-radius: 100px; font-family: var(--font-body); font-size: 1rem; font-weight: 600; cursor: pointer;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo), border-color 0.3s ease; text-decoration: none;
}
.btn-sm { min-height: 44px; padding: 0.55rem 1.2rem; font-size: 0.9rem; }
.btn-primary { background: var(--gradient-mystical); border: none; color: #050508; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(94, 213, 213, 0.35); }
.btn-secondary { background: transparent; border: 2px solid var(--line-strong); color: var(--text-primary); }
.btn-secondary:hover { border-color: var(--t-cyan); color: var(--t-cyan); }

/* ---------- Status pills ---------- */
.status { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.7rem; border-radius: 100px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; border: 1px solid currentColor; white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-live { color: var(--t-green); }
.status-built { color: var(--t-yellow); }
.status-soon { color: var(--t-purple); }
.status-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* ---------- Sections ---------- */
section { padding: var(--space-xl) var(--space-md); position: relative; }
.wrap { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; max-width: 760px; margin: 0 auto var(--space-lg); }
.section-tag { display: inline-flex; align-items: center; gap: var(--space-sm); padding: 0.4rem 1rem; background: rgba(94, 213, 213, 0.1); border: 1px solid rgba(94, 213, 213, 0.35); border-radius: 100px; font-size: 0.78rem; color: var(--t-cyan); margin-bottom: var(--space-md); text-transform: uppercase; letter-spacing: 0.1em; }
.section-title { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; line-height: 1.15; margin-bottom: var(--space-md); }
.section-subtitle { color: var(--text-secondary); font-size: 1.08rem; }
.section-header .status { margin-bottom: var(--space-md); }
.band { background: linear-gradient(180deg, transparent 0%, var(--bg-deep) 12%, var(--bg-deep) 88%, transparent 100%); }
.text-gradient { background: var(--gradient-spiral-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.caption { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.15em; text-align: center; }

/* ---------- Hero ---------- */
.hero { padding: var(--space-lg) var(--space-md) var(--space-xl); overflow-x: hidden; overflow-x: clip; }
.hero-inner { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: var(--space-lg); align-items: center; }
.hero-content { text-align: center; animation: heroFadeIn 1s var(--ease-out-expo) 0.2s both; }
@keyframes heroFadeIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.hero-badge { display: inline-flex; align-items: center; gap: var(--space-sm); padding: 0.5rem 1rem; background: rgba(155, 109, 214, 0.12); border: 1px solid rgba(155, 109, 214, 0.35); border-radius: 100px; font-size: 0.85rem; color: var(--t-purple); margin-bottom: var(--space-lg); }
.hero-badge-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.2); } }
.hero-title { font-family: var(--font-display); font-size: clamp(2.2rem, 7vw, 4.4rem); font-weight: 800; line-height: 1.08; margin-bottom: var(--space-lg); }
.hero-title-line { display: block; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto var(--space-lg); line-height: 1.7; }
.hero-actions { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-lg); }
.hero-actions .btn { width: 100%; }
.hero-approve { font-size: 0.92rem; color: var(--text-muted); }

.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; animation: heroVisualIn 1.2s var(--ease-out-expo) 0.4s both; order: -1; }
@keyframes heroVisualIn { from { opacity: 0; transform: scale(0.8) rotate(-10deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
.phase-wheel { width: min(280px, 72vw); aspect-ratio: 1; position: relative; }
.phase-wheel svg { width: 100%; height: 100%; filter: drop-shadow(0 0 40px rgba(94, 213, 213, 0.3)); }
.float-element { display: none; position: absolute; padding: 0.75rem 1rem; background: var(--bg-surface); border: 1px solid var(--line-strong); border-radius: 12px; font-size: 0.8rem; color: var(--text-secondary); animation: float 6s ease-in-out infinite; box-shadow: var(--shadow-card); }
.float-element:nth-child(1) { top: 8%; left: 0; animation-delay: 0s; }
.float-element:nth-child(2) { top: 58%; right: 0; animation-delay: 2s; }
.float-element:nth-child(3) { bottom: 10%; left: 6%; animation-delay: 4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
.float-label { display: block; font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem; }
.float-value { font-family: var(--font-mono); color: var(--t-cyan); }
.hero-visual .caption { margin-top: var(--space-md); }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.card { position: relative; padding: var(--space-lg); background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.4s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin: var(--space-sm) 0; line-height: 1.25; }
.card p { color: var(--text-secondary); font-size: 0.97rem; }
.card .card-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--space-sm); font-weight: 600; text-decoration: none; color: var(--t-cyan); }
.card .card-link:hover { text-decoration: underline; }
.card-accent::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent, var(--gradient-spiral)); }
.card-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: rgba(94, 213, 213, 0.1); border-radius: 14px; font-size: 1.5rem; margin-bottom: var(--space-sm); }

/* Suite cards: accents follow the palette order */
.suite-grid .card:nth-child(1) { --accent: var(--pink); }
.suite-grid .card:nth-child(2) { --accent: var(--coral); }
.suite-grid .card:nth-child(3) { --accent: var(--yellow); }
.suite-grid .card:nth-child(4) { --accent: var(--cyan); }
.suite-grid .card:nth-child(5) { --accent: var(--purple); }

.roles { margin-top: var(--space-lg); padding: var(--space-lg); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.roles-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); margin-bottom: var(--space-sm); }
.roles-head h3 { font-family: var(--font-display); font-size: 1.3rem; }
.roles > p { color: var(--text-secondary); margin-bottom: var(--space-md); }
.role-list { display: grid; grid-template-columns: 1fr; gap: var(--space-sm); list-style: none; }
.role-list li { padding: 0.8rem 1rem; background: var(--bg-surface); border: 1px solid var(--line); border-radius: 12px; color: var(--text-secondary); font-size: 0.95rem; }
.role-list strong { color: var(--text-primary); display: block; }

/* ---------- Assistant secretary ---------- */
.feature-cols { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.feature-col h3 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); font-family: var(--font-display); font-size: 1.25rem; margin-bottom: var(--space-md); }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-sm); }
.feature-list li { padding: var(--space-md); background: var(--bg-surface); border: 1px solid var(--line); border-left: 4px solid var(--item-accent, var(--green)); border-radius: 12px; }
.feature-list li strong { display: block; font-size: 1rem; margin-bottom: 0.15rem; }
.feature-list li span { color: var(--text-secondary); font-size: 0.93rem; }
.feature-col.built .feature-list li { --item-accent: var(--yellow); }
.approve-callout { margin-top: var(--space-lg); padding: var(--space-lg); border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(91, 214, 162, 0.14) 0%, rgba(94, 213, 213, 0.06) 100%); border: 1px solid rgba(91, 214, 162, 0.45); display: flex; gap: var(--space-md); align-items: flex-start; }
.approve-callout .approve-icon { font-size: 1.6rem; line-height: 1; }
.approve-callout strong { display: block; font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.2rem; }
.approve-callout p { color: var(--text-secondary); }

/* ---------- Case study ---------- */
.case { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.case-meta { padding: var(--space-lg); background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.case-meta h3 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; margin-bottom: 0.25rem; }
.case-meta .case-place { color: var(--text-muted); margin-bottom: var(--space-md); }
.case-meta p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: var(--space-md); }
.case-steps { display: flex; flex-direction: column; gap: var(--space-md); list-style: none; counter-reset: step; }
.case-steps li { position: relative; padding: var(--space-md) var(--space-md) var(--space-md) 3.6rem; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius-md); }
.case-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 1rem; top: 1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--gradient-mystical); color: #050508; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.case-steps h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.2rem; }
.case-steps p { color: var(--text-secondary); font-size: 0.95rem; }
.case-quote { margin-top: var(--space-md); padding: var(--space-md) var(--space-lg); border-left: 4px solid var(--purple); background: var(--bg-surface); border-radius: 0 12px 12px 0; font-size: 1.05rem; }
.case-results { margin-top: var(--space-md); color: var(--text-secondary); }

/* ---------- Avatars (orb + consent legend) ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); align-items: center; }
.orb-wrap { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); }
.orb-container { width: 240px; height: 240px; position: relative; }
.orb { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.orb-core { width: 60px; height: 60px; background: radial-gradient(circle, var(--green) 0%, var(--cyan) 50%, var(--purple) 100%); border-radius: 50%; box-shadow: 0 0 60px rgba(91, 214, 162, 0.6), 0 0 120px rgba(94, 213, 213, 0.4), inset 0 0 30px rgba(255,255,255,0.3); animation: orbPulse 3s ease-in-out infinite; }
@keyframes orbPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.orb-ring { position: absolute; border-radius: 50%; border: 2px solid; animation: orbRotate linear infinite; border-top-color: transparent !important; }
.orb-ring-1 { width: 100px; height: 100px; border-color: rgba(91, 214, 162, 0.55); animation-duration: 8s; }
.orb-ring-2 { width: 140px; height: 140px; border-color: rgba(94, 213, 213, 0.45); animation-duration: 12s; animation-direction: reverse; }
.orb-ring-3 { width: 180px; height: 180px; border-color: rgba(155, 109, 214, 0.4); animation-duration: 16s; }
.orb-ring-4 { width: 220px; height: 220px; border-color: rgba(209, 107, 165, 0.3); animation-duration: 20s; animation-direction: reverse; }
@keyframes orbRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.check-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-sm); margin: var(--space-md) 0; }
.check-list li { display: flex; gap: var(--space-sm); color: var(--text-secondary); }
.check-list li::before { content: '→'; color: var(--t-cyan); flex-shrink: 0; font-weight: 700; }
.check-list li strong { color: var(--text-primary); }
.lead { color: var(--text-secondary); font-size: 1.08rem; margin-bottom: var(--space-md); }
.split h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; margin-bottom: var(--space-md); }

.consent-matrix { margin-top: var(--space-lg); padding: var(--space-lg); background: linear-gradient(135deg, rgba(155, 109, 214, 0.1) 0%, rgba(94, 213, 213, 0.05) 100%); border: 1px solid rgba(155, 109, 214, 0.35); border-radius: var(--radius-lg); }
.consent-matrix h4 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: var(--space-sm); }
.consent-matrix > p { color: var(--text-secondary); margin-bottom: var(--space-md); }
.consent-levels { display: grid; grid-template-columns: 1fr; gap: var(--space-sm); list-style: none; }
.consent-level { padding: var(--space-md); background: var(--bg-surface); border-radius: 12px; border-left: 4px solid; }
.consent-level.full { border-color: var(--green); }
.consent-level.diminished { border-color: var(--yellow); }
.consent-level.suspended { border-color: var(--coral); }
.consent-level.emergency { border-color: var(--pink); }
.consent-level-name { display: flex; align-items: center; gap: var(--space-sm); font-weight: 700; margin-bottom: var(--space-xs); }
.consent-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.consent-level.full .consent-dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.consent-level.diminished .consent-dot { background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }
.consent-level.suspended .consent-dot { background: var(--coral); box-shadow: 0 0 10px var(--coral); }
.consent-level.emergency .consent-dot { background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.consent-level-blocks { font-size: 0.9rem; color: var(--text-secondary); }

/* ---------- Teams (Anywave) ---------- */
.teams-grid .card { --accent: var(--gradient-mystical); }
.delivered { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.teams-cta { text-align: center; margin-top: var(--space-lg); }

/* ---------- Waitlist ---------- */
.waitlist-box { max-width: 620px; margin: 0 auto; padding: var(--space-lg); background: var(--bg-surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.form-row { margin-bottom: var(--space-md); }
.form-label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.35rem; }
.form-optional { color: var(--text-muted); font-weight: 400; }
.input {
    width: 100%; min-height: 48px; padding: 0.8rem 1rem; background: var(--bg-void); border: 1px solid var(--line-strong); border-radius: 12px;
    color: var(--text-primary); font-family: var(--font-body); font-size: 1rem;
}
.input:focus { outline: none; border-color: var(--t-cyan); box-shadow: 0 0 0 3px rgba(94, 213, 213, 0.25); }
.input::placeholder { color: var(--text-muted); }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.input[aria-invalid="true"] { border-color: var(--t-coral); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { width: 100%; }
.form-consent { font-size: 0.85rem; color: var(--text-muted); margin-top: var(--space-md); text-align: center; }
.form-msg { margin-top: var(--space-md); padding: 0.8rem 1rem; border-radius: 12px; font-size: 0.95rem; display: none; }
.form-msg.show { display: block; }
.form-msg.error { color: var(--t-coral); border: 1px solid currentColor; }
.form-msg.success { color: var(--t-green); border: 1px solid currentColor; font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.contact-card { padding: var(--space-md) var(--space-lg); background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.contact-card a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 1.02rem; color: var(--t-cyan); text-decoration: none; word-break: break-word; }
.contact-card a:hover { text-decoration: underline; }
.contact-card p { color: var(--text-secondary); font-size: 0.92rem; }
.contact-address { margin-top: var(--space-lg); text-align: center; color: var(--text-secondary); font-style: normal; line-height: 1.7; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-medium); padding: var(--space-xl) var(--space-md) var(--space-lg); border-top: 1px solid var(--line); }
.footer-content { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; margin-top: var(--space-md); line-height: 1.7; }
.footer-address { font-style: normal; color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; margin-top: var(--space-md); }
.footer-col h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: var(--space-sm); }
.footer-col a { display: flex; align-items: center; min-height: 40px; color: var(--text-secondary); text-decoration: none; font-size: 0.92rem; word-break: break-word; }
.footer-col a:hover { color: var(--t-cyan); }
.footer-bottom { max-width: 1400px; margin: var(--space-lg) auto 0; padding-top: var(--space-md); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: var(--space-xl) var(--space-md); }
.legal h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: var(--space-md) 0; }
.legal h2 { font-family: var(--font-display); font-size: 1.35rem; margin: var(--space-lg) 0 var(--space-sm); }
.legal p, .legal li { color: var(--text-secondary); margin-bottom: var(--space-sm); }
.legal ul { padding-left: 1.25rem; }
.legal address { font-style: normal; color: var(--text-secondary); line-height: 1.7; }
.interim { padding: var(--space-md) var(--space-lg); border: 1px solid var(--t-yellow); border-radius: var(--radius-md); color: var(--text-primary); background: rgba(243, 224, 110, 0.12); }

/* ---------- Scroll-in ---------- */
.js .fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo); }
.js .fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---------- Reduced motion (system setting or the on-page switch) ---------- */
@media (prefers-reduced-motion: reduce) {
    :root:not([data-motion="full"]) *, :root:not([data-motion="full"]) *::before, :root:not([data-motion="full"]) *::after { animation: none !important; transition: none !important; }
    :root:not([data-motion="full"]) { scroll-behavior: auto; }
    :root:not([data-motion="full"]) .fade-up { opacity: 1 !important; transform: none !important; }
}
:root[data-motion="reduce"] { scroll-behavior: auto; }
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after { animation: none !important; transition: none !important; }
:root[data-motion="reduce"] .fade-up { opacity: 1 !important; transform: none !important; }

/* ---------- Breakpoints (mobile first) ---------- */
@media (min-width: 640px) {
    section { padding: var(--space-2xl) var(--space-lg); }
    .hero-actions { flex-direction: row; justify-content: center; }
    .hero-actions .btn { width: auto; }
    .grid-2, .suite-grid, .teams-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .role-list { grid-template-columns: repeat(2, 1fr); }
    .consent-levels { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
    .phase-wheel { width: 340px; }
    .orb-container { width: 300px; height: 300px; }
    .orb-core { width: 80px; height: 80px; }
    .orb-ring-1 { width: 130px; height: 130px; }
    .orb-ring-2 { width: 185px; height: 185px; }
    .orb-ring-3 { width: 240px; height: 240px; }
    .orb-ring-4 { width: 295px; height: 295px; }
}
@media (min-width: 900px) {
    .header-inner { padding: 0 var(--space-lg); }
    .nav-links { display: flex; }
    .btn.header-cta { display: inline-flex; }
    .mobile-menu { display: none; }
    .hero { padding: var(--space-xl) var(--space-lg) var(--space-2xl); min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; }
    .hero-inner { grid-template-columns: 1fr 1fr; width: 100%; gap: var(--space-xl); }
    .hero-content { text-align: left; }
    .hero-subtitle { margin-left: 0; }
    .hero-actions { justify-content: flex-start; }
    .hero-visual { order: 0; }
    .phase-wheel { width: 430px; }
    .float-element { display: block; }
    .feature-cols { grid-template-columns: 1fr 1fr; }
    .case { grid-template-columns: 1fr 2fr; align-items: start; }
    .split { grid-template-columns: 1fr 1.3fr; }
    .split.reverse > :first-child { order: 2; }
    .suite-grid { grid-template-columns: repeat(3, 1fr); }
    .teams-grid { grid-template-columns: repeat(4, 1fr); }
    .contact-grid { grid-template-columns: repeat(4, 1fr); }
    .consent-levels { grid-template-columns: repeat(4, 1fr); }
    .role-list { grid-template-columns: repeat(4, 1fr); }
    .footer-content { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 1200px) {
    .nav-links { gap: var(--space-lg); }
}

/* Why Digigami: the logo mark, enlarged (artwork unchanged) */
.why-mark { width: min(220px, 60vw); height: auto; filter: drop-shadow(0 0 40px rgba(155, 109, 214, 0.35)); }

/* Story voice (Why Digigami, Stories) */
.story { font-size: 1.12rem; line-height: 1.8; }
.story-note { font-size: 0.85rem; color: var(--text-muted); font-style: italic; margin-top: var(--space-sm); }
.story-grid { grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; }
.story-card blockquote { font-size: 1.15rem; line-height: 1.7; color: var(--text-primary); }
.story-card figcaption { margin-top: var(--space-md); font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.story-placeholder { text-align: center; border-style: dashed; border-color: var(--line-strong); }
.story-placeholder p { font-family: var(--font-display); font-size: 1.15rem; color: var(--text-secondary); }
[hidden] { display: none !important; }

/* Vision label + road-ahead note */
.status-vision { color: var(--t-blue); border-style: dashed; }
.road-note { font-size: 0.85rem; color: var(--text-muted); font-style: italic; }

/* Digigami levels: a ladder in the 8-colour sequence (pink -> purple), two colours per step */
.levels { margin-top: var(--space-lg); padding: var(--space-lg); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--glass); }
.levels-intro { color: var(--text-secondary); margin-bottom: var(--space-md); }
.level-ladder { list-style: none; display: grid; grid-template-columns: 1fr; gap: var(--space-sm); }
.level { position: relative; padding: var(--space-md) var(--space-md) var(--space-md) 3.4rem; background: var(--bg-surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.level::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--c1), var(--c2)); }
.level-1 { --c1: var(--pink); --c2: var(--coral); }
.level-2 { --c1: var(--orange); --c2: var(--yellow); }
.level-3 { --c1: var(--green); --c2: var(--cyan); }
.level-4 { --c1: var(--blue); --c2: var(--purple); }
.level-num { position: absolute; left: 1rem; top: 1rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; color: #050508; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.level strong { display: block; font-family: var(--font-display); }
.level span:not(.level-num) { color: var(--text-secondary); font-size: 0.92rem; }
@media (min-width: 900px) {
    .level-ladder { grid-template-columns: repeat(4, 1fr); }
    .level { padding: 3.2rem var(--space-md) var(--space-md); }
    .level::before { top: 0; left: 0; right: 0; bottom: auto; width: auto; height: 6px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
}

/* Header panels on small screens: pin to the viewport so they never run off the edge */
@media (max-width: 899px) {
    .hdr-panel { position: fixed; top: calc(var(--header-h) + 6px); left: 16px; right: 16px; width: auto; max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto; }
}
:root[data-contrast="high"] a.logo { text-decoration: none; }

/* ── v3 (2026-10-21): anonymous case study, testimonial, the journey ── */
.role-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-sm); }
.role-chips li { padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); font-size: 0.85rem; color: var(--text-secondary); }
.case-testimonial { margin: var(--space-lg) 0 0; }
.testimonial-label { margin-bottom: var(--space-sm); font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.case-testimonial .case-quote p + p { margin-top: 0.75rem; }
.case-testimonial figcaption { margin-top: var(--space-sm); font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
/* Preview-only marker for copy RADIX must clear before public launch (index.html source comment explains). */
.flag-review { text-decoration: underline dotted var(--coral); text-underline-offset: 4px; }
.journey-path { list-style: none; display: grid; grid-template-columns: 1fr; gap: var(--space-md); counter-reset: none; }
.journey-step { position: relative; padding: var(--space-lg); padding-top: calc(var(--space-lg) + 4px); background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.journey-step::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent, var(--gradient-spiral)); }
.journey-step h3 { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; margin: 0.4rem 0 0.4rem; }
.journey-step p { color: var(--text-secondary); font-size: 0.97rem; }
.journey-num { position: absolute; top: var(--space-md); right: var(--space-md); font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--accent, var(--purple)); opacity: 0.35; }
/* Phones: the art line runs near the right edge (84-98% of the width), so the pinned number sits clear of it. */
@media (max-width: 640px) { .journey-num { right: 4.25rem; } }
@media (min-width: 900px) {
    .journey-path { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── Campaign "Color belongs to everyone" (approved 2026-10-21). Colour comes only from Digigami's own 8-color sequence,
   in brand order: pink, coral, orange, yellow, green, cyan, blue, purple (brandbook color/tokens). Never the Pride
   flag's six-stripe arrangement. The words keep the normal text colour so they read on both sides of the art view. ── */
.crease {
    display: block; width: min(320px, 70%); height: 4px; border-radius: 2px; margin: 0.9rem 0 1.4rem;
    background: linear-gradient(90deg,
        #d16ba5 0 12.5%, #f28d7d 12.5% 25%, #f0856a 25% 37.5%, #f3e06e 37.5% 50%,
        #5bd6a2 50% 62.5%, #5ed5d5 62.5% 75%, #5da5d5 75% 87.5%, #9b6dd6 87.5% 100%);
}
.hero-title.campaign-title { margin-bottom: 0; }
.cta-band { padding: var(--space-xl) 0; }
.cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-inner .crease { margin-left: auto; margin-right: auto; }
.cta-title { font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 3.2rem); line-height: 1.1; max-width: 18ch; }
.cta-copy { color: var(--text-secondary); max-width: 46ch; margin-bottom: var(--space-md); font-size: 1.05rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: center; }
.cta-final { padding-bottom: calc(var(--space-xl) * 1.4); }

/* ── Art view (default theme, 2026-10-21). Active only once js/art.js has wrapped the words: :root[data-art-ready].
   A diagonal fixed to the viewport: black left, white right. The line runs from (--art-top × width, top) to
   (--art-bot × width, bottom); js/art.js reads the same two numbers, so the CSS and the word spacing always agree. ── */
:root { --art-top: 0.86; --art-bot: 0.42; }   /* desktop: the line runs through the hero's turning wheel */
@media (max-width: 640px) { :root { --art-top: 0.975; --art-bot: 0.84; } }   /* phones: near the right edge */

:root[data-art-ready] {
    --bg-surface: transparent;
    --bg-deep: transparent;
    --bg-medium: transparent;
    --glass: transparent;
    --line: rgba(128, 128, 146, 0.42);
    --line-strong: rgba(128, 128, 146, 0.65);
    --art-dark: #050508;
    --art-light: #fbfbfe;
}
:root[data-art-ready] body { background: var(--art-light); }
:root[data-art-ready] .cosmic-bg { display: none; }
:root[data-art-ready] body::before {
    content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none; background: var(--art-dark);
    /* --art-dark-poly comes from js/art.js (the rules in window.DIGIGAMI_ART); the fallback is the left-dark default. */
    clip-path: var(--art-dark-poly, polygon(0 0, calc(var(--art-top) * 100%) 0, calc(var(--art-bot) * 100%) 100%, 0 100%));
}
/* The seam: a soft glow along the line (position, width, blur and opacity from js/art.js). */
:root[data-art-ready] .art-seam {
    position: fixed; top: 0; left: var(--art-seam-x, 74%); z-index: -1; pointer-events: none;
    width: var(--art-seam-len, 100vh); height: var(--art-seam-width, 2px); transform-origin: 0 50%;
    transform: rotate(var(--art-seam-angle, 1.2rad)); opacity: calc(var(--art-seam-opacity, 0.55) / 0.55);
    background: linear-gradient(90deg, rgba(155, 109, 214, 0) 0%, rgba(155, 109, 214, 0.55) 18%, rgba(94, 213, 213, 0.55) 82%, rgba(94, 213, 213, 0) 100%);
    box-shadow: 0 0 var(--art-seam-blur, 14px) 2px rgba(155, 109, 214, 0.35);
}
.art-seam { display: none; }
:root[data-art-ready] .art-seam { display: block; }

/* Pieces with their own background keep it, so they read on either side. */
:root[data-art-ready] .section-tag,
:root[data-art-ready] .status,
:root[data-art-ready] .hero-badge,
:root[data-art-ready] .role-chips li { background-color: #0a0a0f; }
:root[data-art-ready] .role-chips li { color: #c8c8dc; }
/* Narrow screens (rule startAlignBelow in js/art.js): text aligns to the start, so a moved word lands exactly where
   it is sent instead of the line re-centring around it. */
:root[data-art-ready][data-art-narrow] main :is(p, h1, h2, h3, h4, h5, li, figcaption, blockquote, address, .section-header, .cta-inner, .hero-content) { text-align: start; }
:root[data-art-ready][data-art-narrow] .cta-inner { align-items: flex-start; }
:root[data-art-ready][data-art-narrow] .cta-inner .crease { margin-left: 0; }
:root[data-art-ready][data-art-narrow] .cta-actions { justify-content: flex-start; }
/* Reveals fade but do not slide in the art view: a moving box would carry its words across the line between frames. */
:root[data-art-ready] .fade-up { transform: none !important; }
:root[data-art-ready] .hero-visual { animation-name: none; }
/* Boxes that would otherwise size to their own words get a fixed width, so moving a word never resizes its box. */
:root[data-art-ready] .cta-title { width: 100%; max-width: 40rem; }   /* rem, not ch: a fitted (smaller) font must not shrink the box too */
/* Campaign CTAs in the art view: one start-aligned column, centred on the page, so headline, crease, copy and button line up. */
:root[data-art-ready] .cta-inner { max-width: calc(40rem + 2 * var(--space-md)); align-items: flex-start; text-align: start; }
:root[data-art-ready] .cta-inner .crease { margin-left: 0; }
:root[data-art-ready] .cta-actions { justify-content: flex-start; }
:root[data-art-ready] .caption { align-self: stretch; width: 100%; }
:root[data-art-ready] .float-element,
:root[data-art-ready] .waitlist-box,
:root[data-art-ready] .hdr-panel,
:root[data-art-ready] .skip-link { background: #1a1a24; }
:root[data-art-ready] .waitlist-box .input { background: #050508; }
:root[data-art-ready] .band { background: none; }
:root[data-art-ready] .footer { background: none; }

/* Words: spacing and colour are set per word by js/art.js. No transition on the spacing: the script measures real
   positions every frame, and an animated margin would be measured mid-move. */
/* A word that cannot be pushed past the line on its own line starts the next line: the generated break goes after the
   word before it (generated content: nothing is copied). */
:root[data-art-ready] .aw-br::after { content: "\A"; white-space: pre; }
/* A word too wide for either side at this size stays put and is inked by a viewport-fixed gradient whose hard edge sits
   exactly on the diagonal (--art-ink from js/art.js): light ink over black, dark ink over white. */
:root[data-art-ready] .aw-x {
    background-image: var(--art-ink); background-attachment: fixed;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent !important;
}
/* Each section is its own layout island, so per-word spacing changes re-lay out one section, not the page. */
:root[data-art-ready] main > section { contain: layout style; }
/* Brand gradient text keeps its gradient; a faint two-tone halo keeps it legible on black and on white. */
:root[data-art-ready] .text-gradient { filter: drop-shadow(0 0 1px rgba(5, 5, 8, 0.55)) drop-shadow(0 0 1px rgba(251, 251, 254, 0.45)); }

/* Split artwork: two copies of the same art, one clipped to each side of the line (js/art.js). */
.art-split { position: relative; display: inline-block; line-height: 0; }
.art-split > .art-split-copy { position: absolute; top: 0; left: 0; display: none; }
:root[data-art-ready] .art-split > .art-split-copy { display: block; }
:root[data-art-ready] .art-split > .art-split-orig { filter: drop-shadow(0 0 22px rgba(94, 213, 213, 0.45)) drop-shadow(0 0 6px rgba(155, 109, 214, 0.5)); }
:root[data-art-ready] .art-split > .art-split-copy { filter: drop-shadow(0 12px 18px rgba(5, 5, 8, 0.32)) drop-shadow(-3px 0 6px rgba(5, 5, 8, 0.28)); }
:root[data-art-ready] .art-split .phase-wheel svg { filter: none; }
/* The Digigami mark turns slowly in the art view (both copies share one clock); still under reduced motion. */
@keyframes artSpin { to { transform: rotate(360deg); } }
:root[data-art-ready] .art-split.art-spin-ready img.why-mark { animation: artSpin 48s linear infinite; }
:root[data-art-ready][data-motion="reduce"] .art-split img.why-mark { animation: none; }

/* ── v4: the line flows (js/art.js shapes it, js/art-fx.js draws its water, pulses, lightning and smoke). The
   canvas sits above the dark side (body::before, z -2) and behind all content; the old straight seam bar is off. ── */
.art-fx { display: none; }
:root[data-art-ready] .art-fx { display: block; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
:root[data-art-ready] .art-seam { display: none; }

/* Legal pages: tables and draft notes (build_legal_pages.py) */
.legal table { width: 100%; border-collapse: collapse; margin: var(--space-sm) 0 var(--space-md); font-size: 0.95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line, rgba(127,127,127,.3)); color: var(--text-secondary); }
.legal th { color: var(--text-primary); }
.legal .table-wrap { overflow-x: auto; }
.legal .draft-note { font-family: var(--font-mono, monospace); font-size: 0.78em; padding: 0 0.3em; border: 1px dashed var(--t-yellow); border-radius: 4px; color: var(--text-primary); }

/* a11y fixes 2026-10-26 (fix_site_a11y.py) */
.hdr-menu:not([open]) > .hdr-panel { display: none; }
.footer-col h3 { font-family: var(--font-display); font-size: 1rem; margin-bottom: var(--space-sm); }
/* Larger text on a narrow phone: the logo, Aa and Menu no longer fit one row. Keep the mark; the link
   keeps its name from aria-label="Digigami home". */
@media (max-width: 419px) {
    :root[data-text="lg"] .site-header .logo-text, :root[data-text="xl"] .site-header .logo-text { display: none; }
}
/* end a11y fixes */
.legal .leave-form { margin: var(--space-sm) 0 var(--space-lg); max-width: 480px; }
