/* Carousel / Carrousel — landing page
   Candle-lit dark: charcoal stone washed with warm grey, one amber accent.
   Type: New York (serif, display) + SF (sans, body) — the app's own faces. */

:root {
  --bg:      #131418;
  --bg-2:    #1A1B20;
  --surface: #202127;
  --line:    #35363f;
  --ink:     #F0EADF;  /* brightest — display */
  --text:    #DAD4C9;  /* body */
  --muted:   #ABA59A;  /* secondary */
  --faint:   #8B857A;  /* labels */
  --amber:   #D3A567;
  --amber-2: #E6C9A0;
  --slate:   #7C8C99;

  --serif: ui-serif, "New York", "Iowan Old Style", Palatino, Georgia, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;

  --measure: 64ch;
  --pad: clamp(1.4rem, 5vw, 6rem);
  --z-nav: 100;

  --ease: cubic-bezier(0.22, 1, 0.36, 1); /* ease-out-quint-ish */
  --dwell: 5200ms;   /* pebble dwell before it dissolves */
  --fade: 1500ms;    /* cross-fade duration */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1.02rem, 0.9rem + 0.5vw, 1.18rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* one warm hearth glow under the whole page */
body::before {
  content: "";
  position: fixed; inset: 0;
  background: radial-gradient(120% 80% at 50% -10%, rgba(120, 92, 56, 0.16), transparent 60%);
  pointer-events: none; z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── i18n: two spans, CSS-toggled (works with no JS) ──────────────────────── */
.en, .fr { }
body.lang-fr .en { display: none; }
body.lang-en .fr { display: none; }
/* App Store badge: localized artwork, toggled with the page language */
body.lang-fr .badge-en { display: none; }
body.lang-en .badge-fr { display: none; }

/* ── type ─────────────────────────────────────────────────────────────────── */
.serif { font-family: var(--serif); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink);
  letter-spacing: -0.02em; text-wrap: balance; line-height: 1.08; }
p { text-wrap: pretty; max-width: var(--measure); }

.eyebrow { font-family: var(--sans); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }

/* ── shell ────────────────────────────────────────────────────────────────── */
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--pad); position: relative; z-index: 1; }

/* nav */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1.2rem, 2.5vw, 2rem) var(--pad); }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--serif);
  font-size: 1.5rem; color: var(--ink); letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.langtoggle { display: inline-flex; align-items: center; gap: 2px; font-family: var(--sans);
  font-size: 0.82rem; border: 1px solid var(--line); border-radius: 999px; padding: 3px;
  background: rgba(20,21,25,0.5); backdrop-filter: blur(8px); }
.langtoggle button { font: inherit; color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: 5px 13px; border-radius: 999px; letter-spacing: 0.04em; transition: color .3s, background .3s; }
.langtoggle button[aria-pressed="true"] { color: var(--bg); background: var(--amber); }
.langtoggle button:hover { color: var(--ink); }
.langtoggle button[aria-pressed="true"]:hover { color: var(--bg); }

/* ── hero ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: clamp(1.4rem, 3.5vh, 2.6rem);
  padding-block: clamp(3.5rem, 8vh, 6rem) clamp(2.2rem, 5vh, 4rem);
  overflow: hidden; isolation: isolate; }
.hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 62% at 50% 4%, rgba(160,120,70,0.17), transparent 52%),
    radial-gradient(90% 60% at 50% 116%, rgba(70,84,96,0.10), transparent 60%); }
.hero__inner { text-align: center; }
.hero h1 { font-size: clamp(3rem, 2rem + 6vw, 5.4rem); line-height: 0.98; }

/* the app itself, drifting through its pebbles inside a landscape iPad Pro (M4) */
.hero__device { position: relative; width: 100%; display: flex; justify-content: center; }
.galet-stage { position: relative; width: min(84vw, 680px, 50vh);
  animation: galet-float 12s ease-in-out infinite; }
@keyframes galet-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.ipad { position: relative; aspect-ratio: 4 / 3; padding: 2.15%;   /* % padding → uniform bezel */
  border-radius: clamp(20px, 3.4vw, 40px);
  background: linear-gradient(145deg, #43454c 0%, #24262c 38%, #1b1d22 62%, #35373e 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10), inset 0 0 0 3px rgba(0,0,0,0.55),
    0 2px 3px rgba(0,0,0,0.6), 0 36px 74px -22px rgba(0,0,0,0.78), 0 12px 26px -14px rgba(0,0,0,0.6); }
.ipad::after { content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.14); pointer-events: none; }         /* titanium hairline */
.ipad__cam { position: absolute; top: 1.02%; left: 50%; transform: translateX(-50%);   /* landscape front camera */
  width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3a4652 0%, #10151b 60%, #05070a 100%);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), inset 0 0 2px rgba(120,150,180,0.5); z-index: 4; }
.ipad__screen { position: relative; width: 100%; height: 100%;
  border-radius: clamp(9px, 1.7vw, 20px); overflow: hidden; background: #16171c;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.9); }
.pebble { position: absolute; inset: 0; opacity: 0; transition: opacity var(--fade) ease; will-change: opacity; }
.pebble.is-on { opacity: 1; }
.pebble img { width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.035); transition: transform calc(var(--dwell) + var(--fade)) linear; }
.pebble.is-on img { transform: scale(1.075); }                          /* slow Ken-Burns drift */
.ipad__glass { position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.015) 18%, transparent 40%); }
.galet-dots { display: flex; justify-content: center; align-items: center; gap: 0.6rem;
  margin-top: clamp(1.2rem, 3vh, 2rem); }                               /* the app's own pagination dots */
