/* ==========================================================================
   E.N.K Public Procurement Consultants - public site
   Palette and typography follow the printed Business Portfolio.
   ========================================================================== */

/* --- Fonts (self-hosted Montserrat - one variable file covers 100–900) --- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/montserrat.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/montserrat-italic.woff2') format('woff2');
}

/* --- Tokens -------------------------------------------------------------- */
:root {
  --wine-900: #2E070D;
  --wine-800: #45101A;
  --wine-700: #581722;
  --wine-600: #6E2430;
  --copper-700: #8E5325;
  --copper-600: #A9682F;
  --copper-500: #B87F42;
  --copper-400: #CB9A5E;
  --sand-100: #FAF7F3;
  --sand-200: #F4EDE5;
  --sand-300: #E8DCCE;
  --ink: #1C1416;
  --ink-soft: #4A3C40;
  --muted: #7A6A6E;
  --line: rgba(69, 16, 26, 0.12);
  --white: #ffffff;

  /* Both tokens are Montserrat - kept separate so headings can be re-pointed
     at a different face later without touching every rule. */
  --font-display: 'Montserrat', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Montserrat', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(46, 7, 13, 0.06);
  --shadow: 0 14px 40px rgba(46, 7, 13, 0.10);
  --shadow-lg: 0 30px 70px rgba(46, 7, 13, 0.18);

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(2.75rem, 5.5vw, 4.5rem);
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  /* `clip` rather than `hidden`: it stops decorative overhang widening the
     page without turning html into a scroll container, which would break the
     sticky header. */
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  /* 14px, but expressed relatively so browser font-size preferences still work. */
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.62;
  color: var(--ink-soft);
  background: var(--sand-100);
  /* Must match html above - `hidden` here would make body the sticky header's
     scrolling ancestor and stop it from ever sticking to the viewport. */
  overflow-x: clip;
}
body.nav-open { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--wine-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--copper-600); }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

/* A geometric sans needs negative tracking and a heavier weight at display
   sizes to hold the authority the old serif got from its letterforms. */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--wine-800);
  line-height: 1.18;
  margin: 0 0 .6em;
  font-weight: 800;
  letter-spacing: -0.025em;
}
/* h1/h2 run light - thin letterforms need looser tracking than the heavy
   weights above, or the strokes start closing up at display sizes. */
h1 { font-size: clamp(2.1rem, 4.6vw, 3.45rem); font-weight: 300; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.65rem, 3.1vw, 2.4rem); font-weight: 300; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.12rem, 1.9vw, 1.42rem); letter-spacing: -0.018em; font-weight: 700; }
h4 { font-size: 1.05rem; letter-spacing: -0.015em; font-weight: 700; }
h5 { font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* Body copy is justified. Hyphenation is not optional here: without it,
   justification in a narrow column opens rivers of white space between the
   words. It needs the lang attribute on <html>, which head.ejs sets.        */
p {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
/* Blocks that are centred on purpose keep their alignment - justify would
   silently override the inherited centring. */
.text-center p,
.section-head--center p,
.vision-band p,
.error-page p,
.preloader__sub,
.eyebrow {
  text-align: center;
  -webkit-hyphens: manual;
  hyphens: manual;
}
/* The eyebrow is an inline-flex row, not running text; centring is handled by
   its own modifier so it must fall back to the start edge. */
.eyebrow { text-align: start; }

/* The UA stylesheet gives strong/b `bolder`, which resolves to just 400 against
   a 300 base - set it explicitly so emphasis still reads as emphasis. */
strong, b { font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--copper-500);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--copper-500); color: #fff; }

/* --- Layout primitives --------------------------------------------------- */
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap-narrow { width: min(820px, 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--cream { background: var(--sand-200); }
.section--wine { background: var(--wine-800); color: rgba(255, 255, 255, .82); }
.section--wine h2, .section--wine h3 { color: #fff; }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
/* Services: four across on desktop, so the cards stay compact rather than
   stretching to half the page width. Collapses to 2, then 1. */
.grid-services { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .split--reverse > *:first-child { order: 2; }
  /* Text stays optically centred even though the row now stretches. */
  .split > *:not(.media-frame) { align-self: center; }
  /* The photo matches the text column's height instead of setting it: taking
     the image out of flow stops its intrinsic height driving the grid row, so
     a tall portrait crops to fit rather than stretching the whole section. */
  .split > .media-frame { min-height: 360px; }
  .split > .media-frame img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
  }
}

.stack > * + * { margin-top: 1.1rem; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* --- Type helpers -------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  /* wrap + max-width stop a long eyebrow forcing the page wider than the
     viewport - a flex container otherwise sizes to its content. */
  flex-wrap: wrap;
  max-width: 100%;
  gap: .65rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--copper-600);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--copper-500);
}
.eyebrow--center { justify-content: center; }
.section-head { max-width: 62ch; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.lead { font-size: 1rem; line-height: 1.6; color: var(--ink-soft); }
.muted { color: var(--muted); }
.serif-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--wine-800);
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--wine-800);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .93rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  box-shadow: 0 6px 18px rgba(46, 7, 13, .16);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(46, 7, 13, .24); color: #fff; }
.btn svg { width: 16px; height: 16px; }
.btn--copper { --btn-bg: linear-gradient(120deg, var(--copper-600), var(--copper-500)); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--wine-800);
  border-color: rgba(69, 16, 26, .28);
  box-shadow: none;
}
.btn--ghost:hover { --btn-bg: var(--wine-800); color: #fff; }
.btn--light {
  --btn-bg: rgba(255,255,255,.10);
  --btn-fg: #fff;
  border-color: rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
}
.btn--light:hover { --btn-bg: #fff; --btn-fg: var(--wine-800); }
.btn--sm { padding: .65rem 1.25rem; font-size: .78rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--copper-600);
}
.link-arrow svg { width: 15px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 243, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck {
  box-shadow: 0 6px 24px rgba(46, 7, 13, .07);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }

.main-nav ul { display: flex; align-items: center; gap: clamp(.5rem, 1.8vw, 1.6rem); list-style: none; }
.main-nav a {
  position: relative;
  display: block;
  padding: .5rem 0;
  font-size: .87rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--wine-800);
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--copper-500);
  transition: width .28s var(--ease);
}
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }
.main-nav a.is-active { color: var(--copper-600); }

