/* ============================================================
   Monad Design System — CV Marco Briceño
   Tokens, Pipeline Diagram, Animations & Ambient Effects
   ============================================================ */

/* ── Design Tokens ── */
:root {
  --color-parchment: #f6f3f1;
  --color-lake-blue: #2b59d1;
  --color-periwinkle-mist: #cfdaf5;
  --color-off-black: #242424;
  --color-ink: #18181b;
  --color-graphite: #4e4d4d;
  --color-ash: #cecac8;

  /* Atmospheric wash accents */
  --color-mint: #34d399;
  --color-coral: #f47274;
  --color-sky: #6aa8f0;

  --font-mono: 'Space Mono', ui-monospace, monospace;
  --font-serif: 'Playfair Display', ui-serif, serif;

  --text-body-sm: 14px;
  --text-body: 16px;
  --text-body-lg: 20px;
  --text-subheading: 24px;
  --text-heading-lg: 48px;
  --text-display: 80px;
}

/* Global Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-parchment);
    font-family: var(--font-mono);
    color: var(--color-graphite);
    font-size: var(--text-body);
    line-height: 1.35;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--color-off-black);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.display-text { font-size: var(--text-display); letter-spacing: -1.6px; margin-bottom: 24px; }
.heading-lg { font-size: var(--text-heading-lg); letter-spacing: -0.96px; }
.subheading { font-size: var(--text-subheading); letter-spacing: -0.48px; }
.body-lg { font-size: var(--text-body-lg); color: var(--color-graphite); }
.body { font-size: var(--text-body); color: var(--color-graphite); }
.body-sm { font-size: var(--text-body-sm); color: var(--color-graphite); }
.eyebrow { font-size: 14px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--color-off-black); }

/* Layout Utilities */
.container {
    max-width: 1432px;
    margin: 0 auto;
    padding: 0 40px;
}
.section { padding: 64px 0; }
.hero { padding: 48px 0 80px; position: relative; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }

/* ── Announcement Bar ── */
.announcement-bar {
    background-color: var(--color-ink);
    color: var(--color-parchment);
    padding: 12px 0;
    font-size: 12px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

/* ── Navbar ── */
.navbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 16px;
    position: relative;
    z-index: 2;
}
.nav-brand {
    font-family: var(--font-mono);
    font-size: 18px;
    text-transform: uppercase;
    color: var(--color-off-black);
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-brand .dot {
    width: 8px; height: 8px;
    background-color: var(--color-lake-blue);
    border-radius: 50%;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link {
    text-decoration: none;
    color: var(--color-off-black);
    font-size: 14px;
    text-transform: uppercase;
}

/* ── Stagger Hover (text rolls up revealing duplicate) ── */
.stagger-hover-link,
.btn-stagger {
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
}
.stagger-inner {
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.stagger-hover-link:hover .stagger-inner,
.btn-stagger:hover .stagger-inner {
    transform: translateY(-50%);
}
.stagger-line {
    display: block;
    line-height: 1.4;
    white-space: nowrap;
}

/* ── Mobile Toggle ── */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none; border: none;
    cursor: pointer; padding: 8px; z-index: 100;
}
.mobile-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--color-off-black);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.is-active span:nth-child(2) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Menu Overlay ── */
.mobile-menu {
    position: fixed; inset: 0;
    background: var(--color-parchment);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
    font-size: 20px; text-decoration: none;
    color: var(--color-off-black);
    text-transform: uppercase;
}

/* ── Atmospheric Background Washes ── */
.atmosphere {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 0;
    overflow: hidden;
}
.atmo-blob {
    position: absolute; border-radius: 50%;
    filter: blur(60px); opacity: 0.18;
    animation: atmo-drift 18s ease-in-out infinite alternate;
}
.atmo-mint {
    width: 700px; height: 700px;
    background: var(--color-mint);
    top: -15%; left: -10%;
}
.atmo-coral {
    width: 550px; height: 550px;
    background: var(--color-coral);
    top: 40%; right: -12%;
    animation-delay: -6s;
}
.atmo-sky {
    width: 600px; height: 600px;
    background: var(--color-sky);
    bottom: -10%; left: 30%;
    animation-delay: -12s;
}
@keyframes atmo-drift {
    0% { transform: translate(0,0) scale(1); }
    50% { transform: translate(40px,-30px) scale(1.08); }
    100% { transform: translate(-20px,20px) scale(0.94); }
}

/* ── Hero Section ── */
.hero-subtext {
    max-width: 800px;
    margin: 0 auto 0;
    font-size: 20px;
    position: relative;
    z-index: 2;
}

/* ── Buttons ── */
.btn-group { display: flex; gap: 16px; justify-content: center; margin-top: 40px; position: relative; z-index: 2; }
.btn-primary {
    background-color: var(--color-lake-blue);
    color: #fff;
    padding: 16px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    display: inline-block;
    border: 1px solid var(--color-lake-blue);
    transition: background-color 0.3s ease;
}
.btn-primary:hover { background-color: #1e44b0; border-color: #1e44b0; }
.btn-ghost {
    background-color: transparent;
    color: var(--color-off-black);
    padding: 16px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    display: inline-block;
    border: 1px solid var(--color-off-black);
    transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-ghost:hover { background-color: var(--color-off-black); color: var(--color-parchment); }

/* Cards */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.card {
    background-color: var(--color-parchment);
    border: 1px solid #3a3837;
    border-radius: 14px;
    padding: 36px 40px;
    position: relative;
    overflow: hidden;
}
.card ul {
    list-style-type: none;
    padding-left: 0;
}
.card ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 16px;
}
.card ul li:last-child {
    margin-bottom: 0;
}
.card ul li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--color-graphite);
}

