/* ==================================================================== */
/* BOOTSTRAP 5 THEME - WURZBURG DARK GOLD THEME                       */
/* Converts consolidated.css design system to Bootstrap 5 compatible   */
/* ==================================================================== */

/* ── CSS CUSTOM PROPERTIES (THEME VARIABLES) ── */
:root {
    --bs-body-bg: #08080E;
    --bs-body-color: #EDE9E0;

    --bg: #08080E;
    --surface: #10101A;
    --surface2: #18182A;
    --gold: #C8A96E;
    --gold-dim: rgba(200,169,110,0.18);
    --gold-line: rgba(200,169,110,0.35);
    --text: #EDE9E0;
    --text-muted: #7A7870;
    --text-mid: #B0AB9E;

    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'DM Sans', sans-serif;
    --mono: 'DM Mono', monospace;

    --nav-height: 70px; /* fixed navbar clearance — update if navbar padding changes */
}

/* ── FONTS IMPORTS ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=DM+Sans:opsz,wght@9..40,300;300;400;500&family=DM+Mono&display=swap');

/* ── BOOTSTRAP 5 CUSTOMIZATION ── */
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.7;
}

/* ── TYPOGRAPHY OVERRIDE ── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    color: var(--text);
}

h1 em, h2 em, h3 em, h4 em, h5 em, h6 em {
    color: var(--gold);
}

.eyebrow {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

.section-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 0.5px;
    background: rgba(200,169,110,0.2);
}

/* ── BUTTONS ── */
.btn-primary {
    background: var(--gold);
    color: var(--bg);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.875rem 2rem;
    border: none;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.85;
    background: var(--gold);
    color: var(--bg);
}

.btn-ghost {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mid);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

.btn-ghost:hover {
    color: var(--gold);
}

/* ── FORMS ── */
.form-control, .form-select, textarea {
    background: var(--surface);
    border: 0.5px solid rgba(200, 169, 110, 0.2);
    color: var(--text);
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 300;
    padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus, textarea:focus {
    border-color: rgba(200, 169, 110, 0.6);
    background: var(--surface);
    color: var(--text);
    box-shadow: none;
}

.form-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

/* ── ALERTS (Bootstrap Override) ── */
.alert {
    background-color: var(--surface2);
    border-color: rgba(200,169,110,0.2);
    color: var(--text-mid);
}

.alert-success {
    background: rgba(76, 175, 80, 0.1) !important;
    border-color: rgba(76, 175, 80, 0.3) !important;
    color: #4caf50 !important;
}

.alert-danger {
    background: rgba(244, 67, 54, 0.1) !important;
    border-color: rgba(244, 67, 54, 0.3) !important;
    color: #f44336 !important;
}

.alert-warning {
    background: rgba(255, 152, 0, 0.1) !important;
    border-color: rgba(255, 152, 0, 0.3) !important;
    color: #ff9800 !important;
}

.alert-info {
    background: rgba(33, 150, 243, 0.1) !important;
    border-color: rgba(33, 150, 243, 0.3) !important;
    color: #2196f3 !important;
}

/* ── GRID UTILITIES EXTENSION ── */
.tile-grid {
    display: grid;
    gap: 1px;
    background: rgba(200,169,110,0.08);
}

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

/* ── STATUS BADGES ── */
.status-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 0.5px solid;
}

.status-issued {
    border-color: rgba(200,169,110,0.5);
    color: var(--gold);
}

.status-provisional {
    border-color: rgba(176,171,158,0.3);
    color: var(--text-muted);
}

.status-pending {
    border-color: rgba(176,171,158,0.2);
    color: var(--text-muted);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── LISTS (Custom styled bullet points) ── */
.custom-list { list-style: none; margin-top: 1rem; }
.custom-list li {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.35rem 0;
    border-top: 0.5px solid rgba(200, 169, 110, 0.08);
}

.custom-list li::before {
    content: '→';
    color: var(--gold);
    font-size: 0.7rem;
    opacity: 0.7;
}

.custom-list-dots li {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.35rem 0;
    border-top: 0.5px solid rgba(200, 169, 110, 0.08);
}

.custom-list-dots li::before {
    content: '·';
    color: var(--gold);
}

/* ── RESPONSIVE HELPERS ── */
@media (max-width: 900px) {
    .tile-grid-3,
    .tile-grid-2 { grid-template-columns: 1fr; }

    h1, h2, h3 {
        font-size: revert !important;
    }
}

/* ── GLOBAL LINK THEMING ── */
a {
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--gold);
    text-decoration: none;
}

