/* ============================================================
   Crown & Dial Timepieces — main stylesheet (2026-09 redesign)
   Light / white theme. One family: Archivo. Logo brown as accent.
   Motion: js/motion.js (GSAP + ScrollTrigger, CSS fallback here).
   ============================================================ */

:root {
  --bg: #FFFFFF;           /* page */
  --bg-2: #F6F5F3;         /* alternate section, warm light grey */
  --card: #FFFFFF;         /* listing surfaces — photos on white sit seamlessly */
  --ink: #17140F;          /* near-black, headlines + body */
  --brown: #382818;        /* the logo brown — accent, buttons, deep band */
  --brown-2: #4E3A26;      /* hover shade */
  --cream: #F7F2E9;        /* text on brown */
  --muted: #6F675F;        /* secondary text */
  --line: rgba(23, 20, 15, 0.12);
  --line-soft: rgba(23, 20, 15, 0.07);
  --shadow-card: 0 1px 2px rgba(23, 20, 15, 0.04), 0 10px 30px rgba(23, 20, 15, 0.05);
  --shadow-lift: 0 2px 6px rgba(23, 20, 15, 0.05), 0 30px 70px rgba(23, 20, 15, 0.14);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --d-fast: 0.35s;
  --d: 0.8s;
  --d-slow: 1.2s;

  --radius: 22px;
  --radius-sm: 14px;
  --gutter: clamp(20px, 4.5vw, 72px);
  --section: clamp(88px, 12vh, 168px);
  --nav-h: 84px;
  --nav-h-compact: 62px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--brown); color: var(--cream); }

:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; border-radius: 4px; }

/* ---------- type ---------- */

h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }

h2 { font-size: clamp(2.1rem, 4.8vw, 3.9rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); letter-spacing: -0.015em; }

.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.32rem);
  line-height: 1.5;
  color: var(--muted);
  font-weight: 450;
  max-width: 34em;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 1.2rem;
}

p + p { margin-top: 1em; }

.section-head { max-width: 780px; margin-bottom: clamp(2.6rem, 5vw, 4.6rem); }
.section-head .lead { margin-top: 1.2rem; }

/* ---------- layout ---------- */

.wrap { max-width: 1360px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

section { position: relative; padding-top: var(--section); padding-bottom: var(--section); }

.hairline-top { border-top: 1px solid var(--line-soft); }

.section-alt { background: var(--bg-2); }

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  padding: 0.95em 1.9em;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: transform var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease), background var(--d-fast) ease, border-color var(--d-fast) ease, color var(--d-fast) ease;
  will-change: transform;
}
.btn:hover { background: var(--brown); border-color: var(--brown); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(23, 20, 15, 0.2); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: rgba(23, 20, 15, 0.05); box-shadow: none; color: var(--ink); border-color: var(--line); transform: translateY(-2px); }

