/* ==========================================================================
   Sarooj Zawahir — portfolio styles
   Black & orange, mobile-first. No build step: edit and redeploy.

   1. Tokens          6. Hero              11. Experience / timeline
   2. Base            7. About             12. Education
   3. Layout          8. Maps & projects   13. Recommendations
   4. Components      9. Approach          14. Travel
   5. Nav            10. Tools & skills    15. Contact, footer, modal, toast
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --bg: #0a0a0a;
  --bg-alt: #0e0e0e;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ededed;
  --muted: #a0a0a0;
  --dim: #6b6b6b;
  --orange: #ff6b00;
  --orange-2: #ff8f3d;
  --orange-soft: rgba(255, 107, 0, 0.12);
  --orange-glow: rgba(255, 107, 0, 0.35);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --gutter: 16px;
  --section-y: clamp(80px, 12vw, 150px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nav-h: 64px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--orange); color: #000; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.mono { font-family: var(--font-mono); font-size: 0.82em; letter-spacing: 0.02em; }
.muted { color: var(--muted); }
.accent { color: var(--orange); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--orange); color: #000; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }

/* 3. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: var(--section-y) 0; }
.section--alt { background: var(--bg-alt); }
/* faint engineering grid behind alternate sections */
.section--alt::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
  opacity: 0.5;
}
.section > .container { position: relative; }

.section-head { margin-bottom: clamp(36px, 6vw, 64px); max-width: 820px; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--orange);
  margin-bottom: 18px; letter-spacing: 0.08em; text-transform: lowercase;
}
.eyebrow span { color: var(--dim); }
.lede { color: var(--muted); font-size: 1.08rem; margin-top: 20px; max-width: 680px; }
.note { color: var(--dim); margin-top: 28px; }

/* Body text is justified everywhere */
.about__text p, .lede, .timeline__body > p:last-child, .travel__story p, .approach__ethos { text-align: justify; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto; }
main .timeline__org, main .project__place, main .eyebrow, main .map-card__legend, main .hero__eyebrow, main .hero__title { text-align: left; hyphens: manual; }

/* Scroll reveal (js/main.js adds .is-in) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Circuit-trace divider (SVG drawn by js/main.js) */
.circuit-divider { height: 60px; position: relative; overflow: hidden; }
.circuit-divider svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.circuit-divider path { fill: none; stroke: var(--orange); stroke-width: 1.2; opacity: 0.55; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 2.2s var(--ease); vector-effect: non-scaling-stroke; }
.circuit-divider circle { fill: var(--bg); stroke: var(--orange); stroke-width: 1.2; opacity: 0; transition: opacity 0.6s 1.4s; vector-effect: non-scaling-stroke; }
.circuit-divider.is-in path { stroke-dashoffset: 0; }
.circuit-divider.is-in circle { opacity: 0.8; }

/* 4. Components ------------------------------------------------------------ */
.btn {
  --bx: 0px; --by: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font: 500 0.95rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  transform: translate(var(--bx), var(--by));
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn--primary { background: var(--orange); color: #0a0a0a; box-shadow: 0 0 0 0 var(--orange-glow); }
.btn--primary:hover { background: var(--orange-2); box-shadow: 0 10px 40px -8px var(--orange-glow); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn--sm { padding: 9px 16px; font-size: 0.85rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; font-size: 0.82rem; color: var(--muted);
  transition: all 0.2s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.is-active { background: var(--orange); border-color: var(--orange); color: #0a0a0a; }
.chip span { opacity: 0.6; font-family: var(--font-mono); font-size: 0.75rem; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 0.8rem; padding: 5px 11px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: #cfcfcf;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.tags li:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }

.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); animation: pulse-green 2s infinite; vertical-align: middle; }
@keyframes pulse-green { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

/* Card with a soft orange spotlight that follows the pointer (vars set in main.js) */
.spotlight { position: relative; isolation: isolate; }
.spotlight::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 107, 0, 0.14), transparent 45%);
  opacity: 0; transition: opacity 0.3s;
}
.spotlight:hover::after { opacity: 1; }

/* Scroll progress + cursor glow */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--orange), var(--orange-2)); z-index: 120; }
.cursor-glow { position: fixed; top: 0; left: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.07), transparent 60%);
  transform: translate(var(--cx, -999px), var(--cy, -999px)); transition: opacity 0.4s; }
@media (hover: none) { .cursor-glow { display: none; } }

