/* =========================================================
   LEDCLES Studio — single-file design system
   Palette derived from the hero image (night blue + amber)
   ========================================================= */

:root {
  --night-deep: #060c1c;
  --night: #0a1428;
  --night-2: #0e1a35;
  --night-3: #142348;
  --amber: #e8a468;
  --amber-warm: #d97844;
  --amber-glow: #f4c97a;
  --cream: #f4ede0;
  --cream-2: #ede3d0;
  --star: #e8eaf2;
  --star-dim: #9aa3b8;
  --line: rgba(244, 237, 224, 0.12);
  --line-strong: rgba(244, 237, 224, 0.25);

  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Geist", "Manrope", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  --max: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--night); color: var(--star); }
html { scroll-behavior: auto; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
  overflow-x: hidden;
}

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

::selection { background: var(--amber-warm); color: var(--night); }

/* Custom cursor dot */
.cursor {
  position: fixed; top: 0; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber-glow); pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  transition: width 0.25s ease, height 0.25s ease, opacity 0.3s ease;
}
.cursor.is-hover { width: 36px; height: 36px; opacity: 0.6; }
@media (hover: none), (pointer: coarse) { .cursor { display: none !important; } }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; letter-spacing: 0.02em;
  transition: backdrop-filter 0.4s ease, background 0.4s ease, padding 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(6, 12, 28, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  padding: 14px var(--gutter);
}
.nav__logo {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.01em;
  font-style: italic;
  color: var(--cream);
}
.nav__logo sup {
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  opacity: 0.6;
  margin-left: 2px;
  vertical-align: super;
  letter-spacing: 0.1em;
}
.nav__links { display: flex; gap: 36px; }
.nav__links a {
  position: relative;
  color: var(--star);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.nav__links a:hover { opacity: 1; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--amber-glow);
  transition: width 0.35s cubic-bezier(.2,.7,.2,1);
}
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  border: 1px solid var(--line-strong);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.nav__cta:hover { background: var(--cream); color: var(--night); border-color: var(--cream); }

@media (max-width: 820px) {
  .nav__links { display: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: url("assets/hero-night.png");
  background-size: cover;
  background-position: center 70%;
  z-index: 0;
  will-change: transform;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(6,12,28,0.35) 0%, transparent 55%),
    linear-gradient(180deg, rgba(6,12,28,0.15) 0%, rgba(6,12,28,0) 35%, rgba(6,12,28,0.5) 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 var(--gutter);
  max-width: 1100px;
  margin-top: -8vh;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
  margin-bottom: 28px;
}
.hero__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber-glow);
  box-shadow: 0 0 12px var(--amber-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7.5vw, 116px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--cream);
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  color: var(--amber-glow);
  font-weight: 400;
}
.hero__title .word { display: inline-block; overflow: hidden; vertical-align: top; }
.hero__title .word > span:not(.hand-note) {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero__title .word:nth-child(1) span { animation-delay: 0.05s; }
.hero__title .word:nth-child(2) span { animation-delay: 0.12s; }
.hero__title .word:nth-child(3) span { animation-delay: 0.19s; }
.hero__title .word:nth-child(4) span { animation-delay: 0.26s; }
.hero__title .word:nth-child(5) span { animation-delay: 0.33s; }
.hero__title .word:nth-child(6) span { animation-delay: 0.40s; }
.hero__title .word:nth-child(7) span { animation-delay: 0.47s; }
@keyframes rise {
  to { transform: translateY(0); }
}

/* Handwritten note below the title — single, stable placement, arrow points up to LEDCLES */
.hero__note {
  margin: clamp(28px, 4vh, 48px) auto 0;
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  color: var(--amber-glow);
  opacity: 0;
  transform: rotate(-3deg);
  transform-origin: center top;
  animation: handNoteIn 1s cubic-bezier(.2,.7,.2,1) 1.2s forwards;
  pointer-events: none;
  position: relative;
  /* nudge slightly to the right of center so arrow tip lands near LEDCLES */
  left: clamp(-20px, 2vw, 30px);
}
.hero__note__text {
  font-family: "Caveat", "Comic Sans MS", cursive;
  font-weight: 600;
  font-size: clamp(18px, 1.8vw, 26px);
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-shadow: 0 0 24px rgba(244, 201, 122, 0.4);
  margin-top: 18px;
}
.hero__note__arrow {
  width: clamp(38px, 3.6vw, 52px);
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(244, 201, 122, 0.35));
}
@keyframes handNoteIn {
  from { opacity: 0; transform: rotate(-3deg) translateY(8px); }
  to   { opacity: 0.95; transform: rotate(-3deg) translateY(0); }
}
@media (max-width: 540px) {
  .hero__note {
    margin-top: 22px;
    gap: 2px;
    left: 18px;
  }
  .hero__note__text { font-size: 16px; margin-top: 14px; }
  .hero__note__arrow { width: 32px; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 0.85; transform: translateY(0); }
}
.hero__cta-row {
  margin-top: 36px;
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s ease 0.85s forwards;
}
.btn-primary {
  background: var(--cream);
  color: var(--night);
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.02em;
  font-weight: 500;
  transition: transform 0.3s ease, background 0.3s ease;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary:hover { background: var(--amber-glow); transform: translateY(-2px); }
.btn-primary svg { width: 14px; height: 14px; }
.btn-ghost {
  border: 1px solid var(--line-strong);
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--cream);
  transition: background 0.3s ease, border-color 0.3s ease;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: var(--cream); }

