
@font-face {
    font-family: 'Johnyvino Display';
    src: url('../assets/fonts/JohnyvinoDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Johnyvino Text';
    src: url('../assets/fonts/JohnyvinoText-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Johnyvino Text';
    src: url('../assets/fonts/JohnyvinoText-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Johnyvino Mono';
    src: url('../assets/fonts/JohnyvinoMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --canvas: #09090B;
    --surface-soft: #0d0d0d;
    --surface-card: rgba(255, 255, 255, 0.05);
    --surface-elevated: rgba(255, 255, 255, 0.08);
    --hairline: rgba(255, 255, 255, 0.12);
    --hairline-strong: rgba(255, 255, 255, 0.18);
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --glass-active: rgba(255, 255, 255, 0.1);
    --on-dark: #ffffff;
    --body: #cccccc;
    --body-strong: #e6e6e6;
    --muted: #999999;
    --muted-soft: #666666;
    --link: #c3d9f3;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --overlay-light: rgba(0, 0, 0, 0.4);
    --overlay-medium: rgba(0, 0, 0, 0.6);
    --overlay-heavy: rgba(0, 0, 0, 0.8);
    --error: #ff4444;
    --surface-light: #f0f0f0;

    /* Fonts */
    --font-display: 'Johnyvino Display', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Johnyvino Text', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    --font-mono: 'Johnyvino Mono', ui-monospace, 'SF Mono', monospace;

    /* Font sizes */
    --text-xs: 11px;
    --text-sm: 12px;
    --text-base: 14px;
    --text-md: 17px;
    --text-lg: 24px;
    --text-xl: 36px;
    --text-display: 48px;
    --text-hero: 120px;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-xxl: 64px;
    --space-section: 120px;

    /* Layout */
    --max-width: 1280px;
    --page-gutter: 48px;
    --content-width: calc(var(--max-width) - var(--page-gutter) * 2);
    --card-portrait-width: 209px;

    /* Radius */
    --radius-xs: 12px;
    --radius-sm: 20px;
    --radius-md: 28px;
    --radius-lg: 36px;
    --radius-xl: 44px;
    --radius-pill: 9999px;

    /* Z-index */
    --z-base: 0;
    --z-above: 1;
    --z-content: 2;
    --z-overlay: 3;
    --z-header: 10;
    --z-nav: 100;
    --z-gate: 9999;
}

.project-card-visual,
.talk-card-visual,
.testimonial,
.human-card-visual,
.header-dropdown,
.video-player,
.btn-glass {
    mask-image: radial-gradient(white, black);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    color: var(--on-dark);
    background: var(--canvas);
    overflow-x: hidden;
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
}

/* TYPOGRAPHY */

.display-xl {
    font-family: var(--font-body);
    font-size: 180px;
    font-weight: 400;
    line-height: 1.0;
    letter-spacing: -1.5px;
    color: var(--on-dark);
}

.display-lg {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--on-dark);
}

.display-sm {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--on-dark);
}

.caption {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
}

.body-text {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--on-dark);
}

.body-strong {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--on-dark);
}

.body-text em {
    font-style: italic;
}

/* ANIMATIONS */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* VIEW TRANSITIONS */

::view-transition-old(root) {
    animation: none;
    z-index: 1;
}

::view-transition-new(root) {
    animation: none;
    z-index: 2;
    mix-blend-mode: normal;
}

.mobile-only {
    display: none;
}

img, video, .project-card-visual, .talk-card-visual, .fullbleed-video {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

video::-webkit-media-controls,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-enclosure {
    display: none !important;
}

video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none !important;
}


/* NAVIGATION - HEADER */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 var(--space-md);
    background: transparent;
    color: var(--on-dark);
    overflow: visible;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.header-menu-btn {
    position: relative;
    z-index: var(--z-header);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: none;
    border: none;
    color: var(--on-dark);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    padding: var(--space-xs) var(--space-md);
    border-radius: 9999px;
    transition: background 0.2s ease;
}

.header-menu-btn:hover {
    background: var(--glass-border);
}

.header-menu-btn:focus {
    outline: none;
}

