/* ================================================
   INFO.CSS — Matches main site design language
   Uses: same tokens, reveal system, cuberto-badge,
   circle-btn, pill-btn, shine-effect, tilt, etc.
   ================================================ */

/* ─── Shared with main site ──────────────────── */
/* .cuberto-badge, .circle-btn, .pill-btn, .skill-tag,
   .shine-effect, [data-tilt], .reveal, .section-title,
   .section-subtitle  are ALL defined in style.css    */

/* ─── HERO — dark impact style ───────────────── */
.info-impact-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-bottom: 0;
}

/* reuse neon-aura from main site — no extra CSS needed, classes match */

.info-hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-serif);
    font-size: clamp(10rem, 22vw, 20rem);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.04);
    letter-spacing: -0.02em;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}

.info-hero-body {
    position: relative;
    z-index: 2;
    padding: 160px 3rem 100px;
    max-width: 700px;
    flex: 1;
}

.info-hero-meta { margin-bottom: 1.5rem; }

.info-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.info-hero-title em {
    color: var(--accent-secondary);
    font-style: italic;
}

.info-hero-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.info-hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-hero-visual {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 90%;
    display: flex;
    align-items: flex-end;
    z-index: 1;
    pointer-events: none;
}

.info-cutout-frame {
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.info-cutout-img {
    height: 100%;
    max-height: 85vh;
    object-fit: cover;
    object-position: top center;
    filter: drop-shadow(-20px 0 40px rgba(35,136,126,0.2));
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* ─── IDENTITY STRIP ─────────────────────────── */
.identity-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
}

.id-block {
    flex: 1;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: var(--card-bg);
    transition: background 0.3s ease;
}

.id-block:hover { background: rgba(35,136,126,0.04); }

.id-divider {
    width: 1px;
    background: var(--glass-border);
    flex-shrink: 0;
}

.id-block-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-secondary);
    opacity: 0.7;
}

.id-block-val {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.id-block-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.id-available {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #22c55e !important;
}

/* .status-dot-matte is defined in style.css (used in the ID card there) */

/* ─── NUMBERS STRIP ──────────────────────────── */
.info-numbers-section {
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 2rem 0;
    background: var(--bg-secondary);
}

.info-numbers-row {
    display: flex;
    align-items: stretch;
}

.info-num-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem;
    gap: 0.5rem;
    text-align: center;
    transition: background 0.3s ease;
}

.info-num-item:hover { background: rgba(35,136,126,0.04); }

.info-num-val {
    font-family: var(--font-sans);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.info-num-val .counter-val { display: inline; }

.info-num-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.info-num-divider {
    width: 1px;
    background: var(--glass-border);
    flex-shrink: 0;
    margin: 1.5rem 0;
}

/* ─── STORY — reuses cb-feature-items from style.css ── */
/* cb-feature-item, cb-feature-item-fill, cb-feature-item-head,
   cb-feature-item-num, cb-feature-item-title, cb-feature-item-accordion,
   cb-feature-item-content, cb-feature-item-text  — ALL from style.css */

/* minor override: remove the image bg since these are text-only milestones */
.info-milestone-item .cb-feature-item-bg { display: none; }

/* ─── PHILOSOPHY ─────────────────────────────── */
.info-philosophy-section {
    padding: 120px 0;
   
    overflow: hidden;
}

.info-philosophy-lines {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.phil-line {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 6vw, 5.5rem);
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.2rem 0;
    margin: 0;
    opacity: 0.15;
    transform: translateX(-30px);
    transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}

.phil-line[data-stagger="1"] { transition-delay: 0.15s; }
.phil-line[data-stagger="2"] { transition-delay: 0.3s; }

.phil-line.reveal.active {
    opacity: 1;
    transform: translateX(0);
}

.phil-line em {
    font-style: italic;
    color: var(--accent-secondary);
}

/* ─── SKILLS ECOSYSTEM ───────────────────────── */
.skills-ecosystem {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.sk-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.75rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    cursor: pointer;
    background: var(--card-bg);
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
    outline: none;
}

.sk-node:hover, .sk-node:focus-visible {
    border-color: var(--accent);
    background: rgba(35,136,126,0.06);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.sk-icon {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-secondary);
    font-family: monospace;
    line-height: 1;
}

.sk-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    letter-spacing: 0.04em;
}

.sk-tooltip {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 360px;
    background: var(--card-bg);
    border: 1px solid var(--accent);
    border-radius: 18px;
    padding: 1.5rem;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: var(--shadow-lg), var(--shadow-inset);
}

.sk-tooltip.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

.sk-tooltip-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.sk-tooltip-name { font-weight: 700; font-size: 1rem; color: var(--text-primary); }

.sk-tooltip-exp {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-secondary);
    background: rgba(35,136,126,0.1);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(35,136,126,0.25);
}

.sk-tooltip-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 0.75rem;
}

.sk-tooltip-row {
    display: flex;
    gap: 6px;
    font-size: 0.78rem;
    margin-top: 4px;
}

