/* =========================================================================
   GENORA — design system "Heritage Modern"
   Dark warm ink + cream + gold accent, editorial serif + clean sans.
   Single source of truth for the entire application.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */
:root {
    /* Inks (background hierarchy) */
    --ink-0: #0A0C11;       /* deepest, page bg */
    --ink-1: #11141B;       /* default surface */
    --ink-2: #181C25;       /* elevated panel */
    --ink-3: #232834;       /* interactive surface */
    --ink-4: #2D3340;       /* hover state */
    --ink-5: #3A4151;       /* border-strong */

    /* Hairlines */
    --line-1: rgba(244, 234, 210, 0.06);
    --line-2: rgba(244, 234, 210, 0.10);
    --line-3: rgba(244, 234, 210, 0.16);

    /* Text on dark */
    --text-1: #F4EEDF;      /* primary, warm cream */
    --text-2: #B7B0A0;      /* secondary */
    --text-3: #7A7567;      /* tertiary */
    --text-4: #4F4B41;      /* disabled */

    /* Paper (cream, optional light surfaces) */
    --paper-0: #F8F2E4;
    --paper-1: #EFE8D6;
    --paper-2: #E0D6BD;
    --ink-on-paper: #1A1810;

    /* Gold accent — heritage, lineage, value */
    --gold-1: #D4A958;
    --gold-2: #E5C78A;
    --gold-3: #B68936;
    --gold-soft: rgba(212, 169, 88, 0.14);
    --gold-glow: 0 0 0 1px rgba(212, 169, 88, 0.28),
                 0 8px 32px rgba(212, 169, 88, 0.18);

    /* Functional accents */
    --moss: #6B9080;
    --moss-soft: rgba(107, 144, 128, 0.16);
    --rose: #C56F58;
    --rose-soft: rgba(197, 111, 88, 0.14);
    --ash: #5C6573;

    /* Semantic aliases */
    --bg: var(--ink-0);
    --bg-1: var(--ink-1);
    --bg-2: var(--ink-2);
    --bg-3: var(--ink-3);
    --bg-4: var(--ink-4);
    --border: var(--line-2);
    --border-strong: var(--line-3);
    --text: var(--text-1);
    --text-muted: var(--text-2);
    --text-faint: var(--text-3);
    --accent: var(--gold-1);
    --accent-hover: var(--gold-2);
    --accent-press: var(--gold-3);

    /* Typography */
    --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: ui-monospace, 'JetBrains Mono', SFMono-Regular, Consolas, monospace;

    /* Spacing scale (4pt) */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 20px;
    --s-6: 24px;
    --s-7: 32px;
    --s-8: 40px;
    --s-9: 48px;
    --s-10: 56px;
    --s-12: 64px;
    --s-14: 80px;
    --s-16: 96px;
    --s-20: 128px;

    /* Radii */
    --r-1: 4px;
    --r-2: 8px;
    --r-3: 12px;
    --r-4: 16px;
    --r-5: 24px;
    --r-pill: 999px;

    /* Elevations */
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 4px 16px rgba(0, 0, 0, 0.32),
                inset 0 1px 0 var(--line-2);
    --shadow-3: 0 18px 48px rgba(0, 0, 0, 0.45),
                inset 0 1px 0 var(--line-2);
    --shadow-card: 0 1px 0 var(--line-2),
                   0 8px 32px rgba(0, 0, 0, 0.30);

    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.6, 0, 0.4, 1);
    --t-fast: 140ms;
    --t-base: 240ms;
    --t-slow: 420ms;

    /* Layout */
    --container: 1280px;
    --container-narrow: 920px;
}

/* -------------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    background-image:
        radial-gradient(1200px 600px at 12% -10%, rgba(212, 169, 88, 0.06), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(107, 144, 128, 0.05), transparent 65%),
        linear-gradient(180deg, var(--ink-0), var(--ink-1) 60%, var(--ink-0));
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
    overflow-x: hidden;
}

img,
picture,
svg,
video {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--t-fast) var(--ease-out);
}

a:hover {
    color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--ink-0), 0 0 0 4px var(--accent);
    border-radius: var(--r-2);
}

::selection {
    background: rgba(212, 169, 88, 0.35);
    color: var(--text-1);
}

/* Subtle paper grain on the body for warmth */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.92 0 0 0 0 0.85 0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    mix-blend-mode: overlay;
}

/* -------------------------------------------------------------------------
   3. Typography
   ------------------------------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-1);
}

h1 {
    font-size: clamp(2.4rem, 4vw + 1rem, 4.4rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.02;
}

h2 {
    font-size: clamp(1.6rem, 1.5vw + 1rem, 2.4rem);
    letter-spacing: -0.025em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

h4 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    color: var(--text-2);
    line-height: 1.65;
}

strong {
    color: var(--text-1);
    font-weight: 600;
}

small {
    font-size: 0.8125rem;
    color: var(--text-3);
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    color: var(--text-1);
    background: var(--ink-3);
    padding: 2px 6px;
    border-radius: var(--r-1);
    border: 1px solid var(--line-1);
}

/* Display utility — very large editorial serif */
.display {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 0.96;
    font-size: clamp(3rem, 6vw + 1rem, 6rem);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 6px 12px;
    border: 1px solid var(--gold-soft);
    border-radius: var(--r-pill);
    background: rgba(212, 169, 88, 0.06);
    backdrop-filter: blur(8px);
}

.eyebrow::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(212, 169, 88, 0.6);
}

.text-link {
    color: var(--accent);
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color var(--t-fast) var(--ease-out);
}

.text-link:hover {
    color: var(--accent-hover);
    border-bottom-color: currentColor;
}

.text-muted {
    color: var(--text-3);
}

/* -------------------------------------------------------------------------
   4. Layout shell
   ------------------------------------------------------------------------- */
.site-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-content {
    flex: 1;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--s-9) var(--s-7) var(--s-14);
    display: flex;
    flex-direction: column;
    gap: var(--s-9);
}

.landing-body .page-content {
    max-width: var(--container);
    padding-top: var(--s-7);
    gap: var(--s-14);
}

@media (max-width: 768px) {
    .page-content {
        padding: var(--s-7) var(--s-5) var(--s-12);
        gap: var(--s-7);
    }
}

