/* ==========================================================================
   Antonin Gonzalez — Portfolio
   Palette, typographies et composants partagés par toutes les pages.
   ========================================================================== */

:root {
  --bg: #000;
  --bg-soft: #0a0a0a;
  --card: #0d0d0d;
  --line: #1f1f1f;
  --white: #fff;
  --muted: #949494;
  --text-dim: rgba(255, 255, 255, .6);
  --accent: #ff4e00;
  --green: #31ee33;

  --f-display: "Instrument Sans", system-ui, sans-serif;
  --f-body: "Inter Tight", system-ui, sans-serif;
  --f-italic: "Inter", system-ui, sans-serif;

  --pad: 40px;
  --header-h: 115px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

.accent { color: var(--accent); }
.upper { text-transform: uppercase; }

/* ---------- Titres ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .89;
  letter-spacing: -.025em;
}
.display--xl { font-size: clamp(64px, 9.75vw, 140px); line-height: .79; letter-spacing: -.036em; }
.display--l  { font-size: clamp(56px, 11.1vw, 160px); letter-spacing: -.019em; line-height: 1.02; }
.display--m  { font-size: clamp(48px, 7.65vw, 110px); letter-spacing: -.027em; line-height: .91; }
.display--s  { font-size: clamp(44px, 6.25vw, 90px); letter-spacing: -.026em; }

.label {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 20px;
  text-transform: uppercase;
}
.label--muted { color: var(--muted); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 28px;
  border-radius: 999px;
  font-family: var(--f-body); font-weight: 700; font-size: 18px;
  text-transform: uppercase; white-space: nowrap;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.btn--outline { border: 2px solid #fff; }
.btn--outline:hover { background: #fff; color: #000; }
.btn--light { background: #fff; color: #000; }
.btn--light:hover { background: var(--accent); color: #fff; }
.btn--small { height: 44px; font-size: 16px; padding: 0 24px; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--pad);
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__clock { font-family: var(--f-display); font-weight: 600; font-size: 18px; line-height: 28px; }
.header__clock span:first-child { color: var(--text-dim); }
.header__clock .when-open { display: none; }
.header__right { justify-self: end; }

.menu-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  transition: background .3s;
}
.menu-btn__dots {
  width: 14px; height: 14px; display: grid;
  grid-template-columns: 4px 4px; gap: 6px; justify-content: space-between;
}
.menu-btn__dots i { width: 4px; height: 4px; border-radius: 50%; background: #fff; transition: transform .4s var(--ease); }
.menu-btn__close { display: none; width: 18px; height: 18px; position: relative; }
.menu-btn__close::before, .menu-btn__close::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 18px; height: 2px; background: #000; border-radius: 2px;
}
.menu-btn__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.menu-btn__close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.menu-btn:hover .menu-btn__dots i:nth-child(1) { transform: translate(-2px, -2px); }
.menu-btn:hover .menu-btn__dots i:nth-child(2) { transform: translate(2px, -2px); }
.menu-btn:hover .menu-btn__dots i:nth-child(3) { transform: translate(-2px, 2px); }
.menu-btn:hover .menu-btn__dots i:nth-child(4) { transform: translate(2px, 2px); }

body.menu-open .menu-btn { background: #fff; }
body.menu-open .menu-btn__dots { display: none; }
body.menu-open .menu-btn__close { display: block; }
body.menu-open .header { background: #000; border-color: transparent; }
body.menu-open .header__clock .when-closed { display: none; }
body.menu-open .header__clock .when-open { display: inline; }
body.menu-open { overflow: hidden; }

/* ---------- Menu plein écran ---------- */
.menu {
  position: fixed; inset: 0; z-index: 40;
  background: #000;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
body.menu-open .menu { opacity: 1; visibility: visible; }
.menu__links { text-align: center; }
.menu__links a {
  display: block; overflow: hidden;
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(64px, 9.7vw, 140px); line-height: .9; letter-spacing: -.035em;
  transition: color .3s;
}
.menu__links a span { display: block; transform: translateY(100%); transition: transform .8s var(--ease); }
body.menu-open .menu__links a span { transform: none; }
.menu__links a:nth-child(2) span { transition-delay: .08s; }
.menu__links a:hover { color: var(--accent); }
.menu__bottom {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}

.socials { display: flex; gap: 22px; flex-wrap: wrap; }
.socials a { display: inline-flex; align-items: center; gap: 4px; transition: color .3s; }
.socials a:hover { color: var(--accent); }
.socials a::after { content: "↗"; font-size: .85em; }

/* ==========================================================================
   Animations génériques
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

/* Lignes de titre qui montent depuis un masque */
.line-mask { display: block; overflow: hidden; padding-bottom: .04em; }
.line-mask > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.is-in .line-mask > span, .line-mask.is-in > span { transform: none; }
.line-mask:nth-child(2) > span { transition-delay: .12s; }

/* Bandeau qui défile en continu */
.marquee { overflow: hidden; width: 100%; }
.marquee__track {
  display: flex; gap: var(--gap, 10px); width: max-content;
  animation: marquee var(--speed, 40s) linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap, 10px) / 2)); } }