.galet-dots b { width: 7px; height: 7px; border-radius: 999px; display: block;
  background: var(--faint); opacity: 0.5;
  transition: width var(--fade) var(--ease), opacity var(--fade) var(--ease), background var(--fade) var(--ease); }
.galet-dots b.is-on { width: 20px; opacity: 1; background: var(--amber); }
.hero .kicker { display: block; font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.5rem);
  color: var(--amber-2); font-family: var(--serif); font-style: italic; margin-bottom: 1.1rem;
  letter-spacing: 0; }
.hero .lede { margin-top: 1.6rem; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  color: var(--text); max-width: 34ch; line-height: 1.5; margin-inline: auto; }
.hero__cta { margin-top: 2.4rem; display: flex; align-items: center; justify-content: center; gap: 1.4rem; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--sans);
  font-weight: 500; font-size: 1rem; padding: 0.85rem 1.6rem; border-radius: 999px;
  background: var(--amber); color: #17130c; border: 1px solid transparent;
  transition: transform .4s var(--ease), background .3s, box-shadow .4s var(--ease);
  box-shadow: 0 10px 30px -12px rgba(211,165,103,0.5); }
.btn:hover { background: var(--amber-2); transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(211,165,103,0.6); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { background: rgba(255,255,255,0.04); color: var(--ink); border-color: var(--muted); }

.note { font-size: 0.9rem; color: var(--muted); display: inline-flex; align-items: center; gap: 0.5rem; }
.hero .note { color: var(--text); }

/* Download-on-the-App-Store badge */
.appstore { display:inline-flex; align-items:center; border-radius:9px;
  transition: transform .35s var(--ease), filter .35s var(--ease);
  outline-offset:4px; }
.appstore:hover { transform: translateY(-2px); filter: brightness(1.08); }
.appstore:focus-visible { outline:2px solid var(--amber-2); }
.appstore-badge { height:46px; width:auto; display:block; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 0 rgba(211,165,103,0.6); animation: pulse 3.2s var(--ease) infinite; }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(211,165,103,0.5);} 50%{ box-shadow: 0 0 0 6px rgba(211,165,103,0);} }

/* ── manifesto ────────────────────────────────────────────────────────────── */
.manifesto { padding-block: clamp(6rem, 14vh, 12rem); }
.manifesto p { font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 2.2vw, 2.6rem);
  line-height: 1.32; color: var(--ink); max-width: 20ch; letter-spacing: -0.015em; }
.manifesto p .soft { color: var(--faint); }
.manifesto .sub { font-family: var(--sans); font-size: 1.1rem; color: var(--muted);
  margin-top: 2rem; max-width: 52ch; }

/* ── lifestyle band — the app at home, morning & evening ──────────────────── */
.lifestyle { margin-top: clamp(-6rem, -9vh, -3rem); padding-bottom: clamp(2.5rem, 7vh, 5rem); }
.lifestyle__grid { max-width: 1320px; margin-inline: auto; padding-inline: var(--pad);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.7rem, 1.6vw, 1.2rem); }
.lifestyle .life { position: relative; margin: 0; border-radius: 16px; overflow: hidden;
  box-shadow: 0 34px 80px -34px rgba(0,0,0,.75), inset 0 0 0 1px rgba(255,255,255,.045); }
.lifestyle .life img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16 / 9; }
.lifestyle figcaption { position: absolute; inset: auto 0 0 0; padding: 2rem 1.4rem 1.1rem;
  font-family: var(--serif); font-style: italic; color: var(--ink); letter-spacing: .01em;
  font-size: clamp(1rem, .9rem + .4vw, 1.28rem);
  background: linear-gradient(transparent, rgba(11,12,15,.74)); }
@media (max-width: 700px) { .lifestyle__grid { grid-template-columns: 1fr; }
  .lifestyle { margin-top: clamp(-3rem, -5vh, -1rem); } }