/* ── Monad Original Experience Cards (Gradients & Icons) ── */
.exp-card {
    background-color: #f6f3f1;
    border: 1px solid rgba(36, 36, 36, 0.72);
    border-radius: 14px;
    padding: 36px 40px;
}

/* Card 1 (Top-Left): Soft Periwinkle / Lavender Blue Glow */
.exp-card--blue {
    background-image:
        radial-gradient(ellipse 68% 65% at 14% 12%, rgba(190, 206, 245, 0.85) 0%, rgba(207, 218, 245, 0.45) 48%, rgba(246, 243, 241, 0) 100%);
}

/* Card 2 (Top-Right): Warm Golden / Soft Yellow Glow */
.exp-card--yellow {
    background-image:
        radial-gradient(ellipse 68% 65% at 14% 12%, rgba(242, 218, 142, 0.82) 0%, rgba(245, 226, 168, 0.42) 48%, rgba(246, 243, 241, 0) 100%);
}

/* Card 3 (Bottom-Left): Soft Rose-Mauve blending into Lavender-Blue Glow */
.exp-card--pink-blue {
    background-image:
        radial-gradient(ellipse 42% 58% at 4% 14%, rgba(235, 198, 210, 0.78) 0%, rgba(235, 198, 210, 0) 100%),
        radial-gradient(ellipse 68% 65% at 24% 14%, rgba(196, 210, 244, 0.78) 0%, rgba(207, 218, 245, 0.38) 50%, rgba(246, 243, 241, 0) 100%);
}

/* Card 4 (Bottom-Right): Warm Apricot / Orange Amber Glow */
.exp-card--orange {
    background-image:
        radial-gradient(ellipse 68% 65% at 14% 12%, rgba(244, 189, 130, 0.85) 0%, rgba(246, 205, 158, 0.45) 48%, rgba(246, 243, 241, 0) 100%);
}

.exp-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--color-off-black);
    margin-bottom: 20px;
}

.exp-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--color-ink);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 10px;
}

.exp-meta {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--color-off-black);
    letter-spacing: 0.02em;
    margin-bottom: 18px;
    opacity: 0.85;
}

