/* Atelier landing page (atelier.html / atelier.en.html).
   A fine-watch maison's manner, as the App Store screenshots: a black ground (the watch renders on black),
   a tracked gold eyebrow and hairline, serif headlines, the app's screens with a dim gold edge.
   No web fonts: the serifs are the reader's own (Hiragino Mincho / Didot on Apple devices). */

:root {
  --at-ground: #000;
  --at-ground-raised: #0e0d0b;
  --at-ink: #eee9e0;
  --at-muted: #9a948a;
  --at-gold: #b89d6e;
  --at-gold-dim: rgba(184, 157, 110, 0.32);
  --at-line: rgba(238, 233, 224, 0.12);
  --at-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --at-display: Didot, "Bodoni 72", "Bodoni MT", "Times New Roman", serif;
  --at-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  --at-width: 1120px;
  --at-gutter: 24px;
  --at-header: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--at-header); }

body {
  margin: 0;
  background: var(--at-ground);
  color: var(--at-ink);
  font-family: var(--at-sans);
  font-weight: 300;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

html[lang="en"] body { line-height: 1.75; }

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

a { color: inherit; }

:focus-visible { outline: 2px solid var(--at-gold); outline-offset: 3px; }

.at-container {
  width: 100%;
  max-width: var(--at-width);
  margin: 0 auto;
  padding: 0 var(--at-gutter);
}

.at-skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--at-ink);
  color: var(--at-ground);
}
.at-skip:focus { left: 8px; }

/* the gold eyebrow and its hairline */
.at-eyebrow {
  margin: 0 0 20px;
  font-family: var(--at-display);
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--at-gold);
  text-transform: uppercase;
}
.at-eyebrow::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin-top: 18px;
  background: var(--at-gold);
}
.at-center .at-eyebrow::after { margin-left: auto; margin-right: auto; }

.at-heading {
  margin: 0 0 24px;
  font-family: var(--at-serif);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.5;
  letter-spacing: 0.04em;
}
html[lang="en"] .at-heading {
  font-family: var(--at-display);
  letter-spacing: 0.01em;
  line-height: 1.25;
  font-size: clamp(30px, 4vw, 44px);
}

.at-body {
  margin: 0 0 16px;
  color: var(--at-muted);
  font-size: 15px;
}

.at-center { text-align: center; }

/* header */
.at-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.82);
  border-bottom: 1px solid var(--at-line);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .at-header {
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
}
.at-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--at-header);
}
.at-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--at-display);
  font-size: 15px;
  letter-spacing: 0.3em;
  text-decoration: none;
  text-transform: uppercase;
}
.at-wordmark__icon { width: 28px; height: 28px; border-radius: 7px; }
.at-nav { display: flex; align-items: center; gap: 24px; font-size: 13px; }
.at-nav__link { color: var(--at-muted); text-decoration: none; letter-spacing: 0.08em; }
.at-nav__link:hover { color: var(--at-ink); }
.at-nav__lang { color: var(--at-muted); font-family: var(--at-display); letter-spacing: 0.1em; }
.at-nav__lang strong { color: var(--at-ink); font-weight: 400; }
.at-nav__lang a { color: var(--at-muted); text-decoration: none; }
.at-nav__lang a:hover { color: var(--at-ink); }

/* buttons: a gold outline, no fill, as the maisons' "discover" links */
.at-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 32px;
  border: 1px solid var(--at-gold);
  color: var(--at-ink);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.at-btn:hover { background: var(--at-gold); color: var(--at-ground); }
.at-btn--small { min-height: 36px; padding: 0 18px; font-size: 12px; }

.at-note { margin: 16px 0 0; color: var(--at-muted); font-size: 12px; letter-spacing: 0.06em; }

/* hero */
.at-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: 32px;
  min-height: calc(100svh - var(--at-header));
  padding-top: 32px;
  padding-bottom: 32px;
}
.at-hero__title {
  margin: 0 0 28px;
  font-family: var(--at-serif);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.45;
  letter-spacing: 0.06em;
}
html[lang="en"] .at-hero__title {
  font-family: var(--at-display);
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.12;
  letter-spacing: 0;
}
.at-hero__lead { margin: 0 0 36px; color: var(--at-muted); font-size: 15px; max-width: 30em; }
.at-hero__figure { margin: 0; }

