/* ============================================================
   Walid Akremi Portfolio — Design System
   Pure CSS, no framework
   ============================================================ */

:root {
  --bg: #0a0a09;
  --bg-elev: #121110;
  --bg-deep: #060605;
  --fg: #efece4;
  --fg-rich: #b8b3a6;
  --fg-dim: #7a756a;
  --fg-mid: #4a463e;
  --fg-faint: #221f1a;
  --line: rgba(239, 236, 228, 0.08);
  --line-strong: rgba(239, 236, 228, 0.16);
  --accent: #7ad06b;
  --font-sans: 'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --font-serif: 'Instrument Serif', 'Times New Roman', Times, serif;
  --pad: clamp(20px, 4vw, 64px);
  --max: 1480px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  /* Semantic tokens — theme-switchable */
  --bg-glass:        rgba(11, 11, 10, 0.72);
  --bg-glass-nav:    rgba(20, 19, 17, 0.7);
  --bg-glass-chip:   rgba(18, 17, 16, 0.78);
  --bg-avatar:       linear-gradient(180deg, #161513 0%, #0c0b0a 100%);
  --bg-silhouette:   linear-gradient(180deg, #1b1a17 0%, #0e0e0c 100%);
  --bg-avatar-tcard: linear-gradient(135deg, #2a2823, #3a382f);
  --hover-subtle:    rgba(236, 232, 223, 0.025);
  --scrollbar-th:    rgba(236, 232, 223, 0.11);
  --scrollbar-th-hv: rgba(236, 232, 223, 0.22);
}

/* ── LIGHT THEME ────────────────────────────────────────────── */
[data-theme="light"] {
  --bg:              #f7f5f1;
  --bg-elev:         #ffffff;
  --bg-deep:         #eceae5;
  --fg:              #1a1916;
  --fg-rich:         #3d3a34;
  --fg-dim:          #7a756a;
  --fg-mid:          #c8c3ba;
  --fg-faint:        #e5e2db;
  --line:            rgba(26, 25, 22, 0.09);
  --line-strong:     rgba(26, 25, 22, 0.18);
  --accent:          #3da82e;
  --bg-glass:        rgba(247, 245, 241, 0.82);
  --bg-glass-nav:    rgba(255, 255, 255, 0.8);
  --bg-glass-chip:   rgba(245, 243, 239, 0.9);
  --bg-avatar:       linear-gradient(180deg, #e8e5de 0%, #dbd7cf 100%);
  --bg-silhouette:   linear-gradient(180deg, #e5e2da 0%, #d8d4cc 100%);
  --bg-avatar-tcard: linear-gradient(135deg, #e5e2da, #d8d4cc);
  --hover-subtle:    rgba(26, 25, 22, 0.03);
  --scrollbar-th:    rgba(26, 25, 22, 0.13);
  --scrollbar-th-hv: rgba(26, 25, 22, 0.24);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "ss03", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; touch-action: manipulation; }
img { display: block; max-width: 100%; }
/* Supprime le flash bleu iOS/Android sur tous les éléments interactifs */
a, button, [role="button"] { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--fg); color: var(--bg); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-th); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-th-hv); }

/* Layout */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  width: 100%;
}
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.center { align-items: center; }

.meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 400;
}
.meta--fg { color: var(--fg); }
.dim { color: var(--fg-dim); }
.it { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

.display {
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.display .it { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.h-lg { font-size: clamp(56px, 9vw, 168px); }
.h-md { font-size: clamp(40px, 6vw, 96px); }
.h-sm { font-size: clamp(28px, 3.4vw, 56px); }

.section { padding: clamp(80px, 12vw, 180px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 96px) 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 6vw, 96px);
  margin-bottom: clamp(48px, 8vw, 120px);
  align-items: start;
}
.section-head__label {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-head__label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fg);
}

/* HEADER */
.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.hdr--solid {
  background: var(--bg-glass);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom-color: var(--line);
}
.hdr__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.hdr__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.hdr__brand-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-elev);
}