/* -------------------------------------------------------------------------
   5. Header & navigation
   ------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 12, 17, 0.72);
    backdrop-filter: saturate(140%) blur(18px);
    -webkit-backdrop-filter: saturate(140%) blur(18px);
    border-bottom: 1px solid var(--line-1);
}

.site-header__inner {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--s-4) var(--s-7);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--s-7);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    color: var(--text-1);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}

.brand:hover {
    color: var(--text-1);
}

.brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    width: auto;
    color: var(--gold-1);
    transition: transform var(--t-base) var(--ease-out);
    flex-shrink: 0;
}

.brand:hover .brand__mark {
    transform: scale(1.04);
}

.brand__mark svg,
.brand__mark img {
    height: 100%;
    width: auto;
    display: block;
}

.brand__wordmark {
    height: 28px;
    width: auto;
    display: block;
    transition: opacity var(--t-fast) var(--ease-out);
}

.brand:hover .brand__wordmark {
    opacity: 0.9;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    justify-self: center;
    padding: 6px;
    background: var(--ink-2);
    border: 1px solid var(--line-1);
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-1);
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-2);
    border-radius: var(--r-pill);
    transition: all var(--t-fast) var(--ease-out);
}

.site-nav a:hover {
    color: var(--text-1);
    background: var(--ink-3);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    justify-self: end;
}

.site-header__actions > form:not(.header-search) {
    display: contents;
}

.header-search input {
    width: 220px;
    padding: 8px 14px;
    font-size: 0.8125rem;
    color: var(--text-1);
    background: var(--ink-2);
    border: 1px solid var(--line-2);
    border-radius: var(--r-pill);
    transition: border-color var(--t-fast) var(--ease-out),
                width var(--t-base) var(--ease-out);
}

.header-search input::placeholder {
    color: var(--text-3);
}

.header-search input:focus {
    outline: none;
    border-color: var(--gold-soft);
    width: 280px;
    box-shadow: 0 0 0 4px var(--gold-soft);
}

@media (max-width: 1080px) {
    .header-search input { width: 140px; }
    .header-search input:focus { width: 200px; }
}
@media (max-width: 880px) {
    .header-search { display: none; }
}

.site-nav__toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: var(--ink-2);
    border: 1px solid var(--line-2);
    border-radius: var(--r-2);
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    justify-content: space-between;
    align-self: center;
}

.site-nav__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-1);
    border-radius: 2px;
    transition: transform var(--t-fast) var(--ease-out),
                opacity var(--t-fast) var(--ease-out);
}

.site-nav__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav__toggle.is-active span:nth-child(2) { opacity: 0; }
.site-nav__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
    .site-header__inner {
        grid-template-columns: auto 1fr auto;
        gap: var(--s-3);
    }
    .site-nav__toggle { display: flex; }
    .site-nav {
        display: none;
        position: fixed;
        top: 78px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: var(--s-4);
        background: rgba(10, 12, 17, 0.97);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--line-2);
        border-radius: 0;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
        z-index: 49;
    }
    .site-nav.is-open {
        display: flex;
    }
    .site-nav a {
        padding: 14px 16px;
        font-size: 1rem;
        text-align: left;
        border-radius: var(--r-2);
        border-bottom: 1px solid var(--line-1);
    }
    .site-nav a:last-child { border-bottom: none; }
}

/* -------------------------------------------------------------------------
   6. Buttons
   ------------------------------------------------------------------------- */
.button {
    --btn-bg: var(--ink-3);
    --btn-fg: var(--text-1);
    --btn-border: var(--line-2);
    --btn-shadow: var(--shadow-1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: 10px 18px;
    min-height: 40px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    border-radius: var(--r-2);
    box-shadow: var(--btn-shadow);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--t-fast) var(--ease-out),
                background var(--t-fast) var(--ease-out),
                border-color var(--t-fast) var(--ease-out),
                box-shadow var(--t-fast) var(--ease-out),
                color var(--t-fast) var(--ease-out);
}

.button:hover {
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

.button-primary {
    --btn-bg: linear-gradient(180deg, #E5C78A, #C8A24B);
    --btn-fg: #1A1810;
    --btn-border: rgba(255, 220, 150, 0.5);
    --btn-shadow: 0 1px 0 rgba(255, 240, 200, 0.5) inset,
                  0 8px 24px rgba(212, 169, 88, 0.25),
                  0 1px 2px rgba(0, 0, 0, 0.3);
}

.button-primary:hover {
    --btn-bg: linear-gradient(180deg, #F0D49E, #D4A958);
    --btn-shadow: 0 1px 0 rgba(255, 240, 200, 0.6) inset,
                  0 12px 32px rgba(212, 169, 88, 0.4),
                  0 1px 2px rgba(0, 0, 0, 0.3);
}

.button-secondary {
    --btn-bg: var(--ink-2);
    --btn-fg: var(--text-1);
    --btn-border: var(--line-3);
}

.button-secondary:hover {
    --btn-bg: var(--ink-3);
    --btn-border: var(--ink-5);
}

.button-ghost {
    --btn-bg: transparent;
    --btn-fg: var(--text-2);
    --btn-border: transparent;
    --btn-shadow: none;
}

.button-ghost:hover {
    --btn-fg: var(--text-1);
    --btn-bg: var(--ink-2);
}

.button-danger {
    --btn-bg: rgba(197, 111, 88, 0.10);
    --btn-fg: #E59A85;
    --btn-border: rgba(197, 111, 88, 0.35);
}

.button-danger:hover {
    --btn-bg: rgba(197, 111, 88, 0.18);
    --btn-fg: #F4B6A1;
    --btn-border: rgba(197, 111, 88, 0.55);
}

.button-compact {
    padding: 6px 12px;
    min-height: 32px;
    font-size: 0.8125rem;
}

/* -------------------------------------------------------------------------
   7. Panels & cards
   ------------------------------------------------------------------------- */
.panel {
    position: relative;
    padding: var(--s-7);
    background: linear-gradient(180deg,
                  rgba(244, 234, 210, 0.025),
                  rgba(244, 234, 210, 0.005)),
                var(--ink-2);
    border: 1px solid var(--line-2);
    border-radius: var(--r-4);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
}

.panel--spaced {
    gap: var(--s-5);
}

.panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--line-1);
}

.panel__header h2,
.panel__header h3 {
    margin: 0;
}

/* Two-column details grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--s-6);
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    margin: 0;
}

.detail-list > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--s-4);
    padding: 12px 0;
    border-bottom: 1px dashed var(--line-1);
}

.detail-list > div:last-child {
    border-bottom: none;
}

.detail-list dt {
    font-size: 0.8125rem;
    color: var(--text-3);
    font-weight: 500;
}

.detail-list dd {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-1);
    font-weight: 500;
    text-align: right;
}

/* -------------------------------------------------------------------------
   8. Page header
   ------------------------------------------------------------------------- */
.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--s-7);
    padding-bottom: var(--s-6);
    border-bottom: 1px solid var(--line-1);
}

.page-header > div:first-child {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    max-width: 760px;
}

.page-header h1 {
    font-size: clamp(2rem, 2.4vw + 1rem, 3rem);
    margin: 0;
}

.page-header h2 {
    font-size: clamp(1.5rem, 1vw + 1rem, 2rem);
    margin: 0;
}