.header-menu-btn:focus-visible,
.theme-toggle:focus-visible,
.btn-glass:focus-visible,
.btn-icon:focus-visible,
.email-display:focus-visible,
.header-dropdown-item:focus-visible {
    outline: 2px solid var(--link, #4a9eff);
    outline-offset: 2px;
}

.skip-nav {
    position: absolute;
    top: -100px;
    left: var(--space-md);
    z-index: 10000;
    padding: var(--space-sm) var(--space-md);
    background: var(--surface-elevated, #000);
    color: var(--on-dark, #fff);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    text-decoration: none;
    border-radius: var(--radius-xs);
    transition: top 0.2s ease;
}

.skip-nav:focus {
    top: var(--space-md);
    outline: 2px solid var(--link, #4a9eff);
    outline-offset: 2px;
}

.header-logo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--on-dark);
    text-decoration: none;
}

.theme-toggle {
    position: relative;
    z-index: var(--z-header);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: var(--on-dark);
    cursor: pointer;
    overflow: visible;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
    opacity: 0.7;
}

.theme-toggle .icon-moon {
    display: none;
}

body.light-mode .theme-toggle .icon-sun {
    display: none;
}

body.light-mode .theme-toggle .icon-moon {
    display: block;
}

body.light-mode .theme-toggle {
    color: #000;
}

body.light-mode .theme-toggle:hover {
    opacity: 0.7;
}

.toggle-tooltip {
    position: absolute;
    top: calc(100% + var(--space-sm));
    right: 50%;
    transform: translateX(50%) translateY(-4px);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.05em;
    color: var(--on-dark);
    background: var(--hairline);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    animation: tooltip-appear 0.4s ease 2s forwards, tooltip-pulse 2s ease-in-out 2.4s infinite;
}

.toggle-tooltip.hidden {
    display: none;
}

body.light-mode .toggle-tooltip {
    color: #000;
    background: rgba(0, 0, 0, 0.08);
}

@keyframes tooltip-appear {
    to { opacity: 1; transform: translateX(50%) translateY(0); }
}

@keyframes tooltip-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.header-dropdown {
    position: absolute;
    top: 100%;
    left: var(--space-md);
    min-width: 220px;
    background: rgba(20, 20, 20, 0.92);
    backdrop-filter: saturate(180%) blur(40px);
    -webkit-backdrop-filter: saturate(180%) blur(40px);
    border: 1px solid var(--glass-active);
    border-radius: 28px;
    padding: var(--space-sm);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.header-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.header-dropdown-item {
    display: block;
    padding: var(--space-sm) var(--space-md);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease;
}

.header-dropdown-item:hover {
    background: var(--glass-hover);
    color: var(--on-dark);
}

/* SECTION HEADER (shared) */

.section-header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--page-gutter);
    margin-bottom: 80px;
}

.section-header .caption {
    margin-bottom: var(--space-sm);
}

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

.section-body {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--body-strong);
    max-width: 640px;
    text-wrap: pretty;
}

.section-body a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.2);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: text-decoration-color 0.2s ease;
}

.section-body a:hover {
    text-decoration-color: rgba(255, 255, 255, 0.5);
}

/* BUTTONS */

.btn-glass {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--on-dark);
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 9999px;
    padding: 16px 36px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.btn-glass:hover {
    background: var(--glass-hover);
    border-color: var(--hairline-strong);
}

.btn-icon {
    width: 64px;
    height: 64px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-icon:hover {
    background: var(--glass-hover);
}

.btn-icon--sm {
    width: 44px;
    height: 44px;
}

.btn-icon svg {
    margin-left: 2px;
}

/* CARD BASE STYLES */

.project-card {
    width: 900px;
    flex-shrink: 0;
}

.project-card--wide {
    width: 900px;
}

.project-card--portrait {
    width: 240px;
}

.project-card--portrait .project-card-visual {
    width: 100%;
}

.project-card-visual {
    display: block;
    width: 100%;
    height: 520px;
    overflow: hidden;
    margin-bottom: var(--space-lg);
    position: relative;
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    text-decoration: none;
}

.project-card-visual--dark {
    background: var(--surface-soft);
}

.project-card-visual--surface {
    background: var(--surface-elevated);
}

.project-card-visual img,
.project-card-visual video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.project-card-info .display-sm {
    font-family: var(--font-body);
    font-size: var(--text-md);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
    color: var(--on-dark);
    margin-bottom: 0;
    display: inline;
}

.project-card-info .card-body {
    display: inline;
}

.card-body {
    font-family: var(--font-body);
    font-size: var(--text-md);
    font-weight: 400;
    line-height: 1.5;
    color: var(--body-strong);
}



/* Hero */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px var(--page-gutter);
    position: relative;
    overflow: hidden;
}

