/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ─── Font (self-hosted) ─── */
@font-face {
    font-family: 'TASA Orbiter Display';
    src: url('/fonts/TASAOrbiterDisplay-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TASA Orbiter Display';
    src: url('/fonts/TASAOrbiterDisplay-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TASA Orbiter Display';
    src: url('/fonts/TASAOrbiterDisplay-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TASA Orbiter Display';
    src: url('/fonts/TASAOrbiterDisplay-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ─── Tokens ─── */
:root {
    --bg: #FAF9F6;
    --text: #000000;
    --border: #E0E0E0;
    --accent: #FF5B05;
    --font: 'TASA Orbiter Display', sans-serif;
}

/* ─── Base ─── */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

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

img { display: block; max-width: 100%; }

/* ─── Layout ─── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
    scroll-margin-top: 64px;
}

section h2 {
    font-size: clamp(34px, 4.2vw, 52px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 16px;
}

/* ─── Buttons ─── */
.btn-primary {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 0;
    padding: 14px 28px 14px 14px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.btn-primary::after {
    content: '';
    display: block;
    width: 38px;
    height: 10px;
    background-color: currentColor;
    -webkit-mask-image: url('ic-arrow-right-long.svg');
    mask-image: url('ic-arrow-right-long.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: left center;
    mask-position: left center;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.btn-primary:hover {
    background: var(--accent);
    color: #FFFFFF;
}

.btn-sm {
    padding: 8px 18px 8px 12px;
    font-size: 14px;
}

.btn-sm::after { width: 30px; height: 9px; }

/* ─── Header ─── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.nav-start {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

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

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    padding-bottom: 3px;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.25s ease, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { background-size: 100% 2px; }

.mobile-nav a.active { color: var(--accent); }

.nav-share-btn {
    flex-shrink: 0;
}

.nav-share-mobile {
    align-self: flex-start;
    margin-top: 16px;
}

/* Share button: arrow on the right of text, pointing up-right */
.nav-share-btn,
.nav-share-mobile {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
}

.nav-share-btn::after,
.nav-share-mobile::after {
    width: 12px;
    height: 12px;
    -webkit-mask-image: url('/ic-arrow-up-right.svg');
    mask-image: url('/ic-arrow-up-right.svg');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.nav-share-mobile {
    padding: 12px 18px;
}

.nav-share-mobile::after {
    width: 14px;
    height: 14px;
}

/* ─── Share Dialog ─── */
.share-dialog[hidden] { display: none; }

.share-dialog {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.share-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.share-modal {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    max-width: 520px;
    width: 100%;
    padding: 40px 32px 32px;
}

.share-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
    padding: 4px 8px;
    font-family: var(--font);
    transition: color 0.2s;
}

.share-close:hover { color: var(--accent); }

.share-modal h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

.share-preview {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.share-page-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.share-page-desc {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.65;
}

.share-url-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.share-url {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--bg);
    color: var(--text);
    outline: none;
}

.share-url:focus { border-color: var(--accent); }

.share-copy {
    white-space: nowrap;
    flex-shrink: 0;
}

.share-copy.copied {
    background: var(--accent);
    color: #FFFFFF;
}

.share-copy.copied::after { display: none; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    position: absolute;
    left: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle span:first-child { top: 4px; }
.nav-toggle span:last-child { bottom: 4px; }

.nav-toggle.active span:first-child {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.nav-toggle.active span:last-child {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0 40px 24px;
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-of-type {
    border-bottom: none;
}

.mobile-nav.open { display: flex; }

/* ─── Hero ─── */
.hero {
    position: relative;
    padding: 130px 0 110px;
    border-top: none;
    overflow: hidden;
}

/* Blueprint grid, fading in toward the stats rail */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: linear-gradient(100deg, transparent 45%, #000 90%);
    mask-image: linear-gradient(100deg, transparent 45%, #000 90%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
    gap: 80px;
}

.hero-content {
    min-width: 0;
}

.hero h1 {
    font-size: clamp(44px, 6vw, 76px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 28px;
}

.hero-for {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 19px;
    line-height: 1.65;
    max-width: 540px;
    margin-bottom: 40px;
    color: var(--text);
    opacity: 0.75;
}

/* Stats rail — proof as the hero graphic */
.hero-stats {
    display: flex;
    flex-direction: column;
    justify-self: end;
    width: 100%;
    max-width: 400px;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 8px 28px;
}

.hero-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.hero-stat:first-child { border-top: none; }

.hero-stat-value {
    font-size: clamp(34px, 3.2vw, 46px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.hero-stat:last-child .hero-stat-value { color: var(--accent); }

.hero-stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.55;
    text-align: right;
    line-height: 1.4;
}

/* ─── About ─── */
.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 56px;
    align-items: start;
}

.about-photo-wrap {
    border: 1px solid var(--border);
}

.about-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

#about .about-content {
    max-width: 640px;
}

#about .about-content p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 16px;
}

#about .about-content p:last-child {
    margin-bottom: 0;
}

#about .about-content p a {
    color: var(--accent);
    font-weight: 600;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    padding-bottom: 1px;
    transition: background-size 0.3s ease;
}

#about .about-content p a:hover { background-size: 100% 1px; }

.about-location {
    margin-top: 8px;
    opacity: 0.6;
}

/* ─── Work With Me ─── */
.work-with-me {
    max-width: 520px;
}

.work-with-me p {
    font-size: 19px;
    line-height: 1.7;
    margin-bottom: 32px;
    opacity: 0.75;
}

/* ─── Work / Projects ─── */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.project:first-child { padding-top: 0; }
.project:last-child { border-bottom: none; }

.project h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.project p {
    font-size: 16px;
    line-height: 1.65;
    opacity: 0.75;
    margin-bottom: 12px;
    max-width: 600px;
}

.project a {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
}

.project a:hover { opacity: 0.8; }

.tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 0;
    padding: 2px 10px;
    vertical-align: middle;
    margin-left: 4px;
}

/* Post meta line on blog cards: type tag + date */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-type {
    font-weight: 600;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 3px 10px;
    line-height: 1;
}

.post-date {
    opacity: 0.55;
    font-weight: 500;
}

/* ─── Content / Videos ─── */
.section-intro {
    font-size: 17px;
    opacity: 0.75;
    margin-bottom: 48px;
    max-width: 520px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border: 1px solid var(--border);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ─── Video Fallback ─── */
.video-placeholder {
    grid-column: 1 / -1;
    border: 1px solid var(--border);
    padding: 64px 32px;
    text-align: center;
}

.video-placeholder p {
    font-size: 17px;
    opacity: 0.6;
    margin-bottom: 24px;
}

/* ─── Email Signup ─── */
.email-signup {
    border: 1px solid var(--border);
    padding: 48px;
    max-width: 600px;
}

.email-signup h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.email-signup p {
    font-size: 16px;
    line-height: 1.65;
    opacity: 0.75;
    margin-bottom: 24px;
}

.signup-form {
    display: flex;
    gap: 12px;
}

.signup-form input {
    flex: 1;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 15px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}

.signup-form input:focus { border-color: var(--accent); }

.signup-form input::placeholder { opacity: 0.4; }

/* ─── Section labels ─── */
.section-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 12px;
}

/* ─── Dark proof band ─── */
.band-dark {
    background: #111111;
    color: #FAF9F6;
    border-top: none;
    padding: 120px 0;
}

.band-dark a { color: #FAF9F6; }
.band-dark a:hover { color: var(--accent); }

.proof-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
}

.proof-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 1px solid #3A3A3A;
    padding: 48px 40px;
    transition: border-color 0.2s, transform 0.25s ease;
}

.proof-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.proof-stat {
    font-size: clamp(84px, 9vw, 120px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -3px;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.proof-card h3 {
    font-size: 22px;
    font-weight: 600;
}

.proof-card p {
    font-size: 16px;
    line-height: 1.65;
    opacity: 0.7;
    max-width: 520px;
}

.proof-link {
    margin-top: auto;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
}

.proof-card:hover .proof-link { opacity: 0.85; }

/* ─── Speaking ─── */
.talk {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    border: 1px solid var(--border);
    background: #FFFFFF;
    margin-bottom: 24px;
}

.talk-media {
    min-height: 100%;
}

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

.talk-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 48px 40px;
}

.talk-body h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.talk-venue {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.55;
}

.talk-desc {
    font-size: 16px;
    line-height: 1.65;
    opacity: 0.75;
}

.talk-body .btn-primary {
    margin-top: auto;
    align-self: flex-start;
}

.talk-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.05fr);
    gap: 24px;
}

.talk-gallery img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: center 30%;
    border: 1px solid var(--border);
}

/* ─── Services bento ─── */
.bento {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    margin-bottom: 56px;
}

.bento-cell {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    padding: 32px;
}

.bento-lead {
    background: #111111;
    color: #FAF9F6;
    border: 1px solid #111111;
    padding: 48px 40px;
}

.bento-lead p { opacity: 0.8; }

.bento-lead .tag { align-self: flex-start; margin-left: 0; }

.bento-side {
    display: grid;
    gap: 24px;
}

.bento-cell h3 {
    font-size: 22px;
    font-weight: 600;
}

.bento-cell p {
    font-size: 16px;
    line-height: 1.65;
    opacity: 0.75;
}

.bento-kicker {
    opacity: 0.8;
}

.bento-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 6px 0 20px;
}

.bento-list li {
    position: relative;
    padding-left: 24px;
    font-size: 16px;
    line-height: 1.55;
    opacity: 0.85;
}

.bento-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 13px;
    height: 2px;
    background: var(--accent);
}

.bento-price {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 16px;
}

.bento-price-value {
    font-weight: 700;
    font-size: 20px;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.bento-price-note {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.55;
}

/* ─── Build log ─── */
.build-log {
    border-left: 2px solid var(--accent);
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.build-item h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.build-item p {
    font-size: 16px;
    line-height: 1.65;
    opacity: 0.75;
    margin-bottom: 12px;
    max-width: 600px;
}

.build-item a {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
}

.build-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
}

/* ─── Underline sweep on text links ─── */
.proof-link,
.build-item a,
.project a,
.contact-handle,
.footer-cta a {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    padding-bottom: 2px;
    transition: background-size 0.3s ease, color 0.2s, opacity 0.2s;
}

.proof-link,
.contact-handle {
    align-self: flex-start;
}

.proof-card:hover .proof-link,
.contact-card:hover .contact-handle,
.build-item a:hover,
.project a:hover,
.footer-cta a:hover {
    background-size: 100% 1px;
}

/* ─── Scroll reveal ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(14px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.visible {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 768px) {
    .band-dark { padding: 80px 0; }
    .proof-grid, .bento { grid-template-columns: 1fr; }
    .proof-card, .bento-lead { padding: 32px 24px; }
    .proof-stat { font-size: 64px; }
    .build-log { padding-left: 24px; gap: 40px; }
}

/* ─── Contact ─── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.contact-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--border);
    padding: 32px;
    transition: border-color 0.2s, transform 0.25s ease;
}

/* Email as full-width primary contact strip */
.contact-card-wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px 32px;
}

.contact-card-wide p {
    flex: 1;
    min-width: 260px;
}

.contact-card-wide .contact-handle {
    margin-top: 0;
    margin-left: auto;
}

/* Contact as dark closing band */
.contact-band h2 { max-width: 780px; }
.contact-band .section-intro { max-width: 620px; }

.band-dark .contact-card { border-color: #3A3A3A; }

.band-dark .contact-card:hover {
    border-color: var(--accent);
    color: #FAF9F6;
}

.band-dark .contact-card p { opacity: 0.65; }

.contact-card::after {
    content: '';
    position: absolute;
    top: 24px;
    right: 24px;
    width: 16px;
    height: 16px;
    background-color: var(--accent);
    -webkit-mask-image: url('ic-arrow-up-right.svg');
    mask-image: url('ic-arrow-up-right.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    opacity: 0;
    transition: opacity 0.2s;
}

.contact-card:hover {
    border-color: var(--accent);
    color: var(--text);
    transform: translateY(-4px);
}

.contact-card:hover::after { opacity: 1; }

.contact-card h3 {
    font-size: 20px;
    font-weight: 600;
}

.contact-card p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.75;
}

.contact-handle {
    margin-top: auto;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    word-break: break-all;
}

/* ─── Footer ─── */
footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-top {
    margin-bottom: 40px;
}

.footer-tagline {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-cta {
    font-size: 16px;
    opacity: 0.75;
}

.footer-cta a {
    color: var(--accent);
    font-weight: 600;
}

.footer-cta a:hover { opacity: 0.8; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    font-weight: 500;
}

.footer-copy {
    font-size: 13px;
    opacity: 0.5;
}

/* ─── Case Study Page ─── */
.case-container {
    max-width: 760px;
    padding: 0 20px;
}

.breadcrumb {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    font-size: 13px;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    opacity: 0.65;
}

.breadcrumb li[aria-current="page"] {
    opacity: 1;
    font-weight: 500;
}

.breadcrumb a {
    color: var(--text);
}

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

.breadcrumb-sep {
    opacity: 0.4;
}

.case-hero {
    padding: 56px 0 48px;
    border-top: 1px solid var(--border);
}

.case-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.case-hero h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.case-dek {
    font-size: 20px;
    line-height: 1.55;
    opacity: 0.75;
    margin-bottom: 20px;
}

.case-meta {
    font-size: 13px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 36px;
    opacity: 0.6;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.case-meta-author {
    font-weight: 600;
}

.case-meta-sep {
    opacity: 0.5;
}

.case-meta-date {
    font-weight: 400;
}

/* ─── Legal / policy pages ─── */
.legal-hero {
    padding: 56px 0 36px;
}

.legal-hero h1 {
    font-size: 40px;
    margin-bottom: 16px;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: baseline;
    font-size: 14px;
    opacity: 0.7;
    line-height: 1.5;
    margin: 0;
}

.legal-meta strong {
    font-weight: 600;
}

.legal-meta-sep {
    opacity: 0.4;
}

.legal-article {
    padding: 16px 0 80px;
}

.legal-callout {
    border-left: 2px solid var(--accent);
    background: #F0EFEB;
    padding: 20px 24px;
    margin: 28px 0 40px;
}

.legal-callout p {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
}

.legal-article h2 {
    margin-top: 56px;
}

.legal-article h2:first-of-type {
    margin-top: 32px;
}

@media (max-width: 768px) {
    .legal-hero h1 { font-size: 30px; }
    .legal-callout { padding: 16px 18px; }
    .legal-callout p { font-size: 16px; }
}

.case-keynum {
    display: inline-flex;
    flex-direction: column;
    border: 1px solid var(--accent);
    padding: 18px 24px;
    gap: 4px;
}

.case-keynum-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.3px;
}

.case-keynum-label {
    font-size: 13px;
    opacity: 0.75;
    letter-spacing: 0.2px;
}

.case-article {
    padding: 24px 0 80px;
}

.case-article p,
.case-article li {
    font-size: 18px;
    line-height: 1.7;
}

.case-article p {
    margin-bottom: 20px;
}

.case-article h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 64px 0 20px;
    line-height: 1.2;
}

.case-article h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 40px 0 12px;
    line-height: 1.3;
}

.case-article ul,
.case-article ol {
    margin: 0 0 24px 24px;
}

.case-article li {
    margin-bottom: 8px;
}

.case-article li::marker {
    color: var(--accent);
}

.case-article strong {
    font-weight: 600;
}

.case-article code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: #F0EFEB;
    padding: 2px 6px;
    border: 1px solid var(--border);
}

.case-figure {
    margin: 40px 0;
}

.case-figure-zoom {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    cursor: zoom-in;
    font: inherit;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.case-figure-zoom:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.case-figure-zoom img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--border);
    background: #F0EFEB;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.case-figure-zoom:hover img {
    transform: scale(1.01);
}

.case-figure-zoom::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: var(--bg);
    border: 1px solid var(--border);
    background-image:
        linear-gradient(currentColor, currentColor),
        linear-gradient(currentColor, currentColor),
        linear-gradient(currentColor, currentColor),
        linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-size: 12px 1px, 1px 12px, 12px 1px, 1px 12px;
    background-position: center 11px, 11px center, center calc(100% - 11px), calc(100% - 11px) center;
    color: var(--text);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.case-figure-zoom:hover::after,
.case-figure-zoom:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback for old img-only figures */
.case-figure > img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    background: #F0EFEB;
}

.case-figure-caption {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.6;
    margin-top: 12px;
    text-align: center;
}

/* ─── Lightbox ─── */
.lightbox[hidden] { display: none; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 64px 72px;
    animation: lightbox-fade 0.18s ease-out;
}

@keyframes lightbox-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 14, 12, 0.92);
}