.exp-list {
    font-family: var(--font-mono);
    font-size: 15px;
    line-height: 1.55;
    color: var(--color-graphite);
}

.card-elevated {
    background-color: var(--color-periwinkle-mist);
    border-radius: 40px;
    padding: 56px 48px;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Profile Section (2-Column Layout & Photo Frame) ── */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

.profile-photo-frame {
    aspect-ratio: 4 / 5;
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid #cecac8;
    width: 100%;
    max-height: 420px;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 992px) {
    .profile-grid {
        grid-template-columns: minmax(280px, 350px) 1fr;
        gap: 32px;
    }

    .profile-photo-frame {
        max-height: none;
    }
}

/* Tags (Pipeline Node Style) */
.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.tag {
    background-color: var(--color-parchment);
    border: 1px solid var(--color-ash);
    border-radius: 9999px;
    padding: 12px 20px;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--color-off-black);
}

/* Skills Groups */
.skills-group {
    margin-bottom: 40px;
}
.skills-group:last-of-type {
    margin-bottom: 0;
}

/* ============================================================
   MONAD SKILLS SHOWCASE (Vertical Curved Marquee - #habilidades)
   ============================================================ */
.skills-monad-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(246, 243, 241, 1) 0%, rgba(213, 222, 246, 0.92) 9%, rgba(210, 220, 246, 0.95) 88%, rgba(246, 243, 241, 1) 100%);
    padding: 56px 0;
}

/* Resplandor coral/cálido en el extremo derecho y desvanecimiento lateral como en Monad */
.skills-monad-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 46% 65% at 96% 52%, rgba(235, 179, 179, 0.65) 0%, rgba(226, 192, 208, 0.28) 48%, rgba(210, 220, 246, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Líneas Chevron decorativas en el centro */
.skills-chevrons {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 42%;
    width: 34%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.skills-chevrons polyline {
    fill: none;
    stroke: rgba(98, 128, 214, 0.22);
    stroke-width: 1.15;
}

.skills-monad-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(320px, 480px) 1fr;
    align-items: center;
    gap: 48px;
    min-height: 520px;
}

.skills-monad-copy {
    padding: 24px 0;
}

.skills-monad-title {
    font-family: var(--font-serif);
    font-size: 52px;
    font-weight: 400;
    color: var(--color-off-black);
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin-bottom: 24px;
}

.skills-monad-desc {
    font-family: var(--font-mono);
    font-size: 15px;
    line-height: 1.6;
    color: #3a3a3d;
    margin-bottom: 36px;
    max-width: 460px;
}

.skills-monad-btn {
    display: inline-block;
    background-color: #222222;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}
.skills-monad-btn:hover {
    background-color: var(--color-lake-blue);
    transform: translateY(-1px);
}

/* Contenedor del Marquee Vertical */
.skills-marquee-viewport {
    position: relative;
    height: 520px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    padding-left: 80px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.35) 7%, #000 18%, #000 82%, rgba(0,0,0,0.35) 93%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.35) 7%, #000 18%, #000 82%, rgba(0,0,0,0.35) 93%, transparent 100%);
}

.skills-track {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-bottom: 22px;
    will-change: transform;
    animation: scrollSkills 28s linear infinite;
}

.skills-track:hover {
    animation-play-state: paused;
}

@keyframes scrollSkills {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
    will-change: transform, opacity;
    transition: opacity 0.15s linear;
}

.skill-icon-bubble {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 50%;
    background-color: #f8f5f3;
    box-shadow: 0 4px 14px rgba(24, 24, 27, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-icon-bubble img,
.skill-icon-bubble svg {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.skill-name {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 400;
    color: #4f4f59;
    letter-spacing: -0.01em;
    line-height: 1.2;
    /* Sutil desvanecimiento hacia el extremo derecho como en la captura original */
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 72%, rgba(0,0,0,0.45) 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 72%, rgba(0,0,0,0.45) 100%);
}

/* Accordion Rows */
.accordion-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    border-bottom: 1px solid var(--color-ash);
}
.divider {
    height: 1px;
    background-color: var(--color-ash);
    width: 100%;
}

/* ============================================================
   MONAD HERO LOTTIE + CV OVERLAY
   ============================================================ */
.pipeline-wrapper {
    margin: 48px auto 0;
}
#monad-hero-lottie svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ── Pipeline Overlay: pills & tags ── */
.pipe-pill {
    position: absolute;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border: 1px solid var(--color-ash, #cecac8);
    border-radius: 9999px;
    padding: 6px 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-off-black, #242424);
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    z-index: 2;
}
.pipe-center-tag {
    position: absolute;
    background-color: rgba(248, 243, 241, 0.95);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: #1a9e55;
    font-weight: 700;
    white-space: nowrap;
    z-index: 2;
}

/* ============================================================
   MARQUEE (Infinite Carousel)
   ============================================================ */
.marquee-section {
    padding: 28px 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--color-ash);
    border-bottom: 1px solid var(--color-ash);
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 24s linear infinite;
}
.marquee-content {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-right: 40px;
}
.marquee-item {
    font-family: var(--font-mono);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-ash);
    white-space: nowrap;
}
.marquee-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--color-ash);
    flex-shrink: 0;
}
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-track:hover {
    animation-play-state: paused;
}