/* Scroll indicator */
.hero__scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream); opacity: 0.5;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  z-index: 2;
}
.hero__scroll .line {
  width: 1px; height: 40px; background: var(--cream);
  position: relative; overflow: hidden;
}
.hero__scroll .line::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 60%;
  background: var(--amber-glow);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -50%; bottom: 100%; }
  60%, 100% { top: 100%; bottom: -50%; }
}

/* Subtle hero star drift */
.hero__stars {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.hero__stars span {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: var(--cream); opacity: 0;
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* =========================================================
   GENERIC SECTION
   ========================================================= */
section { position: relative; }
.section {
  padding: clamp(80px, 14vh, 180px) var(--gutter);
}
.container { max-width: var(--max); margin: 0 auto; width: 100%; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--amber);
}

.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-wrap: balance;
}
.h-display em { font-style: italic; color: var(--amber-glow); }

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto {
  position: relative;
  background: var(--night);
  padding: clamp(120px, 18vh, 220px) var(--gutter);
}
.manifesto__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
}
.manifesto__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--star-dim);
  position: sticky; top: 120px;
}
.manifesto__text {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--cream);
}
.manifesto__text em { font-style: italic; color: var(--amber-glow); }
.manifesto__text .reveal-word {
  display: inline-block;
  opacity: 0.18;
  transition: opacity 0.6s ease;
}
.manifesto__text .reveal-word.is-on { opacity: 1; }

@media (max-width: 820px) {
  .manifesto__grid { grid-template-columns: 1fr; gap: 30px; }
  .manifesto__label { position: static; }
}

/* =========================================================
   STUDIO / THE THREE CRAFTS
   ========================================================= */
.studio { background: var(--night); padding-top: 0; }
.studio__head {
  max-width: var(--max);
  margin: 0 auto clamp(60px, 8vh, 100px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}
.studio__head p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--star);
  opacity: 0.78;
  max-width: 460px;
  margin-top: 24px;
}
.studio__head .eyebrow { margin-bottom: 24px; }

.crafts {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.craft {
  background: var(--night);
  padding: 48px 36px 56px;
  display: flex; flex-direction: column;
  position: relative;
  transition: background 0.4s ease;
}
.craft:hover { background: var(--night-2); }
.craft__no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--star-dim);
  margin-bottom: 60px;
}
.craft__role {
  font-family: var(--serif);
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}
.craft__role em { font-style: italic; color: var(--amber); }
.craft__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--star);
  opacity: 0.7;
  margin-bottom: 36px;
}
.craft__list {
  list-style: none;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.craft__list li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--star-dim);
  text-transform: uppercase;
  padding: 8px 0;
  display: flex; justify-content: space-between;
}
.craft__list li span:last-child { color: var(--cream); opacity: 0.8; }

@media (max-width: 820px) {
  .studio__head { grid-template-columns: 1fr; gap: 0; }
  .crafts { grid-template-columns: 1fr; }
}

/* =========================================================
   ANECDOTE — the cat name reveal
   ========================================================= */
.anecdote {
  position: relative;
  padding: clamp(120px, 18vh, 200px) var(--gutter);
  background: var(--night);
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.anecdote::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(232, 164, 104, 0.10) 0%, transparent 60%);
  pointer-events: none;
}

