/* val74k — editorial identity. Buildless, mobile first, no CSS dependencies. */

@layer reset, tokens, base, layout, components, motion, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  img, svg, canvas { display: block; max-width: 100%; }
  img { height: auto; }
  button, input { font: inherit; }
  button { cursor: pointer; }
  a { color: inherit; }
  button, a { -webkit-tap-highlight-color: transparent; }
  [hidden] { display: none !important; }
}

@layer tokens {
  :root {
    color-scheme: dark;
    --bg: #141513;
    --surface: #1b1c19;
    --paper: #e9e8e1;
    --text: #e9e8e1;
    --muted: #abaea4;
    --dim: #777c72;
    --line: #3b3e36;
    --accent: #bdc9ad;
    --accent-warm: #c8d4b2;
    --accent-glow: rgba(189, 201, 173, 0.12);
    --inverse: #161814;
    /* Paper-mode tokens for light sections (studio-note) */
    --paper-muted: #5d6358;
    --paper-accent: #334030;
    --paper-line: #8b9382;
    --sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    --gutter: clamp(22px, 4.3vw, 88px);
    --max: 1680px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
    --small: .72rem;
    --space: clamp(70px, 11vw, 170px);
    --header-h: 94px;
  }
}

@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: 110px; }
  body { background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; line-height: 1.55; }
  body:has(dialog[open]) { overflow: hidden; }
  ::selection { background: var(--accent); color: var(--inverse); }
  a { text-decoration: none; }
  button { color: inherit; border: 0; background: none; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
  h1, h2, h3 { font-weight: 500; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
  h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
  h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
  h3 { font-size: clamp(1.25rem, 2.1vw, 1.85rem); }
  p { max-width: 64ch; text-wrap: pretty; }
  p + p { margin-top: 1.25em; }
  code, pre { font-family: var(--mono); }
  figure { margin: 0; }
  .skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-170%); padding: 12px 20px; background: var(--paper); color: var(--inverse); z-index: 200; transition: transform .2s var(--ease); }
  .skip-link:focus { transform: translateY(0); }

  /* Custom scrollbar */
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--dim); }
  * { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
}

