/* ============================================================
   JORGE GIBBS — PORTFOLIO 2026
   Swiss-poster bold: periwinkle blue, acid yellow, Anton/Archivo
   ============================================================ */
:root {
  --blue: #5b7cfa;
  --blue-deep: #4a66e0;
  --yellow: #eff52b;
  --ink: #101014;
  --gray: #5c5c66;
  --paper: #ffffff;
  --panel-radius: 28px;
  --card-radius: 18px;
  --pad: clamp(20px, 4vw, 56px);
  --display: 'Anton', 'Arial Narrow', sans-serif;
  --body: 'Archivo', 'Helvetica Neue', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ---------- shared bits ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 14px; letter-spacing: .02em;
  text-transform: uppercase;
  background: var(--ink); color: #fff;
  padding: 14px 26px; border-radius: 999px;
  transition: transform .25s cubic-bezier(.2,.9,.3,1.4), box-shadow .25s;
}
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-sm { padding: 10px 20px; font-size: 12px; }
.btn:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 10px 24px rgba(16,16,20,.25); }
.arr { font-size: 1.1em; line-height: 1; }

.tag {
  font-size: 12px; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase;
}

.title {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 58px);
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 64px; height: 6px; background: var(--yellow);
}
.title.light { color: #fff; }

.section { padding: clamp(56px, 8vw, 110px) var(--pad); max-width: 1800px; margin: 0 auto; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; margin-bottom: clamp(32px, 5vw, 64px); flex-wrap: wrap;
}
.head-note { max-width: 300px; font-size: 13px; color: var(--gray); }
.head-side { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .12s; }
.d2 { transition-delay: .24s; }
.d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero-wrap { padding: 0; max-width: none; margin: 0; }
.hero {
  background: var(--blue);
  padding: clamp(18px, 3vw, 36px) clamp(18px, 3.5vw, 48px) 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* subtle texture: oversized ghost ring */
.hero::before {
  content: ""; position: absolute; right: -180px; top: -180px;
  width: 480px; height: 480px; border-radius: 50%;
  border: 60px solid rgba(255,255,255,.07); pointer-events: none;
}

/* ---------- floating icons ---------- */
.hero-float {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none; z-index: 1;
}
.hero-float .fi {
  position: absolute; top: 0; left: 0;
  color: #fff; opacity: .14; will-change: transform;
}
.hero-float .fi.dim { opacity: .09; }
.hero-float .fi.bright { opacity: .2; }
.hero-grid { position: relative; z-index: 2; }
@media (max-width: 640px) {
  .hero-float .fi:nth-child(n+5) { display: none; }
}

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; position: relative; z-index: 5;
  width: 100%; max-width: 1800px; margin: 0 auto;
}
.logo { font-family: var(--display); font-size: 24px; letter-spacing: .04em; color: #fff; }
.logo span { color: var(--yellow); }
.nav { display: flex; gap: clamp(14px, 2vw, 30px); }
.nav a {
  color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; padding: 6px 2px; position: relative; opacity: .85;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--yellow); transition: width .3s;
}
.nav a:hover, .nav a.active { opacity: 1; }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.burger { display: none; background: none; border: 0; cursor: pointer; z-index: 20; }
.burger span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .3s; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: end;
  gap: clamp(12px, 2vw, 32px);
  margin: clamp(28px, 4vw, 56px) auto 0;
  width: 100%; max-width: 1800px;
  flex: 1;
}
.display {
  font-family: var(--display);
  font-size: clamp(52px, 8.2vw, 60px);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.display.dark { color: var(--ink); }
.display.light { color: #fff; text-align: right; }

.hero-left {
  align-self: stretch;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: clamp(24px, 4vw, 72px);
  padding-bottom: clamp(28px, 4vw, 64px);
  padding-top: clamp(16px, 3vh, 48px);
}
.hero-intro { max-width: 330px; color: #fff; }
.hero-intro .tag { margin-bottom: 14px; color: var(--yellow); }
.hero-intro p:last-child {
  font-size: 12.5px; opacity: .95; text-transform: uppercase;
  letter-spacing: .07em; line-height: 1.9; font-weight: 500;
}

.hero-photo { align-self: end; }
.hero-photo img {
  width: 100%; height: clamp(520px, 76vh, 920px);
  object-fit: contain; object-position: bottom center;
}
.hero-photo.ph { min-height: 420px; background:
  radial-gradient(circle at 50% 30%, rgba(255,255,255,.35), transparent 55%), var(--blue-deep);
  border-radius: var(--card-radius) var(--card-radius) 0 0; }
.hero-photo.ph img { display: none; }

.hero-right {
  align-self: stretch;
  display: flex; flex-direction: column; align-items: flex-end;
  justify-content: space-between; padding-bottom: clamp(28px, 4vw, 64px);
  gap: clamp(24px, 4vw, 72px);
}
.follow { text-align: right; color: #fff; padding-top: clamp(16px, 3vh, 48px); }
.follow .tag { margin-bottom: 14px; }
.follow-note {
  margin-top: 16px; max-width: 280px; margin-left: auto;
  font-size: 12.5px; opacity: .95; text-transform: uppercase;
  letter-spacing: .07em; line-height: 1.9; font-weight: 500;
}
.socials { display: flex; gap: 10px; justify-content: flex-end; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6);
  display: grid; place-items: center; transition: .25s;
}
.socials svg { width: 16px; height: 16px; fill: #fff; transition: .25s; }
.socials a:hover { background: var(--yellow); border-color: var(--yellow); transform: translateY(-3px); }
.socials a:hover svg { fill: var(--ink); }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px); align-items: start;
}
.service { display: block; }
.service-media { position: relative; border-radius: var(--card-radius); overflow: hidden; margin-bottom: 20px; }
.service-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.service:hover .service-media img { transform: scale(1.05); }
.service-media.tint { background: var(--blue); }
.service-media.tint img { mix-blend-mode: multiply; opacity: .92; }
.float-btn { position: absolute; left: 16px; bottom: 16px; }
.service h3, .work figcaption {
  font-family: var(--display); font-size: 19px; text-transform: uppercase;
  letter-spacing: .03em; margin-bottom: 8px;
}
.service p { font-size: 13px; color: var(--gray); max-width: 300px; }

/* ============================================================
   SERVICE SUBPAGES
   ============================================================ */
.hero.subpage { padding-bottom: clamp(28px, 4vw, 64px); }
.subpage-body {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(28px, 4vw, 64px); align-items: center;
  flex: 1; width: 100%; max-width: 1400px;
  margin: clamp(28px, 4vw, 56px) auto 0;
  position: relative; z-index: 2; color: #fff;
}
.subpage-body .tag { color: var(--yellow); margin-bottom: 18px; }
.subpage-title {
  font-family: var(--display); font-size: clamp(38px, 6vw, 84px);
  text-transform: uppercase; line-height: .98; margin-bottom: 22px;
}
.subpage-lead { max-width: 480px; font-size: 15px; opacity: .95; margin-bottom: 26px; }
.subpage-soon {
  display: inline-block; font-size: 12px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--yellow);
  border: 1px solid rgba(255,255,255,.35); padding: 10px 18px; border-radius: 999px;
}
.subpage-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--card-radius);
}
@media (max-width: 900px) {
  .subpage-body { grid-template-columns: 1fr; align-content: start; }
}