.page-header p {
    color: var(--text-2);
    font-size: 1rem;
    max-width: 56ch;
}

.page-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
    flex-shrink: 0;
}

.page-header--compact {
    padding-bottom: var(--s-3);
    border-bottom: none;
    align-items: center;
}

.page-header--compact h2 {
    font-size: 1.5rem;
}

@media (max-width: 720px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-header__actions {
        width: 100%;
    }
}

/* -------------------------------------------------------------------------
   9. Soft badges & dots
   ------------------------------------------------------------------------- */
.soft-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-2);
    background: var(--ink-3);
    border: 1px solid var(--line-2);
    border-radius: var(--r-pill);
    line-height: 1.4;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ash);
}

.dot-male {
    background: #6BA0CF;
    box-shadow: 0 0 8px rgba(107, 160, 207, 0.4);
}

.dot-female {
    background: #D9849C;
    box-shadow: 0 0 8px rgba(217, 132, 156, 0.4);
}

.dot-unknown {
    background: var(--ash);
}

/* -------------------------------------------------------------------------
   10. Hero section (landing)
   ------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--s-12);
    align-items: center;
    padding: var(--s-12) 0 var(--s-9);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: -10% -10% auto -10%;
    height: 90%;
    background:
        radial-gradient(60% 60% at 30% 50%, rgba(212, 169, 88, 0.15), transparent 70%),
        radial-gradient(50% 60% at 80% 30%, rgba(107, 144, 128, 0.10), transparent 70%);
    pointer-events: none;
    z-index: -1;
    filter: blur(40px);
}

.hero-section__copy {
    display: flex;
    flex-direction: column;
    gap: var(--s-6);
    align-items: flex-start;
}

.hero-section__copy h1 {
    font-size: clamp(2.6rem, 4.2vw + 1rem, 5rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero-section__copy h1 em {
    font-style: italic;
    font-weight: 500;
    color: var(--gold-2);
    background: linear-gradient(180deg, #E5C78A, #D4A958);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section__lead {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-2);
    max-width: 52ch;
}

.hero-section__actions {
    display: flex;
    gap: var(--s-3);
    flex-wrap: wrap;
    margin-top: var(--s-3);
}

.hero-logo {
    height: 140px;
    width: auto;
    margin-bottom: var(--s-3);
    align-self: flex-start;
    filter: drop-shadow(0 8px 32px rgba(212, 169, 88, 0.25));
}

@media (max-width: 920px) {
    .hero-logo {
        height: 110px;
        align-self: center;
    }
}

/* Demo strip — credentials block on landing */
.demo-strip {
    padding: var(--s-12) var(--s-9);
    background: linear-gradient(135deg,
                  rgba(212, 169, 88, 0.10),
                  rgba(212, 169, 88, 0.02)),
                var(--ink-2);
    border: 1px solid var(--gold-soft);
    border-radius: var(--r-5);
    box-shadow: 0 0 0 1px var(--gold-soft) inset,
                0 24px 48px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.demo-strip::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 60%;
    height: 180%;
    background: radial-gradient(circle, var(--gold-soft), transparent 65%);
    pointer-events: none;
    opacity: 0.7;
}

.demo-strip__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--s-9);
    align-items: center;
}

.demo-strip__inner > div:first-child {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.demo-strip h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 1.6vw + 1rem, 2rem);
    line-height: 1.15;
}

.demo-strip__creds {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    padding: var(--s-6);
    background: rgba(10, 12, 17, 0.55);
    border: 1px solid var(--line-2);
    border-radius: var(--r-4);
    backdrop-filter: blur(8px);
}

.demo-cred {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: var(--s-4);
    padding: var(--s-3) var(--s-4);
    background: var(--ink-1);
    border: 1px solid var(--line-2);
    border-radius: var(--r-2);
}

.demo-cred__label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
}

.demo-cred code {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.9375rem;
    color: var(--gold-2);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

.demo-strip__actions {
    display: flex;
    gap: var(--s-3);
    margin-top: var(--s-2);
    flex-wrap: wrap;
}

@media (max-width: 880px) {
    .demo-strip {
        padding: var(--s-9) var(--s-6);
    }
    .demo-strip__inner {
        grid-template-columns: 1fr;
    }
}

.hero-section__panel {
    perspective: 1400px;
}

@media (max-width: 920px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: var(--s-8);
        padding-top: var(--s-7);
    }
    .hero-section__panel {
        order: -1;
    }
}

/* Hero glass card preview */
.glass-card {
    position: relative;
    padding: var(--s-7);
    background: linear-gradient(160deg,
                  rgba(244, 234, 210, 0.06),
                  rgba(244, 234, 210, 0.01) 60%),
                rgba(24, 28, 37, 0.65);
    border: 1px solid var(--line-3);
    border-radius: var(--r-5);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(244, 234, 210, 0.08);
    backdrop-filter: blur(20px);
    transform: rotate3d(1, 0.4, 0, 4deg);
    transition: transform var(--t-slow) var(--ease-out);
}

.glass-card:hover {
    transform: rotate3d(1, 0.4, 0, 0deg);
}

.glass-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    padding-bottom: var(--s-5);
    margin-bottom: var(--s-6);
    border-bottom: 1px solid var(--line-1);
    color: var(--text-3);
    font-size: 0.8125rem;
}

.family-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-3);
}

.family-preview__row {
    display: flex;
    gap: var(--s-4);
    width: 100%;
    justify-content: center;
}

.family-preview__row--single {
    justify-content: center;
}

.family-preview__connector {
    width: 1px;
    height: var(--s-5);
    background: linear-gradient(180deg, var(--gold-soft), transparent);
}

.family-preview__connector--short {
    height: var(--s-3);
}

.mini-person {
    flex: 1;
    min-width: 0;
    padding: var(--s-3) var(--s-4);
    background: var(--ink-2);
    border: 1px solid var(--line-2);
    border-radius: var(--r-3);
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
    transition: border-color var(--t-base) var(--ease-out),
                transform var(--t-base) var(--ease-out);
}

.mini-person:hover {
    border-color: var(--gold-soft);
    transform: translateY(-2px);
}

.mini-person strong {
    font-size: 0.875rem;
    color: var(--text-1);
    font-weight: 600;
}

.mini-person span {
    font-size: 0.75rem;
    color: var(--text-3);
}

.mini-person--accent {
    background: linear-gradient(180deg, rgba(212, 169, 88, 0.08), rgba(212, 169, 88, 0.02));
    border-color: var(--gold-soft);
    box-shadow: var(--gold-glow);
}

.mini-person--accent strong {
    color: var(--gold-2);
}

/* -------------------------------------------------------------------------
   11. Features & sections
   ------------------------------------------------------------------------- */
.section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    align-items: center;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
}

