/* ============================================================
   styles.css
   Main stylesheet for the Jack Gerber portfolio site.

   Responsibilities:
   - Defines global design tokens (colors, shadows, layout widths)
   - Styles the animated hero laptop sequence and scroll-driven transitions
   - Manages the work rail project cards, education timeline, and skills lanes
   - Handles the about section, contact form, and all form validation states
   - Includes keyframe animations and reduced-motion accessibility overrides

   Sections:
   01) ROOT / DESIGN TOKENS
   02) RESET / GLOBAL
   03) GLOBAL PAGE EFFECTS / SHELL
   04) HEADER / NAVIGATION
   05) SECTION DOTS
   06) SHARED SECTION TYPOGRAPHY / SHARED GLASS PANELS
   07) HERO LAPTOP JOURNEY
   08) WORK RAIL
   09) EDUCATION PATH
   10) SKILLS ORBIT
   11) ABOUT JOURNEY
   12) CONTACT SECTION
   13) CONTACT FORM
   14) SCROLL REVEAL
   15) ANIMATIONS
   16) RESPONSIVE — 1200PX
   17) RESPONSIVE — 980PX
   18) RESPONSIVE — 760PX
   19) RESPONSIVE — 640PX
   20) RESPONSIVE — 480PX
   21) REDUCED MOTION
   ============================================================ */

/* ============================================================
   01. ROOT / DESIGN TOKENS
   ============================================================ */
:root {
    --bg: #040916;
    --bg-deep: #020713;
    --bg-surface: #081224;
    --bg-surface-2: #0b1730;

    --text: #f5f7ff;
    --muted: rgba(245, 247, 255, 0.74);

    --panel: rgba(255, 255, 255, 0.08);
    --panel-strong: rgba(255, 255, 255, 0.12);
    --panel-border: rgba(255, 255, 255, 0.12);
    --panel-border-strong: rgba(158, 231, 255, 0.22);

    --accent: #7c8cff;
    --accent-2: #9ee7ff;

    --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.24);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.32);

    --content-width: min(1400px, calc(100% - 40px));
    --content-width-wide: min(1800px, calc(100% - clamp(20px, 3vw, 56px)));

    /* used by script.js */
    --shell-scale: 1;
    --shell-x: 0px;
    --shell-y: 0px;
    --shell-radius: 0px;
    --shell-opacity: 0;

    --hero-closed-opacity: 1;

    /* Starts black — JS transitions this to INSIDE_BG once laptop opens */
    --page-bg:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.10), transparent 22%),
        radial-gradient(circle at 78% 24%, rgba(210, 210, 210, 0.08), transparent 18%),
        radial-gradient(circle at 24% 70%, rgba(170, 170, 170, 0.06), transparent 18%),
        radial-gradient(circle at 82% 78%, rgba(235, 235, 235, 0.05), transparent 16%),
        linear-gradient(180deg, #020202 0%, #070707 30%, #0d0d0d 65%, #141414 100%);
}

/* ============================================================
   02. RESET / GLOBAL
   ============================================================ */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Prevent elastic bounce scroll from fighting the hero lock on iOS */
    overscroll-behavior-y: none;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
    overflow-x: hidden;
    background: #020202;
}

/* Single true-fixed background — sits behind everything, immune to overflow/isolation clipping */
.page-bg-fixed {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: var(--page-bg);
}

a {
    color: inherit;
    text-decoration: none;
}

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

.work-rail,
.edu-path,
.skills-orbit,
.about-journey {
    background: transparent;
}

/* ============================================================
   03. GLOBAL PAGE EFFECTS / SHELL
   ============================================================ */
.page-noise {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.045;
    mix-blend-mode: soft-light;
    background-image: radial-gradient(rgba(255, 255, 255, 0.45) 0.6px, transparent 0.6px);
    background-size: 8px 8px;
}

.laptop-page-shell {
    position: relative;
    z-index: 2;
}

.laptop-page-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.035;
    background-size: 54px 54px;
}

.laptop-page-shell>section {
    position: relative;
}

/* ============================================================
   04. HEADER / NAVIGATION
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 28px 0;
    pointer-events: none;
}

.site-header>* {
    pointer-events: auto;
}

.brand {
    position: absolute;
    top: 20px;
    left: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 12, 23, 0.52);
    backdrop-filter: blur(14px);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.site-nav {
    position: absolute;
    top: 20px;
    right: 28px;
    display: flex;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(10, 12, 23, 0.52);
    backdrop-filter: blur(14px);
}

.nav-link {
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateY(-1px);
}

/* ============================================================
   05. SECTION DOTS
   ============================================================ */
.section-dots {
    position: fixed;
    top: 50%;
    right: 20px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateY(-50%);
}

.dot {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
    transition: transform 0.25s ease, background 0.25s ease;
}

.dot span {
    position: absolute;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 12, 23, 0.72);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.76rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dot:hover span,
.dot.is-active span {
    opacity: 1;
    transform: translateY(-50%) translateX(-2px);
}

.dot.is-active {
    background: var(--accent-2);
    transform: scale(1.15);
}

/* ============================================================
   06. SHARED SECTION TYPOGRAPHY / SHARED GLASS PANELS
   ============================================================ */
.edu-path__eyebrow,
.skills-orbit__eyebrow,
.about-journey__eyebrow,
.contact-kicker,
.hero-laptop__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.edu-path__title,
.skills-orbit__title,
.about-journey__title {
    margin: 0 0 14px;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
    color: #f6f8ff;
}

.edu-path__intro,
.skills-orbit__text,
.about-journey__lead {
    margin: 0;
    max-width: 54ch;
    font-size: clamp(1rem, 1.1vw, 1.08rem);
    line-height: 1.7;
    color: var(--muted);
}