/* Brand text slide reveal — inspired by Snellenberg hover */
.brand-copy {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 1.5em;   /* one line visible, matches inherited body line-height */
}
.brand-line {
  flex-shrink: 0;
  white-space: nowrap;
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}
.hdr__brand:hover .brand-line { transform: translateY(-100%); }
.hdr__nav {
  display: flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  background: var(--bg-glass-nav);
  backdrop-filter: blur(10px);
}
.hdr__nav-btn {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg-dim);
  transition: color 0.2s, background 0.2s;
  letter-spacing: -0.005em;
  display: inline-block;
}
.hdr__nav-btn:hover { color: var(--fg); }
.hdr__nav-btn.is-active {
  color: var(--bg);
  background: var(--fg);
}
.hdr__right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-glass-nav);
  backdrop-filter: blur(10px);
}
.badge__dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(118, 198, 108, 0.55);
}
.badge__dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.7;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Mobile nav */
.hdr__menu-btn {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
}
.hdr__menu-btn__bar {
  display: block;
  width: 13px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transform-origin: center center;
  will-change: transform, opacity;
}
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  will-change: opacity, transform;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav__close {
  position: absolute;
  top: 24px; right: 24px;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  will-change: opacity, transform;
}
.mobile-nav a {
  font-size: clamp(32px, 8vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--fg);
  transition: color 0.2s;
  will-change: opacity, transform;
}
.mobile-nav a:hover { color: var(--fg-dim); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.3s;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--solid:hover { background: transparent; color: var(--fg); }
.btn__arrow {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: transform 0.3s;
}
.btn:hover .btn__arrow { transform: translate(2px, -2px); }

/* HERO */
.hero {
  min-height: 100vh;
  min-height: 100dvh; /* iOS Safari: dynamic viewport — exclut la barre browser */
  padding-top: 96px;
  padding-bottom: 48px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 55% at 75% 8%, rgba(239,236,228,0.05), transparent 60%),
    radial-gradient(70% 60% at 12% 95%, rgba(122,208,107,0.04), transparent 60%),
    radial-gradient(50% 50% at 50% 50%, rgba(239,236,228,0.015), transparent 70%);
}
.hero__orbits {
  position: absolute;
  z-index: 0;
  top: 50%; left: 50%;
  width: min(120vw, 1400px);
  aspect-ratio: 1;
  transform: translate(-50%, -38%);
  pointer-events: none;
  opacity: 0;
  animation: orbitsIn 2.4s var(--ease-out) 0.4s forwards;
}
@keyframes orbitsIn { to { opacity: 1; } }
.hero__orbit {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.hero__orbit:nth-child(2) { inset: 6%; }
.hero__orbit:nth-child(3) { inset: 14%; }
.hero__orbit:nth-child(4) { inset: 24%; }
.hero__orbit:nth-child(5) { inset: 36%; }
.hero__orbit:nth-child(6) { inset: 50%; border-color: var(--line-strong); }

.hero__top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 24px;
  position: relative;
  z-index: 2;
}
.hero__top .meta { display: block; }
.hero__top-loc { text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.hero__top-loc strong { font-weight: 500; font-size: 14px; letter-spacing: -0.005em; }
.hero__top-stat { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.hero__top-stat strong { font-weight: 500; font-size: 14px; letter-spacing: -0.005em; }

.hero__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 1.8vw, 28px);
  text-align: center;
  position: relative;
  z-index: 2;
  padding: clamp(20px, 3vw, 40px) 0;
}
.hero__avatar {
  width: clamp(56px, 5.2vw, 76px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-avatar);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 40px);
  color: var(--fg-rich);
  position: relative;
  opacity: 0;
  animation: chipIn 1s var(--ease-out) 0.2s forwards;
}
.hero__avatar::before, .hero__avatar::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(239,236,228,0.07);
  animation: avatarPulse 3.2s var(--ease-in-out) infinite;
}
.hero__avatar::after { animation-delay: 1.6s; }
@keyframes avatarPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
.hero__intro-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero__greet {
  font-size: clamp(17px, 1.3vw, 22px);
  font-weight: 500;
  letter-spacing: -0.015em;
  opacity: 0;
  animation: chipIn 1s var(--ease-out) 0.5s forwards;
}
.hero__greet .it { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.hero__role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  opacity: 0;
  animation: chipIn 1s var(--ease-out) 1.1s forwards;
}
.hero__title {
  font-family: var(--font-sans);
  font-size: clamp(40px, 6.5vw, 116px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.045em;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__title .it { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.025em; color: var(--fg-rich); }
.hero__title-line {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.26em;
}
.hero__word {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  flex-shrink: 0;
}
.hero__word-inner {
  display: block;
  will-change: transform;
}
.hero__desc {
  font-size: clamp(15px, 1.15vw, 18px);
  color: var(--fg-rich);
  max-width: 48ch;
  line-height: 1.55;
  letter-spacing: -0.005em;
  opacity: 0;
  animation: chipIn 1s var(--ease-out) 2.1s forwards;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: chipIn 1s var(--ease-out) 2.3s forwards;
}

/* Floating chips */
.hero__chip {
  position: absolute;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-glass-chip);
  backdrop-filter: blur(10px);
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--fg);
  opacity: 0;
  transform: translateY(10px);
  animation: chipIn 1s var(--ease-out) forwards;
  z-index: 3;
  white-space: nowrap;
}
.hero__chip--1 { top: 18%; left: 8%; animation-delay: 1.2s; }
.hero__chip--2 { top: 26%; right: 8%; animation-delay: 1.5s; }
.hero__chip--3 { bottom: 38%; left: 12%; animation-delay: 1.8s; }
.hero__chip--4 { bottom: 30%; right: 10%; animation-delay: 2.1s; }
.hero__chip .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--fg-rich); margin-right: 8px; vertical-align: middle; }
@keyframes chipIn { to { opacity: 1; transform: translateY(0); } }