/* ============================================================
   SCROLL REVEAL (fade-in + slide-up)
   ============================================================ */
.fade-up {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .pipeline-wrapper { max-width: 100%; }
    .skills-monad-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .skills-chevrons {
        left: 10%;
        width: 80%;
        opacity: 0.6;
    }
    .skills-marquee-viewport {
        padding-left: 24px;
        height: 440px;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
    .grid-2 { grid-template-columns: 1fr; }
    .display-text { font-size: 48px; }
    .heading-lg { font-size: 32px; }
    .skills-monad-title { font-size: 36px; }
    .skill-name { font-size: 22px; }
    .skill-icon-bubble { width: 46px; height: 46px; min-width: 46px; }
    .skill-icon-bubble img, .skill-icon-bubble svg { width: 20px; height: 20px; }
    .hero { padding: 40px 0 48px; }
    .section { padding: 40px 0; }
    .accordion-row { flex-direction: column; align-items: flex-start; gap: 8px; }

    /* Nav */
    .nav-links { display: none; }
    .mobile-toggle { display: flex; }

    /* Marquee */
    .marquee-item { font-size: 12px; }
    .marquee-content { gap: 24px; padding-right: 24px; }

    /* Cards */
    .card { padding: 28px; }
    .card-elevated { padding: 40px 24px; }
    .btn-group { flex-direction: column; align-items: center; }
}

.monad-accordion {
    border-bottom: 1px solid var(--color-ash, #cecac8);
    border-radius: 4px;
    transition: background 0.35s ease, border-color 0.35s ease;
    overflow: hidden;
}

.monad-accordion.active {
    background:
        radial-gradient(ellipse 16% 72% at 6% 52%, rgba(238, 148, 72, 0.22) 0%, rgba(238, 148, 72, 0.12) 38%, rgba(238, 148, 72, 0.04) 68%, rgba(246, 243, 241, 0) 100%),
        radial-gradient(ellipse 14% 72% at 95% 54%, rgba(238, 148, 72, 0.20) 0%, rgba(238, 148, 72, 0.10) 38%, rgba(238, 148, 72, 0.03) 68%, rgba(246, 243, 241, 0) 100%);
    border-color: transparent;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 34px 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
}

.accordion-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--color-off-black, #242424);
    letter-spacing: -0.56px;
}

.accordion-arrow {
    width: 24px;
    height: 24px;
    stroke: var(--color-off-black, #242424);
    transition: transform 0.3s ease, stroke 0.3s ease;
    flex-shrink: 0;
}

.monad-accordion.active .accordion-arrow {
    transform: rotate(180deg);
    stroke: #f37a0a;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.monad-accordion.active .accordion-body {
    max-height: 1200px;
}

.accordion-content {
    padding: 0 36px 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.course-row {
    display: flex;
    align-items: baseline;
    gap: 28px;
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    line-height: 1.6;
    border-bottom: 1px dashed rgba(206, 202, 200, 0.55);
    padding-bottom: 14px;
}

.course-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.course-year {
    color: #f37a0a;
    font-weight: 700;
    font-size: 16px;
    min-width: 125px;
    flex-shrink: 0;
}

.course-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.course-name {
    color: var(--color-off-black, #242424);
    font-weight: 700;
    font-size: 17px;
}

.course-inst {
    color: var(--color-graphite, #4e4d4d);
    font-size: 15px;
}

@media (max-width: 768px) {
    .accordion-header {
        padding: 24px 20px;
    }
    .accordion-title {
        font-size: 22px;
    }
    .accordion-content {
        padding: 0 20px 28px;
    }
    .course-row {
        flex-direction: column;
        gap: 6px;
        font-size: 15px;
    }
    .course-year {
        font-size: 15px;
    }
    .course-name {
        font-size: 16px;
    }
    .course-inst {
        font-size: 14px;
    }
}

/* ============================================================
   Modal Emergente — Matriz Técnica Completa (Monad Design System)
   ============================================================ */
.skills-modal {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(1080px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    background-color: var(--color-parchment, #f6f3f1);
    border: 1px solid var(--color-ash, #cecac8);
    border-radius: 40px;
    padding: 0;
    color: var(--color-off-black, #242424);
    overflow: hidden;
    box-shadow: none;
    opacity: 0;
    transform: translateY(12px) scale(0.985);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.skills-modal[open] {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.skills-modal::backdrop {
    background: rgba(24, 24, 27, 0.42);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.skills-modal-inner {
    padding: 48px;
    overflow-y: auto;
    max-height: calc(100vh - 48px);
}

.skills-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding-bottom: 28px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--color-ash, #cecac8);
}

.skills-modal-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-lake-blue, #2b59d1);
    margin-bottom: 8px;
}

.skills-modal-title {
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 400;
    color: var(--color-off-black, #242424);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.skills-modal-close {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 9999px;
    border: 1px solid var(--color-ash, #cecac8);
    background: transparent;
    color: var(--color-off-black, #242424);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.skills-modal-close:hover,
.skills-modal-close:focus-visible {
    background-color: var(--color-off-black, #242424);
    border-color: var(--color-off-black, #242424);
    color: var(--color-parchment, #f6f3f1);
    outline: none;
}

.skills-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.skills-pillar-card {
    background-color: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--color-ash, #cecac8);
    border-radius: 28px;
    padding: 28px;
    font-family: var(--font-mono);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skills-pillar-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--color-ash, #cecac8);
}

.skills-pillar-index {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--color-lake-blue, #2b59d1);
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.skills-pillar-title {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-off-black, #242424);
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.skills-pillar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.skills-pillar-list li {
    position: relative;
    padding-left: 18px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--color-graphite, #4e4d4d);
}

.skills-pillar-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-off-black, #242424);
}

.skills-pillar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.skills-pillar-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-off-black, #242424);
    background-color: var(--color-parchment, #f6f3f1);
    border: 1px solid var(--color-ash, #cecac8);
    border-radius: 9999px;
    padding: 4px 12px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .skills-modal {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 24px);
        border-radius: 28px;
    }

    .skills-modal-inner {
        padding: 28px 20px;
        max-height: calc(100vh - 24px);
    }

    .skills-modal-title {
        font-size: 28px;
    }

    .skills-modal-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .skills-pillar-card {
        padding: 22px 18px;
        border-radius: 22px;
    }
}


