/* ==========================================================================
   Tick & Crown | Coming Soon
   Mobile-first. Tokens first, then base, layout, components, motion.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Colour */
  --midnight: #0a1422;
  --deep: #0f1d31;
  --ivory: #f3eee3;
  --mist: #a9b4c4;
  --champagne: #cdae72;
  --champagne-bright: #ead6a4;
  --champagne-deep: #8d7340;
  --error: #f2a7a0;
  --hairline: rgba(205, 174, 114, 0.22);

  /* Type */
  --font-display: "Bodoni Moda", "Bodoni 72", Didot, "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Space and motion */
  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --tick-ease: cubic-bezier(0.3, 1.7, 0.5, 1);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--midnight);
  color: var(--ivory);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Atmosphere: soft blue light behind the watch, faint warm light top-left, film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60rem 48rem at 78% 46%, rgba(38, 72, 118, 0.45), transparent 62%),
    radial-gradient(40rem 32rem at 6% 0%, rgba(205, 174, 114, 0.07), transparent 60%),
    linear-gradient(180deg, #0a1422 0%, #08111d 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

h1,
h2,
p,
figure,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--champagne);
  color: var(--midnight);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.65rem 1rem;
  background: var(--champagne);
  color: var(--midnight);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--ivory);
  outline-offset: 2px;
}

.noscript {
  position: fixed;
  inset: auto 0 0 0;
  padding: 0.9rem var(--gutter);
  background: var(--deep);
  color: var(--mist);
  font-size: 0.9rem;
  text-align: center;
}

/* ---------- 3. Page frame ---------- */
.page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 90rem;
  margin-inline: auto;
  padding: max(var(--gutter), env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right))
           max(1.25rem, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  overflow-x: clip;
}

/* ---------- 4. Masthead ---------- */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* on very narrow phones the status drops under the logo */
  gap: 0.6rem 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(0.8rem, 3.2vw, 1.25rem);
  letter-spacing: clamp(0.14em, 1.2vw, 0.3em);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
  transition: color 0.2s ease;
}

.wordmark:hover {
  color: var(--champagne-bright);
}

.wordmark__icon {
  display: block;
  width: auto;
  height: clamp(2.6rem, 7vw, 3.4rem);
  transition: transform 0.3s var(--ease-out);
}

.wordmark:hover .wordmark__icon {
  transform: translateY(-2px);
}

.wordmark:focus-visible,
.social__link:focus-visible {
  outline: 2px solid var(--champagne-bright);
  outline-offset: 4px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: clamp(0.1em, 0.9vw, 0.24em);
  text-transform: uppercase;
  color: var(--champagne);
  white-space: nowrap;
}

.status__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--champagne);
  animation: pulse 2.6s ease-out infinite;
}

/* ---------- 5. Hero layout (mobile first) ---------- */
.hero {
  display: grid;
  align-items: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  padding-block: clamp(1rem, 4vw, 2.5rem);
}

.hero__media {
  order: -1; /* watch leads on small screens */
  display: grid;
  place-items: center;
  padding-block: clamp(2.25rem, 13vw, 4.5rem);
}

.hero__copy {
  max-width: 40rem;
}

@media (min-width: 62rem) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(2rem, 5vw, 5.5rem);
  }

  .hero__media {
    order: 0;
    padding-block: 0;
  }

  .hero__copy {
    margin-inline: 0;
  }
}

/* ---------- 6. Headline block ---------- */
.headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 10vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--ivory);
}

.tagline {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 3.6vw, 2rem);
  line-height: 1.25;
  color: var(--champagne);
}

.lede {
  margin-top: 1rem;
  max-width: 34rem;
  color: var(--mist);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.7;
}

/* ---------- 7. Countdown ---------- */
.countdown-block {
  margin-top: clamp(1.5rem, 4vw, 2rem);
  max-width: 30rem;
}

.countdown__title {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--hairline);
}

.unit {
  padding: 0.85rem 0.25rem 0.8rem;
  text-align: center;
}

.unit + .unit {
  border-left: 1px solid var(--hairline);
}

.unit__value {
  display: block;
  min-width: 1.4em;
  margin-inline: auto;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 9vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ivory);
}

.unit__label {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.live-message {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--champagne-bright);
}

.live-message[hidden],
.countdown-block[hidden] {
  display: none;
}

/* ---------- 8. Newsletter form ---------- */
.notify {
  margin-top: clamp(1.5rem, 4vw, 2rem);
  max-width: 30rem;
}

.notify__label {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ivory);
}

.notify__row {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(205, 174, 114, 0.45);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.notify__row:hover {
  border-color: rgba(205, 174, 114, 0.75);
}

.notify__row:focus-within {
  border-color: var(--champagne-bright);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(205, 174, 114, 0.28);
}

.notify__input {
  flex: 1;
  min-width: 0;
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  border: 0;
  background: transparent;
  color: var(--ivory);
  font: inherit;
  font-size: 1rem; /* 16px minimum stops iOS zooming on focus */
  outline: none;
}

.notify__input::placeholder {
  color: #8693a6;
  opacity: 1;
}

.notify__input:disabled {
  color: var(--mist);
}

.btn {
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: 0 0 2px 2px;
  background: var(--champagne);
  color: var(--midnight);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover:not(:disabled) {
  background: var(--champagne-bright);
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
  background: #bf9f61;
}

.btn:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: -5px;
}

.btn:disabled {
  cursor: default;
  opacity: 0.7;
}

.notify[data-state="loading"] .btn {
  cursor: progress;
}

.notify__status {
  min-height: 1.5rem;
  margin-top: 0.7rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--mist);
}