/* Fireflies floating in the anecdote background */
.fireflies {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.firefly {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber-glow);
  opacity: 0;
  box-shadow:
    0 0 6px rgba(244, 201, 122, 0.9),
    0 0 14px rgba(244, 201, 122, 0.55),
    0 0 24px rgba(232, 164, 104, 0.35);
  animation:
    fireflyDrift var(--drift-dur, 14s) ease-in-out var(--drift-delay, 0s) infinite alternate,
    fireflyGlow  var(--glow-dur, 3.2s) ease-in-out var(--glow-delay, 0s) infinite;
  will-change: transform, opacity;
}
.firefly--sm { width: 3px; height: 3px; }
.firefly--lg {
  width: 5px; height: 5px;
  box-shadow:
    0 0 8px rgba(244, 201, 122, 1),
    0 0 18px rgba(244, 201, 122, 0.6),
    0 0 30px rgba(232, 164, 104, 0.4);
}
@keyframes fireflyDrift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(var(--dx1, 20px), var(--dy1, -16px)); }
  50%  { transform: translate(var(--dx2, -12px), var(--dy2, -28px)); }
  75%  { transform: translate(var(--dx3, 28px), var(--dy3, -8px)); }
  100% { transform: translate(var(--dx4, -8px), var(--dy4, -20px)); }
}
@keyframes fireflyGlow {
  0%, 100% { opacity: 0; }
  20%      { opacity: 0.4; }
  50%      { opacity: 1; }
  80%      { opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) {
  .firefly { animation: fireflyGlow 4s ease-in-out infinite; }
}
.anecdote__inner {
  position: relative; z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}
.anecdote__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--star-dim);
  margin-bottom: 64px;
}

/* The big LEDCLES wordmark */
.anecdote__name {
  font-family: var(--serif);
  font-size: clamp(64px, 13vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--cream);
  display: flex;
  justify-content: center;
  gap: clamp(2px, 0.6vw, 12px);
  margin-bottom: 48px;
}
.anecdote__name .ltr {
  display: inline-block;
  transition: color 0.4s ease, transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.anecdote__name .ltr--accent {
  color: var(--amber-glow);
  font-style: italic;
  position: relative;
}
.anecdote__name .ltr--accent::after {
  content: "";
  position: absolute;
  bottom: 0.1em;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: var(--amber-glow);
  opacity: 0.5;
}

/* The decoded line */
.anecdote__decoded {
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 36px);
  line-height: 1.2;
  color: var(--star);
  margin-bottom: 60px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 16px 18px;
  opacity: 0.9;
}
.anecdote__token {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  position: relative;
  padding: 0 6px;
}
.anecdote__token em {
  font-style: italic;
  color: var(--amber-glow);
  font-size: 1.15em;
}
.anecdote__token small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(232, 164, 104, 0.10);
  border: 1px solid rgba(232, 164, 104, 0.25);
  padding: 6px 10px;
  border-radius: 999px;
  position: relative;
  top: -0.15em;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.anecdote__token:hover small {
  background: rgba(232, 164, 104, 0.18);
  border-color: rgba(232, 164, 104, 0.45);
  transform: translateY(-2px);
}

.anecdote__copy {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.45;
  color: var(--cream);
  max-width: 720px;
  margin: 0 auto 28px;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.anecdote__footnote {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--star-dim);
  text-transform: uppercase;
}
.anecdote__paw {
  display: inline-block;
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  margin-left: 6px;
  animation: pawWobble 3.6s ease-in-out infinite;
}
@keyframes pawWobble {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}

@media (max-width: 540px) {
  .anecdote__decoded { font-size: 18px; gap: 12px; }
  .anecdote__token small { font-size: 10px; padding: 4px 8px; }
  .anecdote__copy { font-size: 18px; }
}

/* =========================================================
   APPS SHOWCASE
   ========================================================= */
.apps-intro {
  background: var(--night);
  padding: clamp(120px, 16vh, 200px) var(--gutter) 60px;
  position: relative;
}
.apps-intro__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end; gap: 60px;
}
.apps-intro p {
  font-size: 17px; line-height: 1.6;
  color: var(--star); opacity: 0.78;
  max-width: 460px;
}
.apps-intro .eyebrow { margin-bottom: 24px; }

/* App rows */
.apps { background: var(--night); padding-bottom: clamp(60px, 8vh, 120px); }
.app {
  padding: clamp(60px, 10vh, 120px) var(--gutter);
  position: relative;
  border-top: 1px solid var(--line);
}
.app:last-of-type { border-bottom: 1px solid var(--line); }
.app__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
}
.app:nth-child(even) .app__inner { direction: rtl; }
.app:nth-child(even) .app__inner > * { direction: ltr; }

