/* ══════════════════════════════════════════════════════
   MAXIME FARINEAU — Portfolio CSS
   ══════════════════════════════════════════════════════ */

/* ─── FONTS ─────────────────────────────────────────── */

/* Clash Display (ITF Free Font License — commercial use OK) */
@font-face {
  font-family: 'ClashDisplay';
  src: url('../fonts/ClashDisplay-Bold.woff2') format('woff2'),
       url('../fonts/ClashDisplay-Bold.ttf')   format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ClashDisplay';
  src: url('../fonts/ClashDisplay-Semibold.woff2') format('woff2'),
       url('../fonts/ClashDisplay-Semibold.ttf')   format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MadeTommy';
  src: url('../fonts/MADE-TOMMY-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MadeTommy';
  src: url('../fonts/MADE-TOMMY-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  --clr-dark:       #0A0A0A;
  --clr-dark-2:     #111111;
  --clr-dark-3:     #1C1C1C;
  --clr-light:      #F0EDE6;
  --clr-light-2:    #E8E4DC;
  --clr-muted:      #888880;
  --clr-muted-2:    #555550;
  --clr-accent:     #C9B99A;
  --clr-code:       #6ED888;
  --clr-code-str:   #E6A96A;
  --clr-code-kw:    #8BA7F5;

  --ff-heading:     'ClashDisplay', 'Helvetica Neue', sans-serif;
  --ff-tommy:       'MadeTommy', sans-serif;
  --ff-mono:        'SFMono-Regular', 'Fira Code', monospace;

  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-expo:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-inout:     cubic-bezier(0.87, 0, 0.13, 1);

  /* Bordures structurelles — changent avec le thème */
  --divider: rgba(255, 255, 255, 0.1);
  --divider-work: rgba(255, 255, 255, 0.08);

  --nav-h: 80px;
  --section-pad: clamp(80px, 10vw, 160px);
}

/* ─── TEXT STROKE SYSTEM ─────────────────────────────── */

/*
 * .txt-stroke  → texte transparent + contour (sur fond sombre)
 * .txt-stroke--light → contour clair (sur fond sombre)
 * .txt-stroke--dark  → contour sombre (sur fond clair)
 * .txt-fill    → texte plein (défaut)
 */

/* txt-stroke : fill transparent, contour suit la couleur du body via currentColor */
.txt-stroke,
.txt-stroke--light,
.txt-stroke--dark,
.txt-stroke--accent {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px currentColor;
}

/* Héritage aux chars SplitType */
.txt-stroke .char,
.txt-stroke--light .char,
.txt-stroke--dark .char,
.txt-stroke--accent .char {
  -webkit-text-fill-color: inherit;
  -webkit-text-stroke: inherit;
}

/* Au survol : le titre filled passe en accent */
.work-item:hover .work-item__title:not(.txt-stroke--light) {
  color: var(--clr-accent);
}

/* Au survol : le stroke se "remplit" avec la couleur accent */
.work-item:hover .work-item__title.txt-stroke--light {
  color: var(--clr-accent);
  -webkit-text-stroke-color: var(--clr-accent);
}

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--clr-dark);
  overflow-x: clip;
}

body {
  background: var(--clr-dark);
  color: var(--clr-light);
  font-family: var(--ff-tommy);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100%;
}

[data-barba="wrapper"],
#main {
  max-width: 100%;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { border: none; background: none; font-family: inherit; cursor: pointer; }

/* ─── GRAIN OVERLAY ─────────────────────────────────── */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.045;
  pointer-events: none;
  z-index: 9999;
  animation: grain-move 0.5s steps(2) infinite;
}

@keyframes grain-move {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-3%, -5%); }
  20% { transform: translate(-8%, 2%); }
  30% { transform: translate(2%, -8%); }
  40% { transform: translate(-4%, 4%); }
  50% { transform: translate(-6%, 8%); }
  60% { transform: translate(6%, -5%); }
  70% { transform: translate(-2%, -6%); }
  80% { transform: translate(3%, 6%); }
  90% { transform: translate(-7%, 2%); }
}

/* ─── PRELOADER ─────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.preloader__bg {
  position: absolute;
  inset: 0;
  background: var(--clr-dark);
}

.preloader__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 clamp(24px, 6vw, 80px);
  width: 100%;
}

.preloader__counter-wrap {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  line-height: 1;
  margin-bottom: 24px;
}

.preloader__counter {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: clamp(80px, 15vw, 180px);
  line-height: 1;
  color: var(--clr-light);
  letter-spacing: -0.02em;
  display: block;
}

.preloader__percent {
  font-family: var(--ff-heading);
  font-size: clamp(24px, 4vw, 48px);
  color: var(--clr-muted);
  margin-bottom: 0.2em;
}

.preloader__label {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--clr-code);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  margin-bottom: 20px;
}

.preloader__progress {
  width: 100%;
  height: 1px;
  background: var(--clr-dark-3);
  margin-bottom: 32px;
  overflow: hidden;
}

.preloader__progress-bar {
  height: 100%;
  width: 0%;
  background: var(--clr-light);
  transform-origin: left;
}

.preloader__name {
  font-family: var(--ff-tommy);
  font-weight: 900;
  font-size: clamp(12px, 1.8vw, 20px);
  letter-spacing: 0.3em;
  color: var(--clr-muted);
  text-transform: uppercase;
  clip-path: inset(0 100% 0 0);
}


/* ─── NAVIGATION ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(24px, 5vw, 60px);
  transition: background 0.6s var(--ease-out-expo);
}

.nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: clamp(24px, 5vw, 60px);
  right: clamp(24px, 5vw, 60px);
  height: 1px;
  background: var(--clr-dark-3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease-out-expo);
}

.nav.is-scrolled::after {
  transform: scaleX(1);
}

.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav--light {
  color: var(--clr-dark);
}

.nav__logo {
  display: flex;
  align-items: center;
  color: inherit;
  transition: opacity 0.3s;
}
.nav__logo:hover { opacity: 0.6; }

.nav__logo-img {
  height: 42px;
  width: auto;
  display: block;
  /* Logo blanc → visible sur fond sombre */
  filter: brightness(0) invert(1);
  transition: filter 0.4s var(--ease-out-expo), opacity 0.3s;
}