.btn-cream { background: #fff; border-color: #fff; color: var(--brown); }
.btn-cream:hover { background: #fff; border-color: #fff; color: var(--brown); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25); }

/* legacy hero variant class still used on some pages */
.btn-ghost-light { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost-light:hover { background: rgba(23, 20, 15, 0.05); color: var(--ink); box-shadow: none; }

.btn .arrow { transition: transform var(--d-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.textlink {
  font-weight: 650;
  color: var(--ink);
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-size: 100% 1.5px;
  background-position: 0 100%;
  padding-bottom: 3px;
  transition: background-size var(--d-fast) var(--ease), color var(--d-fast) ease;
}
.textlink:hover { background-size: 30% 1.5px; color: var(--brown); }

/* ---------- nav (sticky, shrinks + blurs on scroll) ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0);
  transition: height 0.5s var(--ease), background var(--d-fast) ease, box-shadow var(--d-fast) ease;
}
.nav.scrolled, .nav.compact {
  height: var(--nav-h-compact);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.8rem; }
.brand img { height: 42px; width: auto; transition: height 0.5s var(--ease); }
.nav.compact .brand img, .nav.scrolled .brand img { height: 32px; }
.brand-name { font-weight: 750; font-size: 1.06rem; letter-spacing: -0.01em; line-height: 1.1; }
.brand-name small { display: block; font-size: 0.7rem; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.nav-links a:not(.btn) {
  position: relative;
  font-size: 0.97rem;
  font-weight: 550;
  color: var(--ink);
  opacity: 0.72;
  transition: opacity var(--d-fast) ease;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--d-fast) var(--ease);
}
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"] { font-weight: 650; }
.nav-links .btn { padding: 0.62em 1.4em; font-size: 0.94rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 75;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  margin: 6px auto;
  transition: transform var(--d-fast) var(--ease), opacity var(--d-fast) ease;
}

/* mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--d-fast) ease;
}
.menu.open { opacity: 1; pointer-events: auto; }
body.menu-locked .nav { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.menu > a {
  font-size: clamp(2rem, 9vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  padding: 0.35em 0;
  border-bottom: 1px solid var(--line-soft);
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s ease;
}
.menu.open > a { transform: none; opacity: 1; }
.menu.open > a:nth-child(1) { transition-delay: 0.05s; }
.menu.open > a:nth-child(2) { transition-delay: 0.1s; }
.menu.open > a:nth-child(3) { transition-delay: 0.15s; }
.menu.open > a:nth-child(4) { transition-delay: 0.2s; }
.menu.open > a:nth-child(5) { transition-delay: 0.25s; }
.menu > a[aria-current="page"] { color: var(--brown); }
.menu-contact { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

body.menu-locked, body.no-scroll { overflow: hidden; }
body.menu-locked .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-locked .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-locked .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero (full-bleed light video) ---------- */

.hero-v {
  position: relative;
  height: 100svh;
  min-height: 620px;
  background: #F4F3F0;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0;
}
.hero-media {
  position: absolute;
  inset: -12% 0 0 0;         /* extra height so the parallax never shows an edge */
  height: 124%;
  opacity: 0;
  transition: opacity 0.9s ease;
  will-change: transform;
}
.hero-media.lit { opacity: 1; }
.hero-media video, .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% 50%;
}
.hero-media .poster { position: absolute; inset: 0; }
.hero-media video { position: relative; z-index: 1; }
/* text scrim: left side only, so the watch stays clean */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.62) 32%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 30%);
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; width: 100%; padding-top: var(--nav-h); }
.hero-copy { max-width: 640px; }
.hero-v .eyebrow { color: var(--brown); margin-bottom: 0; }
.hero-v h1 {
  color: var(--ink);
  font-size: clamp(2.6rem, 5.6vw, 5.2rem);
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin: 1.1rem 0 1.4rem;
}
.hero-v h1 .line { display: block; }
.hero-v h1 .w { display: inline-block; white-space: pre; }
/* pre-JS / CSS fallback: words rise one by one */
.hero-v h1 .w {
  opacity: 0;
  transform: translateY(0.55em);
  animation: word-rise 0.9s var(--ease) forwards;
  animation-delay: calc(0.25s + var(--wi, 0) * 0.09s);
}
@keyframes word-rise { to { opacity: 1; transform: none; } }

.hero-sub {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  max-width: 42ch;
}
.hero-v .eyebrow, .hero-v .hero-sub, .hero-v .hero-cta {
  opacity: 0;
  animation: fade-up 0.9s var(--ease) forwards;
  animation-delay: 1.05s;
}
.hero-v .eyebrow { animation-delay: 0.15s; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 4vh;
  z-index: 2;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  background: rgba(23, 20, 15, 0.16);
  overflow: hidden;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: var(--ink);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 60%, 100% { top: 110%; } }

/* ---------- ambient video sections ---------- */

.ambient { position: relative; isolation: isolate; overflow: hidden; background: var(--bg-2); }
.ambient-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.ambient-media.lit { opacity: 1; }
.ambient-media video, .ambient-media img { width: 100%; height: 100%; object-fit: cover; }
.ambient-media .poster { position: absolute; inset: 0; }
.ambient-media video { position: relative; z-index: 1; }
.ambient-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5) 45%, rgba(255, 255, 255, 0.78));
}

/* ---------- trust strip ---------- */

.trust {
  position: relative;
  z-index: 2;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(2rem, 4vw, 3.2rem) 0;
}
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 4rem); }
.trust-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.trust-item .tick {
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--brown);
  background: #fff;
}
.trust-item h3 { font-size: 1.05rem; margin-bottom: 0.25rem; letter-spacing: -0.01em; }
.trust-item p { font-size: 0.95rem; color: var(--muted); line-height: 1.5; }