.header-cta { display: none; }
@media (min-width: 1080px) { .header-cta { display: inline-flex; } }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--wine-800);
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  position: relative;
  transition: background .2s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px; height: 2px;
  background: currentColor;
  transition: transform .3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 960px) { .nav-toggle { display: none; } }
@media (max-width: 959px) {
  /* An element with a backdrop-filter becomes the containing block for its
     position:fixed descendants. That collapsed the off-canvas menu to the
     height of the header itself, so only the first link was reachable. The
     frost is barely perceptible behind an .88-alpha bar and costs real GPU
     time on phones, so it is dropped at the widths where the menu exists. */
  .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(250, 247, 243, .97);
  }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    /* Belt and braces: an explicit height keeps the panel full-screen even if
       something later re-introduces a filter or transform on an ancestor. */
    height: calc(100vh - var(--header-h));
    height: calc(100svh - var(--header-h));
    background: var(--wine-800);
    padding: 2.5rem var(--gutter);
    overflow-y: auto;
    /* Fades and slides vertically rather than parking off to the right - a
       fixed panel at translateX(100%) doubles the document's scroll width,
       which lets phones swipe sideways into an empty half-page. */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  }
  body.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .main-nav a { font-size: 1.35rem; font-family: var(--font-display); text-transform: none; letter-spacing: 0; color: #fff; padding: .7rem 0; }
  .main-nav a.is-active { color: var(--copper-400); }
  .main-nav li { width: 100%; border-bottom: 1px solid rgba(255,255,255,.09); }
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  /* Sized so the header + hero + stat band all fit in one screen: the 140px
     allows for the stat band, and svh keeps it honest on mobile browsers
     whose toolbars change the viewport height. */
  min-height: clamp(400px, calc(100vh - var(--header-h) - 140px), 680px);
  min-height: clamp(400px, calc(100svh - var(--header-h) - 140px), 680px);
  padding-block: clamp(2rem, 4vw, 3.5rem);
  background: var(--wine-900);
  color: rgba(255,255,255,.86);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
/* 42% favours the upper-middle of the frame - where faces sit in the
   conference photography - since a wide hero crops a source photo hard. */
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; opacity: .42; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 100% at 12% 0%, rgba(169, 104, 47, .38), transparent 62%),
    linear-gradient(100deg, var(--wine-900) 28%, rgba(46, 7, 13, .82) 62%, rgba(46, 7, 13, .55) 100%);
}
/* The hero headline is the one heading that runs black rather than light. */
.hero h1 { color: #fff; max-width: 16ch; font-weight: 900; letter-spacing: -0.03em; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--copper-400), #E7C79A);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .eyebrow { color: var(--copper-400); }
.hero .eyebrow::before { background: var(--copper-400); }
.hero__text { max-width: 60ch; font-size: clamp(1.03rem, 1.5vw, 1.18rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.hero__inner { max-width: 780px; }

/* Two-column hero: copy on the left, the live procurement cycle on the right */
.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.02fr .98fr; }
  /* Cap the diagram by the height available, expressed as a width via its
     600:440 ratio - otherwise a tall diagram stretches the hero past the fold
     on short screens and pushes the stats down again. */
  .hero .cycle { max-width: min(620px, calc((100svh - var(--header-h) - 250px) * 600 / 440)); }
}

/* Stat rail - its own slim band directly under the hero */
.stat-band {
  background: var(--wine-900);
  border-top: 1px solid rgba(255,255,255,.10);
  padding-block: clamp(1.25rem, 2.4vw, 1.75rem);
}
.stat-band dl {
  margin: 0;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.stat-band dt {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 700;
  color: var(--copper-400);
  line-height: 1;
}
.stat-band dd {
  margin: .5rem 0 0;
  font-size: .78rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

/* Inner-page hero (about, services, …) - compact band with the photograph
   reading through a wine-to-copper wash rather than being blacked out. */
.page-hero {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 3.75rem) clamp(2.25rem, 4vw, 3rem);
  background: var(--wine-800);
  color: rgba(255,255,255,.85);
  overflow: hidden;
  isolation: isolate;
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; background: var(--wine-900); }
.page-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: .85;
  /* Multiply pushes the photo into the brand palette instead of just dimming
     it, so the image stays legible while reading as ENK wine/copper. */
  mix-blend-mode: luminosity;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(46,7,13,.94) 0%, rgba(69,16,26,.80) 42%, rgba(142,83,37,.52) 100%);
}
.page-hero h1 { color: #fff; max-width: 20ch; margin-bottom: .35em; }
.page-hero p { max-width: 58ch; }
.page-hero .breadcrumbs { margin-bottom: .9rem; }
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: .5rem;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin-bottom: 1.5rem;
}
.breadcrumbs a { color: rgba(255,255,255,.78); }
.breadcrumbs a:hover { color: var(--copper-400); }
.breadcrumbs span[aria-hidden] { opacity: .45; }