.section-heading p {
    font-size: 1.0625rem;
    color: var(--text-2);
    max-width: 56ch;
}

.feature-section {
    display: flex;
    flex-direction: column;
    gap: var(--s-9);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--s-5);
}

.feature-card {
    position: relative;
    padding: var(--s-7);
    background: linear-gradient(180deg,
                  rgba(244, 234, 210, 0.02),
                  rgba(244, 234, 210, 0)),
                var(--ink-2);
    border: 1px solid var(--line-2);
    border-radius: var(--r-4);
    transition: border-color var(--t-base) var(--ease-out),
                transform var(--t-base) var(--ease-out),
                box-shadow var(--t-base) var(--ease-out);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--s-7);
    width: 28px;
    height: 1px;
    background: var(--gold-1);
    transition: width var(--t-base) var(--ease-out);
}

.feature-card:hover {
    border-color: var(--gold-soft);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                0 0 0 1px var(--gold-soft);
}

.feature-card:hover::before {
    width: 60px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    margin-bottom: var(--s-3);
    color: var(--text-1);
}

.feature-card p {
    color: var(--text-2);
    font-size: 0.9375rem;
}

.experience-strip {
    padding: var(--s-12) var(--s-9);
    background: linear-gradient(135deg,
                  rgba(212, 169, 88, 0.08),
                  rgba(107, 144, 128, 0.06)),
                var(--ink-2);
    border: 1px solid var(--line-3);
    border-radius: var(--r-5);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-9);
    align-items: center;
    position: relative;
    overflow: hidden;
}

.experience-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 80% at 0% 100%, rgba(212, 169, 88, 0.18), transparent 60%);
    pointer-events: none;
}

.experience-strip > * {
    position: relative;
}

.experience-strip h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 1.8vw + 1rem, 2.4rem);
}

.experience-strip p {
    color: var(--text-2);
    font-size: 1.0625rem;
    line-height: 1.7;
}

@media (max-width: 720px) {
    .experience-strip {
        grid-template-columns: 1fr;
        padding: var(--s-9) var(--s-6);
        gap: var(--s-6);
    }
}

/* -------------------------------------------------------------------------
   12. Stats grid (dashboard)
   ------------------------------------------------------------------------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--s-5);
}

.stat-card {
    position: relative;
    padding: var(--s-7);
    background: linear-gradient(180deg,
                  rgba(244, 234, 210, 0.025),
                  rgba(244, 234, 210, 0)),
                var(--ink-2);
    border: 1px solid var(--line-2);
    border-radius: var(--r-4);
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    overflow: hidden;
    transition: border-color var(--t-base) var(--ease-out),
                transform var(--t-base) var(--ease-out);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -40%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--gold-soft), transparent 60%);
    opacity: 0;
    transition: opacity var(--t-slow) var(--ease-out);
    pointer-events: none;
}

.stat-card:hover {
    border-color: var(--gold-soft);
    transform: translateY(-2px);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card > * {
    position: relative;
}

.stat-card span {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-3);
}

.stat-card strong {
    font-family: var(--font-display);
    font-size: clamp(2rem, 2.4vw + 1rem, 3rem);
    font-weight: 600;
    color: var(--text-1);
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-card p {
    font-size: 0.875rem;
    color: var(--text-2);
}

/* -------------------------------------------------------------------------
   13. Card grid (trees, persons)
   ------------------------------------------------------------------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--s-5);
}

.tree-card,
.person-card {
    position: relative;
    padding: var(--s-6);
    background: linear-gradient(180deg,
                  rgba(244, 234, 210, 0.025),
                  rgba(244, 234, 210, 0)),
                var(--ink-2);
    border: 1px solid var(--line-2);
    border-radius: var(--r-4);
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    transition: border-color var(--t-base) var(--ease-out),
                transform var(--t-base) var(--ease-out),
                box-shadow var(--t-base) var(--ease-out);
}

.tree-card:hover,
.person-card:hover {
    border-color: var(--gold-soft);
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3),
                0 0 0 1px var(--gold-soft);
}

.tree-card__topline,
.person-card__topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-3);
    color: var(--text-3);
    font-size: 0.8125rem;
}

.tree-card h2,
.person-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 0;
}

.tree-card > p,
.person-card > p {
    color: var(--text-2);
    font-size: 0.9375rem;
    line-height: 1.55;
    flex: 1;
}

.tree-card__meta,
.person-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-4);
    color: var(--text-3);
    font-size: 0.8125rem;
    padding-top: var(--s-3);
    border-top: 1px dashed var(--line-1);
}

.tree-card__actions {
    display: flex;
    gap: var(--s-3);
    align-items: center;
    margin-top: var(--s-2);
    flex-wrap: wrap;
}

/* -------------------------------------------------------------------------
   14. Empty state
   ------------------------------------------------------------------------- */
.empty-state {
    padding: var(--s-12) var(--s-7);
    text-align: center;
    background: linear-gradient(180deg,
                  rgba(244, 234, 210, 0.02),
                  rgba(244, 234, 210, 0)),
                var(--ink-2);
    border: 1px dashed var(--line-3);
    border-radius: var(--r-4);
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    align-items: center;
}

.empty-state__icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--gold-1);
    background: linear-gradient(180deg,
                  rgba(212, 169, 88, 0.10),
                  rgba(212, 169, 88, 0.02));
    border: 1px solid var(--gold-soft);
    border-radius: var(--r-pill);
    margin-bottom: var(--s-2);
}

.empty-state h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-1);
    margin: 0;
}

.empty-state p {
    color: var(--text-2);
    max-width: 48ch;
    margin: 0 auto;
}

/* -------------------------------------------------------------------------
   15. Forms
   ------------------------------------------------------------------------- */
.stack-form {
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-5);
}

.form-grid--triple {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 720px) {
    .form-grid,
    .form-grid--triple {
        grid-template-columns: 1fr;
    }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}

.form-field label,
.form-field .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-2);
    letter-spacing: -0.005em;
}

.form-field label.required::after {
    content: '·';
    margin-left: 6px;
    color: var(--gold-1);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="date"],
.form-field input[type="number"],
.form-field input[type="search"],
.form-field input[type="url"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--text-1);
    background: var(--ink-1);
    border: 1px solid var(--line-2);
    border-radius: var(--r-2);
    transition: border-color var(--t-fast) var(--ease-out),
                background var(--t-fast) var(--ease-out),
                box-shadow var(--t-fast) var(--ease-out);
    appearance: none;
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.55;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-4);
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
    border-color: var(--line-3);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--gold-1);
    background: var(--ink-2);
    box-shadow: 0 0 0 4px var(--gold-soft);
}

.form-field select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%23B7B0A0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-field input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--line-3);
    background: var(--ink-1);
    border-radius: var(--r-1);
    cursor: pointer;
    transition: all var(--t-fast) var(--ease-out);
    position: relative;
    flex-shrink: 0;
}