/* ── BOOTSTRAP DARK THEME COMPATIBILITY ── */
.container,
.container-fluid,
.row,
.col-lg-6, .col-md-6, .col-sm-6 {
    background: transparent !important;
}

/* Card styles for custom cards */
.card {
    background: var(--surface);
    border: 0.5px solid rgba(200,169,110,0.15);
}

.card-header {
    background: var(--surface2);
    border-bottom: 0.5px solid rgba(200,169,110,0.1);
}

.card-body {
    color: var(--text-mid);
}

/* Accordion for patent families */
.accordion-button {
    background-color: var(--surface);
    border-color: rgba(200, 169, 110, 0.1);
    color: var(--gold);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(200,169,110,0.04);
    color: var(--gold);
}

.accordion-item {
    background-color: transparent;
    border: none;
}

.accordion-flink .accordion-button {
    box-shadow: none;
}

/* Dropdown customization */
.dropdown-menu {
    background-color: var(--surface);
    border: 0.5px solid rgba(200,169,110,0.2);
}

.dropdown-item {
    color: var(--text-mid);
    font-size: 11px;
    letter-spacing: 0.08em;
}

.dropdown-item:hover {
    background-color: var(--gold-dim);
    color: var(--text);
}

.dropdown-divider {
    border-top: 0.5px solid rgba(200,169,110,0.15);
}

/* ── NAVIGATION COMPONENTS (Bootstrap Navbar for shared partial) ── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    height: var(--nav-height);
    padding: 0 4rem;
    background: rgba(8,8,14,0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 0.5px solid rgba(200,169,110,0.12);
}

/* ── NAVBAR LOGO STYLING (for shared partial) ── */
.nav-logo {
    font-family: var(--mono);
    font-size: 13.9px;
    letter-spacing: 0.18em;
    color: var(--gold) !important;
    text-transform: uppercase;
    text-decoration: none;
}

.nav-logo:hover {
    color: var(--gold) !important;
}

/* ── NAV LINKS STYLING (for shared partial) ── */
.nav-links { display: flex; gap: 2rem; list-style: none; margin-bottom: 0; padding-left: 0; }
.nav-links a {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mid) !important;
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold) !important; }

/* ── CTA BUTTON STYLING (for shared partial) ── */
.nav-cta {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    border: 0.5px solid var(--gold-line);
    padding: 0.5rem 1.25rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--gold-dim); }

/* ── HERO SECTION UTILITIES (for shared pages) ── */
.hero-section {
    min-height: calc(100vh - var(--nav-height));
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: calc(var(--nav-height) + 10px);
    align-items: center;
}

.page-header {
    padding: 12rem 4rem 6rem;
    border-bottom: 0.5px solid rgba(200,169,110,0.12);
    position: relative;
    overflow: hidden;
}