.lightbox-stage {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    pointer-events: none;
}

.lightbox-img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 240px);
    width: auto;
    height: auto;
    object-fit: contain;
    background: #F0EFEB;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: auto;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
    transform-origin: center center;
    animation: lightbox-fade-in 0.22s ease-out;
}

.lightbox-img.is-zoomed {
    cursor: grab;
}

.lightbox-img.is-dragging {
    cursor: grabbing;
}

@keyframes lightbox-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    max-width: 720px;
    pointer-events: auto;
    margin: 0;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    letter-spacing: 0.5px;
    margin: 0;
    pointer-events: auto;
}

.lightbox-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    pointer-events: auto;
}

.lightbox-toolbar {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lightbox-zoom-btn {
    background: transparent;
    color: #FFFFFF;
    border: 0;
    padding: 0 16px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    height: 36px;
    min-width: 44px;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, opacity 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lightbox-zoom-btn + .lightbox-zoom-btn {
    border-left: 1px solid rgba(255, 255, 255, 0.32);
}

.lightbox-zoom-btn:hover:not(:disabled) {
    background: var(--accent);
}

.lightbox-zoom-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    z-index: 1;
    position: relative;
}

.lightbox-zoom-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.lightbox-zoom-reset {
    min-width: 64px;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.3px;
}

.lightbox-btn {
    position: absolute;
    z-index: 2;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
    font-family: var(--font);
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

.lightbox-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.lightbox-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.lightbox-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
}

.lightbox-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 26px;
    font-weight: 300;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 64px;
    font-size: 32px;
    font-weight: 300;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%) scale(1.04);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox.is-single .lightbox-prev,