@layer layout {
  .wrap { max-width: calc(var(--max) + 2 * var(--gutter)); padding-inline: var(--gutter); margin-inline: auto; }

  /* Header with glassmorphism on scroll */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--line);
    transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  }
  .site-header.scrolled {
    background: rgba(20, 21, 19, 0.82);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-color: rgba(59, 62, 54, 0.6);
  }
  .header-inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
  .brand { display: inline-flex; align-items: center; font-weight: 600; font-size: 1.3rem; letter-spacing: -.07em; transition: opacity .2s; }
  .brand:hover { opacity: .75; }
  .brand-dot { width: 5px; height: 5px; background: var(--accent); margin: 6px 0 0 5px; border-radius: 50%; transition: transform .3s var(--ease-bounce); }
  .brand:hover .brand-dot { transform: scale(1.6); }
  .nav { display: flex; gap: clamp(16px, 2.3vw, 40px); align-items: center; }
  .nav a { position: relative; color: var(--muted); font-size: .83rem; padding-block: 12px; letter-spacing: .01em; transition: color .2s; }
  .nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
  .nav a::after { content: ""; position: absolute; inset: auto 0 5px; height: 1px; background: linear-gradient(90deg, var(--accent), var(--accent-warm)); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
  .menu-toggle { display: none; font: var(--small)/1.2 var(--mono); padding: 14px 0 14px 20px; }


  .section { padding-block: var(--space); }
  .section-rule { border-top: 1px solid var(--line); }
  .section-head { display: grid; grid-template-columns: 1fr 2fr; gap: 28px; margin-bottom: clamp(40px, 6vw, 80px); }
  .section-title { display: flex; justify-content: space-between; align-items: start; gap: 25px; }
  .section-title h2 { max-width: 24ch; }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 7vw, 120px); }
  .page-head { padding-block: clamp(48px, 6vw, 84px) clamp(36px, 4.5vw, 56px); }
  .page-head .eyebrow { margin-bottom: clamp(14px, 1.8vw, 22px); }
  .page-head h1 { margin: 0 0 clamp(16px, 2vw, 24px); max-width: 24ch; }
  .page-lead { margin: 0; max-width: 62ch; color: var(--muted); font-size: clamp(1.02rem, 1.35vw, 1.22rem); line-height: 1.65; }
  .footer {
    border-top: 1px solid var(--line);
    padding-block: clamp(30px, 3.8vw, 44px);
    background: #0f110e;
  }
  .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    font: var(--small)/1.5 var(--mono);
    color: var(--muted);
  }
  .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
  }
  .footer-brand .brand {
    font-size: 1.12rem;
    line-height: 1;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -.02em;
    font-family: var(--sans);
    font-weight: 600;
  }
  .footer-copy {
    color: var(--dim);
    font-size: .75rem;
    letter-spacing: .02em;
  }
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(14px, 2.2vw, 24px);
  }
  .footer-links a {
    color: var(--muted);
    font-size: .78rem;
    letter-spacing: .02em;
    text-decoration: none;
    transition: color .2s ease;
  }
  .footer-links a:hover {
    color: var(--text);
  }
  .footer-top-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted) !important;
    transition: all .25s var(--ease) !important;
  }
  .footer-top-link:hover {
    color: var(--accent) !important;
    border-color: rgba(189, 201, 173, 0.35);
    background: rgba(189, 201, 173, 0.08);
    transform: translateY(-2px);
  }
  .footer-top-link .arrow-up {
    font-size: .85rem;
    display: inline-block;
    transition: transform .25s var(--ease);
  }
  .footer-top-link:hover .arrow-up {
    transform: translateY(-2px);
  }

  @media (max-width: 780px) {
    :root { --header-h: 76px; }
    .menu-toggle { display: block; }
    .nav { flex-wrap: wrap; gap: 10px 24px; }
    .js .nav { display: none; position: absolute; inset: 76px 0 auto; padding: 25px var(--gutter) 35px; background: rgba(20, 21, 19, 0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
    .js .nav.is-open { display: flex; flex-direction: column; align-items: start; gap: 10px; animation: menu-drop .25s var(--ease) both; }
    .js .nav a { font-size: 1.3rem; }
    .section-head, .two-col, .contact-layout { grid-template-columns: 1fr; }
    .contact-layout { gap: 36px; }
    .section-head { gap: 28px; }
    .footer-inner { flex-direction: column; align-items: start; gap: 18px; }
    .footer-links { width: 100%; justify-content: flex-start; gap: 12px 20px; }
    .section-title { align-items: end; }
    .about-strip .about-text { font-size: clamp(1.1rem, 4.5vw, 1.6rem); }
  }
}

@layer components {
  .eyebrow { display: flex; align-items: center; gap: 14px; font: var(--small)/1.5 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
  .eyebrow .index { color: var(--accent); font-variant-numeric: tabular-nums; }
  .tiny-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; animation: pulse-dot 3s ease-in-out infinite; }
  .text-link { display: inline-flex; gap: 26px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 10px; font-size: .9rem; white-space: nowrap; transition: border-color .25s, gap .25s var(--ease); }
  .text-link .arrow { transition: transform .3s var(--ease); }
  .text-link:hover .arrow { transform: translate(4px, -4px); }
  .text-link:hover { border-color: var(--accent); gap: 32px; }

  /* Hero — Asymmetric Editorial Layout */
  .hero {
    position: relative;
    padding-top: clamp(24px, 4vw, 44px);
    padding-bottom: clamp(28px, 4vw, 48px);
    min-height: calc(100svh - var(--header-h, 80px));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(36px, 5.5vw, 84px);
    align-items: center;
    flex: 1 0 auto;
    padding-block: clamp(16px, 2.5vh, 36px);
  }

  /* Left column: Content */
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 580px;
    z-index: 2;
  }

  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font: 0.72rem/1.4 var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: clamp(14px, 2vw, 22px);
  }

  .hero-title {
    font-size: clamp(2.75rem, 5.2vw, 4.5rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 clamp(16px, 2.2vw, 24px);
  }

  .hero-dot {
    color: var(--accent);
  }

  .hero-bio {
    color: var(--muted);
    font-size: clamp(1.02rem, 1.3vw, 1.2rem);
    line-height: 1.68;
    margin: 0 0 clamp(24px, 3.2vw, 36px);
    max-width: 44ch;
  }

  .hero-bio a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: rgba(189, 201, 173, 0.45);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
  }

  .hero-bio a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 13px 26px;
    background: rgba(189, 201, 173, 0.08);
    border: 1px solid var(--accent);
    color: var(--text);
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease, color 0.2s ease;
  }

  .hero-btn:hover {
    background: rgba(189, 201, 173, 0.16);
    box-shadow: 0 0 24px var(--accent-glow);
    transform: translateY(-2px);
    color: #ffffff;
  }

  .hero-btn-arrow {
    display: inline-block;
    transition: transform 0.25s var(--ease);
  }

  .hero-btn:hover .hero-btn-arrow {
    transform: translateX(4px);
  }

  .hero-secondary-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 0.78rem/1.5 var(--mono);
    color: var(--dim);
    padding-left: 4px;
  }

  .hero-secondary-note .sub-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--line-light);
  }

  .hero-secondary-note a {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px dotted var(--line);
    transition: color 0.2s ease, border-color 0.2s ease;
  }

  .hero-secondary-note a:hover {
    color: var(--text);
    border-color: var(--accent);
  }

  /* Right column: Pure PNG Robot Visual (No Card / No Border) */
  .hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: 1;
  }

  .hero-robot-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 480px;
    padding: clamp(8px, 1.5vw, 18px);
  }

  .hero-robot-glow {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(280px, 34vw, 440px);
    height: clamp(280px, 34vw, 440px);
    background: radial-gradient(circle at 50% 45%, rgba(189, 201, 173, 0.14) 0%, rgba(189, 201, 173, 0.05) 42%, rgba(20, 21, 19, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(42px);
    z-index: 0;
  }

  .hero-robot-img {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: clamp(370px, 53vh, 520px);
    object-fit: contain;
    filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.75)) drop-shadow(0 2px 10px rgba(189, 201, 173, 0.1));
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 76%, rgba(0, 0, 0, 0.65) 86%, rgba(0, 0, 0, 0.18) 94%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 76%, rgba(0, 0, 0, 0.65) 86%, rgba(0, 0, 0, 0.18) 94%, transparent 100%);
    user-select: none;
    pointer-events: none;
    animation: robot-levitate 6s ease-in-out infinite;
  }

  .hero-robot-shadow {
    position: absolute;
    bottom: clamp(4px, 1.2vw, 14px);
    left: 50%;
    width: clamp(140px, 18vw, 220px);
    height: 16px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 48%, transparent 75%);
    border-radius: 50%;
    filter: blur(8px);
    pointer-events: none;
    z-index: 0;
    animation: shadow-breathe 6s ease-in-out infinite;
  }

  @keyframes robot-levitate {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-12px);
    }
  }

  @keyframes shadow-breathe {
    0%, 100% {
      transform: translateX(-50%) scale(1);
      opacity: 0.75;
    }
    50% {
      transform: translateX(-50%) scale(0.82);
      opacity: 0.35;
    }
  }

  /* Bottom scroll indicator — Centered */
  .hero-scroll-cue {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-top: clamp(14px, 2.5vh, 28px);
    padding-bottom: 4px;
    position: relative;
    z-index: 3;
  }

  /* Animated Scroll Cue Button */
  .scroll-cue-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dim);
    transition: color .25s var(--ease), transform .25s var(--ease);
    cursor: pointer;
    user-select: none;
    margin-bottom: 2px;
  }
  .scroll-cue-btn:hover {
    color: var(--text);
  }
  .scroll-cue-btn:hover .scroll-cue-arrow {
    border-color: var(--accent);
    color: var(--text);
    background: rgba(200, 212, 178, 0.08);
    box-shadow: 0 0 16px var(--accent-glow);
  }
  .scroll-cue-label {
    font: var(--small)/1 var(--mono);
    font-size: .68rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: inherit;
    transition: color .2s;
  }
  .scroll-cue-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #171915;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: all .25s var(--ease);
    animation: float-arrow 2.2s ease-in-out infinite;
  }
  @keyframes float-arrow {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(6px);
    }
  }

  /* Image band with parallax container */
  .image-band { position: relative; background: #090b0b; overflow: hidden; }
  .image-band img { width: 100%; max-height: 720px; object-fit: cover; aspect-ratio: 2.2; transition: transform .1s linear; }
  .image-band figcaption { position: absolute; inset: auto var(--gutter) 24px; display: flex; justify-content: space-between; font: .68rem/1.5 var(--mono); color: #fff; text-shadow: 0 1px 8px #000; }

  /* Domain list */
  .domain-list { list-style: none; }
  .domain-row { display: grid; grid-template-columns: 50px 1.05fr 1fr 30px; gap: 20px; border-top: 1px solid var(--line); padding-block: 28px; align-items: center; transition: background .2s; cursor: pointer; position: relative; }
  .domain-row::after { content: ""; position: absolute; inset: 0; background: var(--accent-glow); opacity: 0; transition: opacity .3s; pointer-events: none; }
  .domain-row:hover::after { opacity: 1; }
  .domain-row::before, .work-card::before, .technical-note::before, .featured-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(480px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(189, 201, 173, 0.08), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
    border-radius: inherit;
    z-index: 1;
  }
  .domain-row:hover::before, .work-card:hover::before, .technical-note:hover::before, .featured-card:hover::before {
    opacity: 1;
  }
  .domain-row:last-child { border-bottom: 1px solid var(--line); }
  .domain-row .no { color: var(--dim); font: var(--small)/1.5 var(--mono); }
  .domain-row h3 { font-size: clamp(1.8rem, 3vw, 3.4rem); transition: color .2s; }
  .domain-row:hover h3 { color: var(--accent); }
  .domain-row p { color: var(--muted); font-size: .9rem; max-width: 40ch; }
  .domain-row > a { grid-column: 2; }
  .domain-row .go { font-size: 1.35rem; grid-column: 4; transition: transform .25s var(--ease); }
  .domain-row:hover .go { transform: translate(3px, -3px); }

  /* Work cards & Projects Visual Grid */
  .selected-work, .projects-work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(32px, 5vw, 68px);
    margin-top: clamp(24px, 3.5vw, 44px);
    margin-bottom: clamp(36px, 5vw, 64px);
  }
  .work-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: inherit;
    position: relative;
    text-decoration: none;
    border-radius: 4px;
    transition: transform .25s var(--ease);
  }
  .work-card:hover {
    transform: translateY(-4px);
  }
  .work-figure {
    overflow: hidden;
    background: var(--surface);
    border-radius: 4px;
    border: 1px solid var(--line);
    position: relative;
    transition: border-color .3s ease, box-shadow .3s ease;
  }
  .work-card:hover .work-figure {
    border-color: rgba(189, 201, 173, 0.45);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  }
  .work-figure img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .8s var(--ease), filter .5s;
    display: block;
  }
  .work-card:hover img {
    transform: scale(1.03);
    filter: brightness(1.06);
  }
  .work-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-top: 18px;
  }
  .work-info h3 {
    font-size: clamp(1.35rem, 1.8vw, 1.95rem);
    font-weight: 500;
    line-height: 1.25;
    transition: color .2s;
  }
  .work-card:hover .work-info h3 {
    color: var(--accent);
  }
  .work-info p {
    font: .7rem/1.5 var(--mono);
    color: var(--muted);
    margin-top: 8px;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .work-info .arrow {
    font-size: 1.35rem;
    color: var(--muted);
    transition: transform .3s var(--ease), color .2s;
    flex-shrink: 0;
    margin-top: 2px;
  }
  .work-card:hover .work-info .arrow {
    transform: translate(4px, -4px);
    color: var(--accent);
  }

  /* Studio note */
  .studio-note { background: var(--paper); color: var(--inverse); padding-block: clamp(65px, 9vw, 130px); }
  .studio-note .eyebrow { color: var(--paper-muted); }
  .studio-note .eyebrow .index { color: var(--paper-accent); }
  .studio-note .text-link { border-color: var(--paper-line); }
  .studio-note .text-link:hover { border-color: var(--paper-accent); }
  .studio-note h2 { margin-top: 25px; max-width: 24ch; }
  .studio-copy { display: flex; flex-direction: column; justify-content: end; align-items: start; gap: 30px; }
  .studio-copy p { color: #454b40; font-size: 1.08rem; line-height: 1.7; }

  /* About */
  .about-strip { border-top: 1px solid var(--line); }
  .about-strip .about-head { margin-bottom: clamp(28px, 4vw, 52px); }
  .about-strip .about-text { font-size: clamp(1.2rem, 2vw, 2rem); max-width: 52ch; line-height: 1.55; color: var(--muted); }
  .about-strip .about-text a { color: var(--text); border-bottom: 1px solid var(--dim); transition: border-color .2s, color .2s; }
  .about-strip .about-text a:hover { color: var(--accent); border-color: var(--accent); }

  /* Contact */
  .contact-section { padding-block: var(--space); }
  .contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: clamp(36px, 6vw, 96px);
    align-items: start;
  }
  .contact-header .eyebrow { margin-bottom: clamp(14px, 2vw, 22px); }
  .contact-header h2 {
    margin: 0 0 16px;
    font-size: clamp(2.4rem, 4.8vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -.04em;
    max-width: 24ch;
  }
  .contact-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px;
    background: rgba(189, 201, 173, 0.08);
    border: 1px solid rgba(189, 201, 173, 0.28);
    border-radius: 999px;
    font: .7rem/1.2 var(--mono);
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent);
    margin-bottom: 20px;
  }
  .contact-status-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: live-status-pulse 2.2s infinite;
    flex-shrink: 0;
  }
  @keyframes live-status-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(189, 201, 173, 0.75); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(189, 201, 173, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(189, 201, 173, 0); }
  }
  .contact-intro-lead {
    color: var(--muted);
    font-size: clamp(0.96rem, 1.2vw, 1.06rem);
    line-height: 1.65;
    max-width: 40ch;
    margin: 0 0 24px;
  }
  .contact-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 999px;
    font: .72rem/1.3 var(--mono);
    color: var(--muted);
    letter-spacing: .02em;
  }
  .meta-pill .meta-icon {
    font-size: .8rem;
    line-height: 1;
  }

  .contact-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .contact-primary-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(24px, 3.2vw, 36px);
    background: #141613;
    border: 1px solid var(--line);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .25s, transform .25s var(--ease), background .25s, box-shadow .25s;
  }
  .contact-primary-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(450px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(189, 201, 173, 0.09), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
  }
  .contact-primary-card:hover::before { opacity: 1; }
  .contact-primary-card:hover {
    border-color: rgba(189, 201, 173, 0.45);
    background: #171a15;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  }
  .contact-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  .contact-card-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: .72rem/1 var(--mono);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
  }
  .contact-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .copy-email-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    background: rgba(189, 201, 173, 0.09);
    border: 1px solid rgba(189, 201, 173, 0.28);
    border-radius: 4px;
    color: var(--accent);
    font: .72rem/1.2 var(--mono);
    text-transform: uppercase;
    letter-spacing: .06em;
    cursor: pointer;
    transition: all .2s var(--ease);
  }
  .copy-email-btn:hover {
    background: rgba(189, 201, 173, 0.22);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-1px);
  }
  .copy-email-btn.copied {
    background: rgba(16, 185, 129, 0.16);
    border-color: #10b981;
    color: #34d399;
  }
  .copy-email-btn .copy-icon {
    flex-shrink: 0;
  }
  .contact-mailto-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 4px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    font: .72rem/1.2 var(--mono);
    text-transform: uppercase;
    letter-spacing: .06em;
    text-decoration: none;
    transition: all .2s var(--ease);
  }
  .contact-mailto-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(189, 201, 173, 0.1);
    transform: translateY(-1px);
  }
  .contact-action-text {
    color: inherit;
  }
  .contact-card-arrow {
    font-size: 1rem;
    line-height: 1;
    color: inherit;
    transition: transform .25s var(--ease);
  }
  .contact-mailto-link:hover .contact-card-arrow {
    transform: translate(2px, -2px);
  }
  .contact-card-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .contact-card-address {
    font-family: var(--mono);
    font-size: clamp(1.3rem, 2.5vw, 2.1rem);
    letter-spacing: -.02em;
    color: var(--text);
    transition: color .2s;
    word-break: break-all;
    font-weight: 500;
  }
  .contact-primary-card:hover .contact-card-address {
    color: var(--accent);
  }
  .copy-feedback-toast {
    font: .74rem/1.3 var(--mono);
    color: #34d399;
    min-height: 1.2em;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity .2s ease, transform .2s ease;
  }
  .copy-feedback-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .contact-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  .contact-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font: .72rem/1.4 var(--mono);
    color: var(--muted);
  }
  .contact-secure-badge svg {
    color: var(--accent);
    flex-shrink: 0;
  }
  .contact-card-tip {
    font: .7rem/1.4 var(--mono);
    color: var(--dim);
    letter-spacing: .02em;
  }

  /* Contact Channels */
  .contact-channels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .contact-channel-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px;
    background: #141613;
    border: 1px solid var(--line);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    position: relative;
    overflow: hidden;
    transition: border-color .25s, transform .25s var(--ease), background .25s, box-shadow .25s;
  }
  .contact-channel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(350px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(189, 201, 173, 0.08), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
  }
  .contact-channel-item:hover::before { opacity: 1; }
  .contact-channel-item:hover {
    border-color: rgba(189, 201, 173, 0.45);
    background: #171a15;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
  .channel-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
  .channel-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
  }
  .channel-icon {
    color: var(--accent);
    flex-shrink: 0;
  }
  .channel-label {
    font: .76rem/1 var(--mono);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text);
    font-weight: 500;
  }
  .channel-arrow {
    font-size: 1rem;
    color: var(--muted);
    transition: transform .25s var(--ease), color .2s;
  }
  .contact-channel-item:hover .channel-arrow {
    transform: translate(2px, -2px);
    color: var(--accent);
  }
  .channel-desc {
    font-size: .8rem;
    line-height: 1.45;
    color: var(--muted);
  }
  .channel-val {
    font: .82rem/1.2 var(--mono);
    color: var(--accent);
    margin-top: auto;
    letter-spacing: .02em;
  }

  /* Filter bar */
  .filter-bar { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 20px; margin-bottom: 44px; }
  .filter-bar button { color: var(--muted); font: .75rem/1.5 var(--mono); padding-block: 6px; transition: color .2s; }
  .filter-bar button:hover { color: var(--text); }
  .filter-bar button[aria-pressed="true"] { color: var(--text); }
  .filter-bar button[aria-pressed="true"]::before { content: "• "; color: var(--accent); }
  .filter-count { margin-left: auto; font: .7rem/1.5 var(--mono); color: var(--dim); }

  /* Project rows (Enhanced Domaines-Style) */
  @keyframes hint-pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(189, 201, 173, 0.55); }
    50% { opacity: .75; transform: scale(1.15); box-shadow: 0 0 0 5px rgba(189, 201, 173, 0); }
  }
  .projects-hint-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    font: .75rem/1.5 var(--mono);
    color: var(--muted);
    margin-bottom: 30px;
    padding: 10px 14px;
    background: rgba(189, 201, 173, 0.025);
    border: 1px dashed rgba(189, 201, 173, 0.15);
    border-radius: 4px;
  }
  .projects-hint-strip .hint-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    box-shadow: 0 0 8px var(--accent);
    animation: hint-pulse 2.4s infinite ease-in-out;
    flex-shrink: 0;
  }
  .project-row {
    border-top: 1px solid var(--line);
    position: relative;
    transition: background .25s ease, border-color .25s ease;
  }
  .project-row:last-of-type {
    border-bottom: 1px solid var(--line);
  }
  .project-row::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent-glow);
    opacity: 0;
    transition: opacity .3s var(--ease);
    pointer-events: none;
    z-index: 0;
  }
  .project-row:hover::after {
    opacity: 1;
  }
  .project-row::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(520px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(189, 201, 173, 0.08), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
    border-radius: inherit;
    z-index: 1;
  }
  .project-row:hover::before {
    opacity: 1;
  }

  .project-main {
    display: grid;
    grid-template-columns: 50px 1.25fr 1fr auto;
    width: 100%;
    text-align: left;
    gap: clamp(20px, 3.5vw, 36px);
    padding: clamp(26px, 3.6vw, 38px) clamp(10px, 2vw, 18px);
    align-items: center;
    cursor: pointer;
    list-style: none;
    position: relative;
    z-index: 2;
    user-select: none;
  }
  .project-main::-webkit-details-marker { display: none; }
  .project-main::marker { display: none; }

  .project-no {
    font: .8rem/1 var(--mono);
    color: var(--dim);
    transition: color .2s;
  }
  .project-row:hover .project-no {
    color: var(--accent);
  }

  .project-name {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .project-name h2, .project-name .project-heading {
    display: block;
    font: 500 clamp(1.8rem, 3.2vw, 3.3rem)/1.02 var(--sans);
    color: var(--text);
    letter-spacing: -.05em;
    margin: 0;
    transition: color .25s var(--ease), transform .25s var(--ease);
  }
  .project-row:hover .project-heading {
    color: var(--accent);
    transform: translateX(4px);
  }
  .project-tag {
    display: inline-block;
    color: var(--dim);
    font: .68rem/1.4 var(--mono);
    letter-spacing: .06em;
    transition: color .2s;
  }
  .project-row:hover .project-tag {
    color: var(--muted);
  }

  .project-summary {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.6;
    max-width: 42ch;
    margin: 0;
    transition: color .2s;
  }
  .project-row:hover .project-summary {
    color: #c5cbc0;
  }

  /* Action Pill (Explicit Button) */
  .project-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  .action-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    background: rgba(189, 201, 173, 0.03);
    border-radius: 999px;
    font: .72rem/1 var(--mono);
    letter-spacing: .05em;
    color: var(--muted);
    transition: all .25s var(--ease);
    white-space: nowrap;
  }
  .action-arrow {
    font-size: .95rem;
    line-height: 1;
    transition: transform .25s var(--ease), color .25s;
  }
  .action-icon {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    display: inline-block;
    vertical-align: middle;
    transition: transform .25s var(--ease), color .25s;
  }
  .project-row:hover .action-pill {
    border-color: var(--accent);
    background: rgba(189, 201, 173, 0.12);
    color: var(--text);
    box-shadow: 0 0 16px rgba(189, 201, 173, 0.12);
    transform: translateX(3px);
  }
  .project-row:active .action-pill {
    transform: translateX(3px) scale(0.97);
  }
  .project-row:hover .action-arrow,
  .project-row:hover .action-icon {
    transform: translate(2px, -2px);
    color: var(--accent);
  }
  .project-main:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
  }

  .project-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: 35px; }
  .project-foot p { color: var(--muted); font-size: .85rem; }

  /* Dialog */
  .dialog { color: var(--text); background: var(--bg); border: 1px solid var(--line); margin: auto; padding: 0; width: min(980px, calc(100% - 28px)); max-height: calc(100svh - 28px); }
  .dialog::backdrop { background: rgb(0 0 0 / .85); backdrop-filter: blur(8px); }
  .dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 24px 32px; border-bottom: 1px solid var(--line); }
  .dialog-close { width: 40px; height: 40px; border: 1px solid var(--line); font-size: 1.6rem; line-height: 1; transition: background .2s, color .2s, border-color .2s; }
  .dialog-close:hover { color: var(--inverse); background: var(--paper); border-color: var(--paper); }
  .dialog-content { padding: clamp(24px, 5vw, 65px); overflow-y: auto; max-height: calc(100svh - 120px); }
  .dialog-content h2 { margin-bottom: 25px; }
  .dialog-content h3 { margin-top: 35px; margin-bottom: 15px; font-size: 1.4rem; letter-spacing: -.03em; }
  .dialog-content p { color: var(--muted); }
  .dialog-content img { max-height: 520px; width: 100%; object-fit: contain; margin-top: 30px; background: var(--surface); }
  .dialog-content .text-link { margin-top: 36px; }

  /* Project Tech Specs Strip */
  .tech-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 24px 0 32px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 4px;
  }
  .spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .spec-label {
    font: 600 .65rem/1.3 var(--mono);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent);
  }
  .spec-value {
    font: .86rem/1.4 var(--sans);
    color: var(--text);
  }

  /* Project Media Gallery */
  .project-media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 32px 0 24px;
  }
  @media (max-width: 768px) {
    .project-media-grid {
      grid-template-columns: 1fr;
    }
  }
  .project-media-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0;
    transition: border-color .2s var(--ease);
  }
  .project-media-card:hover {
    border-color: var(--accent);
  }
  .project-media-card img,
  .project-media-card video {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: #0d0f0c;
    margin-top: 0 !important;
    display: block;
  }
  .project-media-card.span-2 {
    grid-column: span 2;
  }
  @media (max-width: 768px) {
    .project-media-card.span-2 {
      grid-column: span 1;
    }
  }
  .project-media-card.span-2 img {
    height: 340px;
    object-position: center 25%;
  }
  .project-media-caption {
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.015);
    font-size: .8rem;
    line-height: 1.5;
    color: var(--muted);
  }
  .project-media-caption strong {
    color: var(--text);
    display: block;
    margin-bottom: 2px;
    font-size: .84rem;
  }

  /* Voyages Index Section (Sommaire des récits) */
  .voyages-index-section {
    margin-bottom: clamp(60px, 8vw, 95px);
    border-top: 1px solid var(--line);
    padding-top: clamp(26px, 3.5vw, 40px);
  }
  .voyages-index-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
  }
  .voyages-index-header h2 {
    font: var(--small)/1.5 var(--mono);
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0;
  }
  .voyages-count {
    font: .75rem/1.5 var(--mono);
    color: var(--dim);
  }
  .voyages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
  .voyage-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(22px, 2.4vw, 30px);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.015);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .25s var(--ease), border-color .25s ease, background .25s ease, box-shadow .25s ease;
  }
  .voyage-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(450px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(189, 201, 173, 0.08), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
  }
  .voyage-card:hover::after {
    opacity: 1;
  }
  .voyage-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: rgba(189, 201, 173, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 16px rgba(189, 201, 173, 0.06);
  }
  .voyage-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
  }
  .voyage-card-no {
    font: .78rem/1 var(--mono);
    color: var(--dim);
    transition: color .2s;
  }
  .voyage-card:hover .voyage-card-no {
    color: var(--accent);
  }
  .voyage-card-year {
    font: .72rem/1 var(--mono);
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
  }
  .voyage-card-body h3 {
    font-size: clamp(1.45rem, 2vw, 1.95rem);
    letter-spacing: -.04em;
    margin: 0 0 12px;
    transition: color .2s;
  }
  .voyage-card:hover .voyage-card-body h3 {
    color: var(--accent);
  }
  .voyage-card-desc {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.6;
    margin: 0 0 22px;
  }
  .voyage-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    margin-top: auto;
  }
  .voyage-card-tag {
    font: .68rem/1.3 var(--mono);
    color: var(--dim);
    letter-spacing: .04em;
  }
  .voyage-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: .74rem/1 var(--mono);
    color: var(--muted);
    transition: color .2s, transform .2s;
  }
  .voyage-card:hover .voyage-card-cta {
    color: var(--text);
  }
  .voyage-card-cta .arrow {
    display: inline-block;
    transition: transform .25s var(--ease);
  }
  .voyage-card:hover .voyage-card-cta .arrow {
    transform: translateY(2px);
    color: var(--accent);
  }

  /* Upcoming journey cards in top summary */
  .voyage-card.is-upcoming {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.012);
    cursor: default;
  }
  .voyage-card.is-upcoming:hover {
    transform: translateY(-2px);
    border-color: rgba(189, 201, 173, 0.35);
    background: rgba(189, 201, 173, 0.025);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
  .voyage-card.is-upcoming .voyage-card-no {
    opacity: 0.45;
  }
  .voyage-card.is-upcoming .voyage-card-cta {
    color: var(--dim);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  /* Article voyage */
  .journey {
    padding-block: clamp(55px, 8vw, 100px);
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: clamp(210px, 20vw, 280px) 1fr;
    gap: clamp(35px, 5vw, 80px);
    align-items: start;
    scroll-margin-top: calc(var(--header-h) + 25px);
  }

  /* Meta colonne gauche */
  .journey-meta { position: sticky; top: calc(var(--header-h) + 30px); }
  .journey-meta > .eyebrow { margin-bottom: 8px; }
  .journey-meta h2 {
    font-size: clamp(2rem, 3.2vw, 3.4rem);
    letter-spacing: -.05em;
    margin-top: 4px;
    margin-bottom: 20px;
    line-height: 1;
    word-break: break-word;
  }
  .journey-back-cue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font: .75rem/1.4 var(--mono);
    color: var(--dim);
    transition: color .2s, transform .2s;
  }
  .journey-back-cue:hover {
    color: var(--accent);
    transform: translateY(-2px);
  }
  .journey-back-cue .arrow {
    font-size: .85rem;
    transition: transform .2s;
  }
  .journey-back-cue:hover .arrow {
    transform: translateY(-2px);
  }

  /* Stats du voyage */
  .journey-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--surface);
  }
  .journey-stats > div {
    padding: 10px 14px;
    border-right: 1px solid var(--line);
  }
  .journey-stats > div:last-child {
    border-right: 0;
  }
  .journey-stats dt { font: .62rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
  .journey-stats dd { font: .78rem/1.5 var(--mono); color: var(--text); margin: 0; margin-top: 3px; white-space: nowrap; }

  /* Récit colonne droite */
  .journey .story { color: var(--muted); font-size: clamp(.97rem, 1.1vw, 1.08rem); line-height: 1.78; }
  .journey .story p:first-child { color: var(--text); font-size: clamp(1.05rem, 1.4vw, 1.28rem); line-height: 1.65; }
  .journey .story p + p { margin-top: 1.4em; }

  /* Blockquote amélioré */
  .journey-highlight {
    border-left: 2px solid var(--accent);
    padding: 16px 22px;
    margin-block: 32px;
    font-style: italic;
    color: var(--text);
    font-size: clamp(1rem, 1.3vw, 1.18rem);
    line-height: 1.65;
    background: rgba(189, 201, 173, 0.04);
  }

  /* Journey video embed & card */
  .journey-video-card {
    margin-top: 36px;
    max-width: 580px;
    width: 100%;
    background: #171915;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 14px 16px 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  }
  .journey-video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }
  .journey-video-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 0.76rem/1.4 var(--mono);
    color: var(--dim);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .video-play-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e06c75;
    box-shadow: 0 0 8px rgba(224, 108, 117, 0.6);
  }
  .journey-video-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font: 0.74rem/1.3 var(--mono);
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
  }
  .journey-video-link:hover {
    color: #e2edd2;
    transform: translateX(2px);
  }
  .journey-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 3px;
    overflow: hidden;
    background: #0d0f0c;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  .journey-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
  .journey-video, .video-embed {
    margin-top: 36px;
    max-width: 580px;
    width: 100%;
    position: relative;
    aspect-ratio: 16/9;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
  }
  .journey-video iframe, .video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

  /* Upcoming journey notice */
  .journey-upcoming-notice {
    background: #171915;
    border: 1px dashed rgba(189, 201, 173, 0.28);
    border-radius: 4px;
    padding: clamp(22px, 2.8vw, 32px);
    margin-bottom: 24px;
  }
  .upcoming-notice-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 0.72rem/1.4 var(--mono);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    background: rgba(189, 201, 173, 0.08);
    border: 1px solid rgba(189, 201, 173, 0.2);
    border-radius: 100px;
    margin-bottom: 14px;
  }
  .journey-upcoming-notice h3 {
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    color: var(--text);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
  }
  .journey-upcoming-notice p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0 0 8px;
  }
  .upcoming-notice-sub {
    color: var(--dim) !important;
    font-size: 0.86rem !important;
  }
  .upcoming-stages-preview {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }
  .upcoming-stages-title {
    display: block;
    font: 0.75rem/1.4 var(--mono);
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
  }
  .upcoming-stages-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .upcoming-stages-list li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 3px;
    font-size: 0.88rem;
    color: var(--text);
    transition: border-color 0.2s, background 0.2s;
  }
  .upcoming-stages-list li:hover {
    border-color: rgba(189, 201, 173, 0.35);
    background: rgba(189, 201, 173, 0.04);
  }
  .upcoming-stages-list li.active {
    border-color: var(--accent);
    background: rgba(189, 201, 173, 0.08);
  }
  .upcoming-stages-list li .stage-tag {
    font: 0.7rem/1.2 var(--mono);
    color: var(--dim);
    white-space: nowrap;
  }
  .upcoming-stages-list li strong {
    color: var(--accent);
    font-weight: 500;
  }

  /* Journey tips box */
  .journey-tips-box {
    margin-top: 32px;
    border: 1px solid var(--line);
    background: #0d0f0c;
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border-radius: 2px;
    border-left: 3px solid var(--accent);
  }
  .tips-box-content h4 {
    font-size: 1.05rem;
    color: var(--text);
    margin-block: 6px 4px;
  }
  .tips-box-content p {
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.5;
    margin: 0;
  }

  /* ── Story layout with right-hand SVG route aside ────── */
  .story-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
  }
  @media (min-width: 1140px) {
    .story-layout {
      grid-template-columns: minmax(0, 1fr) clamp(280px, 23vw, 330px);
      gap: clamp(28px, 3.2vw, 52px);
    }
  }
  .story-prose {
    min-width: 0;
  }
  .journey-route-aside {
    width: 100%;
    margin-top: 8px;
  }
  @media (min-width: 1140px) {
    .journey-route-aside {
      position: sticky;
      top: calc(var(--header-h) + 24px);
      margin-top: 0;
    }
  }
  .route-card {
    background: #171915;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  .route-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(189, 201, 173, 0.08), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
  }
  .route-card:hover::before { opacity: 1; }
  .route-card:hover {
    border-color: rgba(189, 201, 173, 0.45);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.55);
  }
  .route-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }
  .route-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: .68rem/1.2 var(--mono);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent);
    font-weight: 500;
  }
  .route-compass-icon {
    color: var(--accent);
    flex-shrink: 0;
  }
  .route-code {
    font: .68rem/1.2 var(--mono);
    color: var(--dim);
  }
  .route-svg-wrap {
    width: 100%;
    background: #080a08;
    border: 1px solid rgba(189, 201, 173, 0.2);
    border-radius: 4px;
    padding: 0;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.85);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  .route-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  .route-svg * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  .route-svg text {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
  }
  /* Dark-matter cartographic layers (matching user reference) */
  .map-land { fill: #090d0a; }
  .map-sea { fill: #040605; }
  .map-border-line {
    fill: none;
    stroke: rgba(140, 160, 125, 0.35);
    stroke-width: 0.7;
    stroke-dasharray: 2.5 2;
  }
  .map-road-network {
    fill: none;
    stroke: #6b8052;
    stroke-width: 0.95;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.88;
  }
  .map-road-secondary {
    fill: none;
    stroke: #51623d;
    stroke-width: 0.65;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.75;
  }
  .map-road-faint {
    fill: none;
    stroke: #3b472c;
    stroke-width: 0.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.65;
  }
  .map-river {
    fill: none;
    stroke: #12211c;
    stroke-width: 2.0;
    stroke-linecap: round;
  }
  .map-river-core {
    fill: none;
    stroke: #4d8272;
    stroke-width: 0.65;
    stroke-linecap: round;
    opacity: 0.55;
  }
  .map-water-lake {
    fill: #060907;
    stroke: #2d3f2e;
    stroke-width: 0.75;
  }

  /* Active trip highlights */
  .map-route-glow {
    fill: none;
    stroke: var(--accent, #bdc9ad);
    stroke-width: 5.5;
    opacity: 0.28;
    filter: blur(2px);
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .map-route-core {
    fill: none;
    stroke: #e2edd2;
    stroke-width: 2.0;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 3px rgba(226, 237, 210, 0.4));
  }
  .map-route-spur {
    fill: none;
    stroke: #c8d8b6;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 3.5 2.5;
  }

  /* Map labels matching Mapbox Dark typography */
  .map-label-country {
    fill: rgba(215, 225, 205, 0.82);
    font-family: var(--sans);
    font-size: 8.8px;
    font-weight: 700;
    letter-spacing: 0.18em;
    pointer-events: none;
  }
  .map-label-region {
    fill: rgba(180, 195, 168, 0.55);
    font-family: var(--sans);
    font-size: 6.8px;
    font-weight: 600;
    letter-spacing: 0.08em;
    pointer-events: none;
  }
  .map-label-city {
    fill: rgba(195, 208, 185, 0.75);
    font-family: var(--sans);
    font-size: 6.8px;
    font-weight: 600;
    letter-spacing: 0.06em;
    paint-order: stroke fill;
    stroke: #171915;
    stroke-width: 2.2px;
    stroke-linejoin: round;
    pointer-events: none;
  }
  .map-label-subscript {
    fill: rgba(145, 160, 132, 0.48);
    font-family: var(--sans);
    font-size: 5.2px;
    font-weight: 400;
    letter-spacing: 0.04em;
    paint-order: stroke fill;
    stroke: #171915;
    stroke-width: 1.8px;
    stroke-linejoin: round;
    pointer-events: none;
  }

  /* Legacy aliases for compatibility */
  .topo-relief-1 { fill: #0b0e0b; }
  .topo-relief-2 { fill: #0f130f; }
  .topo-relief-3 { fill: #131713; }
  .topo-relief-snow { fill: #1c221b; }
  .topo-contour { fill: none; stroke: rgba(189, 201, 173, 0.15); stroke-width: 0.7; }
  .topo-water-body { fill: #142834; stroke: #2e596e; stroke-width: 0.8; }
  .topo-water-flow { fill: none; stroke: #254b5c; stroke-linecap: round; }
  .topo-water-accent { fill: none; stroke: #4886a4; stroke-linecap: round; }
  .route-casing { fill: none; stroke: #080a08; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
  .route-core { fill: none; stroke-linecap: round; stroke-linejoin: round; }

  /* Nodes & Typography */
  .svg-node {
    cursor: pointer;
    transition: opacity .18s ease;
  }
  .svg-node .hit-area {
    pointer-events: all;
  }
  .svg-node:not(.is-current):not(.is-visited) {
    opacity: 0.85;
  }
  .svg-node:hover,
  .svg-node.is-hovered {
    opacity: 1 !important;
  }
  .node-pin-core {
    fill: #141712;
    stroke: var(--accent, #bdc9ad);
    stroke-width: 1.5;
    transition: fill .2s, stroke .2s, filter .2s;
  }
  .svg-node:hover .node-pin-core,
  .svg-node.is-hovered .node-pin-core {
    stroke: #ffffff;
    stroke-width: 1.8;
    filter: drop-shadow(0 0 6px var(--accent, #bdc9ad));
  }
  .svg-node:hover .node-label,
  .svg-node.is-hovered .node-label {
    fill: #ffffff;
  }
  .node-label,
  .node-label-text {
    fill: #d2d8ca;
    font-family: var(--mono);
    font-size: 8.5px;
    font-weight: 500;
    letter-spacing: .025em;
    paint-order: stroke fill;
    stroke: #171915;
    stroke-width: 2.8px;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.95));
    transition: fill .2s, font-weight .2s, font-size .2s;
    pointer-events: none;
  }
  .node-label-alt,
  .node-label-sub {
    fill: #868e7f;
    font-family: var(--mono);
    font-size: 7px;
    letter-spacing: .02em;
    paint-order: stroke fill;
    stroke: #171915;
    stroke-width: 2.4px;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.95));
    transition: fill .2s;
    pointer-events: none;
  }

  /* Active / Current node on scroll or click */
  .svg-node.is-current {
    opacity: 1 !important;
  }
  .svg-node.is-current .node-label,
  .svg-node.is-current .node-label-text {
    fill: #ffffff;
    font-weight: 700;
    font-size: 9.2px;
  }
  .svg-node.is-current .node-label-alt,
  .svg-node.is-current .node-label-sub {
    fill: var(--accent, #bdc9ad);
    font-weight: 600;
  }
  .svg-node.is-current .node-pin-core {
    fill: var(--accent, #bdc9ad);
    stroke: #ffffff;
    stroke-width: 1.8;
    filter: drop-shadow(0 0 8px var(--accent, #bdc9ad));
  }
  .svg-node.is-visited .node-pin-core {
    fill: #bdc9ad;
    stroke: #10120e;
  }

  /* Active pill indicator: displayed cleanly on the current node */
  .active-node-pill {
    display: none;
    fill: rgba(15, 19, 14, 0.95);
    stroke: var(--accent, #bdc9ad);
    stroke-width: 1.2;
    filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.9));
    pointer-events: none;
  }
  .svg-node.is-current .active-node-pill {
    display: block;
  }

  /* Hover synchronization with route stage buttons */
  .route-stage-item.is-hovered {
    background: rgba(189, 201, 173, 0.12);
    border-color: rgba(189, 201, 173, 0.4);
    transform: translateX(4px);
  }

  .topo-water-label {
    fill: #4e92b3;
    font-family: var(--mono);
    font-size: 6.8px;
    font-style: italic;
    letter-spacing: .03em;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.95));
    pointer-events: none;
  }
  .topo-contour-label {
    fill: rgba(189, 201, 173, 0.45);
    font-family: var(--mono);
    font-size: 6.2px;
    letter-spacing: .04em;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.95));
    pointer-events: none;
  }

  /* Beacon pulse animation */
  @keyframes beaconRipple {
    0% {
      r: 4;
      opacity: 0.95;
      stroke-width: 2.2;
    }
    50% {
      opacity: 0.6;
    }
    100% {
      r: 20;
      opacity: 0;
      stroke-width: 0.4;
    }
  }
  .beacon-pulse {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.5;
    animation: beaconRipple 1.8s cubic-bezier(0.15, 0.8, 0.25, 1) infinite;
    pointer-events: none;
    display: none;
  }
  .svg-node.is-current .beacon-pulse {
    display: block;
  }
  @media (prefers-reduced-motion: reduce) {
    .beacon-pulse {
      animation: none;
      display: none !important;
    }
  }

  .route-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-block: 10px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .route-stat-lbl {
    display: block;
    font: .62rem/1.3 var(--mono);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--dim);
  }
  .route-stat-val {
    display: block;
    font: .78rem/1.4 var(--mono);
    color: var(--text);
    margin-top: 2px;
    white-space: nowrap;
    transition: color .2s ease;
  }
  .route-stat-val.is-highlight {
    color: var(--accent);
    font-weight: 600;
  }
  .route-stages-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
  }
  .route-stage-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font: .72rem/1.3 var(--mono);
    color: var(--muted);
    padding: 6px 8px;
    border-radius: 3px;
    border-left: 2px solid transparent;
    cursor: pointer;
    background: transparent;
    text-align: left;
    width: 100%;
    border-top: none;
    border-right: none;
    border-bottom: none;
    transition: background .2s, color .2s, border-color .2s, transform .15s;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  .route-stage-item:hover {
    background: rgba(189, 201, 173, 0.08);
    color: var(--text);
  }
  .route-stage-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dim);
    flex-shrink: 0;
    transition: background .2s, transform .2s, box-shadow .2s;
  }
  .route-stage-item.completed {
    color: var(--text);
  }
  .route-stage-item.completed .route-stage-dot {
    background: #8b9980;
  }
  .route-stage-item.active {
    background: rgba(189, 201, 173, 0.12);
    border-left-color: var(--accent);
    color: #ffffff;
    font-weight: 600;
  }
  .route-stage-item.active .route-stage-dot {
    background: var(--accent);
    transform: scale(1.4);
    box-shadow: 0 0 8px var(--accent);
  }
  .route-stage-name {
    flex-grow: 1;
    transition: transform .15s;
  }
  .route-stage-item.active .route-stage-name {
    transform: translateX(2px);
  }
  .route-stage-alt {
    color: var(--dim);
    font-size: .68rem;
    font-variant-numeric: tabular-nums;
  }
  .route-stage-item.active .route-stage-alt {
    color: var(--accent);
  }

  /* ── Travel handbook / Collapsible Tips Drawer ────── */
  details.travel-handbook {
    margin-top: clamp(36px, 5vw, 56px);
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 6px;
    padding: 0;
    transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
    overflow: hidden;
  }
  details.travel-handbook:hover {
    border-color: rgba(189, 201, 173, 0.4);
  }
  details.travel-handbook[open] {
    border-color: var(--accent);
    background: #191b17;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  }
  .travel-handbook-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: clamp(20px, 3.2vw, 30px);
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background .2s var(--ease);
  }
  .travel-handbook-summary::-webkit-details-marker { display: none; }
  .travel-handbook-summary:hover {
    background: rgba(189, 201, 173, 0.04);
  }
  .travel-handbook-summary-content {
    flex: 1;
    min-width: 0;
  }
  .travel-handbook-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }
  .handbook-count-badge {
    font: 600 .68rem/1.3 var(--mono);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent);
    background: rgba(189, 201, 173, 0.1);
    border: 1px solid rgba(189, 201, 173, 0.25);
    padding: 3px 8px;
    border-radius: 2px;
  }
  .travel-handbook-title {
    font-size: clamp(1.22rem, 2vw, 1.65rem);
    font-weight: 500;
    letter-spacing: -.03em;
    color: var(--text);
    margin: 0 0 8px;
    line-height: 1.22;
  }
  details.travel-handbook[open] .travel-handbook-title {
    color: var(--accent-warm);
  }
  .travel-handbook-lead {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.55;
    max-width: 65ch;
    margin: 0;
  }
  .travel-handbook-trigger {
    flex-shrink: 0;
  }
  .handbook-toggle-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 600 .75rem/1 var(--mono);
    color: var(--accent);
    background: rgba(189, 201, 173, 0.08);
    border: 1px solid rgba(189, 201, 173, 0.25);
    padding: 9px 15px;
    border-radius: 999px;
    transition: background .2s, border-color .2s, color .2s, transform .2s;
  }
  .travel-handbook-summary:hover .handbook-toggle-pill {
    background: var(--accent);
    color: #0d0f0c;
  }
  .toggle-text-open { display: none; }
  .toggle-text-closed { display: inline; }
  details.travel-handbook[open] .toggle-text-open { display: inline; }
  details.travel-handbook[open] .toggle-text-closed { display: none; }
  .toggle-icon {
    width: 14px;
    height: 14px;
    transition: transform .3s var(--ease);
  }
  details.travel-handbook[open] .toggle-icon {
    transform: rotate(180deg);
  }

  /* Body inside unfolded drawer */
  .travel-handbook-body {
    padding: 0 clamp(20px, 3.2vw, 30px) clamp(24px, 3.5vw, 36px);
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.2);
    animation: drawer-fade-down .35s var(--ease) both;
  }
  @keyframes drawer-fade-down {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .handbook-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-block: 16px 12px;
    border-bottom: 1px dashed var(--line);
    margin-bottom: 20px;
    font: .76rem/1.4 var(--mono);
  }
  .toolbar-note {
    color: var(--dim);
  }
  .toolbar-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
  }
  .handbook-btn-toggle {
    font: .68rem/1 var(--mono);
    color: var(--muted);
    border: 1px solid var(--line);
    background: #141513;
    padding: 5px 10px;
    border-radius: 2px;
    cursor: pointer;
    transition: color .2s, border-color .2s, background .2s;
  }
  .handbook-btn-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(189, 201, 173, 0.08);
  }

  /* Handbook cards as collapsibles inside grid */
  .handbook-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  @media (max-width: 820px) {
    .handbook-grid { grid-template-columns: 1fr; }
    .travel-handbook-summary { flex-direction: column; align-items: flex-start; gap: 14px; }
    .travel-handbook-trigger { align-self: flex-start; }
    .handbook-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  }
  details.handbook-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color .2s var(--ease), background .2s var(--ease);
    overflow: hidden;
  }
  details.handbook-card:hover {
    border-color: var(--accent);
    background: #1e201c;
  }
  details.handbook-card.warning-card {
    border-left: 3px solid #e06c75;
    background: rgba(224, 108, 117, 0.03);
  }
  details.handbook-card.warning-card:hover {
    border-color: rgba(224, 108, 117, 0.4);
    border-left-color: #e06c75;
    background: rgba(224, 108, 117, 0.06);
  }
  .handbook-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background .2s var(--ease);
  }
  .handbook-card-header::-webkit-details-marker { display: none; }
  .handbook-card-header:hover {
    background: rgba(255, 255, 255, 0.02);
  }
  .handbook-card-header h4 {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    letter-spacing: -.01em;
  }
  .card-header-meta {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .card-chevron {
    color: var(--dim);
    font-size: .8rem;
    transition: transform .25s var(--ease), color .2s;
  }
  details.handbook-card[open] .card-chevron {
    transform: rotate(180deg);
    color: var(--accent);
  }
  details.handbook-card.warning-card[open] .card-chevron {
    color: #e06c75;
  }
  .handbook-card-header:hover .card-chevron {
    color: var(--text);
  }
  .handbook-badge {
    font: 600 .68rem/1.3 var(--mono);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent);
    background: rgba(189, 201, 173, 0.08);
    padding: 3px 8px;
    border-radius: 2px;
    border: 1px solid rgba(189, 201, 173, 0.16);
    white-space: nowrap;
  }
  details.handbook-card.warning-card .handbook-badge {
    color: #e06c75;
    background: rgba(224, 108, 117, 0.1);
    border-color: rgba(224, 108, 117, 0.25);
  }
  .handbook-list {
    list-style: none;
    padding: 0 20px 18px 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: .86rem;
    line-height: 1.55;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 14px;
  }
  .handbook-list li {
    position: relative;
    padding-left: 18px;
  }
  .handbook-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
  }
  details.handbook-card.warning-card .handbook-list li::before {
    color: #e06c75;
  }
  .handbook-list strong {
    color: var(--text);
    font-weight: 600;
  }
  .handbook-list em {
    font-style: italic;
    color: var(--dim);
    font-size: .82rem;
  }
  .handbook-note {
    font-size: .8rem;
    line-height: 1.45;
    color: var(--dim);
    border-top: 1px dashed var(--line);
    padding: 10px 20px 16px;
    margin: 0;
  }

  .status-note { display: inline-flex; border: 1px solid var(--line); padding: 8px 12px; font: .65rem/1.5 var(--mono); color: var(--muted); margin-top: 25px; }

  /* Section terrain */
  .terrain-section .section-head { margin-bottom: clamp(36px, 5vw, 60px); }
  .field-notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
  .field-note { padding: clamp(28px, 4vw, 50px) clamp(22px, 3.5vw, 40px); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); position: relative; overflow: hidden; }
  .field-note-no {
    display: block;
    font: 700 clamp(4rem, 8vw, 8rem)/1 var(--mono);
    letter-spacing: -.1em;
    color: transparent;
    -webkit-text-stroke: 1px var(--line);
    margin-bottom: clamp(16px, 2.5vw, 28px);
    transition: -webkit-text-stroke-color .3s;
  }
  .field-note:hover .field-note-no { -webkit-text-stroke-color: var(--dim); }
  .field-note h3 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); margin-bottom: 16px; }
  .field-note p { color: var(--muted); font-size: .95rem; line-height: 1.7; }



  /* Photo grid */
  .photo-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 70px 32px; align-items: start; padding-bottom: var(--space); }
  .photo-grid figure:nth-child(1) { grid-column: 1 / 13; }
  .photo-grid figure:nth-child(2) { grid-column: 1 / 7; padding-right: 12%; }
  .photo-grid figure:nth-child(3) { grid-column: 8 / 13; padding-top: 100px; }
  .photo-button { display: block; width: 100%; overflow: hidden; background: var(--surface); text-align: left; }
  .photo-button img { width: 100%; transition: transform .8s var(--ease), filter .5s; }
  .photo-button:hover img { transform: scale(1.02); filter: brightness(1.08); }
  .photo-grid figcaption { display: flex; justify-content: space-between; gap: 18px; margin-top: 16px; font: .7rem/1.5 var(--mono); color: var(--muted); }
  .lightbox { position: fixed; inset: 0; max-width: none; max-height: none; width: 100%; height: 100svh; border: 0; background: #10110f; margin: 0; color: var(--text); padding: 30px var(--gutter); }
  .lightbox-inner { display: flex; flex-direction: column; height: 100%; }
  .lightbox-header, .lightbox-footer { display: flex; justify-content: space-between; gap: 20px; align-items: center; font: .75rem/1.5 var(--mono); }
  .lightbox-image-wrap { min-height: 0; flex: 1; display: flex; justify-content: center; padding-block: 25px; }
  .lightbox-image-wrap img { max-width: 100%; height: 100%; width: auto; object-fit: contain; transition: opacity .3s; }
  .lightbox-buttons { display: flex; gap: 12px; }
  .lightbox-buttons button { border: 1px solid var(--line); width: 45px; height: 40px; font-size: 1.1rem; transition: border-color .2s, background .2s; }
  .lightbox-buttons button:hover { border-color: var(--text); background: var(--surface); }

  /* Cyber / Notes */
  .ctf-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; padding-bottom: var(--space); }
  .ctf-sidebar { position: sticky; top: 35px; }
  .ctf-sidebar > p { margin-bottom: 24px; }
  .ctf-sidebar a { display: block; font: .78rem/1.6 var(--mono); color: var(--muted); margin-block: 12px; transition: color .2s, padding-left .2s; }
  .ctf-sidebar a:hover { color: var(--text); padding-left: 6px; }
  .search-label { display: block; font: .7rem/1.5 var(--mono); color: var(--muted); margin-top: 36px; }
  .search-input { width: 100%; margin-top: 12px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--text); background: transparent; font: .8rem/1.5 var(--mono); transition: border-color .2s; }
  .search-input:focus { outline: none; border-color: var(--accent); }
  .search-input::placeholder { color: var(--dim); }
  .terminal-intro { border: 1px solid var(--line); margin-bottom: 55px; padding: 25px; font: .8rem/1.9 var(--mono); background: #0d0f0c; }
  .terminal-intro .prompt { color: var(--accent); }
  .terminal-intro p { color: var(--muted); }
  .terminal-intro p:first-child { color: var(--text); }
  .technical-note { padding-bottom: 65px; margin-bottom: 65px; border-bottom: 1px solid var(--line); scroll-margin-top: 40px; }
  .technical-note h2 { font-size: clamp(2rem, 3.3vw, 3.5rem); margin-block: 24px; }
  .technical-note > p { color: var(--muted); }
  .code-block { margin-block: 28px; border: 1px solid var(--line); background: #0d0f0c; }
  .code-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); font: .68rem/1.5 var(--mono); color: var(--muted); }
  .copy-code { padding: 6px; color: var(--accent); transition: color .2s; }
  .copy-code:hover { color: var(--text); }
  pre { overflow-x: auto; padding: 22px; font-size: .83rem; line-height: 1.8; tab-size: 2; color: #d6ddcd; }
  pre code { color: #abb2bf; font-family: var(--mono); }
  .note-detail { color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; font-size: .88rem; }
  .empty-message { padding-block: 50px; font-size: 1.1rem; color: var(--muted); }

  /* ─── Code Syntax Highlighting ─── */
  .hl-com { color: #6d7864; font-style: italic; } /* comments */
  .hl-str { color: #e5c07b; } /* strings: warm gold */
  .hl-num { color: #e09f67; } /* numbers: soft coral */
  .hl-kwd { color: #c678dd; font-weight: 500; } /* keywords: soft purple/magenta */
  .hl-fn { color: #61afef; } /* function calls: soft cyan-blue */
  .hl-built { color: #56b6c2; } /* builtins: teal/mint */
  .hl-flag { color: #d19a66; } /* CLI flags: soft amber */

  /* Tag badges */
  .tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: .68rem/1 var(--mono);
    padding: 5px 9px;
    background: rgba(189, 201, 173, 0.1);
    border: 1px solid rgba(189, 201, 173, 0.25);
    color: var(--accent);
    border-radius: 2px;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .tag-badge.dim {
    background: rgba(119, 124, 114, 0.12);
    border-color: var(--line);
    color: var(--muted);
  }

  /* CTF featured cards */
  .ctf-featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 50px;
  }
  .featured-card {
    border: 1px solid var(--line);
    background: #0d0f0c;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    transition: border-color .25s, transform .25s var(--ease);
  }
  .featured-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
  }
  .featured-card h3 {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    line-height: 1.1;
    margin-block: 6px;
  }
  .featured-card p {
    color: var(--muted);
    font-size: .88rem;
  }
  .featured-card img {
    border-radius: 2px;
    border: 1px solid var(--line);
    margin-top: 10px;
    width: 100%;
  }

  /* ─── Cyber Tools & Resources Cards ─── */
  .arsenal-header, .outils-header {
    border-bottom: 1px solid var(--line);
    padding-bottom: 30px;
    margin-bottom: 45px;
  }
  .arsenal-header h2, .outils-header h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    margin-block: 8px 12px;
    letter-spacing: -.02em;
  }
  .arsenal-header p, .outils-header p {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.65;
    max-width: 720px;
  }
  .arsenal-category, .outils-category {
    margin-bottom: 55px;
    scroll-margin-top: 45px;
  }
  .cat-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
    margin-bottom: 18px;
  }
  .cat-title {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .cat-num {
    font: .78rem/1 var(--mono);
    color: var(--accent);
    padding: 3px 7px;
    border: 1px solid rgba(189, 201, 173, 0.25);
    background: rgba(189, 201, 173, 0.08);
    border-radius: 2px;
  }
  .cat-desc {
    color: var(--muted);
    font-size: .88rem;
    margin-bottom: 20px;
    line-height: 1.6;
  }
  .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
  }
  .tool-card {
    border: 1px solid var(--line);
    background: #0d0f0c;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    border-radius: 2px;
    position: relative;
    transition: border-color .2s, transform .2s var(--ease);
  }
  .tool-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
  }
  .tool-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 2px;
  }
  .tool-name {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: color .2s;
  }
  .tool-name:hover {
    color: var(--accent);
  }
  .tool-name .arrow {
    font-size: .8rem;
    color: var(--dim);
    transition: transform .2s, color .2s;
  }
  .tool-card:hover .tool-name .arrow {
    transform: translate(2px, -2px);
    color: var(--accent);
  }
  .tool-desc {
    color: var(--muted);
    font-size: .83rem;
    line-height: 1.55;
    margin: 0;
  }
  .tool-sublinks {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font: .72rem/1.4 var(--mono);
  }
  .tool-sublinks a {
    color: var(--muted);
    transition: color .2s;
  }
  .tool-sublinks a:hover {
    color: var(--accent);
  }

  /* Inline SVG Icons */
  .svg-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.15em;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
  }
  .svg-icon.svg-lightning {
    color: var(--accent);
  }
  .svg-icon.svg-folder {
    color: var(--accent);
    transition: transform .2s var(--ease), color .2s;
  }
  .folder-header:hover .svg-folder,
  details[open] > summary .svg-folder {
    color: var(--accent);
    transform: scale(1.08);
  }
  .sidebar-section-link .svg-icon {
    margin-right: 6px;
    vertical-align: -0.16em;
  }
  .cat-num .svg-icon {
    margin-right: 5px;
    vertical-align: -0.16em;
    color: var(--accent);
  }
  .memo-box h4 .svg-icon {
    margin-right: 8px;
    vertical-align: -0.15em;
    width: 1.1em;
    height: 1.1em;
  }
  .tool-name .svg-icon {
    width: 0.9em;
    height: 0.9em;
    margin-left: 4px;
    vertical-align: -0.12em;
    color: var(--dim);
    transition: color .2s;
  }
  .tool-card:hover .tool-name .svg-icon {
    color: var(--accent);
  }
  .memo-box {
    border: 1px solid var(--line);
    background: #0d0f0c;
    padding: 24px 26px;
    margin-block: 26px;
    border-radius: 2px;
    position: relative;
  }
  .memo-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
  }
  .memo-box h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .memo-box p {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.6;
  }
  .memo-steps {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
    counter-reset: memo-counter;
  }
  .memo-steps li {
    counter-increment: memo-counter;
    position: relative;
    padding-left: 36px;
    margin-bottom: 14px;
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.6;
  }
  .memo-steps li::before {
    content: counter(memo-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 2px;
    font: .75rem/1 var(--mono);
    color: var(--accent);
    background: rgba(189, 201, 173, 0.1);
    padding: 2px 5px;
    border-radius: 2px;
    border: 1px solid rgba(189, 201, 173, 0.2);
  }
  .sidebar-section-link {
    font-weight: 600 !important;
    color: var(--text) !important;
    border-bottom: 1px solid var(--line);
    padding-bottom: 6px;
  }
  .sidebar-section-link:hover {
    color: var(--accent) !important;
  }
  .sub-nav-group {
    margin-top: 14px;
    padding-left: 8px;
    border-left: 1px solid var(--line);
  }
  .sub-nav-group a {
    margin-block: 6px !important;
    font-size: .74rem !important;
  }

  /* Sidebar File Link (intro.txt) */
  .sidebar-file-link {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    background: #0d0f0c;
    border-radius: 2px;
    margin-block: 8px 14px !important;
    text-decoration: none;
    color: var(--text) !important;
    font: .78rem/1.3 var(--mono) !important;
    transition: border-color .2s, background .2s, color .2s !important;
  }
  .sidebar-file-link:hover, .sidebar-file-link.active {
    border-color: var(--accent);
    background: rgba(189, 201, 173, 0.06);
    color: var(--accent) !important;
  }
  .sidebar-file-link .file-badge {
    margin-left: auto;
    font: .62rem/1 var(--mono);
    padding: 2px 6px;
    border-radius: 2px;
    background: rgba(189, 201, 173, 0.12);
    border: 1px solid rgba(189, 201, 173, 0.25);
    color: var(--accent);
  }
  .trophy-badge-sm {
    color: var(--accent) !important;
    border-color: rgba(189, 201, 173, 0.35) !important;
    background: rgba(189, 201, 173, 0.08) !important;
    font-weight: 600;
  }

  /* Cyber Intro Card */
  .cyber-intro-card {
    border: 1px solid var(--line);
    background: #0d0f0c;
    margin-bottom: 55px;
    border-radius: 2px;
    scroll-margin-top: 40px;
  }
  .intro-terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    font: .72rem/1.4 var(--mono);
  }
  .intro-terminal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 600;
  }
  .intro-terminal-title .file-badge {
    font-size: .62rem;
    padding: 2px 6px;
    border-radius: 2px;
    background: rgba(189, 201, 173, 0.1);
    color: var(--accent);
    border: 1px solid rgba(189, 201, 173, 0.2);
  }
  .terminal-cmd {
    color: var(--muted);
  }
  .terminal-cmd .prompt {
    color: var(--accent);
  }
  .intro-terminal-body {
    padding: 24px 28px;
  }
  .intro-lead-desc {
    color: var(--muted);
    font-size: .94rem;
    line-height: 1.7;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--line);
  }
  .intro-lead-text {
    font: .92rem/1.85 var(--mono);
    color: var(--text);
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--line);
  }
  .intro-lead-text strong {
    color: var(--accent);
    font-weight: 600;
  }
  .intro-profiles-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
  }
  .intro-profile-item {
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.35);
    padding: 18px;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    transition: border-color .2s;
  }
  .intro-profile-item:hover {
    border-color: rgba(189, 201, 173, 0.4);
  }
  .profile-item-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
  }
  .profile-info h4 {
    font-size: 1.15rem;
    margin-top: 4px;
    color: var(--text);
  }
  .profile-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: .72rem/1 var(--mono);
    color: var(--accent);
    text-decoration: none;
    border: 1px solid rgba(189, 201, 173, 0.25);
    padding: 6px 10px;
    border-radius: 2px;
    transition: background .2s, color .2s, border-color .2s;
    white-space: nowrap;
  }
  .profile-action-btn:hover {
    background: var(--accent);
    color: #0d0f0c;
  }
  .profile-action-btn .arrow {
    font-size: .8rem;
    transition: transform .2s;
  }
  .profile-action-btn:hover .arrow {
    transform: translate(2px, -2px);
  }
  .profile-item-desc {
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.5;
    margin: 0;
  }
  .profile-img-wrap {
    margin-top: 4px;
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
  }
  .profile-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
  }
  .profile-badges-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
  }
  .profile-stat-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    font: .75rem/1.3 var(--mono);
  }
  .stat-lbl {
    color: var(--muted);
  }
  .stat-val {
    color: var(--text);
    font-weight: 600;
  }
  .stat-val.highlight-val {
    color: var(--accent);
  }
  .stat-val.trophy-val {
    color: #e5c07b;
  }

  .nobrackets-archive-banner {
    border-left-color: var(--accent) !important;
  }

  /* Sidebar Folder System */
  .sidebar-folder {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    background: #0d0f0c;
    border-radius: 2px;
  }
  .folder-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font: .78rem/1.3 var(--mono);
    color: var(--text);
    cursor: pointer;
    user-select: none;
    transition: background .2s, color .2s;
    list-style: none;
  }
  .folder-header::-webkit-details-marker { display: none; }
  .folder-header:hover {
    color: var(--accent);
    background: rgba(189, 201, 173, 0.05);
  }
  .folder-icon { font-size: .85rem; }
  .folder-name { font-weight: 600; flex-grow: 1; }
  .folder-badge {
    font: .65rem/1 var(--mono);
    padding: 2px 6px;
    border-radius: 2px;
    border: 1px solid var(--line);
    color: var(--muted);
  }
  .folder-links {
    padding: 6px 12px 10px 14px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .folder-links a {
    margin-block: 4px !important;
    font-size: .74rem !important;
    color: var(--muted);
  }
  .folder-links a:hover {
    color: var(--text);
    padding-left: 4px;
  }

  /* FCSC Archive Banner & Presentation */
  .fcsc-archive-banner {
    border: 1px solid var(--line);
    background: #0d0f0c;
    padding: 26px 30px;
    margin-bottom: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    border-radius: 2px;
    position: relative;
    border-left: 3px solid #e5c07b;
    transition: border-color .3s, box-shadow .3s;
  }
  .fcsc-banner-content {
    flex: 1;
    min-width: 0;
  }
  .fcsc-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }
  .trophy-badge {
    background: rgba(229, 192, 123, 0.12) !important;
    border-color: rgba(229, 192, 123, 0.35) !important;
    color: #e5c07b !important;
  }
  .fcsc-archive-banner h3 {
    font-size: clamp(1.2rem, 1.8vw, 1.45rem);
    margin-block: 4px 10px;
    color: var(--text);
  }
  .fcsc-desc, .fcsc-rank, .fcsc-archive-note {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.6;
    margin-block: 6px 0;
  }
  .fcsc-rank strong {
    color: #e5c07b;
  }
  .fcsc-archive-note {
    font-size: .82rem;
    color: var(--dim);
    margin-top: 10px;
  }
  .fcsc-banner-action {
    flex-shrink: 0;
  }
  .button-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: .78rem/1.2 var(--mono);
    color: #0d0f0c;
    background: var(--accent);
    padding: 10px 18px;
    border-radius: 2px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, transform .2s var(--ease);
  }
  .button-cta:hover {
    background: #e5c07b;
    transform: translateY(-2px);
  }
  .button-cta .arrow {
    font-size: .85rem;
    transition: transform .2s;
  }
  .button-cta:hover .arrow {
    transform: translate(2px, -2px);
  }
  .highlight-pulse {
    animation: goldGlow 1.8s ease-out;
  }
  @keyframes goldGlow {
    0% {
      box-shadow: 0 0 0 2px rgba(229, 192, 123, 0.8), 0 0 25px rgba(229, 192, 123, 0.25);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(229, 192, 123, 0), 0 0 0 transparent;
    }
  }
  @media (max-width: 768px) {
    .fcsc-archive-banner { flex-direction: column; align-items: flex-start; }
    .fcsc-banner-action { width: 100%; margin-top: 12px; }
  }

  /* NSI CTF Interactive Showcase Banner (Cyber & Projets) */
  .nsictf-showcase-banner {
    border: 1px solid var(--line);
    background: #121411;
    padding: clamp(22px, 3vw, 32px);
    margin-bottom: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    border-radius: 4px;
    position: relative;
    border-left: 3px solid var(--accent);
    transition: border-color .3s, box-shadow .3s, background .3s;
  }
  .nsictf-showcase-banner:hover {
    border-color: rgba(189, 201, 173, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
  .nsictf-banner-body {
    flex: 1;
    min-width: 0;
  }
  .nsictf-banner-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }
  .nsictf-banner-body h3 {
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
    margin: 0 0 8px;
    color: var(--text);
  }
  .nsictf-banner-body p {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.6;
    margin: 0;
    max-width: 72ch;
  }
  .nsictf-banner-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    flex-shrink: 0;
  }
  .nsictf-project-banner {
    border: 1px solid var(--line);
    background: #131512;
    padding: clamp(18px, 2.5vw, 26px);
    margin: 24px 0 28px;
    border-radius: 4px;
    border-left: 3px solid var(--accent);
  }
  .nsictf-project-banner p {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.6;
    margin: 10px 0 16px;
  }
  @media (max-width: 820px) {
    .nsictf-showcase-banner {
      flex-direction: column;
      align-items: flex-start;
      gap: 20px;
    }
    .nsictf-banner-actions {
      flex-direction: row;
      flex-wrap: wrap;
      width: 100%;
    }
  }

  /* Photo meta pill */
  .photo-meta-pill {
    display: inline-flex;
    gap: 8px;
    font: .65rem/1.4 var(--mono);
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 3px 8px;
    border-radius: 2px;
  }

  @media (max-width: 900px) {
    .selected-work, .projects-work-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-aside { padding-left: 0; }
    .project-main {
      grid-template-columns: 35px 1fr auto;
      gap: 16px 20px;
      padding-inline: 8px;
    }
    .project-summary {
      grid-column: 2 / 4;
      grid-row: 2;
    }
    .project-action {
      grid-column: 3;
      grid-row: 1;
    }
    .action-pill {
      padding: 6px 12px;
    }
    .ctf-layout { grid-template-columns: 1fr; }
    .ctf-sidebar { position: static; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 25px; }
    .ctf-sidebar > p { width: 100%; margin-bottom: 8px; }
    .search-label { margin-top: 12px; width: 100%; }
    .search-input { max-width: 440px; }
    .ctf-featured-grid { grid-template-columns: 1fr; }
    .intro-profiles-container { grid-template-columns: 1fr; }
    .voyages-grid { grid-template-columns: 1fr; gap: 16px; }
    .journey { grid-template-columns: 1fr; }
    .journey-meta { position: static; }
    .field-notes-grid { grid-template-columns: 1fr; }
    .field-note { border-right: 0; }
  }

  @media (max-width: 960px) {
    .hero {
      min-height: auto;
      padding-top: 20px;
      padding-bottom: 36px;
    }
    .hero-grid {
      grid-template-columns: 1fr;
      gap: 32px;
      padding-block: 10px 24px;
    }
    .hero-visual {
      justify-content: center;
    }
    .hero-robot-stage {
      max-width: 100%;
      padding: 10px 0;
    }
    .hero-robot-img {
      max-height: 320px;
    }
    .hero-scroll-cue {
      display: flex;
      justify-content: center;
      padding-top: 20px;
    }
  }

  @media (max-width: 640px) {
    .hero-title {
      font-size: clamp(2.25rem, 8.5vw, 3.1rem);
      margin-bottom: 14px;
    }
    .hero-bio {
      font-size: 0.98rem;
      margin-bottom: 22px;
    }
    .hero-robot-img {
      max-height: 250px;
    }
    .hero-scroll-cue {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      padding-top: 16px;
    }
    .scroll-cue { display: none; }
    .scroll-cue-btn {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      margin-inline: auto;
    }
    .image-band img { aspect-ratio: 1.25; }
    .image-band figcaption { font-size: .6rem; bottom: 16px; }
    .domain-row { grid-template-columns: 24px 1fr 20px; gap: 14px; }
    .domain-row p { grid-column: 2; grid-row: 2; }
    .selected-work, .projects-work-grid { grid-template-columns: 1fr; gap: 32px; }
    .journey { padding-block: 48px; }
    .journey h2 { font-size: clamp(2.4rem, 10vw, 3.4rem); }
    .journey-stats { grid-template-columns: 1fr 1fr; }
    .field-notes-grid { grid-template-columns: 1fr; }
    .field-note { border-right: 0; }
    .contact-channels { grid-template-columns: 1fr; gap: 12px; }
    .contact-channel-item { flex-direction: column; gap: 8px; padding: 16px; }
    .contact-primary-card { padding: 22px 18px; }
    .contact-card-top { flex-wrap: wrap; gap: 12px; }
    .contact-card-actions { width: 100%; justify-content: flex-start; gap: 8px; }
    .contact-card-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
    .filter-count { width: 100%; margin-left: 0; }
    .project-main { gap: 12px; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 35px 15px; }
    .photo-grid figure:nth-child(1) { grid-column: 1 / 3; }
    .photo-grid figure:nth-child(2) { grid-column: 1; padding: 0; }
    .photo-grid figure:nth-child(3) { grid-column: 2; padding-top: 55px; }
    .photo-grid figcaption { flex-direction: column; gap: 3px; font-size: .6rem; }
    .lightbox { padding: 20px; }
    .dialog-head { padding: 16px 24px; }
    .terminal-intro { padding: 18px; font-size: .68rem; }
    .cyber-intro-card { margin-bottom: 40px; }
    .intro-terminal-header { flex-direction: column; align-items: flex-start; gap: 6px; }
    .intro-terminal-body { padding: 18px 16px; }
    .intro-lead-text { font-size: .84rem; line-height: 1.75; }
    pre { padding: 18px; font-size: .74rem; }
    .tools-grid { grid-template-columns: 1fr; }
    .memo-box { padding: 18px 16px; }
    .journey-tips-box { flex-direction: column; align-items: flex-start; gap: 16px; padding: 18px; }
    .journey-tips-box .button-cta { width: 100%; justify-content: center; }
    .handbook-card { padding: 18px 16px; }
  }

  /*
   * ── BARRE DE PROGRESSION DE DÉFILEMENT (DÉSACTIVÉE / MISE EN COMMENTAIRE) ──
   * Barre fixe de 2px de hauteur indiquant le niveau de scroll de la page.
   *
  .scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #10b981);
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 100;
    pointer-events: none;
  }
  */

  /*
   * ── INDICATEUR DE PROGRESSION BARRE LATÉRALE (SIDEBAR SCROLLSPY / DÉSACTIVÉ) ──
   * Filet vertical marquant le lien actif dans la barre latérale de navigation.
   *
  .ctf-sidebar a.spy-active {
    color: var(--accent) !important;
    padding-left: 8px;
    border-left: 2px solid var(--accent);
  }
  */

  /* ── Command Palette Trigger & Modal (⌘K / Ctrl+K) ── */
  .cmd-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 999px;
    font: .72rem/1 var(--mono);
    color: var(--muted);
    transition: border-color .2s, color .2s, background .2s;
    margin-left: auto;
    margin-right: 14px;
  }
  .cmd-trigger:hover {
    border-color: var(--accent);
    color: var(--text);
    background: rgba(189, 201, 173, 0.08);
  }
  .cmd-trigger kbd {
    font: .65rem/1 var(--mono);
    color: var(--accent);
    background: rgba(189, 201, 173, 0.12);
    padding: 3px 6px;
    border-radius: 3px;
  }
  @media (max-width: 900px) {
    .cmd-trigger-text { display: none; }
    .cmd-trigger { margin-left: auto; margin-right: 12px; }
  }

  .cmd-dialog {
    color: var(--text);
    background: #141513;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0;
    margin: clamp(50px, 12vh, 130px) auto auto;
    width: min(640px, calc(100% - 28px));
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
  }
  .cmd-dialog::backdrop {
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .cmd-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
  }
  .cmd-search-icon {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
  }
  .cmd-input {
    width: 100%;
    background: transparent;
    border: 0;
    color: var(--text);
    font: .95rem/1.4 var(--sans);
  }
  .cmd-input:focus { outline: none; }
  .cmd-esc {
    font: .65rem/1 var(--mono);
    padding: 4px 7px;
    border: 1px solid var(--line);
    color: var(--dim);
    border-radius: 2px;
    cursor: pointer;
  }
  .cmd-list {
    list-style: none;
    padding: 8px;
    max-height: 360px;
    overflow-y: auto;
  }
  .cmd-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 3px;
    cursor: pointer;
    transition: background .15s;
  }
  .cmd-item.active {
    background: rgba(189, 201, 173, 0.1);
  }
  .cmd-item-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .cmd-item-title {
    font-size: .9rem;
    font-weight: 500;
    color: var(--text);
  }
  .cmd-item.active .cmd-item-title {
    color: var(--accent);
  }
  .cmd-item-desc {
    font-size: .76rem;
    color: var(--muted);
  }
  .cmd-item-cat {
    font: .65rem/1 var(--mono);
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 3px 7px;
    border: 1px solid var(--line);
    color: var(--dim);
    border-radius: 2px;
    flex-shrink: 0;
  }
  .cmd-empty {
    padding: 32px;
    text-align: center;
    color: var(--dim);
    font: .82rem/1.4 var(--mono);
  }
  .cmd-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    border-top: 1px solid var(--line);
    background: #10110f;
    font: .68rem/1.3 var(--mono);
    color: var(--dim);
  }
  .cmd-footer kbd {
    border: 1px solid var(--line);
    padding: 1px 5px;
    border-radius: 2px;
    margin-right: 4px;
    color: var(--muted);
  }

  /* ── Lightbox EXIF Info ────────────────────────── */
  .lightbox-exif {
    color: var(--dim);
    font-size: .72rem;
    letter-spacing: .02em;
  }
}