.hero__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  margin-top: 24px;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: chipIn 1s var(--ease-out) 2.5s forwards;
}
.hero__scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg-dim);
  justify-self: end;
}
.hero__scroll-line {
  width: 42px;
  height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fg);
  animation: scrollline 2.4s var(--ease-in-out) infinite;
}
@keyframes scrollline {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* SPLIT TEXT REVEAL */
.split { display: inline; }
.split__word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.05;
  padding-bottom: 0.06em;
}
.split__inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.15s var(--ease-out);
  will-change: transform;
}
.split.is-in .split__inner { transform: translateY(0); }
.split__space { display: inline-block; width: 0.28em; }

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--rd, 0s);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* IMAGE CLIP REVEAL */
.img-reveal {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.4s var(--ease-out);
  will-change: clip-path;
}
.img-reveal.is-in { clip-path: inset(0 0 0% 0); }

/* PAGE TRANSITION */
.page-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  pointer-events: none;
  transform: translateY(-100%);
  will-change: transform;
}
/* Instant cover — no animation, used at enter before reveal starts */
.page-overlay.entering {
  transform: translateY(0);
  animation: none;
}
.page-overlay.slide-in {
  animation: ptIn 0.65s var(--ease-out) forwards;
}
.page-overlay.slide-out {
  animation: ptOut 0.65s var(--ease-out) forwards;
}
@keyframes ptIn {
  0%   { transform: translateY(100%); }
  100% { transform: translateY(0); }
}
@keyframes ptOut {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}