/* --- Live procurement cycle ---------------------------------------------
   Animated SVG diagram. Stages light up in sequence; a glow sweeps the ring.
   Two colour sets: default reads on the dark hero, .cycle--light on cream.   */
.cycle {
  --cyc-ring: rgba(255, 255, 255, .13);
  --cyc-arrow: var(--copper-400);
  --cyc-label: rgba(255, 255, 255, .72);
  --cyc-label-on: #fff;
  --cyc-dot: var(--copper-500);
  --cyc-dot-on: #F0D6AE;
  --cyc-halo: rgba(203, 154, 94, .30);
  --cyc-title: #fff;
  --cyc-sweep: rgba(240, 214, 174, .85);

  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  aspect-ratio: 600 / 440; /* matches the viewBox */
}
.cycle--light {
  --cyc-ring: rgba(69, 16, 26, .14);
  --cyc-arrow: var(--copper-600);
  --cyc-label: var(--ink-soft);
  --cyc-label-on: var(--wine-800);
  --cyc-dot: var(--copper-600);
  --cyc-dot-on: var(--wine-700);
  --cyc-halo: rgba(169, 104, 47, .22);
  --cyc-title: var(--wine-800);
  --cyc-sweep: var(--copper-600);
}
.cycle svg { width: 100%; height: 100%; overflow: visible; }

.cycle__ring { fill: none; stroke: var(--cyc-ring); stroke-width: 1.5; }

.cycle__arrows path { fill: none; stroke: var(--cyc-arrow); stroke-width: 2.4; stroke-linecap: round; }
.cycle marker path { fill: var(--cyc-arrow); stroke: none; }

/* The travelling glow: one short dash chasing the ring (804.25 = 2πr). */
.cycle__sweep {
  fill: none;
  stroke: var(--cyc-sweep);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 46 758.25;
  transform-origin: 220px 220px;
  animation: cyc-sweep 11s linear infinite;
  opacity: .9;
}
@keyframes cyc-sweep { to { transform: rotate(360deg); } }

/* transform-box: fill-box is required - without it an SVG element's
   transform-origin resolves against the viewport, not the shape itself. */
.cycle__dot {
  fill: var(--cyc-dot);
  transform-box: fill-box;
  transform-origin: center;
  transition: fill .45s var(--ease), transform .45s var(--ease);
}
.cycle__halo {
  fill: var(--cyc-halo);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .45s var(--ease);
}
.cycle__label {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  fill: var(--cyc-label);
  transition: fill .45s var(--ease);
}
.cycle__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  fill: var(--cyc-title);
}