/* ============================================================
   WORKS + EXPERIENCE (blue panel)
   ============================================================ */
.works-wrap { padding: clamp(12px, 2vw, 24px); max-width: 1800px; margin: 0 auto; }
.works {
  background: var(--blue);
  border-radius: var(--panel-radius);
  padding: clamp(40px, 6vw, 90px) var(--pad);
}
.works > .title { margin-bottom: clamp(32px, 5vw, 64px); }
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px) clamp(20px, 2.5vw, 40px);
  align-items: start;
}
.work { position: relative; }
.work-media { position: relative; }
.work-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--card-radius);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s;
}
.work:hover .work-media img { transform: translateY(-6px) rotate(-.5deg); box-shadow: 0 18px 40px rgba(16,16,20,.35); }
.work figcaption { color: #fff; margin-top: 16px; font-size: 16px; }
.work-sum { color: rgba(255,255,255,.75); font-size: 13px; margin-top: 6px; max-width: 340px; }
button.btn { border: 0; cursor: pointer; font-family: inherit; }

/* ---------- modale réalisation ---------- */
.work-dialog {
  border: 0; padding: 0; margin: auto;
  width: min(92vw, 640px);
  max-height: min(88vh, 900px);
  border-radius: var(--card-radius);
  background: var(--paper); color: var(--ink);
  overflow: auto;
}
.work-dialog::backdrop { background: rgba(16,16,20,.65); backdrop-filter: blur(3px); }
body:has(.work-dialog[open]) { overflow: hidden; }
.work-dialog[open] { animation: dlg-in .35s cubic-bezier(.2,.7,.2,1); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) { .work-dialog[open] { animation: none; } }
.work-dialog-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.work-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  font-size: 15px; font-weight: 800; cursor: pointer;
  display: grid; place-items: center;
  transition: transform .25s cubic-bezier(.2,.9,.3,1.4);
}
.work-close:hover { transform: rotate(90deg) scale(1.08); }
.work-dialog-body { padding: clamp(22px, 4vw, 32px) clamp(22px, 4vw, 38px) clamp(28px, 4vw, 40px); }
.work-dialog-title {
  font-family: var(--display); font-size: clamp(20px, 3vw, 26px);
  text-transform: uppercase; letter-spacing: .02em; line-height: 1.15;
  margin-bottom: 14px;
}
.work-dialog-content p { font-size: 14px; color: var(--gray); margin-bottom: 16px; }
.work-dialog-content ul { list-style: none; margin-bottom: 20px; }
.work-dialog-content li { font-size: 14px; position: relative; padding-left: 22px; margin-bottom: 8px; }
.work-dialog-content li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 10px; height: 10px; background: var(--yellow);
}
.work-dialog-content .work-tech { display: flex; flex-wrap: wrap; gap: 10px; }
.work-dialog-content .work-tech img { height: 30px; width: auto; border-radius: 6px; }

