/* Hey, Caddy. Brand palette from the moodboard: Ocean Black, Deck Taupe,
   Sail Ivory, Champagne Steel, Teak Natural. Not Scale House branding. */

@font-face { font-family: 'Switzer'; src: url('/fonts/Switzer-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('/fonts/Switzer-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('/fonts/Switzer-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('/fonts/Switzer-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --black: #0d0d0e;
  --taupe: #a39684;
  --ivory: #f4f0e9;
  --steel: #b8b1a7;
  --teak: #b5854f;
  --white: #ffffff;
  --ink-soft: #55524d;
  --line: rgba(13, 13, 14, 0.14);
  --header-h: 64px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: 'Switzer', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, dl, dd, figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* Wordmark, matches the emboss on the product */
.wordmark {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}
.wordmark sup { font-size: 0.5em; font-weight: 500; vertical-align: top; position: relative; top: -0.15em; margin-left: 1px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  border-radius: 2px;
  font: 500 15px/1 'Switzer', system-ui, sans-serif;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.btn:hover { background: #2b2a28; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-small { height: 40px; padding: 0 18px; font-size: 14px; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

/* Hero stage. No JS or reduced motion: views sit in a plain grid. */
.hero { background: var(--white); }
.stage { padding: calc(var(--header-h) + 40px) var(--gutter) 56px; max-width: 1400px; margin: 0 auto; }
.hero-copy { max-width: 520px; }
.hero-copy h1 {
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero-copy p { margin-top: 20px; color: var(--ink-soft); max-width: 44ch; }
.hero-cta { margin-top: 28px; }

.views { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; margin-top: 56px; }
.view img { width: 100%; height: auto; filter: drop-shadow(0 22px 22px rgba(13, 13, 14, 0.12)); }
/* The detail render is cropped by its own frame, so feather the cut top and right edges instead of leaving a hard line */
.view[data-view="Detail"] img {
  filter: none;
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 9%), linear-gradient(to bottom, transparent 0, #000 7%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, transparent 0, #000 9%), linear-gradient(to bottom, transparent 0, #000 7%);
  mask-composite: intersect;
}
.hero-meta { display: none; }

/* Pinned stage, enabled by main.js */
.js .hero.is-stage .stage {
  height: 100svh;
  padding: calc(var(--header-h) + 24px) var(--gutter) 28px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: 32px;
  align-items: center;
}
.js .hero.is-stage .hero-copy { grid-column: 1; grid-row: 1; }
.js .hero.is-stage .views {
  grid-column: 2; grid-row: 1;
  display: block;
  position: relative;
  height: 100%;
  min-height: 0;
  margin: 0;
}
.js .hero.is-stage .view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3% 0 5%;
}
.js .hero.is-stage .view img { width: 100%; height: 100%; object-fit: contain; }

.js .hero.is-stage .hero-meta {
  grid-column: 1 / -1; grid-row: 2;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.view-count { min-width: 64px; font-variant-numeric: tabular-nums; }
.view-name { min-width: 120px; font-weight: 500; }
.ticks { display: flex; gap: 6px; margin-left: auto; }
.ticks button {
  width: 44px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
}
.ticks button::after {
  content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 2px;
  background: var(--line); transition: background-color 150ms ease;
}
.ticks button[aria-current="true"]::after { background: var(--black); }
.ticks button:hover::after { background: var(--taupe); }

/* Sections */
.section { padding: 112px 0; }
.details-text h2, .join-text h2 {
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.join-text p { margin-top: 20px; color: var(--ink-soft); max-width: 46ch; }


/* Walkthrough. Default (no JS, reduced motion): copy with every step listed, then the figure. */
.walk { background: var(--white); border-top: 1px solid var(--line); padding: 96px 0; }
.walk-stage {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
}
.walk-copy h2 {
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.walk-steps { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.walk-step { padding: 20px 0; border-bottom: 1px solid var(--line); }
.step-tag { display: block; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
.walk-step h3 { margin: 10px 0 0; font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.1; letter-spacing: -0.015em; }
.walk-step p { margin: 8px 0 0; color: var(--ink-soft); max-width: 42ch; }
.walk-ticks { display: none; }
.walk-svg { display: block; width: 100%; height: auto; overflow: visible; }
.walk-img { filter: drop-shadow(0 22px 22px rgba(13, 13, 14, 0.12)); }
.dim-label { font: 500 30px 'Switzer', system-ui, sans-serif; letter-spacing: 0.12em; }

/* Pinned walkthrough, enabled by main.js */
.js .walk.is-stage { padding: 0; border-top: 0; }
.js .walk.is-stage .walk-stage {
  height: 100svh;
  padding: calc(var(--header-h) + 24px) var(--gutter) 28px;
  gap: 32px;
}
.js .walk.is-stage .walk-copy { display: flex; flex-direction: column; justify-content: center; align-self: stretch; }
.js .walk.is-stage .walk-steps { display: grid; border-top: 0; margin-top: 36px; }
.js .walk.is-stage .walk-step { grid-area: 1 / 1; padding: 0; border-bottom: 0; }
.js .walk.is-stage .walk-ticks { display: flex; margin: 36px 0 0; }
.js .walk.is-stage .walk-ticks button { width: 32px; }
.js .walk.is-stage .walk-media { height: 100%; min-height: 0; }
.js .walk.is-stage .walk-svg { width: 100%; height: 100%; }

/* Details: heading left, cutout flush to the right edge so the photo's cropped edges meet the section's */
.details { background: var(--ivory); overflow: hidden; }
.details-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.details-text {
  align-self: center;
  padding: 96px 40px 96px max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter)));
}
.details-media { display: flex; justify-content: flex-end; align-items: flex-end; }
.details-media img { display: block; width: min(100%, 44vw, 680px); height: auto; }
.details-text h2 { font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.04; }

/* Join */
.join { background: var(--white); border-top: 1px solid var(--line); }
.join-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: end; }
.join-form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.join-row { display: flex; gap: 12px; }
.join-row input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(13, 13, 14, 0.4);
  border-radius: 2px;
  background: var(--white);
  color: var(--black);
  font: 400 16px/1 'Switzer', system-ui, sans-serif;
}
.join-row input[type="email"]::placeholder { color: #8a867f; }
.join-row input[type="email"]:focus { outline: 2px solid var(--black); outline-offset: 1px; border-color: var(--black); }
.join-form [aria-invalid="true"] { border-color: #a4261c; }
.form-note { margin-top: 12px; font-size: 14px; color: var(--ink-soft); min-height: 1.5em; }
.form-note.is-error { color: #a4261c; }
.form-note.is-ok { color: var(--black); font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Footer */
.site-footer { background: var(--black); color: var(--ivory); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px 40px; flex-wrap: wrap; }
.footer-line { color: var(--steel); }
.footer-small { margin-left: auto; font-size: 14px; color: var(--taupe); }

/* Reveal on scroll (JS sets the start state, so no-JS stays visible) */
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* Tablet and down */
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .join-inner { grid-template-columns: 1fr; gap: 40px; }
  .details-inner { grid-template-columns: 1fr; }
  .details-text { padding: 64px var(--gutter) 40px; }
  .details-media img { width: min(100%, 380px); }
  .join-inner { align-items: start; }
  .walk { padding: 64px 0; }
  .dim { stroke-width: 4; }
  .dim-label { font-size: 52px; }
  .walk-stage { grid-template-columns: 1fr; gap: 32px; }
  .js .walk.is-stage .walk-stage { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 8px; padding: calc(var(--header-h) + 16px) var(--gutter) 16px; }
  .js .walk.is-stage .walk-copy { justify-content: flex-start; align-self: start; }
  .js .walk.is-stage .walk-copy h2 { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }
  .js .walk.is-stage .walk-steps { margin-top: 16px; }
  .js .walk.is-stage .walk-step h3 { font-size: 1.35rem; margin-top: 6px; }
  .js .walk.is-stage .walk-step p { font-size: 15px; line-height: 1.4; margin-top: 4px; }
  .js .walk.is-stage .walk-ticks { margin-top: 16px; }
  .js .walk.is-stage .walk-ticks button { width: 28px; }

  .js .hero.is-stage .stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: calc(var(--header-h) + 16px) var(--gutter) 16px;
    row-gap: 8px;
  }
  .js .hero.is-stage .hero-copy { grid-column: 1; grid-row: 1; }
  .js .hero.is-stage .hero-copy h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .js .hero.is-stage .hero-copy p { margin-top: 12px; font-size: 15px; line-height: 1.45; }
  .js .hero.is-stage .hero-cta { display: none; }
  .js .hero.is-stage .views { grid-column: 1; grid-row: 2; }
  .js .hero.is-stage .hero-meta { grid-row: 3; gap: 12px; font-size: 11px; padding-top: 12px; }
  .view-count { min-width: 52px; }
  .view-name { min-width: 0; }
  .ticks button { width: 28px; }
}

@media (max-width: 480px) {
  .join-row { flex-direction: column; }
  .join-row input[type="email"] { flex: none; width: 100%; }
  .join-row .btn { width: 100%; }
  .footer-small { margin-left: 0; }
  .js .hero.is-stage .hero-copy p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
}
