/* ==========================================================================
   Bradex — bradex.uk
   Palette: abbey green, Ham-stone gold, cream.
   ========================================================================== */

:root {
  --green-950: #04160f;
  --green-900: #07261d;
  --green-800: #0b3628;
  --green-700: #0f4a38;
  --green-500: #14724f;

  --gold: #bca036;
  --gold-light: #e6cf7c;
  --gold-pale: #f3e4ae;
  --gold-deep: #8a7326;

  --cream: #f4efe4;
  --cream-2: #ebe4d3;
  --ink: #16150f;
  --ink-soft: #4a4739;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 4px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* anchor jumps land below the fixed topbar */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--cream);
  background: var(--green-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--green-950); }

/* Film grain overlay */
.grain {
  pointer-events: none;
  position: fixed;
  inset: -50%;
  z-index: 50;
  opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 1%); }
  40% { transform: translate(1%, -2%); }
  60% { transform: translate(-1%, 2%); }
  80% { transform: translate(2%, -1%); }
}

/* ---------- Typography ---------- */
.eyebrow {
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.005em;
}
.section-title .pos {
  font-family: var(--sans);
  font-size: .8rem;
  font-style: italic;
  font-weight: 300;
  letter-spacing: .1em;
  color: var(--gold);
  vertical-align: middle;
  margin-left: .5em;
}

.prose p {
  margin: 0 0 1.2em;
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  line-height: 1.7;
}
.prose em { font-style: italic; font-family: var(--serif); font-size: 1.12em; }
.prose strong { font-weight: 500; }

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: .18em;
  background: linear-gradient(105deg, #8a7326 0%, #d9bd57 22%, #f6e9b4 38%, #c9a53a 55%, #8a7326 75%, #e2c569 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 9s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 250% 50%; }
}

/* ---------- Layout ---------- */
.container {
  width: min(var(--container), 100% - 2 * var(--pad));
  margin-inline: auto;
}
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: transform .5s var(--ease-out), background .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  background: linear-gradient(135deg, #e2c569, #bca036 50%, #9a8129);
  color: var(--green-950);
}
.btn--gold:hover { background: linear-gradient(135deg, #f0d77f, #cdb04a 50%, #a88e2f); }
.btn--ghost {
  border-color: rgba(230, 207, 124, .45);
  color: var(--gold-light);
}
.btn--ghost:hover { border-color: var(--gold-light); background: rgba(230, 207, 124, .06); }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--pad);
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream);
  mix-blend-mode: normal;
  transition: background .4s, backdrop-filter .4s, padding .4s;
}
.topbar.is-scrolled {
  padding: 12px var(--pad);
  background: rgba(7, 38, 29, .72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(230, 207, 124, .12);
}
.topbar__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 600; font-size: 1.05rem; letter-spacing: .22em;
  color: var(--gold-light);
}
.topbar__mark { width: 18px; height: 20px; fill: var(--gold); }
.topbar__nav { display: flex; gap: clamp(16px, 2.5vw, 34px); justify-content: center; }
.topbar__nav a { position: relative; padding: 4px 0; opacity: .8; transition: opacity .3s; }
.topbar__nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--gold); transition: right .5s var(--ease-out);
}
.topbar__nav a:hover { opacity: 1; }
.topbar__nav a:hover::after { right: 0; }
.topbar__time {
  justify-self: end;
  display: inline-flex; gap: 12px; align-items: baseline;
  font-variant-numeric: tabular-nums;
  color: var(--gold-light);
}
.topbar__time-label { opacity: .55; font-size: .66rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 140px var(--pad) 120px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(20, 114, 79, .35), transparent 70%),
    linear-gradient(180deg, var(--green-950) 0%, var(--green-900) 55%, var(--green-800) 100%);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__abbey {
  /* Sits fully inside the hero and dissolves top and bottom, so it is never hard-cut at the edge. */
  position: absolute;
  left: 50%; bottom: 0;
  width: min(60vw, 460px);
  transform: translateX(-50%);
  opacity: .065;
  mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 58%, transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 58%, transparent 90%);
}
.hero__abbey svg { width: 100%; height: auto; aspect-ratio: 120/130; fill: var(--gold-light); }
.hero__glow {
  position: absolute; left: 50%; top: 40%;
  width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(188, 160, 54, .16), transparent 60%);
  filter: blur(30px);
  animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .8; }
  50% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}