/* THEME TOGGLE — pill with sun / moon */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-elev);
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}
.theme-toggle__btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--fg-dim);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.22s ease, background-color 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle__btn:hover { color: var(--fg); }
.theme-toggle__btn.is-active {
  background: var(--fg);
  color: var(--bg);
}
.theme-toggle__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* Micro-animation when the activated button pops in */
@keyframes themeIconIn {
  from { transform: rotate(-25deg) scale(0.78); opacity: 0.4; }
  to   { transform: rotate(0deg)   scale(1);    opacity: 1;   }
}
.theme-toggle__btn.anim { animation: themeIconIn 0.28s var(--ease-out); }

/* Smooth colour sweep applied for ~320 ms on toggle click */
.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
  transition:
    color            0.28s ease,
    background-color 0.28s ease,
    border-color     0.28s ease,
    box-shadow       0.28s ease !important;
}

/* CURSOR */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--fg);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), opacity 0.3s;
  opacity: 0;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 36px; height: 36px; }
@media (pointer: coarse) { .cursor { display: none; } }

/* MARQUEE */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 24px 0;
}
.marquee__track {
  display: flex;
  gap: 64px;
  animation: marquee 50s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee__item {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(28px, 3.2vw, 44px);
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 64px;
}
.marquee__item::after {
  content: "✦";
  font-family: var(--font-sans);
  font-style: normal;
  color: var(--fg-dim);
  font-size: 0.55em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* EXPERTISE */
.expertise {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.expertise__item {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: clamp(220px, 22vw, 320px);
  transition: background 0.3s;
}
.expertise__item:hover { background: var(--hover-subtle); }
.expertise__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mid);
  letter-spacing: 0.08em;
}
.expertise__title {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: auto;
}
.expertise__desc {
  color: var(--fg-dim);
  font-size: 14px;
  max-width: 36ch;
  line-height: 1.55;
}

/* WORKS TABLE */
.works-table { width: 100%; }
.works-table__header {
  display: grid;
  grid-template-columns: 80px 1.4fr 1fr 1fr 80px;
  gap: 24px;
  padding-bottom: 16px;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.works-table__row {
  display: grid;
  grid-template-columns: 80px 1.4fr 1fr 1fr 80px;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: center;
  cursor: pointer;
  transition: opacity 0.25s;
  position: relative;
  text-decoration: none;
  color: var(--fg);
}
.works-table__row:last-child { border-bottom: 1px solid var(--line); }
.works-table__row:hover .works-table__title { transform: translateX(8px); }
.works-table__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
  transition: opacity 0.3s;
}
.works-table__title {
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.works-table__role {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  transition: opacity 0.3s;
}
.works-table__year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
  transition: opacity 0.3s;
}
.works-table__arrow {
  justify-self: end;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: transform 0.3s, background 0.3s, color 0.3s;
}
.works-table__row:hover .works-table__arrow {
  background: var(--fg);
  color: var(--bg);
  transform: rotate(-45deg);
}
.works-table__row:hover .works-table__num,
.works-table__row:hover .works-table__role,
.works-table__row:hover .works-table__year { opacity: 0.55; }

/* Works preview cursor tile */
.works-preview {
  position: fixed;
  pointer-events: none;
  width: 280px;
  height: 200px;
  z-index: 90;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s;
  transform: translate(-50%, -50%);
  background: var(--bg-elev);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.works-preview.is-on { opacity: 1; }

/* Filter chips */
.chips {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  gap: 2px;
  background: var(--bg-elev);
}
.chip {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg-dim);
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
}
.chip.is-active { background: var(--fg); color: var(--bg); }
.chip:hover:not(.is-active) { color: var(--fg); }

/* WORKS GRID (home featured) */
.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(40px, 5vw, 80px) clamp(24px, 3vw, 48px);
  row-gap: clamp(80px, 10vw, 160px);
}
.work-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  cursor: pointer;
  transition: opacity 0.3s;
  text-decoration: none;
  color: var(--fg);
}
.work-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-elev);
  border-radius: 2px;
}
.work-card__media-inner {
  position: absolute;
  inset: 0;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.work-card:hover .work-card__media-inner { transform: scale(1.04); }
.work-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}
.work-card__title {
  font-size: clamp(22px, 2.1vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.work-card__role {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  white-space: nowrap;
}
.work-card--lg { grid-column: span 12; }
.work-card--lg .work-card__media { aspect-ratio: 16 / 9; }
.work-card--md { grid-column: span 7; }
.work-card--sm { grid-column: span 5; }
.work-card--half { grid-column: span 6; }
.work-card--md .work-card__media { aspect-ratio: 4 / 3; }
.work-card--sm .work-card__media { aspect-ratio: 4 / 5; }
.work-card--offset { margin-top: clamp(40px, 8vw, 120px); }

/* MOCK — browser-like project thumbnail */
.mock {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.mock__frame {
  width: 78%;
  max-width: 640px;
  background: var(--mock-bg, #1a1a18);
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04) inset;
  overflow: hidden;
}
.mock__bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mock__bar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.mock__body {
  padding: 22px;
  display: grid;
  gap: 14px;
  font-family: var(--font-sans);
  min-height: 220px;
}
.mock__brand {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
}
.mock__hl {
  font-size: clamp(18px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}
.mock__hl .it { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.mock__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.mock__tile {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}
.mock__footer {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
  margin-top: auto;
}

/* TESTIMONIALS */
.tcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2vw, 28px);
}
.tcard {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(28px, 2.4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 360px;
}
.tcard__quote {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.55;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.tcard__quote::before {
  content: "\201C";
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 56px;
  line-height: 0;
  display: block;
  color: var(--fg-mid);
  margin-bottom: 18px;
}
.tcard__who {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.tcard__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-avatar-tcard);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-dim);
  flex-shrink: 0;
}
.tcard__who-text { display: flex; flex-direction: column; gap: 2px; }
.tcard__name { font-size: 14px; font-weight: 500; }
.tcard__role { font-size: 12px; color: var(--fg-dim); font-family: var(--font-mono); letter-spacing: 0.02em; }

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.portrait {
  aspect-ratio: 4 / 5;
  background: var(--bg-elev);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.portrait__inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 30%, rgba(118,198,108,0.04), transparent 50%),
    repeating-linear-gradient(45deg, rgba(236,232,223,0.025) 0 2px, transparent 2px 14px);
}
.portrait__label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.portrait__silhouette {
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg-silhouette);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 96px;
  color: var(--fg-mid);
}
.stats-mini {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stats-mini .meta { margin-bottom: 4px; }
.stats-mini strong { font-size: 32px; font-weight: 500; letter-spacing: -0.025em; }
.bio-block { display: grid; gap: 28px; }
.bio-block p {
  font-size: clamp(16px, 1.1vw, 19px);
  line-height: 1.6;
  letter-spacing: -0.005em;
  color: var(--fg);
}
.bio-block p .dim { color: var(--fg-dim); }

/* Timeline */
.timeline { border-top: 1px solid var(--line); }
.timeline__row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr 200px;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.timeline__year { font-family: var(--font-mono); font-size: 13px; color: var(--fg-dim); }
.timeline__role { font-size: clamp(18px, 1.4vw, 24px); font-weight: 500; letter-spacing: -0.015em; }
.timeline__client { color: var(--fg-dim); font-size: 14px; }
.timeline__tag { font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.06em; text-align: right; }

/* Skills */
.skills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.skills__item {
  background: var(--bg);
  padding: clamp(18px, 1.6vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.3s;
}
.skills__item:hover { background: var(--bg-elev); }
.skills__name { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.skills__pct { font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); }

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.pcard {
  background: var(--bg);
  padding: clamp(32px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  min-height: 620px;
  transition: background 0.3s;
}
.pcard:hover { background: var(--bg-elev); }
.pcard--featured { background: var(--bg-elev); }
.pcard__head { display: flex; flex-direction: column; gap: 8px; }
.pcard__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); }
.pcard__name { font-size: clamp(28px, 2.6vw, 40px); font-weight: 500; letter-spacing: -0.025em; line-height: 1; }
.pcard__price { font-size: clamp(40px, 4.4vw, 64px); font-weight: 500; letter-spacing: -0.035em; line-height: 1; margin-top: 12px; }
.pcard__price small { font-size: 0.32em; color: var(--fg-dim); font-weight: 400; margin-left: 6px; letter-spacing: 0.04em; }
.pcard__features { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.pcard__feat {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.pcard__feat::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--fg-dim);
}
.pcard__cta { margin-top: auto; }
.pcard__badge {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
}
.pcard__delay { font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); letter-spacing: 0.06em; text-transform: uppercase; }
.maintenance {
  margin-top: clamp(60px, 8vw, 120px);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 4vw, 64px);
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-elev);
  align-items: center;
}
.maintenance__rates { display: flex; gap: clamp(32px, 4vw, 80px); flex-wrap: wrap; }
.maintenance__rate { display: flex; flex-direction: column; gap: 6px; }
.maintenance__rate strong { font-size: clamp(36px, 3.6vw, 56px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.maintenance__rate strong small { font-size: 0.4em; color: var(--fg-dim); font-weight: 400; }

/* CONTACT */
.contact-hero { padding-top: 180px; padding-bottom: 120px; }
.contact-hero h1 {
  font-size: clamp(60px, 11vw, 200px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.contact-hero h1 .it { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.contact-hero h1 .dim { color: var(--fg-mid); }
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 96px);
}
.contact-side { display: flex; flex-direction: column; gap: 36px; }
.contact-side h4 { font-size: 14px; font-weight: 500; color: var(--fg-dim); margin-bottom: 8px; }
.contact-side p { font-size: 17px; line-height: 1.5; }
.contact-side a:hover { text-decoration: underline; text-underline-offset: 4px; }
.avail-box {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-top: 12px;
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); }
.field input, .field textarea, .field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 0;
  color: var(--fg);
  font-family: inherit;
  font-size: 17px;
  outline: none;
  transition: border-color 0.25s;
  resize: vertical;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--fg); }