/* ---------- listing cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1.2rem, 2.2vw, 2rem);
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), border-color 0.55s ease;
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); border-color: transparent; }

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card-media img, .card-media svg {
  width: 84%;
  height: 84%;
  object-fit: contain;
  transition: transform 1.1s var(--ease);
}
.card:hover .card-media img, .card:hover .card-media svg { transform: scale(1.07); }

.tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  padding: 0.5em 1em;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.6s ease 0.35s, transform 0.6s var(--ease) 0.35s;
}
.card.in .tag { opacity: 1; transform: none; }
.tag-stock { background: var(--ink); color: #fff; }
.tag-source { background: rgba(255, 255, 255, 0.85); color: var(--brown); border: 1px solid var(--line); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.card-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; border-top: 1px solid var(--line-soft); }
.card-brand { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem; }
.card-body h3 { font-size: 1.22rem; margin-bottom: 0.25rem; }
.card-ref { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.card-blurb { font-size: 0.94rem; color: var(--muted); line-height: 1.55; margin-top: 0.7rem; }
.card-foot {
  margin-top: auto;
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.card-price { font-size: 1.32rem; font-weight: 800; letter-spacing: -0.02em; }
.card-foot .btn { padding: 0.62em 1.35em; font-size: 0.94rem; }

/* ---------- brand tiles ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: clamp(0.8rem, 1.5vw, 1.2rem);
  margin-bottom: clamp(2.2rem, 4vw, 3.2rem);
}
.tile {
  font: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.4rem 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
              background var(--d-fast) ease, color var(--d-fast) ease, border-color var(--d-fast) ease;
  will-change: transform;
}
.tile:hover { transform: translateY(-4px) scale(1.025); box-shadow: var(--shadow-lift); background: #fff; }
.tile:active { transform: scale(0.99); }
.tile strong { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.tile span { display: block; margin-top: 0.45rem; font-size: 0.85rem; font-weight: 550; color: var(--muted); transition: color var(--d-fast) ease; }
.tile.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tile.active:hover { background: var(--brown); border-color: var(--brown); }
.tile.active span { color: rgba(255, 255, 255, 0.62); }

.count-note { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.6rem; }

#collection-cards { transition: opacity 0.35s ease, transform 0.35s var(--ease); }
#collection-cards.fading { opacity: 0; transform: translateY(10px); }

/* ---------- steps (how buying works) ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 2vw, 2rem); counter-reset: step; }
.step {
  position: relative;
  padding: 1.6rem 1.5rem 1.7rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brown);
  opacity: 0.28;
  line-height: 1;
  margin-bottom: 1.1rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: 0.97rem; color: var(--muted); line-height: 1.6; }

/* big steps variant (how-to-buy, sell pages) */
.steps-lg { display: flex; flex-direction: column; gap: 0; counter-reset: bigstep; }
.step-lg {
  display: grid;
  grid-template-columns: minmax(80px, 200px) 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.2rem, 4vw, 3.6rem) 0;
  border-top: 1px solid var(--line);
}
.step-lg:last-child { border-bottom: 1px solid var(--line); }
.step-lg::before {
  counter-increment: bigstep;
  content: counter(bigstep, decimal-leading-zero);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--brown);
  opacity: 0.22;
}
.step-lg h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.7rem; }
.step-lg p { max-width: 56ch; color: var(--muted); }
.ambient .step-lg { border-color: rgba(23, 20, 15, 0.14); }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.about-mark {
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
}
.about-mark img { width: min(56%, 220px); }
.about-copy h2 { margin-bottom: 1.3rem; }
.about-copy p { color: var(--ink); }
.about-copy .sig { margin-top: 1.6rem; font-weight: 700; color: var(--brown); }
.about-copy .sig small { display: block; font-weight: 500; color: var(--muted); font-size: 0.9rem; }

/* ---------- deep band (final CTA) ---------- */