/* Logo et nav s'adaptent automatiquement au data-theme du body */
body[data-theme="light"] .nav__logo-img {
  filter: brightness(0);
}

body[data-theme="dark"] .nav__logo-img,
body:not([data-theme]) .nav__logo-img {
  filter: brightness(0) invert(1);
}

/* Nav inherit color from body (automatic via currentColor) */

/* Nav scrolled backdrop : clair sur fond clair */
body[data-theme="light"] .nav.is-scrolled {
  background: rgba(240, 237, 230, 0.88);
}

/* Divider adaptatif */
body[data-theme="light"] {
  --divider: rgba(0, 0, 0, 0.1);
  --divider-work: rgba(0, 0, 0, 0.08);
}

.nav__status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--clr-muted);
  letter-spacing: 0.05em;
}

.nav__dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3vw, 48px);
}

.nav__link {
  font-family: var(--ff-tommy);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: inherit;
  position: relative;
  overflow: hidden;
  height: 1.2em;
  display: inline-flex;
  flex-direction: column;
}

.nav__link span {
  display: block;
  transition: transform 0.35s var(--ease-out-expo);
}

.nav__link::after {
  content: attr(data-text);
  position: absolute;
  top: 100%;
  left: 0;
  font-family: var(--ff-tommy);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.05em;
  transition: transform 0.35s var(--ease-out-expo);
}

.nav__link:hover span {
  transform: translateY(-100%);
}

.nav__link:hover::after {
  transform: translateY(-100%);
}

/* ─── MAIN (au-dessus du footer sticky) ─────────────── */
#main {
  position: relative;
  z-index: 2;
}

/* ─── SHARED SECTION STYLES ─────────────────────────── */
.section {
  padding: var(--section-pad) clamp(24px, 5vw, 80px);
  position: relative;
}

.section--light {
  /* Fond géré dynamiquement par JS (body bg animation) */
  color: var(--clr-dark);
}

.section__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(48px, 8vw, 100px);
}

.section__meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.section__num {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--clr-muted);
  letter-spacing: 0.1em;
}

.section__title {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: clamp(52px, 9vw, 120px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  overflow: hidden;
}

.tag-code {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--clr-code);
  letter-spacing: 0.06em;
}

.section--light .tag-code {
  color: var(--clr-muted-2);
}

/* ─── HERO ───────────────────────────────────────────── */
.section--hero {
  min-height: 100dvh;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + clamp(40px, 5vw, 80px));
  padding-bottom: clamp(60px, 8vw, 120px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  isolation: isolate;
}

/* Assombrissement léger du hero au survol (sans flouter l'image) */
.hero__img-blur {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  opacity: 0;
  background: rgba(10, 10, 10, 0.22);
  transition: opacity 0.5s var(--ease-out-expo);
}

.section--hero.is-img-hover .hero__img-blur {
  opacity: 1;
}

/* Flou ciblé : tout le hero sauf l'image agrandie */
.hero__tag,
.hero__body,
.hero__footer,
.hero__location,
.hero__name .char {
  transition: filter 0.5s var(--ease-out-expo), opacity 0.5s var(--ease-out-expo);
}

.section--hero.is-img-hover .hero__tag,
.section--hero.is-img-hover .hero__body,
.section--hero.is-img-hover .hero__footer,
.section--hero.is-img-hover .hero__location,
.section--hero.is-img-hover .hero__name .char {
  filter: blur(5px);
  opacity: 0.88;
}

.hero__tag {
  position: relative;
  margin-bottom: clamp(20px, 3vw, 40px);
}

/* ─ BODY : two-column layout ─────────────────────────── */
.hero__body {
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  flex: 1;
  min-height: 0;
}

.hero__title-wrap {
  flex: 0 0 56%;
  max-width: 56%;
  overflow: visible;
}

.hero__intro {
  flex: 1;
  min-width: 0;
}

.hero__title {
  display: flex;
  flex-direction: column;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: clamp(26px, 3.8vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero__line {
  display: block;
  overflow: visible;
  white-space: nowrap;
}

.hero__line--italic {
  font-family: var(--ff-tommy);
  font-weight: 300;
  font-style: italic;
  font-size: 0.72em;
  color: var(--clr-accent);
  padding-left: clamp(36px, 5vw, 100px);
  line-height: 1;
}

.hero__line--fill {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-style: normal;
  color: var(--clr-light);
}

/* Split text inner spans */
.hero__title .word,
.hero__title .char {
  display: inline-block;
}

/* ─ INTRO PANEL (right column) ──────────────────────── */
/* Note: base flex rules are in .hero__body > .hero__intro above */
.hero__intro {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8vw, 22px);
}

.hero__intro-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

.hero__intro-text {
  font-family: var(--ff-tommy);
  font-weight: 300;
  font-size: clamp(15px, 1.5vw, 21px);
  line-height: 1.55;
}

.hero__intro-name {
  font-weight: 900;
}

.hero__intro-sep {
  opacity: 0.4;
}

.hero__intro-role {
  opacity: 0.85;
}

.hero__intro-location {
  font-family: var(--ff-tommy);
  font-weight: 300;
  font-size: clamp(12px, 1.05vw, 14px);
  color: var(--clr-muted);
  letter-spacing: 0.04em;
}

.hero__intro-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ─ FOOTER BAR ───────────────────────────────────────── */
.hero__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: clamp(28px, 4vw, 48px);
}

.hero__location {
  display: block;
  text-align: left;
  margin-top: clamp(14px, 1.8vw, 20px);
  padding-top: clamp(14px, 1.8vw, 20px);
  border-top: 1px solid var(--divider);
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--clr-muted-2);
  letter-spacing: 0.1em;
  transition: border-color 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

/* CTA Circle */
.cta-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(80px, 10vw, 130px);
  height: clamp(80px, 10vw, 130px);
  border: 1px solid var(--clr-dark-3);
  border-radius: 50%;
  gap: 6px;
  flex-shrink: 0;
  transition: background 0.4s var(--ease-out-expo), border-color 0.4s;
  position: relative;
  overflow: hidden;
}