/* ---------- modale contact ---------- */
.contact-dialog { width: min(92vw, 520px); }
.ct-coords { margin-bottom: 22px; }
.ct-coords .tag { margin-bottom: 8px; }
.ct-coord {
  display: block; width: fit-content;
  font-weight: 800; font-size: 15px; line-height: 1.6;
  border-bottom: 2px solid var(--yellow);
  transition: color .2s;
}
.ct-coord:hover { color: var(--blue); }
.ct-form { display: grid; gap: 6px; }
.ct-label {
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gray);
  margin-top: 10px;
}
.ct-input {
  font: inherit; font-size: 14px; color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: 10px;
  padding: 10px 12px; width: 100%;
}
.ct-input:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
textarea.ct-input { resize: vertical; min-height: 90px; }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ct-form .cf-turnstile { margin-top: 12px; }
.ct-form .btn { justify-self: start; margin-top: 12px; border: 0; cursor: pointer; font-family: inherit; }
.ct-form .btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.ct-error { font-size: 13px; font-weight: 700; color: #c0392b; margin-top: 8px; }
.ct-success { font-size: 15px; font-weight: 700; margin-top: 6px; }

.exp-title { margin-top: clamp(56px, 8vw, 100px); }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-top: clamp(28px, 4vw, 48px);
}
.stat .num {
  font-family: var(--display); color: #fff;
  font-size: clamp(48px, 6vw, 88px); line-height: 1;
}
.stat .num span { color: var(--yellow); }
.stat .lbl {
  color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; opacity: .85; margin-top: 8px; max-width: 120px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.slider-nav { display: flex; gap: 10px; }
.slider-nav button {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--yellow);
  font-size: 18px; cursor: pointer; transition: .25s;
}
.slider-nav button:hover { background: var(--ink); color: var(--yellow); transform: translateY(-2px); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 36px); }
.quote {
  background: #f2f2f5; border-radius: var(--card-radius);
  padding: clamp(24px, 2.5vw, 36px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  transition: transform .3s, box-shadow .3s;
}
.quote:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(16,16,20,.12); }
.quote p { font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; line-height: 1.7; }
.quote footer { display: flex; align-items: center; gap: 14px; }
.quote footer img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote footer span { font-size: 12px; color: var(--gray); display: flex; flex-direction: column; }
.quote footer strong { color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }

/* ============================================================
   WORKSTATION (blue panel)
   ============================================================ */