.gestalt-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-base);
    opacity: 0.55;
    -webkit-mask-image: linear-gradient(to bottom, white 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, white 50%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: var(--z-above);
    text-align: center;
    padding-inline: var(--space-lg);
    width: 100%;
}

.hero-content .caption {
    margin-bottom: var(--space-lg);
}

.hero-content .display-xl {
    color: transparent;
    user-select: none;
    position: relative;
}

.hero-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    max-width: 100%;
    height: auto;
}

/* Origin */

.origin {
    position: relative;
    padding: 0;
}

.origin-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 640px;
    margin: 0 auto;
    padding: var(--space-section) var(--page-gutter);
    text-align: center;
}

.origin-content .body-text {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: normal;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.origin-content .body-text:first-child {
    margin-top: 0;
}

.origin-content .body-text:last-child {
    margin-bottom: 0;
}

.signature {
    margin-top: var(--space-xxl);
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.signature-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.signature-svg .sig-stroke {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.signature.signing .sig-stroke {
    animation: drawSignature 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes drawSignature {
    to {
        stroke-dashoffset: 0;
    }
}

.signature-svg .sig-dot {
    opacity: 0;
}

.signature.signing .sig-dot {
    animation: dotAppear 0.15s ease forwards;
    animation-delay: 2.1s;
}

@keyframes dotAppear {
    to {
        opacity: 1;
    }
}

/* Scroll cards */

.apple-work,
.past-work {
    padding: var(--space-section) 0;
}

.apple-work .section-header,
.past-work .section-header {
    position: relative;
}

.scroll-nav {
    position: absolute;
    right: var(--page-gutter);
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
}

.scroll-nav.is-hidden {
    display: none;
}

.scroll-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    color: var(--on-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
    padding: 0;
}

.scroll-nav-btn:hover:not(:disabled) {
    background: var(--surface-elevated);
    border-color: var(--hairline-strong);
    transform: scale(1.05);
}

.scroll-nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.scroll-nav-progress {
    width: 80px;
    height: 2px;
    background: var(--hairline);
    border-radius: 2px;
    overflow: hidden;
}

.scroll-nav-progress-fill {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--on-dark);
    transform: scaleX(0.02);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

@media (max-width: 734px) {
    .scroll-nav {
        display: none;
    }
}

.past-work .project-card {
    width: 372px;
}

.past-work .project-card--wide {
    width: 776px;
}

.past-work .project-card-visual {
    height: 450px;
}

.scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    contain: layout;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-container:active {
    cursor: grabbing;
}

.scroll-track {
    display: flex;
    gap: var(--space-xl);
    padding: 0 var(--page-gutter);
    padding-left: max(var(--page-gutter), calc((100vw - var(--max-width)) / 2 + var(--page-gutter)));
    padding-right: max(var(--page-gutter), calc((100vw - var(--max-width)) / 2 + var(--page-gutter)));
    width: max-content;
}

.past-work .project-card--portrait {
    width: var(--card-portrait-width);
}

.past-work .project-card--portrait .project-card-visual {
    width: 100%;
    margin-bottom: var(--space-sm);
}

.past-work .project-card--portrait .project-card-info {
    max-width: var(--card-portrait-width);
}

.past-work .project-card--portrait .card-body {
    max-width: var(--card-portrait-width);
}

/* Interaction design */

.interaction-design {
    padding: var(--space-section) var(--page-gutter);
    max-width: var(--max-width);
    margin: 0 auto;
}

.interaction-design .section-header {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
}

.fullbleed-video-wrap {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
    padding: 2px;
    border-radius: calc(var(--radius-xl) + 2px);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
    transform-style: preserve-3d;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.45) 0%,
        rgba(255, 255, 255, 0.12) 20%,
        rgba(255, 255, 255, 0.03) 40%,
        rgba(255, 255, 255, 0.0) 50%,
        rgba(255, 255, 255, 0.04) 65%,
        rgba(255, 255, 255, 0.2) 85%,
        rgba(255, 255, 255, 0.35) 100%
    );
    box-shadow:
        0 30px 100px -20px rgba(0, 0, 0, 0.7),
        0 60px 140px -30px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: translateY(-12px);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.fullbleed-video-wrap::before {
    content: '';
    position: absolute;
    inset: -40px -20px;
    border-radius: 80px;
    background: radial-gradient(ellipse at 50% 120%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    filter: blur(30px);
    pointer-events: none;
    z-index: -1;
}

.fullbleed-video-wrap::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    border-radius: 1px;
    pointer-events: none;
    z-index: var(--z-overlay);
}

.fullbleed-video-wrap:hover {
    transform: translateY(-18px);
    box-shadow:
        0 40px 120px -20px rgba(0, 0, 0, 0.8),
        0 80px 160px -40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.fullbleed-video {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    background: var(--surface-soft);
}

.fullbleed-video::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 30%);
    pointer-events: none;
    z-index: var(--z-content);
}

.fullbleed-video::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    pointer-events: none;
    z-index: var(--z-above);
}

.video-player {
    width: 100%;
    display: block;
    margin-bottom: -16px;
    background: var(--surface-card);
}

.video-cta {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-content);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.video-cta:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Talks */

.talks {
    padding: var(--space-section) var(--page-gutter);
    max-width: var(--max-width);
    margin: 0 auto;
}

.talks .section-header {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
}

.talks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--space-xl);
}

