/* ═══════════════════════════════════════════════════
   ARCHECO - Design System
   One file. No overrides. No conflicts.
   ═══════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────── */
:root {
  --fd: 'DM Sans', sans-serif;
  --fc: 'Barlow Condensed', sans-serif;
  --fb: 'Barlow', sans-serif;
  --bg: #F2F1EF;
  --bg2: #E8E7E4;
  --white: #FAFAF8;
  --black: #0A0A09;
  --dark: #111110;
  --mid: #5C5C5A;
  --muted: #888886;
  --line: rgba(10, 10, 9, .08);
  --bronze: #9B6F3A;
  --gutter: clamp(20px, 5vw, 60px);
  --r: 8px;
  --ease: cubic-bezier(.22, .6, .36, 1);
}

/* ── 5 CORPS TYPOGRAPHIQUES ──────────────────────── */
/* T1 - Display */
.t1 {
  font-family: var(--fd);
  font-weight: 200;
  font-size: clamp(2.5rem, 8vw, 10rem);
  line-height: .88;
  letter-spacing: -.04em;
  color: var(--black);
  word-break: break-word;
}

/* T2 - Heading */
.t2 {
  font-family: var(--fd);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 3.5rem);
  line-height: 1.0;
  letter-spacing: -.03em;
  color: var(--black);
  word-break: break-word;
}

/* T3 - Sub */
.t3 {
  font-family: var(--fd);
  font-weight: 300;
  font-size: clamp(.9rem, 1.6vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--black);
}

/* T4 - Body */
.t4 {
  font-family: var(--fb);
  font-weight: 300;
  font-size: clamp(.85rem, 1.1vw, 1rem);
  line-height: 1.85;
  color: var(--mid);
}

/* T5 - Label / UI */
.t5 {
  font-family: var(--fc);
  font-weight: 700;
  font-size: .625rem;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Variants sombres */
.t1-w {
  color: #fff;
}

.t2-w {
  color: #fff;
}

.t3-w {
  color: #fff;
}

.t4-w {
  color: rgba(255, 255, 255, .8);
}

.t5-w {
  font-family: var(--fc);
  font-weight: 700;
  font-size: .6875rem;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  cursor: none;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body.page-dark,
.page-dark {
  background: var(--black);
  color: #fff;
}

.sec-dark {
  background: var(--black);
  color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.pd-body-img img {
  max-height: 80vh;
  max-width: 75%;
  width: auto;
  margin: 0 auto;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .pd-body-img img {
    width: 100%;
    height: auto;
  }
}

/* ── CURSOR ───────────────────────────────────────── */
#cur-d {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity .2s;
}

#cur-r {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), opacity .2s;
}

body.hov #cur-d {
  opacity: 0;
}

body.hov #cur-r {
  width: 48px;
  height: 48px;
}

body.drag #cur-r {
  width: 64px;
  height: 64px;
}

/* ── REVEALS ──────────────────────────────────────── */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.rv.in,
.rv.is-reveal {
  opacity: 1;
  transform: none;
}

.d1 {
  transition-delay: .1s;
}

.d2 {
  transition-delay: .2s;
}

.d3 {
  transition-delay: .3s;
}

.d4 {
  transition-delay: .4s;
}

/* ── NAV ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - (var(--gutter) * 2));
  max-width: 1400px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 48px;
  border-radius: 999px;
  background: rgba(10, 10, 9, .85);
  /* Plus opaque par défaut pour visibilité */
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .2);
  transition: all .4s var(--ease);
}

.nav.on-light {
  background: rgba(242, 241, 239, .95);
  border-color: rgba(10, 10, 9, .08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
}

.nav-logo {
  font-family: var(--fc);
  font-weight: 800;
  font-size: .8125rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #fff;
  transition: color .3s;
}

.nav.on-light .nav-logo {
  color: var(--black);
}

.nav-links {
  display: flex;
  gap: clamp(18px, 2.5vw, 40px);
  list-style: none;
}

.nav-links a {
  font-family: var(--fc);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav.on-light .nav-links a {
  color: var(--mid);
}

.nav.on-light .nav-links a:hover,
.nav.on-light .nav-links a.active {
  color: var(--black);
}

/* MOBILE NAV */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: #fff;
  transition: transform .3s, opacity .3s;
}

.nav.on-light .nav-toggle span {
  background: var(--black);
}

.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
}

.nav-mobile.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.nav-mobile-links a {
  font-family: var(--fd);
  font-size: 2.5rem;
  letter-spacing: -.02em;
  color: #fff;
  font-weight: 200;
}

.nav-mobile-x {
  position: absolute;
  top: 24px;
  right: var(--gutter);
  color: #fff;
  font-family: var(--fc);
  font-size: .6875rem;
  letter-spacing: .2em;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ── BUTTONS ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fc);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 999px;
  transition: all .28s var(--ease);
  white-space: nowrap;
  cursor: none;
}

.btn-sm {
  font-size: .625rem;
  padding: 10px 20px;
}

.btn .arr {
  transition: transform .25s var(--ease);
}

.btn:hover .arr {
  transform: translate(3px, -3px);
}

.btn-blk {
  background: var(--black);
  color: #fff;
}

.btn-blk:hover {
  background: #2a2a28;
}

.btn-w {
  background: #fff;
  color: var(--black);
}

