/* ============================================================
   UNTITLED_ (SUSTAINABILITY)
   Design: Notion document aesthetic + editorial Bebas Neue hero
   Fonts: Bebas Neue (display hero) · Inter (UI + body, like Notion)
   Palette: #ffffff · #f7f6f3 (notion warm) · #111111 · #e9e9e7 (borders)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600&display=swap');

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
    /* Brand colors — sampled from Winslow Homer "Undertow" wave */
    --brand-dark:     #192f2d;   /* deep ocean teal — primary brand */
    --brand-darker:   #0f1e1d;   /* darkest ocean — footer / endpoints bg */
    --brand-mid:      #254442;   /* hover / interactive teal */
    --brand-tint:     #e8f0ef;   /* very light teal tint for callouts */

    /* Core */
    --black:          #192f2d;   /* ocean teal replaces pure black */
    --white:          #ffffff;
    --notion-bg:      #ffffff;
    --notion-warm:    #f7f6f3;   /* Notion's warm off-white */
    --notion-hover:   #f1f0ee;

    /* Text */
    --text-default:   #1e2e2c;   /* dark teal-tinted text */
    --text-secondary: #5a6e6c;   /* muted teal-gray */
    --text-muted:     #8a9c9b;

    /* Borders */
    --border:         #dce8e7;   /* soft teal-tinted border */
    --border-dark:    #b8cecc;

    /* Fonts */
    --font-display:   'Bebas Neue', 'Arial Black', sans-serif;
    --font-body:      'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono:      'SF Mono', 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

    /* Spacing */
    --page-x:         max(48px, 5vw);   /* viewport-edge padding for full-bleed sections */
    --space-sm:       12px;
    --space-md:       24px;
    --space-lg:       48px;
    --space-xl:       80px;

    --max-width:      1360px;            /* widened from 900px */
    --col-label:      220px;             /* left label column in editorial sections */
    --col-gap:        64px;              /* gap between label and content columns */
    --transition:     0.18s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-default);
    background: var(--notion-bg);
}

/* ── Fade-in animation ──────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 var(--space-lg);
    background: rgba(255,255,255,0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.navbar-brand {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brand-dark);
}

.navbar-links {
    display: flex;
    list-style: none;
    gap: var(--space-md);
}

.navbar-links a {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color var(--transition);
    letter-spacing: 0.01em;
}

.navbar-links a:hover { color: var(--brand-dark); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
}

@media (max-width: 900px) {
    .navbar-links { display: none; }
    .hamburger { display: flex; }
}
.hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--black);
    transition: var(--transition);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 48px; left: 0; right: 0;
    z-index: 99;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: var(--space-md) var(--space-lg);
    flex-direction: column;
    gap: var(--space-sm);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    font-size: 0.9rem;
    color: var(--text-default);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

/* ============================================================
   HERO — full-bleed painting with text overlay
   ============================================================ */
.hero {
    position: relative;
    height: 80vh;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-art {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-art-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.hero-art-overlay {
    position: absolute;
    inset: 0;
    /* gradient: dark at bottom for text legibility, clear at top */
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.05) 0%,
        rgba(0,0,0,0.1) 40%,
        rgba(0,0,0,0.72) 100%
    );
}

.hero-text {
    position: relative;
    z-index: 1;
    padding: var(--space-xl) var(--page-x) var(--space-xl);
    width: 100%;
}

.hero-kicker {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    font-weight: 400;
    line-height: 0.93;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

.hero-tagline {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    line-height: 1.55;
    max-width: 520px;
    margin-bottom: var(--space-md);
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-dark);
    background: #ffffff;
    border: 1px solid rgba(255,255,255,0.9);
    padding: 10px 24px;
    transition: background var(--transition), opacity var(--transition);
}
.btn-primary:hover { background: #eef5f4; }

.btn-ghost {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 24px;
    transition: border-color var(--transition), color var(--transition);
}
.btn-ghost:hover {
    border-color: rgba(255,255,255,0.7);
    color: #ffffff;
}

.hero-caption {
    position: absolute;
    bottom: 12px;
    right: var(--space-lg);
    z-index: 2;
    font-size: 0.65rem;
    font-style: italic;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.04em;
}

/* ============================================================
   PAGE WRAPPER — wide editorial container
   ============================================================ */
.page-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-lg) 80px;
}