.lightbox.is-single .lightbox-next,
.lightbox.is-single .lightbox-counter {
    display: none;
}

@media (max-width: 768px) {
    .lightbox {
        padding: 48px 16px 80px;
    }
    .lightbox-img {
        max-height: calc(100vh - 280px);
    }
    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }
    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 16px;
        transform: none;
        width: 44px;
        height: 44px;
        font-size: 26px;
    }
    .lightbox-prev:hover,
    .lightbox-next:hover {
        transform: scale(1.04);
    }
    .lightbox-prev { left: 16px; }
    .lightbox-next { right: 16px; }
    .lightbox-caption {
        font-size: 13px;
    }
    .lightbox-controls {
        flex-direction: column;
        gap: 6px;
        align-items: center;
    }
    .lightbox-zoom-btn {
        height: 40px;
        min-width: 48px;
        font-size: 18px;
    }
    .lightbox-zoom-reset {
        min-width: 60px;
        font-size: 12px;
    }
    .lightbox-counter {
        font-size: 11px;
    }
}

/* Body scroll lock when lightbox open */
body.lightbox-open {
    overflow: hidden;
}

.case-table-wrap {
    margin: 24px 0 28px;
    overflow-x: auto;
}

.case-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    border: 1px solid var(--border);
}

.case-table th,
.case-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.case-table th:last-child,
.case-table td:last-child {
    border-right: none;
}

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