.cta-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--clr-light);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.6s var(--ease-out-expo);
}

.cta-circle:hover::before { transform: scale(1); }
.cta-circle:hover { border-color: var(--clr-light); color: var(--clr-dark); }

.cta-circle__text {
  font-family: var(--ff-tommy);
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.cta-circle__arrow {
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 1;
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--clr-muted-2);
  text-transform: uppercase;
  writing-mode: vertical-rl;
  flex-shrink: 0;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--clr-muted-2));
  animation: scroll-hint 2s ease-in-out infinite;
}

@keyframes scroll-hint {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── HERO NAME BAR (elastic) ────────────────────────── */
.hero__name-bar {
  width: 100%;
  padding: clamp(14px, 1.8vw, 22px) clamp(24px, 5vw, 80px) clamp(14px, 1.8vw, 22px);
  overflow: visible;
  border: none;
  transition: border-color 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 3;
}

.hero__name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: clamp(10px, 1.5vw, 20px);
}

.hero__name {
  display: block;
  font-family: var(--ff-heading);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  cursor: default;
  user-select: none;
  flex-shrink: 0;
}

.hero__name .char {
  display: inline-block;
  will-change: transform;
  /* Centre : scaleX + skewX symétriques (effet type Juan Mora) */
  transform-origin: 50% 55%;
}

/* Image au centre — dimensions preview : hero-preview.css */
.hero__name-imgs {
  flex-shrink: 0;
  position: relative;
  z-index: 25;
  overflow: hidden;
  cursor: pointer;
  transform-origin: center center;
  will-change: transform;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow 0.5s var(--ease-out-expo);
}

.section--hero.is-img-hover {
  overflow: visible;
}

.section--hero.is-img-hover .hero__name-imgs {
  z-index: 30;
  overflow: visible;
  filter: none;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.section--hero.is-img-hover .hero__name-bar {
  overflow: visible;
}

.section--hero.is-img-hover .hero__name-card,
.section--hero.is-img-hover .hero__name-card.is-active {
  filter: none;
}

.hero__name-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo);
}

.hero__name-card.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero__name-card-label {
  font-family: var(--ff-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 237, 230, 0.55);
  text-align: center;
  line-height: 1.4;
}

/* ─── MARQUEE ─────────────────────────────────────────── */
.marquee-section {
  border-top: none;
  border-bottom: 1px solid currentColor;
  padding: 18px 0;
  overflow: hidden;
  opacity: 0.6;
  transition: border-color 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  white-space: nowrap;
  font-family: var(--ff-tommy);
  font-weight: 900;
  font-size: clamp(14px, 1.65vw, 20px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

.marquee__inner .sep {
  color: var(--clr-accent);
  font-size: clamp(10px, 1vw, 12px);
}

/* ─── STATEMENT ──────────────────────────────────────── */
.section--statement {
  padding: clamp(80px, 12vw, 160px) clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
}

.statement__terminal {
  border: 1px solid rgba(240, 237, 230, 0.25);
  width: min(860px, 92vw);
  font-family: var(--ff-mono);
}

.statement__terminal-bar {
  background: rgba(240, 237, 230, 0.1);
  border-bottom: 1px solid rgba(240, 237, 230, 0.2);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 237, 230, 0.5);
}

.statement__board {
  padding: clamp(20px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.statement__row {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(240, 237, 230, 0.12);
}

.statement__row:first-child {
  border-top: 1px solid rgba(240, 237, 230, 0.12);
}

.statement__row-idx {
  font-size: 10px;
  color: rgba(240, 237, 230, 0.35);
  letter-spacing: 0.1em;
}

.statement__row-text {
  font-family: var(--ff-mono);
  font-size: clamp(15px, 2.2vw, 24px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(240, 237, 230, 0.88);
  white-space: pre;
  overflow: hidden;
  line-height: 1.4;
  letter-spacing: 0;
}

.statement__row--accent .statement__row-text {
  color: var(--clr-accent);
}

.statement__terminal-footer {
  border-top: 1px solid rgba(240, 237, 230, 0.2);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(240, 237, 230, 0.3);
  text-transform: uppercase;
}

/* ─── WORKS ROULETTE ──────────────────────────────────── */
.section--works-roulette {
  position: relative;
  padding: var(--section-pad) 0 0;
}

.roulette__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 80px) clamp(32px, 4vw, 56px);
}

.roulette__counter {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--clr-muted);
  letter-spacing: 0.1em;
}

.roulette {
  display: grid;
  grid-template-columns: 1fr clamp(320px, 36vw, 520px);
  min-height: 70vh;
}

/* LEFT — scrollable track */
.roulette__left {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 22%,
    #000 78%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 22%,
    #000 78%,
    transparent 100%
  );
}

.roulette__track {
  will-change: transform;
}

.roulette__item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  padding: clamp(18px, 2.5vw, 30px) clamp(24px, 5vw, 80px);
  border-bottom: 1px solid rgba(240, 237, 230, 0.08);
  opacity: 0.18;
  transform-origin: left center;
  will-change: opacity, transform;
  cursor: pointer;
}

.roulette__item.is-active {
  opacity: 1;
}

.roulette__num {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--clr-muted-2);
  letter-spacing: 0.08em;
}

.roulette__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.roulette__title {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.roulette__type {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--clr-muted);
  letter-spacing: 0.05em;
}

.roulette__year {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--clr-muted-2);
  padding-right: clamp(24px, 5vw, 80px);
}

/* RIGHT — sticky preview card */
.roulette__right {
  position: sticky;
  top: 0;
  height: 60vh;
  display: flex;
  align-items: stretch;
}