.sk-tooltip-lbl { color: var(--text-secondary); font-weight: 500; }
.sk-tooltip-proj, .sk-tooltip-rel { color: var(--accent-secondary); font-weight: 600; }

/* ─── WHAT I BUILD BENTO ─────────────────────── */
.build-bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.bb-cell {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    cursor: default;
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
    position: relative;
    overflow: hidden;
}

.bb-cell::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(35,136,126,0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bb-cell:hover {
    border-color: rgba(69,180,168,0.4);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.bb-cell:hover::after { opacity: 1; }

/* bento layout */
.build-bento .bb-cell:nth-child(1) { grid-column: 1 / 4; }
.build-bento .bb-cell:nth-child(2) { grid-column: 4 / 5; }
.build-bento .bb-cell:nth-child(3) { grid-column: 5 / 7; }
.build-bento .bb-cell:nth-child(4) { grid-column: 1 / 3; }
.build-bento .bb-cell:nth-child(5) { grid-column: 3 / 5; }
.build-bento .bb-cell:nth-child(6) { grid-column: 5 / 7; }

.bb-ico {
    font-size: 1.4rem;
    color: var(--accent-secondary);
    position: relative;
    z-index: 1;
}

.bb-cell h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.bb-cell p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ─── GOOGLE DEVELOPER PROGRAM (GDP) BADGES ─── */
.gdp-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.gdp-badge-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.gdp-badge-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(66, 133, 244, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gdp-badge-card:hover {
    border-color: rgba(66, 133, 244, 0.45);
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.gdp-badge-card:hover::after {
    opacity: 1;
}

.gdp-badge-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gdp-badge-ico-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.35rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.gdp-badge-card:hover .gdp-badge-ico-wrap {
    transform: scale(1.1) rotate(4deg);
}

.gdp-badge-org-pill {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.gdp-badge-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.gdp-badge-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.gdp-badge-body p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

.gdp-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.25rem;
    transition: gap 0.2s ease;
}

.gdp-badge-card:hover .gdp-badge-link {
    gap: 10px;
}

/* ─── BEHIND THE KEYBOARD ────────────────────── */
.kb-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.kb-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
    cursor: default;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}

.kb-card:hover {
    border-color: rgba(69,180,168,0.4);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.kb-icon { font-size: 2rem; color: var(--accent-secondary); line-height: 1; }
.kb-label { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }
.kb-sub { font-size: 0.72rem; color: var(--text-secondary); line-height: 1.5; }

/* ─── TECH TAGS FLOATING ─────────────────────── */
.tech-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 1rem 0 2rem;
}

/* .skill-tag is defined in style.css — we extend it */
.info-tech-tag {
    animation: techFloat var(--t, 3.5s) ease-in-out var(--d, 0s) infinite alternate;
    cursor: default;
    font-size: 0.9rem;
    padding: 0.6rem 1.4rem;
}

@keyframes techFloat {
    from { transform: translateY(0); }
    to { transform: translateY(var(--a, 10px)); }
}

/* ─── CTA ────────────────────────────────────── */
.info-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 40px 0;
}

.info-cta-inner .section-title {
    font-size: clamp(2rem, 6vw, 4.5rem);
}

.info-cta-inner .section-title em {
    color: var(--accent-secondary);
}

.info-cta-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* ─── GALLERY ──────────────────────────────────── */
.info-gallery-section {
    padding: 80px 0 120px;
}

.gallery-section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.gallery-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    aspect-ratio: 1/1; /* uniform square aspect ratio */
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.16,1,0.3,1);
}

.gallery-card:hover {
    border-color: rgba(69,180,168,0.5);
    box-shadow: var(--shadow-lg), var(--shadow-inset);
    transform: translateY(-4px);
}

.gallery-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.gallery-card:hover .gallery-img {
    transform: scale(1.06);
}