.edu-node__card,
.about-copy-card,
.about-story-panel,
.contact-card,
.skill-orb {
    border: 1px solid var(--panel-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.edu-path__bg,
.skills-orbit__bg,
.about-journey__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.edu-path__grid,
.skills-orbit__grid,
.about-journey__grid {
    position: absolute;
    inset: 0;
    opacity: 0.045;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 1) 12%, rgba(0, 0, 0, 1) 88%, transparent);
}

.edu-path__glow,
.skills-orbit__glow,
.about-journey__glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(34px);
    opacity: 0.55;
}

.edu-path__glow--1,
.skills-orbit__glow--1,
.about-journey__glow--1 {
    top: 8%;
    left: -8rem;
    width: 28rem;
    height: 28rem;
    background: radial-gradient(circle, rgba(124, 140, 255, 0.24), transparent 70%);
}

.edu-path__glow--2,
.skills-orbit__glow--2,
.about-journey__glow--2 {
    right: -7rem;
    bottom: 12%;
    width: 24rem;
    height: 24rem;
    background: radial-gradient(circle, rgba(158, 231, 255, 0.18), transparent 70%);
}

/* ============================================================
   07. HERO LAPTOP JOURNEY
   ============================================================ */
.hero-laptop {
    position: relative;
    z-index: 40;
    height: 260vh;
}

.hero-laptop__sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    /* Allow JS touchmove preventDefault to work for scroll-locking */
    touch-action: pan-y;
    /* Promote to compositor layer to prevent paint during scroll-driven animation */
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.hero-laptop__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: var(--hero-closed-opacity);
    transition: opacity 0.18s linear;

}

.hero-laptop__grid {
    position: absolute;
    inset: 0;
    opacity: calc(0.08 * var(--hero-closed-opacity));
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.35));
}

.hero-laptop__glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(40px);
    opacity: calc(0.78 * var(--hero-closed-opacity));
}

.hero-laptop__glow--1 {
    top: 8%;
    left: -10rem;
    width: 34rem;
    height: 34rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
}

.hero-laptop__glow--2 {
    right: -8rem;
    bottom: 10%;
    width: 28rem;
    height: 28rem;
    background: radial-gradient(circle, rgba(190, 190, 190, 0.14), transparent 70%);
}

.hero-laptop__scene {
    position: relative;
    z-index: 2;
    width: min(1400px, calc(100% - 40px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    place-items: center;
    perspective: 1800px;
    transform-style: preserve-3d;
    will-change: transform;
}

.hero-laptop__welcome {
    position: absolute;
    top: 14vh;
    left: 0;
    right: 0;
    z-index: 4;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-laptop__welcome h1 {
    margin: 0 0 14px;
    font-size: clamp(3.2rem, 8vw, 7rem);
    line-height: 0.9;
    letter-spacing: -0.07em;
}

.hero-laptop__welcome p {
    margin: 0 auto;
    max-width: 38ch;
    font-size: clamp(1rem, 1.4vw, 1.14rem);
    line-height: 1.7;
    color: var(--muted);
}

.hero-laptop__device-wrap,
.hero-laptop__device,
.hero-laptop__screen-shell,
.hero-laptop__screen,
.hero-laptop__base {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-laptop__device-wrap {
    position: relative;
    display: grid;
    place-items: center;
    width: min(980px, 88vw);
    will-change: transform, opacity, filter;
}

.hero-laptop__device {
    position: relative;
    width: 100%;
}

.hero-laptop__screen-shell {
    position: relative;
    width: 72%;
    aspect-ratio: 16 / 10;
    margin: 0 auto;
    padding: 14px;
    border-radius: 22px 22px 10px 10px;
    background: linear-gradient(180deg, #b6c0d6 0%, #7b879f 18%, #2b3344 55%, #0f1624 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -10px 22px rgba(0, 0, 0, 0.35),
        0 40px 100px rgba(0, 0, 0, 0.45);
    transform-origin: center bottom;
    will-change: transform;
}

.hero-laptop__screen-shell::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 6%;
    right: 6%;
    height: 6px;
    border-radius: 999px;
    opacity: 0.6;
    pointer-events: none;
}

.hero-laptop__camera {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 10px;
    height: 10px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #2e405d, #0c111a 75%);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.hero-laptop__screen-bezel {
    width: 100%;
    height: 100%;
    padding: 10px;
    border-radius: 14px 14px 6px 6px;
    background: linear-gradient(180deg, #0b1020 0%, #0d1325 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 10px 18px rgba(255, 255, 255, 0.02);
}

.hero-laptop__screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    background:
        radial-gradient(circle at 18% 18%, rgba(76, 114, 255, 0.22), transparent 18%),
        radial-gradient(circle at 61% 34%, rgba(111, 155, 255, 0.15), transparent 20%),
        radial-gradient(circle at 84% 26%, rgba(158, 231, 255, 0.11), transparent 18%),
        radial-gradient(circle at 79% 74%, rgba(158, 231, 255, 0.13), transparent 18%),
        linear-gradient(180deg, #071329 0%, #061026 46%, #040b1d 100%);
    box-shadow:
        inset 0 0 52px rgba(0, 0, 0, 0.42),
        inset 0 0 0 1px rgba(158, 231, 255, 0.05),
        0 0 36px rgba(76, 114, 255, 0.14);
    transition: box-shadow 0.25s ease, opacity 0.2s linear, filter 0.2s linear;
    will-change: transform, opacity, filter;
}

.hero-laptop__screen::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 58% 42%, rgba(158, 231, 255, 0.10), transparent 54%);
    mix-blend-mode: screen;
}

.hero-laptop__screen::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 22%, transparent 66%, rgba(173, 222, 255, 0.04));
    mix-blend-mode: screen;
}

.hero-laptop__screen-ui {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: clamp(16px, 2vw, 24px);
}

.hero-laptop__screen-topbar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.hero-laptop__screen-topbar span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.hero-laptop__screen-topbar span:nth-child(1) {
    background: #ff5f57;
    box-shadow: 0 0 6px rgba(255, 95, 87, 0.6);
}

.hero-laptop__screen-topbar span:nth-child(2) {
    background: #febc2e;
    box-shadow: 0 0 6px rgba(254, 188, 46, 0.6);
}

.hero-laptop__screen-topbar span:nth-child(3) {
    background: #28c840;
    box-shadow: 0 0 6px rgba(40, 200, 64, 0.6);
}

.hero-laptop__screen-content {
    position: relative;
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
}

.hero-laptop__screen-content::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 18%),
        radial-gradient(circle at center, rgba(158, 231, 255, 0.06), transparent 60%);
    mix-blend-mode: screen;
}