.roulette__preview {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.roulette__card {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s var(--ease-out-expo);
}

.roulette__card.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive roulette */
@media (max-width: 768px) {
  .roulette {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .roulette__right {
    display: none;
  }
  .roulette__left {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .roulette__item {
    opacity: 0.5;
    min-width: 0;
  }
  .roulette__item.is-active {
    opacity: 1;
  }
  .roulette__year {
    padding-right: 0;
  }
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border: 1px solid var(--clr-dark-3);
  font-family: var(--ff-tommy);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-muted);
  transition: color 0.4s, border-color 0.4s, background 0.4s;
  position: relative;
  overflow: hidden;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--clr-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}

.btn-outline:hover::before { transform: scaleX(1); }
.btn-outline:hover { color: var(--clr-dark); border-color: var(--clr-light); }

.btn-outline__arrow,
.btn-outline > span {
  position: relative;
  z-index: 1;
}

/* ─── ABOUT ───────────────────────────────────────────── */
.section--about {
  padding-top: var(--section-pad);
}

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.about__statement {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.about__statement em {
  font-style: italic;
  color: var(--clr-muted-2);
}

.about__body {
  font-family: var(--ff-tommy);
  font-weight: 300;
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--clr-muted-2);
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about__tags span {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--clr-muted-2);
  color: var(--clr-muted-2);
  border-radius: 2px;
  transition: background 0.3s, color 0.3s;
}

.about__tags span:hover {
  background: var(--clr-dark);
  color: var(--clr-light);
  border-color: var(--clr-dark);
}

/* Code Block */
.code-block {
  background: var(--clr-dark);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--clr-dark-3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.code-block__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--clr-dark-3);
  background: var(--clr-dark-2);
}

.code-block__dots {
  display: flex;
  gap: 7px;
}

.code-block__dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--clr-dark-3);
}

.code-block__dots span:nth-child(1) { background: #ff5f57; }
.code-block__dots span:nth-child(2) { background: #febc2e; }
.code-block__dots span:nth-child(3) { background: #28c840; }

.code-block__filename {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--clr-muted);
  letter-spacing: 0.05em;
  margin-left: auto;
}

.code-block__body {
  padding: 24px 20px;
}

.code-block__body pre {
  position: relative;
  font-family: var(--ff-mono);
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.8;
  color: var(--clr-light);
  white-space: pre;
  overflow-x: auto;
}

.code-block__cursor {
  display: inline-block;
  color: var(--clr-accent);
  font-weight: 400;
  margin-left: 2px;
  vertical-align: baseline;
  animation: code-cursor-blink 1.05s step-end infinite;
}

@keyframes code-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.tok-kw { color: var(--clr-code-kw); }
.tok-var { color: var(--clr-light); }
.tok-str { color: var(--clr-code-str); }
.tok-bool { color: #f97316; }
.tok-comment { color: var(--clr-muted); font-style: italic; }

/* ─── SERVICES ────────────────────────────────────────── */
.section--services {
  padding-top: var(--section-pad);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--clr-dark-3);
  border: 1px solid var(--clr-dark-3);
}

.service-item {
  background: var(--clr-dark);
  padding: clamp(32px, 4vw, 56px);
  transition: background 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--clr-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease-out-expo);
}

.service-item:hover::before { transform: scaleY(1); }
.service-item:hover { background: var(--clr-dark-2); }

.service-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.service-item__num {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--clr-muted-2);
  letter-spacing: 0.1em;
}

.service-item__icon {
  width: 28px;
  height: 28px;
  color: var(--clr-muted);
  transition: color 0.4s;
}

.service-item:hover .service-item__icon { color: var(--clr-accent); }

.service-item__icon svg {
  width: 100%;
  height: 100%;
}

.service-item__title {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: clamp(22px, 2.5vw, 36px);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.1;
}

.service-item__desc {
  font-family: var(--ff-tommy);
  font-weight: 300;
  font-size: clamp(13px, 1vw, 14px);
  color: var(--clr-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-item__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-item__stack span {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--clr-dark-3);
  color: var(--clr-muted-2);
  border-radius: 2px;
}

/* ─── SERVICES CONSOLE (Lobby-style) ─────────────────── */
.services-console {
  margin: 0 clamp(24px, 5vw, 60px);
  border: 1px solid var(--clr-dark-3);
  font-family: var(--ff-mono);
}

.services-console__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: var(--clr-dark-2);
  border-bottom: 1px solid var(--clr-dark-3);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-muted-2);
}

.services-console__status {
  color: var(--clr-accent);
}

.services-console__body {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  align-items: stretch;
}

.services-console__nav {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--clr-dark-3);
  background: var(--clr-dark);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--clr-dark-3) transparent;
}

.services-console__nav::-webkit-scrollbar {
  width: 4px;
}

.services-console__nav::-webkit-scrollbar-thumb {
  background: var(--clr-dark-3);
  border-radius: 2px;
}

.services-nav__item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border: none;
  border-bottom: 1px solid var(--clr-dark-3);
  background: transparent;
  color: var(--clr-muted);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: left;
  cursor: pointer;
  transition: background 0.35s var(--ease-out-expo), color 0.35s;
  position: relative;
}

.services-nav__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--clr-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease-out-expo);
}

.services-nav__item:hover,
.services-nav__item.is-active {
  background: var(--clr-dark-2);
  color: var(--clr-light);
}

.services-nav__item:hover::before,
.services-nav__item.is-active::before {
  transform: scaleY(1);
}

.services-nav__idx {
  font-size: 10px;
  color: var(--clr-muted-2);
}

.services-nav__name {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.services-nav__arrow {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out-expo);
  color: var(--clr-accent);
}

.services-nav__item:hover .services-nav__arrow,
.services-nav__item.is-active .services-nav__arrow {
  opacity: 1;
  transform: translateX(0);
}

.services-console__panel-wrap {
  position: relative;
  background: var(--clr-dark);
  min-height: clamp(520px, 58vh, 640px);
}

.services-console__panel {
  position: relative;
}

.services-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
}

.services-panel.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.services-panel.is-switching {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  overflow-y: auto;
}

.services-panel__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.services-panel__tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--clr-accent);
  text-transform: uppercase;
}

.services-panel__title {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.services-panel__lead {
  font-family: var(--ff-tommy);
  font-weight: 300;
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--clr-muted);
  line-height: 1.65;
  max-width: 52ch;
}