.btn-w:hover {
  background: rgba(255, 255, 255, .88);
}

.btn-out {
  background: transparent;
  border: 1px solid rgba(10, 10, 9, .2);
  color: var(--black);
}

.btn-out:hover {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}

.btn-ow {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .65);
}

.btn-ow:hover {
  background: #fff;
  color: var(--black);
  border-color: #fff;
}

/* ── PILL ─────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--fc);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.pill-d {
  border-color: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .55);
}

.pill-hl {
  border-color: rgba(155, 111, 58, .35);
  color: var(--bronze);
}

/* ── TICKER ───────────────────────────────────────── */
.ticker {
  background: var(--black);
  overflow: hidden;
}

.tk-row {
  overflow: hidden;
  padding: 14px 0;
}

.tk-track {
  display: flex;
  white-space: nowrap;
  animation: tkFwd 32s linear infinite;
}

@keyframes tkFwd {
  to {
    transform: translateX(-50%);
  }
}

.tk-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 20px;
}

.tk-pill {
  font-family: var(--fc);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  padding: 5px 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  transition: color .2s, border-color .2s;
}

.tk-pill:hover {
  color: rgba(255, 255, 255, .8);
  border-color: rgba(255, 255, 255, .28);
}

.tk-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--bronze);
  flex-shrink: 0;
}

/* ── FOOTER ───────────────────────────────────────── */
.footer {
  background: var(--black);
  padding: clamp(56px, 8vw, 100px) var(--gutter) clamp(28px, 4vw, 44px);
}

.ft-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding-bottom: clamp(36px, 5vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

@media (max-width: 900px) {
  .ft-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

}

.ft-logo {
  font-family: var(--fc);
  font-weight: 800;
  font-size: .875rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}

.ft-desc {
  font-family: var(--fb);
  font-size: .8125rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, .55);
}

.ft-lbl {
  font-family: var(--fc);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 16px;
}

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

.ft-col a {
  font-family: var(--fb);
  font-size: .8125rem;
  font-weight: 300;
  color: rgba(255, 255, 255, .55);
  transition: color .2s;
}

.ft-col a:hover {
  color: #fff;
}

.ft-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: clamp(20px, 3vw, 28px);
}

.ft-copy {
  font-family: var(--fc);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.ft-soc {
  display: flex;
  gap: 20px;
}

.ft-soc a {
  font-family: var(--fc);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  transition: color .2s;
}

.ft-soc a:hover {
  color: #fff;
}

/* ── PAGE HERO (pages intérieures) ───────────────── */
.page-hero {
  background: var(--dark);
  padding: clamp(120px, 16vw, 180px) var(--gutter) clamp(56px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='.028'/%3E%3C/svg%3E");
  background-size: 260px;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 50% at 88% 110%, rgba(155, 111, 58, .14), transparent 62%);
}

/* Glass Effect Restoration */
.glass-surface {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  backdrop-filter: blur(10px);
  /* Base surface blur */
}

.glass-band {
  position: relative;
  height: 100%;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  /* Subtle edge */
  backdrop-filter: blur(25px) saturate(120%);
  /* Strong band blur */
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(var(--b)) brightness(0.5);
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.glass-inner.active {
  opacity: 1;
}

.page-hero-body {
  position: relative;
  z-index: 1;
}

.page-hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fuA .7s .05s var(--ease) both;
}

.page-hero-h1 {
  font-family: var(--fd);
  font-weight: 200;
  font-size: clamp(5rem, 13vw, 18rem);
  line-height: .84;
  letter-spacing: -.04em;
  color: #fff;
  opacity: 0;
  animation: fuA .9s .1s var(--ease) both;
}

.page-hero-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: clamp(32px, 5vw, 80px);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  opacity: 0;
  animation: fuA .8s .22s var(--ease) both;
}

@media (max-width: 900px) {
  .page-hero-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 24px;
  }
}

.page-hero-sub {
  font-family: var(--fb);
  font-weight: 300;
  font-size: clamp(.9rem, 1.2vw, 1.05rem);
  color: rgba(255, 255, 255, .55);
  line-height: 1.85;
  max-width: 520px;
}

/* ── SECTION HELPERS ─────────────────────────────── */
.sec {
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  border-bottom: 1px solid var(--line);
}

.sec-dark {
  background: var(--dark);
  border-color: rgba(255, 255, 255, .07);
}

.sec-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: flex-start;
  margin-bottom: clamp(48px, 7vw, 96px);
}

@media (max-width: 900px) {
  .sec-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.sec-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(40px, 6vw, 72px);
}

@media (max-width: 900px) {
  .sec-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.s-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
}

@media (max-width: 900px) {
  .s-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ── LIGHTBOX ─────────────────────────────────────── */
#lb {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(10, 10, 9, .96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s;
  cursor: none;
}

#lb.open {
  opacity: 1;
  pointer-events: all;
}

#lb img {
  max-width: 90vw;
  max-height: 86vh;
  border-radius: var(--r);
  animation: lbIn .38s var(--ease) both;
}

@keyframes lbIn {
  from {
    opacity: 0;
    transform: scale(.92);
  }
}

#lb-x {
  position: absolute;
  top: 20px;
  right: 26px;
  font-family: var(--fc);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .22);
  transition: color .2s;
}

