/* ============================================================
   THE LAST ONES WATCHES — Coming Soon
   ============================================================ */

:root {
  --background: #121512;
  --foreground: #efe6d4;
  --primary: #c4a574;
  --primary-foreground: #1a1710;
  --secondary: #1c241d;
  --muted-foreground: #a89a82;
  --border: rgba(196, 165, 116, 0.38);
  --destructive: #c97a5a;
  --shade-heavy: rgba(8, 10, 8, 0.82);
  --shade-light: rgba(8, 10, 8, 0.14);
  --shade-center: rgba(8, 10, 8, 0.4);
  --gold-sheen: linear-gradient(135deg, #f0e6d2, #b8925a);
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Critical: author display rules must not override [hidden] */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-intro-playing {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--primary);
  color: var(--background);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ CINEMATIC SHELL ============ */
.cinema {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.nature-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -3;
  animation: forest-reveal 2s ease-out both;
}

.cinema-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    180deg,
    var(--shade-heavy) 0%,
    var(--shade-center) 23%,
    var(--shade-light) 52%,
    var(--shade-center) 77%,
    var(--shade-heavy) 100%
  );
  pointer-events: none;
}

/* ============ HEADER ============ */
.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3vw, 1.9rem) clamp(1.25rem, 3.5vw, 2.75rem);
  position: relative;
  z-index: 5;
}

.wordmark {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  min-width: 0;
}

.brand-logo {
  width: clamp(2rem, 3.2vw, 2.75rem);
  height: clamp(2rem, 3.2vw, 2.75rem);
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wordmark-text > span {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.wordmark-text small {
  font: 0.5rem/1.2 var(--font-mono);
  letter-spacing: 0.22em;
  margin-top: 0.4rem;
  color: var(--muted-foreground);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.2rem);
}

.desktop-nav a {
  font: 0.625rem/1.2 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.desktop-nav a {
  transition: color 0.2s ease;
  cursor: pointer;
}

.desktop-nav a:hover,
.footer-link:hover {
  color: var(--primary);
}

.header-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-left: auto;
  flex-shrink: 0;
}

.coordinates {
  display: inline-block;
  white-space: nowrap;
  font: 0.625rem/1.2 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-separator {
  display: inline-block;
  height: 12px;
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}

.cinematic-control {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--foreground);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font: 0.625rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  padding: 0.4rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.cinematic-control:hover {
  color: var(--primary);
  background: var(--shade-center);
}

.cinematic-control.icon-only svg {
  width: 1.75rem;
  height: 1.75rem;
  stroke-width: 1;
  display: block;
}

/* ============ SIDE RAILS ============ */
.left-rail,
.right-rail {
  position: absolute;
  top: 8.5rem;
  bottom: 7.5rem;
  width: 3.5rem;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  z-index: 3;
  pointer-events: none;
}

.left-rail {
  left: clamp(1.25rem, 3vw, 2.75rem);
}

.right-rail {
  right: clamp(1.25rem, 3vw, 2.75rem);
  align-items: flex-end;
}

.chapter-index {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 0 0.75rem;
  border-left: 1px solid var(--border);
  font: 0.56rem/1 var(--font-mono);
  color: var(--muted-foreground);
}

.chapter-index .current {
  color: var(--foreground);
  position: relative;
}

.chapter-index .current::before {
  content: "";
  position: absolute;
  left: -0.8rem;
  top: 0;
  width: 1px;
  height: 1.5rem;
  background: var(--foreground);
}

.vertical-label {
  writing-mode: vertical-rl;
  font: 0.5rem/1 var(--font-mono);
  letter-spacing: 0.16em;
  color: var(--muted-foreground);
}

.left-rail .vertical-label {
  transform: rotate(180deg);
}

.location {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  font: 0.625rem/1.5 var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}

.location-rule {
  display: block;
  width: 1.4rem;
  height: 1px;
  background: var(--border);
  margin: 0.65rem 0;
}

.location svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted-foreground);
}

/* ============ HOME PAGE ============ */
.home-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1.25rem, 8vw, 5.5rem) clamp(1.5rem, 4vw, 3rem);
  position: relative;
  z-index: 2;
  animation: content-reveal 1.3s ease both;
}