.station-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2vw, 28px); align-items: start;
}
.spot img { border-radius: var(--card-radius); width: 100%; object-fit: cover; transition: transform .5s; }
.spot:hover img { transform: scale(1.03) rotate(.4deg); }
.spot figcaption { color: #fff; font-size: 12px; margin-top: 12px; max-width: 260px; opacity: .92; }
.spot figcaption strong {
  display: block; font-family: var(--display); font-size: 15px;
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px;
}
.s1 { grid-column: 1 / 5; }
.s2 { grid-column: 5 / 9; margin-top: 56px; }
.s3 { grid-column: 9 / 13; }
.s3 img { aspect-ratio: 3 / 4; }
.s4 { grid-column: 9 / 13; margin-top: 20px; }
.s1 img, .s2 img { aspect-ratio: 4 / 3; }
.s4 { grid-column: 5 / 9; }
.s3 { margin-top: -40px; }

/* ============================================================
   CTA
   ============================================================ */
.cta { padding-top: clamp(70px, 10vw, 140px); padding-bottom: clamp(70px, 10vw, 140px); }
.cta-line {
  font-family: var(--display);
  font-size: clamp(56px, 9vw, 100px);
  line-height: .95; text-transform: uppercase;
}
.cta-line.right { text-align: right; }
.cta-row { display: flex; align-items: center; gap: clamp(24px, 4vw, 64px); flex-wrap: wrap; margin-top: 8px; }
.cta-note { max-width: 260px; font-size: 13px; color: var(--gray); }
.hire-circle {
  flex: none;
  width: clamp(110px, 12vw, 150px); height: clamp(110px, 12vw, 150px);
  border-radius: 50%; background: var(--yellow); color: var(--ink);
  display: grid; place-items: center; text-align: center;
  font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .06em;
  line-height: 1.3;
  border: 3px solid var(--ink);
  transition: transform .35s cubic-bezier(.2,.9,.3,1.5), background .3s;
  animation: floaty 4s ease-in-out infinite;
}
.hire-circle:hover { transform: scale(1.08) rotate(-6deg); background: var(--blue); color: #fff; }
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #fff; padding: clamp(48px, 6vw, 80px) var(--pad) 0; }
.footer-grid {
  max-width: 1800px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.f-mail .tag { color: var(--yellow); margin-bottom: 14px; }
.f-big {
  font-family: var(--display); font-size: clamp(22px, 2.6vw, 36px);
  text-transform: uppercase; letter-spacing: .02em;
  border-bottom: 3px solid var(--yellow); padding-bottom: 6px;
  transition: color .3s;
}
.f-big:hover { color: var(--yellow); }
.f-tel {
  display: inline-block; margin-top: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .05em;
  opacity: .85; transition: color .3s;
}
.f-tel:hover { color: var(--yellow); }
.f-head { font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .14em; margin-bottom: 16px; color: var(--yellow); }
.f-col a { display: block; font-size: 13px; opacity: .75; margin-bottom: 10px; transition: .25s; }
.f-col a:hover { opacity: 1; padding-left: 6px; color: var(--yellow); }
.f-text { font-size: 13px; opacity: .75; }
.copy {
  max-width: 1800px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 20px 0; font-size: 12px; opacity: .6; text-align: center;
}

/* ============================================================
   MON HISTOIRE
   ============================================================ */
.histoire-intro {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 72px);
  display: grid; gap: 16px;
}
.histoire-intro p { font-size: 15px; line-height: 1.75; color: var(--gray); }
.histoire-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 5vw, 96px); align-items: start;
}
.histoire-sub { display: block; margin-bottom: 28px; color: var(--ink); }
.histoire-sub::after { content: ""; display: block; width: 40px; height: 4px; background: var(--blue); margin-top: 8px; }

.tl-list { list-style: none; position: relative; padding-left: 28px; }
.tl-list::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 2px; background: var(--blue); opacity: .35;
}
.tl-item { position: relative; padding-bottom: clamp(28px, 3vw, 44px); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -28px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--yellow); border: 3px solid var(--ink);
}
.tl-years {
  font-family: var(--display); font-size: 14px; letter-spacing: .08em;
  color: var(--blue); text-transform: uppercase; margin-bottom: 6px;
}
.tl-item h3 {
  font-family: var(--display); font-size: 19px; text-transform: uppercase;
  letter-spacing: .03em; margin-bottom: 2px;
}
.tl-org { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.tl-desc { font-size: 13px; color: var(--gray); max-width: 460px; }

.tl-toggle {
  margin-top: 8px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--yellow);
  color: var(--ink); font-size: 17px; font-weight: 800; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.9,.3,1.4), box-shadow .25s;
}
.tl-toggle:hover { box-shadow: 0 6px 16px rgba(16,16,20,.25); }
.tl-item.open .tl-toggle { transform: rotate(45deg); }