.form-field input[type="checkbox"]:checked {
    background: linear-gradient(180deg, #E5C78A, #C8A24B);
    border-color: var(--gold-3);
}

.form-field input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: solid #1A1810;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-field--inline {
    flex-direction: row;
    align-items: center;
    gap: var(--s-3);
}

.form-field--inline label {
    font-size: 0.9375rem;
    color: var(--text-1);
    font-weight: 500;
    margin: 0;
    cursor: pointer;
}

.form-field .form-help,
.form-field small {
    font-size: 0.75rem;
    color: var(--text-3);
    line-height: 1.4;
}

.form-field ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-field ul li {
    font-size: 0.8125rem;
    color: var(--rose);
    padding: 4px 8px;
    background: var(--rose-soft);
    border-radius: var(--r-1);
    border-left: 2px solid var(--rose);
}

.form-actions {
    display: flex;
    gap: var(--s-3);
    align-items: center;
    flex-wrap: wrap;
    padding-top: var(--s-5);
    border-top: 1px solid var(--line-2);
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    padding-bottom: var(--s-5);
    border-bottom: 1px dashed var(--line-1);
}

.form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.form-section__title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gold-2);
    margin: 0;
}

.form-current-photo {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    padding: var(--s-3);
    background: var(--ink-1);
    border: 1px solid var(--line-2);
    border-radius: var(--r-3);
}

.form-current-photo img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--gold-soft);
}

.form-current-photo small {
    color: var(--text-3);
    font-size: 0.8125rem;
}

/* -------------------------------------------------------------------------
   16. Auth pages
   ------------------------------------------------------------------------- */
.auth-shell {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--s-9) var(--s-5);
}

.auth-card {
    width: 100%;
    max-width: 480px;
    padding: var(--s-12) var(--s-9);
    background: linear-gradient(180deg,
                  rgba(244, 234, 210, 0.04),
                  rgba(244, 234, 210, 0.005)),
                var(--ink-2);
    border: 1px solid var(--line-2);
    border-radius: var(--r-5);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45),
                inset 0 1px 0 var(--line-2);
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
}

.auth-card h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 2vw + 1rem, 2.25rem);
    color: var(--text-1);
    margin: 0;
}

.auth-card > p {
    color: var(--text-2);
    font-size: 0.9375rem;
}

.auth-card .stack-form {
    margin-top: var(--s-3);
}

.auth-card .button {
    width: 100%;
    margin-top: var(--s-3);
}

.auth-footer {
    margin-top: var(--s-3);
    text-align: center;
    color: var(--text-2);
    font-size: 0.875rem;
    padding-top: var(--s-5);
    border-top: 1px solid var(--line-1);
}

/* OAuth social login buttons + divider */
.oauth-stack {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    margin-top: var(--s-2);
}

.oauth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-3);
    padding: 12px 18px;
    min-height: 46px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--r-2);
    border: 1px solid var(--line-3);
    background: var(--ink-1);
    color: var(--text-1);
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--t-fast) var(--ease-out),
                background var(--t-fast) var(--ease-out),
                border-color var(--t-fast) var(--ease-out);
}

.oauth-button:hover {
    transform: translateY(-1px);
    background: var(--ink-2);
    border-color: var(--ink-5);
    color: var(--text-1);
}

.oauth-button svg {
    flex-shrink: 0;
}

.oauth-button--facebook {
    background: #1877F2;
    border-color: #1877F2;
    color: #fff;
}

.oauth-button--facebook:hover {
    background: #1666D4;
    border-color: #1666D4;
    color: #fff;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    color: var(--text-3);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: var(--s-2) 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line-2);
}

/* -------------------------------------------------------------------------
   17. Flash messages
   ------------------------------------------------------------------------- */
.flash-stack {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    margin-bottom: var(--s-6);
}

.flash {
    padding: 14px 18px;
    border-radius: var(--r-2);
    border: 1px solid var(--line-2);
    background: var(--ink-2);
    color: var(--text-1);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: var(--s-3);
    box-shadow: var(--shadow-1);
    animation: flash-in var(--t-slow) var(--ease-out);
}

.flash::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.flash-success {
    color: #9CCFB8;
    background: rgba(107, 144, 128, 0.12);
    border-color: rgba(107, 144, 128, 0.4);
}

.flash-danger,
.flash-error {
    color: #E59A85;
    background: rgba(197, 111, 88, 0.12);
    border-color: rgba(197, 111, 88, 0.4);
}

.flash-warning {
    color: var(--gold-2);
    background: var(--gold-soft);
    border-color: rgba(212, 169, 88, 0.35);
}

.flash-info {
    color: #B7BCC9;
    background: rgba(92, 101, 115, 0.16);
    border-color: rgba(92, 101, 115, 0.4);
}

@keyframes flash-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------------------------------------------
   18. Share box, copy feedback
   ------------------------------------------------------------------------- */
.share-box {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4);
    background: var(--ink-1);
    border: 1px solid var(--line-2);
    border-radius: var(--r-3);
    flex-wrap: wrap;
}

.share-box code {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.8125rem;
    color: var(--text-2);
    word-break: break-all;
    font-family: var(--font-mono);
}

.copy-feedback {
    font-size: 0.75rem;
    color: var(--moss);
    font-weight: 600;
    transition: opacity var(--t-fast) var(--ease-out);
}

.copy-feedback:empty {
    opacity: 0;
}

/* -------------------------------------------------------------------------
   19. Invitations
   ------------------------------------------------------------------------- */
.invitation-list {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.invitation-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    padding: var(--s-4) var(--s-5);
    background: var(--ink-1);
    border: 1px solid var(--line-2);
    border-radius: var(--r-3);
    transition: border-color var(--t-base) var(--ease-out);
}

.invitation-item:hover {
    border-color: var(--gold-soft);
}

.invitation-item > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.invitation-item strong {
    color: var(--text-1);
    font-size: 0.9375rem;
}

.invitation-item p {
    font-size: 0.8125rem;
    color: var(--text-3);
    margin: 0;
}

.invitation-item__actions {
    display: flex;
    gap: var(--s-3);
    align-items: center;
}

/* -------------------------------------------------------------------------
   20. Danger zone
   ------------------------------------------------------------------------- */
.danger-zone {
    padding: var(--s-7);
    background: linear-gradient(180deg,
                  rgba(197, 111, 88, 0.06),
                  rgba(197, 111, 88, 0.01));
    border: 1px solid rgba(197, 111, 88, 0.25);
    border-radius: var(--r-4);
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    align-items: flex-start;
    position: relative;
}

.danger-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--rose);
    border-radius: var(--r-4) 0 0 var(--r-4);
    opacity: 0.5;
}