.cycle__stage.is-active .cycle__dot { fill: var(--cyc-dot-on); transform: scale(1.35); }
.cycle__stage.is-active .cycle__halo { opacity: 1; animation: cyc-pulse 2.1s var(--ease) infinite; }
.cycle__stage.is-active .cycle__label { fill: var(--cyc-label-on); }
@keyframes cyc-pulse {
  0%   { transform: scale(.7); opacity: .9; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cycle__sweep { animation: none; opacity: .45; }
  .cycle__stage.is-active .cycle__halo { animation: none; }
}
/* The diagram scales with the viewBox, so on narrow screens the label text
   has to grow in user units just to stay legible in CSS pixels. */
@media (max-width: 700px) {
  .cycle__label { font-size: 21px; }
  .cycle__title { font-size: 32px; }
}

/* --- Cards --------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(169,104,47,.35); }
.card__body { padding: clamp(1.5rem, 2.6vw, 2rem); display: flex; flex-direction: column; flex: 1; }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand-300); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card h3 { margin-bottom: .55rem; }
.card p { font-size: .97rem; }
.card .link-arrow { margin-top: auto; padding-top: 1.25rem; }

/* --- Service card --------------------------------------------------------
   Image capped with a wine/copper duotone, a ghosted index numeral, and a
   copper icon badge straddling the image edge.                              */
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%; /* fills its reveal wrapper, which fills the grid cell */
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(46, 7, 13, .16);
  border-color: rgba(169, 104, 47, .38);
}

.svc-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  /* Caps the image on wide screens - without this a two-column grid gives the
     card a ~330px tall photo and the card dominates the section. */
  max-height: 190px;
  overflow: hidden;
  /* Shows through when a service has no image of its own. */
  background: linear-gradient(140deg, var(--wine-700), var(--wine-900));
}
.svc-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.svc-card:hover .svc-card__media img { transform: scale(1.06); }

/* Copper wash that fades in on hover. */
.svc-card__media::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(140deg, rgba(142,83,37,.42), rgba(69,16,26,.30));
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.svc-card:hover .svc-card__media::before { opacity: 1; }

/* Darkened top and bottom only - keeps the numeral and badge legible while
   leaving the middle of the photograph clear. */
.svc-card__media::after {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(46,7,13,.46) 0%, rgba(46,7,13,.04) 38%, rgba(46,7,13,.72) 100%);
}

.svc-card__num {
  position: absolute;
  top: .5rem; right: 1.15rem;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: rgba(255, 255, 255, .26);
}

.svc-card__icon {
  position: absolute;
  z-index: 4;
  left: clamp(1.25rem, 2.4vw, 1.75rem);
  top: -22px;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--copper-500), var(--copper-700));
  color: #fff;
  box-shadow: 0 10px 26px rgba(46, 7, 13, .3);
  transition: transform .45s var(--ease);
}
.svc-card__icon svg { width: 20px; height: 20px; }
.svc-card:hover .svc-card__icon { transform: translateY(-4px) rotate(-6deg); }

.svc-card__body {
  position: relative; /* anchors the icon badge straddling the media edge */
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.7rem 1.25rem 1.15rem;
}
.svc-card__body h3 { margin-bottom: .45rem; font-size: 1.05rem; line-height: 1.3; }
.svc-card__body p { font-size: .88rem; line-height: 1.65; color: var(--muted); }

/* Stretched link - the anchor's ::after covers the whole card. */
.svc-card__link { color: var(--wine-800); }
.svc-card__link::after { content: ''; position: absolute; inset: 0; z-index: 4; }
.svc-card:hover .svc-card__link { color: var(--copper-700); }

.svc-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--copper-700);
}
.svc-card__cta .arrow {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  flex-shrink: 0;
  border: 1px solid rgba(169, 104, 47, .4);
  border-radius: 50%;
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.svc-card__cta .arrow svg { width: 15px; height: 15px; }
.svc-card:hover .svc-card__cta .arrow {
  background: linear-gradient(120deg, var(--copper-600), var(--copper-500));
  border-color: transparent;
  color: #fff;
  transform: translateX(4px);
}

/* --- Feature list -------------------------------------------------------- */
.check-list { list-style: none; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .85rem; align-items: flex-start; }
.check-list svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: .22rem; color: var(--copper-600); }

.dash-list { list-style: none; display: grid; gap: .8rem; }
.dash-list li { position: relative; padding-left: 1.6rem; }
.dash-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .78em;
  width: 12px; height: 2px;
  background: var(--copper-500);
}

/* --- Media frame ---------------------------------------------------------
   Depth is carried by light, not by a second rectangle: a diffused copper
   glow grounds the photo, a four-stop shadow ramp gives it real elevation,
   and a hairline outline (inset, so it follows the radius) defines the edge.
   A slim gradient rule runs down the outer side as the only hard accent.     */
.media-frame {
  --frame-radius: 28px;
  position: relative;
  isolation: isolate;
}

