/* ============================================================================
   WatchCap · homepage layout
   Long quiet scroll. Tokens + type come from wc-system.css.
   Light = Foggy Sunrise (.wc-overcast) · Dark = Lamp Light (.wc-lamp)
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wc-bg);
  color: var(--wc-ink);
  -webkit-font-smoothing: antialiased;
  transition: background 0.6s ease, color 0.6s ease;
}

/* ---- top nav ------------------------------------------------------------- */
.wc-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, padding 0.3s ease, border-color 0.4s ease;
}
.wc-nav.scrolled {
  background: var(--wc-bg);
  border-bottom: 1px solid var(--wc-rule);
  padding-top: 15px; padding-bottom: 15px;
}
.wc-nav .wm { font-family: var(--wc-type); font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase; font-size: 15px; color: var(--wc-ink); }
.wc-nav .links { display: flex; gap: 22px; align-items: center; }
.wc-nav .lk {
  font-family: var(--wc-type); font-size: 12px; letter-spacing: 0.05em;
  color: var(--wc-ink-3); cursor: default; transition: color 0.2s ease;
}
.wc-nav .lk[data-soon]::after {
  content: "soon"; font-size: 8.5px; letter-spacing: 0.12em;
  color: var(--wc-accent); margin-left: 5px; vertical-align: super; opacity: 0.8;
}
.wc-toggle {
  font-family: var(--wc-type); font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--wc-ink-3); background: none; border: 0; cursor: pointer;
  padding: 4px 0; transition: color 0.18s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.wc-toggle:hover, .wc-nav .lk:hover { color: var(--wc-accent); }
.wc-toggle .glyph { display: inline-flex; color: var(--wc-accent); }
.wc-toggle .glyph svg { width: 15px; height: 15px; display: block; }
.wc-toggle .name { white-space: nowrap; }

/* ---- generic section ----------------------------------------------------- */
.wc-sec { position: relative; padding: clamp(96px, 16vh, 200px) clamp(24px, 6vw, 80px); }
.wc-col { max-width: 620px; margin: 0 auto; }
.wc-col--wide { max-width: 760px; }
.center { text-align: center; }

.eyebrow {
  font-family: var(--wc-type); font-weight: 400; font-size: 11.5px;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--wc-ink-3);
}
.lede { font-family: var(--wc-read); font-weight: 400; font-size: clamp(22px, 3vw, 30px);
  line-height: 1.5; letter-spacing: 0.1px; }
.body { font-family: var(--wc-read); font-weight: 400; font-size: clamp(17px, 2vw, 19px);
  line-height: 1.7; }
.body em, .lede em, .hero-tag em { font-style: italic; }
.body p { margin: 0 0 1.1em; }
.rule { width: 32px; height: 1px; background: var(--wc-accent); border: 0; margin: 28px auto; }
.rule--left { margin-left: 0; }

/* ---- hero ---------------------------------------------------------------- */
.hero { min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 120px 24px 80px; }
.hero .mark { width: clamp(120px, 16vw, 200px); margin: 0 auto 40px; }
.hero h1 {
  font-family: var(--wc-type); font-weight: 400; margin: 0; white-space: nowrap;
  font-size: clamp(44px, 11vw, 150px); letter-spacing: 0.12em;
  text-transform: uppercase; line-height: 0.98; color: var(--wc-ink);
}
.hero-tag { font-family: var(--wc-read); font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.55; color: var(--wc-ink-2); margin: 30px auto 0; max-width: 30ch; min-height: 1.6em; }
.hero-art { display: block; width: clamp(300px, 46vw, 640px); height: auto; margin: 0 auto 40px; }
.hero-art--sm { width: clamp(200px, 28vw, 360px); margin: 0 auto 38px; }
html.wc-lamp .hero-art { filter: invert(1) brightness(0.96); }
.hero-fade { opacity: 0; transition: opacity 1.3s ease; }
.hero-fade.in { opacity: 1; }
.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-family: var(--wc-type); font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--wc-ink-3); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue .ln { width: 12px; height: 42px; color: var(--wc-ink-3); opacity: 0.55; }
@keyframes cuefade { 0%,100% { opacity: 0.3; } 50% { opacity: 0.85; } }
@keyframes cuepulse { 0%,100% { transform: scaleY(0.4); opacity: 0.5; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---- video band ---------------------------------------------------------- */
.wc-film { position: relative; width: 100%; height: clamp(380px, 72vh, 760px);
  background: var(--wc-bg-2); overflow: hidden; }
.wc-film video, .wc-film img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wc-film .placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(128,128,128,0.035) 22px 44px),
    var(--wc-bg-2);
  font-family: var(--wc-type); color: var(--wc-ink-3);
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
/* the poster (first frame) is the resting state; this card only shows if the film can't load */
.wc-film.is-fallback .placeholder { opacity: 1; }
.wc-film .placeholder .big { font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; }
.wc-film .placeholder .sub { font-family: var(--wc-read); font-style: italic; font-size: 14px; color: var(--wc-ink-3); }

/* ---- full-bleed photo ---------------------------------------------------- */
.wc-photo { position: relative; width: 100%; height: clamp(420px, 88vh, 900px);
  overflow: hidden; background: var(--wc-bg-2); }
.wc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wc-photo.is-fallback img { display: none; }
.wc-photo .veil { position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.06), transparent 30%, transparent 60%, rgba(0,0,0,0.30)); }
.wc-photo .cap {
  position: absolute; left: clamp(24px, 6vw, 80px); bottom: clamp(28px, 6vh, 64px);
  max-width: 30ch; color: #fff;
  font-family: var(--wc-read); font-style: italic; font-size: clamp(16px, 2vw, 22px);
  line-height: 1.45; text-shadow: 0 1px 24px rgba(0,0,0,0.5);
}
.wc-photo .frame-note {
  position: absolute; right: clamp(24px, 6vw, 80px); top: clamp(24px, 6vh, 56px);
  font-family: var(--wc-type); font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* a small sketch tucked at a margin */
.margin-mark { width: 70px; opacity: 0.92; }
.margin-mark--right { margin-left: auto; }

/* ---- dark band (the ethos) ---------------------------------------------- */
.band-dark { background: var(--wc-bg); color: var(--wc-ink); }

/* ---- close + footer ------------------------------------------------------ */
.wc-close { text-align: center; }
.wc-close .word { font-family: var(--wc-type); font-weight: 400; letter-spacing: 0.22em;
  text-transform: uppercase; font-size: clamp(28px, 6vw, 64px); color: var(--wc-ink); }
.wc-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 40px clamp(24px, 6vw, 80px); border-top: 1px solid var(--wc-rule);
  font-family: var(--wc-type); font-size: 11px; letter-spacing: 0.06em; color: var(--wc-ink-3); }