#lb-x:hover {
  color: #fff;
}

/* ── FILTERS ─────────────────────────────────────── */
.filters {
  padding: clamp(16px, 2vw, 24px) var(--gutter);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg);
  position: sticky;
  top: 62px;
  z-index: 10;
}

.filters-dark {
  background: var(--dark);
  border-color: rgba(255, 255, 255, .07);
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  font-family: var(--fc);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(10, 10, 9, .18);
  color: var(--mid);
  white-space: nowrap;
  cursor: none;
  transition: all .25s var(--ease);
}

.filter-btn:hover {
  border-color: rgba(10, 10, 9, .4);
  color: var(--black);
  background: rgba(10, 10, 9, .05);
}

.filter-btn.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.filter-btn-d {
  font-family: var(--fc);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .65);
  white-space: nowrap;
  cursor: none;
  transition: all .25s var(--ease);
}

.filter-btn-d:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .06);
}

.filter-btn-d.active {
  background: #fff;
  color: var(--dark);
  border-color: transparent;
}

/* ── PROJECT CARD ────────────────────────────────── */
.pc {
  display: block;
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  cursor: none;
  background: #1a1a18;
}

.pc-img {
  position: absolute;
  inset: 0;
}

.pc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.68);
  transition: transform .9s var(--ease), filter .5s;
}

.pc:hover .pc-img img {
  transform: scale(1.05);
  filter: brightness(.45);
}

.pc::after {
  content: '';
  position: absolute;
  inset: 38% 0 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .82), transparent);
  pointer-events: none;
  z-index: 1;
}

.pc-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.pc-info {
  flex: 1;
  min-width: 0;
}

.pc-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.pc-tag {
  font-family: var(--fc);
  font-size: .5625rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .65);
}

.pc-name {
  font-family: var(--fd);
  font-weight: 300;
  font-size: clamp(.9rem, 1.3vw, 1.1rem);
  letter-spacing: -.01em;
  line-height: 1.25;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-sub {
  font-family: var(--fb);
  font-size: .75rem;
  /* Retained original font-size */
  background: #0d0d0d;
  color: rgba(255, 255, 255, .95);
  line-height: 1.6;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  height: 3.2em;
}

.pc-yr {
  font-family: var(--fc);
  font-size: .5625rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  flex-shrink: 0;
}

/* ── CAROUSEL ─────────────────────────────────────── */
.car-wrap {
  overflow: hidden;
}

.car-ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  margin-bottom: clamp(20px, 2.5vw, 36px);
}

.car-prog-wrap {
  flex: 1;
  max-width: 180px;
  height: 1px;
  background: rgba(255, 255, 255, .1);
}

.car-prog-fill {
  height: 100%;
  width: 0;
  background: rgba(255, 255, 255, .45);
  transition: width .3s var(--ease);
}

.car-nav {
  display: flex;
  gap: 8px;
}

.car-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: rgba(255, 255, 255, .4);
  cursor: none;
  transition: all .22s;
}

.car-btn:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}

.car-track {
  display: flex;
  gap: 10px;
  padding: 0 var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  cursor: grab;
}

.car-track::-webkit-scrollbar {
  display: none;
}

.car-track.is-drag {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.slide {
  flex: 0 0 clamp(220px, 26vw, 360px);
  scroll-snap-align: start;
}

/* ── ANIMATIONS ───────────────────────────────────── */
@keyframes fuA {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ── PROCESS STEPS ────────────────────────────────── */
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(56px, 8vw, 112px);
  width: 100%;
}

.step {
  padding: clamp(26px, 3.5vw, 44px) clamp(16px, 2.5vw, 32px);
  border-right: 1px solid var(--line);
  position: relative;
}

.step:last-child {
  border-right: none;
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.step::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  background: var(--bronze);
  width: 0;
  transition: width .75s var(--ease);
}

.step.in::after,
.step.is-reveal::after {
  width: 100%;
}

.step-n {
  font-family: var(--fc);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  display: block;
}

.step-name {
  font-family: var(--fd);
  font-weight: 300;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 10px;
  color: var(--black);
}

@media (max-width: 900px) {
  .step-grid {
    grid-template-columns: 1fr;
  }

  .step {
    border-right: none;
    padding-left: 0;
    padding-right: 0;
  }
}

/* ── CAPABILITIES CARD ────────────────────────────── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: clamp(56px, 8vw, 112px);
  width: 100%;
}

.cap-card {
  background: var(--bg2);
  border-radius: var(--r);
  padding: clamp(28px, 4vw, 52px) clamp(24px, 3.5vw, 44px);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: background .3s var(--ease), transform .45s var(--ease), box-shadow .45s;
}

.cap-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--bronze), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}

.cap-card:hover {
  background: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 24px 64px rgba(10, 10, 9, .08);
}

.cap-card:hover::before {
  transform: scaleX(1);
}

.cap-lbl {
  font-family: var(--fc);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.cap-num {
  font-family: var(--fd);
  font-weight: 200;
  font-size: clamp(2.5rem, 4vw, 5rem);
  letter-spacing: -.06em;
  line-height: 1;
  color: rgba(10, 10, 9, .06);
}

.cap-name {
  font-family: var(--fd);
  font-weight: 300;
  font-size: clamp(1.2rem, 2vw, 2rem);
  letter-spacing: -.03em;
  line-height: 1.05;
}

.cap-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cap-item {
  font-family: var(--fb);
  font-size: .875rem;
  color: var(--mid);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .cap-grid {
    grid-template-columns: 1fr;
  }
}

/* ── JS PARTAGÉ (inline dans chaque page) ─────────── */
/* ── PREMIUM ARTICLE SYSTEM (.pd-premium) ────────── */
.pd-premium {
  --gap: clamp(24px, 4vw, 48px);
}

.pd-premium .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Chapters */
.pd-chapter {
  margin-top: clamp(60px, 8vw, 100px);
  margin-bottom: 32px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  position: relative;
}

.pd-chapter-num {
  font-family: var(--fc);
  font-size: .6875rem;
  font-weight: 700;
  color: var(--bronze);
  margin-bottom: 12px;
  display: block;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.pd-chapter-title {
  font-family: var(--fd);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.1;
  color: #ffffff !important;
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.pd-article-light .pd-chapter-title {
  color: var(--black) !important;
  text-shadow: none;
}

/* Content Blocks */
.pd-text {
  margin-bottom: var(--gap);
}

.pd-text p {
  margin-bottom: 20px;
}

.pd-text p:last-child {
  margin-bottom: 0;
}

/* Key Takeaways / Highlight Box */
.pd-takeaway {
  background: #fff;
  border-left: 3px solid var(--bronze);
  padding: 32px;
  border-radius: 4px;
  margin: var(--gap) 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .03);
}

.pd-takeaway-h {
  font-family: var(--fc);
  font-size: .625rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pd-takeaway-h::before {
  content: '';
  width: 12px;
  height: 1px;
  background: var(--bronze);
}

.pd-takeaway ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.pd-takeaway li {
  font-family: var(--fb);
  font-size: .9375rem;
  color: var(--mid);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.pd-takeaway li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--bronze);
  font-size: .8rem;
  top: 1px;
}

/* Feature Grid (for lists of companies, etc) */
.pd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: var(--gap) 0;
}

.pd-card {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s;
}

.pd-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .04);
}