.hero-laptop__screen-viewport {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-laptop__base {
    position: relative;
    width: 88%;
    height: 34px;
    margin: -8px auto 0;
    border-radius: 0 0 26px 26px;
    background: linear-gradient(180deg, #a2adc2 0%, #68738a 18%, #2f3747 58%, #161c28 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        inset 0 -8px 18px rgba(0, 0, 0, 0.28),
        0 22px 36px rgba(0, 0, 0, 0.22);
    will-change: opacity;
}

.hero-laptop__keyboard {
    position: absolute;
    top: 5px;
    left: 7%;
    right: 7%;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(10, 14, 22, 0.95), rgba(33, 39, 50, 0.95));
    opacity: 0.55;
}

.hero-laptop__trackpad {
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 20%;
    height: 10px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-laptop__shadow {
    position: absolute;
    left: 50%;
    bottom: -48px;
    width: 72%;
    height: 70px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.18) 44%, rgba(0, 0, 0, 0) 75%);
    filter: blur(12px);
    pointer-events: none;
    opacity: 0.82;
    will-change: opacity;
}

.hero-laptop__scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.72);
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-laptop__scroll-indicator span {
    position: relative;
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-laptop__scroll-indicator span::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 2px;
    height: 12px;
    transform: translateX(-50%);
    border-radius: 99px;
    background: #fff;
    animation: scrollNudge 1.5s infinite ease-in-out;
}

.hero-laptop__scroll-indicator p {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-laptop:not(.hero-laptop--closed) .hero-laptop__sticky::before {
    content: none;
}

/* hero loader / final welcome */
.hero-laptop__loader {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 18px;
    opacity: 0;
    transform: scale(0.92);
    filter: blur(8px);
    pointer-events: none;
    will-change: opacity, transform, filter;
}

.hero-laptop__loader-logo {
    display: grid;
    place-items: center;
    width: clamp(64px, 9vw, 96px);
    height: clamp(64px, 9vw, 96px);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05)),
        radial-gradient(circle at 30% 30%, rgba(158, 231, 255, 0.28), transparent 65%);
    border: 1px solid rgba(158, 231, 255, 0.22);
    box-shadow:
        0 0 30px rgba(124, 140, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.hero-laptop__loader-logo span {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #f5f7ff;
}

.hero-laptop__loader-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-laptop__loader-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(158, 231, 255, 0.9);
    animation: heroLaptopLoading 1s infinite ease-in-out;
}

.hero-laptop__loader-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.hero-laptop__loader-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

.hero-laptop__welcome-final {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 6;
    width: min(760px, calc(100% - 40px));
    transform: translate(-50%, calc(-50% + 28px)) scale(0.96);
    opacity: 0;
    filter: blur(12px);
    text-align: center;
    pointer-events: none;
    will-change: transform, opacity, filter;
}

.hero-laptop__welcome-final .hero-laptop__eyebrow {
    margin-bottom: 12px;
}

.hero-laptop__welcome-final h2 {
    margin: 0 0 14px;
    font-size: clamp(2.4rem, 6vw, 5.8rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    color: #f5f7ff;
}

.hero-laptop__welcome-final p {
    margin: 0 auto;
    max-width: 34ch;
    font-size: clamp(1rem, 1.3vw, 1.14rem);
    line-height: 1.7;
    color: rgba(245, 247, 255, 0.76);
}

/* ============================================================
   08. WORK RAIL
   ============================================================ */
.work-rail {
    position: relative;
    z-index: 10;
    overflow: hidden;
    padding: clamp(34px, 4vw, 56px) 0 clamp(84px, 8vw, 128px);
    opacity: 0;
    filter: blur(14px);
    pointer-events: none;
    will-change: opacity, transform, filter;
}

.work-rail.is-visible {
    pointer-events: auto;
}

.work-rail__inner {
    position: relative;
    width: var(--content-width-wide);
    margin: 0 auto;
}

.work-rail__heading {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin-bottom: clamp(26px, 3vw, 40px);
}

.work-rail__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-2);
    transition-delay: 0.05s;
}