.wc-foot-lk { color: var(--wc-ink-3); text-decoration: none; transition: color 0.2s ease; }
.wc-foot-lk:hover { color: var(--wc-accent); }

/* ---- sketch draw-on + reveal -------------------------------------------- */
.wc-mark svg { width: 100%; height: auto; overflow: visible; display: block; }
.wc-mark svg path, .wc-mark svg circle { fill: none; stroke: var(--wc-ink);
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; }
.wc-mark.accent svg path, .wc-mark.accent svg circle { stroke: var(--wc-accent); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* caret — zero layout footprint: inline anchor has no height, the bar is drawn
   by an absolutely-positioned pseudo, so adding/removing the caret never reflows
   the wordmark (no settle "drop" when typing finishes). */
.caret { position: relative; display: inline-block; width: 0; height: 0;
  margin: 0; vertical-align: baseline; }
.caret::before { content: ""; position: absolute; left: 3px; bottom: 0;
  width: 2px; height: 0.74em; background: var(--wc-accent);
  animation: wcCaret 1.06s steps(1) infinite; }
@keyframes wcCaret { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }

/* the gull on the foggy photo: a slow soaring loop — a bird riding the breeze.
   Wanders up and to the right and settles back, so it loops with no jump. */
.gull-fly { animation: gullFly 9s ease-in-out infinite; transform-origin: 50% 60%; will-change: transform; }
@keyframes gullFly {
  0%   { transform: translate(0,0) rotate(0deg); }
  25%  { transform: translate(9px,-13px) rotate(-3deg); }
  50%  { transform: translate(20px,-7px) rotate(-1deg); }
  75%  { transform: translate(10px,-18px) rotate(-4.5deg); }
  100% { transform: translate(0,0) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-fade { transition: none; }
  .hero h1 { transform: none; transition: none; }
  .caret::before, .scroll-cue .ln, .gull-fly { animation: none; }
  .gull-fly { transform: none; }
  .wc-menu, .wc-menu-btn .bars i { transition: none; }
}

/* ---- mobile thumb menu: bottom-right hamburger, opens the nav upward ----- */
.wc-menu-btn, .wc-menu { display: none; }   /* desktop: top nav handles it */

@media (max-width: 640px) {
  .wc-nav .links { display: none; }          /* links move to the thumb menu */

  .wc-menu-btn {
    display: flex; align-items: center; justify-content: center;
    position: fixed; right: 18px; bottom: 18px; z-index: 60;
    width: 54px; height: 54px; border-radius: 50%;
    background: var(--wc-bg); border: 1px solid var(--wc-rule);
    box-shadow: 0 10px 26px -10px rgba(0,0,0,0.45);
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: background 0.3s ease, border-color 0.3s ease;
  }
  .wc-menu-btn .bars { position: relative; width: 20px; height: 13px; }
  .wc-menu-btn .bars i {
    position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px;
    background: var(--wc-ink); transition: transform 0.28s ease, opacity 0.2s ease;
  }
  .wc-menu-btn .bars i:nth-child(1) { top: 0; }
  .wc-menu-btn .bars i:nth-child(2) { top: 6px; }
  .wc-menu-btn .bars i:nth-child(3) { top: 12px; }
  .wc-menu-btn.open .bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .wc-menu-btn.open .bars i:nth-child(2) { opacity: 0; }
  .wc-menu-btn.open .bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .wc-menu {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; right: 18px; bottom: 84px; z-index: 59;
    min-width: 220px; max-width: 78vw; overflow: hidden;
    background: var(--wc-bg); border: 1px solid var(--wc-rule); border-radius: 14px;
    padding: 6px; box-shadow: 0 18px 44px -16px rgba(0,0,0,0.5);
    opacity: 0; transform: translateY(12px) scale(0.98); transform-origin: bottom right;
    pointer-events: none; transition: opacity 0.24s ease, transform 0.24s cubic-bezier(.2,.7,.3,1);
  }
  .wc-menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .wc-menu-lk {
    font-family: var(--wc-type); font-size: 15px; letter-spacing: 0.04em; text-transform: lowercase;
    color: var(--wc-ink); text-decoration: none; text-align: left;
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 15px 18px; border: 0; background: none; cursor: pointer; border-radius: 9px;
  }
  .wc-menu-lk + .wc-menu-lk { border-top: 1px solid var(--wc-rule); border-radius: 0; }
  .wc-menu-lk:active { background: var(--wc-bg-2); }
  .wc-menu-lk.is-current { color: var(--wc-accent); }
  .wc-menu-theme { color: var(--wc-ink-3); }
  .wc-menu-theme .glyph { display: inline-flex; color: var(--wc-accent); }
  .wc-menu-theme .glyph svg { width: 16px; height: 16px; display: block; }
}