/* ============================================================
   NOTION TYPOGRAPHY
   ============================================================ */
.notion-h2 {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.notion-icon {
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
}

.notion-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-default);
    margin-bottom: 1rem;
}

.notion-body:last-child { margin-bottom: 0; }

.notion-italic { font-style: italic; }

.notion-lead {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--black);
}

.notion-small {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 4px 0 0;
}

.notion-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--border-dark);
    transition: text-decoration-color var(--transition);
}
.notion-link:hover { text-decoration-color: var(--black); }

.notion-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: var(--space-md) 0;
}

/* ============================================================
   NOTION SECTION — 2-column editorial grid
   Left: sticky section label  |  Right: content
   ============================================================ */
.notion-section {
    display: grid;
    grid-template-columns: var(--col-label) 1fr;
    column-gap: var(--col-gap);
    row-gap: 0;
    padding: var(--space-lg) 0;
    align-items: start;
}

/* Section heading — stays in left column, sticky */
.notion-section > .notion-h2 {
    grid-column: 1;
    grid-row: 1;
    padding-top: 3px;
    position: sticky;
    top: calc(48px + 20px);
    align-self: start;
    font-size: 1.05rem;
    line-height: 1.35;
}

/* Every other direct child flows into the right column */
.notion-section > *:not(.notion-h2) {
    grid-column: 2;
}

/* Sections with no heading (e.g. link cards, charter) use single column */
.notion-section:not(:has(> .notion-h2)) {
    grid-template-columns: 1fr;
}

.notion-section:not(:has(> .notion-h2)) > * {
    grid-column: 1;
}

/* ============================================================
   NOTION CALLOUTS
   ============================================================ */
.notion-callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 4px;
    margin: var(--space-md) 0;
}

.notion-callout--address {
    background: var(--brand-tint);
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand-dark);
    flex-wrap: wrap;
}

.notion-callout--note {
    background: var(--notion-warm);
    border: 1px solid var(--border);
}

.notion-callout--tldr {
    background: #fff8e6;
    border: 1px solid #f0e4b4;
}

.notion-callout--file {
    background: var(--notion-warm);
    border: 1px solid var(--border);
}

.callout-icon {
    font-size: 1.1rem;
    line-height: 1.5;
    flex-shrink: 0;
    margin-top: 1px;
}

.callout-body {
    flex: 1;
    min-width: 0;
}

.callout-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: block;
}

.callout-address {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--black);
    word-break: break-all;
    display: block;
    margin-bottom: 8px;
}

.callout-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: var(--border-dark);
    transition: color var(--transition), text-decoration-color var(--transition);
}
.callout-link:hover {
    color: var(--brand-dark);
    text-decoration-color: var(--brand-dark);
}

.callout-body p {
    font-size: 0.95rem;
    color: var(--text-default);
    line-height: 1.6;
}

.callout-body a { text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   CONTRACTS TABLE (inside callout)
   ============================================================ */
.contracts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.contracts-table tr {
    border-bottom: 1px solid var(--border);
}

.contracts-table tr:last-child {
    border-bottom: none;
}

.contracts-table td {
    padding: 7px 10px 7px 0;
    vertical-align: middle;
    font-size: 0.82rem;
    line-height: 1.4;
}

.contract-name {
    font-weight: 600;
    color: var(--brand-dark);
    white-space: nowrap;
    width: 180px;
    padding-right: 16px !important;
}

.contracts-table .callout-address {
    display: inline;
    font-size: 0.76rem;
    margin-bottom: 0;
}

.contract-role {
    color: var(--text-secondary);
    font-size: 0.76rem;
    padding-left: 16px !important;
}

.contract-scan {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none !important;
    white-space: nowrap;
    padding-left: 8px !important;
    transition: color var(--transition);
}
.contract-scan:hover { color: var(--brand-dark); }

@media (max-width: 900px) {
    .contract-role { display: none; }
    .contract-name { width: auto; }
}

@media (max-width: 640px) {
    .contracts-table .callout-address { font-size: 0.68rem; }
    .contract-name { display: block; padding-bottom: 2px; }
    .contracts-table td { display: block; padding: 4px 0; }
    .contracts-table tr { border-bottom: 1px solid var(--border); padding: 8px 0; display: block; }
}

/* ============================================================
   WHITE PAPER CTA BUTTONS (inside callout)
   ============================================================ */
.whitepaper-cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.btn-doc-download {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--brand-dark);
    border: 1px solid var(--brand-dark);
    padding: 9px 20px;
    border-radius: 3px;
    text-decoration: none !important;
    transition: background var(--transition), opacity var(--transition);
}
.btn-doc-download:hover { background: var(--brand-mid); border-color: var(--brand-mid); }