.eyebrow {
  font: 0.56rem/1.3 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}

.edition-label {
  color: var(--muted-foreground);
  margin-bottom: 0.15rem;
}

.edition-number {
  font-family: var(--font-display);
  font-size: clamp(8rem, 28vw, 22rem);
  font-weight: 400;
  line-height: 0.87;
  background: var(--gold-sheen);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin: 0;
  user-select: none;
}

.fine-rule {
  display: block;
  width: 2.2rem;
  height: 1px;
  background: var(--primary);
  margin: 1.35rem auto 1.1rem;
}

.manifesto {
  font: clamp(1.15rem, 2.4vw, 1.5rem)/1.2 var(--font-display);
  font-weight: 500;
  max-width: 34rem;
}

.manifesto p {
  margin: 0 0 1.1rem;
}

.access-block {
  margin-top: 0.75rem;
  width: min(23rem, 100%);
}

.dossier-button {
  display: grid;
  grid-template-columns: 1fr 3.5rem;
  align-items: stretch;
  min-height: 2.8rem;
  width: 100%;
  border: 1px solid var(--border);
  background: var(--shade-center);
  color: var(--foreground);
  padding: 0;
  text-align: left;
  font: 0.625rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.dossier-button:hover {
  border-color: rgba(196, 165, 116, 0.7);
}

.dossier-label {
  display: flex;
  align-items: center;
  padding: 0 1.15rem;
}

.dossier-arrow {
  display: grid;
  place-items: center;
  background: var(--gold-sheen);
  color: var(--primary-foreground);
  transition: filter 0.2s ease;
}

.dossier-button:hover .dossier-arrow {
  filter: brightness(1.12);
}

.access-caption {
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  margin-top: 0.8rem;
  color: var(--muted-foreground);
}

/* ============ FOOTER ============ */
.brand-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin: 0 clamp(1.25rem, 3.5vw, 2.75rem);
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  font: 0.45rem/1.3 var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  position: relative;
  z-index: 2;
}

.footer-center {
  display: none;
  gap: 0.55rem;
  align-items: center;
}

.footer-center i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}

.footer-link {
  justify-self: end;
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  cursor: pointer;
}

/* ============ COMING SOON PAGE ============ */
.cinema-launch .nature-backdrop {
  filter: brightness(0.65);
}

.launch-main {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 6vw, 5.5rem) clamp(2rem, 5vw, 4rem);
  position: relative;
  z-index: 2;
  animation: content-reveal 1s ease both;
}

.launch-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--primary);
  margin: 0 0 1.25rem;
}

.launch-ornament span {
  width: 2.5rem;
  height: 1px;
  background: var(--border);
}

.launch-ornament div {
  font-size: 1.25rem;
  line-height: 1;
}

.launch-label {
  color: var(--primary);
  letter-spacing: 0.28em;
}

.launch-main h1 {
  font: clamp(2.4rem, 7vw, 5rem)/1.1 var(--font-display);
  font-weight: 400;
  margin: 1.1rem 0 0.9rem;
}

.launch-subtitle {
  font: clamp(1.15rem, 2.4vw, 1.45rem)/1.35 var(--font-display);
  margin: 0;
  color: var(--foreground);
}

.launch-main .fine-rule {
  margin: 1.6rem auto 1.4rem;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(32rem, 100%);
  margin: 0 auto;
  gap: 0.25rem;
}

.countdown > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.countdown > div:not(:last-child)::after {
  content: ":";
  position: absolute;
  right: -0.15rem;
  top: 0.35rem;
  font: clamp(1.4rem, 4vw, 1.9rem)/1 var(--font-display);
  color: var(--muted-foreground);
}

.countdown-number {
  font: clamp(2.2rem, 7vw, 3.9rem)/1.1 var(--font-display);
  font-variant-numeric: tabular-nums;
  color: var(--primary);
}

