/* ===========================
   Hero Heading (Home view)
   =========================== */
.hero-heading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: auto;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

/* The container that holds the stacked cards */
.hero-cards-container {
    position: relative;
    width: min(1200px, calc(100vw - 280px));
    height: 60vh;
}

/* Individual card — absolutely positioned so they stack */
.hero-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 64px;
    box-sizing: border-box;
    transform-origin: center center;
    will-change: transform, opacity;
}

.hero-corner-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 7px 10px;
    border-radius: 999px;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
}

.hero-corner-badge--project {
    color: rgba(30, 64, 175, 0.75);
    background: rgba(77, 142, 255, 0.12);
    border: 1px solid rgba(77, 142, 255, 0.22);
    box-shadow: 0 6px 18px rgba(77, 142, 255, 0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-card--dark .hero-corner-badge--project {
    color: rgba(191, 219, 255, 0.88);
    background: rgba(77, 142, 255, 0.18);
    border-color: rgba(147, 197, 253, 0.22);
}

.hero-card h1 {
    font-family: 'Georgia', 'Times New Roman', 'Iowan Old Style', 'Palatino Linotype', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(20px, 2.4vw, 38px);
    line-height: 1.55;
    color: rgba(0, 0, 0, 0.85);
    text-align: left;
    max-width: 100%;
    letter-spacing: -0.01em;
}

/* ===========================
   Intro card (first card)
   =========================== */
.hero-card--intro {
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 48px 64px;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    flex: 1;
    justify-content: flex-start;
    padding-top: 20px;
}

.intro-avatar {
    width: 240px;
    height: 240px;
    object-fit: cover;
    image-rendering: auto;
    will-change: transform;
    transition: transform 0.15s ease-out;
    transform-style: preserve-3d;
}

.hero-card--intro h1 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-style: normal;
    text-align: left;
}

.intro-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

a.intro-badge {
    text-decoration: none;
    color: inherit;
}

.intro-badge {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: rgba(0, 0, 0, 0.55);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 8px 20px;
    border-radius: 100px;
    white-space: nowrap;
}

.intro-badge--copyable {
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.intro-badge--copyable:hover {
    border-color: rgba(0, 0, 0, 0.35);
    color: rgba(0, 0, 0, 0.75);
}

.intro-badge--copyable.copied {
    border-color: #22c55e;
    color: #16a34a;
}

.cursor-label {
    position: fixed;
    top: 0;
    left: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 5px 12px;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
    white-space: nowrap;
}

.cursor-label.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: rgba(0, 0, 0, 0.55);
    background: linear-gradient(to bottom, #ffffff, #f0f0f0);
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 12px 20px;
    border-radius: 8px;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.contact-btn:hover {
    color: rgba(0, 0, 0, 0.85);
    border-color: rgba(0, 0, 0, 0.35);
}

.contact-btn.copied {
    color: #16a34a;
    border-color: #bbf7d0;
    background: linear-gradient(to bottom, #f0fdf4, #dcfce7);
}

.contact-btn svg {
    flex-shrink: 0;
}

.cursor-label.hiding {
    opacity: 0;
    transform: translateY(-4px);
}

/* Icons between paragraphs (kept for future use) */
.hero-icon {
    display: block;
    width: clamp(32px, 4vw, 48px);
    height: clamp(32px, 4vw, 48px);
    color: #404040;
    margin: 8px 0 -40px;
    stroke-width: 4;
}

.hero-icon:nth-of-type(1) { color: #404040; }
.hero-icon:nth-of-type(2) { color: #8B5CF6; }
.hero-icon:nth-of-type(3) { color: #EF4444; }
.hero-icon:nth-of-type(4) { color: #22C55E; }
.hero-icon:nth-of-type(5) { color: #F97316; }
.hero-icon:nth-of-type(6) { color: #14B8A6; }

/* ===========================
   Section header cards (Work, Experience, Contact)
   =========================== */
.hero-card--section-header {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 48px 64px;
    gap: 16px;
}

.hero-card--section-header h1 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: clamp(28px, 3.5vw, 52px);
}

.hero-card--section-header p {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: clamp(16px, 1.6vw, 22px);
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

.hero-card--section-header-center {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-card--section-header-center h1 {
    text-align: center;
}

.hero-card--section-header-center p {
    text-align: center;
}

.section-header-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 24px;
}

.section-header-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.section-header-list li {
    display: flex;
}

.section-header-list .section-header-link {
    text-align: left;
}

.section-header-link {
    display: inline-flex;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: rgba(0, 0, 0, 0.55);
    background: linear-gradient(to bottom, #ffffff, #f0f0f0);
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 12px 20px;
    border-radius: 8px;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    appearance: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.section-header-link:hover {
    color: rgba(0, 0, 0, 0.85);
    border-color: rgba(0, 0, 0, 0.35);
}

/* Work project cards */
.hero-card[data-section="work"]:not(.hero-card--section-header) {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 48px 64px;
}

.hero-card[data-section="work"] h1 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: clamp(24px, 2.8vw, 42px);
    margin-bottom: 12px;
}

.hero-card[data-section="work"] p {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

/* ===========================
   Video card
   =========================== */
.hero-card--video {
    --card-bg: #F1F1F1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 48px 40px;
    overflow: hidden;
    background: var(--card-bg);
}

/* Video takes remaining space at top */
.card-video-crop {
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
    border-radius: 12px 12px 0 0;
    margin-bottom: 24px;
    background: var(--card-bg);
}

/* Fade out at bottom edge */
.card-video-crop::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--card-bg));
    pointer-events: none;
}

.card-video-inner {
    width: 100%;
    height: calc(100% + 60px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.card-video-inner video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Info sits just above badges */
.card-video-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    width: 100%;
}

.card-video-title-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.card-title-external {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-left: -4px;
    border-radius: 999px;
    color: rgba(0, 0, 0, 0.45);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.card-title-external--metrics {
    margin-left: auto;
    margin-right: 6px;
    width: 34px;
    height: 34px;
}

.card-title-external svg {
    width: 16px;
    height: 16px;
    display: block;
}

.card-title-external:hover {
    color: rgba(0, 0, 0, 0.75);
    background: rgba(0, 0, 0, 0.06);
}

.hero-card--dark .card-title-external {
    color: rgba(255, 255, 255, 0.55);
}

.hero-card--dark .card-title-external:hover {
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.08);
}

.title-badge {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    transform: translateY(-1px);
}

.card-video-info h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: clamp(18px, 1.6vw, 24px);
    margin: 0;
}

.hero-card--video .card-video-info p {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: clamp(14px, 1.2vw, 16px);
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.5);
    margin: 0;
    max-width: none;
}

/* Badges at bottom */
.card-video-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
}

.card-video-badges .intro-badge {
    background: transparent;
    border-color: rgba(0, 0, 0, 0.25);
}

/* ===========================
   Dark video card variant
   =========================== */
.hero-card--dark {
    --card-bg: #181818;
    background: #181818 !important;
}

.hero-card--dark .card-video-info h2 {
    color: #ffffff;
}

.hero-card--dark .card-video-info p {
    color: rgba(255, 255, 255, 0.6);
}

.hero-card--dark .title-badge {
    color: rgba(255, 255, 255, 0.6);
}

.hero-card--dark .card-video-badges .intro-badge {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ===========================
   Experience timeline card
   =========================== */
.hero-card--experience {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 48px 64px 0;
    overflow: hidden;
    background: #edf0f5;
}

.experience-header {
    margin-bottom: 28px;
}

.experience-header h1 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: clamp(28px, 3.5vw, 52px);
    margin: 0 0 8px 0;
}

.experience-header p {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: clamp(16px, 1.6vw, 22px);
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.5);
    margin: 0;
}

.experience-timeline {
    width: calc(100% + 128px);
    margin-left: -64px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #ffffff;
    padding: 24px 64px 48px;
    margin-top: auto;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10' viewBox='0 0 20 10'%3E%3Cpolygon points='0,10 10,0 20,10' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: 20px 10px;
    background-repeat: repeat-x;
}

.experience-row {
    display: flex;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.experience-row:last-child {
    border-bottom: none;
}

.experience-present {
    color: #2563eb;
    font-weight: 600;
}

.experience-row--current {
    background: #e8f0fe;
    margin: 0 -16px;
    padding: 9px 16px;
    border-radius: 8px;
    border-bottom-color: transparent;
}

.experience-company {
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 600;
    color: rgba(0, 0, 0, 0.85);
    white-space: nowrap;
    min-width: 0;
}

.experience-role {
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 400;
    color: rgba(0, 0, 0, 0.4);
    margin-left: 8px;
    white-space: nowrap;
}

.experience-role::before {
    content: '·';
    margin-right: 8px;
}

.experience-duration {
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 400;
    color: rgba(0, 0, 0, 0.35);
    margin-left: auto;
    padding-left: 16px;
    white-space: nowrap;
}

/* ===========================
   CRT Terminal card
   =========================== */
.hero-card--ai {
    background: #0a0a0a !important;
    flex-direction: column;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 20px;
    box-shadow:
        0 0 60px rgba(77, 142, 255, 0.07),
        0 0 120px rgba(77, 142, 255, 0.03),
        inset 0 0 80px rgba(0, 0, 0, 0.4);
}

.crt-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
}

/* Cursor-following flicker/glow on hover */
.crt-hover-flicker {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(
        circle 1500px at var(--flicker-x, 50%) var(--flicker-y, 50%),
        rgba(77, 142, 255, 0.07) 0%,
        rgba(77, 142, 255, 0.03) 30%,
        transparent 70%
    );
}

.hero-card--ai:hover .crt-hover-flicker {
    opacity: 1;
}

/* Phosphor glow behind text area */
.crt-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(77, 142, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}

/* Horizontal scanlines */
.crt-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.25) 2px,
        rgba(0, 0, 0, 0.25) 4px
    );
    pointer-events: none;
    z-index: 3;
}

/* Animated grain / noise */
.crt-noise {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    pointer-events: none;
    z-index: 2;
    animation: crtNoiseShift 0.3s steps(3) infinite;
}

@keyframes crtNoiseShift {
    0%   { transform: translate(0, 0); }
    33%  { transform: translate(-20px, -15px); }
    66%  { transform: translate(10px, 5px); }
    100% { transform: translate(-5px, 10px); }
}

/* Dark vignette around edges for CRT curvature feel */
.crt-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Top bezel with model label and power LED */
.crt-bezel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    border-bottom: 1px solid rgba(77, 142, 255, 0.08);
    position: relative;
    z-index: 4;
    flex-shrink: 0;
}

.crt-model {
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(77, 142, 255, 0.25);
}

.crt-power {
    display: flex;
    align-items: center;
}

.crt-power i {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4D8EFF;
    box-shadow: 0 0 6px #4D8EFF, 0 0 12px rgba(77, 142, 255, 0.4);
}

/* Body area */
.ai-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 80px;
    padding-left: 25%;
    padding-right: 15%;
    position: relative;
    z-index: 4;
}

.ai-mini-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(77, 142, 255, 0.35);
    text-shadow: 0 0 8px rgba(77, 142, 255, 0.25);
    margin-bottom: 14px;
}