.pd-card-h {
  font-family: var(--fd);
  font-weight: 500;
  font-size: 1.125rem;
  margin-bottom: 12px;
  color: var(--black);
}

.pd-card-p {
  font-family: var(--fb);
  font-size: .875rem;
  color: var(--mid);
  line-height: 1.6;
}

/* Quote */
.pd-quote {
  margin: var(--gap) 0;
  padding: 0 40px;
  position: relative;
}

.pd-quote::before {
  content: '“';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 4rem;
  font-family: var(--fd);
  color: var(--line);
  line-height: 1;
}

.pd-quote-text {
  font-family: var(--fd);
  font-style: italic;
  font-weight: 300;
  font-size: 1.25rem;
  color: var(--black);
  line-height: 1.5;
}

/* Adjustments */
.pd-content {
  background: var(--bg);
  padding-bottom: 100px;
}

/* ── DETAIL PAGE FOOTER (Next Project) ───────── */

/* ── S6 CTA ─────────────────────────────────────── */
.s6 {
  background: var(--black);
  padding: clamp(100px, 14vw, 190px) var(--gutter);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
}

.s6-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 100%, rgba(155, 111, 58, .22), transparent 70%);
  pointer-events: none;
}

.s6-body {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1000px;
  text-align: center;
}

.s6-p {
  font-family: var(--fb);
  font-weight: 300;
  font-size: clamp(.9rem, 1.1vw, 1rem);
  color: rgba(255, 255, 255, .75);
  line-height: 1.85;
  margin: 18px 0 44px;
}

.s6-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.pd-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, .06);
  overflow: hidden;
}

.pd-next-info {
  padding: clamp(48px, 7vw, 100px) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
}

.pd-next-label {
  font-family: var(--fc);
  font-size: .5625rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .25);
  margin-bottom: 16px;
  display: block;
}

.pd-next-title {
  font-family: var(--fd);
  font-weight: 200;
  font-size: clamp(1.6rem, 3.5vw, 5rem);
  line-height: .88;
  letter-spacing: -.04em;
  color: #fff;
}

.pd-next {
  display: block;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pd-next-link {
  display: flex !important;
  width: 100%;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.02);
}

.pd-next-img {
  width: 50%;
  flex: 0 0 50%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.pd-next-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}

.pd-next:hover .pd-next-img img {
  transform: scale(1.05);
}

.pd-next-info {
  width: 50%;
  flex: 0 0 50%;
  padding: clamp(40px, 6vw, 100px) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pd-next-label {
  font-family: var(--fc);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.pd-next-title {
  font-family: var(--fd);
  font-weight: 200;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.1;
  color: #fff;
  letter-spacing: -.02em;
}

@media (max-width: 900px) {
  .pd-next-link {
    flex-direction: column;
  }

  .pd-next-img,
  .pd-next-info {
    width: 100%;
    flex: 0 0 auto;
  }

  .pd-next-info {
    padding: 40px var(--gutter);
  }
}

/* ── ARTICLE IMAGES GRID ──────────────────────── */
.pd-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 75%;
  margin: clamp(40px, 6vw, 80px) auto;
  padding: 0;
}

/* Odd number of images: first image spans both columns */
.pd-img-item:first-child:nth-last-child(odd) {
  grid-column: 1 / -1;
}

/* Odd number of images: FIRST item alone on first row spans full width */
.pd-img-item:first-child:nth-last-child(odd) {
  grid-column: 1 / -1;
}

.pd-img-item {
  width: 100%;
  overflow: hidden;
  border-radius: var(--r);
}

/* Default: landscape 16:9 */
.pd-img-item img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r);
  cursor: pointer;
  transition: transform 0.35s var(--ease);
}

