/* ============================================================
   UNITED THREE LAB — « Glacier Noir »
   Nuit profonde · aurores cyan/violet · verre givré · chrome glacé
   ============================================================ */

/* ===== FONTS (self-hosted, latin + latin-ext) ===== */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===== TOKENS ===== */
:root {
  --void: #05080f;              /* nuit profonde */
  --deep: #0a1220;              /* panneaux sombres */
  --ice: #bfe3ff;               /* glace claire */
  --ice-mid: #8fd0ff;           /* cyan glacé */
  --ice-deep: #6ea8dd;          /* bleu glacier */
  --violet: #c9b8ff;            /* aurore violette */
  --txt: #e8f1fa;
  --txt-soft: #9db2c7;
  --line: rgba(191, 227, 255, 0.14);
  --glass: rgba(143, 208, 255, 0.05);
  --glass-edge: rgba(191, 227, 255, 0.18);
  --radius: 18px;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--sans);
  color: var(--txt);
  background: var(--void);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1180px, 92%); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--ice-mid); outline-offset: 3px; border-radius: 3px; }
::selection { background: rgba(143, 208, 255, 0.3); }

/* ===== EFFET CHROME GLACÉ (titres) ===== */
.chrome, .chrome-s {
  position: relative;
  display: inline-block;
  background: linear-gradient(168deg,
    #f2faff 4%, #bfe3ff 22%, #6ea8dd 42%, #eaf6ff 50%,
    #8fd0ff 58%, #4d7fb0 78%, #d7ecff 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* balayage lumineux : clone du texte, masque dégradé, translation pure.
   Le « / '' » rend le clone muet pour les lecteurs d'écran. */
.chrome::after, .chrome-s::after {
  content: attr(data-text);
  content: attr(data-text) / '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg,
    transparent 42%, rgba(255, 255, 255, 0.95) 50%, transparent 58%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 280% 100%;
  background-position: 120% 0;
  animation: sheen 9s var(--ease) infinite;
  pointer-events: none;
}
@keyframes sheen {
  0%, 55% { background-position: 120% 0; }
  90%, 100% { background-position: -60% 0; }
}

/* ===== PROGRESS BAR ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 1001;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--ice-mid), var(--violet));
  transform: scaleX(0); transform-origin: 0 50%;
  pointer-events: none;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.navbar.scrolled {
  padding: 10px 0;
  background: rgba(5, 8, 15, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
/* le triangle tourne en continu, partout */
@keyframes mono-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.logo .monogram { animation: mono-spin 36s linear infinite; }
.hero-kicker svg { animation: mono-spin 9s linear infinite; }
.tri-visual svg { animation: mono-spin 48s linear infinite; filter: drop-shadow(0 0 18px rgba(143, 208, 255, 0.25)); }
.footer-brand svg { animation: mono-spin 60s linear infinite; }
.logo-text {
  font-family: var(--display);
  font-size: 19px; font-weight: 400; letter-spacing: 0.4px;
  color: var(--txt);
}
.logo-text b { font-weight: 700; color: var(--ice-mid); }
.logo-text i { font-style: normal; color: var(--violet); font-weight: 300; margin-left: 2px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  position: relative;
  text-decoration: none; color: var(--txt-soft);
  font-size: 14.5px; font-weight: 500; letter-spacing: 0.3px;
  transition: color 0.25s ease;
}
.nav-links a:not(.btn-nav)::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1.5px;
  background: linear-gradient(90deg, var(--ice-mid), var(--violet));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--txt); }
.nav-links a:not(.btn-nav):hover::after,
.nav-links a:not(.btn-nav).active::after { transform: scaleX(1); }
.btn-nav {
  padding: 10px 22px; border-radius: 999px;
  background: linear-gradient(120deg, var(--ice-mid), var(--ice-deep));
  color: var(--void) !important;
  font-weight: 700;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(143, 208, 255, 0.35); }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px; z-index: 1002;
}
.menu-toggle span {
  width: 26px; height: 2px; background: var(--ice); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== HERO ===== */
/* fond translucide : le prisme (canvas fixe derrière) est visible dès l'arrivée */
.hero {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1100px 700px at 75% 0%, rgba(110, 168, 221, 0.12), transparent 60%),
    radial-gradient(900px 600px at 10% 100%, rgba(201, 184, 255, 0.08), transparent 55%);
}
/* ----- Scène du prisme (keynote pilotée au scroll) ----- */
.hero-stage {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  width: 100%;
}
.bg-3d {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}