.notify[data-state="invalid"] .notify__status,
.notify[data-state="error"] .notify__status {
  color: var(--error);
}

.notify[data-state="invalid"] .notify__row,
.notify[data-state="error"] .notify__row {
  border-color: var(--error);
}

.notify[data-state="success"] .notify__status {
  color: var(--champagne-bright);
}

.notify[data-state="success"] .notify__row {
  border-color: var(--champagne);
}

.notify__hint {
  margin-top: 0.1rem;
  font-size: 0.85rem;
  color: var(--mist);
}

@media (min-width: 30rem) {
  .notify__row {
    flex-direction: row;
  }

  .btn {
    border-radius: 0 2px 2px 0;
  }
}

/* ---------- 9. The watch ---------- */
.watch {
  position: relative;
  width: min(74vw, 360px);
  aspect-ratio: 1;
}

@media (min-width: 40rem) {
  .watch {
    width: min(56vw, 440px);
  }
}

@media (min-width: 62rem) {
  .watch {
    width: min(100%, 540px);
  }
}

.watch__inner {
  position: absolute;
  inset: 0;
  transform: perspective(1400px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.5s var(--ease-out);
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.45));
}

/* Strap svg is taller than the watch so the strap can run off and fade away */
.watch__under {
  position: absolute;
  left: 0;
  top: -36.6667%;
  width: 100%;
  height: 173.3333%;
  overflow: visible;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 21%, #000 79%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 21%, #000 79%, transparent 100%);
}

.watch__crown {
  transform-box: fill-box;
  transition: transform 0.35s var(--ease-out);
}

.hero__media:hover .watch__crown {
  transform: translateX(4px);
}

/* Case: brushed champagne-gold ring */
.watch__case {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background:
    conic-gradient(from 25deg, #8d7340, #ecd9a8 12%, #a98a4d 26%, #f3e3b4 40%, #8d7340 55%, #d8bd82 70%, #7a6236 84%, #ecd9a8 94%, #8d7340);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.25),
    inset 0 0 22px rgba(0, 0, 0, 0.35);
}

/* Dial: midnight blue sunburst */
.watch__dial {
  position: absolute;
  inset: 10.67%;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.045) 0deg 1.2deg, rgba(0, 0, 0, 0.06) 1.2deg 2.8deg),
    radial-gradient(circle at 50% 38%, #214572 0%, #122a4b 52%, #081529 100%);
  box-shadow:
    inset 0 0 0 6px #050c18,
    inset 0 10px 30px rgba(0, 0, 0, 0.55);
}

.watch__face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dial-brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: 0.3em;
  fill: var(--champagne-bright);
}

.dial-soon {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.42em;
  fill: var(--champagne);
}

.dial-date {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 22px;
  fill: var(--ivory);
}

/* Hands: JS sets the rotation. Seconds hand steps with a small mechanical overshoot. */
.hand {
  transform-box: view-box;
  transform-origin: 300px 300px;
}

.hand--second {
  transition: transform 0.3s var(--tick-ease);
}

.watch.is-sweeping .hand {
  transition: transform 1.9s var(--ease-out);
}

/* ---------- 10. Footer ---------- */
.footer {
  display: block;
  text-align: center;
  min-height: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}

.footer__legal {
  font-size: 0.85rem;
  color: var(--mist);
}
/*
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center!important;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  min-height: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}

.footer__legal {
    font-size: 0.85rem;
  color: var(--mist);
  
}
*/
.social {
  display: flex;
  gap: 0.25rem;
  margin-left: -0.6rem;
}


.social__link {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: var(--mist);
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.social__link:hover {
  color: var(--midnight);
  background: var(--champagne);
}

.social__link:active {
  transform: scale(0.94);
}


/* ---------- 11. Motion ---------- */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(205, 174, 114, 0.55); }
  70%, 100% { box-shadow: 0 0 0 0.6rem rgba(205, 174, 114, 0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes arrive {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* One orchestrated entrance: the watch arrives and its hands sweep to the
   current time, then the copy follows. Only runs when JS is available. */
.js .reveal {
  opacity: 0;
}

.js.is-ready .reveal {
  animation: rise 0.8s var(--ease-out) var(--d, 0s) both;
}

.js .hero__media {
  opacity: 0;
}

.js.is-ready .hero__media {
  animation: arrive 1.1s var(--ease-out) 0.1s both;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal,
  .js .hero__media {
    opacity: 1;
  }

  .js.is-ready .reveal,
  .js.is-ready .hero__media {
    animation: none;
  }

  .status__dot {
    animation: none;
  }

  .hand--second,
  .watch.is-sweeping .hand,
  .watch__inner,
  .watch__crown {
    transition: none;
  }
}