/* Curseur rond */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), opacity .3s;
  opacity: 0;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ==========================================================================
   Accueil
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative; height: calc(100vh - 56px); min-height: 600px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 var(--pad) 60px;
}
.status {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-display); font-weight: 600; font-size: 18px; letter-spacing: .5px;
  text-transform: uppercase; color: rgba(255, 255, 255, .7);
  margin-bottom: 22px;
}
.status::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(49, 238, 51, .6); animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(49, 238, 51, 0); } 100% { box-shadow: 0 0 0 0 rgba(49, 238, 51, 0); } }
.hero__title .line-mask { padding: .02em 0 .1em; margin-bottom: -.1em; }
.hero__foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 44px;
  display: flex; justify-content: space-between;
  font-family: var(--f-display); font-weight: 600; font-size: 17px; text-transform: uppercase;
}
.hero__foot a:hover { color: var(--accent); }

/* ---------- Photo pleine largeur avec parallaxe ---------- */
/* Le haut de la photo dépasse en bas du premier écran ; l'image défile plus lentement que son cadre. */
.cover { position: relative; overflow: hidden; height: min(100vh, 56.25vw); }
.cover__img {
  position: absolute; left: 0; top: -15%;
  width: 100%; height: 130%; object-fit: cover;
  transform: translate3d(0, var(--shift, 0px), 0);
  will-change: transform;
}

/* ---------- Portfolio ---------- */
.section { padding: 120px var(--pad); }
.intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
  margin-bottom: 60px;
}
.intro__text {
  font-family: var(--f-body); font-weight: 300; font-style: italic;
  font-size: clamp(18px, 1.67vw, 24px); line-height: 1.42; letter-spacing: .4px;
  text-align: justify;
}

.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.card__media { position: relative; aspect-ratio: 684 / 450; overflow: hidden; background: #111; }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(.55);
  transform: scale(1.02);
  transition: transform 1.2s var(--ease), filter .8s var(--ease);
}
.card:hover .card__media img { transform: scale(1.08); filter: grayscale(0) brightness(.85); }
.card__body {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 26px 26px;
}
.card__title { font-family: var(--f-display); font-weight: 600; font-size: 20px; line-height: 28px; text-transform: uppercase; }
.card__sub { font-family: var(--f-display); font-weight: 500; font-size: 18px; color: var(--muted); margin-top: 2px; }
.pill {
  flex: none; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #161616;
  font-family: var(--f-display); font-weight: 500; font-size: 16px;
}