.talk-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.talk-card.is-tilting {
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.talk-card.is-tilting,
.human-card-visual.is-tilting,
.fullbleed-video-wrap.is-tilting {
    will-change: transform;
}

.talk-card-visual {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    margin-bottom: 0;
    text-decoration: none;
    color: inherit;
}

.talk-card-visual--dark {
    background: var(--surface-soft);
}

.talk-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.talk-card-visual .btn-icon--sm {
    position: relative;
    z-index: var(--z-above);
}

.talk-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    padding-top: var(--space-xl);
    background: linear-gradient(to top, var(--overlay-medium) 0%, transparent 100%);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: var(--z-content);
    -webkit-mask-image: linear-gradient(to top, black 60%, transparent 100%);
    mask-image: linear-gradient(to top, black 60%, transparent 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.talk-card-info .display-sm {
    font-family: var(--font-body);
    font-size: var(--text-md);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
    margin-bottom: 0;
    color: #fff;
}

.talk-card-info .caption {
    font-size: var(--text-md);
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    color: rgba(255, 255, 255, 0.7);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.talk-featured-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.slideshow-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.slideshow-img.active {
    opacity: 1;
}

.project-card-visual--outlook {
    aspect-ratio: 750/1080;
}

.project-card-visual--meae {
    aspect-ratio: 500/1080;
}

.card-play-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: var(--z-content);
}

.slideshow-bg-dark {
    background: var(--surface-soft);
}

.slideshow-bg-light {
    background: #ffffff;
}

.project-card-visual .img-inset {
    inset: auto;
    top: 40px;
    left: 40px;
    right: 40px;
    bottom: 40px;
    width: calc(100% - 80px);
    height: calc(100% - 80px);
    object-fit: contain;
}

.project-card-visual .img-ratings {
    inset: auto;
    top: 0;
    left: 40px;
    right: 40px;
    bottom: 40px;
    width: calc(100% - 80px);
    height: calc(100% - 40px);
    object-fit: contain;
}

.talk-card--featured {
    grid-column: 1;
    grid-row: span 2;
}

.talk-card--featured .talk-card-visual {
    aspect-ratio: 9/16;
    height: auto;
    min-height: unset;
}

.talk-card--featured .talk-card-info .caption {
    color: rgba(255, 255, 255, 0.7);
}

/* Reset button styles for clickable talk card */
button.talk-card-visual {
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    padding: 0;
    outline-offset: 4px;
}

/* Gallery Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--z-gate);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: var(--space-md);
}

.gallery-lightbox.is-open {
    display: flex;
    animation: galleryFadeIn 0.2s ease forwards;
}

.gallery-lightbox-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex: 1 1 auto;
    min-height: 0;
    max-width: calc(100vw - 160px);
}

.gallery-lightbox-img {
    max-width: 100%;
    max-height: calc(100vh - 220px);
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.6);
    animation: galleryImgIn 0.25s ease forwards;
}

.gallery-lightbox-counter {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
    z-index: 2;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: scale(1.05);
}

.gallery-lightbox-close {
    top: var(--space-md);
    right: var(--space-md);
}

.gallery-lightbox-nav {
    top: calc(50% - 110px);
}

.gallery-lightbox-prev { left: var(--space-md); }
.gallery-lightbox-next { right: var(--space-md); }

.gallery-lightbox-thumbs {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
    padding: var(--space-sm) var(--space-md);
    margin-top: var(--space-sm);
    max-width: 100vw;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.gallery-thumb {
    flex: 0 0 auto;
    height: 54px;
    width: auto;
    min-width: 40px;
    border-radius: var(--radius-xs, 12px);
    overflow: hidden;
    padding: 0;
    background: var(--surface-card);
    border: 2px solid transparent;
    opacity: 0.55;
    cursor: pointer;
    transition: opacity 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    scroll-snap-align: center;
    position: relative;
}

.gallery-thumb img {
    height: 100%;
    width: auto;
    object-fit: cover;
    display: block;
}

.gallery-thumb:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.gallery-thumb.is-active {
    opacity: 1;
    border-color: #fff;
}

body.gallery-open {
    overflow: hidden;
}

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

@keyframes galleryImgIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 734px) {
    .gallery-lightbox {
        padding: var(--space-sm);
    }
    .gallery-lightbox-figure {
        max-width: 100vw;
    }
    .gallery-lightbox-img {
        max-height: calc(100vh - 200px);
    }
    .gallery-lightbox-nav {
        width: 38px;
        height: 38px;
    }
    .gallery-lightbox-prev { left: var(--space-xs); }
    .gallery-lightbox-next { right: var(--space-xs); }
    .gallery-thumb {
        height: 42px;
        min-width: 32px;
    }
}

/* Testimonials */

.kind-words {
    padding: var(--space-section) var(--page-gutter);
    max-width: var(--max-width);
    margin: 0 auto;
}

.kind-words .section-header {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: var(--space-xl);
}

.testimonial-link {
    display: contents;
    color: inherit;
    text-decoration: none;
}

.testimonial {
    margin: 0;
    padding: var(--space-xl);
    border-top: none;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    min-width: 0;
    overflow-wrap: anywhere;
}

.testimonial .body-text {
    margin-bottom: var(--space-lg);
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.testimonial footer cite {
    font-style: normal;
    display: block;
    overflow-wrap: anywhere;
}

/* About */

.the-human {
    padding: var(--space-section) var(--page-gutter);
    max-width: var(--max-width);
    margin: 0 auto;
}

.the-human .section-header {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
}

.human-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.human-card {
    display: block;
    text-decoration: none;
    color: var(--on-dark);
}

.human-card-visual {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    margin-bottom: var(--space-md);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.human-card-visual.is-tilting {
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
}

.human-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.human-card-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Contact */

.the-close {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-section) var(--page-gutter);
    position: relative;
}

.close-content {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.close-content .caption {
    margin-bottom: var(--space-md);
}

.email-display {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--on-dark);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-lg) var(--space-xl);
    display: block;
    margin: 0 auto var(--space-md);
    transition: opacity 0.3s ease;
}

.email-display:hover {
    opacity: 0.7;
}

.copy-status.copied {
    color: var(--on-dark);
}

.close-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0 var(--page-gutter) var(--space-xl);
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

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

.footer-links a:hover {
    color: var(--on-dark);
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.05em;
    color: var(--muted-soft);
}

/* 3D tilt card overlays */

.fullbleed-video-wrap.is-tilting {
    box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.6);
}


/* Desktop+ */

@media (min-width: 1024px) {
    .origin-content .body-text {
        font-size: 36px;
        line-height: 1.1;
    }

    .section-body {
        font-size: 36px;
        line-height: 1.1;
    }
}

@media (min-width: 768px) {
    .site-header {
        padding: 0 var(--page-gutter);
    }

    .header-logo {
        font-size: 18px;
        letter-spacing: 0.1em;
    }

    .header-dropdown {
        left: 48px;
    }
}

/* Tablet */

@media (max-width: 1024px) {
    .display-xl {
        font-size: 96px;
        letter-spacing: -1px;
    }

    .display-lg {
        font-size: 36px;
        letter-spacing: 2px;
    }

    .email-display {
        font-size: 36px;
    }

    .talks-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        align-items: start;
    }

    .talk-card--featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .talk-card--featured .talk-card-visual {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .talk-card-visual {
        aspect-ratio: 4 / 3;
        height: auto;
    }

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

/* Tablet mid — scroll-nav arrows drop below section text and left-align
   once the viewport is too narrow to keep them side-by-side with the body copy. */

@media (max-width: 960px) {
    .apple-work .scroll-nav,
    .past-work .scroll-nav {
        position: static;
        margin-top: var(--space-md);
        justify-content: flex-start;
    }
}

/* Mobile */

@media (max-width: 734px) {
    :root {
        --space-section: 80px;
        --page-gutter: 24px;
    }

    .hero {
        padding: var(--space-section) var(--page-gutter);
    }

    .display-xl {
        font-size: 60px;
        letter-spacing: -0.5px;
    }

    .hero-content .display-xl {
        color: var(--on-dark);
    }

    .hero-particles,
    .gestalt-canvas {
        display: none;
    }

    .display-lg {
        font-size: 28px;
        letter-spacing: 1.5px;
    }

    .display-sm {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .scroll-track {
        gap: var(--space-md);
    }

    .apple-work,
    .past-work {
        max-width: 100%;
        overflow-x: clip;
    }

    .apple-work .scroll-container,
    .past-work .scroll-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .apple-work .scroll-container::-webkit-scrollbar,
    .past-work .scroll-container::-webkit-scrollbar {
        display: none;
    }

    .apple-work .scroll-track,
    .past-work .scroll-track {
        display: flex;
        gap: var(--space-xl);
        width: max-content;
        padding: 0 var(--page-gutter);
    }

    .apple-work .project-card,
    .apple-work .project-card--wide,
    .apple-work .project-card--portrait,
    .past-work .project-card,
    .past-work .project-card--wide,
    .past-work .project-card--portrait {
        width: 75vw;
        flex-shrink: 0;
    }

    .apple-work .project-card-visual,
    .past-work .project-card-visual {
        height: 480px;
        margin-bottom: var(--space-lg);
        border: none;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .project-card-visual--outlook,
    .project-card-visual--meae {
        aspect-ratio: unset;
        width: 100%;
        height: 480px;
    }

    .apple-work .project-card-info,
    .past-work .project-card-info,
    .past-work .project-card--portrait .project-card-info {
        width: 100%;
        max-width: 100%;
        display: block;
    }

    .past-work .project-card--portrait .card-body {
        max-width: 100%;
    }

    .project-card-visual .img-ratings {
        inset: 0;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .project-card-visual .img-inset {
        inset: 0;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .apple-work .card-body,
    .past-work .card-body {
        display: inline;
    }

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

    .talk-card--featured {
        grid-column: span 2;
    }

    .talk-card--featured .talk-card-visual {
        aspect-ratio: 16/9;
        height: auto;
    }

    .talk-card-visual {
        aspect-ratio: 3/4;
        height: auto;
    }

    .talk-card--featured .talk-card-info .display-sm {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .talk-card-info .caption {
        display: none;
    }

    .testimonials {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: var(--space-lg);
        padding: 0 var(--page-gutter) var(--space-md);
        scroll-snap-type: x mandatory;
        scroll-padding-left: var(--page-gutter);
        width: 100%;
        max-width: 100%;
        min-width: 0;
        contain: layout;
    }

    .testimonials::-webkit-scrollbar {
        display: none;
    }

    .kind-words {
        padding-left: 0;
        padding-right: 0;
    }

    .kind-words .section-header {
        padding: 0 var(--page-gutter);
    }

    .testimonial {
        width: 75vw;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .human-cards {
        grid-template-columns: 1fr;
    }

    .the-close {
        padding: var(--space-section) var(--page-gutter);
    }

    .email-display {
        font-size: var(--text-lg);
        letter-spacing: 2px;
        padding: var(--space-md) var(--space-lg);
    }

    .close-content .caption {
        font-size: var(--text-sm);
    }

    .footer-links {
        gap: var(--space-md);
    }

    .fullbleed-video-wrap {
        border-radius: calc(var(--radius-md) + 2px);
    }

    .fullbleed-video {
        border-radius: var(--radius-md);
    }

    .video-cta {
        font-size: var(--text-xs);
        letter-spacing: 1.5px;
        padding: 10px 20px;
        bottom: 20px;
    }

    .header-dropdown,
    .toggle-tooltip {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .header-dropdown {
        background: var(--canvas);
    }
}


body.light-mode .section-body a {
    text-decoration-color: rgba(0, 0, 0, 0.2);
}

body.light-mode .section-body a:hover {
    text-decoration-color: rgba(0, 0, 0, 0.5);
}

body.light-mode {
    --canvas: #F2F2F2;
    --surface-soft: #f5f5f5;
    --surface-card: rgba(0, 0, 0, 0.03);
    --surface-elevated: rgba(0, 0, 0, 0.05);
    --hairline: rgba(0, 0, 0, 0.1);
    --hairline-strong: rgba(0, 0, 0, 0.15);
    --glass: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-hover: rgba(0, 0, 0, 0.05);
    --glass-active: rgba(0, 0, 0, 0.08);
    --overlay-light: rgba(0, 0, 0, 0.15);
    --overlay-medium: rgba(0, 0, 0, 0.3);
    --overlay-heavy: rgba(0, 0, 0, 0.5);
    --on-dark: #000000;
    --body: #333333;
    --body-strong: #1a1a1a;
    --muted: #666666;
    --muted-soft: #999999;
    --link: #0066cc;
    background: #F2F2F2;
    color: #333333;
}

body.light-mode .site-header.scrolled {
    background: rgba(242, 242, 242, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

body.light-mode .header-logo {
    color: #000;
}

body.light-mode .header-menu-btn {
    color: #000;
}

body.light-mode .header-menu-btn svg path {
    stroke: #000;
}

body.light-mode .header-dropdown {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .header-dropdown-item {
    color: #333;
}

body.light-mode .header-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode img {
    filter: none;
}

body.light-mode .hero-bg img {
    filter: none;
}

body.light-mode .signature-svg {
    color: #000;
}

body.light-mode .gestalt-canvas {
    opacity: 0.85;
}

body.light-mode .fullbleed-video-wrap {
    background: linear-gradient(
        165deg,
        rgba(0, 0, 0, 0.12) 0%,
        rgba(0, 0, 0, 0.06) 20%,
        rgba(0, 0, 0, 0.02) 40%,
        rgba(0, 0, 0, 0.0) 50%,
        rgba(0, 0, 0, 0.03) 65%,
        rgba(0, 0, 0, 0.08) 85%,
        rgba(0, 0, 0, 0.12) 100%
    );
    box-shadow:
        0 30px 100px -20px rgba(0, 0, 0, 0.12),
        0 60px 140px -30px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.08);
}

body.light-mode .fullbleed-video-wrap::after {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

body.light-mode .fullbleed-video {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

body.light-mode .fullbleed-video::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 30%);
}

body.light-mode .fullbleed-video::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.05), transparent);
}

body.light-mode .video-cta {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #fff;
}

body.light-mode .video-cta:hover {
    background: rgba(0, 0, 0, 0.6);
}