/* Ambient warm light pooling under and behind the photo. */
.media-frame::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 12% -8% -12% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(169, 104, 47, .55), rgba(169, 104, 47, 0) 72%);
  filter: blur(42px);
}

/* Slim gradient rule, flush outside the photo's leading edge. */
.media-frame::after {
  content: '';
  position: absolute;
  z-index: 2;
  left: -16px;
  top: 42px;
  bottom: 42px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--copper-400), var(--wine-700));
}

.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--frame-radius);
  /* A ramp of four shadows reads as real elevation; one big blur reads flat. */
  box-shadow:
    0 1px 2px rgba(46, 7, 13, .06),
    0 8px 16px rgba(46, 7, 13, .07),
    0 22px 40px rgba(46, 7, 13, .10),
    0 44px 80px rgba(46, 7, 13, .13);
  outline: 1px solid rgba(46, 7, 13, .10);
  outline-offset: -1px;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}

/* On stacked layouts the photo runs the full column, so the accents need
   room inside the page rather than hanging off its edge. */
@media (max-width: 899px) {
  .media-frame { margin-inline: 20px; }
}

.media-frame:hover img {
  transform: translateY(-7px);
  box-shadow:
    0 2px 4px rgba(46, 7, 13, .07),
    0 12px 22px rgba(46, 7, 13, .09),
    0 30px 54px rgba(46, 7, 13, .13),
    0 60px 104px rgba(46, 7, 13, .17);
}

/* Mirrored variant - glow and rule swap to the other side. */
.media-frame--flip::before { inset: 12% 4% -12% -8%; }
.media-frame--flip::after { left: auto; right: -16px; }

/* --- Vision band ---------------------------------------------------------
   Compact but treated: copper hairlines, a warm glow, an oversized ghosted
   quote mark, rule-flanked label and a gilded quote.                        */
.vision-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.25rem, 4.4vw, 3.25rem);
  text-align: center;
  background: linear-gradient(115deg, var(--wine-900) 0%, var(--wine-800) 48%, #5C1A23 100%);
  border-block: 1px solid rgba(203, 154, 94, .3);
}
/* Warm light from above, and a soft diagonal sheen across the band. */
.vision-band::before,
.vision-band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
}
.vision-band::before { background: radial-gradient(58% 130% at 50% 0%, rgba(169, 104, 47, .38), transparent 70%); }
.vision-band::after  { background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, .05) 50%, transparent 66%); }

.vision-band__inner { position: relative; max-width: 62ch; margin-inline: auto; }

/* Oversized watermark behind the quote. Centred on the block, not hung above
   it - the band clips its overflow, so a negative offset just disappears. */
.vision-band__mark {
  position: absolute;
  top: 50%;
  left: 50%;
  /* A quote glyph sits near the top of its em box, so the offset is tuned to
     centre the visible mark behind the text rather than the box. */
  transform: translate(-50%, -18%);
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(8rem, 15vw, 13rem);
  font-weight: 900;
  line-height: 1;
  color: rgba(203, 154, 94, .13);
  pointer-events: none;
  user-select: none;
}

.vision-band__label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  margin: 0 0 .9rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--copper-400);
}
.vision-band__label::before,
.vision-band__label::after {
  content: '';
  width: clamp(24px, 5vw, 46px);
  height: 1px;
}
.vision-band__label::before { background: linear-gradient(90deg, transparent, var(--copper-500)); }
.vision-band__label::after  { background: linear-gradient(90deg, var(--copper-500), transparent); }

.vision-band__quote {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  /* 400 rather than 300: gradient-clipped light italic reads as washed out,
     and plain warm white holds the line better than a muddy gradient here. */
  font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  line-height: 1.45;
  letter-spacing: -.015em;
  color: #FFFAF3;
  text-shadow: 0 1px 18px rgba(46, 7, 13, .45);
}
.vision-band__quote::before { content: '\201C'; }
.vision-band__quote::after  { content: '\201D'; }

/* --- Vision / mission cards ---------------------------------------------- */
/* Guiding-principle cards. The label carries a short copper rule - the same
   device as the section eyebrows - instead of a heavy border down one side. */
.vm-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.vm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(46, 7, 13, .09);
  border-color: rgba(169, 104, 47, .32);
}
.vm-card--dark {
  background: linear-gradient(150deg, var(--wine-800), var(--wine-900));
  color: rgba(255, 255, 255, .84);
  border-color: transparent;
}
.vm-card--dark:hover { box-shadow: 0 22px 48px rgba(46, 7, 13, .28); }
.vm-card--dark h3, .vm-card--dark .serif-quote { color: #fff; }

.vm-card__label {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .9rem;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--copper-600);
}
.vm-card__label::before {
  content: '';
  width: 22px;
  height: 2px;
  flex-shrink: 0;
  background: var(--copper-500);
}
.vm-card--dark .vm-card__label { color: var(--copper-400); }
.vm-card--dark .vm-card__label::before { background: var(--copper-400); }
.vm-card .dash-list { gap: .65rem; font-size: .95rem; }