/* Portrait: 9:16 */
.pd-img-item.portrait img {
  aspect-ratio: 9 / 16;
}

.pd-img-item img:hover {
  transform: scale(1.025);
}

@media (max-width: 768px) {
  .pd-images {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .pd-img-item:first-child:nth-last-child(odd) {
    grid-column: 1;
  }

  .pd-flow-item.pd-image-full .pd-flow-content {
    grid-column: 1 / -1;
  }
}

/* ── INTEGRATED & FULL IMAGE UTILS ────────────── */
.pd-image-integrated {
  margin: clamp(32px, 5vw, 60px) 0;
  width: 100%;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg2);
}

.pd-image-integrated img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 1 !important;
}

.pd-flow-item.pd-image-full {
  display: block !important;
  grid-template-columns: none !important;
  margin: clamp(60px, 10vw, 120px) 0;
  width: 100%;
}

.pd-flow-item.pd-image-full .pd-flow-content {
  width: 100%;
}

.pd-flow-item.pd-image-full img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r);
  opacity: 1 !important;
  display: block;
}

/* Pair Layout (2 on a line) */
.pd-flow-item.pd-image-pair {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
  margin: clamp(40px, 8vw, 80px) 0;
  width: 100%;
}

.pd-flow-item.pd-image-pair .pd-flow-content {
  display: contents;
  /* Allow children to participate in the grid-item grid */
}

.pd-flow-item.pd-image-pair img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r);
  opacity: 1 !important;
}

@media (max-width: 768px) {
  .pd-flow-item.pd-image-pair {
    grid-template-columns: 1fr !important;
  }
}

/* ── MOSAIC & PROJECTS GRID ───────────────────── */
.mosaic {
  padding: clamp(32px, 5vw, 60px) var(--gutter) clamp(80px, 10vw, 140px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}

.pj {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: #1c1c1a;
  cursor: none;
  display: block;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  mask-image: radial-gradient(white, black);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  text-decoration: none;
  grid-column: span var(--grid-span, 3);
  aspect-ratio: 4/5;
  transition: transform .6s var(--ease);
}

.pj-img {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.pj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  transition: transform .9s var(--ease), filter .5s;
}

.pj:hover .pj-img img {
  transform: scale(1.04);
  filter: brightness(0.7);
}

.pj.pj-light {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.pj.pj-light .pj-img img {
  filter: brightness(0.95);
}

.pj.pj-light:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  border-color: rgba(10, 10, 9, 0.15);
}

.pj.pj-light .pj-body {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.pj.pj-light .pj-name {
  color: #fff;
}

.pj.pj-light .pj-sub {
  color: rgba(255, 255, 255, 0.75);
}

.pj.pj-light .pj-tag {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.65);
}

.pj.pj-light .pj-yr {
  color: rgba(10, 10, 9, 0.4);
}

.pj.pj-light .pj-arr {
  color: rgba(10, 10, 9, 0.4);
}

.pj.pj-light:hover .pj-arr {
  color: var(--black);
}

.pj-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  transition: background .3s var(--ease);
}

.pj:hover .pj-body {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
}

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

.pj-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.pj-tag {
  font-family: var(--fc);
  font-size: .5625rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
}

.pj-name {
  font-family: var(--fd);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  letter-spacing: -.02em;
  line-height: 1.1;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pj-name-ctx {
  font-weight: 200;
  color: rgba(255, 255, 255, .65);
}

.pj-sub {
  font-family: var(--fb);
  font-size: .8125rem;
  color: rgba(255, 255, 255, .65);
  line-height: 1.4;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  height: 2.8em;
}

.pj-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
  text-align: right;
}

.pj-yr {
  font-family: var(--fc);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .3);
}

.pj-arr {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .4);
  transition: transform .3s var(--ease), color .25s;
}

.pj:hover .pj-arr {
  transform: translate(3px, -3px);
  color: #fff;
}

.pj[data-hidden="1"] {
  display: none;
}

.sort-btn {
  font-family: var(--fc);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .75);
  background: transparent;
  white-space: nowrap;
  cursor: none;
  transition: all .25s var(--ease);
}

.sort-btn:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, .06);
}

.filter-btn-d {
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  font-size: 0.7rem;
  font-family: var(--fa);
  letter-spacing: 0.08em;
  transition: all 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.filter-btn-d:hover,
.filter-btn-d.active {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ── UNIFIED FILTERS & SEARCH ───────────────────── */
.filter-bar-wrap {
  display: flex;
  align-items: center;
  background: var(--dark);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  overflow: hidden;
  width: 100%;
}

.filter-pills {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px var(--gutter);
  overflow-x: auto;
  flex: 1;
  min-width: 0;
  scrollbar-width: none;
  cursor: grab;
}

.filter-pills::-webkit-scrollbar {
  display: none;
}

.filter-pills.is-dragging {
  cursor: grabbing;
}

.filter-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px var(--gutter);
  flex-shrink: 0;
  border-left: 1px solid rgba(255, 255, 255, .07);
}

.search-input {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  outline: none;
  font-family: var(--fb);
  font-size: .875rem;
  width: 200px;
  transition: border-color .2s, background .2s;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, .45);
}