.app__meta { padding: 20px 0; }
.app__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--star-dim);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
.app__num::after {
  content: ""; flex: 1; height: 1px;
  background: var(--line); max-width: 60px;
}
.app__name {
  font-family: var(--serif);
  font-size: clamp(54px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin-bottom: 12px;
}
.app__name em { font-style: italic; color: var(--amber-glow); }
.app__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--amber);
  margin-bottom: 28px;
}
.app__desc {
  font-size: 16px; line-height: 1.6;
  color: var(--star); opacity: 0.78;
  max-width: 480px;
  margin-bottom: 36px;
}
.app__tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 36px;
}
.app__tags span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--star);
  border: 1px solid var(--line-strong);
  padding: 6px 12px;
  border-radius: 999px;
  opacity: 0.7;
}
.app__link {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 6px;
  transition: color 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
}
.app__link:hover { color: var(--amber-glow); border-color: var(--amber-glow); gap: 18px; }
.app__link svg { width: 14px; height: 14px; }

/* Phone mockup */
.phone-stage {
  position: relative;
  height: clamp(480px, 70vh, 720px);
  display: flex; align-items: center; justify-content: center;
  perspective: 1200px;
}
.phone-stage__glow {
  position: absolute; inset: 10% 5%;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  z-index: 0;
}
.phone {
  position: relative; z-index: 1;
  width: clamp(260px, 28vw, 340px);
  aspect-ratio: 9 / 19;
  background: #0a0a0a;
  border-radius: 44px;
  padding: 10px;
  box-shadow:
    0 50px 100px -20px rgba(0,0,0,0.6),
    0 30px 60px -30px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.06) inset;
  transform: rotate(-4deg);
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.phone:hover { transform: rotate(0deg) translateY(-8px); }
.phone__notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 28px;
  background: #000; border-radius: 999px;
  z-index: 3;
}
.phone__screen {
  width: 100%; height: 100%;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
  background: #0a0a0a;
}
.phone-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.app:nth-child(even) .phone { transform: rotate(4deg); }
.app:nth-child(even) .phone:hover { transform: rotate(0deg) translateY(-8px); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-on { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

@media (max-width: 820px) {
  .app__inner { grid-template-columns: 1fr; gap: 40px; }
  .app:nth-child(even) .app__inner { direction: ltr; }
  .phone-stage { height: 540px; }
  .apps-intro__inner { grid-template-columns: 1fr; }
}

/* =========================================================
   VALUES (numeric grid)
   ========================================================= */
.values {
  background: var(--night);
  padding: clamp(100px, 14vh, 180px) var(--gutter);
  border-top: 1px solid var(--line);
}
.values__head {
  max-width: var(--max);
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.values__head p {
  font-size: 17px; line-height: 1.6;
  color: var(--star); opacity: 0.78;
  max-width: 460px;
  margin-top: 8px;
}
.values__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.value {
  background: var(--night);
  padding: 36px 28px 40px;
  min-height: 220px;
  display: flex; flex-direction: column;
}
.value__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 40px;
  color: var(--amber);
  margin-bottom: 24px;
  line-height: 1;
}
.value__title {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== French flag — animated, hand-crafted ===== */
.flag-fr {
  display: inline-flex;
  width: 28px;
  height: 20px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  vertical-align: -3px;
  transform-origin: left center;
  animation: flagSway 3.2s ease-in-out infinite;
  position: relative;
}
.flag-fr > span {
  display: block;
  flex: 1;
  position: relative;
  overflow: hidden;
}
.flag-fr__blue { background: #002395; }
.flag-fr__white { background: #f4f4f6; }
.flag-fr__red { background: #ED2939; }
/* Subtle wind shimmer overlay */
.flag-fr::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 70%
  );
  background-size: 220% 100%;
  animation: flagShine 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes flagSway {
  0%, 100% { transform: skewY(0deg) scaleY(1); }
  25%      { transform: skewY(-3deg) scaleY(0.97); }
  50%      { transform: skewY(0deg) scaleY(1); }
  75%      { transform: skewY(3deg) scaleY(0.97); }
}
@keyframes flagShine {
  0%   { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .flag-fr, .flag-fr::after { animation: none; }
}
.value__desc {
  font-size: 13px; line-height: 1.55;
  color: var(--star); opacity: 0.7;
  margin-top: auto;
}

@media (max-width: 1024px) {
  .values__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .values__head { grid-template-columns: 1fr; }
  .values__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  position: relative;
  padding: clamp(140px, 22vh, 240px) var(--gutter) 100px;
  text-align: center;
  background: var(--night);
  overflow: hidden;
}
.contact__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(232, 164, 104, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 80%, rgba(244, 201, 122, 0.10) 0%, transparent 60%);
  z-index: 0;
}
.contact__inner { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; }
.contact__title {
  font-family: var(--serif);
  font-size: clamp(54px, 9vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin-bottom: 40px;
}
.contact__title em { font-style: italic; color: var(--amber-glow); }
.contact__sub {
  font-size: 18px; line-height: 1.55;
  color: var(--star); opacity: 0.8;
  max-width: 540px;
  margin: 0 auto 56px;
}
.contact__cta {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-style: italic;
  color: var(--cream);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 8px;
  transition: color 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
}
.contact__cta:hover { color: var(--amber-glow); border-color: var(--amber-glow); gap: 26px; }
.contact__cta svg { width: 28px; height: 28px; }
.contact__meta {
  margin-top: 80px;
  display: flex; justify-content: center; gap: 50px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--star-dim);
  flex-wrap: wrap;
}
.contact__meta span strong { color: var(--cream); font-weight: 400; letter-spacing: 0.05em; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--star-dim);
  background: var(--night);
}
.footer__logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--cream);
  letter-spacing: -0.01em;
  text-transform: none;
}
.footer__legal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer__legal a {
  color: var(--star-dim);
  position: relative;
  transition: color 0.3s ease;
}
.footer__legal a:hover { color: var(--amber-glow); }
.footer__legal a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--amber-glow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
}
.footer__legal a:hover::after { transform: scaleX(1); }
.footer__legal span { opacity: 0.5; }

@media (max-width: 820px) {
  .footer {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }
  .footer__legal { justify-content: center; }
}

/* =========================================================
   LEGAL PAGES (mentions légales, confidentialité, CGU)
   ========================================================= */
.legal-body {
  background: var(--night);
  color: var(--star);
}
.legal-body .nav--legal {
  background: rgba(6, 12, 28, 0.7);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.legal {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(120px, 18vh, 180px) var(--gutter) clamp(80px, 12vh, 140px);
  position: relative;
}

.legal__header {
  margin-bottom: clamp(56px, 8vh, 88px);
  padding-bottom: clamp(36px, 5vh, 56px);
  border-bottom: 1px solid var(--line);
}
.legal__header .eyebrow { margin-bottom: 24px; }
.legal__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6.5vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin-bottom: 28px;
  text-wrap: balance;
}
.legal__title em { font-style: italic; color: var(--amber-glow); }
.legal__lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  color: var(--cream);
  opacity: 0.85;
  margin-bottom: 20px;
  text-wrap: pretty;
}
.legal__updated {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--star-dim);
}