/* 5. Nav ------------------------------------------------------------------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(10, 10, 10, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: 24px; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.nav__logo { font-family: var(--font-mono); font-weight: 500; text-decoration: none; font-size: 1.05rem; margin-right: auto; display: flex; align-items: center; }
.nav__logo-mark { display: inline-flex; align-items: center; gap: 5px; font: 600 1.08rem/1 var(--font-display); color: var(--text); letter-spacing: -0.01em; }
.nav__logo-mark b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--orange); color: #0a0a0a; font-weight: 700; font-size: 0.95rem; transition: transform 0.3s var(--ease); }
.nav__logo:hover .nav__logo-mark b { transform: rotate(-8deg) scale(1.08); }
.nav__logo-cursor { color: var(--orange); margin-left: 4px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav__links { display: none; gap: 20px; }
.nav__links a { position: relative; text-decoration: none; color: var(--muted); font-size: 0.86rem; transition: color 0.2s; white-space: nowrap; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after, .nav__links a:hover::after { transform: scaleX(1); }
.nav__resume { display: none; }
.nav__toggle { width: 44px; height: 44px; background: none; border: 0; display: grid; place-content: center; gap: 6px; }
.nav__toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: transform 0.3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-menu { max-height: calc(100vh - var(--nav-h)); overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 12px var(--gutter) 24px; background: rgba(10, 10, 10, 0.97); border-bottom: 1px solid var(--line); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 0; text-decoration: none; font-family: var(--font-display); font-size: 1.3rem; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 16px; }
@media (min-width: 1180px) {
  .nav__links, .nav__resume { display: flex; }
  .nav__toggle, .mobile-menu { display: none !important; }
}

/* 6. Hero ------------------------------------------------------------------ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 40px) 0 40px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 45%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 45%, #000, transparent 80%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 200px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero__inner { position: relative; z-index: 2; display: grid; gap: 48px; align-items: center; }
.hero__eyebrow { color: var(--muted); margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.hero__name { font-size: clamp(3.4rem, 13vw, 8.4rem); font-weight: 700; line-height: 0.92; letter-spacing: -0.045em; margin-bottom: 24px; }
.hero__line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero__line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes rise { to { transform: none; } }
.hero__title { font-family: var(--font-mono); color: var(--orange); font-size: clamp(0.85rem, 2.4vw, 1.05rem); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.hero__tagline { font-size: clamp(1.1rem, 2.6vw, 1.4rem); color: #cfcfcf; max-width: 560px; margin-bottom: 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__copy > * { opacity: 0; animation: fade-up 0.9s var(--ease) forwards; }
.hero__copy > :nth-child(1) { animation-delay: 0.05s; }
.hero__copy > :nth-child(2) { opacity: 1; animation: none; }
.hero__copy > :nth-child(3) { animation-delay: 0.45s; }
.hero__copy > :nth-child(4) { animation-delay: 0.6s; }
.hero__copy > :nth-child(5) { animation-delay: 0.75s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.terminal { background: rgba(14, 14, 14, 0.82); border: 1px solid var(--line-strong); border-radius: var(--radius); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 107, 0, 0.05); overflow: hidden; }
.terminal__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.terminal__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2a; }
.terminal__bar i:first-child { background: var(--orange); }
.terminal__bar span { margin-left: 8px; font: 0.75rem var(--font-mono); color: var(--dim); }
.terminal__body { margin: 0; padding: 18px; min-height: 330px; font: 0.8rem/1.75 var(--font-mono); color: #cfcfcf; white-space: pre-wrap; }
.terminal__body .p { color: var(--orange); }
.terminal__body .o { color: var(--muted); }
.terminal__body .k { color: #3ddc84; }
.terminal__body .caret, .profile-card__body .caret { display: inline-block; width: 8px; height: 1em; background: var(--orange); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.hero__terminal { display: none; opacity: 0; animation: fade-up 1s 0.9s var(--ease) forwards; }

.hero__stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 64px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: rgba(10, 10, 10, 0.85); padding: 20px 18px; display: flex; flex-direction: column; gap: 4px; }
.stat__num { font: 600 clamp(1.8rem, 5vw, 2.6rem)/1 var(--font-display); color: var(--text); }
.stat__label { font-size: 0.8rem; color: var(--muted); }
.hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 22px; width: 24px; height: 38px; margin-left: -12px; border: 1px solid var(--line-strong); border-radius: 12px; display: none; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 2px; height: 7px; margin-left: -1px; background: var(--orange); border-radius: 2px; animation: scroll-dot 1.8s infinite; }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (min-width: 720px) { .hero__stats { grid-template-columns: repeat(4, 1fr); } .stat { padding: 24px 26px; } }
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.35fr 1fr; }
  .hero__terminal { display: block; }
  .hero__scroll { display: block; }
}

/* 7. About ----------------------------------------------------------------- */
.about__grid { display: grid; gap: 48px; align-items: start; }
.about__text p { font-size: 1.08rem; color: #d6d6d6; }
.about__text p:first-child::first-letter { color: var(--orange); }
.facts { margin-top: 32px; border-top: 1px solid var(--line); }
.facts li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: #d6d6d6; }
.facts .mono { color: var(--orange); width: 48px; flex: none; padding-top: 2px; }
.profile-card { margin: 0; border-radius: var(--radius); border: 1px solid var(--line-strong); background: #0e0e0e; overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9); }
.profile-card:hover { box-shadow: 0 30px 80px -30px var(--orange-glow); }
.profile-card__body { margin: 0; padding: 20px 22px 24px; font: 0.82rem/1.85 var(--font-mono); color: #cfcfcf; white-space: pre-wrap; overflow-x: auto; }
.profile-card__body .k { color: var(--orange); }
.profile-card__body .p { color: var(--orange); }
.profile-card__body .v { color: #e6e6e6; }
.profile-card__body .n { color: #ffb36b; }
.profile-card__body .c { color: var(--dim); }
.profile-card__body .ok { color: #3ddc84; }
@media (min-width: 960px) { .about__grid { grid-template-columns: 1.3fr 1fr; gap: 64px; } .profile-card { margin-top: 6px; } }

/* 8. Maps & projects ------------------------------------------------------- */
.map-card { border: 1px solid var(--line-strong); border-radius: var(--radius); background: linear-gradient(180deg, #101010, #0b0b0b); overflow: hidden; }
.map-card__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.map-zoom { display: flex; flex-wrap: wrap; gap: 6px; }
.map-zoom .chip { padding: 5px 12px; font-size: 0.78rem; }
.map-card__legend { color: var(--muted); margin: 0; display: flex; align-items: center; gap: 8px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot--pin { background: var(--orange); }
.dot--home { background: #fff; margin-left: 10px; }

.map { position: relative; width: 100%; aspect-ratio: 1000 / 443; overflow: hidden; min-height: 220px; touch-action: pan-y; }
.map__loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); margin: 0; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map svg path { fill: #1e1e1e; stroke: #0b0b0b; stroke-width: 0.6; vector-effect: non-scaling-stroke; transition: fill 0.25s; }
.map svg path.has-project { fill: #3a2414; }
.map svg path.has-project:hover, .map svg path.is-hot { fill: #6a3510; }
.map .arc { fill: none; stroke: var(--orange); stroke-width: 1; opacity: 0.45; vector-effect: non-scaling-stroke; stroke-dasharray: 4 5; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }
.map .pin { fill: var(--orange); cursor: pointer; }
.map .pin-ring { fill: none; stroke: var(--orange); vector-effect: non-scaling-stroke; animation: ping 2.6s var(--ease) infinite; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.map .pin.is-hot { fill: #fff; }
.map .home { fill: #fff; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(3.2); opacity: 0; } }

.map-tip { position: absolute; z-index: 5; pointer-events: none; padding: 8px 12px; border-radius: 8px; background: rgba(10, 10, 10, 0.94); border: 1px solid var(--orange); font-size: 0.82rem; white-space: nowrap; transform: translate(-50%, calc(-100% - 14px)); opacity: 0; transition: opacity 0.15s; }
.map-tip.is-on { opacity: 1; }
.map-tip small { display: block; color: var(--muted); font-family: var(--font-mono); font-size: 0.72rem; }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 24px; }
.project-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
.project {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: border-color 0.25s, transform 0.35s var(--ease), opacity 0.35s, background 0.25s;
}
.project:hover, .project.is-hot { border-color: rgba(255, 107, 0, 0.6); transform: translateY(-3px); background: #171310; }
.project.is-hidden { display: none; }
.project__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.project__code { font: 600 1.6rem/1 var(--font-display); color: var(--orange); letter-spacing: 0.02em; }
.project__type { font: 0.7rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); border: 1px solid var(--line-strong); padding: 3px 8px; border-radius: 999px; }
.project h3 { font-size: 1.05rem; }
.project__place { font-size: 0.85rem; color: var(--muted); margin: 0; }
.project__line { font-size: 0.92rem; color: #cfcfcf; margin: 0; }
.project__year { margin-top: auto; padding-top: 6px; font: 0.75rem var(--font-mono); color: var(--dim); }

/* 9. Approach -------------------------------------------------------------- */
.approach { display: grid; gap: 40px; }
.approach__principles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.principle { background: var(--bg); padding: 28px 24px; transition: background 0.3s; }
.principle:hover { background: #100c09; }
.principle__num { color: var(--orange); display: block; margin-bottom: 14px; }
.principle h3 { margin-bottom: 10px; font-size: 1.25rem; }
.principle p { color: var(--muted); margin: 0; }
@media (min-width: 720px) { .approach__principles { grid-template-columns: 1fr 1fr; } .principle { padding: 34px 32px; } }

.trace { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 26px; background: linear-gradient(160deg, #141008, #0c0c0c 60%); position: relative; overflow: hidden; }
.trace__label { color: var(--orange); margin-bottom: 20px; }
.trace__steps { counter-reset: s; position: relative; }
.trace__steps::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--orange), rgba(255, 107, 0, 0.1)); }
.trace__steps li { position: relative; padding: 0 0 18px 30px; color: #d0d0d0; font-size: 0.93rem; }
.trace__steps li::before { content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--orange); background: var(--bg); }
.trace__steps li:last-child::before { background: var(--orange); box-shadow: 0 0 14px var(--orange-glow); }
.trace__steps li:last-child { padding-bottom: 0; }
.trace__steps .mono { display: block; color: var(--orange); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 2px; }
.trace.is-in .trace__steps li { animation: fade-up 0.6s var(--ease) both; }
.trace.is-in .trace__steps li:nth-child(2) { animation-delay: 0.15s; }
.trace.is-in .trace__steps li:nth-child(3) { animation-delay: 0.3s; }
.trace.is-in .trace__steps li:nth-child(4) { animation-delay: 0.45s; }
.trace.is-in .trace__steps li:nth-child(5) { animation-delay: 0.6s; }
.trace.is-in .trace__steps li:nth-child(6) { animation-delay: 0.75s; }
@media (min-width: 1024px) { .approach { grid-template-columns: 1.6fr 1fr; align-items: start; } .approach__side { position: sticky; top: calc(var(--nav-h) + 24px); } }
.approach__side { display: grid; gap: 16px; }
.approach__ethos { margin: 24px 0 0; padding: 22px 24px; border-left: 3px solid var(--orange); background: linear-gradient(90deg, rgba(255, 107, 0, 0.08), transparent); color: #e2e2e2; font-size: 1.05rem; border-radius: 0 var(--radius) var(--radius) 0; }
.speedup { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 24px 26px; background: #0e0e0e; }
.speedup__label { color: var(--orange); margin-bottom: 14px; text-align: left !important; }
.speedup__row { display: flex; align-items: baseline; gap: 10px; }
.speedup__num { font: 600 2.4rem/1 var(--font-display); color: var(--text); }
.speedup__row--fast .speedup__num { color: var(--orange); }
.speedup__unit { color: var(--muted); font-size: 0.9rem; }
.speedup__bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); margin: 10px 0 18px; overflow: hidden; }
.speedup__bar i { display: block; height: 100%; width: 0; background: #555; border-radius: inherit; transition: width 2.4s var(--ease); }
.speedup__bar--fast i { background: var(--orange); box-shadow: 0 0 12px var(--orange-glow); transition-duration: 0.5s; transition-delay: 0.3s; }
.speedup.is-in .speedup__bar i { width: 100%; }
.speedup.is-in .speedup__bar--fast i { width: 1.5%; min-width: 6px; }
.speedup .speedup__bar:last-child { margin-bottom: 0; }

/* 10. Tools & skills ------------------------------------------------------- */
.tool-grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
.tool {
  display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  overflow: hidden; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.2s ease-out, border-color 0.25s, box-shadow 0.3s;
}
.tool:hover { border-color: rgba(255, 107, 0, 0.55); box-shadow: 0 30px 70px -40px var(--orange-glow); }
.tool__shot { position: relative; aspect-ratio: 16 / 9; background: #0d0d0d; border-bottom: 1px solid var(--line); overflow: hidden; }
.tool__shot img { width: 100%; height: 100%; object-fit: cover; }
.tool__shot--empty { display: grid; place-items: center;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 22px 22px; }
.tool__shot--empty span { font: 0.72rem var(--font-mono); color: var(--dim); border: 1px dashed var(--line-strong); padding: 6px 10px; border-radius: 6px; background: var(--bg); }
.tool__mono { position: absolute; top: 14px; left: 14px; font: 600 0.8rem var(--font-mono); color: var(--orange); background: rgba(10, 10, 10, 0.85); border: 1px solid rgba(255, 107, 0, 0.4); padding: 4px 8px; border-radius: 6px; }
.tool__body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tool__kind { font: 0.72rem var(--font-mono); color: var(--orange); text-transform: uppercase; letter-spacing: 0.12em; }
.tool__live { font-weight: 500; color: #3ddc84; margin-left: 8px; }
.tool h3 { font-size: 1.35rem; }
.tool p { color: var(--muted); margin: 0; font-size: 0.93rem; }
.tool__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.tool__meta .tag { font: 0.72rem var(--font-mono); padding: 4px 8px; border-radius: 5px; border: 1px solid var(--line-strong); color: #bdbdbd; }
.tool__meta .tag--main { border-color: rgba(255, 107, 0, 0.5); color: var(--orange); background: var(--orange-soft); }
.tool__link { align-self: flex-start; font-size: 0.85rem; color: var(--orange); text-decoration: none; }
.tool__link:hover { text-decoration: underline; }

.skill-grid { display: grid; gap: 18px; }
@media (min-width: 820px) { .skill-grid { grid-template-columns: repeat(2, 1fr); } }
.skill-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color 0.25s; }
.skill-card:hover { border-color: rgba(255, 107, 0, 0.45); }
.skill-card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--orange-soft); border: 1px solid rgba(255, 107, 0, 0.3); margin-bottom: 18px; }
.skill-card__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--orange); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skill-card h3 { margin-bottom: 18px; }
@media (min-width: 820px) { .skill-card--wide { grid-column: 1 / -1; } }

/* 11. Experience / timeline ------------------------------------------------ */
.timeline { position: relative; padding-left: 28px; --fill: 0; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; }
.timeline::before { background: var(--line-strong); }
.timeline::after { background: var(--orange); transform-origin: top; transform: scaleY(var(--fill)); box-shadow: 0 0 10px var(--orange-glow); }
.timeline__item { position: relative; padding-bottom: 44px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before { content: ""; position: absolute; left: -28px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg-alt); border: 1px solid var(--line-strong); z-index: 1; transition: border-color 0.4s, background 0.4s, box-shadow 0.4s; }
.timeline__item.is-lit::before { border-color: var(--orange); background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.15); }
.timeline__dates { display: block; color: var(--orange); margin-bottom: 8px; }
.timeline__dates small { display: block; color: var(--dim); font-size: 0.72rem; margin-top: 4px; letter-spacing: 0.02em; }
.timeline__body h3 { font-size: 1.35rem; margin-bottom: 4px; }
.timeline__org { color: var(--text); font-weight: 500; margin-bottom: 10px; }
.timeline__org span { color: var(--dim); font-weight: 400; }
.timeline__body p:last-child { color: var(--muted); max-width: 820px; margin: 0; }
@media (min-width: 820px) {
  .timeline { padding-left: 0; }
  .timeline::before, .timeline::after { left: 205px; }
  .timeline__item { display: grid; grid-template-columns: 180px 1fr; gap: 50px; }
  .timeline__item::before { left: 200px; }
  .timeline__dates { text-align: right; padding-top: 2px; }
}

/* 12. Education ------------------------------------------------------------ */
.edu-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .edu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .edu-grid { grid-template-columns: repeat(3, 1fr); } }
.edu-card__dates { margin-top: auto !important; padding-top: 8px; color: var(--dim) !important; text-align: left !important; }
.edu-card { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.edu-card h3 { font-size: 1.15rem; }
.edu-card p { color: var(--muted); margin: 0; }
.edu-card--current { border-color: rgba(255, 107, 0, 0.5); background: linear-gradient(160deg, #1a120b, var(--surface) 70%); }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--orange); border: 1px solid rgba(255, 107, 0, 0.35); padding: 4px 10px; border-radius: 999px; }
.certs { margin-top: 32px; padding: 22px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; }
.certs__label { color: var(--orange); margin: 0; }
.certs ul { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.certs li { color: #d0d0d0; font-size: 0.92rem; }
.certs li .mono { color: var(--dim); margin-left: 4px; }

/* 13. Recommendations ------------------------------------------------------ */
.rec-grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .rec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .rec-grid { grid-template-columns: repeat(3, 1fr); } }
.rec { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.25s, transform 0.35s var(--ease); }
.rec:hover { border-color: rgba(255, 107, 0, 0.5); transform: translateY(-4px); }
.rec--extra { display: none; }
.rec-grid.is-expanded .rec--extra { display: flex; }
.rec-more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.rec__mark { font: 700 4rem/0.6 var(--font-display); color: var(--orange); height: 30px; }
.rec blockquote { margin: 0 0 24px; color: #d6d6d6; font-size: 0.98rem; }
.rec blockquote.is-clamped { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.rec__more { background: none; border: 0; padding: 0; margin: -14px 0 22px; color: var(--orange); font-size: 0.85rem; align-self: flex-start; }
.rec__who { margin-top: auto; display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.rec__avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--orange-soft); border: 1px solid rgba(255, 107, 0, 0.4); color: var(--orange); font: 600 0.95rem var(--font-display); }
.rec__avatar img { width: 100%; height: 100%; object-fit: cover; }
.rec__name { font-weight: 600; font-size: 0.95rem; }
.rec__title { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.rec__src { position: absolute; top: 22px; right: 22px; display: flex; align-items: center; gap: 6px; font: 0.68rem var(--font-mono); color: var(--dim); }
.rec__src svg { width: 14px; height: 14px; fill: #6a6a6a; }

/* 14. Travel (warmer, orange-forward) ------------------------------------- */
.travel { background: radial-gradient(120% 80% at 80% 0%, #2a1406 0%, #140b05 35%, #0d0907 70%, var(--bg) 100%); overflow: hidden; }
.travel__glow { position: absolute; width: 900px; height: 900px; right: -300px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 107, 0, 0.18), transparent 60%); pointer-events: none; filter: blur(10px); }
.travel .eyebrow span { color: #a0714f; }
.travel h2 { font-family: var(--font-display); }
.travel h2 .accent { background: linear-gradient(90deg, #ff6b00, #ffb36b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.travel__intro { display: grid; gap: 24px; margin-bottom: 56px; }
.travel__story p { color: #e9d9cc; font-size: 1.06rem; }
.travel__sign { color: #ffcfa6 !important; }
.travel__sign strong { color: var(--orange); font-family: var(--font-display); font-size: 1.3em; }
@media (min-width: 1024px) { .travel__intro { grid-template-columns: 1fr 1.1fr; gap: 64px; } }

.travel__map-wrap { display: grid; gap: 16px; }
@media (min-width: 1024px) { .travel__map-wrap { grid-template-columns: 1fr 320px; } }
.map-card--warm { background: linear-gradient(180deg, rgba(40, 20, 8, 0.6), rgba(16, 10, 6, 0.8)); border-color: rgba(255, 140, 60, 0.25); }
.map-card--warm .map-card__toolbar { border-color: rgba(255, 140, 60, 0.15); }
.map-card--warm .map svg path { fill: #2a1d15; stroke: #140c07; }
.map-card--warm .map svg path.visited { fill: #ff6b00; cursor: pointer; }
.map-card--warm .map svg path.visited:hover, .map-card--warm .map svg path.visited.is-sel { fill: #ffb36b; }
.map-card--warm .pin { fill: #1a0d05; stroke: #ff8f3d; stroke-width: 2; vector-effect: non-scaling-stroke; cursor: pointer; }
.map-card--warm .pin:hover { fill: #ff8f3d; }
.map-card--warm .pin.is-sel { fill: #fff; stroke: #fff; filter: drop-shadow(0 0 4px #ff6b00); }

.travel__panel { border-radius: var(--radius); border: 1px solid rgba(255, 140, 60, 0.25); background: rgba(20, 12, 7, 0.75); padding: 22px; min-height: 180px; display: flex; flex-direction: column; }
.travel__panel-empty { margin: auto 0; color: #c7a990; }
.travel__panel-empty .mono { color: var(--orange); margin-bottom: 6px; }
.travel__photo { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; margin-bottom: 16px; background: repeating-linear-gradient(45deg, rgba(255, 107, 0, 0.06) 0 10px, transparent 10px 20px); border: 1px dashed rgba(255, 140, 60, 0.35); display: grid; place-items: center; }
.travel__photo img { width: 100%; height: 100%; object-fit: cover; }
.travel__photo span { font: 0.72rem var(--font-mono); color: #a0714f; }
.travel__photo--flag { background: radial-gradient(circle at 50% 50%, rgba(255, 107, 0, 0.12), rgba(10, 6, 3, 0.6) 70%); border-style: solid; border-color: rgba(255, 140, 60, 0.2); padding: 14px; }
.travel__flag-shape { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6)); }
.travel__flag-plain { width: 70% !important; height: auto !important; object-fit: contain !important; border-radius: 4px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6); }
.travel__note .mono { display: block; color: var(--orange); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 6px; text-align: left; }
.travel__panel h3 { font-size: 1.5rem; margin-bottom: 4px; }
.travel__panel .region { font: 0.75rem var(--font-mono); color: var(--orange); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; display: block; }
.travel__panel p { color: #e3cdbb; font-size: 0.93rem; margin: 0; }
.travel__panel.is-flash { animation: flash 0.5s var(--ease); }
@keyframes flash { from { opacity: 0.3; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.travel__list { margin-top: 32px; display: grid; gap: 22px; }
@media (min-width: 720px) { .travel__list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .travel__list { grid-template-columns: repeat(5, 1fr); } }
.travel__group h4 { margin: 0 0 10px; font: 500 0.75rem var(--font-mono); color: #a0714f; text-transform: uppercase; letter-spacing: 0.12em; }
.travel__group ul { display: grid; gap: 2px; }
.travel__chip { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; border: 1px solid transparent; background: none; color: #f0d7c2; font-size: 0.88rem; text-align: left; transition: all 0.2s; }
.travel__chip img { width: 20px; height: 15px; flex: none; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.travel__chip:hover { background: rgba(255, 107, 0, 0.1); border-color: rgba(255, 140, 60, 0.3); }
.travel__chip.is-sel { background: var(--orange); border-color: var(--orange); color: #140a04; }

/* 15. Contact, footer, modal, toast --------------------------------------- */
.contact { text-align: left; }
.contact__email { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-bottom: 48px; }
.contact__address { font: 600 clamp(1.3rem, 5.2vw, 3rem)/1.1 var(--font-display); text-decoration: none; background: linear-gradient(90deg, var(--text), var(--text)) left bottom / 0 2px no-repeat; transition: background-size 0.4s var(--ease), color 0.3s; word-break: break-all; padding-bottom: 6px; }
.contact__address:hover { color: var(--orange); background-image: linear-gradient(90deg, var(--orange), var(--orange)); background-size: 100% 2px; }
.socials { display: grid; gap: 12px; }
@media (min-width: 640px) { .socials { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .socials { grid-template-columns: repeat(4, 1fr); } }
.social { display: grid; grid-template-columns: 24px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color 0.25s, transform 0.3s var(--ease); }
.social svg { grid-row: span 2; width: 22px; height: 22px; color: var(--muted); transition: color 0.25s; }
.social span:not(.mono) { font-weight: 600; }
.social .mono { color: var(--dim); font-size: 0.75rem; }
.social:hover { border-color: rgba(255, 107, 0, 0.55); transform: translateY(-3px); }
.social:hover svg { color: var(--orange); }

.footer { border-top: 1px solid var(--line); padding: 28px 0 36px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
.footer p { margin: 0; color: var(--muted); }
.footer__top { text-decoration: none; color: var(--orange); }

.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade 0.25s; }
.modal__dialog { position: relative; width: 100%; max-width: 420px; padding: 32px 28px 28px; border-radius: 18px; background: #111; border: 1px solid rgba(255, 107, 0, 0.35); box-shadow: 0 40px 120px -30px var(--orange-glow); animation: pop 0.35s var(--ease); }
.modal__dialog h2 { font-size: 1.6rem; margin-bottom: 8px; }
.modal__dialog .muted { font-size: 0.92rem; }
.eyebrow-sm { color: var(--orange); margin-bottom: 10px; }
.modal__close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 1.6rem; line-height: 1; }
.modal__close:hover { color: var(--orange); background: rgba(255, 255, 255, 0.04); }
.field { display: block; margin-top: 16px; }
.field > span { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; }
.field em { color: var(--dim); font-style: normal; }
.field input { width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: #0a0a0a; color: var(--text); font: inherit; transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.18); }
.field input.is-invalid { border-color: #ff4d4d; }
.field__error { min-height: 1.4em; margin: 10px 0 12px; color: #ff7a7a; font-size: 0.85rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.modal__done { text-align: center; padding: 10px 0 4px; }
.modal__done a { color: var(--orange); }
.modal__check svg { width: 64px; height: 64px; margin: 0 auto 14px; fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.modal__check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 0.6s var(--ease) forwards; }
.modal__check path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw 0.4s 0.45s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, 0.25); border-top-color: #000; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 400; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 10px 18px; border-radius: 999px; background: var(--orange); color: #0a0a0a; font-weight: 500; font-size: 0.9rem; transition: all 0.3s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Reduced motion: keep everything, just without the movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__copy > *, .hero__terminal { opacity: 1; }
  .hero__line > span { transform: none; }
}

/* Carousels ------------------------------------------------------------------ */
.carousel { position: relative; --card-w: min(84vw, 360px); }
.carousel--projects { --card-w: min(80vw, 350px); }
.carousel--skills { --card-w: min(86vw, 420px); }
.carousel--recs { --card-w: min(86vw, 390px); }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--card-w); grid-template-rows: auto;
  gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 4px 2px 8px; cursor: grab;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 60px), transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 60px), transparent);
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; min-width: 0; }
.carousel__track--2rows { grid-template-rows: repeat(2, auto); }
.carousel__track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.carousel__track.is-dragging * { pointer-events: none; }
.carousel.is-static .carousel__track { mask-image: none; -webkit-mask-image: none; cursor: auto; }
.carousel__controls { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.carousel.is-static .carousel__controls { display: none; }
.carousel__btn { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 1.05rem; transition: all 0.2s; }
.carousel__btn:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }
.carousel__btn:disabled { opacity: 0.35; cursor: default; }
.carousel__progress { flex: 1; height: 2px; background: var(--line-strong); border-radius: 2px; overflow: hidden; }
.carousel__progress i { display: block; height: 100%; background: var(--orange); transform-origin: 0 50%; transform: scaleX(0.04); transition: transform 0.25s; }
.carousel .project, .carousel .tool, .carousel .rec, .carousel .skill-card { height: 100%; }
.carousel .project:hover, .carousel .project.is-hot { transform: none; }
.travel .carousel__btn { background: rgba(20, 12, 7, 0.75); }

/* Travel flag: every flag the same 4:3 size */
.travel__photo--flag { padding: 0; border: 0; background: none; aspect-ratio: 4 / 3; }
.travel__flag { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08); }

/* Logo typing */
.nav__logo-text { margin-left: 10px; color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.nav__logo-text + .nav__logo-cursor { margin-left: 1px; }

/* Hero LinkedIn button */
.btn--icon { width: 46px; height: 46px; padding: 0; }
.btn--icon svg { flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Experience: designation in orange, dates neutral, and a staged reveal */
.timeline__body h3 { color: var(--orange); }
.timeline__dates { color: var(--text) !important; }
.timeline__item.reveal { opacity: 1; transform: none; }
.timeline__item .timeline__dates,
.timeline__item .timeline__body h3,
.timeline__item .timeline__org { opacity: 0; transform: translateX(-18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.timeline__item .timeline__body h3 { transition-delay: 0.12s; }
.timeline__item .timeline__org { transition-delay: 0.24s; }
.timeline__item .timeline__body > p:last-child { clip-path: inset(0 0 100% 0); opacity: 0.4; transition: clip-path 1s 0.25s cubic-bezier(0.45, 0, 0.2, 1), opacity 1s 0.25s; }
.timeline__item.is-in .timeline__dates,
.timeline__item.is-in .timeline__body h3,
.timeline__item.is-in .timeline__org { opacity: 1; transform: none; }
.timeline__item.is-in .timeline__body > p:last-child { clip-path: inset(0 0 0 0); opacity: 1; }

/* Skills: two cards per view on wider screens */
@media (min-width: 900px) { .carousel--skills { --card-w: calc((100% - 16px) / 2); } }

/* Tool illustrations (replace screenshots) */
.tool__viz { display: block; background: radial-gradient(circle at 50% 40%, #171310, #0d0d0d 70%); }
.tool__viz svg { width: 100%; height: 100%; display: block; }

/* Example trace: line draws down, dots light up in turn, then a pulse keeps travelling */
.trace__steps::before { transform-origin: top; transform: scaleY(0); transition: transform 2.6s cubic-bezier(0.45, 0, 0.2, 1); }
.trace.is-in .trace__steps::before { transform: scaleY(1); }
.trace__steps li::before { transition: background 0.4s, box-shadow 0.4s; }
.trace.is-in .trace__steps li::before { background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.15); }
.trace.is-in .trace__steps li:nth-child(1)::before { transition-delay: 0.1s; }
.trace.is-in .trace__steps li:nth-child(2)::before { transition-delay: 0.55s; }
.trace.is-in .trace__steps li:nth-child(3)::before { transition-delay: 1s; }
.trace.is-in .trace__steps li:nth-child(4)::before { transition-delay: 1.45s; }
.trace.is-in .trace__steps li:nth-child(5)::before { transition-delay: 1.9s; }
.trace.is-in .trace__steps li:nth-child(6)::before { transition-delay: 2.35s; }
.trace.is-in .trace__steps li:nth-child(2) { animation-delay: 0.45s; }
.trace.is-in .trace__steps li:nth-child(3) { animation-delay: 0.9s; }
.trace.is-in .trace__steps li:nth-child(4) { animation-delay: 1.35s; }
.trace.is-in .trace__steps li:nth-child(5) { animation-delay: 1.8s; }
.trace.is-in .trace__steps li:nth-child(6) { animation-delay: 2.25s; }
.trace__steps::after { content: ""; position: absolute; left: 2px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px var(--orange); opacity: 0; }
.trace.is-in .trace__steps::after { animation: trace-pulse 3.2s 3s ease-in-out infinite; }
@keyframes trace-pulse { 0% { top: 6px; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 12px); opacity: 0; } }
.trace .trace__steps li:last-child::before { transition-delay: 2.35s; }

/* Travel flag border */
.travel__flag { border: 0; box-shadow: none; border-radius: 0; }
.travel__photo--flag { border: 1px solid var(--orange) !important; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55); }

/* Project tiles: company name instead of an airport code */
.project__code--name { font-size: 1.25rem; letter-spacing: 0; }

/* Beyond the work ---------------------------------------------------------- */
.story { background: radial-gradient(90% 60% at 50% 0%, rgba(255, 107, 0, 0.07), transparent 70%), var(--bg); }
.story__inner { max-width: 820px; }
.story__quote { margin: 0 0 40px; padding: 8px 0 8px 28px; border-left: 2px solid var(--orange); }
.story__quote p { font: 500 clamp(1.25rem, 2.6vw, 1.7rem)/1.4 var(--font-display); color: var(--text); margin: 0 0 12px; text-align: left !important; }
.story__quote--lead p { font-size: clamp(1.45rem, 3.2vw, 2.15rem); }
.story__quote cite { font: normal 0.8rem var(--font-mono); color: var(--orange); letter-spacing: 0.08em; }
.story__quote cite::before { content: "— "; }
.story__text { margin-bottom: 40px; }
.story__text p { font-size: 1.1rem; line-height: 1.85; color: #d8d8d8; text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.story__close { color: var(--text) !important; font-weight: 500; }
.story__thanks { display: grid; gap: 14px; margin: -12px 0 48px; }
@media (min-width: 760px) { .story__thanks { grid-template-columns: 1fr 1fr; } .story__thanks li:first-child { grid-column: 1 / -1; } }
.story__thanks li { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.story__thanks li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--orange), transparent); }
.story__thanks li:first-child { background: linear-gradient(160deg, #1a120b, var(--surface) 70%); border-color: rgba(255, 107, 0, 0.35); }
.story__thanks .mono { display: block; color: var(--orange); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem; margin-bottom: 8px; }
.story__thanks p { margin: 0; color: #cfcfcf; font-size: 0.96rem; }
.story__sign { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 8px; }
.story__sign .sig { width: 240px; height: auto; display: block; overflow: visible; }
.sig-s { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.story__sign.is-signed .sig-s { animation: sig-draw var(--dur) linear calc(var(--delay) + 0.2s) forwards; }
@keyframes sig-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .sig-s { stroke-dashoffset: 0; } }
.story__sign .mono { color: var(--muted); margin-left: 6px; }

/* Tool cards: outcome line and stack */
.tool__benefit { position: relative; padding-left: 16px; color: #e6e6e6 !important; font-size: 0.9rem !important; }
.tool__benefit::before { content: "▸"; position: absolute; left: 0; color: var(--orange); }
.tool__stack { margin: 0 !important; color: var(--dim) !important; font-size: 0.72rem !important; line-height: 1.6; }
.tool__live { white-space: nowrap; }

/* "Beyond the work" motion */
.story__quote { position: relative; border-left: 0 !important; }
.story__quote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--orange); transform: scaleY(0); transform-origin: top; transition: transform 1s var(--ease); }
.story__quote.is-play::before { transform: scaleY(1); }
.story__quote::after { content: "“"; position: absolute; z-index: -1; left: 6px; top: -0.32em; font: 700 9rem/1 var(--font-display); color: var(--orange); opacity: 0; transform: scale(0.4) rotate(-25deg); transform-origin: 30% 70%; transition: opacity 0.6s, transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1); pointer-events: none; }
.story__quote.is-play::after { opacity: 0.1; transform: none; }
.story__quote { isolation: isolate; }
.story__quote .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.story__quote .wi { display: inline-block; transform: translateY(105%); transition: transform 0.8s cubic-bezier(0.2, 0.75, 0.2, 1), color 0.8s; transition-delay: calc(var(--i) * 70ms + 0.25s); }
.story__quote.is-play .wi { transform: none; }
.story__quote .w--key .wi { transition-delay: calc(var(--i) * 70ms + 0.25s), calc(var(--n) * 70ms + 0.7s); }
.story__quote.is-play .w--key .wi { color: var(--orange); }
.story__quote cite { display: inline-block; opacity: 0; transform: translateX(-16px); letter-spacing: 0.3em; transition: opacity 0.7s, transform 0.7s var(--ease), letter-spacing 0.9s var(--ease); transition-delay: calc(var(--n, 10) * 70ms + 0.5s); }
.story__quote.is-play cite { letter-spacing: 0.08em; }
.story__quote.is-play cite { opacity: 1; transform: none; }
.story__text p { opacity: 0.4; transition: opacity 0.7s, color 0.7s; }
.story__text p.is-focus, .story__text p.was-read { opacity: 1; }
.story__text p.was-read:not(.is-focus) { opacity: 0.72; }
.story__text .hl { background: linear-gradient(var(--orange), var(--orange)) left 100% / 0 2px no-repeat; padding-bottom: 2px; transition: background-size 1.1s var(--ease) 0.35s, color 0.6s 0.35s; }
.story__text p.is-inked.is-focus .hl, .story__text p.is-inked.was-read .hl { background-size: 100% 2px; color: #fff; transition-delay: 1s; }
.story__close { min-height: 1.85em; }
.story__close .caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; background: var(--orange); vertical-align: -3px; animation: blink 0.9s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .story__text p { opacity: 1; } .story__quote .w, .story__quote cite { opacity: 1; filter: none; transform: none; } }

/* paragraph words "ink in" as the paragraph scrolls into view */
.story__text .ink { display: inline-block; opacity: 0; filter: blur(5px); transform: translateY(0.45em); transition: opacity 0.5s, filter 0.5s, transform 0.6s var(--ease); transition-delay: calc(var(--i) * 14ms); }
.story__text p.is-inked .ink { opacity: 1; filter: none; transform: none; }
@media (prefers-reduced-motion: reduce) { .story__quote .wi { transform: none; } .story__quote::after { opacity: 0.18; transform: none; } }

.story__name { min-height: 1.4em; }
.story__name .caret { display: inline-block; width: 7px; height: 1em; margin-left: 2px; background: var(--orange); vertical-align: -2px; animation: blink 0.9s steps(1) infinite; }
.footer__thanks { color: var(--orange); }

/* Contact ------------------------------------------------------------------- */
.contact { overflow: hidden; }
.contact__glow { position: absolute; width: 800px; height: 800px; left: -300px; bottom: -400px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 107, 0, 0.12), transparent 60%); pointer-events: none; }
.contact__grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1000px) { .contact__grid { grid-template-columns: 1fr 1.05fr; gap: 64px; } }
.contact__intro h2 { margin-bottom: 0; }
.contact__topics { display: grid; gap: 10px; margin: 28px 0 32px; }
.contact__topics li { position: relative; padding-left: 26px; color: #d6d6d6; }
.contact__topics li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--orange); background: var(--orange-soft); }
.contact__direct { padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); margin-bottom: 18px; }
.contact__direct .mono { display: block; color: var(--dim); margin-bottom: 6px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; }
.contact__mailrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.contact__mail { font: 500 1.05rem var(--font-display); color: var(--text); text-decoration: none; word-break: break-all; transition: color 0.2s; }
.contact__mail:hover { color: var(--orange); }
.contact__copy { font: 500 0.78rem var(--font-mono); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; color: var(--muted); transition: all 0.2s; }
.contact__copy:hover { border-color: var(--orange); color: var(--orange); }
.contact__socials { display: flex; gap: 10px; }
.csocial { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); transition: all 0.25s var(--ease); }
.csocial svg { width: 20px; height: 20px; }
.csocial span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.csocial:hover { color: var(--orange); border-color: rgba(255, 107, 0, 0.55); transform: translateY(-3px); }

.contact__form { position: relative; padding: 26px; border-radius: 18px; border: 1px solid var(--line-strong); background: linear-gradient(160deg, #141008, #0f0f0f 55%); box-shadow: 0 40px 100px -50px var(--orange-glow); }
@media (min-width: 720px) { .contact__form { padding: 32px; } }
.contact__form-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--muted); }
.contact__chips { border: 0; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.contact__chips label { cursor: pointer; }
.contact__chips input { position: absolute; opacity: 0; pointer-events: none; }
.contact__chips span { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.82rem; color: var(--muted); transition: all 0.2s; }
.contact__chips label:hover span { color: var(--text); border-color: var(--muted); }
.contact__chips input:checked + span { background: var(--orange); border-color: var(--orange); color: #0a0a0a; }
.contact__chips input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.contact__row { display: grid; gap: 14px; }
@media (min-width: 560px) { .contact__row { grid-template-columns: 1fr 1fr; } }
.cfield { position: relative; display: block; margin-bottom: 14px; }
.cfield input, .cfield textarea { width: 100%; padding: 22px 14px 9px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(10, 10, 10, 0.7); color: var(--text); font: inherit; resize: vertical; transition: border-color 0.2s, box-shadow 0.2s; }
.cfield textarea { min-height: 140px; }
.cfield span { position: absolute; left: 15px; top: 16px; color: var(--dim); font-size: 0.95rem; pointer-events: none; transition: all 0.2s var(--ease); }
.cfield input:focus, .cfield textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15); }
.cfield input:focus + span, .cfield textarea:focus + span,
.cfield input:not(:placeholder-shown) + span, .cfield textarea:not(:placeholder-shown) + span { top: 7px; font-size: 0.7rem; color: var(--orange); letter-spacing: 0.04em; }
.cfield .is-invalid { border-color: #ff4d4d; }
.contact__error { min-height: 1.3em; margin: 0 0 10px; color: #ff7a7a; font-size: 0.88rem; }
.contact__error a { color: var(--orange); }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.contact__note { color: var(--dim); font-size: 0.72rem; }
.contact__sent { position: absolute; inset: 0; border-radius: inherit; background: #120e0a; display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px; padding: 30px; animation: fade 0.4s; }
.contact__sent[hidden] { display: none; }
.contact__sent h3 { font-size: 1.5rem; }
.contact__sent p { color: var(--muted); margin: 0 0 14px; }
.contact__sent strong { color: var(--text); }

/* Travel facts */
.travel__note--legend .mono, .travel__note--opinion .mono { color: #ffb36b !important; }
.travel__note--quote { font-style: italic; }
.travel__more { margin-top: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 140, 60, 0.35); background: rgba(255, 107, 0, 0.08); color: #ffcfa6; font: 500 0.78rem var(--font-mono); transition: all 0.2s; }
.travel__more:hover { background: var(--orange); border-color: var(--orange); color: #140a04; }
[data-fact].is-swap { animation: flash 0.45s var(--ease); }

.contact__travel { font-size: 0.85rem !important; color: #ffcfa6 !important; max-width: 380px; }
/* Footer: on phones the thank-you sits on top, copyright underneath, both centred */
@media (max-width: 719px) {
  .footer__inner { flex-direction: column; text-align: center; gap: 14px; }
  .footer__text { display: flex; flex-direction: column; gap: 6px; align-items: center; }
  .footer__thanks { order: -1; }
  .footer__sep { display: none; }
}

/* Tools: photo of the tools in use + carousel, side by side */
.tools-layout { display: grid; gap: 28px; align-items: start; }
.tools-layout > * { min-width: 0; }
.station__svg svg { display: block; width: 100%; height: auto; }
@media (min-width: 1100px) {
  .tools-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  /* one wide card per view: short illustration strip on top, text across the full width */
  .tools-layout .carousel--tools { --card-w: 100%; }
  .tools-layout .carousel--tools .carousel__track { mask-image: none; -webkit-mask-image: none; }
  .tools-layout .tool__shot { aspect-ratio: 3 / 1; }
  .tools-layout .tool__viz svg { height: 100%; }
  .tools-layout .tool__body { padding: 20px 24px; gap: 10px; }
  .tools-layout .tool h3 { font-size: 1.25rem; }
  .tools-layout .tool p { font-size: 0.92rem; line-height: 1.6; }
}
.station { margin: 0; display: grid; gap: 14px; }
.station__frame { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 107, 0, 0.35); box-shadow: 0 40px 100px -40px var(--orange-glow); isolation: isolate; }
.station__scan { position: absolute; left: 0; right: 0; top: -30%; height: 30%; background: linear-gradient(transparent, rgba(255, 140, 60, 0.10), transparent); animation: station-scan 7s linear infinite; pointer-events: none; }
@keyframes station-scan { to { top: 100%; } }
.station figcaption { color: var(--muted); font-size: 0.92rem; line-height: 1.65; }
.station figcaption .mono { display: block; color: var(--orange); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; margin-bottom: 6px; }
@media (prefers-reduced-motion: reduce) { .station__scan { animation: none; } }

/* Contact: staged entrance --------------------------------------------------- */
.contact__intro.reveal, .contact__form.reveal { opacity: 1; transform: none; }
.contact__intro > * { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.contact__intro.is-in > * { opacity: 1; transform: none; }
.contact__intro > :nth-child(2) { transition-delay: 0.1s; }
.contact__intro > :nth-child(3) { transition-delay: 0.25s; }
.contact__intro > :nth-child(4) { transition-delay: 0.4s; }
.contact__intro > :nth-child(5) { transition-delay: 0.9s; }
.contact__intro > :nth-child(6) { transition-delay: 1.05s; }
.contact__intro h2 .accent { background: linear-gradient(var(--orange), var(--orange)) left 100% / 0 3px no-repeat; transition: background-size 1s var(--ease) 0.6s; }
.contact__intro.is-in h2 .accent { background-size: 100% 3px; }
.contact__topics li { opacity: 0; transform: translateX(-14px); transition: opacity 0.5s, transform 0.5s var(--ease); }
.contact__intro.is-in .contact__topics li { opacity: 1; transform: none; }
.contact__topics li:nth-child(1) { transition-delay: 0.5s; } .contact__topics li:nth-child(2) { transition-delay: 0.6s; }
.contact__topics li:nth-child(3) { transition-delay: 0.7s; } .contact__topics li:nth-child(4) { transition-delay: 0.8s; }
.contact__topics li::before { transform: scale(0); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s; transition-delay: inherit; }
.contact__intro.is-in .contact__topics li::before { transform: scale(1); background: var(--orange); }
.contact__socials li { opacity: 0; transform: scale(0.6); transition: opacity 0.4s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.contact__intro.is-in .contact__socials li { opacity: 1; transform: none; }
.contact__socials li:nth-child(1) { transition-delay: 1.15s; } .contact__socials li:nth-child(2) { transition-delay: 1.25s; }
.contact__socials li:nth-child(3) { transition-delay: 1.35s; } .contact__socials li:nth-child(4) { transition-delay: 1.45s; }
.contact__form { opacity: 0; transform: translateX(48px) !important; transition: opacity 0.9s var(--ease) 0.2s, transform 0.9s var(--ease) 0.2s; overflow: hidden; }
.contact__form.is-in { opacity: 1; transform: none !important; }
.contact__form::before { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 2px; background: linear-gradient(90deg, transparent, var(--orange), transparent); }
.contact__form.is-in::before { animation: form-sweep 4s ease-in-out 1s infinite; }
@keyframes form-sweep { 0% { left: -40%; } 60%, 100% { left: 110%; } }
.contact__form > *:not(.contact__sent) { opacity: 0; transform: translateY(12px); transition: opacity 0.5s, transform 0.5s var(--ease); }
.contact__form.is-in > *:not(.contact__sent) { opacity: 1; transform: none; }
.contact__form > :nth-child(1) { transition-delay: 0.6s; } .contact__form > :nth-child(2) { transition-delay: 0.75s; }
.contact__form > :nth-child(3) { transition-delay: 0.9s; } .contact__form > :nth-child(4) { transition-delay: 1.05s; }
.contact__form > :nth-child(6) { transition-delay: 1.15s; } .contact__form > :nth-child(7) { transition-delay: 1.25s; }
.contact__form.is-in .contact__actions .btn--primary { animation: send-pulse 2.6s ease-in-out 2s infinite; }
@keyframes send-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); } 50% { box-shadow: 0 0 0 8px rgba(255, 107, 0, 0.18); } }
@media (prefers-reduced-motion: reduce) { .contact__intro > *, .contact__topics li, .contact__socials li, .contact__form, .contact__form > * { opacity: 1 !important; transform: none !important; } }

/* Education: livelier degree cards ---------------------------------------- */
.edu-card { position: relative; overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s ease-out; }
.edu-card:hover { border-color: rgba(255, 107, 0, 0.55); box-shadow: 0 30px 70px -40px var(--orange-glow); }
.edu-card__icon { width: 40px; height: 40px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 1.6s var(--ease); transition-delay: calc(var(--d, 0s) + 0.3s); }
.edu-card.is-in .edu-card__icon { stroke-dashoffset: 0; }
.edu-card .badge { position: relative; overflow: hidden; }
.edu-card .badge::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%; background: linear-gradient(90deg, transparent, rgba(255, 180, 100, 0.45), transparent); transform: skewX(-20deg); }
.edu-card.is-in .badge::after { animation: badge-shine 4.5s ease-in-out infinite; animation-delay: calc(var(--d, 0s) + 1.2s); }
@keyframes badge-shine { 0% { left: -60%; } 30%, 100% { left: 130%; } }
.edu-card__dates { font-size: 1.6rem !important; color: rgba(255, 255, 255, 0.12) !important; font-weight: 700; letter-spacing: 0.04em; transition: color 0.4s; }
.edu-card:hover .edu-card__dates { color: var(--orange) !important; }
@media (prefers-reduced-motion: reduce) { .edu-card__icon { stroke-dashoffset: 0; } }

/* Beyond the work: fast character typing ------------------------------------ */
.story .ch { visibility: hidden; }
.story .ch.on { visibility: visible; }
.story__text p { opacity: 1 !important; }
.story .tw--key { transition: color 0.6s 0.1s; }
.story__quote.is-play .tw--key { color: var(--orange); }
.story__quote::before { transition-duration: 0.5s; }
.story__quote.is-start::before { transform: scaleY(1); }
.story__quote.is-start::after { opacity: 0.1; transform: none; }
.story__quote cite { transition-delay: 0s !important; transition-duration: 0.45s !important; }
.story__text .hl { transition-delay: 0.1s; }
.story__text p.is-inked .hl { background-size: 100% 2px; color: #fff; transition-delay: 0.1s; }
.story__caret { display: inline-block; width: 2px; height: 1em; margin-left: 1px; background: var(--orange); vertical-align: -2px; }