/* ── Light variants (Projects page) ─────────────── */
.search-input-light {
  background: rgba(10, 10, 9, .04);
  border-color: rgba(10, 10, 9, .18);
  color: var(--black);
}

.search-input-light::placeholder {
  color: var(--muted);
}

.search-input-light:focus {
  background: rgba(10, 10, 9, .07);
  border-color: rgba(10, 10, 9, .35);
}

.sort-btn-light {
  border-color: rgba(10, 10, 9, .18);
  color: var(--mid);
}

.sort-btn-light:hover {
  border-color: var(--black);
  color: var(--black);
  background: rgba(10, 10, 9, .05);
}

.search-input:focus {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .3);
}

@media (max-width: 900px) {
  .filter-bar-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-controls {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, .07);
    justify-content: space-between;
    gap: 10px;
  }

  .search-input {
    width: 100% !important;
    flex: 1;
  }
}

@media (max-width: 1024px) {

  .pj.big,
  .pj.sm,
  .pj.sq,
  .pj.wide,
  .pj {
    grid-column: span var(--grid-span-m, 6) !important;
  }
}

@media (max-width: 768px) {
  .filter-btn,
  .filter-btn-d,
  .sort-btn {
    min-height: 44px;
    padding: 10px 16px;
  }
}

@media (max-width: 768px) {

  .pj.big,
  .pj.sm,
  .pj.sq,
  .pj.wide,
  .pj {
    grid-column: span var(--grid-span-m, 6) !important;
  }

  .pj-body {
    padding: 12px;
  }

  .pj-name {
    font-size: 1rem;
  }

  .pj-sub {
    display: none;
  }

  /* Hide sub on mobile to save space */
  .pj-meta {
    display: none;
  }

  /* Hide year/arrow meta too to simplify */
}

/* ── TEAM GRID ────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  width: 100%;
}

@media (max-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-card-body {
    padding: 12px;
  }

  .team-name {
    font-size: .8rem;
  }

  .team-desc {
    font-size: .65rem;
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .team-name {
    font-size: .9rem;
  }

  .team-desc {
    font-size: .75rem;
  }
}

.team-card {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--dark);
  transition: transform 0.4s var(--ease);
  cursor: none;
  display: block;
  text-decoration: none;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-image {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(232, 231, 228, 0) 15%, #E8E7E4 100%);
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1) brightness(.88);
  transition: transform 0.6s var(--ease), filter 0.5s var(--ease);
}

.team-card:hover .team-image img {
  transform: scale(1.05);
  filter: grayscale(1) brightness(.12) blur(6px);
}

.team-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.team-card:hover .team-overlay {
  opacity: 1;
}

.team-name {
  font-family: var(--fd);
  font-weight: 300;
  font-size: clamp(0.9rem, 1.2vw, 1.25rem);
  color: #fff;
  margin-bottom: 2px;
  line-height: 1.2;
}

.team-role {
  font-family: var(--fc);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.team-bio {
  font-family: var(--fb);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  margin-top: 8px;
}

.team-card:hover .team-bio {
  max-height: 120px;
}

/* ── STUDIO PAGE ─────────────────────────────────── */
.s2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 900px) {
  .s2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .stat:nth-child(2n) {
    border-right: none;
  }
}