.btn-doc-contact {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-dark);
    padding: 9px 20px;
    border-radius: 3px;
    text-decoration: none !important;
    transition: color var(--transition), border-color var(--transition);
}
.btn-doc-contact:hover { color: var(--brand-dark); border-color: var(--brand-dark); }

/* ============================================================
   FEATURE LIST
   ============================================================ */
.notion-toggle-group {
    margin: var(--space-md) 0 0;
}

.notion-feature-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notion-feature-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 0.96rem;
    color: var(--text-default);
    line-height: 1.55;
}

.feature-dot {
    color: var(--text-muted);
    flex-shrink: 0;
    font-family: var(--font-body);
    font-weight: 400;
}

/* ============================================================
   NOTION TABLE
   ============================================================ */
.notion-table-wrap {
    margin: var(--space-md) 0;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.notion-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.notion-table th {
    text-align: left;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 10px 16px;
    background: var(--brand-tint);
    border-bottom: 1px solid var(--border);
}

.notion-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-default);
    vertical-align: top;
    line-height: 1.5;
}

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

.notion-table tr:hover td { background: var(--notion-warm); }

.notion-table td:first-child {
    font-weight: 500;
    color: var(--black);
    white-space: nowrap;
    width: 200px;
}

/* ============================================================
   NOTION TOGGLES (details/summary)
   ============================================================ */
.notion-toggle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin-top: var(--space-md);
}

.notion-toggle {
    border-radius: 4px;
    overflow: hidden;
}

.notion-toggle > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-default);
    border-radius: 4px;
    transition: background var(--transition);
}

.notion-toggle > summary::-webkit-details-marker { display: none; }

.notion-toggle > summary::before {
    content: '▶';
    font-size: 0.55rem;
    color: var(--text-muted);
    transition: transform 0.18s;
    flex-shrink: 0;
    margin-right: 2px;
}

.notion-toggle[open] > summary::before {
    transform: rotate(90deg);
}

.notion-toggle > summary:hover {
    background: var(--notion-warm);
}

.notion-toggle > p,
.notion-toggle > div > p {
    padding: 8px 12px 12px 32px;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* Charter toggle */
.notion-toggle--charter > summary {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
}
.notion-toggle--charter[open] > summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

.charter-body {
    padding: 20px 24px 24px;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 4px 4px;
    background: var(--notion-warm);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.charter-body p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ============================================================
   BRAND VISUAL BLOCK (Stables image)
   ============================================================ */
.brand-visual-block {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
    padding: var(--space-md);
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--notion-warm);
}

.brand-visual-image {
    flex-shrink: 0;
    width: 100px;
    border-radius: 4px;
    overflow: hidden;
}

.brand-visual-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.brand-visual-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--black);
    margin-bottom: 6px;
}

.brand-visual-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 10px;
}

/* ============================================================
   FOUNDER
   ============================================================ */
.founder-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-lg);
    align-items: start;
    margin-top: var(--space-md);
}

.founder-image-wrap {
    position: sticky;
    top: 64px;
}

.founder-image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%);
    border-radius: 2px;
    border: 1px solid var(--border);
}

.founder-caption {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

.founder-bio-wrap .notion-body {
    margin-bottom: 1rem;
}

.notion-quote {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-default);
    border-left: 3px solid var(--brand-mid);
    padding-left: 16px;
    margin: 0 0 var(--space-md);
}

/* ============================================================
   LINK CARDS
   ============================================================ */
.link-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 4px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: background var(--transition), border-color var(--transition);
    cursor: pointer;
}

.link-card:hover {
    background: var(--notion-hover);
    border-color: var(--border-dark);
}

.link-card-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.link-card-title {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 2px;
    line-height: 1.3;
}