.services-panel__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--clr-dark-3);
  border: 1px solid var(--clr-dark-3);
}

.services-stat {
  background: var(--clr-dark-2);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.services-stat__label {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-muted-2);
}

.services-stat__value {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 28px);
  color: var(--clr-light);
}

.services-panel__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.services-panel__list li {
  font-size: 12px;
  color: var(--clr-muted);
  letter-spacing: 0.04em;
  padding-left: 16px;
  position: relative;
}

.services-panel__list li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--clr-accent);
}

.services-panel__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--clr-dark-3);
  margin-top: auto;
  flex-shrink: 0;
}

.services-panel__price-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-muted-2);
  margin-bottom: 4px;
}

.services-panel__price-value {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
}

.services-panel__cta {
  flex-shrink: 0;
}

/* ─── CONTACT ─────────────────────────────────────────── */
.section--contact {
  position: relative;
  background-color: var(--clr-light);
  padding-top: var(--section-pad);
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact__tag {
  margin-bottom: clamp(24px, 4vw, 60px);
}

.contact__title-wrap {
  flex: 1;
  display: flex;
  align-items: center;
}

.contact__title {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: clamp(62px, 11vw, 160px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* overflow:hidden pour le reveal GSAP — padding pour ne pas couper stroke / accents */
.contact__line {
  display: block;
  overflow: hidden;
  padding-top: 0.12em;
  padding-bottom: 0.06em;
}

.contact__line.txt-stroke--dark {
  padding: 0.16em 0.14em 0.14em 0.05em;
}

/* Le stroke dépasse la boîte du glyphe (surtout le S final) */
.contact__line.txt-stroke--dark .char {
  display: inline-block;
  padding-right: 0.035em;
  padding-bottom: 0.06em;
}

.contact__line.txt-stroke--dark .char:last-child {
  padding-right: 0.1em;
}

.contact__line--italic {
  font-family: var(--ff-tommy);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(48px, 8vw, 120px);
  color: inherit;
  opacity: 0.5;
  padding-left: clamp(40px, 6vw, 120px);
  display: block;
  line-height: 1.1;
}

.contact__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: clamp(48px, 8vw, 100px);
  padding-top: 32px;
  border-top: 1px solid var(--clr-muted-2);
  flex-wrap: wrap;
}

.contact__email {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.contact__email-text {
  font-family: var(--ff-tommy);
  font-weight: 900;
  font-size: clamp(14px, 1.8vw, 22px);
  letter-spacing: -0.01em;
  position: relative;
  display: block;
}

.contact__email-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--clr-dark);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out-expo);
}

.contact__email:hover .contact__email-text::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contact__email-arrow {
  font-size: 22px;
  transition: transform 0.4s var(--ease-out-expo);
  display: inline-block;
}

.contact__email:hover .contact__email-arrow {
  transform: translateX(4px) translateY(-4px);
}

.contact__infos {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact__info-row {
  display: flex;
  gap: 16px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--clr-muted-2);
}

.contact__info-label {
  color: var(--clr-muted-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  min-width: 90px;
}

.contact__available {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4ade80;
}

/* ─── FOOTER ──────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--clr-dark);
  color: var(--clr-light);
  padding: clamp(32px, 5vw, 48px) clamp(24px, 5vw, 60px)
    max(clamp(24px, 3vw, 32px), env(safe-area-inset-bottom, 0px));
  border-radius: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px) 0 0;
}

.footer__inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3vw, 32px);
}

.footer__brand {
  text-decoration: none;
  color: inherit;
  display: block;
}

.footer__name {
  display: block;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: clamp(32px, 6.5vw, 72px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: clamp(1.5px, 0.18vw, 2.5px) var(--clr-light);
  color: transparent;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  width: 100%;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__col-title {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-muted-2);
  margin-bottom: 4px;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-family: var(--ff-mono);
  font-size: clamp(11px, 1.1vw, 13px);
  color: var(--clr-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s;
}

.footer__link:hover { color: var(--clr-light); }

.footer__link--btn {
  margin-top: 4px;
  color: var(--clr-accent);
}

.footer__link--btn:hover { color: var(--clr-light); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-top: clamp(18px, 2.5vw, 24px);
  margin-top: 4px;
  border-top: 1px solid var(--clr-dark-3);
}

.footer__copy,
.footer__loc {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--clr-muted-2);
  letter-spacing: 0.05em;
}

.footer__code {
  font-size: 10px;
  color: var(--clr-muted-2);
}

/* ─── LEGAL PAGE ──────────────────────────────────────── */
.legal-page {
  min-height: 100svh;
  background: var(--clr-light);
  color: var(--clr-dark);
  padding: calc(var(--nav-h) + 48px) clamp(24px, 5vw, 80px) 80px;
}

.legal-page__back {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-muted-2);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 48px;
  transition: color 0.3s;
}

.legal-page__back:hover { color: var(--clr-dark); }