/* --- Founder ------------------------------------------------------------- */
.founder { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 920px) { .founder { grid-template-columns: minmax(280px, 380px) 1fr; } }
.founder__photo { position: relative; }
.founder__photo img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.founder__photo::after {
  content: '';
  position: absolute;
  inset: auto -14px -14px auto;
  width: 62%; height: 62%;
  border: 2px solid var(--copper-500);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.founder__name { margin: 1.5rem 0 .2rem; font-size: 1.6rem; }
.founder__role {
  font-size: .78rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--copper-600);
}
.highlight-list { list-style: none; display: grid; gap: 1rem; margin-top: 2rem; }
.highlight-list li {
  padding: 1rem 1.25rem;
  background: var(--sand-200);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--copper-500);
}
.highlight-list strong { display: block; color: var(--wine-800); font-size: .96rem; }
.highlight-list span { font-size: .87rem; color: var(--muted); }

/* --- Conference (accordion) ---------------------------------------------- */
.conf-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.conf-item + .conf-item { margin-top: 1.25rem; }
.conf-item:hover { box-shadow: var(--shadow-sm); border-color: rgba(169,104,47,.3); }
/* Events still taking registrations sit above the archive and carry a little
   more weight, so the list reads as "act on these" then "for reference". */
.conf-item--open {
  border-color: rgba(169,104,47,.45);
  box-shadow: 0 10px 30px rgba(46,7,13,.07);
}
.conf-item__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }
.conf-item__tags .tag { margin-bottom: 0; }
.conf-item__head {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  grid-template-columns: 1fr;
}
@media (min-width: 780px) { .conf-item__head { grid-template-columns: 180px 1fr auto; } }
.conf-item__thumb { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; background: var(--sand-300); }
.conf-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.conf-item h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); margin-bottom: .5rem; }
.conf-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .86rem; color: var(--muted); }
.conf-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.conf-meta svg { width: 15px; height: 15px; color: var(--copper-600); }

.tag {
  display: inline-block;
  padding: .3rem .85rem;
  border-radius: 999px;
  background: rgba(169,104,47,.12);
  color: var(--copper-700);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}
.tag--wine { background: rgba(69,16,26,.10); color: var(--wine-700); }
/* Filled, not tinted: it has to separate at a glance from the event-type tag
   sitting next to it, which is already copper on copper. */
.tag--open {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--copper-600);
  color: #fff;
}
.tag--open::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
}