.link-card-url {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================================
   ENDPOINTS SECTION — dark
   ============================================================ */
.endpoints-section {
    background: var(--brand-darker);
    color: #ffffff;
    padding: var(--space-xl) 0;
    margin-top: 0;
}

.endpoints-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--page-x);
}

.endpoints-header {
    margin-bottom: var(--space-lg);
}

.endpoints-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #ffffff;
    margin-bottom: 12px;
}

.endpoints-sub {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 8px;
    font-weight: 300;
}

.endpoints-base-url {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.07);
    padding: 3px 10px;
    border-radius: 3px;
    display: inline-block;
}

/* Endpoints grid */
.endpoints-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.endpoint-block {
    background: var(--brand-darker);
    padding: 20px;
}

.endpoint-category {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 12px;
}

.endpoint-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    align-items: start;
}

.endpoint-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ep-method {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.3);
    padding-top: 2px;
    grid-row: 1;
}

.ep-path {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.85);
    word-break: break-all;
    grid-row: 1;
}

.ep-desc {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    line-height: 1.4;
    grid-column: 2;
    grid-row: 2;
    padding-top: 2px;
}

/* Code block */
.endpoints-code-wrap {
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 16px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.code-title {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.04em;
}

.code-lang {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(255,255,255,0.18);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.code-block {
    padding: 20px;
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.72);
    background: none;
    white-space: pre;
    display: block;
}

.code-block .comment {
    color: rgba(255,255,255,0.28);
}

/* CTAs */
.endpoints-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-outline-light {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 11px 24px;
    border-radius: 2px;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.btn-outline-light:hover {
    border-color: rgba(255,255,255,0.4);
    color: #ffffff;
    background: rgba(255,255,255,0.05);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--brand-dark);
    color: rgba(255,255,255,0.6);
    padding: var(--space-xl) 0 var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--page-x) var(--space-lg);
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--space-xl);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: var(--space-lg);
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(255,255,255,0.35);
    line-height: 1.5;
    margin-bottom: var(--space-sm);
}

.footer-address-small {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.2);
    line-height: 1.5;
}

.footer-address-small code {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: rgba(255,255,255,0.25);
}

.footer-links-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.footer-link-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link-heading {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    margin-bottom: 4px;
}

.footer-link-group a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    transition: color var(--transition);
    line-height: 1.4;
}

.footer-link-group a:hover { color: #ffffff; }

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--page-x);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-bottom p {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.2);
    line-height: 1.4;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Collapse editorial 2-col → single col at 1024px ──────── */
@media (max-width: 1024px) {
    .page-wrapper { padding: var(--space-lg) 48px; }

    .notion-section {
        grid-template-columns: 1fr;
        padding: var(--space-md) 0;
    }

    .notion-section > .notion-h2 {
        grid-column: 1;
        grid-row: auto;
        position: static;
        margin-bottom: var(--space-sm);
    }

    .notion-section > *:not(.notion-h2) {
        grid-column: 1;
    }

    .notion-section:not(:has(> .notion-h2)) {
        grid-template-columns: 1fr;
    }

    .notion-toggle-grid {
        grid-template-columns: 1fr;
    }

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

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --page-x: var(--space-md);
    }

    .navbar { padding: 0 var(--space-md); }
    .navbar-links { display: none; }
    .hamburger { display: flex; }

    .hero-text { padding: var(--space-lg) var(--space-md) var(--space-lg); }

    .hero-cta { flex-direction: column; align-items: flex-start; }
    .hero-cta a { text-align: center; width: auto; }

    .hero-caption { right: var(--space-md); }

    .page-wrapper { padding: var(--space-md) var(--space-md); }

    .endpoints-inner { padding: 0 var(--space-md); }

    .endpoints-grid { grid-template-columns: 1fr; }

    .endpoint-item {
        grid-template-columns: 40px 1fr;
    }

    .founder-layout {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .founder-image-wrap {
        position: static;
        max-width: 200px;
    }

    .brand-visual-block { flex-direction: column; align-items: flex-start; }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .footer-links-col { grid-template-columns: 1fr 1fr; }

    .footer-bottom { padding: 0 var(--space-md); }

    .endpoints-cta { flex-direction: column; align-items: flex-start; }
    .btn-outline-light { width: auto; }
}

@media (max-width: 480px) {
    .footer-links-col { grid-template-columns: 1fr; }
    .endpoints-grid { grid-template-columns: 1fr; }
}