.legal-page h1 {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.legal-page h2 {
  font-family: var(--ff-heading);
  font-size: clamp(18px, 2vw, 24px);
  margin: 32px 0 12px;
}

.legal-page p,
.legal-page li {
  font-family: var(--ff-tommy);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  color: var(--clr-muted-2);
  max-width: 68ch;
}

.legal-page ul {
  margin: 12px 0 24px 20px;
}

/* ─── REVEAL ANIMATIONS ─────────────────────────────── */
.js-reveal-title .word {
  overflow: hidden;
  display: inline-block;
}

.js-reveal-title .char {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}

.js-reveal-text {
  overflow: hidden;
}

/* ─── SCROLLBAR ──────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--clr-dark); }
::-webkit-scrollbar-thumb { background: var(--clr-dark-3); }

/* ─── SELECTION ──────────────────────────────────────── */
::selection {
  background: var(--clr-accent);
  color: var(--clr-dark);
}

/* ─── BR DESKTOP ONLY ───────────────────────────────── */
.br-desk { display: block; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
  .about__content {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-console__body {
    grid-template-columns: 1fr;
  }

  .services-console__nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-right: none;
    border-bottom: 1px solid var(--clr-dark-3);
    max-height: none;
    overflow: visible;
  }

  .services-nav__item {
    padding: 14px 16px;
    font-size: 10px;
  }

  .services-nav__item:last-child {
    grid-column: 1 / -1;
  }

  .services-panel__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-panel__foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__name {
    font-size: clamp(28px, 10vw, 48px);
  }

  .footer__cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__body {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .hero__title-wrap {
    flex: none;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
  }

  .hero__title {
    font-size: clamp(26px, 7vw, 42px);
    max-width: 100%;
  }

  .hero__line {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero__line--italic {
    font-size: 0.72em;
    padding-left: clamp(12px, 4vw, 40px);
  }

  .hero__intro {
    max-width: 100%;
  }

  .hero__intro-sub {
    max-width: 100%;
  }

  .section--hero.is-img-hover {
    overflow-x: clip;
  }

  .nav__status { display: none; }
  .br-desk { display: none; }

  .contact__title-wrap {
    overflow: hidden;
    max-width: 100%;
  }

  .contact__title {
    font-size: clamp(36px, 10vw, 72px);
    max-width: 100%;
  }

  .contact__line--italic {
    font-size: clamp(26px, 7.5vw, 52px);
    padding-left: clamp(12px, 3vw, 32px);
  }

  .contact__line.txt-stroke--dark {
    padding: 0.1em 0.06em 0.08em 0.02em;
  }

  .section__title {
    font-size: clamp(40px, 10vw, 88px);
  }

  .statement__row-text {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: clamp(13px, 3.5vw, 20px);
  }
}

@media (max-width: 600px) {
  :root { --nav-h: 64px; }

  .section {
    padding-left: clamp(16px, 4vw, 24px);
    padding-right: clamp(16px, 4vw, 24px);
  }

  .nav {
    padding: 0 16px;
  }

  .nav__links {
    gap: 14px;
  }

  .nav__link {
    font-size: 11px;
  }

  .nav__logo-img {
    height: 34px;
  }

  .hero__name-bar {
    overflow: hidden;
    padding-left: clamp(16px, 4vw, 24px);
    padding-right: clamp(16px, 4vw, 24px);
  }

  .hero__name-row {
    gap: 8px;
    min-width: 0;
  }

  .hero__intro-actions {
    gap: 14px;
  }

  .work-item__num { display: none; }

  .footer {
    grid-template-columns: 1fr;
  }

  .footer__center { order: 0; }

  .footer__right {
    justify-content: flex-start;
  }

  .contact__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact__email-text {
    font-size: clamp(13px, 4vw, 18px);
    overflow-wrap: anywhere;
  }

  .services-console {
    margin: 0 clamp(12px, 4vw, 20px);
  }

  .roulette__meta {
    padding-left: clamp(16px, 4vw, 24px);
    padding-right: clamp(16px, 4vw, 24px);
  }

  .roulette__item {
    grid-template-columns: 28px 1fr auto;
    gap: 12px;
    padding: clamp(14px, 3vw, 22px) clamp(16px, 4vw, 24px);
  }

  .roulette__title {
    font-size: clamp(16px, 5.5vw, 26px);
  }

  .roulette__year {
    padding-right: 0;
    font-size: 11px;
  }

  .code-block__body pre {
    font-size: 11px;
    white-space: pre-wrap;
    word-break: break-word;
  }

  .cta-wide {
    font-size: clamp(15px, 4.5vw, 22px);
    padding: 16px 18px;
  }

  .about__statement {
    font-size: clamp(20px, 6vw, 32px);
  }

}

/* ══════════════════════════════════════════════════════
   CTA — ROTATING BADGE (hero)
   ══════════════════════════════════════════════════════ */
.cta-badge {
  position: relative;
  width: clamp(100px, 10vw, 130px);
  height: clamp(100px, 10vw, 130px);
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-badge__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: badge-spin 14s linear infinite;
  transform-origin: center;
}

.cta-badge__ring text {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  fill: var(--clr-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cta-badge__icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--clr-dark-3);
  border-radius: 50%;
  color: var(--clr-light);
  transition: transform 0.5s var(--ease-out-expo),
              background 0.4s,
              border-color 0.4s;
}

.cta-badge:hover .cta-badge__icon {
  transform: rotate(45deg);
  background: var(--clr-light);
  color: var(--clr-dark);
  border-color: var(--clr-light);
}

.cta-badge:hover .cta-badge__ring {
  animation-duration: 5s;
}

.cta-badge:hover .cta-badge__ring text {
  fill: var(--clr-accent);
}

@keyframes badge-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════════
   CTA — WIDE FILL BUTTON (about section)
   ══════════════════════════════════════════════════════ */
.cta-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: clamp(28px, 3vw, 40px);
  padding: clamp(18px, 2.5vw, 28px) clamp(20px, 3vw, 36px);
  border: 1px solid var(--clr-muted-2);
  background: none;
  color: var(--clr-dark);
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 30px);
  letter-spacing: -0.02em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.5s var(--ease-out-expo),
              border-color 0.5s;
}

.cta-wide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--clr-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out-expo);
}

.cta-wide:hover::before  { transform: scaleX(1); }
.cta-wide:hover          { color: var(--clr-light); border-color: var(--clr-dark); }

.cta-wide__text,
.cta-wide__arrow {
  position: relative;
  z-index: 1;
}

.cta-wide__arrow {
  font-size: 22px;
  transition: transform 0.4s var(--ease-out-expo);
  display: inline-block;
}
.cta-wide:hover .cta-wide__arrow {
  transform: translateX(5px) translateY(-5px);
}

/* ══════════════════════════════════════════════════════
   CTA — FLOATING PILL (fixed, bottom-right)
   ══════════════════════════════════════════════════════ */
.float-cta {
  position: fixed;
  bottom: 36px;
  right: clamp(20px, 4vw, 48px);
  z-index: 900;
  transform: translateY(80px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.7s var(--ease-out-expo),
              opacity 0.7s var(--ease-out-expo);
}

.float-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.float-cta__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: #F0EDE6;
  color: #0d0d0d;
  border: none;
  border-radius: 100px;
  font-family: var(--ff-tommy);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: color 0.45s var(--ease-out-expo),
              transform 0.4s var(--ease-out-expo),
              box-shadow 0.4s;
}

