/* Caliber: the app's own palette and type. Newsreader for headings, IBM Plex Mono for labels, Inter for text. */
:root {
  --ground: #F4F4F2;
  --card: #FAFAF8;
  --ink: #111111;
  --body: #2A2A2A;
  --muted: #5C5C5C;
  --faint: #8A8A8A;
  --hairline: #D6D6D3;
  --ray: #DCDCD8;
  --serif: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--ground); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* Type */
.label {
  font: 400 11px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.label.ink { color: var(--ink); font-weight: 500; }
.display { font: 300 clamp(46px, 5.6vw, 80px)/1 var(--serif); letter-spacing: -0.02em; margin: 0; }
.display em { font-style: italic; }
h2.title { font: 300 clamp(38px, 5vw, 64px)/1.02 var(--serif); letter-spacing: -0.015em; margin: 18px 0 20px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 24px;
  font: 400 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  border: 1px solid var(--ink); background: transparent;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.button:hover { background: var(--ink); color: var(--ground); }
.button.filled { background: var(--ink); color: var(--ground); }
.button.filled:hover { background: #2b2b2b; }
.button svg { width: 15px; height: 15px; fill: currentColor; }
.on-ink .button { color: var(--ground); border-color: var(--ground); }
.on-ink .button.filled { background: var(--ground); color: var(--ink); }
.on-ink .button.filled:hover { background: #fff; }

/* Header: transparent over the hero, a hairline and a little blur once you scroll */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled { background: rgba(244, 244, 242, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--hairline); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand span { font: 300 26px/1 var(--serif); }
.site-header nav { display: flex; align-items: center; gap: 30px; }
.site-header nav a.quiet { text-decoration: none; transition: color .3s; }
.site-header nav a.quiet:hover { color: var(--ink); }
.site-header .button { min-height: 40px; padding: 0 16px; }
@media (max-width: 720px) { .site-header nav a.quiet { display: none; } }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero canvas.rays { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .wrap { position: relative; width: 100%; max-width: 1080px; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 56px; padding-top: 110px; padding-bottom: 90px; }
.hero .copy .lede { margin: 22px 0 34px; max-width: 25em; font-size: 17px; line-height: 1.6; color: var(--muted); }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.hero .watch-wrap { position: relative; justify-self: center; width: min(290px, 100%); }
.hero .watch-wrap .main-watch { position: relative; z-index: 2; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.1)); }
/* Two more watches from the app, level with the main one and tucked behind it, like a row in a watch case */
.bg-watch {
  position: absolute; z-index: 1; top: 50%; width: 92%;
  opacity: 0; filter: grayscale(1);
  transition: opacity 1.6s var(--ease) .8s, transform 1.8s var(--ease) .8s;
}
.bw1 { left: -50%; transform: translate(14%, -50%) scale(.74); }
.bw2 { right: -50%; transform: translate(-14%, -50%) scale(.74); }
.loaded .bw1, .loaded .bw2 { opacity: .22; }
.loaded .bw1 { transform: translate(0, -50%) scale(.74); }
.loaded .bw2 { transform: translate(0, -50%) scale(.74); }
.hero .scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none;
}
.hero .scroll i { width: 1px; height: 40px; background: linear-gradient(var(--ink), transparent); animation: drip 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; padding-top: 110px; }
  .hero .watch-wrap { order: -1; width: min(230px, 64%); }
  .hero .scroll { display: none; }
}

/* Hero entrance */
.enter { opacity: 0; transform: translateY(18px); animation: rise 1.2s var(--ease) forwards; }
.enter.d1 { animation-delay: .15s; } .enter.d2 { animation-delay: .3s; } .enter.d3 { animation-delay: .45s; } .enter.d4 { animation-delay: .7s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.watch-enter { opacity: 0; transform: scale(.94) rotate(-6deg); animation: settle 1.8s var(--ease) .2s forwards; }
@keyframes settle { to { opacity: 1; transform: none; } }
/* Safety net: if a browser pauses animations (a background tab, a crawler), show the hero anyway. */
.settled .enter, .settled .watch-enter { animation: none; opacity: 1; transform: none; }
.settled .bw1, .settled .bw2 { opacity: .22; transform: translate(0, -50%) scale(.74); }

/* Features */
.feature { padding: 140px 0; border-bottom: 1px solid var(--hairline); }
.feature .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature.flip .copy { order: 2; }
.feature .copy p { margin: 0; max-width: 27em; font-size: 17px; color: var(--body); }
.feature .num { font: 300 15px/1 var(--mono); color: var(--faint); letter-spacing: .1em; }
.visual { display: flex; justify-content: center; position: relative; }
@media (max-width: 900px) {
  .feature { padding: 88px 0; }
  .feature .wrap { grid-template-columns: 1fr; gap: 48px; }
  .feature.flip .copy { order: 0; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.in .reveal, .reveal.in { opacity: 1; transform: none; }
.in .reveal.r2 { transition-delay: .12s; } .in .reveal.r3 { transition-delay: .24s; }

/* 01 · The app's camera, framed wide: corners close in, one scan line, then the answer lands */
.camera { position: relative; width: min(600px, 100%); }
.finder { position: relative; aspect-ratio: 4 / 3; }
.finder .tray { position: absolute; inset: 12% 2% 30%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5%; }
.finder .spot { position: relative; }
.finder .spot img {
  position: absolute; left: 50%; top: 50%; width: 118%; max-width: none; transform: translate(-50%, -50%) scale(1.05);
  filter: grayscale(1) blur(3px); transition: filter .6s var(--ease), transform .8s var(--ease);
}
.play .finder .spot img { filter: grayscale(1) blur(0); transform: translate(-50%, -50%) scale(1); }
.finder .corner { position: absolute; width: 16px; height: 16px; border: 0 solid var(--ink); opacity: 0; transition: transform .7s var(--ease), opacity .4s; }
.finder .tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; transform: translate(-12px, -12px); }
.finder .tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; transform: translate(12px, -12px); }
.finder .bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; transform: translate(-12px, 12px); }
.finder .br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; transform: translate(12px, 12px); }
.play .finder .corner { transform: none; opacity: 1; }
/* Each watch is framed in turn. */
.play .finder .spot:nth-child(1) .corner { transition-delay: .05s; }
.play .finder .spot:nth-child(2) .corner { transition-delay: .2s; }
.play .finder .spot:nth-child(3) .corner { transition-delay: .35s; }
/* The scanner: a firm leading line with a soft band trailing behind it, sweeping across all three. */
.finder .scan {
  position: absolute; z-index: 3; top: 8%; bottom: 28%; left: 0; width: 22%;
  background: linear-gradient(90deg, rgba(17,17,17,0) 0%, rgba(17,17,17,.07) 85%, rgba(17,17,17,.12) 99%);
  border-right: 2px solid var(--ink);
  opacity: 0; transform: translateX(-100%); pointer-events: none;
}
.play .finder .scan { animation: sweep 1.5s cubic-bezier(.45,.05,.35,1) .45s 1 forwards; }
@keyframes sweep {
  0% { opacity: 0; transform: translateX(-60%); }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateX(460%); }
}
.finder .hint { position: absolute; left: 0; right: 0; top: 0; text-align: center; color: var(--muted); font-size: 10px; }
/* Each watch is named under it once the scan has passed: the brand small, the model larger. */
.finder .name {
  position: absolute; left: -10%; right: -10%; top: calc(100% + 16px); margin: 0; text-align: center;
  font: 300 17px/1.2 var(--serif); color: var(--ink);
  opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.finder .name .label { display: block; margin-bottom: 4px; font-size: 9px; color: var(--muted); }
.play .finder .spot:nth-child(1) .name { opacity: 1; transform: none; transition-delay: .9s; }
.play .finder .spot:nth-child(2) .name { opacity: 1; transform: none; transition-delay: 1.3s; }
.play .finder .spot:nth-child(3) .name { opacity: 1; transform: none; transition-delay: 1.7s; }

/* 02 · Timeline: the line draws down, events follow */
.timeline { position: relative; width: min(440px, 100%); padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 3px; top: 14px; bottom: 6px; width: 1px; background: var(--ink);
  transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease);
}
.play .timeline::before { transform: none; }
.timeline .event { position: relative; padding-bottom: 34px; opacity: 0; transform: translateX(-10px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.timeline .event:last-child { padding-bottom: 0; }
.play .timeline .event { opacity: 1; transform: none; }
.play .timeline .event:nth-child(2) { transition-delay: .35s; } .play .timeline .event:nth-child(3) { transition-delay: .7s; }
.timeline .event::before { content: ""; position: absolute; left: -34px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.timeline .year { font: 300 34px/1.1 var(--serif); }
.timeline .text { margin-top: 4px; font-size: 15px; color: #333; }

/* 03 · Globe */
.globe-wrap { width: min(440px, 100%); aspect-ratio: 1; cursor: grab; touch-action: pan-y; }
.globe-wrap:active { cursor: grabbing; }
.globe-wrap canvas { width: 100%; height: 100%; }

/* 03 · Origins: the globe with a maker's story card over its corner */
.origins { position: relative; width: min(520px, 100%); padding-bottom: 60px; }
.maker {
  position: absolute; right: -56px; bottom: -10px; width: 260px;
  background: var(--card); border: 1px solid var(--hairline); padding: 20px 22px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.2);
}
.maker h3 { margin: 6px 0 2px; font: 300 30px/1.1 var(--serif); }
.maker ol { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--hairline); }
.maker li { font-size: 13px; color: #333; margin: 0 0 8px; display: grid; grid-template-columns: 44px 1fr; }
.maker li b { font: 300 17px/1.2 var(--serif); }
@media (max-width: 900px) {
  .origins { padding-bottom: 0; }
  .maker { position: relative; right: auto; width: 100%; margin-top: -40px; }
}

/* 04 · Your story */
.story { width: min(420px, 100%); background: var(--card); border: 1px solid var(--hairline); box-shadow: 0 30px 60px -30px rgba(0,0,0,.18); }
.story .tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--hairline); }
.story .tabs span { padding: 16px 0; text-align: center; }
.story .tabs span.on { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.story .part { padding: 26px 28px; border-bottom: 1px solid var(--hairline); }
.story .part:last-child { border-bottom: 0; }
.story .date { margin: 10px 0 6px; font: 300 40px/1.05 var(--serif); }
.story .quote { margin: 12px 0 0; font: italic 300 22px/1.4 var(--serif); color: var(--body); min-height: 3.2em; }
.story .quote .caret { display: inline-block; width: 1px; height: 1em; background: var(--ink); vertical-align: -0.12em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.story small { font-size: 13px; color: var(--muted); }

/* 05 · Discover: three picks fan out */
.picks { position: relative; width: min(420px, 100%); height: 470px; }
.pick {
  position: absolute; inset: 0 0 auto 0; background: var(--card); border: 1px solid var(--hairline); padding: 24px 26px;
  transition: transform 1.2s var(--ease), box-shadow 1.2s var(--ease);
}
.pick.back2 { transform: translate(0, 0) rotate(0); }
.pick.back1 { transform: translate(0, 0) rotate(0); }
.play .pick.back2 { transform: translate(34px, -22px) rotate(5deg); }
.play .pick.back1 { transform: translate(17px, -11px) rotate(2.5deg); }
.pick.front { box-shadow: 0 30px 60px -30px rgba(0,0,0,.2); }
.pick img { width: 170px; margin: 8px auto 14px; }
.pick-top { display: flex; justify-content: space-between; align-items: center; }
.pick .tag {
  font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ground); background: var(--ink); padding: 6px 8px;
}
.pick .why { display: block; margin: 14px 0 6px; }
.pick h3 { margin: 6px 0 8px; font: 300 30px/1.1 var(--serif); }
.pick p { margin: 0; font-size: 14.5px; color: var(--muted); }
.pick .row { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hairline); }

/* Closing, on ink */
.closing { position: relative; overflow: hidden; background: var(--ink); color: var(--ground); text-align: center; }
.closing canvas.rays { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.closing .wrap { position: relative; padding-top: 150px; padding-bottom: 150px; }
.closing .label { color: #9a9a96; }
.closing h2 { margin: 18px auto 40px; max-width: 12em; font: 300 clamp(40px, 6vw, 76px)/1.02 var(--serif); letter-spacing: -0.015em; }

/* Footer */
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding-top: 30px; padding-bottom: 46px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 26px; }
.site-footer a { text-decoration: none; transition: color .3s; }
.site-footer a:hover { color: var(--ink); }

/* Long-form pages: privacy, terms */
.page { padding-top: 76px; }
.doc { max-width: 700px; padding: 64px 0 100px; }
.doc h1 { margin: 16px 0 10px; font: 300 clamp(44px, 6.5vw, 72px)/1.02 var(--serif); letter-spacing: -0.015em; }
.doc h2 { margin: 56px 0 12px; font: 300 30px/1.15 var(--serif); }
.doc p, .doc li { color: var(--body); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 8px 0; }
.doc .updated { margin-bottom: 36px; }
.doc .note { margin: 32px 0; padding: 18px 20px; background: var(--card); border: 1px solid var(--hairline); font-size: 14px; color: var(--muted); }
.placeholder { background: #FFF3C4; padding: 0 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .enter, .watch-enter, .reveal, .timeline .event, .viewfinder img, .viewfinder .found { opacity: 1 !important; transform: none !important; }
}

/* Between loops a visual eases back quickly and all at once, so each replay starts clean. */
.feature .visual:not(.play) * { transition-delay: 0s !important; transition-duration: .3s !important; }

@media (max-width: 600px) {
  .finder { aspect-ratio: 1 / .84; }
  .finder .tray { inset: 12% 3% 30%; gap: 9%; }
  .finder .name { font-size: 13px; left: -14%; right: -14%; }
  .finder .name .label { font-size: 8px; letter-spacing: .08em; }
  .finder .corner { width: 12px; height: 12px; }
}

/* Join the beta: an email field and the button on one line, the answer underneath. */
.beta-form { display: flex; flex-wrap: wrap; gap: 10px; width: min(460px, 100%); }
.beta-form input[type=email] {
  flex: 1 1 220px; min-height: 52px; padding: 0 16px;
  font: 400 15px/1 var(--sans); color: var(--ink); background: var(--card);
  border: 1px solid #A8A8A4; border-radius: 0; outline: none; transition: border-color .2s;
}
.beta-form input[type=email]:focus { border-color: var(--ink); }
.beta-form .button { flex: 0 0 auto; cursor: pointer; }
.beta-form .button[disabled] { opacity: .5; cursor: default; }
.beta-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.beta-note { flex-basis: 100%; margin: 4px 0 0; color: var(--faint); }
.beta-result { flex-basis: 100%; margin: 4px 0 0; font-size: 15px; color: var(--body); min-height: 0; }
.beta-result:empty { display: none; }
.beta-result a { color: var(--ink); }
.beta-result .button { margin-top: 12px; }
.beta-form.done input, .beta-form.done > .button, .beta-form.done .beta-note { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