@layer motion {
  /* Hero entrance animations (Direct on-page load without preloader) */
  .hero-eyebrow {
    animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
  }
  .hero-title {
    animation: hero-fade-up 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
  }
  .hero-bio {
    animation: hero-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
  }
  .hero-actions {
    animation: hero-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
  }
  .hero-robot-stage {
    animation: hero-image-reveal 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
  }
  .hero-scroll-cue {
    animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
  }

  @keyframes hero-fade-up {
    from {
      opacity: 0;
      transform: translateY(22px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes hero-image-reveal {
    from {
      opacity: 0;
      transform: translateY(28px) scale(0.97);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  /* Page fade-in */
  .js body { animation: page-in .5s var(--ease) both; }

  /* Staggered reveal */
  .js .reveal-pending { opacity: 0; transform: translateY(28px); filter: blur(2px); }
  .js .reveal-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition: opacity .75s var(--ease), transform .9s var(--ease), filter .6s var(--ease);
  }
  /* Stagger delays on siblings */
  .js .reveal-visible:nth-child(2) { transition-delay: .08s; }
  .js .reveal-visible:nth-child(3) { transition-delay: .16s; }
  .js .reveal-visible:nth-child(4) { transition-delay: .24s; }
  .js .reveal-visible:nth-child(5) { transition-delay: .32s; }

  /* Menu drop animation */
  @keyframes menu-drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

  @keyframes name-arrival {
    from { opacity: 0; transform: translateY(55px); filter: blur(12px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
  }
  @keyframes fade-arrival {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes page-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(1.4); }
  }
  @keyframes line-grow {
    from { height: 0; }
    to { height: 45px; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
    .js .reveal-pending { opacity: 1; transform: none; filter: none; }
    .hero-field { display: none; }
    .tiny-dot { animation: none; }
    .scroll-cue::after { animation: none; height: 45px; }
    .scroll-cue-arrow { animation: none !important; }
  }
}

@layer utilities {
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .muted { color: var(--muted); }
  .mono { font-family: var(--mono); }
  .mt-30 { margin-top: 30px; }
  .mb-40 { margin-bottom: 40px; }

  @media print {
    body { background: white; color: black; }
    .site-header, .footer, canvas, .filter-bar, .copy-code, .menu-toggle, .scroll-progress { display: none; }
    .wrap { max-width: none; padding: 0; }
    .section, .page-head { padding-block: 25px; }
    .js .reveal-pending { opacity: 1; transform: none; }
    p, .muted, .eyebrow, .project-summary { color: #444 !important; }
    pre { white-space: pre-wrap; color: black; background: white; }
    .project-row, figure, .technical-note { break-inside: avoid; }
  }
}