.case-table th {
    font-weight: 600;
    background: #F0EFEB;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.case-cta-section {
    border-top: 1px solid var(--border);
    padding: 80px 0 100px;
}

.case-cta-card {
    border: 1px solid var(--border);
    padding: 48px;
    max-width: 760px;
    margin: 0 auto;
}

.case-cta-card h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.case-cta-card p {
    font-size: 17px;
    line-height: 1.65;
    opacity: 0.75;
    margin-bottom: 28px;
    max-width: 600px;
}

/* Tablet / phablet for case study */
@media (max-width: 768px) {
    .case-container { padding: 0 24px; }
    .case-hero { padding: 40px 0 32px; }
    .case-hero h1 { font-size: 32px; letter-spacing: -0.5px; }
    .case-dek { font-size: 17px; margin-bottom: 28px; }
    .case-keynum { padding: 14px 18px; }
    .case-keynum-value { font-size: 18px; }
    .case-article { padding: 16px 0 56px; }
    .case-article p, .case-article li { font-size: 17px; }
    .case-article h2 { font-size: 26px; margin: 48px 0 16px; }
    .case-article h3 { font-size: 20px; margin: 32px 0 10px; }
    .case-cta-section { padding: 56px 0 72px; }
    .case-cta-card { padding: 32px 24px; }
    .case-cta-card h2 { font-size: 24px; }
    .case-table { font-size: 14px; }
    .case-table th, .case-table td { padding: 10px 12px; }
}

