/* ── Cross-Browser Compatibility & Reset ─────────── */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  text-rendering: optimizeLegibility;
}
/* iOS Safari 100vh fix */
@supports (-webkit-touch-callout: none) {
  .full-height {
    min-height: -webkit-fill-available;
  }
}
/* Remove tap delay on mobile */
a, button {
  touch-action: manipulation;
}
/* Smooth scrolling for all browsers */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* Better SVG rendering */
svg {
  shape-rendering: geometricPrecision;
  text-rendering: optimizeLegibility;
}

/* ── Reset ──────────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { 
      scroll-behavior: smooth; 
      -webkit-text-size-adjust: 100%; 
      scroll-padding-top: 80px;
    }
    img { display: block; max-width: 100%; }
    a { text-decoration: none; color: inherit; }
    button { font: inherit; cursor: pointer; border: none; background: none; }

    /* ── Tokens (Light Theme) ───────────────────────────── */
    :root {
      --bg:           #FFFFFF;
      --bg-soft:      #FAFAFA;
      --bg-card:      #F5F5F5;
      --bg-card-2:    #F8F8F8;
      --border:       #E5E5E5;
      --border-soft:  #EBEBEB;
      --border-faint: #F0F0F0;
      --text:         #050505;
      --text-2:       #525252;
      --text-3:       #8B8B8B;
      --accent:       #050505;
      --accent-light: #1A1A1A;
      --accent-dark:  #000000;
      --accent-glow:  rgba(0, 0, 0, 0.15);
      --green:        #050505;
      --green-bg:     rgba(0, 0, 0, 0.03);
      --green-border: rgba(0, 0, 0, 0.1);
      --green-light:  #1A1A1A;
      --green-glow:   rgba(0, 0, 0, 0.15);

      --font-display: 'Manrope', system-ui, sans-serif;
      --font-body:    'Manrope', system-ui, sans-serif;

      --max-w:        1280px;
      --gutter:       clamp(20px, 5vw, 80px);
      --section-pad:  clamp(64px, 12vw, 140px);

      --shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.06);
      --shadow-md:    0 8px 24px rgba(0, 0, 0, 0.08);
      --shadow-lg:    0 24px 60px rgba(0, 0, 0, 0.12);
      --shadow-glow:  0 0 80px rgba(0, 0, 0, 0.05);
    }

    /* ── Base ───────────────────────────────────────────── */
    body {
      font-family: var(--font-body);
      background: linear-gradient(135deg, #FFFFFF 0%, #F0F0F0 100%);
      background-attachment: fixed;
      color: var(--text);
      line-height: 1.7;
      font-size: clamp(16px, 1.15vw, 18px);
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      position: relative;
    }

    /* Background subtle radial glow for dimension */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background:
        radial-gradient(circle at 20% 0%, rgba(0, 0, 0, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 100%, rgba(0, 0, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.02) 0%, transparent 70%);
      pointer-events: none;
      z-index: 0;
    }

    /* Noise texture overlay */
    body::after {
      content: '';
      position: fixed;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.4'/%3E%3C/svg%3E");
      opacity: 0.02;
      pointer-events: none;
      z-index: 0;
      mix-blend-mode: multiply;
    }

    main, nav, footer { position: relative; z-index: 1; }

    .container {
      max-width: var(--max-w);
      margin-inline: auto;
      padding-inline: var(--gutter);
      width: 100%;
    }

    ::selection { background: var(--accent); color: var(--bg); }

    /* ── Top Navigation ──────────────────────────────────── */
    nav:not(.bottom-nav) {
      position: sticky;
      top: 0;
      z-index: 100;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 248, 248, 0.85) 100%);
      backdrop-filter: blur(20px) saturate(180%);
      -webkit-backdrop-filter: blur(20px) saturate(180%);
      border-bottom: 1px solid var(--border-faint);
    }
    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: clamp(60px, 5vw, 76px);
      width: 100%;
      padding-inline: clamp(20px, 3vw, 40px);
      gap: 16px;
    }
    .logo-group {
      display: flex;
      align-items: center;
      gap: 14px;
      flex-shrink: 0;
      cursor: pointer;
      transition: opacity 0.2s;
    }
    .logo-group:hover {
      opacity: 0.85;
    }
    .logo {
      width: clamp(34px, 3.2vw, 44px);
      height: clamp(34px, 3.2vw, 44px);
      background: linear-gradient(135deg, #1A1A1A 0%, #050505 100%);
      border-radius: clamp(10px, 1vw, 12px);
      display: grid;
      place-items: center;
      font-weight: 800;
      font-size: clamp(13px, 1.05vw, 15px);
      color: var(--bg);
      letter-spacing: -0.5px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
      position: relative;
    }
    .logo::after {
      content: '';
      position: absolute;
      inset: -1px;
      background: linear-gradient(135deg, var(--accent-light), transparent 60%);
      border-radius: 13px;
      z-index: -1;
      opacity: 0.5;
    }
    .logo-text {
      font-size: 15px;
      font-weight: 600;
      letter-spacing: -0.4px;
    }
    .logo-text span { color: var(--accent); }

    .nav-links {
      display: flex;
      gap: 36px;
      list-style: none;
      font-size: clamp(15px, 1.05vw, 16px);
      font-weight: 500;
      color: var(--text-2);
    }
    .nav-links a {
      transition: color 0.2s;
      padding: 8px 0;
      position: relative;
    }
    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 1px;
      background: var(--accent);
      transition: width 0.3s;
    }
    .nav-links a:hover {
      color: var(--text);
    }
    .nav-links a:hover::after { width: 100%; }

    /* Language Switcher */
    .lang-switcher {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      font-weight: 500;
    }
    .lang-btn {
      background: transparent;
      border: none;
      color: var(--text-2);
      font-family: var(--font-body);
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.5px;
      cursor: pointer;
      padding: 4px 2px;
      transition: color 0.2s ease;
    }
    .lang-btn:hover {
      color: var(--text);
    }
    .lang-btn.active {
      color: var(--text);
      font-weight: 700;
    }
    .lang-btn[data-lang="jp"] {
      font-family: 'Noto Sans JP', var(--font-body);
    }
    .lang-sep {
      color: var(--text-3);
      font-size: 12px;
    }

    /* Japanese text style */
    body.lang-jp {
      font-family: 'Noto Sans JP', var(--font-body);
      /* Japanese-specific text wrapping */
      word-break: break-word;
      overflow-wrap: break-word;
      line-break: strict;
    }
    /* Make Japanese text wrap properly on narrow screens */
    body.lang-jp p,
    body.lang-jp h1,
    body.lang-jp h2,
    body.lang-jp h3,
    body.lang-jp .section-intro,
    body.lang-jp .hero p,
    body.lang-jp .timeline-narrative,
    body.lang-jp .timeline-title,
    body.lang-jp .timeline-company,
    body.lang-jp .stat-card-num-sm,
    body.lang-jp .hero-meta-item {
      word-break: break-word;
      overflow-wrap: break-word;
      line-break: strict;
      max-width: 100%;
    }
    /* Allow Japanese hero meta to break if needed */
    body.lang-jp .hero-meta {
      flex-wrap: wrap;
      row-gap: 8px;
    }
    /* Compact Japanese Hero layout - tighter spacing to fit meta line */
    body.lang-jp .hero {
      padding-top: clamp(24px, 4vw, 56px);
      padding-bottom: clamp(24px, 4vw, 40px);
    }
    body.lang-jp .hero h1 {
      margin-bottom: 12px;
      font-size: clamp(40px, 5.5vw, 72px);
    }
    body.lang-jp .hero-sub {
      margin-bottom: 18px;
    }
    body.lang-jp .hero p {
      margin-bottom: 18px;
      line-height: 1.7;
    }
    body.lang-jp .hero-cta {
      margin-bottom: 20px;
    }
    body.lang-jp .hero-meta {
      padding-top: 16px;
    }
    /* Adjust Japanese font sizes - slightly smaller for narrow screens since chars are wider */
    @media (max-width: 600px) {
      body.lang-jp .hero h1 {
        font-size: clamp(28px, 7vw, 42px);
        line-height: 1.2;
      }
      body.lang-jp .section-title {
        font-size: clamp(22px, 5.5vw, 32px);
        line-height: 1.3;
      }
      body.lang-jp p,
      body.lang-jp .section-intro {
        font-size: clamp(14px, 3.5vw, 16px);
        line-height: 1.8;
      }
    }
    body.lang-jp .hero h1,
    body.lang-jp .section-title,
    body.lang-jp .timeline-title,
    body.lang-jp .timeline-year {
      font-family: 'Noto Sans JP', var(--font-display);
    }
    body.lang-jp .hero h1 {
      font-weight: 500;
      letter-spacing: -0.02em;
      white-space: normal;
    }
    body.lang-jp .section-title {
      font-weight: 500;
      letter-spacing: -0.02em;
    }
    /* Furigana style - aligned per kanji */
    .name-jp {
      display: none;
    }
    body.lang-jp .name-jp {
      display: inline-flex;
      align-items: flex-end;
      gap: 0.4em;
    }
    .name-jp-part {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      line-height: 1;
    }
    .furigana-part {
      font-size: 0.22em;
      letter-spacing: 0.15em;
      color: var(--text-3);
      font-weight: 400;
      margin-bottom: 0.15em;
      font-family: 'Noto Sans JP', sans-serif;
      text-align: center;
    }
    .kanji-part {
      display: inline-block;
      line-height: 1;
    }
    body.lang-en .name-jp {
      display: none;
    }
    body.lang-jp .name-en {
      display: none;
    }

    .status-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--green-bg);
      border: 1px solid var(--green-border);
      border-radius: 100px;
      padding: 8px 16px;
      font-size: 12px;
      font-weight: 600;
      color: var(--green);
      flex-shrink: 0;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    }
    .dot-green {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--green);
      box-shadow: 0 0 12px var(--green), 0 0 24px var(--green-glow);
      animation: pulse 5s ease-in-out infinite;
      flex-shrink: 0;
      position: relative;
    }
    .dot-green::after {
      content: '';
      position: absolute;
      inset: -4px;
      border: 1px solid var(--green);
      border-radius: 50%;
      animation: ripple 5s ease-out infinite;
    }
    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50%      { opacity: 0.75; }
    }
    @keyframes ripple {
      0%   { transform: scale(0.8); opacity: 0.6; }
      80%  { transform: scale(2); opacity: 0; }
      100% { transform: scale(2); opacity: 0; }
    }

    /* ── Bottom Navigation (Mobile Only) ────────────────── */
    .bottom-nav {
      display: none !important;
      position: fixed !important;
      bottom: 0 !important;
      top: auto !important;
      left: 0;
      right: 0;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(248, 248, 248, 0.95) 100%);
      backdrop-filter: blur(20px) saturate(180%);
      -webkit-backdrop-filter: blur(20px) saturate(180%);
      border-top: 1px solid var(--border);
      border-bottom: none;
      padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
      z-index: 100;
    }
    .bottom-nav-inner {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      max-width: 600px;
      margin: 0 auto;
    }
    .bottom-nav-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      padding: 8px 4px;
      position: relative;
      color: var(--text-2);
      transition: color 0.2s;
      cursor: pointer;
      border: none;
      background: transparent;
      text-decoration: none;
      -webkit-tap-highlight-color: transparent;
    }
    .bottom-nav-item svg {
      width: 20px;
      height: 20px;
      stroke: currentColor;
      stroke-width: 1.5;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
      transition: stroke 0.2s;
    }
    .bottom-nav-item span {
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 0.2px;
      line-height: 1.2;
    }
    .bottom-nav-item:hover,
    .bottom-nav-item.active {
      color: var(--text);
    }
    .bottom-nav-item::before {
      content: '';
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 24px;
      height: 2px;
      background: var(--text);
      border-radius: 2px;
      opacity: 0;
      transition: opacity 0.1s ease-out;
      pointer-events: none;
    }
    .bottom-nav-item.active::before {
      opacity: 1;
      transition: opacity 0.2s ease-in;
    }
    /* Hide bottom nav in print view */
    @media print {
      .bottom-nav { display: none !important; }
    }

    /* ── Hamburger Menu (Hidden - replaced by bottom nav) ── */
    .menu-toggle {
      display: none;
    }

    /* ── Hero ───────────────────────────────────────────── */
    .hero {
      padding-top: clamp(20px, 4vw, 64px);
      padding-bottom: clamp(20px, 3vw, 48px);
      position: relative;
      overflow: hidden;
    }
    .hero-grid {
      display: grid;
      grid-template-columns: 1.3fr 1fr;
      gap: clamp(48px, 7vw, 96px);
      align-items: start;
      position: relative;
      z-index: 2;
    }

    /* Decorative orbital rings */
    .hero-orbit {
      position: absolute;
      top: 50%;
      right: 0;
      transform: translateY(-50%);
      width: 600px;
      height: 600px;
      pointer-events: none;
      opacity: 0.5;
    }
    .hero-orbit::before,
    .hero-orbit::after {
      content: '';
      position: absolute;
      inset: 0;
      border: 1px solid var(--accent);
      border-radius: 50%;
      opacity: 0.08;
    }
    .hero-orbit::after {
      inset: 80px;
      opacity: 0.12;
      border-color: var(--accent-light);
    }
    .hero-orbit-inner {
      position: absolute;
      inset: 160px;
      border: 1px dashed var(--border);
      border-radius: 50%;
      animation: spin 60s linear infinite;
    }
    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: linear-gradient(135deg, var(--green-bg) 0%, #F5F5F5 100%);
      border: 1px solid var(--green-border);
      border-radius: 100px;
      padding: 8px 18px;
      font-size: 11px;
      font-weight: 700;
      color: var(--green-light);
      letter-spacing: 0.8px;
      margin-bottom: clamp(16px, 2vw, 24px);
      box-shadow: 0 0 30px rgba(0, 0, 0, 0.04);
    }

    .hero h1 {
      font-family: var(--font-display);
      font-size: clamp(40px, 6vw, 84px);
      font-weight: 300;
      line-height: 1.0;
      letter-spacing: -0.04em;
      margin: 0 0 clamp(8px, 1.2vw, 16px);
      color: var(--text);
      white-space: nowrap;
    }
    .hero h1 .period {
      color: var(--accent);
      text-shadow: 0 0 30px var(--accent-glow);
    }

    .hero-sub {
      font-family: var(--font-display);
      font-style: italic;
      font-size: clamp(18px, 1.9vw, 24px);
      font-weight: 400;
      color: var(--text-3);
      margin-bottom: clamp(14px, 1.8vw, 24px);
      letter-spacing: -0.3px;
    }
    .hero-sub .slash {
      color: var(--accent);
      font-style: normal;
      padding: 0 8px;
      font-weight: 300;
    }

    .hero p {
      font-size: clamp(15px, 1.15vw, 17px);
      color: var(--text-2);
      line-height: 1.75;
      max-width: 520px;
      margin-bottom: clamp(14px, 1.6vw, 22px);
    }
    .hero p strong {
      color: var(--text);
      font-weight: 600;
    }

    .hero-cta {
      display: flex;
      gap: 14px;
      margin-bottom: clamp(16px, 2vw, 26px);
      flex-wrap: wrap;
    }
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: clamp(12px, 1.2vw, 16px) clamp(20px, 2vw, 28px);
      border-radius: 12px;
      font-size: clamp(14px, 1.05vw, 16px);
      font-weight: 600;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      letter-spacing: -0.2px;
      min-height: clamp(44px, 4vw, 52px);
      white-space: nowrap;
      position: relative;
      overflow: hidden;
    }
    .btn::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1));
      opacity: 0;
      transition: opacity 0.3s;
    }
    .btn:hover::before { opacity: 1; }
    .btn:hover:not(:active) {
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
    }
    .btn:active { transform: translateY(0); }
    .btn-primary {
      background: linear-gradient(135deg, #1A1A1A 0%, #050505 100%);
      color: var(--bg);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }
    .btn-primary:hover {
      background: linear-gradient(135deg, #2A2A2A 0%, #1A1A1A 100%);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    }
    .btn-secondary {
      background: transparent;
      border: 1.5px solid var(--text);
      color: var(--text);
    }
    .btn-secondary:hover {
      background: var(--text);
      color: var(--bg);
    }
    .btn-ghost {
      background: var(--bg-card);
      border: 1px solid var(--border);
      color: var(--text);
      backdrop-filter: blur(10px);
    }
    .btn-ghost:hover {
      background: var(--border);
      border-color: var(--accent);
    }
    .btn-accent {
      background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
      color: var(--bg);
      font-weight: 700;
      padding: 18px 36px;
      font-size: 15px;
      box-shadow: 0 8px 30px var(--accent-glow);
    }
    .btn-accent:hover {
      box-shadow: 0 12px 40px var(--accent-glow), 0 0 60px rgba(0, 0, 0, 0.03);
    }

    .hero-meta {
      display: flex;
      align-items: center;
      gap: 18px;
      padding-top: clamp(14px, 1.5vw, 20px);
      border-top: 1px solid var(--border-faint);
      flex-wrap: wrap;
    }
    .hero-meta-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: clamp(12px, 0.9vw, 13px);
      color: var(--text-3);
      font-weight: 700;
      letter-spacing: 1.8px;
    }
    .hero-meta-item::before {
      content: '';
      width: 6px;
      height: 6px;
      background: var(--accent);
      border-radius: 50%;
      box-shadow: 0 0 8px var(--accent-glow);
    }
    .hero-meta .divider {
      width: 1px;
      height: 14px;
      background: var(--border);
    }

    /* ── Photo ──────────────────────────────────────────── */
    .photo-wrap {
      position: relative;
      max-width: clamp(240px, 28vw, 340px);
      width: 100%;
      margin-inline: auto;
    }
    .photo {
      position: relative;
      background: transparent;
      border-radius: 0;
      overflow: visible;
      box-shadow: none;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .photo img {
      width: 100%;
      height: auto;
      max-height: 480px;
      object-fit: contain;
      display: block;
    }
    /* ── Photo Protection (anti-download) ──────── */
    .protected-image {
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
      -webkit-user-drag: none;
      -khtml-user-drag: none;
      -moz-user-drag: none;
      -o-user-drag: none;
      user-drag: none;
      -webkit-touch-callout: none;
      pointer-events: none;
    }
    .photo-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: transparent;
      z-index: 10;
      cursor: default;
      -webkit-user-select: none;
      user-select: none;
    }
    .photo-label {
      position: absolute;
      bottom: clamp(8px, 1.2vw, 16px);
      left: 50%;
      transform: translateX(-50%);
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(0, 0, 0, 0.08);
      border-radius: 100px;
      padding: clamp(5px, 0.6vw, 7px) clamp(10px, 1.2vw, 14px);
      font-size: clamp(12px, 0.85vw, 13px);
      font-weight: 700;
      letter-spacing: clamp(0.8px, 0.1vw, 1.4px);
      color: var(--text);
      white-space: nowrap;
    }
    .photo-corner {
      display: none;
    }
    .photo-floating {
      position: absolute;
      bottom: -18px;
      right: -18px;
      background: var(--bg);
      border: 1px solid var(--green-border);
      border-radius: 16px;
      padding: 14px 18px;
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1), 0 0 30px rgba(0, 0, 0, 0.05);
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .photo-floating-title {
      font-size: 11px;
      color: var(--green-light);
      font-weight: 800;
      letter-spacing: 0.8px;
    }
    .photo-floating-sub {
      font-size: 9px;
      color: var(--text-3);
      margin-top: 2px;
    }

    /* ── Stats Bar (between Hero and My Story) ─────────── */
    .stats {
      background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
      border-top: 1px solid var(--border-faint);
      position: relative;
      margin-top: clamp(40px, 6vw, 80px);
    }
    .stats::before {
      content: '';
      position: absolute;
      top: -1px;
      left: 50%;
      transform: translateX(-50%);
      width: 200px;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--accent), transparent);
    }
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      max-width: var(--max-w);
      margin-inline: auto;
      padding: clamp(24px, 3vw, 36px) clamp(16px, 2vw, 32px);
    }
    .stat {
      text-align: center;
      padding: 8px;
      border-right: 1px solid var(--border-faint);
      position: relative;
    }
    /* Stats animation - fade in with slight pop */
    .stat-animate {
      opacity: 0;
      transform: translateY(20px) scale(0.95);
      transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                  transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .stat-animate.stat-visible {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
    .stat-animate:nth-child(1).stat-visible { transition-delay: 0.1s; }
    .stat-animate:nth-child(2).stat-visible { transition-delay: 0.25s; }
    .stat-animate:nth-child(3).stat-visible { transition-delay: 0.4s; }
    .stat-animate:nth-child(4).stat-visible { transition-delay: 0.55s; }
    .stat:last-child { border-right: none; }
    .stat-num {
      font-family: var(--font-display);
      font-size: clamp(26px, 3vw, 34px);
      font-weight: 500;
      color: var(--text);
      letter-spacing: -0.03em;
      line-height: 1;
      margin-bottom: 8px;
    }
    .stat-num.accent {
      color: var(--accent);
      text-shadow: 0 0 20px var(--accent-glow);
    }
    .stat-label {
      font-size: clamp(12px, 0.85vw, 13px);
      color: var(--text-3);
      letter-spacing: 1.8px;
      font-weight: 700;
    }

    /* ── Section base ───────────────────────────────────── */
    section {
      padding: var(--section-pad) 0;
      position: relative;
    }
    .section-label {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 20px;
    }
    .section-label-bar {
      width: 40px;
      height: 1px;
      background: var(--accent);
      box-shadow: 0 0 8px var(--accent-glow);
    }
    .section-label-text {
      font-size: clamp(13px, 1vw, 14px);
      color: var(--accent);
      font-weight: 700;
      letter-spacing: 2.8px;
    }
    .section-title {
      font-family: var(--font-display);
      font-size: clamp(36px, 4.5vw, 60px);
      font-weight: 300;
      line-height: 1.1;
      letter-spacing: -0.03em;
      color: var(--text);
      margin-bottom: 28px;
    }
    .section-title .italic {
      font-style: italic;
      font-weight: 400;
      color: var(--text-3);
    }
    .section-title .accent {
      color: var(--accent);
      text-shadow: 0 0 24px var(--accent-glow);
    }
    .section-intro {
      font-size: clamp(15px, 1.1vw, 17px);
      color: var(--text-2);
      line-height: 1.8;
      max-width: 680px;
      margin-bottom: 40px;
    }
    .section-intro strong { color: var(--text); font-weight: 600; }

    /* ── About Stat Cards ───────────────────────────────── */
    .stat-cards {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: clamp(14px, 1.5vw, 20px);
      max-width: 1100px;
      margin-inline: auto;
    }
    .stat-card {
      background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-2) 100%);
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: clamp(24px, 2.5vw, 32px) clamp(12px, 1.4vw, 18px);
      position: relative;
      overflow: hidden;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      text-align: center;
    }
    .stat-card:hover {
      transform: translateY(-6px);
      border-color: var(--accent);
      box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 0 0 1px var(--accent-glow);
    }
    .stat-card::before {
      content: '';
      position: absolute;
      top: -40px;
      right: -40px;
      width: 100px;
      height: 100px;
      background: var(--accent);
      border-radius: 50%;
      opacity: 0.06;
      transition: opacity 0.4s;
    }
    .stat-card:hover::before { opacity: 0.15; }
    .stat-card.featured {
      border-color: #D0D0D0;
      background: linear-gradient(135deg, #F0F0F0 0%, #E8E8E8 100%);
    }
    .stat-card.featured::before { opacity: 0.18; }
    .stat-card-num {
      font-family: var(--font-display);
      font-size: clamp(42px, 5vw, 60px);
      font-weight: 400;
      letter-spacing: -0.04em;
      color: var(--text);
      line-height: 1;
      margin-bottom: 10px;
    }
    .stat-card.featured .stat-card-num {
      color: var(--accent);
      text-shadow: 0 0 24px var(--accent-glow);
    }
    .stat-card-num .plus { color: var(--accent); }
    /* Centered section variant */
    .about-centered {
      text-align: center;
    }
    .section-label-centered {
      justify-content: center;
    }
    .section-title-centered {
      text-align: center;
    }
    .section-intro-centered {
      max-width: 680px;
      margin-inline: auto;
      text-align: center;
    }
    /* Smaller font for emoji-heavy card */
    .stat-card-num.flags {
      font-family: var(--font-body);
      font-size: clamp(26px, 3.2vw, 36px);
      font-weight: 500;
      letter-spacing: 0;
    }
    /* Icon at top of card */
    .stat-card-emoji {
      display: flex;
      justify-content: center;
      margin-bottom: clamp(12px, 1.4vw, 16px);
      line-height: 1;
    }
    .stat-card-emoji svg {
      width: clamp(28px, 2.4vw, 34px);
      height: clamp(28px, 2.4vw, 34px);
      stroke: var(--text);
      stroke-width: 1.5;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    /* Display font for skill name */
    .stat-card-num-sm {
      font-family: var(--font-display);
      font-size: clamp(18px, 1.8vw, 24px);
      font-weight: 400;
      letter-spacing: -0.3px;
      color: var(--text);
      line-height: 1.2;
      margin-bottom: 10px;
      white-space: normal;
      word-break: break-word;
      hyphens: auto;
    }
    .stat-card-num-sm.accent {
      color: var(--accent);
      text-shadow: 0 0 20px var(--accent-glow);
    }
    .stat-card-label {
      font-size: clamp(12px, 0.9vw, 13px);
      color: var(--text-2);
      letter-spacing: 1.4px;
      font-weight: 600;
    }
    /* Inspired me highlight in My Story */
    .inspired {
      color: var(--accent);
      font-weight: 700;
      text-shadow: 0 0 12px var(--accent-glow);
    }

    /* ── Experience ─────────────────────────────────────── */
    .exp-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      flex-wrap: wrap;
      gap: 16px;
      margin-bottom: 36px;
    }
    .exp-count {
      font-size: 11px;
      font-weight: 700;
      color: var(--text-3);
      letter-spacing: 1.8px;
    }

    .exp-card {
      background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-2) 100%);
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: clamp(26px, 3vw, 34px) clamp(26px, 3vw, 34px);
      margin: 0 auto 16px;
      max-width: 960px;
      position: relative;
      overflow: hidden;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .exp-card:hover {
      transform: translateY(-4px);
      border-color: #C0C0C0;
      box-shadow: var(--shadow-lg);
    }
    .exp-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 4px;
      height: 100%;
      background: var(--accent);
      box-shadow: 0 0 16px var(--accent-glow);
    }
    .exp-card.current::before {
      background: var(--green);
      box-shadow: 0 0 16px var(--green-glow);
    }
    .exp-card.edu::before {
      background: var(--text-3);
      box-shadow: none;
    }

    .exp-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 18px;
      flex-wrap: wrap;
      gap: 12px;
    }
    .exp-meta {
      display: flex;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
    }
    .exp-year {
      font-size: clamp(13px, 1.05vw, 15px);
      font-weight: 700;
      color: var(--accent);
      letter-spacing: 1.8px;
    }
    .exp-dot {
      width: 5px;
      height: 5px;
      background: var(--accent);
      border-radius: 50%;
      box-shadow: 0 0 8px var(--accent-glow);
    }
    .exp-duration {
      font-size: clamp(13px, 1.05vw, 15px);
      color: var(--text-3);
      font-style: italic;
    }
    .exp-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: clamp(13px, 0.95vw, 14px);
      color: var(--green);
      background: var(--green-bg);
      border: 1px solid var(--green-border);
      border-radius: 100px;
      padding: 6px 14px;
      font-weight: 700;
      letter-spacing: 0.8px;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    }
    .exp-title {
      font-family: var(--font-display);
      font-size: clamp(22px, 2.3vw, 30px);
      font-weight: 400;
      color: var(--text);
      letter-spacing: -0.5px;
      line-height: 1.3;
      margin-bottom: 10px;
    }
    .exp-company {
      font-size: clamp(15px, 1.15vw, 17px);
      color: var(--text-2);
      margin-bottom: 0;
      font-style: italic;
      line-height: 1.5;
    }
    .exp-company .separator {
      color: var(--accent);
      margin: 0 8px;
      font-weight: 600;
    }
    .exp-list {
      list-style: none;
      font-size: 13px;
      color: var(--text-2);
      line-height: 1.9;
    }
    .exp-list li {
      padding-left: 22px;
      position: relative;
    }
    .exp-list li::before {
      content: '';
      position: absolute;
      left: 0;
      top: 12px;
      width: 12px;
      height: 1px;
      background: var(--accent);
    }

    /* ── Timeline (Truly Fluid Responsive) ─────────────────── */
    .timeline {
      position: relative;
      max-width: 980px;
      margin-inline: auto;
      width: 100%;
      /* Fluid values that scale smoothly across all screen sizes */
      --year-col: clamp(60px, 9vw, 120px);
      --gap-col: clamp(10px, 1.5vw, 20px);
      --dot-col: clamp(20px, 2.5vw, 30px);
      --dot-size: clamp(6px, 0.7vw, 9px);
      --line-top: clamp(10px, 1.2vw, 16px);
    }
    .timeline-line {
      position: absolute;
      left: calc(var(--year-col) + var(--gap-col) + (var(--dot-col) / 2) - 1px);
      top: var(--line-top);
      width: 2px;
      height: 0;
      background: var(--accent);
      opacity: 0;
      pointer-events: none;
    }
    @keyframes lineGrow {
      0% {
        opacity: 0;
        transform: scaleY(0);
      }
      100% {
        opacity: 0.7;
        transform: scaleY(1);
      }
    }
    .timeline-entry {
      position: relative;
      display: grid;
      grid-template-columns: var(--year-col) var(--dot-col) 1fr;
      gap: var(--gap-col);
      margin-bottom: clamp(32px, 5vw, 64px);
      align-items: start;
    }
    .timeline-entry:last-child {
      margin-bottom: 0;
    }
    .timeline-years {
      text-align: right;
      padding-top: 0;
      min-width: 0;
      overflow-wrap: break-word;
      align-self: start;
      line-height: 1;
    }
    .timeline-year {
      font-family: var(--font-display);
      font-size: clamp(13px, 1.1vw, 16px);
      font-weight: 500;
      color: var(--text);
      letter-spacing: -0.2px;
      line-height: 1.2;
      display: inline;
      white-space: nowrap;
    }
    .timeline-year-sep {
      font-family: var(--font-display);
      font-size: clamp(13px, 1.1vw, 16px);
      color: var(--text-3);
      margin: 0 clamp(2px, 0.3vw, 4px);
    }
    .timeline-year-end {
      font-family: var(--font-display);
      font-size: clamp(13px, 1.1vw, 16px);
      font-weight: 400;
      color: var(--text-3);
      letter-spacing: -0.2px;
      line-height: 1.2;
      display: inline;
      white-space: nowrap;
    }
    .timeline-dot-wrap {
      position: relative;
      width: var(--dot-col);
      display: flex;
      justify-content: center;
      align-items: center;
      align-self: start;
      height: 1.2em;
    }
    .timeline-dot {
      transform: scale(0);
      width: var(--dot-size);
      height: var(--dot-size);
      background: var(--text);
      border-radius: 50%;
      box-shadow: 0 0 0 6px var(--bg);
      z-index: 3;
      opacity: 0;
      position: relative;
      flex-shrink: 0;
    }
    @keyframes dotPop {
      0% {
        transform: scale(0);
        opacity: 0;
      }
      60% {
        transform: scale(1.4);
        opacity: 1;
      }
      100% {
        transform: scale(1);
        opacity: 1;
      }
    }
    /* Typing cursor for timeline */
    .typing-cursor {
      display: inline-block;
      width: 2px;
      height: 1em;
      background: var(--accent);
      vertical-align: text-bottom;
      margin-left: 2px;
      animation: blinkCursor 0.8s step-end infinite;
    }
    @keyframes blinkCursor {
      0%, 50% { opacity: 1; }
      51%, 100% { opacity: 0; }
    }
    /* ── Language Ring Draw-In Animation ──────────────────── */
    @keyframes drawRing100 {
      from { stroke-dashoffset: 326.7; }
      to { stroke-dashoffset: 0; }
    }
    @keyframes drawRing80 {
      from { stroke-dashoffset: 326.7; }
      to { stroke-dashoffset: 65.34; }
    }
    @keyframes drawRing40 {
      from { stroke-dashoffset: 326.7; }
      to { stroke-dashoffset: 196.02; }
    }
    .lang-progress-100,
    .lang-progress-80,
    .lang-progress-40 {
      stroke-dashoffset: 326.7;
    }
    /* Respect user motion preferences */
    @media (prefers-reduced-motion: reduce) {
      .lang-progress-100 { stroke-dashoffset: 0; }
      .lang-progress-80 { stroke-dashoffset: 65.34; }
      .lang-progress-40 { stroke-dashoffset: 196.02; }
    }
    .timeline-dot-faded {
      background: var(--text-3);
      box-shadow: 0 0 0 6px var(--bg);
    }
    .timeline-content {
      padding-top: 0;
      min-width: 0;
      overflow-wrap: break-word;
      word-break: break-word;
      align-self: start;
    }
    /* Year text - JavaScript will handle typing animation */
    .timeline-years {
      /* Initial state - will be set by JS */
    }
    .timeline-duration {
      font-size: clamp(12px, 0.95vw, 14px);
      color: var(--accent);
      font-style: italic;
      font-weight: 600;
      letter-spacing: 0.5px;
      margin-bottom: clamp(4px, 0.5vw, 6px);
      line-height: 1.2;
    }
    .timeline-title {
      font-family: var(--font-display);
      font-size: clamp(16px, 1.4vw, 20px);
      color: var(--text);
      font-weight: 500;
      letter-spacing: -0.2px;
      margin-bottom: clamp(4px, 0.5vw, 6px);
      line-height: 1.3;
    }
    .timeline-company {
      font-size: clamp(13px, 1vw, 14px);
      color: var(--text-2);
      font-style: italic;
      line-height: 1.5;
      margin-bottom: clamp(10px, 1.2vw, 14px);
    }
    .timeline-narrative {
      font-size: clamp(13px, 1.05vw, 15px);
      color: var(--text-2);
      line-height: 1.75;
      max-width: 100%;
    }
    .timeline-content::before {
      display: none;
    }

    /* ── Critical Breakpoint: Mobile Reflow ───────────────── */
    /* On narrow screens (≤599px), stack year above content */
    @media (max-width: 599px) {
      .timeline {
        /* Override fluid year-col since we're reflowing */
        --year-col: 0px;
        --gap-col: clamp(8px, 2.5vw, 14px);
        --dot-col: clamp(18px, 5vw, 26px);
        --dot-size: clamp(5px, 1.5vw, 7px);
        --line-top: clamp(12px, 3vw, 18px);
      }
      .timeline-entry {
        grid-template-columns: var(--dot-col) 1fr;
        gap: var(--gap-col);
      }
      .timeline-line {
        left: calc(var(--dot-col) / 2 - 1px);
      }
      .timeline-years {
        display: block;
        text-align: left;
        padding-top: 0;
        margin-bottom: clamp(4px, 1.5vw, 8px);
        grid-column: 2;
        grid-row: 1;
        order: 1;
      }
      .timeline-dot-wrap {
        grid-column: 1;
        grid-row: 1 / span 2;
        order: 0;
        align-items: flex-start;
        min-height: auto;
        padding-top: clamp(6px, 1.5vw, 10px);
      }
      .timeline-content {
        grid-column: 2;
        grid-row: 2;
        order: 2;
      }
      .timeline-year, .timeline-year-end, .timeline-year-sep {
        font-size: clamp(13px, 3vw, 15px);
      }
      .timeline-content::before {
        display: none;
      }
    }

    /* Very Small Screens (≤320px - smartwatches, old phones) */
    @media (max-width: 320px) {
      .timeline-entry {
        margin-bottom: 24px;
      }
      .timeline-narrative {
        line-height: 1.6;
      }
    }

    /* Ultra-wide screens (≥2560px - 4K, 5K, 8K) */
    @media (min-width: 2560px) {
      .timeline {
        max-width: 1200px;
      }
    }

    /* ── Hobbies (Horizontal Pills) ─────────────────────── */
    .hobbies-grid {
      display: flex;
      flex-wrap: wrap;
      gap: clamp(8px, 1vw, 12px);
      justify-content: center;
      max-width: 760px;
      margin: 0 auto;
    }
    .hobby-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: linear-gradient(135deg, #FFFFFF 0%, #F5F5F5 100%);
      border: 1px solid var(--border);
      border-radius: 100px;
      padding: clamp(8px, 0.9vw, 10px) clamp(16px, 1.4vw, 20px);
      font-size: clamp(13px, 1vw, 15px);
      font-weight: 500;
      color: var(--text);
      transition: all 0.3s ease;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
      opacity: 0;
      transform: translateY(20px) scale(0.9);
    }
    .hobby-pill.hobby-animate {
      animation: hobbyPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
    @keyframes hobbyPop {
      0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
      }
      60% {
        opacity: 1;
        transform: translateY(-3px) scale(1.05);
      }
      100% {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }
    .hobby-pill:hover {
      background: linear-gradient(135deg, #F5F5F5 0%, #EBEBEB 100%);
      border-color: rgba(0, 0, 0, 0.3);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    .hobby-pill svg {
      width: clamp(12px, 1.1vw, 14px);
      height: clamp(12px, 1.1vw, 14px);
      stroke: var(--text);
      stroke-width: 1.5;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
      flex-shrink: 0;
    }
    /* Hobbies section header centered */
    #hobbies .section-label,
    #hobbies .section-title {
      text-align: center;
      justify-content: center;
    }
    #hobbies .section-title {
      margin-bottom: clamp(28px, 3vw, 40px);
    }

    /* ── Languages (Circle Progress) ────────────────────── */
    .lang-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: clamp(20px, 2.5vw, 32px);
      max-width: 960px;
      margin-inline: auto;
    }
    .lang-circle-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: clamp(20px, 2vw, 28px) 12px;
      transition: transform 0.3s ease;
    }
    .lang-circle-card:hover {
      transform: translateY(-4px);
    }
    .lang-circle {
      position: relative;
      width: clamp(120px, 14vw, 160px);
      height: clamp(120px, 14vw, 160px);
      margin-bottom: 20px;
    }
    .lang-circle svg {
      width: 100%;
      height: 100%;
    }
    .lang-circle-text {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .lang-percent {
      font-family: var(--font-display);
      font-size: clamp(20px, 1.9vw, 24px);
      font-weight: 500;
      color: var(--text);
      letter-spacing: -0.3px;
    }
    .lang-info {
      text-align: center;
    }
    .lang-name-circle {
      font-family: var(--font-display);
      font-size: clamp(15px, 1.3vw, 18px);
      color: var(--text);
      letter-spacing: -0.2px;
      margin-bottom: 6px;
      line-height: 1.2;
      font-weight: 500;
    }
    .lang-flag-inline {
      font-size: clamp(15px, 1.3vw, 18px);
      margin-left: 4px;
      vertical-align: middle;
      filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.02));
    }
    .lang-level-circle {
      font-size: clamp(12px, 0.9vw, 13px);
      color: var(--text-2);
      font-style: italic;
      letter-spacing: 0.3px;
    }

    /* Tablet */
    @media (max-width: 900px) {
      .lang-grid {
        gap: 20px;
      }
    }

    /* Mobile */
    @media (max-width: 599px) {
      .lang-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 380px;
        margin-inline: auto;
      }
      .lang-circle-card {
        flex-direction: row;
        text-align: left;
        gap: 18px;
        padding: 14px 16px;
        background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-2) 100%);
        border: 1px solid var(--border);
        border-radius: 16px;
      }
      .lang-circle {
        width: 80px;
        height: 80px;
        margin-bottom: 0;
        flex-shrink: 0;
      }
      .lang-percent {
        font-size: 18px;
      }
      .lang-info {
        text-align: left;
        flex: 1;
      }
      .lang-name-circle {
        font-size: 18px;
        margin-bottom: 2px;
      }
      .lang-level-circle {
        font-size: 11px;
      }
    }

    /* Small Mobile */
    @media (max-width: 374px) {
      .lang-circle-card {
        gap: 14px;
        padding: 14px;
      }
      .lang-circle {
        width: 80px;
        height: 80px;
      }
      .lang-percent {
        font-size: 18px;
      }
      .lang-name-circle {
        font-size: 17px;
      }
    }
    /* ── Contact ────────────────────────────────────────── */
    .contact-section {
      background:
        radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.05) 0%, transparent 60%),
        linear-gradient(180deg, #F8F8F8 0%, #EFEFEF 100%);
      border-top: 1px solid var(--border);
      position: relative;
      overflow: hidden;
      text-align: center;
    }
    .contact-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 320px;
      height: 1px;
      background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
      box-shadow: 0 0 20px var(--accent-glow);
    }
    .contact-label {
      display: inline-flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 22px;
      flex-wrap: nowrap;
    }
    .contact-label .section-label-bar {
      width: 36px;
    }
    .contact-info {
      background: rgba(255, 255, 255, 0.7);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 8px;
      max-width: 460px;
      margin: 0 auto 36px;
      text-align: left;
      box-shadow: var(--shadow-lg);
    }
    .contact-row {
      display: flex;
      align-items: center;
      padding: 18px 22px;
      border-bottom: 1px solid var(--border);
      font-size: clamp(15px, 1.15vw, 17px);
      color: var(--text);
      transition: all 0.3s;
      border-radius: 12px;
    }
    .contact-row:last-child { border-bottom: none; }
    .contact-row[href]:hover {
      background: rgba(0, 0, 0, 0.04);
    }
    .contact-icon {
      color: var(--accent);
      margin-right: 14px;
      font-size: 18px;
      flex-shrink: 0;
      filter: drop-shadow(0 0 8px var(--accent-glow));
    }
    .contact-value {
      flex: 1;
      word-break: break-all;
      font-weight: 500;
    }
    .contact-tag {
      font-size: clamp(12px, 0.85vw, 13px);
      color: var(--text-3);
      letter-spacing: 1.2px;
      font-weight: 700;
      flex-shrink: 0;
      margin-left: 8px;
    }

    /* ── Footer ─────────────────────────────────────────── */
    footer {
      padding: 28px 0;
      border-top: 1px solid var(--border-faint);
      background: linear-gradient(180deg, #F5F5F5 0%, #EBEBEB 100%);
    }
    .footer-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 14px;
      font-size: clamp(13px, 1vw, 14px);
      color: var(--text-3);
      font-weight: 500;
    }
    .footer-left {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .footer-dot {
      width: 8px;
      height: 8px;
      background: var(--accent);
      border-radius: 50%;
      box-shadow: 0 0 12px var(--accent-glow);
    }

    /* ═══════════════════════════════════════════════════════
       RESPONSIVE BREAKPOINTS
       ═══════════════════════════════════════════════════════ */

    /* ═══════════════════════════════════════════════════════
       FULLY RESPONSIVE BREAKPOINTS
       Covers: 4K → Desktop → Tablet → Mobile → Small Mobile
       ═══════════════════════════════════════════════════════ */

    /* ── 4K & Ultra-wide (1920px+) ──────────────────────── */
    @media (min-width: 1920px) {
      :root {
        --max-w: 1600px;
        --gutter: 120px;
      }
      body { font-size: 16px; }
      .hero h1 { font-size: clamp(60px, 4.5vw, 88px); }
      .section-title { font-size: clamp(48px, 3.5vw, 64px); }
    }

    /* ── Laptops (1280px - 1919px) — DEFAULT ────────────── */
    /* No changes needed, base styles work */

    /* ── Small Laptops / Tablet Landscape (1024px - 1279px) ─ */
    @media (max-width: 1279px) {
      :root { --gutter: clamp(20px, 4vw, 60px); }
      .hero h1 { font-size: clamp(36px, 4.5vw, 60px); }
      .section-title { font-size: clamp(28px, 3.5vw, 44px); }
      .hero-grid { gap: clamp(32px, 5vw, 64px); }
    }

    /* ── Tablet Portrait (768px - 1023px) ───────────────── */
    @media (max-width: 1023px) {
      .hero-orbit { display: none; }
      .hero h1 { font-size: clamp(30px, 4.5vw, 48px); }
      .section-title { font-size: clamp(26px, 4vw, 40px); }
      .nav-links { gap: 24px; font-size: 13px; }
      .container { padding-inline: clamp(20px, 4vw, 48px); }
    }

    /* ── Hide nav links, show hamburger (900px and below) ── */
    @media (max-width: 900px) {
      .hero-grid {
        grid-template-columns: 1fr;
        gap: 56px;
        text-align: center;
      }
      .hero h1,
      .hero-sub,
      .hero p,
      .hero-meta {
        text-align: center;
      }
      .hero p {
        margin-left: auto;
        margin-right: auto;
      }
      .hero-cta {
        justify-content: center;
      }
      .hero-meta {
        justify-content: center;
      }
      .badge {
        align-self: center;
      }
      .photo-wrap {
        max-width: 300px;
        order: -1;
        margin-inline: auto;
      }
      .stats-grid { grid-template-columns: repeat(2, 1fr); }
      .stat:nth-child(2) { border-right: none; }
      .stat:nth-child(1),
      .stat:nth-child(2) {
        border-bottom: 1px solid var(--border-faint);
        padding-bottom: 24px;
        margin-bottom: 24px;
      }
      .stat-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
      .lang-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
      .nav-links { display: none; }
      .bottom-nav { display: block !important; }
      /* Add padding to body to account for bottom nav (including safe area) */
      body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
      .exp-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
      }
      .exp-header .section-label {
        justify-content: center;
      }
      /* Center all section titles & labels on mobile */
      #languages .section-label,
      #experience .section-label {
        justify-content: center;
      }
      #languages .section-title {
        text-align: center;
      }
    }

    /* ── Large Mobile (600px - 767px) ───────────────────── */
    @media (max-width: 767px) {
      :root {
        --gutter: 28px;
        --section-pad: clamp(48px, 12vw, 72px);
      }
      .hero { padding-top: 24px; padding-bottom: 32px; }
      .hero h1 { font-size: clamp(28px, 6vw, 38px); line-height: 1.05; }
      .hero-sub { font-size: 15px; }
      .hero p { font-size: 13px; }
      .section-title { font-size: clamp(26px, 6vw, 36px); }
      .section-intro { font-size: 13px; }
      .photo-wrap { max-width: 280px; }
    }

    /* ── Small Mobile / iPhone SE (375px - 599px) ───────── */
    @media (max-width: 599px) {
      :root {
        --gutter: 24px;
        --section-pad: 56px;
      }
      .nav-inner { padding-inline: 24px; }
      .status-pill {
        padding: 5px 10px;
        font-size: 10px;
      }
      .status-pill span:not(.dot-green) { display: none; }

      .hero { padding-top: 20px; padding-bottom: 28px; }
      .hero h1 {
        font-size: clamp(26px, 7vw, 34px);
        line-height: 1.05;
      }
      .hero-sub {
        font-size: 14px;
        margin-bottom: 20px;
      }
      .hero p {
        font-size: 13px;
        margin-bottom: 24px;
        max-width: 100%;
      }
      .hero-cta {
        flex-direction: column;
        gap: 10px;
        max-width: 320px;
        margin-inline: auto;
      }
      .hero-cta .btn {
        width: 100%;
        min-height: 48px;
        padding: 14px 20px;
      }
      .hero-meta {
        gap: 10px;
        padding-top: 20px;
      }
      .hero-meta .divider { display: none; }
      .hero-meta-item {
        font-size: 10px;
        letter-spacing: 1.2px;
      }

      .photo-wrap {
        max-width: 240px;
        margin-inline: auto;
      }
      .stats-grid { padding: 24px 18px; }
      .stat-num { font-size: 28px; }
      .stat-label { font-size: 10px; letter-spacing: 1.2px; }

      .section-title {
        font-size: clamp(24px, 7vw, 32px);
        margin-bottom: 20px;
        line-height: 1.1;
      }
      .section-intro {
        font-size: 13px;
        line-height: 1.8;
      }
      .section-label-text {
        font-size: 10px;
        letter-spacing: 1.8px;
      }

      .stat-card {
        padding: 22px 18px;
      }
      .stat-card-emoji svg { width: 24px; height: 24px; }
      .stat-card-num-sm {
        font-size: 15px;
      }
      .stat-card-label {
        font-size: 10px;
      }

      /* Stack cards on small mobile */
      .stat-cards { grid-template-columns: 1fr; gap: 14px; max-width: 380px; margin-inline: auto; }
      .lang-grid { grid-template-columns: 1fr; gap: 14px; max-width: 380px; margin-inline: auto; }

      .exp-card {
        padding: 22px;
        border-radius: 16px;
        margin-bottom: 14px;
      }
      .exp-top { gap: 10px; margin-bottom: 14px; }
      .exp-title { font-size: 18px; margin-bottom: 8px; }
      .exp-company { font-size: 13px; }
      .exp-year { font-size: 12px; }
      .exp-duration { font-size: 12px; }
      .exp-badge { font-size: 11px; padding: 5px 12px; }

      .contact-label {
        flex-wrap: wrap;
        justify-content: center;
      }
      .contact-info { max-width: 100%; }
      .contact-row {
        padding: 14px 16px;
        font-size: 14px;
      }
      .contact-tag { display: none; }
      .contact-icon { font-size: 16px; margin-right: 12px; }

      .btn-accent {
        padding: 14px 24px;
        font-size: 13px;
        width: 100%;
        max-width: 300px;
      }

      .footer-inner {
        flex-direction: column;
        text-align: center;
        font-size: 10px;
        gap: 8px;
      }
    }

    /* ── Extra Small (320px - 374px) ────────────────────── */
    @media (max-width: 374px) {
      :root { --gutter: 18px; }
      .nav-inner { padding-inline: 18px; }
      .hero h1 { font-size: 22px; }
      .section-title { font-size: 22px; }
      .hero-sub { font-size: 13px; }
      .stat-num { font-size: 20px; }
      .stat-card { padding: 18px 12px; }
      .stat-card-num-sm { font-size: 14px; }
      .exp-card { padding: 18px; }
    }

    /* ── Landscape orientation (mobile) ─────────────────── */
    @media (max-width: 900px) and (orientation: landscape) {
      .hero { padding-top: 16px; padding-bottom: 20px; }
      .hero h1 { font-size: clamp(28px, 4vw, 40px); }
    }

    /* ── Animations ─────────────────────────────────────── */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(30px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .hero > .hero-grid > div > * {
      animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    }
    .hero .badge    { animation-delay: 0.1s; }
    .hero h1        { animation-delay: 0.2s; }
    .hero-sub       { animation-delay: 0.3s; }
    .hero p         { animation-delay: 0.4s; }
    .hero-cta       { animation-delay: 0.5s; }
    .hero-meta      { animation-delay: 0.6s; }

    /* ── Scroll-triggered animations ────────────────────── */
    .reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                  transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* Sequential reveal delays */
    .reveal[data-delay="1"].visible { transition-delay: 0.1s; }
    .reveal[data-delay="2"].visible { transition-delay: 0.2s; }
    .reveal[data-delay="3"].visible { transition-delay: 0.3s; }
    .reveal[data-delay="4"].visible { transition-delay: 0.4s; }
    .reveal[data-delay="5"].visible { transition-delay: 0.5s; }
    .reveal[data-delay="6"].visible { transition-delay: 0.6s; }
    .reveal[data-delay="7"].visible { transition-delay: 0.7s; }
    .reveal[data-delay="8"].visible { transition-delay: 0.8s; }
    .reveal[data-delay="9"].visible { transition-delay: 0.9s; }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.5s !important;
        transition-duration: 0.5s !important;
      }
      .reveal {
        opacity: 1;
        transform: none;
      }
    }