.countdown-unit {
  font-size: 0.5rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

.launch-copy {
  font-size: 0.75rem;
  line-height: 1.9;
  margin: 1.75rem 0 1.5rem;
  color: var(--muted-foreground);
}

.subscribe-block {
  width: min(28.75rem, 100%);
  margin: 0 auto;
}

.subscribe-block > .eyebrow {
  font-size: 0.5rem;
  margin-bottom: 0.9rem;
}

.contact-form {
  display: grid;
  gap: 0.65rem;
  text-align: left;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.contact-form__field {
  border: 1px solid var(--border);
  background: var(--shade-center);
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  min-width: 0;
  outline: none;
  padding: 0.9rem 1rem;
  background: transparent;
  color: var(--foreground);
  border: 0;
  font-size: 0.8rem;
  font-family: var(--font-sans);
}

.contact-form__field textarea {
  display: block;
  resize: vertical;
  min-height: 6.5rem;
  line-height: 1.45;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  box-shadow: inset 0 0 0 1px var(--primary);
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: var(--muted-foreground);
}

.contact-form__submit {
  width: 100%;
  margin-top: 0.25rem;
}

.gold-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  border: 0;
  border-radius: 0;
  min-height: 2.9rem;
  background: var(--gold-sheen);
  color: var(--primary-foreground);
  padding: 0 1.2rem;
  cursor: pointer;
  font: 0.56rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  transition: filter 0.2s ease;
  white-space: nowrap;
}

.gold-button:hover {
  filter: brightness(1.08);
}

.gold-button:disabled {
  opacity: 0.8;
  cursor: default;
}

.gold-button .submit-spinner {
  animation: spin 1s linear infinite;
}

.privacy-note {
  font-size: 0.56rem;
  margin-top: 0.85rem;
  color: var(--muted-foreground);
}

.subscribe-success {
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--primary);
  font: 1.05rem/1.3 var(--font-display);
  border-block: 1px solid var(--border);
  padding: 0.75rem;
}

.form-error {
  color: var(--destructive);
  font-size: 0.7rem;
  margin-top: 0.6rem;
}

/* ============ INTRO FILM ============ */
.intro-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  width: 100vw;
  height: 100%;
  height: 100svh;
  height: 100dvh;
  max-width: 100%;
  z-index: 200;
  background: #000;
  opacity: 1;
  overflow: hidden;
  transition: opacity 0.55s ease;
}

.intro-overlay.is-fading {
  opacity: 0;
  pointer-events: none;
}

.intro-overlay video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center center;
  background: #000;
}

.intro-controls {
  position: absolute;
  bottom: max(1.75rem, env(safe-area-inset-bottom, 0px));
  right: max(1.75rem, env(safe-area-inset-right, 0px));
  display: flex;
  gap: 0.75rem;
  z-index: 2;
}

/* ============ ANIMATIONS ============ */
@keyframes forest-reveal {
  from {
    opacity: 0;
    transform: scale(1.035);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes content-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============ BREAKPOINTS ============ */
@media (min-width: 900px) {
  .desktop-nav {
    display: flex;
  }

  .left-rail,
  .right-rail {
    display: flex;
  }

  .footer-center {
    display: flex;
  }
}

@media (max-width: 640px) {
  .coordinates {
    font-size: 0.55rem;
    letter-spacing: 0.06em;
  }

  .brand-footer {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 640px) {
  .home-main {
    padding-inline: 1.25rem;
  }

  .edition-number {
    font-size: clamp(7rem, 42vw, 14rem);
  }

  .manifesto {
    font-size: 1.2rem;
  }

  .dossier-label {
    font-size: 0.5rem;
    letter-spacing: 0.08em;
    padding-inline: 0.85rem;
  }

  .brand-footer {
    margin-inline: 1.25rem;
    font-size: 0.4rem;
  }

  .launch-main {
    padding-inline: 1.25rem;
  }

  .countdown > div:not(:last-child)::after {
    top: 0.2rem;
  }

  .gold-button {
    padding-inline: 0.85rem;
    gap: 0.5rem;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .intro-controls {
    bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    right: max(1.25rem, env(safe-area-inset-right, 0px));
  }

  .intro-overlay video {
    object-position: center center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