/* ─── Responsive ─── */

/* Tablet */
@media (max-width: 1024px) {
    .hero .container { gap: 48px; }
    .hero-stats { max-width: 320px; padding: 4px 20px; }
    .about-grid { grid-template-columns: 220px 1fr; gap: 40px; }
    .talk-body { padding: 36px 28px; }
}

/* Phablet */
@media (max-width: 768px) {
    .container { padding: 0 24px; }

    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .mobile-nav { padding: 0 24px 24px; }

    section { padding: 72px 0; }
    section h2 { font-size: 30px; }

    .hero { padding: 80px 0 72px; }
    .hero .container { grid-template-columns: 1fr; gap: 44px; }
    .hero-sub { font-size: 17px; }

    .hero-stats {
        max-width: none;
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 24px;
        padding: 0 20px;
    }

    .hero-stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px 0;
    }

    .hero-stat:nth-child(2) { border-top: none; }
    .hero-stat-label { text-align: left; }

    .talk { grid-template-columns: 1fr; }
    .talk-body { padding: 32px 24px; }
    .talk-gallery { grid-template-columns: 1fr; }
    .talk-gallery img { height: 300px; }

    .contact-card-wide { flex-direction: column; align-items: flex-start; }
    .contact-card-wide .contact-handle { margin-left: 0; }

    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-photo-wrap { max-width: 200px; }

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

    .email-signup { padding: 32px 24px; }

    .signup-form { flex-direction: column; }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

/* Mobile */
@media (max-width: 375px) {
    .hero h1 { font-size: 38px; letter-spacing: -1.5px; }
    section h2 { font-size: 28px; letter-spacing: -0.5px; }
    .service-card { padding: 24px 20px; }
}