.float-cta__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #0d0d0d;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}

.float-cta__btn:hover::before { transform: scaleX(1); }
.float-cta__btn:hover {
  color: #F0EDE6;
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.float-cta__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pulse 2.5s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.float-cta__label,
.float-cta__arrow {
  position: relative;
  z-index: 1;
}

.float-cta__arrow {
  font-size: 14px;
  transition: transform 0.4s var(--ease-out-expo);
  display: inline-block;
}
.float-cta__btn:hover .float-cta__arrow {
  transform: translateX(3px) translateY(-3px);
}

@media (max-width: 600px) {
  .float-cta { bottom: 24px; right: 16px; }
  .float-cta__label { display: none; }
  .float-cta__btn { padding: 14px 16px; }
}

/* ─── INITIAL HIDDEN STATES (before JS runs) ─────────── */
.nav,
.hero__tag,
.hero__footer,
.hero__scroll {
  opacity: 0;
}

/* ─── WORK ITEM LINE HOVER ───────────────────────────── */
.work-item__line,
.work-item__bottom-line {
  transition: background 0.4s;
}

.work-item:hover + .work-item .work-item__line,
.work-item:hover .work-item__line {
  background: var(--clr-muted-2);
}

/* ─── SECTION LIGHT — INHERIT COLORS ─────────────────── */
.section--light .section__num {
  color: var(--clr-muted-2);
}

.section--light .btn-outline {
  border-color: var(--clr-muted-2);
  color: var(--clr-muted-2);
}

.section--light .btn-outline::before {
  background: var(--clr-dark);
}

.section--light .btn-outline:hover {
  color: var(--clr-light);
  border-color: var(--clr-dark);
}

/* ─── CONTACT TAG DARK TEXT ──────────────────────────── */
.section--contact.section--light .contact__tag .tag-code {
  color: var(--clr-muted-2);
}

/* ─── CONTACT SECTION EXTRAS ─────────────────────────── */
.contact__open-panel {
  background: none;
  border: none;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact__mail-link {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--clr-muted-2);
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}
.contact__mail-link:hover { color: var(--clr-dark); }

/* ─── NAV CONTACT BUTTON ─────────────────────────────── */
.nav__contact-btn {
  background: none;
  border: none;
  font-family: var(--ff-tommy);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: inherit;
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════
   CONTACT MODAL — command center
   ══════════════════════════════════════════════════════ */

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1900;
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  opacity: 0;
  pointer-events: none;
  font-family: 'SFMono-Regular', 'Fira Code', 'Menlo', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #a8a8a8;
  padding: clamp(12px, 3vw, 24px) clamp(10px, 3vw, 20px);
}

.contact-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-modal__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: auto;
  overflow: visible;
  padding: 0;
}

/* ─── Shell ── */
.contact-modal__shell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
}

.contact-modal__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(255, 255, 255, 0.35);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
}
.contact-modal__corner--tl { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.contact-modal__corner--tr { top: 8px; right: 8px; border-width: 1px 1px 0 0; }
.contact-modal__corner--bl { bottom: 8px; left: 8px; border-width: 0 0 1px 1px; }
.contact-modal__corner--br { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }

/* ─── Top bar ── */
.contact-modal__header,
.contact-modal__top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0;
}

.contact-modal__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-modal__logo {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: #fff;
  text-transform: uppercase;
}

.contact-modal__tab {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.contact-modal__tab.is-active {
  color: #fff;
  border-bottom-color: #6ed888;
}

.contact-modal__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
}

.contact-modal__meta em {
  font-style: normal;
  color: #ccc;
  margin-left: 4px;
}

.contact-modal__live {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6ed888;
}

.contact-modal__live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6ed888;
  box-shadow: 0 0 6px #6ed888;
  flex-shrink: 0;
  animation: contactCmdBlink 2s ease-in-out infinite;
}

@keyframes contactCmdBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.contact-modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.25s, background 0.25s;
}
.contact-modal__close:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
}
.contact-modal__close span {
  position: absolute;
  width: 12px;
  height: 1px;
  background: #fff;
  display: block;
}
.contact-modal__close span:first-child { transform: rotate(45deg); }
.contact-modal__close span:last-child  { transform: rotate(-45deg); }

/* ─── Body layout ── */
.contact-modal__content,
.contact-modal__body {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  min-height: 0;
}

.contact-modal__panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #080808;
  overflow: visible;
}

.contact-modal__panel--left {
  width: clamp(200px, 28%, 280px);
  flex-shrink: 0;
}

.contact-modal__panel--form {
  flex: 1;
  min-width: 0;
}

.contact-modal__panel-bar {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #555;
  background: #0c0c0c;
}

.contact-modal__ok {
  color: #6ed888;
}

.contact-modal__panel-scroll {
  flex: 1;
  overflow: visible;
  padding: clamp(16px, 3vw, 28px);
}

/* ─── Left panel ── */
.contact-modal__title {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.contact-modal__title em {
  font-family: var(--ff-tommy);
  font-weight: 300;
  font-style: italic;
  font-size: 0.62em;
  color: #6ed888;
  display: block;
  letter-spacing: 0.01em;
}

.contact-modal__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-modal__label {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #555;
}

.contact-modal__email {
  font-family: inherit;
  font-size: 11px;
  color: #ccc;
  text-decoration: none;
  transition: color 0.25s;
  word-break: break-all;
}
.contact-modal__email:hover {
  color: #6ed888;
}

.contact-modal__loc {
  font-size: 9px;
  color: #555;
  letter-spacing: 0.06em;
}

.contact-modal__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6ed888;
  margin-top: 8px;
}