.work-rail__title {
    margin: 0 0 10px;
    font-size: clamp(3rem, 7vw, 6.6rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
    transition-delay: 0.1s;
}

.work-rail__intro {
    margin: 0;
    max-width: 46ch;
    font-size: clamp(1rem, 1.1vw, 1.08rem);
    line-height: 1.65;
    color: var(--muted);
    transition-delay: 0.15s;
}

.work-rail__stage {
    position: relative;
    min-height: clamp(720px, 62vw, 960px);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    cursor: grab;
}

.work-rail__stage.is-dragging {
    cursor: grabbing;
}

.work-rail__cards {
    position: relative;
    height: clamp(720px, 62vw, 960px);
}

.work-rail__pole {
    position: absolute;
    top: clamp(76px, 6vw, 92px);
    left: 0;
    right: 0;
    width: 100%;
    height: 12px;
    border-radius: 999px;
    overflow: visible;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(210, 220, 245, 0.42) 18%, rgba(98, 112, 150, 0.95) 52%, rgba(34, 42, 62, 0.98) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        inset 0 -2px 3px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 6px 12px rgba(0, 0, 0, 0.22),
        0 16px 34px rgba(0, 0, 0, 0.28);
}

.work-rail__pole::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 1.5%;
    right: 1.5%;
    height: 2px;
    border-radius: 999px;
    opacity: 0.95;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.8) 12%, rgba(255, 255, 255, 0.58) 50%, rgba(255, 255, 255, 0.78) 88%, rgba(255, 255, 255, 0.12));
}

.work-rail__pole::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 3%;
    right: 3%;
    height: 16px;
    border-radius: 999px;
    filter: blur(6px);
    background: radial-gradient(ellipse at center, rgba(170, 205, 255, 0.12) 0%, rgba(90, 125, 200, 0.08) 38%, rgba(0, 0, 0, 0) 75%);
}

/* cards */
.rail-card {
    --card-accent: #ff7d73;
    --card-surface: #111111;
    --card-panel: #e0d4d8;
    --card-text-dark: #090909;
    --card-dark: #020202;

    position: absolute;
    top: clamp(108px, 9vw, 128px);
    left: 50%;
    width: clamp(280px, 22vw, 390px);
    transform-origin: 50% 0%;
    cursor: grab;
    touch-action: pan-y;
    will-change: transform;
}

.rail-card.is-grabbed,
.work-rail__stage.is-dragging .rail-card {
    cursor: grabbing;
}

.rail-card::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    width: 44px;
    height: 18px;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0) 78%);
}

.rail-card__strap {
    position: absolute;
    top: -64px;
    left: 50%;
    width: 5px;
    height: 88px;
    transform: translateX(-50%);
    z-index: 3;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(202, 212, 230, 0.72) 18%, rgba(110, 124, 154, 0.9) 58%, rgba(42, 50, 70, 1) 100%);
    box-shadow:
        inset 1px 0 0 rgba(255, 255, 255, 0.55),
        inset -1px 0 0 rgba(0, 0, 0, 0.3),
        0 2px 2px rgba(255, 255, 255, 0.08),
        0 8px 12px rgba(0, 0, 0, 0.2);
}

.rail-card__strap::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 1px;
    height: calc(100% - 16px);
    transform: translateX(-50%);
    border-radius: 999px;
    opacity: 0.55;
    background: rgba(255, 255, 255, 0.45);
}

.rail-card__hole {
    position: absolute;
    top: 16px;
    left: 50%;
    width: 28px;
    height: 28px;
    transform: translateX(-50%);
    z-index: 5;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(80, 95, 140, 0.95) 0%, rgba(35, 45, 74, 1) 42%, rgba(9, 14, 28, 1) 72%);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.28),
        inset 0 -3px 4px rgba(0, 0, 0, 0.45),
        0 0 0 3px rgba(155, 174, 220, 0.16),
        0 3px 8px rgba(0, 0, 0, 0.35);
}

.rail-card__hole::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(10, 16, 30, 0.92) 0%, rgba(4, 8, 18, 1) 70%);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.rail-card__hole::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 7px;
    width: 9px;
    height: 6px;
    border-radius: 999px;
    opacity: 0.9;
    filter: blur(0.4px);
    background: rgba(255, 255, 255, 0.38);
}

.rail-card__surface {
    overflow: hidden;
    border-radius: 28px;
    border: 1.5px solid rgba(0, 0, 0, 0.75);
    background: var(--card-surface);
    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.rail-card__head {
    position: relative;
    height: clamp(190px, 15vw, 250px);
    overflow: hidden;
    background: var(--card-dark);
}

.rail-card__preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rail-card__head-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.25));
}

.rail-card__mini {
    position: absolute;
    top: 0;
    left: 50%;
    width: clamp(84px, 7vw, 110px);
    height: clamp(84px, 7vw, 110px);
    transform: translateX(-50%);
    z-index: 1;
    display: grid;
    align-items: end;
    justify-items: center;
    padding-bottom: 20px;
    border-radius: 18px;
    background: var(--card-accent);
    color: #0c0c0e;
    font-size: clamp(0.7rem, 0.8vw, 0.78rem);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.rail-card__body {
    display: flex;
    flex-direction: column;
    min-height: clamp(250px, 22vw, 330px);
    padding: clamp(18px, 2vw, 28px) clamp(16px, 1.8vw, 24px) clamp(18px, 1.8vw, 24px);
    background: var(--card-panel);
    color: var(--card-text-dark);
}

.rail-card__label {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.9);
}

.rail-card h3 {
    margin: 0 0 14px;
    font-size: clamp(1.5rem, 2vw, 2.7rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: #08080a;
}

.rail-card p {
    margin: 0 0 18px;
    font-size: clamp(0.94rem, 0.95vw, 1.05rem);
    line-height: 1.65;
    color: rgba(8, 8, 10, 0.82);
}

.rail-card__meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 18px;
    overflow: hidden;
    min-width: 0;
}

.rail-card__meta span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    padding: 9px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    background: rgba(255, 255, 255, 0.36);
    overflow: hidden;
    font-size: 0;
    line-height: 0;
}

.rail-card__meta span img {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    max-height: 18px;
    flex: 0 0 18px;
    object-fit: contain;
}