.danger-zone h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--rose);
    margin: 0;
}

.danger-zone p {
    color: var(--text-2);
    font-size: 0.9375rem;
}

/* -------------------------------------------------------------------------
   21. Tables
   ------------------------------------------------------------------------- */
.table-panel {
    background: var(--ink-2);
    border: 1px solid var(--line-2);
    border-radius: var(--r-4);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.data-table thead th {
    text-align: left;
    padding: var(--s-4) var(--s-5);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
    background: var(--ink-3);
    border-bottom: 1px solid var(--line-2);
}

.data-table tbody td {
    padding: var(--s-4) var(--s-5);
    color: var(--text-2);
    border-bottom: 1px solid var(--line-1);
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr {
    transition: background var(--t-fast) var(--ease-out);
}

.data-table tbody tr:hover {
    background: rgba(244, 234, 210, 0.025);
}

.data-table tbody td strong {
    color: var(--text-1);
    font-weight: 600;
}

.data-table tbody td > div {
    font-size: 0.8125rem;
    color: var(--text-3);
    margin-top: 2px;
}

/* -------------------------------------------------------------------------
   22. Notes box
   ------------------------------------------------------------------------- */
.notes-box {
    margin-top: var(--s-4);
    padding: var(--s-5);
    background: var(--ink-1);
    border: 1px solid var(--line-2);
    border-left: 3px solid var(--gold-1);
    border-radius: var(--r-3);
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}

.notes-box h3 {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    color: var(--gold-2);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    margin: 0;
}

.notes-box p {
    color: var(--text-2);
    font-size: 0.9375rem;
    line-height: 1.6;
    font-style: italic;
}

/* -------------------------------------------------------------------------
   23. Tree visualization
   ------------------------------------------------------------------------- */
.tree-visual {
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
    padding: var(--s-5);
    background: linear-gradient(180deg,
                  rgba(244, 234, 210, 0.02),
                  rgba(244, 234, 210, 0)),
                var(--ink-2);
    border: 1px solid var(--line-2);
    border-radius: var(--r-4);
}

.tree-visual__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-5);
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--line-1);
}

.tree-visual__stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
}

.tree-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 16px;
    background: var(--ink-1);
    border: 1px solid var(--line-2);
    border-radius: var(--r-2);
    min-width: 88px;
}

.tree-stat strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-1);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}

.tree-stat span {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
}

.tree-visual__actions {
    display: flex;
    gap: var(--s-5);
    align-items: center;
    flex-wrap: wrap;
}

.tree-legend {
    display: flex;
    gap: var(--s-4);
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--text-3);
}

.tree-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tree-legend__line {
    display: inline-block;
    width: 20px;
    height: 2px;
    background: var(--gold-1);
    border-radius: 2px;
}

.tree-legend__line--spouse {
    background: linear-gradient(90deg, var(--gold-1) 50%, transparent 50%);
    background-size: 4px 100%;
}

.tree-visual__buttons {
    display: flex;
    gap: var(--s-2);
}

.tree-filter-group {
    display: inline-flex;
    padding: 4px;
    background: var(--ink-1);
    border: 1px solid var(--line-2);
    border-radius: var(--r-pill);
}

.tree-filter-btn {
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-3);
    background: transparent;
    border: none;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: all var(--t-fast) var(--ease-out);
}

.tree-filter-btn:hover {
    color: var(--text-1);
}

.tree-filter-btn.is-active {
    background: var(--gold-1);
    color: var(--ink-on-paper);
}

.is-hidden-by-filter {
    display: none !important;
}

.tree-visual__canvas {
    position: relative;
    overflow: auto;
    max-height: 70vh;
    border-radius: var(--r-3);
    background:
        radial-gradient(circle at 20% 20%, rgba(212, 169, 88, 0.04), transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(107, 144, 128, 0.03), transparent 60%),
        var(--ink-1);
    border: 1px solid var(--line-1);
}

.tree-visual__canvas::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.tree-visual__canvas::-webkit-scrollbar-track {
    background: var(--ink-1);
}

.tree-visual__canvas::-webkit-scrollbar-thumb {
    background: var(--ink-4);
    border-radius: 6px;
    border: 2px solid var(--ink-1);
}

.tree-visual__scene {
    position: relative;
    min-width: 100%;
    padding: var(--s-7);
    display: flex;
    flex-direction: column;
    gap: var(--s-9);
}

.tree-visual__svg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.tree-visual__lanes {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--s-12);
}

.tree-lane {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
}

.tree-lane__header {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding-bottom: var(--s-3);
    border-bottom: 1px dashed var(--line-2);
}

.tree-lane__header strong {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-2);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.tree-lane__grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-7);
    justify-content: center;
}

.tree-couple-group {
    display: flex;
    gap: var(--s-3);
    align-items: stretch;
}

.person-node {
    width: 240px;
    padding: var(--s-4);
    background: linear-gradient(180deg,
                  rgba(244, 234, 210, 0.04),
                  rgba(244, 234, 210, 0)),
                var(--ink-2);
    border: 1px solid var(--line-2);
    border-radius: var(--r-3);
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    position: relative;
    transition: border-color var(--t-base) var(--ease-out),
                transform var(--t-base) var(--ease-out);
}

.person-node:hover {
    border-color: var(--gold-soft);
    transform: translateY(-2px);
    z-index: 2;
}

.person-node--male {
    border-top: 2px solid #6BA0CF;
}

.person-node--female {
    border-top: 2px solid #D9849C;
}

.person-node--unknown {
    border-top: 2px solid var(--ash);
}

.person-node__topline {
    display: flex;
    align-items: center;
    gap: var(--s-3);
}

.person-node__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--gold-2), var(--gold-3));
    color: var(--ink-on-paper);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
    box-shadow: 0 2px 8px rgba(212, 169, 88, 0.3);
    flex-shrink: 0;
    overflow: hidden;
}

.person-node__avatar--photo {
    background: var(--ink-3);
    box-shadow: 0 0 0 1px var(--gold-soft), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.person-node__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.person-node__identity {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.person-node__life {
    font-size: 0.75rem;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}

.person-node__role {
    font-size: 0.6875rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.person-node h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin: 0;
    color: var(--text-1);
    line-height: 1.2;
}

.person-node > p {
    font-size: 0.8125rem;
    color: var(--text-2);
    margin: 0;
}

.person-node__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.person-chip {
    font-size: 0.6875rem;
    padding: 3px 8px;
    background: var(--ink-3);
    border: 1px solid var(--line-1);
    border-radius: var(--r-pill);
    color: var(--text-3);
}

.person-chip--spouse {
    color: var(--gold-2);
    background: var(--gold-soft);
    border-color: rgba(212, 169, 88, 0.25);
}

.person-node__meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-2);
    margin: 0;
    padding-top: var(--s-3);
    border-top: 1px dashed var(--line-1);
}