.hero-content { position: relative; z-index: 3; padding: 150px 0 120px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: 12.5px; font-weight: 500; letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--ice-mid);
  padding: 9px 18px;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  margin-bottom: 34px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 7.6vw, 6rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -2px;
  max-width: 16ch;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > .li { display: inline-block; will-change: transform; }
.hero-sub {
  margin-top: 30px;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--txt-soft);
  max-width: 56ch;
  font-weight: 300;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 42px; }

.btn-primary, .btn-outline {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 999px;
  font-weight: 700; font-size: 15px;
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
  border: 0;
  font-family: var(--sans);
}
.btn-primary {
  background: linear-gradient(120deg, var(--ice), var(--ice-deep));
  color: var(--void);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(143, 208, 255, 0.35); }
.btn-outline {
  border: 1.5px solid rgba(191, 227, 255, 0.35);
  color: var(--txt);
  background: transparent;
}
.btn-outline:hover { transform: translateY(-3px); border-color: var(--ice-mid); background: var(--glass); }
.btn-primary.full { width: 100%; text-align: center; }


.hero-scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  width: 26px; height: 42px;
  border: 1.5px solid rgba(191, 227, 255, 0.3);
  border-radius: 999px;
}
.hero-scroll-cue span {
  position: absolute; top: 8px; left: 50%;
  width: 4px; height: 8px; margin-left: -2px;
  background: var(--ice-mid); border-radius: 2px;
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(14px); opacity: 0; }
  56% { transform: translateY(0); opacity: 0; }
}

/* ===== CHAPTERS ===== */
.chapter { position: relative; z-index: 2; padding: 130px 0; overflow: hidden; }
.chapter-deep {
  background:
    radial-gradient(1000px 600px at 85% 8%, rgba(110, 168, 221, 0.09), transparent 55%),
    var(--deep);
  border-block: 1px solid var(--line);
}
.section-header { position: relative; z-index: 1; max-width: 720px; margin-bottom: 64px; }
.section-tag {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-size: 12.5px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase;
  color: var(--ice-mid); margin-bottom: 16px;
}
.tag-line { display: inline-block; width: 40px; height: 1.5px; background: linear-gradient(90deg, var(--ice-mid), var(--violet)); transform-origin: 0 50%; }
.section-header h2, .section-sub { margin-top: 16px; color: var(--txt-soft); font-size: 1.04rem; font-weight: 300; }

/* ===== GLASS CARDS ===== */
.glass-card {
  position: relative;
  background: linear-gradient(155deg, rgba(191, 227, 255, 0.055), rgba(201, 184, 255, 0.03));
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s ease;
}
.glass-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(191, 227, 255, 0.07) 50%, transparent 70%);
  opacity: 0; transition: opacity 0.5s ease;
}
.glass-card:hover { transform: translateY(-7px); border-color: rgba(143, 208, 255, 0.45); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(143, 208, 255, 0.07); }
.glass-card:hover::before { opacity: 1; }

/* ===== 01 CAPABILITIES ===== */
.cap-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px;
}
.cap-grid .glass-card { padding: 36px 32px; overflow: hidden; }
.cap-media {
  margin: -36px -32px 24px;
  height: 190px; overflow: hidden;
}
.cap-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
  display: block;
}
.glass-card:hover .cap-media img { transform: scale(1.06); }
.cap-grid h3 {
  font-family: var(--display);
  font-size: 1.35rem; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.3px;
}
.cap-grid p { font-size: 14.8px; color: var(--txt-soft); }
.cap-grid ul { margin-top: 16px; list-style: none; }
.cap-grid li {
  position: relative; padding-left: 20px;
  font-size: 13.8px; color: var(--txt); margin-top: 7px;
}
.cap-grid li::before {
  content: '◆'; position: absolute; left: 0; top: 0;
  color: var(--ice-deep); font-size: 8px; line-height: 2.6;
}