/* ---------- À propos ---------- */
.about { text-align: center; padding-top: 160px; }
.about__title { margin-bottom: 70px; }
.oval {
  width: min(360px, 70vw); aspect-ratio: 360 / 500; margin: 0 auto;
  border-radius: 999px; overflow: hidden;
}
.oval img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.oval:hover img { transform: scale(1.05); }
.about__lead {
  margin: 60px auto 0; max-width: 980px;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.33;
  color: var(--accent); text-transform: uppercase;
}
.about__italic {
  max-width: 780px; margin: 4px auto 0;
  font-family: var(--f-italic); font-weight: 300; font-style: italic; font-size: clamp(18px, 1.75vw, 25px); line-height: 1.6;
}
.about__text {
  max-width: 820px; margin: 40px auto 44px;
  font-weight: 300; font-size: clamp(17px, 1.67vw, 24px); line-height: 1.42; letter-spacing: .4px;
}

/* ---------- Logos clients ---------- */
.logos { padding: 70px 0 40px; }
.logos .marquee__track { --gap: 30px; padding: 30px 0; }
.logo-tile {
  flex: none; width: 200px; aspect-ratio: 1;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #121212, #050505);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .6);
}
.logo-tile:nth-child(odd) { transform: rotate(-4deg); }
.logo-tile:nth-child(even) { transform: rotate(3deg) translateY(8px); }
.logo-tile img { width: 62%; height: 62%; object-fit: contain; }