details.disclosure { border-top: 1px solid var(--line); }
details.disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.4rem, 2.5vw, 2rem);
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: .86rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--wine-800);
  transition: background .2s var(--ease);
}
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary:hover { background: var(--sand-200); }
details.disclosure > summary::after {
  content: '';
  width: 10px; height: 10px;
  border-right: 2px solid var(--copper-600);
  border-bottom: 2px solid var(--copper-600);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .3s var(--ease);
  flex-shrink: 0;
}
details.disclosure[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.disclosure__body { padding: 0 clamp(1.4rem, 2.5vw, 2rem) 1.75rem; }

.attendee-grid {
  list-style: none;
  columns: 2;
  column-gap: 2rem;
  font-size: .93rem;
}
@media (min-width: 720px) { .attendee-grid { columns: 3; } }
.attendee-grid li {
  break-inside: avoid;
  padding: .4rem 0 .4rem 1.4rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.attendee-grid li::before {
  content: '';
  position: absolute; left: 0; top: 1.05em;
  width: 9px; height: 2px; background: var(--copper-500);
}

/* --- Clients marquee ----------------------------------------------------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 1rem; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.client-chip {
  display: grid;
  place-items: center;
  padding: .95rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--wine-800);
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
}
.client-chip img { max-height: 32px; width: auto; }

/* --- Article ------------------------------------------------------------- */
.prose { font-size: 14px; line-height: 1.85; }
.prose > p:first-of-type { font-size: 14px; color: var(--ink); }
.prose h2, .prose h3 { margin-top: 2.2em; }
.prose blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--copper-500);
  background: var(--sand-200);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--wine-800);
}
/* --- Forms --------------------------------------------------------------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 3rem);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.35rem; }
.field label {
  display: block;
  margin-bottom: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wine-800);
}
.field .req { color: var(--copper-600); }
input[type=text], input[type=email], input[type=tel], input[type=url],
input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%;
  padding: .85rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--sand-100);
  font: inherit;
  font-size: .98rem;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--copper-500);
  box-shadow: 0 0 0 3px rgba(184,127,66,.16);
}
.field-row { display: grid; gap: 1.35rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.75rem;
  font-size: .95rem;
  border-left: 3px solid;
}
.alert--ok { background: #EDF7EF; border-color: #3F8F55; color: #23582F; }
.alert--error { background: #FBEDED; border-color: #B23B3B; color: #7E2626; }

/* --- Contact info -------------------------------------------------------- */
.info-list { list-style: none; display: grid; gap: 1.5rem; }
.info-list li { display: flex; gap: 1.1rem; align-items: flex-start; }
.info-list .ico {
  display: grid; place-items: center;
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 12px;
  background: rgba(169,104,47,.12);
  color: var(--copper-700);
}
.info-list .ico svg { width: 20px; height: 20px; }
.info-list strong {
  display: block;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .2rem; font-weight: 700;
}
.info-list a, .info-list span { color: var(--wine-800); font-size: 1.02rem; }

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(158deg, var(--wine-900) 0%, #3B0E16 46%, var(--wine-800) 100%);
  color: rgba(255,255,255,.6);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 1.6rem;
  font-size: .95rem;
}
/* Copper hairline along the very top edge, fading out to both sides. */
.site-footer::before {
  content: '';
  position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(203,154,94,.5) 20%, rgba(203,154,94,.8) 50%, rgba(203,154,94,.5) 80%, transparent);
}
/* Ambient copper wash behind the brand column. */
.site-footer::after {
  content: '';
  position: absolute; z-index: -1;
  left: -8%; top: -34%; width: 56%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(169,104,47,.34), transparent 70%);
  pointer-events: none;
}
/* Oversized ghosted wordmark, bled off the bottom-right corner. Kept faint
   enough to read as texture rather than a second logo competing with the real
   one - at higher contrast it cuts visibly through the link columns. */