/* the statement under the hero */
.at-statement {
  padding-top: 120px;
  padding-bottom: 120px;
  border-top: 1px solid var(--at-line);
}
.at-statement__inner { max-width: 760px; margin: 0 auto; }
.at-statement__figure { margin: 64px auto 0; max-width: 720px; }
.at-statement__figure img { border: 1px solid var(--at-gold-dim); }
.at-statement__caption {
  margin-top: 14px;
  color: var(--at-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
}

/* features: text and the app's screen, alternating */
.at-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  padding-top: 96px;
  padding-bottom: 96px;
  border-top: 1px solid var(--at-line);
}
.at-feature--reverse .at-feature__text { order: 2; }
.at-feature__num {
  margin: 0 0 8px;
  font-family: var(--at-display);
  font-size: 15px;
  color: var(--at-gold);
  letter-spacing: 0.2em;
}
.at-feature__text { max-width: 30em; }
.at-feature__figure { margin: 0; display: flex; justify-content: center; }
.at-screen {
  width: min(320px, 72vw);
  border: 1px solid var(--at-gold-dim);
  border-radius: 36px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}
.at-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.at-terms li {
  padding: 4px 12px;
  border: 1px solid var(--at-line);
  color: var(--at-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* the modules and their prices */
.at-modules { margin: 32px 0 0; padding: 0; }
.at-modules__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--at-line);
}
.at-modules__row:first-child { border-top: 1px solid var(--at-line); }
.at-modules__name { margin: 0; font-family: var(--at-serif); font-size: 17px; letter-spacing: 0.06em; }
html[lang="en"] .at-modules__name { font-family: var(--at-display); font-size: 20px; letter-spacing: 0.01em; }
.at-modules__price { margin: 0; font-family: var(--at-display); color: var(--at-gold); font-size: 17px; }
.at-modules__detail { grid-column: 1 / -1; margin: 0; color: var(--at-muted); font-size: 13px; }
.at-modules__note { margin: 20px 0 0; color: var(--at-muted); font-size: 12px; }

/* privacy */
.at-privacy {
  padding-top: 96px;
  padding-bottom: 96px;
  border-top: 1px solid var(--at-line);
}
.at-privacy__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
.at-privacy__list li {
  padding: 28px 24px;
  background: var(--at-ground-raised);
  border: 1px solid var(--at-line);
  color: var(--at-muted);
  font-size: 14px;
}
.at-privacy__list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--at-ink);
  font-family: var(--at-serif);
  font-weight: 400;
  font-size: 16px;
}
html[lang="en"] .at-privacy__list strong { font-family: var(--at-display); font-size: 19px; }

/* FAQ */
.at-faq {
  padding-top: 96px;
  padding-bottom: 96px;
  border-top: 1px solid var(--at-line);
}
.at-faq__list { max-width: 800px; margin: 48px auto 0; text-align: left; }
.at-faq__item { border-bottom: 1px solid var(--at-line); }
.at-faq__item:first-child { border-top: 1px solid var(--at-line); }
.at-faq__summary {
  position: relative;
  padding: 22px 40px 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--at-serif);
  font-size: 16px;
  letter-spacing: 0.04em;
}
html[lang="en"] .at-faq__summary { font-family: var(--at-display); font-size: 19px; letter-spacing: 0; }
.at-faq__summary::-webkit-details-marker { display: none; }
.at-faq__summary::after {
  content: "+" / "";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--at-gold);
  font-family: var(--at-display);
  font-size: 22px;
}
.at-faq__item[open] .at-faq__summary::after { content: "\2212" / ""; }
.at-faq__answer { margin: 0; padding: 0 0 24px; color: var(--at-muted); font-size: 14px; }
.at-faq__answer a { color: var(--at-gold); }

/* the closing call */
.at-cta {
  padding-top: 120px;
  padding-bottom: 120px;
  border-top: 1px solid var(--at-line);
}
.at-cta__icon { width: 88px; height: 88px; margin: 0 auto 40px; border-radius: 20px; }

/* the modules list ends with what is not a module: the rest of the chapters at once */
.at-modules__aside { margin: 28px 0 0; }
.at-modules__aside .at-modules__row:first-child { border-top: 1px solid var(--at-line); }

/* footer */
.at-footer { padding: 48px 0; border-top: 1px solid var(--at-line); font-size: 12px; color: var(--at-muted); }
.at-footer__inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.at-footer__brand {
  margin: 0 0 6px;
  font-family: var(--at-display);
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--at-ink);
  text-transform: uppercase;
}
.at-footer__copy { margin: 0; }
.at-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.at-footer__nav a { color: var(--at-muted); text-decoration: none; }
.at-footer__nav a:hover { color: var(--at-ink); }

