/* ==========================================================================
   Léon Gouba — Portfolio QA
   Thème : dark tech / terminal
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */
:root {
  /* Fonds */
  --bg:          #070A0F;
  --bg-soft:     #0B111A;
  --surface:     #0E1621;
  --surface-2:   #141F2C;
  --border:      #1D2C3C;
  --border-lit:  #2B4356;

  /* Texte */
  --text:        #E6EEF7;
  --text-2:      #A9BDD1;
  --muted:       #6F8399;

  /* Accents */
  --cyan:        #22D3EE;
  --teal:        #2DD4BF;
  --green:       #4ADE80;
  --violet:      #A78BFA;
  --amber:       #FBBF24;
  --grad:        linear-gradient(135deg, #A78BFA 0%, #22D3EE 100%);

  /* Typo */
  --f-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-body:    "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Rythme */
  --maxw: 1140px;
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;

  --t: 220ms cubic-bezier(.4, 0, .2, 1);
}

/* --- 2. Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

::selection { background: rgba(34, 211, 238, .28); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- 3. Utilitaires ----------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--cyan);
  color: #06121A;
  padding: .75rem 1.25rem;
  font-weight: 600;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

.mono { font-family: var(--f-mono); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- 4. Fond ------------------------------------------------------------ */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -6%, rgba(167, 139, 250, .13), transparent 62%),
    radial-gradient(760px 480px at 12% 8%, rgba(34, 211, 238, .10), transparent 60%),
    var(--bg);
}
.bg-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45, 212, 191, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 82% 62% at 50% 0%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 82% 62% at 50% 0%, #000 35%, transparent 100%);
}

/* --- 5. Header ---------------------------------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 10, 15, .72);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.site-head.is-stuck {
  border-bottom-color: var(--border);
  background: rgba(7, 10, 15, .90);
}

.head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: 1.02rem;
}
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--grad);
  color: #06121A;
  font-family: var(--f-mono);
  font-size: .82rem;
  font-weight: 700;
  flex: none;
}
.brand small {
  display: block;
  font-family: var(--f-mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  padding: .5rem .8rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  color: var(--text-2);
  transition: color var(--t), background var(--t);
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a.is-active { color: var(--cyan); }
/* Le CTA de la nav ne sert qu'au menu mobile (le header a déjà son bouton) */
.nav > .btn { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .72rem 1.25rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #05101A;
  box-shadow: 0 6px 26px -10px rgba(34, 211, 238, .75);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -10px rgba(34, 211, 238, .9); }
.btn-ghost {
  background: rgba(255, 255, 255, .03);
  border-color: var(--border-lit);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .07); border-color: var(--cyan); transform: translateY(-2px); }
.btn-sm { padding: .5rem 1rem; font-size: .84rem; }

.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border-lit);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 17px; height: 1.5px;
  margin: 3.5px auto;
  background: var(--text);
  transition: transform var(--t), opacity var(--t);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* --- 6. Hero ------------------------------------------------------------ */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .85rem .35rem .55rem;
  border: 1px solid var(--border-lit);
  border-radius: 999px;
  background: rgba(74, 222, 128, .06);
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--text-2);
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, .18);
  flex: none;
}
.dot.pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74, 222, 128, .18); }
  50%      { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
}

.hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  margin: 1.35rem 0 0;
}
.hero-role {
  font-family: var(--f-mono);
  font-size: clamp(.95rem, 2vw, 1.12rem);
  color: var(--cyan);
  margin: .9rem 0 0;
  min-height: 1.7em;
}
.caret {
  display: inline-block;
  width: 9px;
  background: var(--cyan);
  margin-left: 2px;
  animation: blink 1.05s steps(2, start) infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-lede {
  color: var(--text-2);
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  max-width: 54ch;
  margin: 1.35rem 0 0;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2.75rem;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.stat { background: var(--bg-soft); padding: 1.1rem 1.2rem; }
.stat b {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span {
  display: block;
  margin-top: .4rem;
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Terminal */
.term {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem .95rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .015);
}
.term-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #35485C;
  display: block;
}
.term-bar i:nth-child(1) { background: #F87171; }
.term-bar i:nth-child(2) { background: #FBBF24; }
.term-bar i:nth-child(3) { background: #4ADE80; }
.term-bar em {
  margin-left: .6rem;
  font-family: var(--f-mono);
  font-style: normal;
  font-size: .72rem;
  color: var(--muted);
}
.term-body {
  padding: 1.15rem 1.15rem 1.35rem;
  font-family: var(--f-mono);
  font-size: .795rem;
  line-height: 1.85;
  overflow-x: auto;
}
.term-body .l { white-space: pre; }
.c-prompt { color: var(--violet); }
.c-cmd    { color: var(--text); }
.c-ok     { color: var(--green); }
.c-key    { color: var(--cyan); }
.c-dim    { color: var(--muted); }
.c-warn   { color: var(--amber); }

/* --- 6bis. Bande de références ------------------------------------------ */
.refs {
  border-block: 1px solid var(--border);
  background: rgba(11, 17, 26, .5);
  padding: 1.6rem 0;
}
.refs-in {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3rem);
  flex-wrap: wrap;
}
.refs-label {
  margin: 0;
  flex: none;
  font-family: var(--f-mono);
  font-size: .66rem;
  line-height: 1.5;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 2px solid var(--cyan);
  padding-left: .8rem;
  max-width: 8.5rem;
}
.refs-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem clamp(1rem, 3vw, 2.25rem);
  flex: 1;
}
.refs-list li {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(.86rem, 1.6vw, 1.02rem);
  letter-spacing: .01em;
  color: var(--text-2);
  opacity: .8;
  transition: opacity var(--t), color var(--t);
}
.refs-list li:hover { opacity: 1; color: var(--text); }

@media (max-width: 620px) {
  .refs-in { flex-direction: column; align-items: stretch; gap: 1rem; }
  .refs-label { max-width: none; }
  .refs-list { gap: .5rem 1.15rem; }
  .refs-list li { font-size: .88rem; }
}

/* --- 7. Sections -------------------------------------------------------- */
.sec { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.sec-alt { background: rgba(11, 17, 26, .55); border-block: 1px solid var(--border); }

.sec-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .85rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--cyan);
  flex: none;
}
.sec h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.sec-head p { color: var(--text-2); margin: .9rem 0 0; }

/* --- 8. À propos -------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.about-grid p { color: var(--text-2); }
.about-grid p + p { margin-top: 1rem; }
.about-grid strong { color: var(--text); font-weight: 600; }

.facts {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  padding: 1.35rem;
}
.facts dl { margin: 0; display: grid; gap: .95rem; }
.facts dt {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd { margin: .2rem 0 0; font-size: .93rem; color: var(--text); }
.facts dd a { color: var(--cyan); }
.facts dd a:hover { text-decoration: underline; }

/* --- 9. Timeline -------------------------------------------------------- */
.tl { position: relative; padding-left: 2rem; }
.tl::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), var(--violet) 55%, transparent);
}
.tl-item { position: relative; padding-bottom: 2.5rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -2rem; top: 8px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
}
.tl-date {
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--cyan);
}
.tl-item h3 { font-size: 1.12rem; margin: .35rem 0 .1rem; }
.tl-org { font-size: .88rem; color: var(--muted); }
.tl-item ul {
  margin: .85rem 0 0;
  padding-left: 1.05rem;
  color: var(--text-2);
  font-size: .93rem;
}
.tl-item li { margin-bottom: .35rem; }
.tl-item li::marker { color: var(--teal); }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .95rem; }
.tag {
  font-family: var(--f-mono);
  font-size: .7rem;
  padding: .26rem .6rem;
  border: 1px solid var(--border-lit);
  border-radius: 999px;
  color: var(--text-2);
  background: rgba(255, 255, 255, .02);
}

/* --- 10. Compétences ---------------------------------------------------- */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1rem;
}
.skill-card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  padding: 1.35rem;
  transition: border-color var(--t), transform var(--t);
}
.skill-card:hover { border-color: var(--border-lit); transform: translateY(-3px); }
.skill-ico {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(34, 211, 238, .1);
  border: 1px solid rgba(34, 211, 238, .22);
  color: var(--cyan);
  margin-bottom: .9rem;
}
.skill-card h3 { font-size: 1.02rem; }
.skill-card p { color: var(--muted); font-size: .86rem; margin: .4rem 0 .9rem; }