.tl-more {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.2,.7,.2,1);
}
.tl-item.open .tl-more { grid-template-rows: 1fr; }
.tl-more-inner { overflow: hidden; }
.tl-more ul { list-style: none; margin-top: 14px; max-width: 460px; }
.tl-more li {
  position: relative; padding-left: 18px;
  font-size: 13px; color: var(--gray); margin-bottom: 8px;
}
.tl-more li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--blue);
}
.tl-tech {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px; max-width: 460px;
}
.tl-tech img {
  height: 44px; width: auto;
  background: #fff; border: 1px solid #ececf1; border-radius: 8px;
}
/* auto-scrolling marquee (activated by script.js) */
.tl-tech.marquee { display: block; overflow: hidden; position: relative; }
.tl-tech.marquee::before,
.tl-tech.marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 32px;
  z-index: 1; pointer-events: none;
}
.tl-tech.marquee::before { left: 0; background: linear-gradient(to right, #fff, rgba(255,255,255,0)); }
.tl-tech.marquee::after { right: 0; background: linear-gradient(to left, #fff, rgba(255,255,255,0)); }
.tl-tech-track {
  display: flex; width: max-content;
  animation: tl-tech-scroll var(--dur, 30s) linear infinite;
}
.tl-tech-track img { margin-right: 8px; }
.tl-tech.marquee:hover .tl-tech-track { animation-play-state: paused; }
@keyframes tl-tech-scroll { to { transform: translateX(-50%); } }
.course { cursor: pointer; flex-wrap: wrap; transition: background .25s; }
.course:hover { background: #e9e9f0; }
.course-more {
  width: 100%; display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.2,.7,.2,1);
}
.course.open .course-more { grid-template-rows: 1fr; }
.course-more-inner { overflow: hidden; }
.course-more ul { list-style: none; margin-top: 4px; }
.course-more li {
  position: relative; padding-left: 18px;
  font-size: 13px; color: var(--gray); margin-bottom: 8px;
}
.course-more li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--blue);
}
.course-more li:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .tl-more, .tl-toggle, .course-more { transition: none; }
}

.course-list { list-style: none; }
.course {
  display: flex; gap: 18px; align-items: flex-start;
  background: #f2f2f5; border-radius: var(--card-radius);
  padding: 18px 22px; margin-bottom: 14px;
  transition: transform .3s, box-shadow .3s;
}
.course:hover { transform: translateX(6px); box-shadow: 0 10px 26px rgba(16,16,20,.10); }
.course-year {
  flex: none; font-family: var(--display); font-size: 18px;
  color: var(--ink); background: var(--yellow);
  padding: 4px 10px; border-radius: 8px;
}
.course span:last-child { font-size: 13px; color: var(--gray); }
.course strong {
  display: block; color: var(--ink); font-size: 14px;
  text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px;
}

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

/* ============================================================
   FIXED HEADER (desktop / full size)
   ============================================================ */
@media (min-width: 761px) {
  .site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    max-width: none;
    background: var(--blue);
    padding: 14px max(clamp(18px, 3.5vw, 48px), (100% - 1800px) / 2);
    box-shadow: 0 4px 24px rgba(16, 16, 20, .10);
  }
  .hero { padding-top: calc(clamp(18px, 3vw, 36px) + 78px); }
  section[id] { scroll-margin-top: 96px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 32px; }
  .hero-left { align-self: auto; justify-content: flex-start; gap: 24px; padding-bottom: 0; }
  .hero-photo { order: 2; width: min(74vw, 440px); margin: 0 auto; align-self: center; }
  .hero-photo img { height: clamp(320px, 46vh, 560px); }
  .hero-right { order: 3; align-self: auto; align-items: flex-start; gap: 32px; padding-bottom: 48px; }
  .display.light { text-align: left; }
  .follow { text-align: left; order: 2; padding-top: 0; }
  .follow-note { margin-left: 0; }
  .socials { justify-content: flex-start; }
  .services-grid, .quotes { grid-template-columns: 1fr 1fr; }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 0; background: var(--ink);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 28px; font-size: 18px; z-index: 15;
    transform: translateX(100%); transition: transform .35s;
  }
  .nav.open { transform: none; }
  .nav a { font-size: 17px; }
  .burger { display: block; }
  .site-header .btn { display: none; }
  .works-grid { display: flex; flex-direction: column; gap: 32px; }
  .work-media img { height: auto; aspect-ratio: 4 / 3; }
  .display { font-size: clamp(38px, 11vw, 60px); overflow-wrap: break-word; }
  .hero-intro p:last-child {
    text-transform: none; letter-spacing: .01em; line-height: 1.7;
    font-size: 14px; font-weight: 400;
  }
  .follow-note { display: none; }
  .hero-photo { width: min(86vw, 440px); }
  .hero-photo img { height: clamp(300px, 42vh, 480px); }
  .services-grid, .quotes { grid-template-columns: 1fr; }
  .station-grid { display: flex; flex-direction: column; gap: 28px; }
  .s2, .s3, .s4 { margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-line.right { text-align: left; }
}