/* ---------- Expertise ---------- */
.expertise__title { margin-bottom: 60px; }
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 34px 26px 40px;
  transition: border-color .4s, transform .6s var(--ease);
}
.skill:hover { border-color: #333; transform: translateY(-6px); }
.skill__num { font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: 2.4px; }
.skill__title { font-family: var(--f-display); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -.2px; text-transform: uppercase; margin: 22px 0 18px; }
.skill p { font-weight: 500; font-size: 20px; line-height: 31px; letter-spacing: .5px; color: rgba(255, 255, 255, .5); }

/* ---------- Bloc label à gauche / contenu à droite ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.split__label {
  position: sticky; top: calc(var(--header-h) + 40px); align-self: start;
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(36px, 3.5vw, 50px); line-height: 1.14; letter-spacing: -.8px;
}
.split__label--right-col { grid-column: 1; }

.rich {
  font-weight: 300; font-size: clamp(17px, 1.67vw, 24px); line-height: 1.42; letter-spacing: .4px;
}
.rich p + p { margin-top: 1.4em; }
.rich em { color: var(--accent); font-family: var(--f-italic); font-style: italic; font-weight: 400; }
.rich--justify { text-align: justify; }

/* ---------- Mockups pleine largeur ---------- */
.full-img { width: 100%; overflow: hidden; }
.full-img img { width: 100%; height: auto; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.full-img.is-in img { transform: none; }

/* ---------- Expérience ---------- */
.xp { display: flex; flex-direction: column; }
.xp__item { padding: 0 0 54px; border-bottom: 1px solid var(--line); }
.xp__item + .xp__item { padding-top: 54px; }
.xp__item:last-child { border-bottom: 0; }
.xp__name { font-family: var(--f-display); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -.6px; text-transform: uppercase; color: var(--accent); }
.xp__row {
  display: flex; justify-content: space-between; gap: 20px; margin: 22px 0 18px;
  font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 20px; letter-spacing: .2px; text-transform: uppercase;
}
.xp__item p { max-width: 640px; font-weight: 500; font-size: 20px; line-height: 31px; letter-spacing: .5px; color: var(--text-dim); text-align: justify; }

/* ---------- Stack ---------- */
.stack { display: flex; flex-direction: column; gap: 30px; }
.tool {
  display: grid; grid-template-columns: 88px 1fr; gap: 26px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px;
  transition: border-color .4s;
}
.tool:hover { border-color: #333; }
.tool__icon { width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: #101010; border: 1px solid var(--line); }
.tool__icon img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.tool__body { background: #111; border: 1px solid var(--line); border-radius: 12px; padding: 28px 30px; }
.tool__name { font-family: var(--f-display); font-weight: 700; font-size: 24px; text-transform: uppercase; }
.tool__row {
  display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 14px;
  font-family: var(--f-display); font-weight: 900; font-size: 20px; letter-spacing: .2px; text-transform: uppercase;
}
.tool__row b { font-weight: 700; font-size: 22px; }
.tool p { font-weight: 500; font-size: 20px; line-height: 31px; letter-spacing: .5px; color: rgba(255, 255, 255, .5); }
.tool__bar { height: 3px; border-radius: 3px; background: var(--line); margin-top: 22px; overflow: hidden; }
.tool__bar i { display: block; height: 100%; width: var(--value); background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease) .2s; }
.tool.is-in .tool__bar i { transform: scaleX(1); }

/* ---------- Call to action ---------- */
.cta { text-align: center; padding-top: 140px; }
.cta__title { margin-bottom: 40px; }
.cta .oval { margin-top: 70px; width: min(300px, 64vw); aspect-ratio: 300 / 470; }
.cta__lead { margin-top: 40px; font-family: var(--f-display); font-weight: 700; font-size: 22px; }
.cta__italic { font-family: var(--f-italic); font-style: italic; font-weight: 300; font-size: 20px; color: var(--text-dim); margin-top: 6px; }
.cta__go { display: inline-block; margin-top: 14px; font-family: var(--f-display); font-weight: 700; font-size: 29px; line-height: 39px; color: var(--accent); text-transform: uppercase; }
.cta__go:hover { text-decoration: underline; text-underline-offset: 6px; }
.cta .socials { justify-content: center; margin-top: 34px; font-family: var(--f-display); font-weight: 600; font-size: 18px; text-transform: uppercase; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 40px var(--pad) 50px;
  font-family: var(--f-display); font-weight: 600; font-size: 18px; text-transform: uppercase;
}
.footer a { transition: color .3s; }
.footer a:hover { color: var(--accent); }

/* ==========================================================================
   Pages projet
   ========================================================================== */
.p-head {
  display: grid; grid-template-columns: 1fr 556px; gap: 40px;
  padding: calc(var(--header-h) + 140px) var(--pad) 60px;
}
.p-head__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 3.5vw, 50px); line-height: 1.1; text-transform: uppercase; }
.meta { width: 100%; }
.meta__row {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 0 0 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-weight: 600; font-size: 20px; line-height: 1.1; text-transform: uppercase;
}
.meta__row:last-child { border-bottom: 0; margin-bottom: 0; }
.meta__row span:first-child { color: var(--muted); font-weight: 500; }
.meta__row span:last-child { text-align: right; }

.p-hero { width: 100%; overflow: hidden; }
.p-hero img { width: 100%; height: auto; }
.p-band { width: 100%; height: 40vw; max-height: 576px; overflow: hidden; }
.p-band img { width: 100%; height: 100%; object-fit: cover; }

.p-strip { padding: 10px 0; }
.p-strip .marquee__track { --gap: 10px; }
.p-strip img { flex: none; width: var(--w, 347px); aspect-ratio: var(--ratio, 4 / 5); object-fit: cover; border-radius: 4px; }

.p-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 10px; padding: 10px 0; }
.p-grid img { width: 100%; height: 100%; aspect-ratio: var(--ratio, 4 / 5); object-fit: cover; }
.p-grid--padded { padding: 10px var(--pad); }

.p-full { width: 100%; overflow: hidden; padding: 10px 0; }
.p-full img { width: 100%; height: auto; }
.p-full--contained { padding: 10px var(--pad); }
.p-full--contained img { border-radius: 10px; }

.p-text {
  display: grid; grid-template-columns: 1fr 700px; gap: 40px;
  padding: 120px var(--pad); border-bottom: 1px solid var(--line);
}
.p-text:last-of-type { border-bottom: 0; }
.p-text__label { font-family: var(--f-display); font-weight: 600; font-size: 20px; text-transform: uppercase; color: var(--muted); }
.p-text .rich ul { list-style: none; padding-left: 30px; margin-top: 1em; }
.p-text .rich li + li { margin-top: .5em; }
.p-sep { height: 1px; background: var(--line); margin: 0 var(--pad); }

.video { padding: 40px var(--pad); }
.video__frame { position: relative; max-width: 1220px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0d0d0d; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  padding: calc(var(--header-h) + 60px) var(--pad) 60px;
}
.contact__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 3.5vw, 50px); text-transform: uppercase; letter-spacing: -.8px; }
.contact__intro { margin: 18px 0 40px; font-weight: 400; font-size: clamp(18px, 1.67vw, 24px); line-height: 1.42; color: var(--text-dim); }
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.form input, .form textarea {
  width: 100%; padding: 18px 16px;
  background: #121212; border: 1px solid #121212; border-radius: 8px;
  color: #fff; font: 400 16px var(--f-body);
  transition: border-color .3s;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(255, 255, 255, .4); }