/* ── showcase rows ────────────────────────────────────────────────────────── */
.rows { display: flex; flex-direction: column; gap: clamp(5rem, 12vh, 10rem); padding-bottom: clamp(5rem,12vh,10rem); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.row--flip .row__media { order: 2; }
.row__media { position: relative; }
.shot { border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.02) inset;
  background: var(--bg-2); aspect-ratio: 4 / 3; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.row__body { max-width: 42ch; }
.row__body h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); margin-bottom: 1rem; }
.row__body p { color: var(--text); }
.row__body p + p { margin-top: 1rem; color: var(--muted); }

/* ── quiet band (privacy) ─────────────────────────────────────────────────── */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding-block: clamp(5rem, 12vh, 9rem); background:
   radial-gradient(80% 120% at 50% 50%, rgba(28,29,35,0.6), transparent 70%); }
.band .wrap { display: grid; gap: 1.4rem; text-align: center; justify-items: center; }
.band h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem); max-width: 18ch; }
.band p { color: var(--muted); max-width: 52ch; margin-inline: auto; }
.band a.link { color: var(--amber-2); border-bottom: 1px solid rgba(211,165,103,0.4);
  padding-bottom: 1px; transition: border-color .3s, color .3s; }
.band a.link:hover { color: var(--ink); border-color: var(--amber-2); }

/* ── facts ────────────────────────────────────────────────────────────────── */
.facts { padding-block: clamp(4rem, 10vh, 7rem); display: flex; flex-wrap: wrap;
  gap: 1rem 2.5rem; justify-content: center; text-align: center; }
.fact { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--muted); font-size: 0.98rem; }
.fact svg { width: 18px; height: 18px; stroke: var(--amber); fill: none; }

/* ── footer ───────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 7vh, 5rem); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; justify-content: space-between; }
footer .brand { font-size: 1.25rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.6rem; font-size: 0.95rem; color: var(--muted); }
footer nav a { transition: color .3s; }
footer nav a:hover { color: var(--ink); }
footer .fineprint { width: 100%; color: var(--faint); font-size: 0.85rem; margin-top: 0.5rem; }

/* ── privacy page ─────────────────────────────────────────────────────────── */
.doc { padding-block: clamp(7rem, 16vh, 11rem) clamp(4rem, 10vh, 7rem); }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(2.4rem, 1.8rem + 3vw, 3.4rem); margin-bottom: 0.6rem; }
.doc .updated { color: var(--faint); font-size: 0.9rem; margin-bottom: 2.6rem; }
.doc h2 { font-size: 1.5rem; margin-top: 2.6rem; margin-bottom: 0.8rem; color: var(--ink); }
.doc p, .doc li { color: var(--text); }
.doc p { margin-bottom: 1rem; }
.doc ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.doc li { margin-bottom: 0.5rem; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .back { display: inline-block; margin-bottom: 2.5rem; color: var(--amber-2); font-size: 0.95rem; }
.doc .back:hover { color: var(--ink); }
.doc a.inline { color: var(--amber-2); border-bottom: 1px solid rgba(211,165,103,0.4); }

/* ── motion ───────────────────────────────────────────────────────────────── */
/* Deliberately quiet: no scroll-triggered fade-ins (this is an app about
   stillness). The one ambient motion is the hero's slow drift; everything else
   is hover/focus. Content is always present — nothing is gated on a transition. */
@media (prefers-reduced-motion: reduce) {
  .galet-stage { animation: none; }
  .pebble { transition: none; }
  .pebble img { transition: none; transform: none; }
  .dot { animation: none; }
  .btn { transition: none; }
}

/* ── responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .row { grid-template-columns: 1fr; gap: 1.8rem; }
  .row--flip .row__media { order: 0; }
  .row__body { max-width: 52ch; }
  .hero .lede { max-width: 40ch; }
}
@media (max-width: 520px) {
  .nav { padding-inline: var(--pad); }
  .brand span.name { display: none; } /* keep the mark, drop the word on tiny screens */
  .hero__cta { gap: 1rem; }
  .btn { width: 100%; justify-content: center; }
}

/* ── Also from the atelier — cross-reference card ─────────────────────────── */
.alsoby { width: 100%; padding-bottom: 1.6rem; margin-bottom: 0.4rem; border-bottom: 1px solid var(--line); }
.alsoby .eyebrow { color: var(--faint); margin-bottom: 0.9rem; }
.atelier-card { display: inline-flex; align-items: center; gap: 0.9rem; margin: 0 0.5rem 0.5rem 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 0.7rem 1.1rem 0.7rem 0.7rem; color: var(--text);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.atelier-card:hover { border-color: var(--muted); transform: translateY(-2px); box-shadow: 0 14px 34px -16px rgba(0,0,0,.6); }
.atelier-card img { width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--line); display: block; }
.atelier-card .atelier-meta { display: flex; flex-direction: column; line-height: 1.3; }
.atelier-card .name { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }
.atelier-card .tag { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }
.atelier-card .arrow { margin-left: 0.5rem; color: var(--amber); font-size: 1.2rem; transition: transform .3s var(--ease); }
.atelier-card:hover .arrow { transform: translateX(3px); }