.rail-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

.rail-card__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--card-accent);
    color: #0b1020;
    font-size: clamp(0.84rem, 0.75rem + 0.2vw, 0.95rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.rail-card__action--secondary {
    background: rgba(11, 16, 32, 0.08);
    box-shadow: inset 0 0 0 1px rgba(11, 16, 32, 0.14);
}

.rail-card a:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

.theme-web {
    --card-accent: #ead33f;
    --card-panel: #e3e4c5;
}

.theme-fullstack {
    --card-accent: #b8f138;
    --card-panel: #c7d8cd;
}

.theme-cyber {
    --card-accent: #59d8dc;
    --card-panel: #c8dde7;
}

.theme-other {
    --card-accent: #ff7d73;
    --card-panel: #e0d4d8;
}

/* ============================================================
   09. EDUCATION PATH
   ============================================================ */
.edu-path {
    position: relative;
    height: 500vh;
    overflow: clip;
    isolation: isolate;
}

.edu-path__pin {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.edu-path__viewport {
    position: relative;
    width: min(1320px, calc(100% - 40px));
    height: 100vh;
    margin: 0 auto;
}

.edu-path__progress {
    position: absolute;
    top: 14vh;
    bottom: 14vh;
    left: 18px;
    z-index: 5;
    width: 18px;
}

.edu-path__progress-line,
.edu-path__progress-fill {
    position: absolute;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    border-radius: 999px;
}

.edu-path__progress-line {
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.edu-path__progress-fill {
    top: 0;
    height: 0%;
    background: linear-gradient(180deg, #9ee7ff 0%, #7c8cff 100%);
    box-shadow: 0 0 18px rgba(158, 231, 255, 0.35);
}

.edu-path__hero {
    position: absolute;
    top: 18vh;
    left: clamp(60px, 7vw, 100px);
    z-index: 4;
    max-width: 700px;
    will-change: transform, opacity, filter;
}

.edu-path__track {
    position: absolute;
    inset: 0;
    will-change: transform;
}

.edu-node {
    position: absolute;
    left: 50%;
    width: min(860px, 68vw);
    transform: translateX(-50%);
    will-change: transform, opacity, filter;
}

.edu-node:nth-child(1) {
    top: 88vh;
}

.edu-node:nth-child(2) {
    top: 145vh;
}

.edu-node:nth-child(3) {
    top: 202vh;
}

.edu-node:nth-child(4) {
    top: 259vh;
}

.edu-node:nth-child(5) {
    top: 316vh;
}

.edu-node__dot {
    position: absolute;
    top: 42px;
    left: -42px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0b1020;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 8px rgba(158, 231, 255, 0.05);
}

.edu-node__card {
    display: block;
    padding: clamp(24px, 2.5vw, 34px);
    border-radius: 30px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.edu-node__card:hover {
    transform: translateY(-4px);
    border-color: rgba(158, 231, 255, 0.34);
    box-shadow: 0 34px 76px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(158, 231, 255, 0.1);
}

.edu-node__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.edu-node__year {
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 0.88;
    font-weight: 800;
    letter-spacing: -0.08em;
    color: #9ee7ff;
}

.edu-node__logo {
    width: clamp(56px, 6vw, 78px);
    height: clamp(56px, 6vw, 78px);
    padding: 10px;
    border-radius: 18px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.edu-node__school {
    margin: 0 0 10px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(245, 247, 255, 0.54);
}

.edu-node__body h3 {
    margin: 0 0 14px;
    font-size: clamp(1.8rem, 3vw, 3.1rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
    color: #fff;
}

.edu-node__body p:last-child {
    margin: 0;
    max-width: 54ch;
    line-height: 1.72;
    color: rgba(245, 247, 255, 0.74);
}

.edu-path__year-float {
    position: absolute;
    top: 50%;
    right: clamp(10px, 2vw, 24px);
    z-index: 2;
    transform: translateY(-50%);
    font-size: clamp(5rem, 16vw, 14rem);
    font-weight: 800;
    letter-spacing: -0.08em;
    color: rgba(255, 255, 255, 0.06);
    pointer-events: none;
    user-select: none;
    will-change: transform, opacity;
}

/* ============================================================
   10. SKILLS ORBIT
   ============================================================ */
.skills-orbit {
    position: relative;
    padding: clamp(110px, 10vw, 160px) 0;
    overflow: hidden;
    isolation: isolate;
}

.skills-orbit__inner,
.about-journey__inner {
    position: relative;
    z-index: 2;
    width: var(--content-width);
    margin: 0 auto;
}

.skills-orbit__intro {
    max-width: 760px;
    margin-bottom: clamp(22px, 3vw, 34px);
}

.skills-orbit__eyebrow {
    transition-delay: 0.05s;
}

.skills-orbit__title {
    transition-delay: 0.1s;
}

.skills-orbit__text {
    transition-delay: 0.15s;
}

.skills-lanes {
    display: grid;
    gap: clamp(18px, 2vw, 26px);
    margin-top: 28px;
}

.skills-lane {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 6px 0;
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            rgba(0, 0, 0, 1) 8%,
            rgba(0, 0, 0, 1) 92%,
            transparent 100%);
    mask-image: linear-gradient(to right,
            transparent 0%,
            rgba(0, 0, 0, 1) 8%,
            rgba(0, 0, 0, 1) 92%,
            transparent 100%);
}

.skills-lane__track {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 18px;
    width: max-content;
    min-width: max-content;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.skills-lane--left .skills-lane__track {
    animation: skillsMarqueeLeft 28s linear infinite;
}

.skills-lane--right .skills-lane__track {
    animation: skillsMarqueeRight 24s linear infinite;
}

.skills-lane--lower .skills-lane__track {
    animation-duration: 30s;
}

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

.skill-orb {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: max-content;
    padding: 18px 22px;
    border-radius: 999px;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.skill-orb:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: rgba(158, 231, 255, 0.34);
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.16),
            rgba(255, 255, 255, 0.07));
}

.skill-orb img {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    object-fit: contain;
}

.skill-orb span {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f5f7ff;
    white-space: nowrap;
}

/* ============================================================
   11. ABOUT JOURNEY
   ============================================================ */
.about-journey {
    position: relative;
    padding: clamp(110px, 10vw, 160px) 0;
    overflow: hidden;
    isolation: isolate;
}

.about-journey__intro {
    max-width: 780px;
    margin-bottom: clamp(20px, 3vw, 30px);
}

.about-journey__grid-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(18px, 2vw, 26px);
    margin-bottom: clamp(34px, 5vw, 70px);
}

.about-copy-card {
    padding: clamp(22px, 2.4vw, 30px);
    border-radius: 28px;
}

.about-copy-card__label,
.about-story-panel__kicker,
.about-misogi-head .about-journey__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(158, 231, 255, 0.92);
}

.about-copy-card p,
.about-misogi-head__text,
.about-story-panel__content p,
.contact-copy p,
.contact-copyright {
    color: rgba(245, 247, 255, 0.78);
    line-height: 1.78;
}

.about-copy-card p,
.about-misogi-head__text,
.contact-copy p,
.contact-copyright {
    margin: 0;
}

.about-misogi-head {
    max-width: 860px;
    margin-bottom: clamp(18px, 3vw, 30px);
}

.about-misogi-head__title {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: #fff;
}

.about-story-panel {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(20px, 3vw, 34px);
    align-items: stretch;
    padding: clamp(18px, 2vw, 24px);
    border-radius: 32px;
    margin-bottom: clamp(22px, 3vw, 30px);
}

.about-story-panel--reverse {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.about-story-panel--reverse .about-story-panel__media {
    order: 2;
}

.about-story-panel--reverse .about-story-panel__content {
    order: 1;
}

.about-story-panel__media {
    position: relative;
    overflow: hidden;
    height: clamp(320px, 34vw, 460px);
    border-radius: 24px;
}

.about-story-panel__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 11, 22, 0.04), rgba(6, 11, 22, 0.34));
}

.about-story-panel__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.about-story-panel:hover .about-story-panel__media img {
    transform: scale(1.04);
}

.about-story-panel__content h4 {
    margin: 0 0 14px;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: #fff;
}

.about-story-panel__content p {
    margin: 0 0 14px;
}

.about-story-panel__content p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   12. CONTACT SECTION
   ============================================================ */
.contact-section {
    position: relative;
    padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 4vw, 3rem);
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.04), transparent 22%),
        radial-gradient(circle at 82% 16%, rgba(158, 231, 255, 0.05), transparent 18%),
        linear-gradient(180deg, #060b16 0%, #040914 38%, #020611 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-section::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 110px;
    pointer-events: none;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.035) 0%,
            rgba(255, 255, 255, 0.012) 45%,
            rgba(255, 255, 255, 0) 100%);
}