/* ─── Form area ── */
.contact-modal__form-wrap {
  position: relative;
  flex: 1;
  padding: clamp(16px, 3vw, 24px);
  overflow: visible;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.contact-form__field {
  margin-bottom: 14px;
}

.contact-form__label {
  font-family: inherit;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #666;
  display: block;
  margin-bottom: 6px;
}

.contact-form__input-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #0e0e0e;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.contact-form__input-wrap:focus-within {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(110, 216, 136, 0.15);
}
.contact-form__input-wrap.is-error-field,
.contact-form__field:has(.contact-form__input.is-error) .contact-form__input-wrap {
  border-color: rgba(248, 113, 113, 0.65);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.12);
}

.contact-form__input-wrap--textarea {
  align-items: flex-start;
}
.contact-form__input-wrap--textarea .contact-form__prompt {
  padding-top: 11px;
}

.contact-form__prompt {
  flex-shrink: 0;
  padding: 10px 0 10px 12px;
  color: #6ed888;
  font-size: 11px;
  line-height: 1;
  user-select: none;
}

.contact-form__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 10px 12px 10px 6px;
  outline: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.contact-form__input::placeholder {
  color: #444;
}
.contact-form__input.is-error {
  color: #f87171;
}

.contact-form__select-wrap {
  position: relative;
}
.contact-form__select {
  cursor: pointer;
  padding-right: 28px;
  color: #ccc;
}
.contact-form__select:invalid,
.contact-form__select option[value=""][disabled] {
  color: #555;
}
.contact-form__select option {
  background: #0e0e0e;
  color: #fff;
}
.contact-form__select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #555;
  font-size: 8px;
  pointer-events: none;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
  padding-top: 10px;
}

/* ─── Submit ── */
.contact-form__submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-form__submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: #fff;
  color: #000;
  border: 1px solid #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, opacity 0.25s;
}
.contact-form__submit:hover {
  background: #6ed888;
  border-color: #6ed888;
  color: #000;
}
.contact-form__submit-text,
.contact-form__submit-arrow {
  position: relative;
  z-index: 1;
}
.contact-form__submit-arrow {
  transition: transform 0.3s var(--ease-out-expo);
}
.contact-form__submit:hover .contact-form__submit-arrow {
  transform: translate(2px, -2px);
}

.contact-form__submit-loader {
  position: absolute;
  z-index: 2;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: #000;
  border-radius: 50%;
  opacity: 0;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.contact-form__submit.is-loading .contact-form__submit-text,
.contact-form__submit.is-loading .contact-form__submit-arrow { opacity: 0; }
.contact-form__submit.is-loading .contact-form__submit-loader { opacity: 1; }
.contact-form__submit.is-loading { pointer-events: none; }

/* ─── Success ── */
.contact-panel__success {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 32px;
  background: #080808;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.45s, transform 0.45s var(--ease-out-expo);
}
.contact-panel__success.is-visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.contact-panel__success-icon {
  width: 52px;
  height: 52px;
  border: 1px solid #6ed888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #6ed888;
}
.contact-panel__success h3 {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.contact-panel__success p {
  font-family: inherit;
  font-size: 11px;
  color: #888;
  line-height: 1.6;
  letter-spacing: 0.04em;
}
.contact-panel__success-back {
  margin-top: 16px;
  font-family: inherit;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  background: #0e0e0e;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 18px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.contact-panel__success-back:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

/* ─── Error ── */
.contact-panel__error {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #f87171;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  margin-top: 12px;
  display: none;
}
.contact-panel__error.is-visible { display: block; }

/* ─── Terminal footer ── */
.contact-modal__terminal {
  flex-shrink: 0;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #060606;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.contact-modal__terminal-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 14px;
  white-space: nowrap;
}

.contact-modal__log {
  font-size: 9px;
  letter-spacing: 0.06em;
  color: #6ed888;
}

/* ─── Responsive ── */
@media (max-width: 820px) {
  .contact-modal__content,
  .contact-modal__body {
    flex-direction: column;
  }

  .contact-modal__panel--left {
    width: 100%;
  }

  .contact-modal__panel-scroll {
    padding: 16px 20px 20px;
  }

  .contact-modal__title {
    margin-bottom: 16px;
    font-size: clamp(28px, 7vw, 42px);
  }

  .contact-modal__meta {
    display: none;
  }

  .contact-modal__header,
  .contact-modal__top {
    flex-wrap: wrap;
    gap: 10px;
  }

  .contact-modal__brand {
    gap: 10px;
    min-width: 0;
  }

  .contact-modal__logo {
    font-size: 10px;
  }
}

@media (max-width: 600px) {
  .contact-modal {
    padding: 10px 10px 20px;
  }

  .contact-modal__shell {
    padding: 8px;
  }

  .contact-modal__brand .contact-modal__tab {
    display: none;
  }

  .contact-modal__terminal {
    display: none;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .contact-form__submit-row {
    justify-content: stretch;
  }

  .contact-form__submit {
    width: 100%;
    justify-content: center;
  }

  .contact-modal__terminal-inner {
    gap: 20px;
  }
}

/* ══════════════════════════════════════════════════════
   BARBA — transition overlay
   ══════════════════════════════════════════════════════ */
.barba-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

.barba-transition.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.barba-transition__bg {
  position: absolute;
  inset: 0;
  background: var(--transition-accent, var(--clr-dark));
  transform: scaleY(0);
}

.barba-transition__meta {
  position: relative;
  z-index: 2;
  color: var(--clr-muted);
}

.barba-transition__title {
  position: relative;
  z-index: 2;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: clamp(52px, 14vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-align: center;
  color: var(--clr-light);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.barba-transition__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 2;
}

.barba-transition__progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--clr-accent);
  transform: scaleX(0);
}

.page-project #float-cta,
.page-project #work-preview-cursor,
.page-project #preloader {
  display: none !important;
}

body.mf-home-ready #preloader {
  display: none !important;
}

html.is-preloading,
html.is-preloading body {
  overflow: hidden !important;
  height: 100%;
}

.page-project .nav.is-visible {
  opacity: 1;
  transform: none;
}

html.is-project-view,
html.is-project-view body {
  overflow: hidden;
  height: 100%;
}

/* Pages projet → css/project.css (lié dans projets/*.html) */
