/* Countdownula — site styles. Palette is lifted straight from the app icon. */

@font-face {
  font-family: "Young Serif";
  src: url("fonts/young-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #1a0612;     /* icon background, outer */
  --plum: #2c0a1f;      /* icon background, mid */
  --dusk: #4a1030;      /* icon background, inner glow */
  --blood: #c3112d;     /* ring */
  --fresh: #f0304d;     /* ring highlight, falling drop */
  --clot: #7d0618;      /* ring shadow */
  --bone: #f3ead8;      /* fangs, hand */
  --bone-dim: #bda99b;  /* secondary text on night */
  --line: rgba(243, 234, 216, 0.14);

  --display: "Young Serif", Georgia, serif;
  --text: "Instrument Sans", -apple-system, "Helvetica Neue", sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --measure: 34rem;

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration-color: rgba(240, 48, 77, 0.6); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: #fff; text-decoration-color: var(--fresh); }

:focus-visible { outline: 2px solid var(--fresh); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--blood); color: #fff; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--bone); color: var(--night); padding: 8px 14px; border-radius: 6px;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */

.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  transition: background 0.4s, backdrop-filter 0.4s;
}
.top.is-scrolled {
  background: rgba(26, 6, 18, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.01em;
  text-decoration: none;
}
.brand svg { width: 30px; height: 30px; overflow: visible; }
.brand .ring { stroke-dasharray: 1; stroke-dashoffset: var(--drain, 0); transition: stroke-dashoffset 0.15s linear; }
.top nav { display: flex; gap: clamp(14px, 3vw, 28px); align-items: center; font-size: 0.95rem; }
.top nav a { text-decoration: none; color: var(--bone-dim); }
.top nav a:hover { color: var(--bone); }
.top nav .nav-get { color: var(--bone); }

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px 15px 22px;
  background: var(--blood);
  color: #fff;
  font: 600 1.02rem/1 var(--text);
  text-decoration: none;
  border: 0; border-radius: 999px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 30px -10px rgba(195, 17, 45, 0.8);
  transition: background 0.2s, transform 0.2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { background: #d81835; color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
/* a drop gathers under the button and lets go */
.btn::after {
  content: "";
  position: absolute; left: 50%; top: calc(100% - 6px);
  width: 9px; height: 12px; margin-left: -4.5px;
  background: var(--blood);
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  transform: scale(0.2); transform-origin: 50% 0;
  opacity: 0; pointer-events: none;
}
.btn:hover::after { animation: btn-drip 1.4s cubic-bezier(.55, 0, .7, .4) infinite; }
@keyframes btn-drip {
  0% { transform: translateY(0) scale(0.2, 0.2); opacity: 1; }
  45% { transform: translateY(0) scale(1, 1.15); opacity: 1; }
  100% { transform: translateY(70px) scale(0.8, 1.3); opacity: 0; }
}

.btn-quiet {
  background: transparent; color: var(--bone);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-quiet:hover { background: rgba(243, 234, 216, 0.06); }
.btn-quiet::after { display: none; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  padding: 110px var(--gutter) 80px;
  background:
    radial-gradient(60vw 60vw at 78% 42%, rgba(179, 18, 47, 0.28), transparent 60%),
    radial-gradient(90vw 70vw at 70% 30%, var(--dusk), transparent 70%),
    var(--night);
  isolation: isolate;
}
.hero-copy { position: relative; z-index: 2; max-width: 48rem; }

.hero h1 {
  margin: 0 0 0.35em;
  font-family: var(--display);
  font-size: clamp(3.2rem, 7vw, 7.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.hero h1 .line { display: block; }
.hero h1 .line + .line { padding-left: 0.5em; }
.hero h1 .word { display: inline-block; white-space: nowrap; }
.hero h1 .ch { display: inline-block; }
.js .hero h1 .ch { opacity: 0; animation: ch-in 1s cubic-bezier(.2, .7, .1, 1) forwards; animation-delay: calc(var(--i) * 45ms + 250ms); }
@keyframes ch-in {
  0% { opacity: 0; transform: translateY(-0.5em) scaleY(1.4); filter: blur(8px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; }
}

.hero .lede {
  max-width: 30rem;
  margin: 0 0 2rem;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  color: var(--bone-dim);
}
.hero .lede strong { color: var(--bone); font-weight: 600; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.cta-note { font-size: 0.92rem; color: var(--bone-dim); }

.tolling {
  margin: 3.2rem 0 0;
  max-width: 30rem;
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--bone-dim);
}
.tolling .n { color: var(--bone); font-variant-numeric: lining-nums tabular-nums; }

/* the big clock */
.clock-wrap {
  position: relative;
  justify-self: end;
  width: min(62vw, 760px);
  margin-right: calc(var(--gutter) * -0.6);
  aspect-ratio: 1;
  z-index: 1;
}
.clock { width: 100%; height: 100%; overflow: visible; }
.clock .ring {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.8s cubic-bezier(.65, 0, .25, 1) 0.15s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.clock .jaw { transform-box: view-box; transform-origin: 500px 600px; transform: scaleY(0); animation: jaw 0.7s cubic-bezier(.3, 1.5, .5, 1) 1.5s forwards; }
@keyframes jaw { to { transform: scaleY(1); } }
.clock .fang { transform: translateY(-90px); opacity: 0; animation: fang 0.55s cubic-bezier(.3, 1.8, .5, 1) forwards; }
.clock .fang-l { animation-delay: 1.95s; }
.clock .fang-r { animation-delay: 2.08s; }
@keyframes fang { to { transform: none; opacity: 1; } }
.clock .hub { opacity: 0; animation: fade 0.5s ease 1.2s forwards; }
@keyframes fade { to { opacity: 1; } }
.clock .hand {
  transform-box: view-box; transform-origin: 500px 500px;
  transform: rotate(var(--rot, -47deg));
  transition: transform 0.5s cubic-bezier(.4, 2.2, .4, .8);
}
.clock .drop {
  transform-box: view-box; transform-origin: 600px 832px;
  opacity: 0;
  animation: drop 5.5s cubic-bezier(.6, 0, .9, .5) 2.6s infinite;
}
@keyframes drop {
  0%   { transform: translateY(-34px) scale(0.1); opacity: 1; }
  45%  { transform: translateY(-10px) scale(0.9, 1.1); opacity: 1; }
  58%  { transform: translateY(0) scale(1); opacity: 1; }
  80%  { transform: translateY(330px) scale(0.85, 1.25); opacity: 1; }
  80.1%, 100% { transform: translateY(330px); opacity: 0; }
}
.clock .splash { transform-box: view-box; transform-origin: 600px 1210px; opacity: 0; animation: splash 5.5s ease-out 2.6s infinite; }
@keyframes splash {
  0%, 79% { opacity: 0; transform: scale(0.1, 0.1); }
  80% { opacity: 0.9; transform: scale(0.2, 0.2); }
  100% { opacity: 0; transform: scale(1.6, 1.6); }
}
/* Count Downcula stands in front of his clock and rises in once the fangs land */
.hero { overflow: clip; }
.clock-wrap .count {
  position: absolute; z-index: 2;
  left: -12%; top: 50%; width: 50%; height: auto;
  filter: drop-shadow(0 30px 40px rgba(12, 3, 9, 0.6));
  -webkit-mask-image: linear-gradient(#000 72%, transparent 96%);
  mask-image: linear-gradient(#000 72%, transparent 96%);
  transform: translateY(40%); opacity: 0;
  animation: count-in 1s cubic-bezier(.2, .9, .3, 1.1) 2.3s forwards;
}
@keyframes count-in { to { transform: none; opacity: 1; } }
/* when the clock overlaps the copy, he moves to the clock's right side, mirrored so he still points at it */
@media (max-width: 1240px) {
  .clock-wrap .count { left: auto; right: -8%; top: 52%; width: 42%; scale: -1 1; }
}
/* stacked layout: copy is below the clock, so he goes back to the left, smaller */
@media (max-width: 900px) {
  .clock-wrap .count { left: -6%; right: auto; top: 50%; width: 36%; scale: none; }
}

.clock .glow { animation: pulse 1s ease-in-out infinite alternate; transform-box: view-box; transform-origin: 500px 500px; }
@keyframes pulse { from { opacity: 0.55; } to { opacity: 0.9; } }

/* ---------- section scaffolding ---------- */

.sec { position: relative; padding: clamp(80px, 12vw, 160px) var(--gutter); }
.sec-head { max-width: 46rem; margin-bottom: clamp(40px, 6vw, 72px); }
.sec h2 {
  margin: 0 0 0.3em;
  font-family: var(--display);
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.sec-head p { margin: 0; max-width: var(--measure); color: var(--bone-dim); font-size: 1.15rem; }

/* ---------- the tour (sticky stage) ---------- */

.tour { background: linear-gradient(var(--night), var(--plum) 30%, var(--plum) 70%, var(--night)); }
.tour-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
}
.steps { list-style: none; margin: 0; padding: 0 0 22vh; }
.step {
  min-height: 78vh;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 26rem;
  opacity: 0.28;
  transition: opacity 0.5s;
}
.step.is-on { opacity: 1; }
.step h3 {
  margin: 0 0 0.4em;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.step p { margin: 0; color: var(--bone-dim); font-size: 1.1rem; }

.stage-col { position: relative; }
.stage {
  position: sticky; top: max(80px, calc(50vh - 340px));
  height: min(680px, calc(100vh - 110px));
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 20% 110%, rgba(195, 17, 45, 0.45), transparent 60%),
    radial-gradient(100% 90% at 100% 0%, #5c1a3d, transparent 60%),
    linear-gradient(160deg, #3a1030, #12040c);
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}

/* faux macOS menu bar */
.menubar {
  position: absolute; inset: 0 0 auto 0;
  height: 30px;
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
  padding: 0 14px;
  background: rgba(20, 8, 16, 0.55);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  font: 500 13px/1 -apple-system, "SF Pro Text", var(--text);
  color: #f5f5f5;
  white-space: nowrap;
  z-index: 3;
}
.mb-item { display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 5px; transition: background 0.3s, box-shadow 0.3s; font-variant-numeric: tabular-nums; }
.mb-item img { width: 16px; height: 16px; border-radius: 4px; }
.mb-item svg { width: 15px; height: 15px; }
.mb-item.is-hot { background: rgba(255, 255, 255, 0.22); }
.mb-pin { overflow: hidden; max-width: 260px; transition: max-width 0.6s cubic-bezier(.3, 1.3, .5, 1), opacity 0.4s, padding 0.6s; }
.mb-pin.is-new { max-width: 0; opacity: 0; padding-left: 0; padding-right: 0; }
.mb-fang svg { width: 17px; height: 17px; }
.mb-clock { opacity: 0.9; }
.mb-trunc { max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }

.shot {
  position: absolute; top: 30px; right: 10px;
  width: min(406px, 82%);
  transform-origin: 88% 0;
  transform: translateY(-14px) scale(0.92);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(.2, 1.3, .4, 1), opacity 0.35s;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55));
  z-index: 2;
}
.stage[data-step="1"] .shot-list,
.stage[data-step="2"] .shot-detail { transform: none; opacity: 1; }

.toast {
  position: absolute; top: 42px; right: 12px;
  width: min(340px, calc(100% - 24px));
  display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: start;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(60, 50, 58, 0.72);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.18), 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  font: 13px/1.3 -apple-system, "SF Pro Text", var(--text);
  color: #fff;
  transform: translateX(calc(100% + 30px));
  transition: transform 0.7s cubic-bezier(.2, 1.2, .3, 1);
  z-index: 4;
}
.toast img { width: 38px; height: 38px; }
.toast b { display: block; font-weight: 600; }
.toast small { color: rgba(255, 255, 255, 0.55); font-size: 12px; }
.stage[data-step="4"] .toast { transform: none; }

/* a big ghost countdown across the stage for steps 3 and 4 */
.stage-ghost {
  position: absolute; inset: auto 0 6% 0;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5.6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: rgba(243, 234, 216, 0.9);
  font-variant-numeric: lining-nums;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
.stage-ghost small { display: block; font-family: var(--text); font-style: normal; font-size: 0.95rem; letter-spacing: 0; color: var(--bone-dim); margin-top: 0.6em; }
.stage[data-step="3"] .stage-ghost,
.stage[data-step="4"] .stage-ghost { opacity: 1; transform: none; }

/* ---------- try it ---------- */

.try { background: var(--night); }
.try-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.form { display: grid; gap: 22px; max-width: 26rem; }
.field label { display: block; font-size: 0.95rem; color: var(--bone-dim); margin-bottom: 8px; }
.field input {
  width: 100%;
  padding: 10px 0 12px;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(243, 234, 216, 0.3);
  color: var(--bone);
  font: 400 1.8rem/1.15 var(--display);
  border-radius: 0;
  transition: border-color 0.2s;
}
.field input[type="datetime-local"] { font: 500 1.15rem/1.3 var(--text); color-scheme: dark; }
.field input:focus { outline: none; border-bottom-color: var(--fresh); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets button {
  padding: 8px 14px;
  background: transparent; color: var(--bone);
  border: 1px solid var(--line); border-radius: 999px;
  font: 500 0.92rem/1 var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.presets button:hover { border-color: rgba(240, 48, 77, 0.7); }
.presets button[aria-pressed="true"] { background: rgba(195, 17, 45, 0.25); border-color: var(--blood); }

/* the result mirrors the app's detail view */
.card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #5d5d61;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-family: -apple-system, "SF Pro Display", var(--text);
}
.card-hero {
  position: relative;
  height: clamp(150px, 18vw, 210px);
  background:
    radial-gradient(80% 120% at 85% 0%, rgba(240, 48, 77, 0.85), transparent 55%),
    radial-gradient(70% 90% at 0% 100%, #2a0a1c, transparent 70%),
    linear-gradient(135deg, #7d0618, #3a0d27);
  display: flex; align-items: flex-end;
  padding: 18px 22px;
}
.card-hero svg { position: absolute; right: 18px; top: 16px; width: 56px; height: 56px; opacity: 0.9; }
.card-title {
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
  overflow-wrap: anywhere;
}
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 18px 18px 6px; }
.tile {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px 4px 10px;
  text-align: center;
  color: #fff;
}
.tile .num {
  position: relative; display: block;
  height: 1.1em; overflow: hidden;
  font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.tile .num span { display: block; }
.tile .num .out { position: absolute; inset: 0; animation: roll-out 0.45s cubic-bezier(.5, 0, .2, 1) forwards; }
.tile .num .in { animation: roll-in 0.45s cubic-bezier(.5, 0, .2, 1); }
@keyframes roll-out { to { transform: translateY(-100%); opacity: 0; } }
@keyframes roll-in { from { transform: translateY(100%); opacity: 0; } }
.tile .unit { display: block; margin-top: 6px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.6); }
.card-meta { padding: 10px 22px 22px; color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; }
.card-meta .when { display: flex; gap: 8px; align-items: center; color: rgba(255, 255, 255, 0.65); margin-bottom: 6px; }
.card-meta svg { width: 15px; height: 15px; flex: none; }
.card.is-past .tiles { opacity: 0.5; }

/* ---------- quieter facts ---------- */

.facts { background: var(--night); padding-top: 0; }
.facts dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 40px clamp(28px, 4vw, 56px);
  margin: 0;
  max-width: 72rem;
}
.facts dt { font-family: var(--display); font-size: 1.45rem; line-height: 1.15; margin-bottom: 0.4em; }
.facts dd { margin: 0; color: var(--bone-dim); }

/* ---------- install ---------- */

.install { background: linear-gradient(var(--night), var(--plum)); }
.rite { list-style: none; margin: 0 0 48px; padding: 0; display: grid; gap: 0; max-width: 56rem; counter-reset: rite; }
.rite li {
  counter-increment: rite;
  display: grid; grid-template-columns: clamp(3.5rem, 8vw, 6rem) 1fr; gap: 0 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.rite li::before {
  content: counter(rite);
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 0.85;
  color: var(--blood);
}
.rite h3 { margin: 0 0 0.25em; font-family: var(--display); font-size: 1.5rem; }
.rite p { margin: 0; color: var(--bone-dim); max-width: var(--measure); }
.cmd {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 14px;
  padding: 10px 10px 10px 16px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  max-width: 34rem;
}
.cmd code { flex: 1 1 18rem; font: 0.9rem/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: var(--bone); overflow-wrap: anywhere; }
.cmd button {
  padding: 7px 12px; border: 0; border-radius: 7px;
  background: rgba(243, 234, 216, 0.12); color: var(--bone);
  font: 600 0.85rem/1 var(--text); cursor: pointer;
}
.cmd button:hover { background: rgba(243, 234, 216, 0.2); }

/* ---------- footer with the dripping edge ---------- */

.foot { position: relative; background: #12040c; color: var(--bone); padding: 130px var(--gutter) 36px; overflow: hidden; }
.foot-drips { position: absolute; left: 0; top: 0; width: 100%; height: 100px; display: block; }
.foot-drips .d { transform-box: fill-box; transform-origin: 50% 0; animation: ooze var(--t, 7s) ease-in-out var(--dl, 0s) infinite alternate; }
@keyframes ooze { from { transform: scaleY(0.5); } to { transform: scaleY(1.2); } }
.foot .foot-word {
  margin: 0 0 32px;
  font-family: var(--display);
  font-size: clamp(3.2rem, 14.5vw, 13rem);
  line-height: 0.9; letter-spacing: -0.045em;
  color: var(--blood);
}
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; align-items: end; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot p { margin: 0; color: var(--bone-dim); font-size: 0.95rem; }

/* ---------- legal + support pages ---------- */

.doc { padding: 140px var(--gutter) 40px; }
.doc-inner { max-width: 40rem; }
.doc h1 {
  margin: 0 0 0.25em;
  font-family: var(--display);
  font-size: clamp(3rem, 9vw, 6rem); line-height: 0.92; letter-spacing: -0.035em;
}
.doc .effective { color: var(--bone-dim); margin: 0 0 2.6rem; }
.doc .summary {
  font-family: var(--display); font-size: 1.4rem; line-height: 1.4; margin: 0 0 2.6rem;
  padding-left: 20px; border-left: 3px solid var(--blood);
}
.doc h2 { font-family: var(--display); font-size: 1.6rem; line-height: 1.15; margin: 2.4rem 0 0.6rem; }
.doc p, .doc li { color: rgba(243, 234, 216, 0.86); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.4em; }
.doc li::marker { color: var(--blood); }
.doc code { font: 0.92em ui-monospace, "SF Mono", Menlo, monospace; background: rgba(243, 234, 216, 0.08); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }

.mailbig {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1.7rem, 5.5vw, 3rem); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0.2em 0 0.6em;
  overflow-wrap: anywhere;
}

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 20px 0;
  font-family: var(--display); font-size: 1.3rem; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  border-right: 2px solid var(--blood); border-bottom: 2px solid var(--blood);
  transform: rotate(45deg) translateY(-4px);
  transition: transform 0.35s cubic-bezier(.3, 1.6, .5, 1);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq .ans { padding: 0 0 22px; overflow: hidden; }
.faq .ans p { margin: 0 0 0.8em; }
.faq details[open] .ans { animation: open 0.4s cubic-bezier(.2, .8, .2, 1); }
@keyframes open { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 90px; align-content: start; }
  .clock-wrap { order: -1; justify-self: center; width: min(78vw, 400px); margin: 0 0 -10px; }
  .hero h1 .line + .line { padding-left: 0.5em; }
  .tolling { margin-top: 2.2rem; }

  .tour-grid { grid-template-columns: 1fr; gap: 0; }
  .stage-col { order: -1; position: sticky; top: 0; z-index: 2; height: calc(54vh + 64px); padding-top: 64px; margin: 0 calc(var(--gutter) * -1) 4vh; padding-left: var(--gutter); padding-right: var(--gutter); background: linear-gradient(var(--plum) 85%, transparent); }
  .stage { position: relative; top: 0; height: 100%; }
  .step { min-height: 60vh; justify-content: flex-start; padding-top: 2vh; }
  .shot { width: min(300px, 74%); }

  .try-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .top nav .nav-hide { display: none; }
  .mb-clock, .mb-pin-2 { display: none; }
  .menubar { gap: 8px; }
  .tiles { gap: 6px; padding: 14px 12px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .clock .drop, .clock .splash { display: none; }
}

.doc { background: radial-gradient(70vw 50vw at 90% 0%, rgba(74, 16, 48, 0.9), transparent 70%), var(--night); min-height: 80vh; }

/* ---------- apple watch ---------- */

.wrist { background: var(--night); overflow: hidden; }
.wrist-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.wrist-copy > p { max-width: var(--measure); color: var(--bone-dim); font-size: 1.15rem; margin: 0 0 2rem; }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin: 0 0 1.6rem; max-width: 34rem; }
.slots dt { font-family: var(--display); font-size: 1.4rem; line-height: 1.1; margin-bottom: 0.25em; }
.slots dd { margin: 0; color: var(--bone-dim); font-size: 0.98rem; }
.wrist-copy .wrist-note { font-size: 0.98rem; margin: 0; }

.watches { position: relative; width: 100%; max-width: 560px; justify-self: center; height: clamp(360px, 42vw, 560px); }
.watch {
  position: absolute;
  --w: clamp(170px, 20vw, 270px);
  width: var(--w);
  aspect-ratio: 416 / 496;
  /* bezel sized from the watch itself; % padding would follow the column width */
  padding: calc(var(--w) * 0.07);
  border-radius: 30%/26%;
  background: linear-gradient(145deg, #3b3236, #120c0f 55%, #2a2226);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08), 0 40px 70px -25px rgba(0, 0, 0, 0.9);
  transition: transform 1.1s cubic-bezier(.2, 1, .3, 1), opacity 0.8s;
}
.watch img { width: 100%; height: 100%; border-radius: 22%/18%; background: #000; }
/* the digital crown */
.watch::after {
  content: ""; position: absolute; right: -4.5%; top: 24%;
  width: 5%; height: 15%;
  border-radius: 3px;
  background: linear-gradient(90deg, #5a4d52, #c3112d);
}
.watch-a { left: 4%; top: 2%; --r: -7deg; z-index: 2; }
.watch-b { right: 2%; bottom: 0; --r: 6deg; }
.watch { transform: rotate(var(--r)); animation: bob 6s ease-in-out infinite alternate; }
.watch-b { animation-delay: -3s; }
@keyframes bob { to { translate: 0 -14px; } }
.js .watch { opacity: 0; transform: translateY(80px) rotate(calc(var(--r) * -2)); }
.js .wrist.is-in .watch { opacity: 1; transform: rotate(var(--r)); }
.js .wrist.is-in .watch-b { transition-delay: 0.15s; }

.sync {
  position: relative;
  margin-top: clamp(56px, 8vw, 96px);
  max-width: 46rem;
}
.sync-line { display: block; width: min(100%, 520px); height: 40px; color: var(--blood); margin-bottom: 14px; }
.sync-line path { animation: march 1.6s linear infinite; }
@keyframes march { to { stroke-dashoffset: -24; } }
.sync p { margin: 0; font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.4; color: var(--bone-dim); }
.sync strong { color: var(--bone); font-weight: inherit; }
.soon { margin: 2rem 0 0; color: var(--bone-dim); font-size: 0.95rem; }
.beta-row { margin-top: 2rem; }

@media (max-width: 900px) {
  .wrist-grid { grid-template-columns: 1fr; }
  .watches { height: clamp(320px, 95vw, 460px); }
  .watch { --w: clamp(150px, 44vw, 230px); }
}
@media (max-width: 560px) {
  .slots { grid-template-columns: 1fr; }
}

/* ---------- iphone ---------- */

.pocket {
  background:
    radial-gradient(60vw 40vw at 50% 55%, rgba(74, 16, 48, 0.75), transparent 70%),
    var(--night);
  overflow: hidden;
}

.phones {
  display: flex; justify-content: center; align-items: flex-start;
  margin: 0 auto clamp(48px, 7vw, 88px);
  padding-top: 24px;
}
.phone {
  position: relative;
  margin: 0;
  width: clamp(120px, 24vw, 290px);
  transition: transform 1.1s cubic-bezier(.2, 1, .3, 1), opacity 0.8s;
}
.phone img {
  width: 100%; height: auto; aspect-ratio: 600 / 1305;
  border-radius: 14% / 6.5%;
  background: #000;
  /* titanium band and a soft drop */
  box-shadow:
    0 0 0 clamp(3px, 0.55vw, 6px) #0b0709,
    0 0 0 clamp(4px, 0.7vw, 8px) #3b3236,
    0 50px 80px -30px rgba(0, 0, 0, 0.95);
}
.phone figcaption {
  margin-top: 22px; text-align: center;
  font-family: var(--display); font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  color: var(--bone-dim);
  rotate: calc(var(--r) * -1); /* keep captions level while the phones tilt */
}
.phone-a { --r: -6deg; --y: 40px; margin-right: -3%; z-index: 1; }
.phone-b { --r: 0deg; --y: 0px; z-index: 2; }
.phone-c { --r: 6deg; --y: 40px; margin-left: -3%; z-index: 1; }
.phone { transform: translateY(var(--y)) rotate(var(--r)); }
.js .phone { opacity: 0; transform: translateY(calc(var(--y) + 90px)) rotate(calc(var(--r) * 2)); }
.js .pocket.is-in .phone { opacity: 1; transform: translateY(var(--y)) rotate(var(--r)); }
.js .pocket.is-in .phone-a { transition-delay: 0.12s; }
.js .pocket.is-in .phone-c { transition-delay: 0.24s; }

.surfaces {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px clamp(20px, 3vw, 40px);
  margin: 0 0 clamp(40px, 6vw, 64px);
}
.surfaces dt { font-family: var(--display); font-size: 1.4rem; line-height: 1.1; margin-bottom: 0.3em; }
.surfaces dd { margin: 0; color: var(--bone-dim); font-size: 0.98rem; }

.pocket-note { max-width: 46rem; margin: 0; font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.4; color: var(--bone-dim); }
.pocket-note strong { color: var(--bone); font-weight: 600; }

@media (max-width: 900px) {
  .surfaces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .phone { width: 34vw; }
  .phone-a, .phone-c { --y: 24px; margin-inline: -4%; }
  .phone figcaption { margin-top: 14px; }
  .surfaces { grid-template-columns: 1fr; }
}

/* wordmark: "Count" in bone, "Downcula" in blood, so the Dracula pun shows */
.wordmark em, .foot .foot-word em { font-style: normal; color: var(--fresh); }
.foot .foot-word { color: var(--bone); }
@media (max-width: 420px) {
  .brand { font-size: 1.1rem; gap: 8px; }
  .brand svg { width: 26px; height: 26px; }
}