/* the movement, from line art to metal (atelier/movement/transition.js): a tall track the page scrolls through, and
   in it a stage that stays on screen, with the line art over the 3D escapement */
.at-touch { padding-top: 64px; padding-bottom: 96px; }
.at-touch__text { max-width: 720px; margin: 0 auto; }
.at-touch__track { position: relative; margin-top: 8px; }
/* the scroll track and its stage that stays on screen, while the movement runs (the script sets data-live) */
.at-touch__track[data-live] { height: 420vh; height: 420svh; }
.at-touch__stage {
  position: relative;
  max-width: var(--at-width);
  height: 40vh;
  height: 40svh;
  margin: 0 auto;
  /* a long press on the balance holds it; no text selection or callout */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.at-touch__track[data-live] .at-touch__stage {
  position: sticky;
  top: var(--at-header);
  height: calc(100vh - var(--at-header));
  height: calc(100svh - var(--at-header));
}
.at-touch__layer { position: absolute; inset: 0; }
.at-touch__solid { visibility: hidden; opacity: 0; }
.at-touch__stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  /* the lit ground fades into the page's black */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%);
}
.at-touch__stage [data-held] canvas { cursor: grabbing; }
/* the line art reaches the crown, near the stage's side: its fade starts farther out */
.at-touch__lines canvas {
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 82%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 82%, transparent 100%);
}
.at-touch__caption {
  position: absolute;
  left: 0;
  right: 0;
  top: 6%;
  margin: 0;
  color: var(--at-muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-align: center;
  pointer-events: none;
}
.at-touch__status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--at-muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  pointer-events: none;
}
.at-touch__ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.at-touch__ui[hidden],
.at-touch__speed[hidden] { display: none; }
.at-touch__speed { display: inline-flex; flex-wrap: wrap; justify-content: center; border: 1px solid var(--at-line); pointer-events: auto; }
.at-touch__speed button {
  appearance: none;
  min-height: 36px;
  padding: 0 18px;
  border: 0;
  background: none;
  color: var(--at-muted);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  /* quick presses (the zoom, the repeater) are taps, not Safari's double-tap zoom of the page */
  touch-action: manipulation;
}
.at-touch__speed button[aria-pressed="true"],
.at-touch__speed button[data-active] { background: var(--at-gold); color: var(--at-ground); }
.at-touch__speed button:disabled { opacity: 0.4; cursor: default; }
/* the zoom buttons, on touch screens only (a computer pinches or zooms with Ctrl and the wheel) */
.at-touch__speed button[data-touch-only] { display: none; padding: 0 14px; }
@media (hover: none) and (pointer: coarse) { .at-touch__speed button[data-touch-only] { display: inline-block; } }
.at-touch__hint { margin: 0; color: var(--at-muted); font-size: 12px; letter-spacing: 0.06em; }
.at-touch__cta { margin-top: 32px; }

@media (max-width: 768px) {
  :root { --at-gutter: 16px; --at-header: 56px; }
  .at-nav__link { display: none; }
  .at-nav { gap: 16px; }
  .at-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 72px;
  }
  /* the watch first and a little smaller, so the call to download still sits on the first screen */
  .at-hero__figure { order: -1; width: min(100%, 52svh); margin: 0 auto; }
  .at-hero__title { margin-bottom: 20px; }
  .at-hero__lead { margin-bottom: 28px; }
  .at-statement,
  .at-cta { padding-top: 80px; padding-bottom: 80px; }
  .at-touch { padding-top: 48px; padding-bottom: 72px; }
  .at-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .at-feature--reverse .at-feature__text { order: 0; }
  .at-privacy,
  .at-faq { padding-top: 72px; padding-bottom: 72px; }
  .at-privacy__list { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 32px; }
  .at-footer__inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .at-wordmark { letter-spacing: 0.22em; }
  .at-btn { width: 100%; }
  .at-header .at-btn { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .at-btn { transition: none; }
}

@media print {
  /* the blocks that the scroll reveal had not shown yet (inline opacity 0 from the script) print too */
  [style*="opacity"] { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
  .at-header { position: static; }
  .at-body,
  .at-faq__answer,
  .at-modules__detail { color: #333; }
}