.page-eyebrow {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.page-eyebrow::before {
    content: '//';
    opacity: 0.5;
}

/* ── PAGE CONTENT STYLES ── */
.page-content h1,
.page-content h2 {
    font-family: var(--serif);
    font-weight: 300;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.page-content p {
    color: var(--text-mid);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.page-content strong {
    font-weight: 400;
    color: var(--text);
}

.page-content em {
    font-style: italic;
    color: var(--gold);
}

/* ── CARD COMPONENTS (Bootstrap Cards) ── */
.card {
    background: var(--surface);
    border: 0.5px solid rgba(200,169,110,0.15);
}

.card-header {
    background: var(--surface2);
    border-bottom: 0.5px solid rgba(200,169,110,0.1);
}

.card-body {
    color: var(--text-mid);
}

.card-title {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

/* ── BADGE COMPONENTS (Bootstrap Badges) ── */
.badge {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 4px 10px;
}

/* ── TABLE COMPONENTS (Bootstrap Tables) ── */
.table {
    color: var(--text-mid);
}

.table th, .table td {
    border-color: rgba(200,169,110,0.1);
}

.table thead th {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ── PROGRESS COMPONENTS (Bootstrap Progress) ── */
.progress {
    background-color: var(--surface2);
    height: 6px;
}

.progress-bar {
    background-color: var(--gold);
}

/* ── TABS COMPONENTS (Bootstrap Tabs) ── */
.nav-tabs .nav-link {
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 1rem 1.5rem;
}

.nav-tabs .nav-link.active {
    color: var(--gold);
    border-color: rgba(200,169,110,0.2) transparent transparent transparent;
}

/* ── PAGINATION COMPONENTS (Bootstrap Pagination) ── */
.pagination .page-link {
    background-color: var(--surface);
    color: var(--text-mid);
    border: 0.5px solid rgba(200,169,110,0.2);
}

.pagination .page-item.active .page-link {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--bg);
}

/* ── DROPDOWN COMPONENTS (Bootstrap Dropdowns) ── */
.nav-auth {
    position: relative;
}

.nav-auth > a {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mid);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}
.nav-auth > a:hover { color: var(--gold); }

.nav-auth .dropdown-menu {
    display: block;
    position: absolute;
    top: 100%; left: 0;
    background: var(--surface);
    border: 0.5px solid rgba(200,169,110,0.2);
    min-width: 220px;
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.nav-auth .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-auth .dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-mid);
    font-size: 11px;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-auth .dropdown-item:hover {
    background: var(--gold-dim);
    color: var(--text);
}

.nav-auth .dropdown-divider {
    height: 0.5px;
    background: rgba(200,169,110,0.15);
    margin: 0.5rem 0;
}

.nav-auth .dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
}

.nav-auth .dropdown-user-avatar {
    width: 32px;
    height: 32px;
    background: var(--surface2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 9px;
    color: var(--gold);
}

.nav-auth .dropdown-user-name {
    font-size: 12px;
    color: var(--text-mid);
}

/* ── TOOLTIP COMPONENTS (Bootstrap Tooltips) ── */
.tooltip {
    background-color: var(--surface2);
    border: 0.5px solid rgba(200,169,110,0.3);
}

.tooltip-inner {
    color: var(--text);
}

/* ── MODAL COMPONENTS (Bootstrap Modals) ── */
.modal-content {
    background-color: var(--surface);
    border: 0.5px solid rgba(200,169,110,0.2);
}

.modal-header {
    border-bottom: 0.5px solid rgba(200,169,110,0.1);
}

.modal-title {
    font-family: var(--serif);
    color: var(--text);
}

.modal-body {
    color: var(--text-mid);
}

/* ── TOAST COMPONENTS (Bootstrap Toasts) ── */
.toast {
    background-color: var(--surface2);
    border: 0.5px solid rgba(200,169,110,0.2);
    color: var(--text-mid);
}

/* ── OFFCANVAS COMPONENTS (Bootstrap Offcanvas) ── */
.offcanvas-content {
    background-color: var(--surface);
    border-right: 0.5px solid rgba(200,169,110,0.1);
}

/* ── CAROUSEL COMPONENTS (Bootstrap Carousel) ── */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) grayscale(100%) opacity(0.7);
}

.carousel-indicators [data-bs-target] {
    background-color: var(--gold);
}

/* ── SPINNER COMPONENT (Bootstrap Spinner) ── */
.spinner-border {
    color: var(--gold);
}

/* ── PLACEHOLDER COMPONENT (Bootstrap Placeholder) ── */
.placeholder {
    background-color: rgba(200,169,110,0.1);
}

/* ── SKELETON LOADING STATES ── */
.skeleton-text, .skeleton-image {
    background: linear-gradient(90deg, var(--surface2) 25%, var(--surface) 50%, var(--surface2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── FOOTER (Reference Design) ── */
.footer-ref {
    margin-top: 6rem;
    padding: 2.5rem 4rem;
    border-top: 0.5px solid rgba(200,169,110,0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-ref p {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0;
}

.footer-links-ref {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links-ref a {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links-ref a:hover { color: var(--gold); }

/* Alternative centered footer layout */
.footer-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 900px) {
    .footer-ref {
        padding: 2rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links-ref { justify-content: center; }
}

/* ==================================================================== */
/* ACCOUNT HUB (user_detail — account overview page)                   */
/* ==================================================================== */

.account-hub-subhead {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: -1rem;
    margin-bottom: 2rem;
}

.account-hub {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 2rem;
    border: 0.5px solid rgba(200,169,110,0.15);
}

.account-hub-section {
    border-bottom: 0.5px solid rgba(200,169,110,0.1);
}
.account-hub-section:last-child { border-bottom: none; }

.account-hub-section-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 1rem 1.5rem 0.5rem;
    opacity: 0.7;
}

.account-hub-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.5rem;
    border-top: 0.5px solid rgba(200,169,110,0.06);
    text-decoration: none;
    transition: background 0.15s;
    color: var(--text-mid);
}
.account-hub-row:hover {
    background: rgba(200,169,110,0.04);
    color: var(--text);
}

.account-hub-row-title {
    font-size: 0.875rem;
}

.account-hub-row-meta {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.account-hub-row-danger { color: var(--text-muted); }
.account-hub-row-danger:hover { color: rgba(244,67,54,0.8); background: rgba(244,67,54,0.05); }

/* ==================================================================== */
/* ACCOUNT MANAGEMENT PAGES (profile, password, email, etc.)           */
/* ==================================================================== */

.page-account-container {
    max-width: 720px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.page-account-container > h1,
.page-account-container > h2 {
    font-family: var(--serif);
    font-weight: 300;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 0.5px solid rgba(200,169,110,0.15);
}

.page-account-container p {
    color: var(--text-mid);
    line-height: 1.8;
}

/* Bordered form panel — used by panel.html element and user_form.html */
.account-form-panel {
    border: 0.5px solid rgba(200,169,110,0.15);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
}

/* h2 inside a panel is a section divider, not a page title */
.account-form-panel h2 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 0.5px solid rgba(200,169,110,0.1);
}

/* Form submit/cancel row inside panels */
.account-form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 0.5px solid rgba(200,169,110,0.1);
}

/* ==================================================================== */
/* AUTH PAGES (sign in / sign up)                                       */
/* ==================================================================== */

.auth-page {
    background: var(--bg);
}

.auth-overlay {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: calc(var(--nav-height) + 2rem) 2rem 4rem;
}

.auth-panel {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 0.5px solid rgba(200,169,110,0.2);
    padding: 3rem;
    position: relative;
}

.auth-panel h2 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 0.5px solid rgba(200,169,110,0.15);
}

.auth-back {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.auth-back:hover { color: var(--gold); }

.auth-actions {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0 0;
    padding-top: 1.25rem;
    border-top: 0.5px solid rgba(200,169,110,0.1);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.auth-actions li a,
.auth-actions li button {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s;
}
.auth-actions li a:hover,
.auth-actions li button:hover { color: var(--gold); }

/* form-text (help text under fields) */
.auth-panel .form-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* ── REMEMBER ME checkbox ── */
.auth-panel .form-check-input {
    background-color: var(--surface2);
    border-color: rgba(200,169,110,0.3);
}
.auth-panel .form-check-input:checked {
    background-color: var(--gold);
    border-color: var(--gold);
}
.auth-panel .form-check-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Submit button fills full width */
.auth-panel .btn-primary {
    width: 100%;
    margin-top: 0.5rem;
    border-radius: 0;
}

/* ==================================================================== */
/* PAGE WRAPPER                                                          */
/* ==================================================================== */

.page-wrapper {
    padding-top: var(--nav-height);
    overflow-x: hidden;
    min-height: calc(100vh - var(--nav-height));
}

/* Home page hero manages its own top spacing */
.page-wrapper-home {
    padding-top: 0;
}

/* ==================================================================== */
/* PAGE HEADER — shared across about / advisory / services / patents    */
/* ==================================================================== */

.page-header {
    padding: 8rem 4rem 5rem;
    border-bottom: 0.5px solid rgba(200,169,110,0.12);
    position: relative;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    font-family: var(--serif);
    font-weight: 300;
    color: rgba(200,169,110,0.06);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.05em;
    line-height: 1;
    top: 50%;
    right: -1rem;
    transform: translateY(-50%);
    font-size: 20rem;
    z-index: 0;
}

.page-header h1,
.page-header .page-eyebrow,
.page-header .header-grid {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

/* Two-column header variant (advisory) */
.page-header.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: end;
}

.page-header.split .page-header-bg {
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    font-size: 22rem;
}

.page-header-right p {
    font-size: 1.1rem;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 1.25rem;
}
.page-header-right strong { font-weight: 400; color: var(--text); }

/* ==================================================================== */
/* SHARED TILE CARD                                                      */
/* ==================================================================== */

.tile-card {
    background: var(--bg);
    transition: background 0.3s;
}
.tile-card:hover { background: var(--surface); }

/* ==================================================================== */
/* SHARED CTA SECTION                                                    */
/* ==================================================================== */

.cta-section {
    margin: 4rem;
    border: 0.5px solid rgba(200,169,110,0.2);
    padding: 5rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--surface);
}

.cta-section h2 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.15;
    color: var(--text);
}

.cta-section h2 em { font-style: italic; color: var(--gold); }

.cta-section p {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

/* ==================================================================== */
/* HOME PAGE                                                             */
/* ==================================================================== */

.hero-ref {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    padding-top: calc(var(--nav-height) + 10px);
}

.hero-bg-text-ref {
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-family: var(--serif);
    font-size: 15rem;
    font-weight: 300;
    color: rgba(200,169,110,0.06);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    letter-spacing: -0.05em;
}

.hero-left-ref {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 4rem;
    position: relative;
    z-index: 2;
}

.hero-eyebrow-ref {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-eyebrow-line {
    width: 40px;
    height: 0.5px;
    background: var(--gold);
    flex-shrink: 0;
}

.hero-eyebrow-ref span {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

.hero-ref h1 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(3.2rem, 5.5vw, 5.2rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 0.35s;
}

.hero-sub-ref {
    font-size: 1.05rem;
    color: var(--text-mid);
    max-width: 480px;
    line-height: 1.75;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 0.5s;
}

.hero-actions-ref {
    display: flex;
    gap: 1rem;
    align-items: center;
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 0.65s;
}

.btn-hero-primary {
    background: var(--gold);
    color: var(--bg);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.875rem 2rem;
    text-decoration: none;
    display: inline-block;
    border: none;
    transition: opacity 0.2s;
}
.btn-hero-primary:hover { opacity: 0.85; color: var(--bg); }

.btn-hero-ghost {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mid);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}
.btn-hero-ghost:hover { color: var(--gold); }
.btn-hero-ghost::after { content: '→'; }

/* Hero right — stat panel */
.hero-right-ref {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 4rem 6rem 2rem;
    position: relative;
}

.hero-right-ref::before {
    content: '';
    position: absolute;
    left: 0; top: 15%; bottom: 15%;
    width: 0.5px;
    background: linear-gradient(to bottom, transparent, var(--gold-line) 30%, var(--gold-line) 70%, transparent);
}

.stat-grid-ref {
    display: grid;
    grid-template-columns: 1fr 1fr;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.8s;
}

.stat-cell-ref {
    background: rgba(8,8,14,0.1);
    padding: 2rem 1.75rem;
    border: 0.5px solid rgba(200,169,110,0.18);
}

.stat-number-ref {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 2.8rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label-ref {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.5;
}

.client-strip-ref {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 0.5px solid rgba(200,169,110,0.12);
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.1s;
}

.client-strip-label-ref {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.client-logos-ref {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.client-name-ref {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-mid);
    opacity: 0.7;
}

/* Identity strip */
.identity-strip-ref {
    border-top: 0.5px solid rgba(200,169,110,0.12);
    border-bottom: 0.5px solid rgba(200,169,110,0.12);
    padding: 1.25rem 4rem;
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}
.identity-strip-ref::-webkit-scrollbar { display: none; }

.id-item-ref {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-shrink: 0;
}

.id-item-ref::after {
    content: '·';
    color: var(--gold);
    font-size: 1.5rem;
    margin: 0 2rem;
    font-weight: 300;
}
.id-item-ref:last-child::after { display: none; }

.id-item-ref span {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-mid);
    white-space: nowrap;
}

.id-highlight-ref { color: var(--gold); }

/* About section on homepage */
.about-ref {
    padding: 8rem 4rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-label-ref {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.about-label-ref::before { content: '//'; opacity: 0.5; }

.about-nav-ref {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.about-nav-ref a {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.about-nav-ref a:hover { color: var(--gold); }
.about-nav-ref a::before { content: '→'; opacity: 0; transition: opacity 0.2s; }
.about-nav-ref a:hover::before { opacity: 1; }

.about-content-ref p {
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--text-mid);
    margin-bottom: 1.5rem;
}
.about-content-ref p strong { font-weight: 400; color: var(--text); }
.about-content-ref p em {
    font-style: italic;
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--gold);
}

/* Platforms section */
.platforms-ref {
    padding: 0 4rem 8rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header-ref {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.section-header-ref h2 {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    white-space: nowrap;
}

.section-header-line-ref {
    flex: 1;
    height: 0.5px;
    background: rgba(200,169,110,0.2);
}

.platform-grid-ref {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(200,169,110,0.08);
}

.platform-card-ref {
    background: var(--bg);
    padding: 2.5rem 2rem;
    transition: background 0.3s;
    cursor: default;
}
.platform-card-ref:hover { background: var(--surface); }

.platform-card-index-ref {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--gold);
    opacity: 0.6;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.platform-card-ref h3 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.platform-card-ref p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.platform-card-meta-ref {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--gold);
    opacity: 0.7;
    text-transform: uppercase;
}

/* Home CTA */
.cta-section-ref {
    margin: 0 4rem;
    border: 0.5px solid rgba(200,169,110,0.2);
    padding: 5rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--surface);
}

.cta-section-ref h2 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.15;
    color: var(--text);
}
.cta-section-ref h2 em { font-style: italic; color: var(--gold); }

.cta-section-ref p {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.cta-actions-ref {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

/* ==================================================================== */
/* ABOUT PAGE                                                            */
/* ==================================================================== */

.about-page-grid {
    padding: 5rem 4rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-page-nav {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.about-page-nav a {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.about-page-nav a:hover { color: var(--gold); }
.about-page-nav a::before { content: '→'; opacity: 0; transition: opacity 0.2s; }
.about-page-nav a:hover::before { opacity: 1; }

.about-page-body h2 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.about-page-body h3 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 1.4rem;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.about-page-body p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-mid);
    margin-bottom: 1.25rem;
}
.about-page-body strong { font-weight: 400; color: var(--text); }

.about-quote {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--gold);
    border-left: 2px solid var(--gold-line);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    line-height: 1.8;
}

.about-page-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 0.5px solid rgba(200,169,110,0.12);
}

/* ==================================================================== */
/* SERVICES PAGE                                                         */
/* ==================================================================== */

.services-intro {
    padding: 5rem 4rem 3rem;
    max-width: 820px;
}

.services-intro p {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.services-cards {
    padding: 0 4rem 5rem;
}

.service-card {
    padding: 2.5rem 2rem;
}

.service-card-index {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card ul li {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.35rem 0;
    border-top: 0.5px solid rgba(200,169,110,0.08);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.service-card ul li::before { content: '→'; color: var(--gold); font-size: 0.7rem; opacity: 0.7; flex-shrink: 0; }

.services-process {
    padding: 0 4rem 5rem;
}

.process-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(200,169,110,0.08);
}

.process-step {
    background: var(--bg);
    padding: 2rem 1.75rem;
}

.step-num {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.6;
    margin-bottom: 1rem;
}

.process-step h4 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.process-step p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==================================================================== */
/* ADVISORY PAGE                                                         */
/* ==================================================================== */

.brings { padding: 7rem 4rem; }

.bring-card { padding: 2.5rem 2rem; }

.bring-icon {
    font-family: var(--mono);
    font-size: 22px;
    color: var(--gold);
    opacity: 0.7;
    margin-bottom: 1.25rem;
    letter-spacing: -0.05em;
}

.bring-card h3 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 1.45rem;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.bring-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.75; }

.bring-card ul { list-style: none; margin-top: 1rem; padding: 0; }
.bring-card ul li {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.35rem 0;
    border-top: 0.5px solid rgba(200,169,110,0.08);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.bring-card ul li::before { content: '→'; color: var(--gold); font-size: 0.7rem; opacity: 0.7; flex-shrink: 0; }

.who { padding: 0 4rem 7rem; }

.who-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.who-card {
    border: 0.5px solid rgba(200,169,110,0.15);
    padding: 2rem;
    transition: border-color 0.3s;
}
.who-card:hover { border-color: rgba(200,169,110,0.4); }

.who-card-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.who-card h3 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.who-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.75; }

.who-card-fit {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 0.5px solid rgba(200,169,110,0.1);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--gold);
    opacity: 0.75;
    text-transform: uppercase;
}

.engagement { padding: 0 4rem 7rem; }

.eng-card { padding: 2.5rem 2rem; }

.eng-card-type {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.eng-card h3 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.eng-card .price {
    font-size: 1.4rem;
    font-family: var(--serif);
    font-weight: 300;
    color: var(--gold);
    margin: 1.25rem 0 0.25rem;
}

.eng-card .price-note {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.eng-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 1rem; }

.eng-card ul { list-style: none; padding: 0; }
.eng-card ul li {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.35rem 0;
    border-top: 0.5px solid rgba(200,169,110,0.08);
    display: flex;
    gap: 0.5rem;
}
.eng-card ul li::before { content: '·'; color: var(--gold); flex-shrink: 0; margin-top: 1px; }

.comp-note {
    margin: 0 4rem 7rem;
    border: 0.5px solid rgba(200,169,110,0.15);
    padding: 2.5rem 3rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: center;
    background: var(--surface);
}

.comp-note-index {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--gold);
    opacity: 0.7;
    writing-mode: vertical-rl;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.comp-note p { font-size: 0.95rem; color: var(--text-mid); line-height: 1.8; }
.comp-note strong { font-weight: 400; color: var(--text); }

.contact { padding: 0 4rem 8rem; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: start;
}

.contact-left h2 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}
.contact-left h2 em { font-style: italic; color: var(--gold); }
.contact-left p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }

.contact-direct {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 0.5px solid rgba(200,169,110,0.15);
}

.contact-direct-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.contact-direct a { color: var(--gold); text-decoration: none; font-size: 0.95rem; }
.contact-direct a:hover { text-decoration: underline; }

.contact form { display: flex; flex-direction: column; gap: 1rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--surface);
    border: 0.5px solid rgba(200,169,110,0.2);
    color: var(--text);
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 300;
    padding: 0.75rem 1rem;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: rgba(200,169,110,0.6); }

.form-group select option { background: var(--surface); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
    background: var(--gold);
    color: var(--bg);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    align-self: flex-start;
    transition: opacity 0.2s;
}
.form-submit:hover { opacity: 0.85; }

.form-note { font-size: 11px; color: var(--text-muted); line-height: 1.6; }

/* ==================================================================== */
/* PATENTS PAGE                                                          */
/* ==================================================================== */

.patents-bg {
    font-size: 20rem;
}

.header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: end;
    position: relative;
    z-index: 1;
}

.header-right p {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 1rem;
}
.header-right strong { font-weight: 400; color: var(--text); }

.header-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 0.5px solid rgba(200,169,110,0.15);
}

.hstat { display: flex; flex-direction: column; }

.hstat-num {
    font-family: var(--serif);
    font-size: 2.4rem;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
}

.hstat-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.narrative {
    padding: 6rem 4rem;
}


.narrative p {
    font-size: 1.1rem;
    color: var(--text-mid);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}
.narrative strong { font-weight: 400; color: var(--text); }
.narrative em {
    font-style: italic;
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--gold);
}

.families { padding: 0 4rem 2rem; }

.family-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.family-label::after { content: ''; flex: 1; height: 0.5px; background: rgba(200,169,110,0.2); }

.patent-family {
    border: 0.5px solid rgba(200,169,110,0.15);
    margin-bottom: 1.5rem;
    transition: border-color 0.3s;
}
.patent-family:hover { border-color: rgba(200,169,110,0.35); }

.family-header {
    padding: 2rem 2.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 2rem;
    cursor: pointer;
    background: var(--surface);
    transition: background 0.2s;
}
.family-header:hover { background: rgba(200,169,110,0.04); }

.family-number {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--gold);
    opacity: 0.7;
    text-transform: uppercase;
    padding-top: 3px;
    white-space: nowrap;
}

.family-title h2 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.family-plain {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 620px;
}

.toggle-hint {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--gold);
    opacity: 0.5;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 0.35rem;
    transition: opacity 0.2s;
}
.patent-family:hover .toggle-hint { opacity: 0.8; }
.patent-family.open .toggle-hint { opacity: 0.8; }

.family-status { text-align: right; }

.family-count {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-align: right;
    letter-spacing: 0.1em;
}

.family-filings {
    border-top: 0.5px solid rgba(200,169,110,0.1);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
}
.patent-family.open .family-filings { max-height: 600px; }

.family-filings-inner { padding: 0 2.5rem 1.5rem; }

.filing-row {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 0.5px solid rgba(200,169,110,0.06);
}
.filing-row:last-child { border-bottom: none; }

.filing-type {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.filing-title { font-size: 0.8rem; color: var(--text-mid); }

.filing-num {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-muted);
    white-space: nowrap;
    letter-spacing: 0.08em;
}

.filing-date {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-muted);
    white-space: nowrap;
    text-align: right;
}

.significance {
    padding: 5rem 4rem;
    background: var(--surface);
    margin: 4rem 0;
}

.sig-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

@media (max-width: 1200px) {
    .sig-grid { grid-template-columns: repeat(2, 1fr); }
}

.sig-title {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 1.35rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.sig-title em { font-style: italic; color: var(--gold); }

.sig-body { font-size: 0.875rem; color: var(--text-muted); line-height: 1.75; }

.uspto-block {
    margin: 0 4rem 6rem;
    border: 0.5px solid rgba(200,169,110,0.15);
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    background: var(--surface);
}

.uspto-block p { font-size: 0.95rem; color: var(--text-mid); line-height: 1.8; }
.uspto-block strong { font-weight: 400; color: var(--text); }
.uspto-block em { font-style: italic; font-family: var(--serif); font-size: 1.1rem; color: var(--gold); }
.uspto-block p + p { margin-top: 0.75rem; font-size: 0.85rem; color: var(--text-muted); }

.uspto-links { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-end; flex-shrink: 0; }

.uspto-link {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    border: 0.5px solid rgba(200,169,110,0.25);
    padding: 0.5rem 1rem;
    transition: background 0.2s;
    white-space: nowrap;
}
.uspto-link:hover { background: var(--gold-dim); }

/* Patents bottom CTA */
.cta { padding: 0 4rem 8rem; }

.cta-box {
    border: 0.5px solid rgba(200,169,110,0.2);
    padding: 4rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.cta-box h2 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 2.5rem;
    line-height: 1.15;
}
.cta-box h2 em { font-style: italic; color: var(--gold); }
.cta-box p { margin-top: 1rem; font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; }

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

@media (max-width: 900px) {
    /* Navbar */
    .navbar { padding: 1.2rem 2rem; }
    .nav-links { display: none; }

    /* Home page */
    .hero-ref { grid-template-columns: 1fr; }
    .hero-left-ref { padding: 4rem 2rem; }
    .hero-right-ref { display: none; }
    .about-ref { grid-template-columns: 1fr; padding: 5rem 2rem; gap: 3rem; }
    .platforms-ref { padding: 0 2rem 5rem; }
    .platform-grid-ref { grid-template-columns: 1fr; }
    .cta-section-ref { margin: 0 2rem; grid-template-columns: 1fr; padding: 3rem 2rem; }
    .identity-strip-ref { padding: 1.25rem 2rem; }

    /* Shared CTA */
    .cta-section { margin: 0 2rem; grid-template-columns: 1fr; padding: 3rem 2rem; }

    /* About page */
    .about-page-grid { grid-template-columns: 1fr; padding: 3rem 2rem; gap: 3rem; }

    /* Services page */
    .services-intro,
    .services-cards,
    .services-process { padding-left: 2rem; padding-right: 2rem; }
    .process-list { grid-template-columns: 1fr 1fr; }

    /* Advisory page */
    .page-header.split { grid-template-columns: 1fr; gap: 2rem; }
    .brings,
    .who,
    .engagement,
    .contact { padding-left: 2rem; padding-right: 2rem; }
    .who-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .form-row { grid-template-columns: 1fr; }
    .comp-note { margin: 0 2rem 5rem; }

    /* Patents page */
    .header-grid { grid-template-columns: 1fr; gap: 2rem; }
    .families,
    .narrative,
    .cta { padding-left: 2rem; padding-right: 2rem; }
    .significance { padding: 3rem 2rem; }
    .sig-grid { grid-template-columns: 1fr; gap: 2rem; }
    .uspto-block { margin: 0 2rem 4rem; grid-template-columns: 1fr; }
    .uspto-links { align-items: flex-start; }
    .cta-box { grid-template-columns: 1fr; padding: 2.5rem 2rem; }
    .filing-row { grid-template-columns: 60px 1fr; row-gap: 0.2rem; }
    .filing-num,
    .filing-date { display: none; }
}