.form input:focus, .form textarea:focus { outline: none; border-color: #444; }
.form textarea { min-height: 150px; resize: vertical; }
.form button { height: 54px; border-radius: 8px; background: #fff; color: #000; font: 600 16px var(--f-display); text-transform: uppercase; transition: background .3s, color .3s; }
.form button:hover { background: var(--accent); color: #fff; }
.form__msg { font-size: 15px; color: var(--muted); min-height: 1em; }
.contact__photo { border-radius: 12px; overflow: hidden; }
.contact__photo img { width: 100%; height: 100%; max-height: 900px; object-fit: cover; }

.infos {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  margin: 40px var(--pad) 0; padding: 70px 18px 80px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.infos h3 { font-family: var(--f-display); font-weight: 500; font-size: 15px; color: var(--muted); text-transform: uppercase; margin-bottom: 22px; }
.infos p, .infos a { display: block; font-family: var(--f-display); font-weight: 600; font-size: 18px; line-height: 32px; text-transform: uppercase; }
.infos a:hover { color: var(--accent); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1439px) {
  :root { --header-h: 100px; }
  .p-head { grid-template-columns: 1fr 1fr; }
  .p-text { grid-template-columns: 1fr 1.6fr; }
}

@media (max-width: 1023px) {
  .intro, .split, .p-head, .p-text, .contact { grid-template-columns: 1fr; }
  .split__label { position: static; margin-bottom: 10px; }
  .skills { grid-template-columns: 1fr; }
  .infos { grid-template-columns: 1fr 1fr; }
  .p-text { padding: 80px var(--pad); gap: 20px; }
}

@media (max-width: 809px) {
  :root { --pad: 20px; --header-h: 84px; }
  .header__clock { font-size: 15px; }
  .header .btn { height: 42px; padding: 0 16px; font-size: 14px; }
  .status { font-size: 14px; }
  .hero__foot { bottom: 40px; font-size: 14px; }
  .section { padding: 80px var(--pad); }
  .projects { grid-template-columns: 1fr; }
  .intro__text, .rich--justify, .xp__item p { text-align: left; }
  .card__title { font-size: 18px; }
  .card__sub { font-size: 15px; }
  .logo-tile { width: 140px; }
  .skill p, .xp__item p, .tool p { font-size: 17px; line-height: 27px; }
  .xp__row { flex-direction: column; gap: 10px; font-size: 18px; }
  .xp__name { font-size: 26px; }
  .tool { grid-template-columns: 1fr; }
  .tool__row { font-size: 16px; }
  .p-grid { --cols: 2 !important; }
  .p-strip img { --w: 220px; }
  .infos { grid-template-columns: 1fr; padding: 50px 0; }
  .footer { flex-direction: column-reverse; gap: 14px; font-size: 15px; }
  .menu__bottom { flex-direction: column; gap: 14px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .line-mask > span, .menu__links a span { opacity: 1; transform: none; }
}