.ai-body::before {
    display: none;
}

.hero-card--ai h1 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
    font-size: clamp(14px, 1.35vw, 19px) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    line-height: 1.85 !important;
    text-align: left !important;
    max-width: 520px;
    text-shadow: none;
    -webkit-font-smoothing: auto;
}

/* Block cursor */
.ai-cursor {
    display: inline-block;
    width: 0.55em;
    height: 1em;
    background: #4D8EFF;
    margin-left: 2px;
    vertical-align: text-bottom;
    border-radius: 0;
    animation: crtBlink 1s step-end infinite;
    box-shadow: 0 0 6px rgba(77, 142, 255, 0.4);
}

@keyframes crtBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Bottom status bar */
.crt-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 28px;
    border-top: 1px solid rgba(77, 142, 255, 0.06);
    position: relative;
    z-index: 4;
    flex-shrink: 0;
}

.crt-status span {
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: 11px;
    font-weight: 700;
    color: rgba(77, 142, 255, 0.2);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ===========================
   Mobile responsive
   =========================== */
@media (max-width: 768px) {

    /* --- Layout container --- */
    .hero-heading {
        padding-top: 0;
    }

    .hero-cards-container {
        width: calc(100vw - 32px);
        height: 100vh;
        max-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
    }

    /* --- Base card --- */
    .hero-card {
        height: 570px;
        min-height: 570px;
        max-height: 570px;
        padding: 32px 24px;
        border-radius: 20px;
        justify-content: center;
        align-self: center;
        top: auto;
        bottom: auto;
        margin: auto 0;
    }

    .hero-card h1 {
        font-size: clamp(18px, 5vw, 28px);
    }

    /* --- Intro card --- */
    .hero-card--intro {
        padding: 32px 24px;
    }

    .intro-content {
        gap: 20px;
        padding-top: 12px;
    }

    .intro-avatar {
        width: 120px;
        height: 120px;
    }

    .hero-card--intro h1 {
        font-size: clamp(20px, 5.5vw, 32px);
    }

    .intro-badge {
        font-size: 13px;
        padding: 6px 14px;
    }

    .contact-btn {
        font-size: 14px;
        padding: 10px 16px;
    }

    /* --- Section header cards --- */
    .hero-card--section-header {
        padding: 32px 24px;
    }

    .hero-card--section-header h1 {
        font-size: clamp(24px, 7vw, 36px);
    }

    .hero-card--section-header p {
        font-size: clamp(14px, 4vw, 18px);
    }

    .section-header-link {
        font-size: 14px;
        padding: 10px 16px;
    }

    /* --- Work / video cards --- */
    .hero-card[data-section="work"]:not(.hero-card--section-header) {
        padding: 32px 24px;
        justify-content: flex-end;
    }

    .hero-card--video {
        padding: 24px 16px;
    }

    .card-video-crop {
        flex: none;
        height: 68vw;
        min-height: 240px;
        margin-bottom: 16px;
        border-radius: 0 0 12px 12px;
    }

    .card-video-inner video {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    .hero-card--dark .card-video-inner video {
        object-fit: contain;
    }

    /* TeacherGPT card - slightly smaller video to see edges */
    .hero-card[data-section="work"]:nth-of-type(5) .card-video-inner video {
        width: 92%;
        height: 92%;
        margin: auto;
    }

    .card-video-crop::after {
        background: linear-gradient(to bottom, transparent, var(--card-bg));
    }

    .card-video-inner {
        align-items: flex-end;
    }

    .card-video-info {
        margin-bottom: 12px;
    }

    .card-video-info h2 {
        font-size: clamp(16px, 4.5vw, 20px);
    }

    .hero-card--video .card-video-info p {
        font-size: 14px;
    }

    .card-video-badges {
        gap: 8px;
    }

    .card-video-badges .intro-badge {
        font-size: 12px;
        padding: 5px 12px;
    }

    .title-badge {
        font-size: 12px;
    }

    .hero-corner-badge {
        top: 12px;
        left: 12px;
        font-size: 10px;
        padding: 5px 8px;
    }

    /* --- Experience card --- */
    .hero-card--experience {
        padding: 32px 24px 0;
    }

    .experience-header {
        margin-bottom: 20px;
    }

    .experience-header h1 {
        font-size: clamp(24px, 7vw, 36px);
    }

    .experience-header p {
        font-size: clamp(14px, 4vw, 18px);
    }

    .experience-timeline {
        width: calc(100% + 48px);
        margin-left: -24px;
        padding: 16px 24px 32px;
    }

    .experience-row {
        flex-wrap: wrap;
        padding: 8px 0;
    }

    .experience-row--current {
        margin: 0 -12px;
        padding: 8px 12px;
    }

    .experience-company {
        font-size: 13px;
    }

    .experience-role {
        font-size: 12px;
    }

    .experience-duration {
        font-size: 11px;
        padding-left: 12px;
    }

    /* --- CRT / AI card --- */
    .ai-body {
        padding: 24px;
    }

    .hero-card--ai h1 {
        font-size: clamp(13px, 3.8vw, 16px) !important;
        max-width: 100%;
    }

    .crt-bezel {
        padding: 10px 16px;
    }

    .crt-status {
        padding: 8px 16px;
    }

    /* --- Life card --- */
    .hero-card--life {
        padding: 32px 24px;
    }

    .life-emojis {
        gap: 12px;
    }

    .life-emojis span {
        font-size: clamp(32px, 8vw, 44px);
    }
}

/* ===========================
   Life / Personal card
   =========================== */
.hero-card--life {
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 48px 64px;
}

.hero-card--life h1 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-style: normal;
    text-align: left;
}

.life-emojis {
    display: flex;
    gap: 16px;
}

.life-emojis span {
    font-size: clamp(40px, 5vw, 56px);
    line-height: 1;
}