.stat {
  padding: clamp(32px, 5vw, 64px) clamp(20px, 3vw, 44px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat:last-child {
  border-right: none;
}

.stat-n {
  font-family: var(--fd);
  font-weight: 200;
  font-size: clamp(2.8rem, 5vw, 7rem);
  letter-spacing: -.06em;
  line-height: .9;
  color: var(--black);
}

.stat-l {
  font-family: var(--fc);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.s3 {
  padding: clamp(80px, 11vw, 160px) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 900px) {
  .s3 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.s3-r {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.s3-quote {
  margin-top: 8px;
  padding-left: 20px;
  border-left: 2px solid var(--bronze);
}

.s3-quote p {
  font-family: var(--fd);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  letter-spacing: -.02em;
  line-height: 1.45;
  color: var(--black);
}

.s4 {
  padding: clamp(80px, 11vw, 160px) var(--gutter);
  border-bottom: 1px solid var(--line);
}

.s4.sec-dark {
  background: var(--dark);
  border-bottom: none;
}

.team-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.team-filter {
  font-family: var(--fc);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: all .25s var(--ease);
  background: transparent;
}

.team-filter:hover {
  border-color: #fff;
  color: #fff;
}

.s5 {
  padding: clamp(80px, 11vw, 160px) var(--gutter);
  border-bottom: 1px solid var(--line);
}

.s5-head {
  display: flex;
  justify-content: flex-start;
  gap: clamp(32px, 5vw, 80px);
  align-items: flex-start;
  padding: 0 var(--gutter) clamp(28px, 4vw, 48px);
}

@media (max-width: 900px) {
  .s5-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.client-cell {
  padding: clamp(20px, 3vw, 40px) clamp(16px, 2.5vw, 32px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-cell:nth-child(6n) {
  border-right: none;
}

.client-name {
  font-family: var(--fc);
  font-weight: 600;
  font-size: clamp(.75rem, 1vw, .9375rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  transition: color .25s;
}

.client-cell:hover .client-name {
  color: rgba(255, 255, 255, .85);
}

.s6 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.location {
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  border-right: 1px solid var(--line);
}

.location:last-child {
  border-right: none;
}

.loc-tag {
  font-family: var(--fc);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 20px;
}

.loc-city {
  font-family: var(--fd);
  font-weight: 200;
  font-size: clamp(3rem, 7vw, 9rem);
  line-height: .88;
  letter-spacing: -.04em;
  color: #fff;
  margin-bottom: 24px;
}

.loc-desc {
  font-family: var(--fb);
  font-weight: 300;
  font-size: clamp(.9rem, 1.1vw, 1rem);
  color: var(--mid);
  line-height: 1.85;
  max-width: 380px;
  margin-bottom: 32px;
}

.loc-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.loc-line {
  font-family: var(--fc);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.loc-map {
  margin-top: clamp(32px, 5vw, 48px);
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
}

.loc-map iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(1) opacity(0.7) contrast(1.1);
  transition: filter 0.4s var(--ease);
}

.loc-map:hover iframe {
  filter: grayscale(0) opacity(1);
}

.s7 {
  padding: clamp(80px, 11vw, 160px) var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(48px, 7vw, 120px);
}

.s7-r {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 480px;
}

.s7-h {
  font-family: var(--fd);
  font-weight: 200;
  font-size: clamp(2.8rem, 5.5vw, 8rem);
  line-height: .88;
  letter-spacing: -.04em;
  color: #fff;
}

@media (max-width: 900px) {

  .s3,
  .s5-head,
  .s6 {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .location:first-child {
    border-bottom: 1px solid var(--line);
    border-right: none;
  }

  .location:last-child {
    border-right: none;
  }

  .s7 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .client-cell:nth-child(n) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .client-cell:nth-child(3n) {
    border-right: none;
  }

  .sec-head {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: left;
  }

  .sec-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ft-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .ft-bot {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* ── TEAM PROFILE SLIDER ──────────────────────────── */
.tm-slider-wrap {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  position: relative;
  background: #000;
}

.tm-slider-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0%, rgba(10, 10, 9, 1) 85%);
  z-index: 1;
}

.tm-slider {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  position: relative;
  z-index: 2;
}

.tm-slider::-webkit-scrollbar {
  display: none;
}

.tm-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  box-sizing: border-box;
}

.tm-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.tm-img-wrap {
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--r);
  overflow: hidden;
}

.tm-img-wrap img {
  height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform .8s var(--ease);
}

.tm-info {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 40px);
}

.tm-h1 {
  font-family: var(--fd);
  font-weight: 200;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: .84;
  letter-spacing: -.04em;
  color: #fff;
}

.tm-role {
  font-family: var(--fc);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bronze);
}

.tm-bio {
  font-family: var(--fb);
  font-weight: 300;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  max-width: 480px;
}

.tm-nav {
  position: absolute;
  bottom: 40px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.tm-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.tm-nav-btns {
  display: flex;
  gap: 12px;
  pointer-events: auto;
}

.tm-arrow {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s var(--ease);
}

.tm-arrow:hover {
  background: #fff;
  color: var(--dark);
  border-color: #fff;
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .tm-slide {
    padding-top: 100px;
    padding-bottom: 80px;
    height: auto;
    min-height: 100vh;
  }

  .tm-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .tm-img-wrap {
    height: 50vh;
  }
}

/* ── PROJECT HERO ────────────────────────────────── */
.proj-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
}

.proj-hero.is-light {
  background: var(--bg);
}

.proj-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.proj-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.8);
  transition: transform 1.2s var(--ease), filter 0.8s;
}

.proj-hero.is-light .proj-hero-bg img {
  filter: brightness(0.9) saturate(0.9);
}

.proj-hero:hover .proj-hero-bg img {
  transform: scale(1.05);
  /* Subtle zoom on hover instead of slices */
  filter: brightness(0.4) saturate(0.6);
}

.proj-hero-body {
  position: relative;
  z-index: 2;
  max-width: 1050px;
  pointer-events: none;
}

.proj-hero-tag {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.pd-tag {
  font-family: var(--fc);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bronze);
  padding: 4px 12px;
  border: 1px solid rgba(155, 111, 58, 0.3);
  border-radius: 999px;
}

.proj-hero.is-light .pd-tag {
  background: rgba(10, 10, 9, 0.05);
}

.proj-hero-h1 {
  font-family: var(--fd);
  font-weight: 200;
  font-size: clamp(3.5rem, 8vw, 8.5rem);
  line-height: .88;
  letter-spacing: -.04em;
  color: #fff;
}

.proj-hero.is-light .proj-hero-h1 {
  color: var(--black);
}

@media (max-width: 900px) {
  .proj-hero {
    height: 75vh;
  }
}

/* ── DETAIL PAGES RESPONSIVENESS (PROJECT & INSIGHT) ── */
@media (max-width: 768px) {
  .pd-hero {
    padding: 120px 0 60px !important;
  }

  .pd-content {
    padding: 40px 0 80px !important;
  }

  .pd-body-img {
    margin: 2.5rem 0 !important;
  }

  .pd-body-h2 {
    font-size: 1.75rem !important;
    margin-top: 3.5rem !important;
  }

  .pd-body-h3 {
    font-size: 1.25rem !important;
    margin-top: 2.5rem !important;
  }

  .pd-body-p {
    font-size: 1rem !important;
    line-height: 1.7 !important;
  }

  .pd-meta-bar {
    flex-direction: column !important;
    gap: 24px !important;
    padding: 32px var(--gutter) !important;
    align-items: stretch !important;
  }

  .pd-meta-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding-bottom: 16px !important;
    flex-direction: row !important;
    justify-content: space-between !important;
  }

  .pd-meta-label {
    margin-bottom: 0 !important;
  }

  .pd-meta-value {
    text-align: right !important;
  }

  .pd-flow-item {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .pd-flow-title,
  .pd-flow-desc {
    grid-column: 1 !important;
  }

  .pd-flow-step {
    font-size: 3rem !important;
    opacity: 0.2 !important;
    margin-bottom: 10px !important;
  }

  .pd-body {
    padding: 48px var(--gutter) !important;
  }

  .pd-cover {
    aspect-ratio: 4/3 !important;
  }
}

@media (max-width: 900px) {
  .s-split {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .sec-head {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .sec-head p {
    max-width: 100% !important;
  }
}

/* ── INSIGHT CONTENT & FLOW COLUMNS ──────────────── */
.insight-content {
  padding: 80px 0;
  background: #000;
  position: relative;
  z-index: 10;
}

.pd-flow {
  padding: 120px 0;
  background: #000;
}

.pd-flow-grid {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.pd-flow-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px 60px;
  margin-bottom: 80px;
}

.pd-flow-item:last-child {
  margin-bottom: 0;
}

.pd-flow-step {
  font-family: var(--fd);
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.4);
  padding-top: 8px;
}

.pd-flow-content {
  display: flex;
  flex-direction: column;
}

.pd-flow-title {
  font-family: var(--fd);
  font-weight: 200;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 2rem;
}

.pd-flow-desc {
  font-family: var(--fs);
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 720px;
}

/* Light mode override for articles */
.pd-flow.is-light,
.pd-article-light .pd-flow {
  background: var(--bg);
}

.pd-flow.is-light .pd-flow-title,
.pd-article-light .pd-flow-title {
  color: var(--black);
}

.pd-flow.is-light .pd-flow-desc,
.pd-article-light .pd-flow-desc {
  color: var(--mid);
}

.pd-flow.is-light .pd-flow-step,
.pd-article-light .pd-flow-step {
  color: var(--muted);
}

/* SMART INTEGRATED TWO-COLUMN LAYOUT */
.pd-flow-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.pd-flow-text {
  display: flex;
  flex-direction: column;
}

.pd-flow-image {
  width: 100%;
}

.pd-flow-image img {
  width: 100%;
  border-radius: var(--r);
  display: block;
}

/* Lone Full-Width Image Item */
.pd-flow-item.pd-image-full {
  display: block !important;
  margin-bottom: 80px;
}

.pd-flow-item.pd-image-full .pd-flow-content {
  width: 100%;
}

.pd-flow-item.pd-image-full img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r);
  display: block;
}

/* Two-Column Image Item (Pairs) */
.pd-flow-item .pd-flow-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: clamp(20px, 4vw, 40px);
  width: 100%;
  grid-column: 1 / -1; /* Span across the 140px + 1fr grid if nested */
}

.pd-flow-item .pd-flow-grid-item {
  width: 100%;
}

.pd-flow-item .pd-flow-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r);
  display: block;
}