.legal__body section {
  margin-bottom: clamp(40px, 5vh, 56px);
}
.legal__body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin-bottom: 18px;
  position: relative;
  padding-left: 16px;
}
.legal__body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  bottom: 0.35em;
  width: 2px;
  background: var(--amber);
  border-radius: 2px;
}
.legal__body p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--star);
  opacity: 0.85;
  margin-bottom: 14px;
  text-wrap: pretty;
}
.legal__body p strong,
.legal__body li strong {
  color: var(--cream);
  font-weight: 500;
}
.legal__body a {
  color: var(--amber-glow);
  border-bottom: 1px solid rgba(244, 201, 122, 0.35);
  padding-bottom: 1px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.legal__body a:hover {
  color: var(--cream);
  border-color: var(--cream);
}

.legal__list {
  list-style: none;
  padding: 0;
  margin: 14px 0 8px;
}
.legal__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--star);
  opacity: 0.85;
}
.legal__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.7em;
  width: 6px;
  height: 1px;
  background: var(--amber);
}

.legal__dl {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2fr;
  gap: 10px 28px;
  margin: 16px 0 8px;
  padding: 20px 24px;
  background: rgba(232, 164, 104, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.legal__dl dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--star-dim);
  align-self: center;
}
.legal__dl dd {
  font-size: 15px;
  line-height: 1.55;
  color: var(--cream);
  margin: 0;
}