/* ===== 02 WORK ===== */
.work-list { position: relative; z-index: 1; display: grid; gap: 30px; }
.work-card {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: 40px; align-items: center;
  padding: 44px 42px;
}
.work-card:nth-child(2) { grid-template-columns: 1.1fr 0.9fr; }
.work-card:nth-child(2) .work-visual { order: 2; }
.work-index {
  font-family: var(--display);
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--violet); margin-bottom: 12px;
}
.work-info h3 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.work-info > p { font-size: 14.8px; color: var(--txt-soft); }
.work-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 18px; }
.work-tags li {
  font-family: var(--display);
  font-size: 12px; letter-spacing: 1px;
  color: var(--ice);
  padding: 5px 13px;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: var(--glass);
}
.work-status { margin-top: 18px; font-size: 13.5px; color: var(--ice-mid); font-weight: 600; }
.work-status a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(143, 208, 255, 0.4); }
.work-status a:hover { border-color: var(--ice-mid); }
.work-cta .btn-primary { margin-top: 22px; }

/* mockups : vrais écrans dans cadres dessinés en CSS */
.work-visual { display: grid; place-items: center; }
.duo-phones { position: relative; height: 560px; width: 100%; }
.phone-frame {
  position: absolute;
  width: min(216px, 42%);
  padding: 10px;
  border: 1.5px solid var(--glass-edge);
  border-radius: 32px;
  background: linear-gradient(170deg, #0c1626, #05080f);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), inset 0 0 26px rgba(143, 208, 255, 0.05);
}
.phone-frame img { width: 100%; height: auto; border-radius: 22px; display: block; }
.pf-back { left: 6%; top: 10px; transform: rotate(-7deg); opacity: 0.9; }
.pf-front { right: 8%; top: 70px; transform: rotate(4deg); z-index: 2; }
.browser-shot img { display: block; width: 100%; height: auto; }
.browser-mock {
  width: min(400px, 92%);
  border: 1.5px solid var(--glass-edge);
  border-radius: 14px;
  background: linear-gradient(170deg, #0c1626, #05080f);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  transform: rotate(1.5deg);
  overflow: hidden;
}
.browser-top {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.browser-top i { width: 9px; height: 9px; border-radius: 50%; background: rgba(191, 227, 255, 0.22); }
.browser-top em {
  font-style: normal; font-size: 11px; letter-spacing: 1px;
  color: var(--txt-soft); margin-left: 10px;
  font-family: var(--display);
}
.tri-visual svg { width: min(210px, 60%); }

/* ===== BANDES PHOTO PLEINE LARGEUR ===== */
.photo-band {
  position: relative; z-index: 2;
  height: 72vh; min-height: 420px;
  overflow: hidden;
  display: flex; align-items: flex-end;
  border-block: 1px solid var(--line);
}
.photo-band.band-short { height: 52vh; min-height: 340px; }
.band-short .band-img { top: 0; height: 100%; object-fit: contain; }
.band-short::after {
  background: linear-gradient(180deg, transparent 55%, rgba(5, 8, 15, 0.82) 100%);
}
.band-img {
  position: absolute; left: 0; top: -8%; z-index: 0;
  width: 100%; height: 116%;
  object-fit: cover;
  will-change: transform;
}
.photo-band::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(5, 8, 15, 0.85) 0%, rgba(5, 8, 15, 0.15) 45%, rgba(5, 8, 15, 0.88) 100%);
}
.band-copy { position: relative; z-index: 2; padding-bottom: 64px; }
.band-line {
  font-family: var(--display);
  font-size: 12.5px; letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--ice-mid); margin-bottom: 10px;
}
.band-big {
  font-family: var(--display);
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  font-weight: 600; line-height: 1.02; letter-spacing: -1.5px;
  color: var(--txt);
}
.band-big em { font-style: normal; color: var(--ice-mid); }