.contact-shell {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
}

.contact-copy {
    max-width: 580px;
}

.contact-copy h2 {
    margin: 0 0 1rem;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.contact-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
}

.contact-card h3 {
    margin: 0 0 1.25rem;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    letter-spacing: -0.02em;
}

.contact-footer-block {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    flex-wrap: nowrap;
}

.contact-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--panel-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.contact-socials a:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: rgba(158, 231, 255, 0.34);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
}

.contact-socials img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: invert(1) opacity(0.95);
}

.contact-copyright {
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ============================================================
   12.5 CONTACT RESUME BUTTON
   ============================================================ */

.contact-resume-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    width: 96px;
    height: 58px;
    margin-bottom: 12px;
    padding: 0 14px;

    border-radius: 999px;
    border: 1px solid var(--panel-border);

    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.05));

    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.06);

    color: var(--text);
    transition: transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.contact-resume-btn:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: rgba(158, 231, 255, 0.34);
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.16),
            rgba(255, 255, 255, 0.07));
}

.contact-resume-btn__icon {
    font-size: 1rem;
    line-height: 1;
    font-weight: 800;
}

.contact-resume-btn__text {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ============================================================
   13. CONTACT FORM
   ============================================================ */
.contact-form {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    width: 100%;
}

.contact-form>* {
    min-width: 0;
}

.contact-form .form-grid {
    flex: 1 1 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.95rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full {
    grid-column: auto;
}

.form-group label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    outline: none;
    font: inherit;
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(245, 247, 255, 0.45);
}

.form-group input:focus,
.form-group textarea:focus {
    transform: translateY(-1px);
    border-color: rgba(158, 231, 255, 0.45);
    background: rgba(255, 255, 255, 0.075);
}

.modal-btn {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 1rem;
    padding: 1rem 1.2rem;
    border: 0;
    border-radius: 16px;
    font: inherit;
    font-weight: 700;
    color: #0b1020;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent-2), #ffffff);
    box-shadow: 0 20px 45px rgba(158, 231, 255, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
}

.modal-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* status / validation */
.status-message {
    min-height: 1.4rem;
    margin: 0.9rem 0 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.status-message.sending,
.status-message.success,
.status-message.error {
    opacity: 1;
    transform: translateY(0);
}

.status-message.sending {
    color: var(--accent-2);
}

.status-message.success {
    color: #7dffb3;
}

.status-message.error {
    color: #ff8f8f;
}

.form-group input.field-error,
.form-group textarea.field-error,
.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-color: rgba(255, 90, 90, 0.95);
    background: rgba(255, 70, 70, 0.08);
    box-shadow: 0 0 0 1px rgba(255, 90, 90, 0.18);
}

.form-group input.field-error:focus,
.form-group textarea.field-error:focus {
    border-color: rgba(255, 110, 110, 1);
    background: rgba(255, 70, 70, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 90, 90, 0.16);
}

.modal-btn.is-sending {
    opacity: 0.9;
}

.modal-btn.is-success {
    background: linear-gradient(135deg, #7dffb3, #dffff0);
    color: #08140d;
}

.modal-btn.is-error,
.modal-btn.is-invalid {
    background: linear-gradient(135deg, #ff8f8f, #ffd5d5);
    color: #2a0909;
}

/* ============================================================
   14. SCROLL REVEAL
   ============================================================ */
.reveal-on-scroll {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    filter: blur(8px);
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
    will-change: opacity, transform, filter;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
}

/* ============================================================
   15. ANIMATIONS
   ============================================================ */
@keyframes skillsMarqueeLeft {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes skillsMarqueeRight {
    from {
        transform: translate3d(-50%, 0, 0);
    }

    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes scrollNudge {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(8px);
        opacity: 0.45;
    }
}

@keyframes heroLaptopLoading {

    0%,
    80%,
    100% {
        transform: translateY(0) scale(0.8);
        opacity: 0.45;
    }

    40% {
        transform: translateY(-6px) scale(1);
        opacity: 1;
    }
}

/* ============================================================
   16. RESPONSIVE - 1200PX
   ============================================================ */
@media (max-width: 1200px) {
    .work-rail__inner {
        width: min(100% - 32px, 1800px);
    }

    .work-rail__stage,
    .work-rail__cards {
        min-height: 780px;
        height: 780px;
    }
}

/* ============================================================
   17. RESPONSIVE - 980PX
   ============================================================ */
@media (max-width: 980px) {
    .hero-laptop {
        height: 280vh;
    }

    .hero-laptop__scene {
        width: min(100% - 28px, 1400px);
    }

    .hero-laptop__welcome {
        top: 11vh;
        max-width: 92%;
    }

    .hero-laptop__device-wrap {
        width: min(94vw, 860px);
    }

    .hero-laptop__screen-shell {
        width: 84%;
    }

    .work-rail__inner,
    .skills-orbit__inner,
    .about-journey__inner,
    .edu-path__viewport {
        width: min(100% - 28px, 1400px);
    }

    .work-rail__stage,
    .work-rail__cards {
        min-height: 720px;
        height: 720px;
    }

    .rail-card {
        width: clamp(280px, 36vw, 360px);
    }

    .section-dots {
        display: none;
    }

    .edu-path__hero {
        top: 14vh;
        left: 0;
        max-width: 100%;
    }

    .edu-node {
        width: min(100%, 760px);
    }

    .edu-node__dot {
        display: none;
    }

    .edu-path__year-float {
        top: auto;
        right: 0;
        bottom: 8vh;
        transform: none;
        font-size: clamp(4rem, 18vw, 8rem);
    }

    .edu-path__progress {
        left: auto;
        right: 6px;
        width: 12px;
    }

    .about-journey__grid-main {
        grid-template-columns: 1fr;
    }

    .about-story-panel,
    .about-story-panel--reverse {
        grid-template-columns: 1fr;
    }

    .about-story-panel--reverse .about-story-panel__media,
    .about-story-panel--reverse .about-story-panel__content {
        order: initial;
    }

    .about-story-panel__media {
        height: clamp(260px, 56vw, 360px);
    }

    .skill-orb {
        padding: 16px 18px;
        gap: 12px;
    }

    .skill-orb img {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }

    .skill-orb span {
        font-size: 0.9rem;
    }

    .skills-lane--left .skills-lane__track {
        animation-duration: 22s;
    }

    .skills-lane--right .skills-lane__track {
        animation-duration: 20s;
    }

    .contact-shell {
        grid-template-columns: 1fr 1fr;
        gap: clamp(1rem, 2vw, 1.2rem);
        align-items: start;
    }

    .contact-copy h2 {
        font-size: clamp(1.8rem, 5vw, 2.4rem);
        line-height: 1.05;
    }

    .contact-copy p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .contact-socials a {
        width: 42px;
        height: 42px;
    }

    .contact-socials img {
        width: 18px;
        height: 18px;
    }

    .contact-footer-block {
        margin-top: 1.2rem;
        padding-top: 1rem;
    }

    .contact-copyright {
        font-size: 0.75rem;
    }

    .contact-card {
        padding: 1rem;
        border-radius: 20px;
    }

    .contact-card h3 {
        margin-bottom: 0.8rem;
        font-size: 1.1rem;
    }

    .form-grid {
        gap: 0.6rem;
    }

    .form-group label {
        font-size: 0.75rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.6rem 0.7rem;
        border-radius: 12px;
        font-size: 0.8rem;
    }

    .form-group textarea {
        min-height: 10px;
    }

    .modal-btn {
        padding: 0.7rem;
        border-radius: 12px;
        font-size: 0.85rem;
    }
}

/* ============================================================
   18. RESPONSIVE - 760PX
   ============================================================ */
@media (max-width: 760px) {
    .brand {
        top: 10px;
        left: 10px;
        width: 38px;
        height: 38px;
        font-size: 0.72rem;
        letter-spacing: 0.06em;
        z-index: 102;
    }

    .site-header {
        padding: 10px 10px 0;
    }

    .site-nav {
        position: relative;
        top: 0;
        right: 0;
        left: 0;
        width: calc(100% - 52px);
        margin-left: 52px;
        justify-content: space-between;
        gap: 2px;
        padding: 5px;
        border-radius: 18px;
    }

    .nav-link {
        flex: 1 1 auto;
        min-width: 0;
        padding: 10px 4px;
        font-size: 0.64rem;
        letter-spacing: 0.04em;
        text-align: center;
    }

    .work-rail__title {
        font-size: clamp(2.7rem, 12vw, 4.6rem);
    }

    .work-rail__intro {
        font-size: 0.98rem;
    }

    .work-rail__stage,
    .work-rail__cards {
        min-height: 680px;
        height: 680px;
    }

    .rail-card {
        width: clamp(240px, 50vw, 290px);
    }

    .rail-card__head {
        height: 180px;
    }

    .rail-card__mini {
        width: 78px;
        height: 78px;
        border-radius: 16px;
        font-size: 0.66rem;
    }

    .rail-card__body {
        min-height: 250px;
        padding: 16px 14px 18px;
    }

    .rail-card h3 {
        font-size: clamp(1.3rem, 5.4vw, 1.9rem);
    }

    .rail-card p {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .rail-card__meta span {
        padding: 8px;
    }

    .rail-card__meta span img {
        width: 16px;
        height: 16px;
        min-width: 16px;
        min-height: 16px;
        max-width: 16px;
        max-height: 16px;
        flex-basis: 16px;
    }

    .rail-card__actions {
        gap: 8px;
    }

    .rail-card a {
        padding: 11px 14px;
        font-size: 0.82rem;
    }
}

/* ============================================================
   19. RESPONSIVE - 640PX
   ============================================================ */
@media (max-width: 640px) {
    .hero-laptop {
        height: 270vh;
    }

    .hero-laptop__welcome h1 {
        font-size: clamp(2.6rem, 14vw, 4.3rem);
    }

    .hero-laptop__welcome p {
        font-size: 0.96rem;
    }

    .hero-laptop__device-wrap {
        width: 96vw;
    }

    .hero-laptop__screen-shell {
        width: 92%;
        padding: 10px;
        border-radius: 18px 18px 8px 8px;
    }

    .hero-laptop__screen-bezel {
        padding: 8px;
    }

    .hero-laptop__base {
        width: 96%;
        height: 26px;
    }

    .hero-laptop__welcome-final {
        width: min(92vw, 760px);
    }

    .hero-laptop__welcome-final h2 {
        font-size: clamp(2rem, 10vw, 3.4rem);
    }

    .hero-laptop__welcome-final p {
        font-size: 0.96rem;
    }

    .work-rail__inner,
    .skills-orbit__inner,
    .about-journey__inner,
    .edu-path__viewport {
        width: min(100% - 18px, 1400px);
    }

    .site-nav {
        padding: 5px;
        gap: 2px;
        border-radius: 16px;
    }

    .nav-link {
        padding: 9px 4px;
        font-size: 0.62rem;
        letter-spacing: 0.04em;
    }

    .work-rail__stage,
    .work-rail__cards {
        min-height: 740px;
        height: 740px;
    }

    .rail-card {
        width: min(72vw, 270px);
    }

    .rail-card__strap {
        top: -58px;
        height: 78px;
    }

    .rail-card__head {
        height: 165px;
    }

    .rail-card p {
        font-size: 0.84rem;
    }

    .rail-card__body {
        min-height: 235px;
    }

    .edu-path {
        height: 470vh;
    }

    .edu-path__title,
    .skills-orbit__title,
    .about-journey__title {
        font-size: clamp(2.5rem, 12vw, 4.3rem);
    }

    .edu-node__card,
    .about-copy-card,
    .about-story-panel {
        border-radius: 24px;
    }

    .edu-node__card {
        padding: 20px;
    }

    .edu-node__year {
        font-size: clamp(2.5rem, 12vw, 4.2rem);
    }

    .edu-node__body h3 {
        font-size: clamp(1.45rem, 7vw, 2rem);
    }

    .edu-node__body p:last-child {
        font-size: 0.95rem;
    }

    .edu-node__logo {
        width: 56px;
        height: 56px;
    }

    .skills-orbit,
    .about-journey {
        padding: 68px 0;
    }

    .skill-orb {
        padding: 14px 16px;
        gap: 10px;
    }

    .skill-orb img {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
    }

    .skill-orb span {
        font-size: 0.86rem;
    }

    .about-copy-card {
        padding: 20px;
    }

    .about-story-panel {
        padding: 14px;
    }

    .about-story-panel__media {
        height: clamp(240px, 62vw, 300px);
        border-radius: 18px;
    }

    .about-story-panel__content h4 {
        font-size: clamp(1.45rem, 7vw, 2rem);
    }
}

/* ============================================================
   20. RESPONSIVE - 480PX
   ============================================================ */
@media (max-width: 480px) {
    .contact-shell {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
        align-items: start;
    }

    .contact-copy h2 {
        font-size: 1.3rem;
    }

    .contact-copy p {
        font-size: 0.78rem;
    }

    .contact-card {
        padding: 0.7rem;
        min-width: 0;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }

    .modal-btn {
        min-width: 0;
        padding: 0.6rem;
        font-size: 0.8rem;
    }
}

/* ============================================================
   21. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-laptop__scroll-indicator span::after,
    .skills-lane__track {
        animation: none !important;
    }

    .hero-laptop__screen,
    .hero-laptop__device-wrap,
    .hero-laptop__screen-shell,
    .hero-laptop__welcome,
    .hero-laptop__scroll-indicator,
    .reveal-on-scroll,
    .skill-orb,
    .rail-card a,
    .nav-link,
    .modal-btn,
    .contact-socials a,
    .edu-node__card {
        transition: none !important;
    }
}