/* ════════ Showroom theme — a minimalist product page ════════ */

/* the sweep angle has to be a registered property, or it cannot be
   interpolated and the wipe jumps instead of sweeping */
@property --a {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@font-face {
  font-family: 'Cormorant';
  src: url('../assets/fonts/cormorant-latin.woff2') format('woff2');
  font-weight: 300 400;
  font-display: swap;
}

.sr-page {
  --ink: #16171a;
  --ink-2: #5c5f66;
  --ink-3: #8e929a;
  --paper: #f7f6f4;
  --paper-2: #eeece8;
  --dark: #131417;
  --rule: #dedbd5;
  --display: 'Cormorant', 'Iowan Old Style', Georgia, serif;
  --ui: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  position: relative;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 14.5px;
  line-height: 1.72;
  letter-spacing: 0.005em;
}
.sr-page a { color: inherit; text-decoration: none; cursor: pointer; }

/* ── nav ── */
.sr-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(247, 246, 244, 0.9);
  backdrop-filter: blur(8px);
}
.sr-brand { font-size: 14px; letter-spacing: 0.34em; font-weight: 500; }
.sr-nav nav { display: flex; gap: 26px; margin-left: auto; }
.sr-nav nav a { font-size: 12.5px; color: var(--ink-2); letter-spacing: 0.04em; }
.sr-nav nav a:hover { color: var(--ink); }
.sr-btn {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 26px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.sr-btn:hover { background: transparent; color: var(--ink); }
/* scoped: a bare `.ghost` collides with the global drag-ghost class in cards.css */
.sr-btn.sr-ghost { background: none; color: var(--ink); padding: 9px 20px; }
.sr-btn.sr-ghost:hover { background: var(--ink); color: var(--paper); }
.sr-quiet { font-size: 12.5px; color: var(--ink-2); border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.sr-quiet:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ── hero ── */
.sr-hero {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(30px, 5vw, 72px) clamp(20px, 4vw, 56px) clamp(24px, 4vw, 56px);
  scroll-margin-top: 62px;
}
.sr-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.sr-hero h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(38px, 6.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.sr-hero h1 em { font-style: italic; color: var(--ink-2); }
.sr-lede { margin-top: 22px; max-width: 42ch; color: var(--ink-2); }
.sr-cta { display: flex; align-items: center; gap: 22px; margin-top: 30px; flex-wrap: wrap; }

/* the watch */
.sr-stage {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 900px;
  min-height: 300px;
}
.sr-watch {
  width: min(300px, 74%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
  transform-style: preserve-3d;
  filter: drop-shadow(0 30px 40px rgba(20, 18, 14, 0.26));
}
.sr-watch.swap { animation: sr-swap 0.45s ease-out; }
@keyframes sr-swap { from { opacity: 0.25; transform: scale(0.965); } }
.sr-watch-svg { display: block; width: 100%; height: auto; }
.sr-hands g { transform-origin: 160px 160px; }
.sr-s { will-change: transform; }
.sr-live {
  position: absolute;
  bottom: 0;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sr-live::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #1e7a4d;
  margin-right: 7px;
  vertical-align: 1px;
  animation: sr-blink 2s ease-in-out infinite;
}
@keyframes sr-blink { 50% { opacity: 0.25; } }

/* ── spec strip ── */
.sr-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border-block: 1px solid var(--rule);
}
.sr-strip div {
  padding: 22px 20px;
  text-align: center;
  border-right: 1px solid var(--rule);
}
.sr-strip div:last-child { border-right: 0; }
.sr-strip b { display: block; font-family: var(--display); font-size: 30px; font-weight: 300; line-height: 1; }
.sr-strip span { display: block; margin-top: 7px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }

/* ── sections ── */
.sr-sec { padding: clamp(36px, 5.4vw, 76px) clamp(20px, 4vw, 56px); scroll-margin-top: 62px; }
.sr-dark { background: var(--dark); color: #e9e7e3; }
.sr-dark .sr-eyebrow { color: #7e828a; }
.sr-head { margin-bottom: 34px; }
.sr-head h2 { font-family: var(--display); font-weight: 300; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.1; }

.sr-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 44px; max-width: 900px; }
.sr-specs div { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--rule); }
.sr-specs dt { color: var(--ink-3); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.sr-specs dd { text-align: right; }

.sr-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 940px; }
.sr-cols p { color: #b6b3ad; }

/* ── colourways ── */
.sr-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; max-width: 720px; }
.sr-ways button {
  font: inherit;
  text-align: left;
  padding: 16px 18px;
  background: none;
  border: 1px solid var(--rule);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.sr-ways button:hover { border-color: var(--ink-3); }
.sr-ways button.is-on { border-color: var(--ink); background: var(--paper-2); }
.sr-sw { display: flex; gap: 5px; margin-bottom: 12px; }
.sr-sw i { width: 20px; height: 20px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); }
.sr-ways b { display: block; font-weight: 500; font-size: 14.5px; }
.sr-ways em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.sr-note { margin-top: 18px; font-size: 13px; color: var(--ink-2); }
.sr-note b { font-weight: 500; color: var(--ink); }

/* ── order ── */
.sr-order {
  padding: clamp(40px, 6vw, 88px) clamp(20px, 4vw, 56px);
  background: var(--paper-2);
  scroll-margin-top: 62px;
}
.sr-order h2 { font-family: var(--display); font-weight: 300; font-size: clamp(38px, 6vw, 68px); line-height: 1; margin-bottom: 16px; }
.sr-order .sr-lede { margin-top: 0; }

.sr-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px clamp(20px, 4vw, 56px);
  background: var(--dark);
  color: #8b8f96;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .sr-hero { grid-template-columns: 1fr; }
  .sr-nav nav { display: none; }
  .sr-stage { order: -1; }
  .sr-watch { width: min(240px, 60%); }
}

/* ── the arrival: a hand sweeps the page in ── */
.sweep-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  overflow: hidden;
  background: var(--sr-sweep-bg, #f7f6f4);
  -webkit-mask-image: conic-gradient(from 0deg at 50% 50%, #000 0deg, #000 var(--a, 0deg), transparent var(--a, 0deg));
  mask-image: conic-gradient(from 0deg at 50% 50%, #000 0deg, #000 var(--a, 0deg), transparent var(--a, 0deg));
}
.sweep-hand {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 78%;
  margin-left: -1px;
  background: linear-gradient(180deg, #c4884a, rgba(196, 136, 74, 0));
  transform-origin: 50% 100%;
  transform: translateY(-100%) rotate(0deg);
}

.docked-obj.sweeping { animation: obj-wind 0.5s ease-out; }
@keyframes obj-wind {
  45% { filter: brightness(1.5) drop-shadow(0 0 14px rgba(196, 136, 74, 0.7)); transform: rotate(8deg) scale(1.04); }
}