.band { background: var(--brown); color: var(--cream); }
.band h2 { color: var(--cream); max-width: 18ch; }
.band .lead { color: rgba(247, 242, 233, 0.66); }
.band .eyebrow { color: rgba(247, 242, 233, 0.6); }
.band-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.4rem; }
.band .btn-ghost { color: var(--cream); border-color: rgba(247, 242, 233, 0.3); }
.band .btn-ghost:hover { background: rgba(247, 242, 233, 0.1); color: var(--cream); }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line-soft);
  transition: padding var(--d-fast) var(--ease);
}
.channel:first-child { border-top: 1px solid var(--line-soft); }
.channel:hover { padding-left: 0.6rem; }
.channel strong { display: block; font-size: 1.1rem; letter-spacing: -0.01em; }
.channel span { font-size: 0.92rem; color: var(--muted); }
.channel .arrow { color: var(--brown); transition: transform var(--d-fast) var(--ease); }
.channel:hover .arrow { transform: translateX(5px); }

/* ---------- form ---------- */

.form { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: clamp(1.6rem, 3.5vw, 2.8rem); }
.form h3 { margin-bottom: 0.4rem; }
.form .form-sub { font-size: 0.95rem; color: var(--muted); margin-bottom: 1.6rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.88rem; font-weight: 650; margin-bottom: 0.45rem; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 0.85em 1em;
  transition: border-color var(--d-fast) ease, box-shadow var(--d-fast) ease, background var(--d-fast) ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(23, 20, 15, 0.1);
}
.field textarea { resize: vertical; min-height: 120px; }
.form .btn { width: 100%; justify-content: center; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 1rem; text-align: center; }
.form-success { display: none; text-align: center; padding: 3rem 1rem; }
.form-success h3 { margin-bottom: 0.6rem; }
.form-success p { color: var(--muted); }
.form.sent form { display: none; }
.form.sent .form-success { display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ---------- inquiry modal ---------- */

.modal-veil {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(23, 20, 15, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: end center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--d-fast) ease;
}
.modal-veil.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(560px, 100%);
  background: var(--bg);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  transform: translateY(40px);
  transition: transform 0.5s var(--ease);
  max-height: 88svh;
  overflow-y: auto;
}
.modal-veil.open .modal { transform: none; }
@media (min-width: 640px) {
  .modal-veil { place-items: center; }
  .modal { border-radius: var(--radius); }
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.3rem; }
.modal-close { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 6px; line-height: 0; }
.modal-close:hover { color: var(--ink); }
.modal .piece { font-size: 0.95rem; color: var(--muted); margin-bottom: 1.5rem; }
.modal .piece strong { color: var(--ink); }
.modal-actions { display: flex; flex-direction: column; gap: 0.7rem; }
.modal-actions .btn { width: 100%; justify-content: center; }
.modal-note { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 1.1rem; }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--line-soft); padding: clamp(3rem, 6vw, 5rem) 0 2.5rem; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; align-items: start; }
.foot-lockup img { height: 120px; width: auto; }
.foot-tag { margin-top: 1.2rem; color: var(--muted); font-size: 0.95rem; max-width: 30ch; }
.foot-links { display: grid; grid-template-columns: repeat(2, minmax(140px, auto)); gap: 0.5rem 3rem; }
.foot-links a { font-size: 0.97rem; font-weight: 550; color: var(--ink); opacity: 0.72; padding: 0.3em 0; transition: opacity var(--d-fast) ease; }
.foot-links a:hover { opacity: 1; }
.foot-base {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- page intro (subpages) ---------- */

.page-head { padding-top: calc(var(--nav-h) + clamp(56px, 9vh, 120px)); padding-bottom: clamp(40px, 6vh, 80px); }
.page-head h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); letter-spacing: -0.04em; margin-top: 1rem; }
.page-head .lead { margin-top: 1.3rem; }