.legal__table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 8px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.legal__table thead {
  background: rgba(232, 164, 104, 0.08);
}
.legal__table th {
  text-align: left;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.legal__table td {
  padding: 14px 16px;
  vertical-align: top;
  color: var(--star);
  opacity: 0.9;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
.legal__table tr:last-child td { border-bottom: none; }

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(48px, 6vh, 72px);
  padding: 12px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, gap 0.3s ease;
}
.legal__back:hover {
  background: var(--cream);
  color: var(--night);
  border-color: var(--cream);
  gap: 16px;
}

@media (max-width: 820px) {
  .legal {
    padding-top: clamp(96px, 14vh, 140px);
  }
  .legal__header { margin-bottom: 44px; padding-bottom: 28px; }
  .legal__title { font-size: clamp(36px, 9vw, 56px); margin-bottom: 22px; }
  .legal__lede { font-size: 17px; }
  .legal__body h2 { font-size: 20px; padding-left: 14px; }
  .legal__body p, .legal__list li { font-size: 15px; }
  .legal__dl {
    grid-template-columns: 1fr;
    gap: 4px 0;
    padding: 18px 18px;
  }
  .legal__dl dt { font-size: 10px; margin-top: 10px; }
  .legal__dl dt:first-of-type { margin-top: 0; }
  .legal__table { font-size: 12.5px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .legal__table th, .legal__table td { padding: 11px 12px; }
}

@media (max-width: 480px) {
  .legal__title { font-size: clamp(32px, 10vw, 46px); }
  .legal__lede { font-size: 16px; line-height: 1.55; }
  .legal__body h2 { font-size: 19px; }
  .legal__back { padding: 11px 18px; font-size: 11px; }
}

/* =========================================================
   SCROLL CHOREOGRAPHY — progress bar, section rail, chapter marker
   ========================================================= */

/* Top hairline progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  z-index: 200;
  pointer-events: none;
  background: transparent;
}
.scroll-progress::before {
  content: "";
  display: block;
  height: 100%;
  width: var(--p, 0%);
  background: linear-gradient(90deg, transparent 0%, var(--amber) 30%, var(--amber-glow) 100%);
  box-shadow: 0 0 12px rgba(244, 201, 122, 0.6);
  transition: width 0.08s linear;
}

/* Right-side section rail (vertical timeline) */
.section-rail {
  position: fixed;
  top: 50%;
  right: clamp(18px, 2.5vw, 32px);
  transform: translateY(-50%);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.5s ease 0.4s;
}
.section-rail.is-visible { opacity: 1; }
.section-rail__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  padding-right: 4px;
}
/* Faint background track behind all dots */
.section-rail__list::before {
  content: "";
  position: absolute;
  top: 4px; bottom: 4px;
  right: 7px;
  width: 1px;
  background: var(--line-strong);
}
.section-rail li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--star-dim);
  transition: color 0.4s ease;
  pointer-events: auto;
}
.section-rail li .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--night);
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.5s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s ease;
}
.section-rail li .label {
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  white-space: nowrap;
}
/* Active state */
.section-rail li.is-active { color: var(--cream); }
.section-rail li.is-active .dot {
  background: var(--amber-glow);
  border-color: var(--amber-glow);
  box-shadow: 0 0 14px rgba(244, 201, 122, 0.7);
  transform: scale(1.15);
}
.section-rail li.is-active .label,
.section-rail:hover li .label,
.section-rail li:hover .label {
  opacity: 1;
  transform: translateX(0);
}
.section-rail li:hover { color: var(--cream); }
.section-rail li:hover .dot { border-color: var(--amber); }

/* Connecting line that grows with progress */
.section-rail__list::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 7px;
  width: 1px;
  height: var(--progress, 0%);
  background: linear-gradient(180deg, var(--amber) 0%, var(--amber-glow) 100%);
  box-shadow: 0 0 8px rgba(244, 201, 122, 0.5);
  transition: height 0.2s linear;
  pointer-events: none;
}

@media (max-width: 1080px) {
  .section-rail { display: none; }
}

/* Floating chapter marker — fades in briefly when section changes */
.chapter-marker {
  position: fixed;
  top: 84px;
  left: var(--gutter);
  z-index: 80;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--star);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  mix-blend-mode: screen;
}
.chapter-marker.is-visible {
  opacity: 0.85;
  transform: translateX(0);
}
.chapter-marker__num { color: var(--amber-glow); font-weight: 500; }
.chapter-marker__sep { width: 22px; height: 1px; background: var(--line-strong); }
.chapter-marker__name { color: var(--cream); }
@media (max-width: 820px) {
  .chapter-marker { display: none; }
}

/* Section reveal — staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.reveal-stagger.is-on > *:nth-child(1) { transition-delay: 0.00s; opacity: 1; transform: none; }
.reveal-stagger.is-on > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: none; }
.reveal-stagger.is-on > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: none; }
.reveal-stagger.is-on > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: none; }
.reveal-stagger.is-on > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: none; }

/* =========================================================
   ATMOSPHERIC ELEMENTS
   ========================================================= */
.starfield {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.4), transparent),
    radial-gradient(2px 2px at 80% 20%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 90% 50%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 10% 60%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 75% 90%, rgba(255,255,255,0.3), transparent);
  background-size: 800px 800px;
  opacity: 0.5;
  animation: starDrift 80s linear infinite;
}
@keyframes starDrift {
  to { background-position: 800px 800px; }
}

/* =========================================================
   MOBILE OPTIMIZATION (focused polish)
   ========================================================= */