.footer-mark {
  position: absolute; z-index: -1;
  right: -3%; bottom: -26%;
  font-size: clamp(7rem, 16vw, 16rem);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1;
  color: rgba(203,154,94,.035);
  pointer-events: none;
  user-select: none;
}
.footer-grid {
  display: grid;
  gap: clamp(2rem, 4.5vw, 3.25rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
/* Give the brand column the extra room its larger logo needs. */
@media (min-width: 1000px) {
  .footer-grid { grid-template-columns: 1.75fr 1fr 1.3fr 1.3fr; }
}
.site-footer h5 {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
/* Same short copper rule the section eyebrows and vm-card labels use. */
.site-footer h5::before {
  content: '';
  flex: none;
  width: 18px; height: 2px;
  background: var(--copper-500);
}
.site-footer a {
  display: inline-block;
  color: rgba(255,255,255,.6);
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.site-footer a:hover { color: var(--copper-400); transform: translateX(3px); }
.site-footer ul { list-style: none; display: grid; gap: .8rem; font-size: .9rem; }

.footer-brand { max-width: 38ch; }
/* The light logo is copper on transparent - lift it so it reads on the wine footer. */
.footer-brand img {
  width: auto;
  height: clamp(66px, 7.5vw, 92px);
  margin-bottom: 1.7rem;
  filter: brightness(1.32) saturate(1.05);
}
.footer-brand p { font-size: .9rem; line-height: 1.8; color: rgba(255,255,255,.58); }

.footer-contact li { display: flex; align-items: flex-start; gap: .7rem; }
.footer-contact svg { flex: none; width: 15px; height: 15px; margin-top: .28em; color: var(--copper-500); }
.footer-contact span { color: rgba(255,255,255,.6); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  padding-top: 1.6rem;
  font-size: .8rem;
  color: rgba(255,255,255,.38);
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-credit { display: inline-flex; align-items: center; gap: .34rem; }
.footer-credit svg { width: 12px; height: 12px; color: var(--copper-500); }
.footer-credit a { color: rgba(255,255,255,.58); }
.social-row { display: flex; gap: .65rem; margin-top: 1.6rem; }
.social-row a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  transition: all .25s var(--ease);
}
.social-row a:hover { background: var(--copper-600); border-color: var(--copper-600); color: #fff; transform: translateY(-3px); }
.social-row svg { width: 17px; height: 17px; }

/* --- Preloader -----------------------------------------------------------
   Runs on every page load, and only when JS is present to take it away
   again: the overlay covers the entire page, so it must never be able to
   strand a visitor behind it. Both the .js and .preloading classes are set
   by the inline script in head.ejs before first paint.                      */
.preloader { display: none; }
html.js.preloading .preloader {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(158deg, var(--wine-900) 0%, #3B0E16 46%, var(--wine-800) 100%);
  transition: transform .75s cubic-bezier(.76, 0, .24, 1);
}
html.js.preloading .preloader::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(44% 38% at 50% 47%, rgba(169,104,47,.30), transparent 70%);
  pointer-events: none;
}
/* The curtain lifts to reveal the page rather than simply fading out. */
html.js.preloading .preloader.is-done { transform: translateY(-100%); }

.preloader__inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 1.05rem;
}

/* The wordmark is typed as live text rather than shown as the logo PNG: it
   stays sharp at any size, and it is the only way to reveal it letter by
   letter. Montserrat 900 is the same face the hero headline uses.           */
.preloader__type {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.preloader__word {
  display: block;
  background: linear-gradient(100deg, var(--copper-700) 0%, var(--copper-400) 54%, #E9C79A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  clip-path: inset(0 100% 0 0);
  animation: pre-type .62s steps(1, end) .2s forwards;
}
.preloader__caret {
  position: absolute;
  top: 6%;
  bottom: 12%;
  left: 0;
  width: 3px;
  border-radius: 2px;
  background: var(--copper-400);
  animation: pre-caret .62s steps(1, end) .2s forwards,
             pre-blink .72s step-end .2s infinite;
}
/* Stops are the cumulative advance width of E / E. / E.N / E.N. / E.N.K,
   measured in Montserrat 900 with -0.02em tracking, so the reveal lands on
   letter boundaries instead of slicing a glyph in half. steps(1, end) holds
   each frame then jumps, which is what makes it read as keystrokes.         */
@keyframes pre-type {
  0%   { clip-path: inset(0 100% 0 0); }
  16%  { clip-path: inset(0 76.34% 0 0); }
  34%  { clip-path: inset(0 65.69% 0 0); }
  52%  { clip-path: inset(0 37.28% 0 0); }
  70%  { clip-path: inset(0 26.99% 0 0); }
  88%  { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}
@keyframes pre-caret {
  0%   { left: 0; }
  16%  { left: 23.66%; }
  34%  { left: 34.31%; }
  52%  { left: 62.72%; }
  70%  { left: 73.01%; }
  88%  { left: 100%; }
  100% { left: 100%; }
}
@keyframes pre-blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.preloader__sub {
  margin: 0;
  font-size: clamp(.6rem, 1.5vw, .72rem);
  font-weight: 600;
  letter-spacing: .34em;
  /* letter-spacing trails the last character; nudge back to stay optically centred */
  text-indent: .34em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  opacity: 0;
  animation: pre-sub .4s var(--ease) .85s forwards;
}
@keyframes pre-sub {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.preloader__bar {
  position: relative;
  margin-top: .55rem;
  width: min(180px, 44vw);
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,.14);
  overflow: hidden;
}
.preloader__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--copper-600), var(--copper-400));
  animation: pre-bar 1.1s cubic-bezier(.4, 0, .2, 1) .2s forwards;
}
@keyframes pre-bar { from { width: 0; } to { width: 100%; } }

/* --- Scroll reveal -------------------------------------------------------
   Content is only hidden once JS confirms it can reveal it again: the .js
   class is set by main.js. Without JS the page renders fully visible.       */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
/* Directional variants - these follow the base rule so they win. */
.js [data-reveal="left"]  { transform: translateX(-32px); }
.js [data-reveal="right"] { transform: translateX(32px); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal].is-visible { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* The hero entrance uses the same [data-reveal] machinery as everything else
   rather than a standalone CSS animation. That matters: reveals have a
   force-show safety net, so the hero can never be left blank if the animation
   clock stalls. A keyframe with an opacity:0 start has no such backstop. */

/* Parallax layers are moved by JS; this just promotes them and gives the
   image the extra height it needs so the edges never show. */
[data-parallax] { will-change: transform; }
.hero__media img, .page-hero__media img { height: 118%; top: -9%; position: relative; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .js .hero__inner > *, .js .hero .cycle, .js .stat-band dl > * { opacity: 1; animation: none; }
  .hero__media img, .page-hero__media img { height: 100%; top: 0; }
}

/* --- Back to top --------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 1.5rem; bottom: 1.5rem;
  z-index: 90;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--wine-800);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--copper-600); }
.to-top svg { width: 18px; height: 18px; }

/* --- 404 ----------------------------------------------------------------- */
.error-page { display: grid; place-items: center; min-height: 62vh; text-align: center; padding-block: 5rem; }
.error-page .code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 11rem); line-height: 1; color: var(--sand-300); }

/* --- Print --------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .to-top, .hero__actions, .preloader { display: none !important; }
  body { background: #fff; color: #000; }
}