.hero__inner { position: relative; max-width: 820px; }
.hero__wordmark {
  margin: 0;
  font-size: clamp(3.4rem, 13vw, 10.5rem);
  line-height: .95;
}
.hero__tagline {
  margin: 26px 0 18px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--gold-pale);
}
.hero__lede {
  margin: 0 auto 40px;
  max-width: 560px;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.75;
  color: rgba(244, 239, 228, .82);
}
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 34px;
  width: 22px; height: 38px;
  transform: translateX(-50%);
  border: 1px solid rgba(230, 207, 124, .4);
  border-radius: 12px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 7px;
  width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: var(--gold-light);
  animation: scrollhint 2.2s ease-in-out infinite;
}
@keyframes scrollhint {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

/* ---------- Pillars (what the brand stands for) ---------- */
.pillars {
  /* Flat green-800 so the run hero -> pillars -> showcase is one continuous tone. */
  position: relative;
  padding: clamp(24px, 3vw, 40px) 0 clamp(64px, 8vw, 110px);
  background: var(--green-800);
}
.pillars__list {
  list-style: none;
  margin: 0;
  padding: clamp(30px, 4vw, 48px) 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px clamp(28px, 4vw, 64px);
  border-top: 1px solid rgba(230, 207, 124, .18);
}
.pillars__list li { display: grid; gap: 12px; align-content: start; }
.pillars__num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: .14em;
  color: var(--gold);
}
.pillars__list h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.pillars__list p {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.2rem, 1.45vw, 1.42rem);
  line-height: 1.4;
  color: var(--cream);
}

/* ---------- Showcase (watch) ---------- */
.showcase {
  /* Follows straight on from the pillars band (green-800), so start there and deepen. */
  background:
    radial-gradient(ellipse 60% 50% at 30% 50%, rgba(20, 114, 79, .28), transparent 70%),
    linear-gradient(180deg, var(--green-800), var(--green-950) 40%, var(--green-900));
  overflow: hidden;
}
.showcase__water {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: .9;
}
.showcase__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.showcase__stage {
  position: relative;
  perspective: 1400px;
  display: grid;
  place-items: center;
  padding: 20px 0 60px;
}
.watch-3d {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 600 / 900;
  transform-style: preserve-3d;
  will-change: transform;
}
/* idle sway and pointer tilt are both driven from main.js (initTilt) so the crystal glare can follow */
.watch { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Static layer carries the soft drop shadow; the hands layer floats a few px above it. */
.watch-static { filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .6)); }
.watch-hands  { transform: translateZ(12px); }
.showcase__pedestal {
  position: absolute; left: 50%; bottom: 20px;
  width: 60%; height: 40px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(188, 160, 54, .35), transparent 70%);
  filter: blur(14px);
}

.showcase__copy .prose { color: rgba(244, 239, 228, .85); }
.spec {
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  border-top: 1px solid rgba(230, 207, 124, .18);
  padding-top: 26px;
}
.spec div { display: grid; gap: 4px; }
.spec dt { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.spec dd { margin: 0; font-family: var(--serif); font-size: 1.15rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.showcase__note {
  margin: 36px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold-pale);
}

/* ---------- Footer ---------- */
.footer {
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(188, 160, 54, .10), transparent 70%),
    var(--green-950);
  border-top: 1px solid rgba(230, 207, 124, .12);
  padding: clamp(56px, 8vw, 96px) 0 44px;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(244, 239, 228, .6);
}
.footer__sig {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.footer__sig img { width: clamp(180px, 22vw, 260px); height: auto; opacity: .95; }
.footer__sig span { font-size: .7rem; letter-spacing: .3em; color: var(--gold); }
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(230, 207, 124, .12);
}
.footer__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1rem; letter-spacing: .22em; color: var(--gold-light); }
.footer__mark { width: 16px; height: 18px; fill: var(--gold); }
.footer__meta { margin: 0; }
.footer__meta a { color: var(--gold-light); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar__nav { display: none; }
  .pillars__list { grid-template-columns: 1fr; gap: 30px; }
  .showcase__water { display: none; }
  .showcase__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .spec { grid-template-columns: 1fr; }
  .topbar__time-label { display: none; }
  .footer__inner { justify-content: center; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .hero__glow, .hero__scroll span, .wordmark { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