.person-node__meta div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.person-node__meta dt {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-3);
    font-weight: 600;
}

.person-node__meta dd {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-1);
}

.person-node .text-link {
    align-self: flex-start;
    font-size: 0.8125rem;
}

/* SVG link styles */
.tree-link {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tree-link--parent {
    stroke: rgba(212, 169, 88, 0.55);
    stroke-width: 1.5;
}

.tree-link--spouse {
    stroke: rgba(107, 144, 128, 0.6);
    stroke-width: 1.5;
    stroke-dasharray: 4 4;
}

/* -------------------------------------------------------------------------
   24. Footer
   ------------------------------------------------------------------------- */
.site-footer {
    margin-top: var(--s-14);
    border-top: 1px solid var(--line-1);
}

.site-footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--s-6) var(--s-7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-5);
    flex-wrap: wrap;
}

.brand--footer {
    color: var(--text-1);
    align-items: center;
    text-decoration: none;
}

.brand--footer:hover {
    color: var(--text-1);
}

.brand--footer .brand__mark {
    height: 32px;
    width: auto;
    color: var(--gold-1);
}

.brand--footer .brand__wordmark {
    height: 20px;
}

.site-footer small {
    color: var(--text-4);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.site-footer small a {
    color: var(--text-3);
    text-decoration: none;
    transition: color var(--t-fast) var(--ease-out);
}

.site-footer small a:hover {
    color: var(--gold-2);
}

@media (max-width: 540px) {
    .site-footer__inner {
        padding: var(--s-5) var(--s-6);
        flex-direction: column;
        align-items: flex-start;
        gap: var(--s-3);
    }
}

/* -------------------------------------------------------------------------
   25. Responsive helpers
   ------------------------------------------------------------------------- */
@media (max-width: 720px) {
    .panel {
        padding: var(--s-5);
    }
    .stat-card,
    .feature-card {
        padding: var(--s-5);
    }
    .auth-card {
        padding: var(--s-9) var(--s-6);
    }
    .person-node {
        width: 100%;
        max-width: 320px;
    }
    .tree-couple-group {
        flex-direction: column;
    }
    .data-table {
        font-size: 0.8125rem;
    }
    .data-table thead th,
    .data-table tbody td {
        padding: var(--s-3) var(--s-4);
    }
    .invitation-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .share-box {
        flex-direction: column;
        align-items: stretch;
    }
    /* Demo strip: stack credentials column on mobile */
    .demo-strip__creds {
        padding: var(--s-4);
    }
    /* Person hero: fit tightly on phone */
    .person-hero {
        padding: var(--s-5);
    }
    .person-hero__copy h1 {
        font-size: 1.4rem;
    }
    /* Page header buttons go full-width on small screens */
    .page-header__actions .button {
        width: 100%;
        justify-content: center;
    }
    /* Hero section: stack and reduce logo */
    .hero-section {
        padding: var(--s-5) 0;
    }
    .hero-logo {
        height: 90px;
    }
    /* Footer: stack vertically */
    .site-footer__inner {
        padding: var(--s-5) var(--s-5);
    }
    /* Tables overflow horizontally rather than crushing */
    .table-panel {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    /* Make the eyebrow not overflow */
    .eyebrow {
        font-size: 0.625rem;
        letter-spacing: 0.14em;
    }
    /* Reduce hero h1 even more */
    .hero-section__copy h1 {
        font-size: 2rem;
    }
    /* Compact person cards */
    .person-card,
    .tree-card {
        padding: var(--s-5);
    }
}

/* -------------------------------------------------------------------------
   24d. Timeline (historical events on person page)
   ------------------------------------------------------------------------- */
.timeline {
    padding: var(--s-7) var(--s-3) var(--s-9);
    overflow-x: auto;
}

.timeline__track {
    position: relative;
    height: 80px;
    background: linear-gradient(90deg, var(--gold-3), var(--gold-1));
    border-radius: var(--r-pill);
    min-width: 600px;
    margin: 0 var(--s-7);
}

.timeline__year {
    position: absolute;
    top: 100%;
    margin-top: var(--s-2);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-2);
    font-variant-numeric: tabular-nums;
}

.timeline__year--start { left: 0; transform: translateX(-50%); }
.timeline__year--end   { right: 0; transform: translateX(50%); }

.timeline__event {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.timeline__event:hover {
    z-index: 10;
}

.timeline__dot {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-1);
    border: 3px solid var(--ink-2);
    cursor: pointer;
    transition: transform var(--t-fast) var(--ease-out);
}

.timeline__event:hover .timeline__dot {
    transform: scale(1.3);
}

.timeline__bubble {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink-1);
    border: 1px solid var(--line-3);
    border-radius: var(--r-2);
    padding: 8px 12px;
    min-width: 180px;
    max-width: 240px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-fast) var(--ease-out);
}

.timeline__event:hover .timeline__bubble {
    opacity: 1;
}

.timeline__bubble strong {
    display: block;
    color: var(--gold-2);
    font-family: var(--font-display);
    font-size: 0.875rem;
}

.timeline__bubble span {
    display: block;
    color: var(--text-2);
    font-size: 0.8125rem;
    line-height: 1.3;
    margin-top: 2px;
}

.timeline__event--war .timeline__dot { background: var(--rose); }
.timeline__event--politics .timeline__dot { background: #6BA0CF; }
.timeline__event--science .timeline__dot { background: #5A8C7A; }
.timeline__event--culture .timeline__dot { background: var(--gold-2); }
.timeline__event--economy .timeline__dot { background: #B5C49E; }

/* -------------------------------------------------------------------------
   24e. Family calendar (dashboard widget)
   ------------------------------------------------------------------------- */
.event-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}

.event-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--s-4);
    align-items: center;
    padding: var(--s-3) var(--s-4);
    background: var(--ink-1);
    border: 1px solid var(--line-2);
    border-left: 3px solid var(--gold-1);
    border-radius: var(--r-2);
}

.event-item--memorial {
    border-left-color: var(--ash);
}

.event-item__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    width: 44px;
    flex-shrink: 0;
}

.event-item__date strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-1);
}

.event-item__date span {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-3);
    margin-top: 2px;
}

.event-item__body a {
    color: var(--text-1);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
}

.event-item__body a:hover {
    color: var(--gold-2);
}

.event-item__body p {
    font-size: 0.8125rem;
    color: var(--text-2);
    margin: 2px 0 0 0;
}

.event-item__when {
    font-size: 0.8125rem;
    color: var(--text-3);
    text-align: right;
    white-space: nowrap;
}