/* dark cinematic overlay — slides up on hover */
.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-card-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-secondary);
    background: rgba(35,136,126,0.15);
    border: 1px solid rgba(35,136,126,0.3);
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.gallery-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.gallery-card-zoom {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-card:hover .gallery-card-zoom {
    opacity: 1;
    transform: scale(1);
}

/* ─── LIGHTBOX ───────────────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 82vh;
    border-radius: 14px;
    object-fit: contain;
    box-shadow: 0 40px 80px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.06);
}

.close-lightbox {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 2rem;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    transition: color 0.2s ease, background 0.2s ease;
    line-height: 1;
}

.close-lightbox:hover { color: #fff; background: rgba(255,255,255,0.15); }

.prev-lightbox,
.next-lightbox {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    transition: color 0.2s ease, background 0.2s ease;
    user-select: none;
}

.prev-lightbox { left: 24px; }
.next-lightbox { right: 24px; }
.prev-lightbox:hover, .next-lightbox:hover { color: #fff; background: rgba(255,255,255,0.15); }

#lightbox-caption {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    white-space: nowrap;
}

.lightbox-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-secondary);
    background: rgba(35,136,126,0.15);
    border: 1px solid rgba(35,136,126,0.3);
    padding: 3px 12px;
    border-radius: 100px;
}

.lightbox-title {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

.lightbox-counter {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    letter-spacing: 0.08em;
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1100px) {
    .identity-row { flex-wrap: wrap; }
    .id-block { min-width: calc(50% - 2px); }
    .id-divider:nth-child(4) { display: none; }
    .info-numbers-row { flex-wrap: wrap; }
    .info-num-item { min-width: calc(50% - 1px); border-top: 1px solid var(--glass-border); }
    .skills-ecosystem { grid-template-columns: repeat(3, 1fr); }
    .kb-strip { grid-template-columns: repeat(3, 1fr); }
    .build-bento .bb-cell:nth-child(n) { grid-column: span 3; }
    .build-bento .bb-cell:nth-child(6) { grid-column: span 6; }
    .info-hero-visual { opacity: 0.3; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: 1fr; padding: 0 1.25rem; }
    .gallery-card { aspect-ratio: 1/1; }
    .info-impact-hero { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
    .info-hero-body {
        padding: 140px 1.5rem 60px;
        width: 100%;
        box-sizing: border-box;
        position: relative;
        z-index: 3;
        background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.9) 100%);
    }
    .info-hero-title,
    .info-hero-desc,
    .cuberto-badge {
        text-shadow: 0 4px 18px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.9);
    }
    .info-hero-visual {
        display: flex;
        justify-content: center;
        align-items: flex-end;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        width: 100vw;
        max-width: 100vw;
        height: 75vh;
        max-height: 650px;
        opacity: 0.18;
        pointer-events: none;
        z-index: 1;
        mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 80%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 80%, transparent 100%);
    }
    .info-cutout-frame {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }
    .info-cutout-img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: cover;
        object-position: top center;
    }
    .identity-row { flex-direction: column; border-radius: 16px; }
    .id-divider { width: 100%; height: 1px; margin: 0; }
    .info-numbers-row { flex-wrap: wrap; }
    .info-num-item { width: 50%; }
    .info-num-divider:nth-child(4) { display: none; }
    .skills-ecosystem { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.75rem; }
    .kb-strip { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.75rem; }
    .build-bento .bb-cell:nth-child(n) { grid-column: span 6; padding: 1.5rem 1.25rem; }
    .phil-line { font-size: clamp(1.4rem, 6.5vw, 2.5rem); }
    .sk-tooltip { width: calc(100vw - 2rem); max-width: 360px; bottom: 20px; }
}

@media (max-width: 480px) {
    .info-hero-visual {
        left: 0;
        right: 0;
        transform: none;
        width: 100vw;
        max-width: 100vw;
        height: 72vh;
        max-height: 560px;
        opacity: 0.16;
    }
    .info-num-item { width: 100%; padding: 2rem 1rem; }
    .gallery-card-title { font-size: 0.95rem; }
    .skills-ecosystem { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.65rem; }
    .kb-strip { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.65rem; }
    .build-bento .bb-cell { padding: 1.25rem 1rem; }
    .sk-tooltip { width: calc(100vw - 1.5rem); max-width: 360px; bottom: 16px; padding: 1.15rem; }
    .info-cta-actions { flex-direction: column; }
    .id-block { padding: 1.5rem 1.25rem; }
}

@media (max-width: 360px) {
    .skills-ecosystem { grid-template-columns: 1fr; }
    .kb-strip { grid-template-columns: 1fr; }
}

/* ─── SECTION PADDING ─────────────────────────── */
.section-padding {
    padding: 120px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }
}

/* ─── REDUCED MOTION ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .info-tech-tag { animation: none; }
    .phil-line { transition: none; opacity: 1; transform: none; }
}

/* Light-only surface normalization for the information page. */
[data-theme="light"] .info-impact-hero,
[data-theme="light"] .identity-row,
[data-theme="light"] .info-numbers-row,
[data-theme="light"] .sk-node,
[data-theme="light"] .bb-cell,
[data-theme="light"] .kb-card,
[data-theme="light"] .gallery-card {
    background: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .info-impact-hero::before,
[data-theme="light"] .bb-cell::before,
[data-theme="light"] .gallery-card::before {
    background: none;
}

[data-theme="light"] .sk-node:hover,
[data-theme="light"] .bb-cell:hover,
[data-theme="light"] .kb-card:hover,
[data-theme="light"] .gallery-card:hover {
    background: var(--card-bg);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

[data-theme="light"] .info-tech-tag,
[data-theme="light"] .bb-cell-tag,
[data-theme="light"] .gallery-card-tag {
    background: var(--surface-secondary);
    border-color: var(--border-color);
}

[data-theme="light"] .info-hero-visual,
[data-theme="light"] .info-hero-visual img {
    filter: none;
}

[data-theme="light"] .lightbox {
    background: rgba(17, 17, 17, 0.72);
}