/* Tablet & below */
@media (max-width: 1024px) {
  .manifesto__grid { gap: 50px; }
  .studio__head, .apps-intro__inner, .values__head {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }
  .studio__head p, .apps-intro p, .values__head p { max-width: 640px; margin-top: 12px; }
}

/* Mobile (phones in portrait) */
@media (max-width: 820px) {
  :root { --gutter: 20px; }

  /* Nav: keep CTA compact */
  .nav { padding: 14px var(--gutter); }
  .nav__logo { font-size: 20px; }
  .nav__cta { padding: 8px 14px; font-size: 11.5px; letter-spacing: 0.02em; }

  /* Section rail / chapter marker — hidden on mobile already */

  /* Hero: tighter spacing, safer scale floor */
  .hero { min-height: 100svh; }
  .hero__inner { margin-top: 0; padding: 0 var(--gutter); }
  .hero__eyebrow { font-size: 10px; margin-bottom: 18px; letter-spacing: 0.16em; }
  .hero__title { font-size: clamp(40px, 11.5vw, 64px); line-height: 1; }
  .hero__note { margin-top: 22px; left: 12px; gap: 2px; }
  .hero__note__text { font-size: 17px; margin-top: 12px; }
  .hero__note__arrow { width: 34px; }
  .hero__cta-row { gap: 10px; margin-top: 26px; }
  .btn-primary, .btn-ghost { padding: 13px 20px; font-size: 12.5px; }
  .hero__scroll { bottom: 22px; font-size: 9px; }
  .hero__scroll .line { height: 28px; }

  /* Manifesto */
  .manifesto { padding: clamp(70px, 12vh, 120px) var(--gutter); }
  .manifesto__grid { grid-template-columns: 1fr; gap: 24px; }
  .manifesto__text { font-size: clamp(22px, 6vw, 32px); line-height: 1.2; }

  /* Studio */
  .studio__head { margin-bottom: clamp(36px, 6vh, 60px); }
  .studio__head p { font-size: 15px; margin-top: 16px; }
  .craft { padding: 28px 22px 32px; }
  .craft__no { margin-bottom: 28px; font-size: 10.5px; }
  .craft__role { font-size: 26px; }

  /* Anecdote */
  .anecdote { padding: clamp(70px, 12vh, 130px) var(--gutter); }
  .anecdote__label { margin-bottom: 30px; font-size: 10px; }
  .anecdote__name {
    font-size: clamp(58px, 16vw, 110px);
    gap: 2px;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
  }
  .anecdote__decoded {
    font-size: clamp(15px, 4.2vw, 22px);
    margin-bottom: 28px;
    gap: 8px 10px;
    line-height: 1.3;
  }
  .anecdote__token { padding: 0 2px; gap: 6px; }
  .anecdote__token small { font-size: 9.5px; padding: 4px 8px; letter-spacing: 0.12em; }
  .anecdote__copy { font-size: 17px; line-height: 1.4; padding: 0 4px; }
  .anecdote__footnote {
    font-size: 11px;
    letter-spacing: 0.08em;
    line-height: 1.5;
    padding: 0 8px;
  }

  /* Apps */
  .apps-intro { padding: clamp(60px, 10vh, 100px) var(--gutter) 40px; }
  .apps-intro p { font-size: 15px; margin-top: 16px; }
  .app { padding: 50px var(--gutter); }
  .app:nth-child(even) .app__inner { direction: ltr; }
  .app__inner { gap: 28px; grid-template-columns: 1fr; }
  .app__num { margin-bottom: 20px; font-size: 10.5px; }
  .app__name { font-size: clamp(42px, 12vw, 64px); margin-bottom: 8px; }
  .app__tagline { font-size: 17px; margin-bottom: 18px; line-height: 1.3; }
  .app__desc { font-size: 15px; margin-bottom: 22px; line-height: 1.55; }
  .app__tags { gap: 6px; margin-bottom: 26px; }
  .app__tags span { font-size: 9.5px; padding: 5px 10px; letter-spacing: 0.12em; }
  .app__link { font-size: 11px; letter-spacing: 0.12em; }
  .phone-stage { height: clamp(440px, 62vh, 540px); }
  .phone {
    width: clamp(230px, 62vw, 290px);
    border-radius: 40px;
    padding: 8px;
    transform: rotate(-2deg);
  }
  .phone__notch { width: 86px; height: 24px; top: 12px; }
  .phone__screen { border-radius: 32px; }
  .app:nth-child(even) .phone { transform: rotate(2deg); }

  /* Values */
  .values { padding: clamp(60px, 11vh, 110px) var(--gutter); }
  .values__head {
    grid-template-columns: 1fr;
    margin-bottom: 36px;
    gap: 20px;
    align-items: start;
  }
  .values__head p { font-size: 15px; margin-top: 14px; }
  .values__grid {
    grid-template-columns: 1fr;
    border: 1px solid var(--line);
  }
  .value { padding: 28px 22px 30px; min-height: 0; }
  .value__num { font-size: 30px; margin-bottom: 14px; }
  .value__title { font-size: 21px; }
  .value__desc { font-size: 13.5px; }
  .flag-fr { width: 24px; height: 17px; }

  /* Contact */
  .contact { padding: clamp(90px, 16vh, 150px) var(--gutter) 70px; }
  .contact__title { font-size: clamp(44px, 13vw, 72px); margin-bottom: 26px; }
  .contact__sub { font-size: 15.5px; margin-bottom: 32px; line-height: 1.5; }
  .contact__cta {
    font-size: clamp(20px, 5.6vw, 30px);
    flex-wrap: wrap;
    justify-content: center;
    word-break: break-word;
    text-align: center;
    gap: 10px;
  }
  .contact__cta svg { width: 22px; height: 22px; }
  .contact__meta {
    gap: 18px 26px;
    margin-top: 48px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  /* Footer */
  .footer {
    padding: 26px var(--gutter);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-align: center;
    line-height: 1.5;
  }
  .footer__logo { font-size: 15px; }
  .footer__legal { gap: 8px 12px; font-size: 10px; }
}

/* Small phones */
@media (max-width: 480px) {
  :root { --gutter: 18px; }

  .nav { padding: 12px var(--gutter); }
  .nav__logo { font-size: 19px; }
  .nav__cta { padding: 7px 12px; font-size: 11px; }

  .hero__title { font-size: clamp(36px, 12.5vw, 52px); letter-spacing: -0.02em; }
  .hero__note { left: 6px; }
  .hero__note__text { font-size: 15px; }
  .hero__note__arrow { width: 30px; }
  .btn-primary, .btn-ghost { padding: 12px 18px; font-size: 12px; }
  .hero__cta-row { flex-direction: column; align-items: stretch; }
  .hero__cta-row .btn-primary,
  .hero__cta-row .btn-ghost { justify-content: center; width: 100%; }

  .h-display { font-size: clamp(32px, 9vw, 52px); }

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

  .craft__role { font-size: 24px; }

  .app__name { font-size: clamp(38px, 12.5vw, 56px); }
  .app__tagline { font-size: 16px; }
  .app__desc { font-size: 14.5px; }
  .phone-stage { height: clamp(400px, 58vh, 480px); }
  .phone { width: clamp(220px, 66vw, 270px); }

  .anecdote__name { font-size: clamp(50px, 17vw, 90px); letter-spacing: -0.025em; }
  .anecdote__decoded {
    font-size: 14px;
    gap: 6px 8px;
    flex-wrap: wrap;
  }
  .anecdote__token { padding: 0; }
  .anecdote__token em { font-size: 1.1em; }
  .anecdote__token small { font-size: 9px; padding: 3px 6px; }
  .anecdote__copy { font-size: 16px; }
  .anecdote__footnote { font-size: 10.5px; letter-spacing: 0.06em; }

  .value__title { font-size: 20px; }
  .value__desc { font-size: 13px; }

  .contact__title { font-size: clamp(38px, 13vw, 60px); margin-bottom: 22px; }
  .contact__sub { font-size: 14.5px; margin-bottom: 28px; }
  .contact__cta { font-size: clamp(18px, 5.8vw, 26px); }
  .contact__meta { gap: 14px 22px; font-size: 9.5px; margin-top: 40px; }

  .footer { padding: 22px var(--gutter); }
}

/* Tiny phones */
@media (max-width: 360px) {
  .hero__title { font-size: 34px; }
  .anecdote__name { font-size: 46px; }
  .contact__title { font-size: 38px; }
  .phone { width: clamp(200px, 70vw, 240px); }
  .phone-stage { height: 380px; }
}

/* Landscape phone — keep hero usable */
@media (max-width: 820px) and (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: 100svh; }
  .hero__inner { margin-top: 8vh; }
  .hero__title { font-size: clamp(32px, 6vw, 48px); }
  .hero__note { margin-top: 14px; }
  .hero__cta-row { margin-top: 18px; }
  .hero__scroll { display: none; }
}

/* Touch devices: kill any hover transforms on phones so they sit stable */
@media (hover: none) {
  .phone, .app:nth-child(even) .phone { transform: none !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .starfield, .hero__stars { animation: none; }
}