/* --- 11. Projets -------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.75rem;
}
.filter {
  padding: .45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-lit);
  background: rgba(255, 255, 255, .02);
  color: var(--text-2);
  font-family: var(--f-mono);
  font-size: .78rem;
  cursor: pointer;
  transition: all var(--t);
}
.filter:hover { color: var(--text); border-color: var(--cyan); }
.filter[aria-pressed="true"] {
  background: var(--grad);
  border-color: transparent;
  color: #05101A;
  font-weight: 600;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.1rem;
}
.proj {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.proj::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity var(--t);
}
.proj:hover {
  transform: translateY(-4px);
  border-color: var(--border-lit);
  box-shadow: 0 22px 48px -28px rgba(0, 0, 0, .95);
}
.proj:hover::before { opacity: 1; }
.proj[hidden] { display: none; }

.proj-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .7rem;
}
.proj h3 { font-size: 1.08rem; }
.proj-kind {
  font-family: var(--f-mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .3rem;
  display: block;
}
.badge {
  flex: none;
  font-family: var(--f-mono);
  font-size: .63rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .55rem;
  border-radius: 999px;
  border: 1px solid;
}
.badge.prod  { color: var(--green);  border-color: rgba(74, 222, 128, .35);  background: rgba(74, 222, 128, .08); }
.badge.dev   { color: var(--cyan);   border-color: rgba(34, 211, 238, .35);  background: rgba(34, 211, 238, .08); }
.badge.spec  { color: var(--violet); border-color: rgba(167, 139, 250, .35); background: rgba(167, 139, 250, .08); }

.proj p { color: var(--text-2); font-size: .9rem; margin: 0 0 1rem; flex: 1; }
.proj-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; padding-top: .35rem; }
.lnk {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--f-mono);
  font-size: .76rem;
  color: var(--cyan);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t);
}
.lnk:hover { border-bottom-color: var(--cyan); }
.lnk[data-todo] { color: var(--muted); cursor: default; }

/* --- 12. Services ------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 1.1rem;
}
.svc {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  padding: 1.6rem 1.4rem;
  transition: border-color var(--t), transform var(--t);
}
.svc:hover { border-color: var(--border-lit); transform: translateY(-3px); }
.svc-num {
  font-family: var(--f-mono);
  font-size: .74rem;
  color: var(--violet);
  letter-spacing: .1em;
}
.svc h3 { font-size: 1.1rem; margin: .55rem 0 .55rem; }
.svc p { color: var(--text-2); font-size: .89rem; margin: 0 0 1rem; }
.svc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .85rem;
  color: var(--muted);
}
.svc li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: .35rem;
}
.svc li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--teal);
}

/* --- 13. Contact -------------------------------------------------------- */
.cta {
  border: 1px solid var(--border-lit);
  border-radius: var(--r-lg);
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(167, 139, 250, .16), transparent 62%),
    radial-gradient(600px 280px at 88% 100%, rgba(34, 211, 238, .14), transparent 60%),
    var(--surface);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.cta h2 { font-size: clamp(1.65rem, 3.6vw, 2.35rem); }
.cta p {
  color: var(--text-2);
  max-width: 52ch;
  margin: 1rem auto 0;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-top: 2rem;
}
.contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  font-family: var(--f-mono);
  font-size: .82rem;
}
.contact-list a { color: var(--text-2); transition: color var(--t); }
.contact-list a:hover { color: var(--cyan); }

/* --- 14. Footer --------------------------------------------------------- */
.site-foot {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 1rem;
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: .76rem;
  color: var(--muted);
}
.foot-in a:hover { color: var(--cyan); }

/* --- 15. Reveal --------------------------------------------------------- */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}
.rv.in { opacity: 1; transform: none; }

/* --- 16. Responsive ----------------------------------------------------- */
@media (max-width: 940px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  /* Sur mobile, le discours passe avant la démo terminal */
  .term { margin-top: .5rem; }
  .term-body { font-size: .72rem; }
}

@media (max-width: 430px) {
  .term-body { font-size: .64rem; padding: .9rem; }
}

@media (max-width: 780px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gut) 1.5rem;
    background: rgba(7, 10, 15, .98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--t);
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: .85rem .25rem; border-bottom: 1px solid var(--border); }
  .nav > .btn { display: inline-flex; margin-top: .9rem; justify-content: center; border-bottom: 0; }
  .head-cta { display: none; }
  .stats { grid-template-columns: 1fr; }
  .tl { padding-left: 1.6rem; }
  .tl-item::before { left: -1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .rv { opacity: 1; transform: none; }
}

@media print {
  .bg-fx, .site-head, .hero-cta, .cta-actions, .filters, .burger { display: none !important; }
  body { background: #fff; color: #000; }
  .proj, .svc, .skill-card, .facts { border-color: #ccc; background: #fff; }
}