/* ===== 03 STACK ===== */
.stack-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.stack-col { padding: 30px 26px; }
.stack-col h3 {
  font-family: var(--display);
  font-size: 1.05rem; font-weight: 600; letter-spacing: 0.5px;
  color: var(--ice-mid);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.stack-col ul { list-style: none; }
.stack-col li { font-size: 13.8px; color: var(--txt-soft); margin-top: 8px; }
.method {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 30px;
  margin-top: 70px; flex-wrap: wrap;
}
.method-step { display: flex; align-items: center; gap: 16px; }
.method-step b {
  font-family: var(--display);
  font-size: 2.6rem; font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px var(--ice-deep);
}
.method-step span { font-size: 14px; color: var(--txt); line-height: 1.45; }
.method-arrow { color: var(--ice-deep); font-size: 1.4rem; }

/* ===== 04 ABOUT ===== */


#contact { position: relative; }
#contact::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: url('../images/07-frosted-glass.webp') center / cover no-repeat;
  opacity: 0.1;
}
#contact .container { position: relative; z-index: 1; }

/* ===== 05 CONTACT ===== */
.contact-form { padding: 40px 36px; max-width: 760px; position: relative; z-index: 1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: var(--display);
  font-size: 12.5px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--txt-soft); margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(5, 8, 15, 0.55);
  border: 1.5px solid rgba(191, 227, 255, 0.16);
  border-radius: 11px;
  color: var(--txt); font-family: var(--sans); font-size: 14.5px;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.form-group select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, rgba(191,227,255,0.6) 50%), linear-gradient(135deg, rgba(191,227,255,0.6) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-group select option { color: #0a1220; background: #e8f1fa; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(157, 178, 199, 0.45); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--ice-mid);
  background: rgba(5, 8, 15, 0.75);
  box-shadow: 0 0 0 3px rgba(143, 208, 255, 0.18);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-feedback { margin-top: 12px; text-align: center; font-size: 14.5px; }
.form-feedback.success { color: #6ee7a8; }
.form-feedback.error { color: #f87171; }
button.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--line); padding: 40px 0; background: rgba(10, 18, 32, 0.5); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 16px; }
.footer-brand b { color: var(--ice-mid); }
.footer-brand i { font-style: normal; color: var(--violet); font-weight: 300; }
.footer-legal { max-width: 640px; }
.footer-legal p { font-size: 12.5px; color: var(--txt-soft); line-height: 1.7; }
.footer-legal strong { color: var(--txt); font-weight: 600; }
.footer-copy { margin-top: 8px; }
.form-privacy {
  margin-top: 14px; text-align: center;
  font-size: 12px; color: var(--txt-soft); opacity: 0.85;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .cap-grid, .stack-grid { grid-template-columns: 1fr 1fr; }
  .work-card, .work-card:nth-child(2) { grid-template-columns: 1fr; gap: 30px; padding: 34px 28px; }
  .work-card:nth-child(2) .work-visual { order: 0; }
  }
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0 0 auto 0;
    flex-direction: column; gap: 8px;
    padding: 92px 6% 30px;
    background: rgba(5, 8, 15, 0.97);
    backdrop-filter: blur(18px);
    transform: translateY(-110%);
    transition: transform 0.45s var(--ease);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 4px; font-size: 17px; }
  .nav-links a:not(.btn-nav)::after { display: none; }
  .btn-nav { text-align: center; margin-top: 6px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .chapter { padding: 92px 0; }
  .hero-content { padding: 130px 0 100px; }
  .photo-band { height: 46vh; min-height: 300px; }
  .cap-media { height: 150px; }
  .duo-phones { height: auto; position: static; display: flex; gap: 14px; justify-content: center; padding: 10px 0; }
  .phone-frame { position: static; width: 44%; }
  .pf-back, .pf-front { transform: none; }
  .cap-grid, .stack-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-scroll-cue { display: none; }
  .method { flex-direction: column; align-items: flex-start; gap: 18px; }
  .method-arrow { display: none; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .chrome::after, .chrome-s::after { animation: none; content: none; }
  .hero-scroll-cue span { animation: none; }
}