/* Legal pages (privacy, data-deletion, terms) */
.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: var(--s-7);
    background: var(--ink-2);
    border: 1px solid var(--line-2);
    border-radius: var(--r-4);
}
.legal-page h1 {
    font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem);
    margin: var(--s-3) 0 var(--s-2);
}
.legal-page h2 {
    font-size: 1.25rem;
    margin: var(--s-7) 0 var(--s-3);
    color: var(--gold-2);
}
.legal-page p, .legal-page li {
    color: var(--text-2);
    line-height: 1.7;
    font-size: 0.9375rem;
}
.legal-page ul, .legal-page ol {
    padding-left: var(--s-6);
    margin: var(--s-3) 0;
}
.legal-page li { margin-bottom: var(--s-2); }
.legal-page__updated {
    font-size: 0.8125rem;
    color: var(--text-3);
    font-style: italic;
    margin-bottom: var(--s-5) !important;
}
.legal-page a { color: var(--gold-2); }
.legal-page code {
    background: var(--ink-3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875rem;
}

/* Audit log badges */
.audit-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--r-pill);
    border: 1px solid var(--line-2);
}
.audit-badge--create { color: #9CCFB8; background: rgba(107, 144, 128, 0.16); border-color: rgba(107, 144, 128, 0.4); }
.audit-badge--update { color: var(--gold-2); background: var(--gold-soft); border-color: rgba(212, 169, 88, 0.35); }
.audit-badge--delete { color: #E59A85; background: rgba(197, 111, 88, 0.14); border-color: rgba(197, 111, 88, 0.4); }

/* -------------------------------------------------------------------------
   24c. Bar chart (statistics)
   ------------------------------------------------------------------------- */
.bar-chart {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.bar-row {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    align-items: center;
    gap: var(--s-3);
    font-size: 0.875rem;
}

.bar-row__label {
    color: var(--text-2);
    font-weight: 500;
}

.bar-row__track {
    height: 14px;
    background: var(--ink-1);
    border-radius: var(--r-pill);
    overflow: hidden;
    border: 1px solid var(--line-1);
}

.bar-row__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-3), var(--gold-1));
    border-radius: var(--r-pill);
    min-width: 4px;
    transition: width var(--t-slow) var(--ease-out);
}

.bar-row__value {
    text-align: right;
    color: var(--text-1);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------------------
   25a. Access banner (share view) + accent panel (pending requests)
   ------------------------------------------------------------------------- */
.access-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-5);
    padding: var(--s-5) var(--s-7);
    background: linear-gradient(135deg,
                  rgba(212, 169, 88, 0.10),
                  rgba(212, 169, 88, 0.02)),
                var(--ink-2);
    border: 1px solid var(--gold-soft);
    border-radius: var(--r-4);
}

.access-banner > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.access-banner strong {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--gold-2);
    font-weight: 600;
}

.access-banner p {
    color: var(--text-2);
    font-size: 0.9375rem;
    margin: 0;
}

.access-banner__actions {
    display: flex;
    gap: var(--s-3);
    flex-shrink: 0;
}

.access-banner--info {
    background: linear-gradient(135deg,
                  rgba(92, 101, 115, 0.16),
                  rgba(92, 101, 115, 0.04)),
                var(--ink-2);
    border-color: var(--line-3);
}

.access-banner--info strong {
    color: var(--text-1);
}

.access-banner--success {
    background: linear-gradient(135deg,
                  rgba(107, 144, 128, 0.16),
                  rgba(107, 144, 128, 0.04)),
                var(--ink-2);
    border-color: rgba(107, 144, 128, 0.4);
}

.access-banner--success strong {
    color: #9CCFB8;
}

@media (max-width: 720px) {
    .access-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--s-5);
    }
}

.panel--accent {
    border-color: var(--gold-soft);
    background: linear-gradient(180deg,
                  rgba(212, 169, 88, 0.08),
                  rgba(212, 169, 88, 0.01)),
                var(--ink-2);
}

.panel--accent .panel__header h2 {
    color: var(--gold-2);
}

/* -------------------------------------------------------------------------
   25b. Person hero (fiche personne) + social pills
   ------------------------------------------------------------------------- */
.person-hero {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--s-7);
    align-items: center;
    padding: var(--s-7);
    background: linear-gradient(180deg,
                  rgba(244, 234, 210, 0.025),
                  rgba(244, 234, 210, 0)),
                var(--ink-2);
    border: 1px solid var(--line-2);
    border-radius: var(--r-4);
    box-shadow: var(--shadow-card);
}

.person-hero__avatar {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--gold-2), var(--gold-3));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 0 4px var(--ink-1),
                0 0 0 5px var(--gold-soft),
                0 12px 32px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.person-hero__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.person-hero__initials {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--ink-on-paper);
}

.person-hero__copy {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    min-width: 0;
}

.person-hero__copy h1 {
    margin: 0;
    font-size: clamp(1.6rem, 1.4vw + 1rem, 2.4rem);
    line-height: 1.1;
}

.person-hero__copy p {
    color: var(--text-2);
    font-size: 1rem;
    margin: 0;
}

.person-hero__actions {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    flex-shrink: 0;
}

@media (max-width: 720px) {
    .person-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: var(--s-6);
    }
    .person-hero__avatar {
        margin: 0 auto;
        width: 96px;
        height: 96px;
    }
    .person-hero__copy {
        align-items: center;
    }
    .person-hero__actions {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

.social-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    list-style: none;
    padding: 0;
    margin: var(--s-2) 0 0 0;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-1);
    background: var(--ink-3);
    border: 1px solid var(--line-2);
    border-radius: var(--r-pill);
    text-decoration: none;
    transition: all var(--t-fast) var(--ease-out);
}

.social-pill:hover {
    color: var(--text-1);
    border-color: var(--gold-soft);
    background: var(--ink-4);
    transform: translateY(-1px);
}

.social-pill svg {
    flex-shrink: 0;
    transition: color var(--t-fast) var(--ease-out);
}

.social-pill--instagram:hover { color: #E1306C; }
.social-pill--instagram:hover svg { color: #E1306C; }
.social-pill--linkedin:hover { color: #5BA0FF; }
.social-pill--linkedin:hover svg { color: #5BA0FF; }
.social-pill--facebook:hover { color: #6BA0EF; }
.social-pill--facebook:hover svg { color: #6BA0EF; }
.social-pill--twitter:hover { color: #F4EEDF; }
.social-pill--twitter:hover svg { color: #F4EEDF; }
.social-pill--website:hover { color: var(--gold-2); }
.social-pill--website:hover svg { color: var(--gold-2); }

/* -------------------------------------------------------------------------
   26. Print
   ------------------------------------------------------------------------- */
@media print {
    body {
        background: white;
        color: black;
    }
    .site-header,
    .danger-zone,
    .form-actions,
    .page-header__actions,
    .tree-visual__buttons {
        display: none;
    }
}