/* Fallback for the older class naming if needed */
.pd-flow-item.pd-flow-grid {
  grid-template-columns: 1fr 1fr !important;
  gap: clamp(20px, 4vw, 40px);
  width: 100%;
}

.pd-flow-item.pd-image-full .pd-flow-content {
  grid-column: 1 / -1;
}

.pd-flow-item.pd-image-full .pd-flow-step {
  display: none;
}

@media (max-width: 768px) {
  .pd-flow-item {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pd-flow-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ── NEXT PROJECT / INSIGHT SECTION ───────────────────── */
.pd-next {
  padding: 0;
  height: 60vh;
  position: relative;
  overflow: hidden;
  background: #000;
}

.pd-next-link {
  display: flex;
  width: 100%;
  height: 100%;
  text-decoration: none;
  align-items: center;
}

.pd-next-img {
  flex: 0 0 50%;
  height: 100%;
  overflow: hidden;
}

.pd-next-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  transition: transform 1.2s var(--ease), opacity 0.8s var(--ease);
}

.pd-next-link:hover .pd-next-img img {
  transform: scale(1.05);
  opacity: 0.6;
}

.pd-next-info {
  flex: 1;
  padding: 0 10%;
  color: #fff;
}

.pd-next-label {
  display: block;
  font-family: var(--fs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.5rem;
}

.pd-next-title {
  font-family: var(--fd);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .pd-next {
    height: 80vh;
  }

  .pd-next-link {
    flex-direction: column-reverse;
  }

  .pd-next-img {
    flex: 0 0 40%;
    width: 100%;
  }

  .pd-next-info {
    padding: 40px var(--gutter);
  }
}