.field textarea { min-height: 140px; }
.field select option { background: var(--bg); }
.budget-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.budget-btn {
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg-dim);
  transition: all 0.2s;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
}
.budget-btn:hover, .budget-btn.is-on { color: var(--bg); background: var(--fg); border-color: var(--fg); }

/* PROJECT DETAIL */
.proj-hero { padding-top: 140px; padding-bottom: 80px; display: grid; gap: 48px; }
.proj-hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.proj-hero__cell { display: flex; flex-direction: column; gap: 6px; }
.proj-hero__cell strong { font-size: 16px; font-weight: 500; }
.proj-cover {
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-elev);
  position: relative;
}
.proj-body {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 96px);
}
.proj-body p {
  font-size: clamp(17px, 1.15vw, 20px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--fg);
}
.proj-body p + p { margin-top: 24px; }
.proj-body p .dim { color: var(--fg-dim); }
.proj-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.proj-stat {
  background: var(--bg);
  padding: clamp(28px, 2.6vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.proj-stat__value { font-size: clamp(40px, 4.4vw, 64px); font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
.proj-stat__value .small { font-size: 0.45em; color: var(--fg-dim); }
.proj-stat__label { font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); letter-spacing: 0.08em; text-transform: uppercase; }
.gallery-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.shot { aspect-ratio: 4 / 3; background: var(--bg-elev); border-radius: 4px; overflow: hidden; position: relative; }
.shot--wide { aspect-ratio: 16 / 9; }
.shot--phone { aspect-ratio: 9 / 16; max-width: 320px; margin: 0 auto; }

/* NEXT PROJECT */
.next-proj {
  border-top: 1px solid var(--line);
  padding: clamp(80px, 10vw, 140px) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  text-decoration: none;
  color: var(--fg);
}
.next-proj:hover .next-proj__title { transform: translateX(12px); }
.next-proj__label { font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); letter-spacing: 0.08em; text-transform: uppercase; }
.next-proj__title {
  font-size: clamp(48px, 7vw, 120px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* FOOTER */
.ftr {
  border-top: 1px solid var(--line);
  padding: clamp(60px, 7vw, 100px) 0 32px;
}
.ftr__hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  padding-bottom: clamp(60px, 7vw, 100px);
}
.ftr__hero h2 {
  font-size: clamp(48px, 8vw, 140px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.04em;
}
.ftr__hero h2 .it { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.ftr__cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.ftr__col { display: flex; flex-direction: column; gap: 12px; }
.ftr__col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 6px; }
.ftr__col a, .ftr__col span { font-size: 14px; transition: color 0.2s; }
.ftr__col a:hover { color: var(--fg-dim); }
.ftr__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
}
.ftr__brand-big {
  font-size: clamp(80px, 17vw, 280px);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin-top: 40px;
  white-space: nowrap;
  color: var(--fg);
  opacity: 0.95;
}
.ftr__brand-big .it { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* PAGE INTRO */
.page-intro {
  padding-top: 140px;
  padding-bottom: 60px;
}
.page-intro .page-label { margin-bottom: 24px; }
.page-intro h1 { font-size: clamp(60px, 12vw, 220px); font-weight: 500; letter-spacing: -0.045em; line-height: 0.9; }
.page-intro h1 sup { font-size: 0.45em; vertical-align: super; margin-left: 12px; color: var(--fg-dim); }

/* PROJECTS GRID */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2vw, 32px);
}
.project-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: var(--fg);
}
.project-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-elev);
  position: relative;
}
.project-card__media-inner {
  position: absolute;
  inset: 0;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.project-card:hover .project-card__media-inner { transform: scale(1.05); }
.project-card__info { display: flex; flex-direction: column; gap: 4px; }
.project-card__title { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.project-card__sub { font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.06em; }

/* Form grid 2 colonnes — responsive via .form-grid-2 (≤640px → 1 colonne) */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .works-grid { grid-template-columns: 1fr; }
  .work-card--md, .work-card--sm, .work-card--half, .work-card--lg { grid-column: span 12; }
  .work-card--offset { margin-top: 0; }
  .expertise, .skills, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid, .proj-body { grid-template-columns: 1fr; }
  .timeline__row { grid-template-columns: 80px 1fr 1fr; }
  .timeline__tag { display: none; }
  .tcards { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .hero__top { grid-template-columns: 1fr; gap: 12px; text-align: left; }
  .hero__top-loc, .hero__top-stat { align-items: flex-start; text-align: left; }
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__chip { display: none; }
  .hero__title { font-size: clamp(36px, 8vw, 88px); }
  .hdr__nav { display: none; }
  .hdr__menu-btn { display: flex; }
  .ftr__cols { grid-template-columns: 1fr 1fr; }
  .ftr__hero { grid-template-columns: 1fr; }
  .proj-hero__meta, .proj-stat-grid { grid-template-columns: 1fr 1fr; }
  .works-table__row, .works-table__header { grid-template-columns: 50px 1fr 90px; }
  .works-table__role, .works-table__year { display: none; }
  .maintenance { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  /* ── Ajouts tablette/mobile ── */
  .hdr { padding: 14px 0; }
  .hdr__inner { gap: 16px; }
  .section { padding: clamp(60px, 10vw, 120px) 0; }
  .contact-hero { padding-top: 100px; padding-bottom: 56px; }
  .page-intro { padding-top: 100px; }
  .proj-hero { padding-top: 100px; padding-bottom: 56px; }
  .timeline__row { gap: 20px; }
  .hero__center { gap: clamp(12px, 1.6vw, 22px); }
}
@media (max-width: 640px) {
  .expertise, .skills, .pricing-grid, .gallery-2 { grid-template-columns: 1fr; }
  .ftr__cols { grid-template-columns: 1fr; }
  .badge span:last-child { display: none; }
  .badge { padding: 7px 10px; }
  .projects-grid { grid-template-columns: 1fr; }
  .proj-hero__meta, .proj-stat-grid { grid-template-columns: 1fr 1fr; }

  /* ── Hero ── */
  .hero { padding-top: 76px; }
  .hero__title { font-size: clamp(24px, 8vw, 50px); }
  .hero__center { gap: 12px; padding: 10px 0; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; width: 100%; }

  /* ── Works table (simplifié : titre + flèche) ── */
  .works-table__row, .works-table__header { grid-template-columns: 1fr 40px; gap: 12px; }
  .works-table__num { display: none; }
  .works-table__title { font-size: clamp(18px, 5.2vw, 28px); }
  .works-table__arrow { width: 40px; height: 40px; }

  /* ── Timeline (année + rôle seulement) ── */
  .timeline__row { grid-template-columns: 56px 1fr; gap: 16px; }
  .timeline__client { display: none; }
  .timeline__role { font-size: clamp(15px, 4.2vw, 18px); }

  /* ── Sections ── */
  .section { padding: clamp(52px, 11vw, 80px) 0; }
  .section--tight { padding: clamp(36px, 8vw, 56px) 0; }
  .page-intro { padding-top: 80px; padding-bottom: 32px; }
  .contact-hero { padding-top: 76px; padding-bottom: 32px; }
  .contact-hero h1 { font-size: clamp(40px, 11vw, 60px); } /* évite le débordement de "Construisons" */
  .proj-hero { padding-top: 80px; padding-bottom: 40px; }

  /* ── Cards : hauteurs fixes supprimées sur mobile ── */
  .pcard { min-height: auto; }
  .tcard { min-height: auto; }
  .expertise__item { min-height: 180px; }

  /* ── Footer ── */
  .ftr__brand-big { white-space: normal; font-size: clamp(48px, 14vw, 80px); } /* BUGFIX : overflow horizontal */
  .ftr__bottom { flex-direction: column; gap: 6px; }
  .ftr__hero { gap: 24px; }

  /* ── Mobile nav ── */
  .mobile-nav { gap: 18px; }
  .mobile-nav a { font-size: clamp(26px, 8vw, 48px); }

  /* ── Zones tactiles (min 44px WCAG) ── */
  .btn { min-height: 48px; }
  .chip { min-height: 44px; display: flex; align-items: center; }
  .budget-btn { min-height: 44px; }

  /* ── Form 2 colonnes → 1 colonne ── */
  .form-grid-2 { grid-template-columns: 1fr; }

  /* ── Next project ── */
  .next-proj__title { font-size: clamp(36px, 10vw, 52px); }
}

/* ─── SMALL MOBILE (≤ 480px) — 320 à 480px ───────────────────────────────── */
@media (max-width: 480px) {
  /* Header plus compact */
  .hdr { padding: 12px 0; }

  /* Hero : titre encore plus ajusté sur très petits écrans */
  .hero { padding-top: 68px; }
  .hero__greet { font-size: clamp(14px, 4vw, 16px); }

  /* Footer brand : réduit encore pour 320px */
  .ftr__brand-big { font-size: clamp(38px, 12.5vw, 52px); }

  /* Contact & page intro */
  .contact-hero { padding-top: 68px; }
  .page-intro { padding-top: 72px; }
  .page-intro h1 { font-size: clamp(40px, 13.5vw, 60px); }

  /* Section head moins de gap */
  .section-head { gap: 16px; }

  /* Works table : padding réduit pour plus de confort */
  .works-table__row { padding: 16px 0; }
  .works-table__title { font-size: clamp(16px, 5vw, 22px); }

  /* Hero CTA : padding boutons plus compact */
  .btn { padding: 12px 18px; font-size: 13px; }
}