/* ---------- reveal on scroll (CSS fallback when GSAP is absent) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--d) var(--ease), transform var(--d) var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.in { opacity: 1; transform: none; }
/* GSAP takes over: kill the CSS transition so tweens are the only motion */
html.gsap .reveal { transition: none; transform: none; opacity: 1; }
html.gsap .reveal:not(.in) { visibility: hidden; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-mark { aspect-ratio: 16 / 10; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --nav-h: 72px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .trust-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile { padding: 1.1rem 1rem 0.95rem; }
  .tile strong { font-size: 1.02rem; }
  .steps { grid-template-columns: 1fr; }
  .step-lg { grid-template-columns: 1fr; gap: 0.8rem; }
  .hero-v { height: 92svh; min-height: 560px; align-items: flex-end; }
  .hero-content { padding-bottom: 12vh; }
  .hero-v h1 { font-size: clamp(2.3rem, 10vw, 3.2rem); }
  .hero-media video, .hero-media img { object-position: 50% 30%; }
  .hero-scrim {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.05) 32%, rgba(255, 255, 255, 0.55) 62%, rgba(255, 255, 255, 0.92) 100%);
  }
  .scroll-cue { display: none; }
  .foot-links { grid-template-columns: 1fr; }
  .foot-lockup img { height: 96px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01s !important; animation-delay: 0s !important; transition-duration: 0.01s !important; }
  .hero-v h1 .w { opacity: 1; transform: none; }
  .hero-v .eyebrow, .hero-v .hero-sub, .hero-v .hero-cta { opacity: 1; }
  .hero-media, .ambient-media { opacity: 1; }
  .hero-media video, .ambient-media video { display: none; }   /* poster only */
  .reveal, html.gsap .reveal:not(.in) { opacity: 1; transform: none; visibility: visible; }
  .card .tag { opacity: 1; transform: none; }
  .scroll-cue { display: none; }
}

/* ---------- email-capture popup (js/popup.js) ---------- */

.popup-veil {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(23, 20, 15, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: end center;
  opacity: 0;
  transition: opacity var(--d-fast) ease;
}
.popup-veil.open { opacity: 1; }
.popup {
  position: relative;
  width: min(880px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  transform: translateY(40px);
  transition: transform 0.5s var(--ease);
  max-height: 92svh;
}
.popup-veil.open .popup { transform: none; }
.popup-body { padding: clamp(1.8rem, 4vw, 3.2rem); display: flex; flex-direction: column; align-items: flex-start; }
.popup-body .eyebrow { margin-bottom: 0.9rem; }
.popup-title {
  font-weight: 800;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--ink);
}
.popup-copy { margin-top: 0.9rem; color: var(--muted); font-size: 1rem; max-width: 32ch; }
.popup-form { width: 100%; margin-top: 1.6rem; }
.popup-label { display: block; font-size: 0.88rem; font-weight: 650; margin-bottom: 0.45rem; }
.popup-input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 0.85em 1em;
  transition: border-color var(--d-fast) ease, box-shadow var(--d-fast) ease, background var(--d-fast) ease;
}
.popup-input:focus { outline: none; background: #fff; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 20, 15, 0.1); }
.popup-err { min-height: 1.2em; font-size: 0.85rem; color: #8C4A45; margin: 0.4rem 0 0.4rem; }
.popup-btn {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  padding: 0.95em 1.9em;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: background var(--d-fast) ease, border-color var(--d-fast) ease, transform var(--d-fast) var(--ease);
}
.popup-btn:hover { background: var(--brown); border-color: var(--brown); transform: translateY(-1px); }
.popup-btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.popup-btn:focus-visible, .popup-no:focus-visible, .popup-close:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }
.popup-done { margin-top: 1.6rem; font-size: 1.15rem; font-weight: 650; color: var(--brown); }
.popup-no { background: none; border: 0; cursor: pointer; font: inherit; font-size: 0.9rem; color: var(--muted); margin-top: 1.1rem; padding: 0.3em 0; text-decoration: underline; text-underline-offset: 3px; }
.popup-no:hover { color: var(--ink); }
.popup-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255, 255, 255, 0.85); border: 0; border-radius: 999px; cursor: pointer; color: var(--muted); padding: 8px; line-height: 0; }
.popup-close:hover { color: var(--ink); }
.popup-media { display: none; background-size: cover; background-position: center; min-height: 100%; background-color: var(--bg-2); }
@media (min-width: 640px) {
  .popup-veil { place-items: center; padding: var(--gutter); }
  .popup { border-radius: var(--radius); grid-template-columns: 1.05fr 1fr; }
  .popup-media { display: block; }
  .popup-body { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .popup-veil, .popup { transition: none; }
  .popup { transform: none; }
}
