/* =========================================================================
   VIREÔMONT™ — Custom styles (layered on Bootstrap 5.3)
   Structure convention on every page: section > .container > .row > .col
   ========================================================================= */

:root {
  --abyss: #0F2530;
  --teal: #1E3F4E;
  --sage: #5E7D6E;
  --champagne: #C6A56B;
  --gold-light: #E4CFA3;
  --ivory: #F6F1E7;
  --linen: #ECE4D4;
  --ink: #1A1A18;

  --gold-grad: linear-gradient(90deg, var(--champagne), var(--gold-light), var(--champagne));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 84px;
  --section-y: clamp(5rem, 11vw, 9.5rem);

  --bs-body-font-family: var(--sans);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--ivory);
  --bs-link-color-rgb: 30, 63, 78;
}

/* ---------- Base ---------------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
::selection { background: var(--champagne); color: var(--abyss); }
a { color: inherit; text-decoration-color: var(--champagne); text-underline-offset: 4px; }
a:hover { color: var(--champagne); }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 2000;
  background: var(--champagne); color: var(--abyss); padding: .75rem 1.25rem;
  font-weight: 600; transition: top .3s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Typography ---------------------------------------------------- */
h1, h2, h3, h4, .serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
}
.display-h1 { font-size: clamp(2.75rem, 6vw, 5.5rem); font-weight: 300; line-height: 1.02; }
.display-h2, h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 300; }
h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
h4 { font-size: 1.45rem; }
em, i, .fr { font-family: inherit; font-style: italic; }
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 1.25rem;
}
.lead-serif {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.45;
  font-weight: 400;
}
.measure { max-width: 62ch; }
.measure-narrow { max-width: 46ch; }
.text-champagne { color: var(--champagne) !important; }
.text-ivory { color: var(--ivory) !important; }
.text-muted-ivory { color: rgba(246, 241, 231, .72) !important; }
.text-muted-ink { color: rgba(26, 26, 24, .66) !important; }
.small-print { font-size: .82rem; line-height: 1.65; }
.section-index {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--sans); font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--champagne); margin-bottom: 1.5rem;
}
.section-index::after { content: ""; flex: 0 0 56px; height: 1px; background: var(--gold-grad); }

/* Word-by-word mask reveal */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
[data-split].is-in .w > span { transform: none; }

/* ---------- Sections & surfaces ------------------------------------------ */
.vm-section { position: relative; padding: var(--section-y) 0; overflow: hidden; }
.vm-section--tight { padding: calc(var(--section-y) * .6) 0; }
.bg-abyss { background: var(--abyss); color: var(--ivory); }
.bg-teal { background: var(--teal); color: var(--ivory); }
.bg-ivory { background: var(--ivory); }
.bg-linen { background: var(--linen); }
.bg-abyss h1, .bg-abyss h2, .bg-abyss h3, .bg-teal h2, .bg-teal h3 { color: var(--ivory); }

/* faint paper grain on light sections */
.bg-ivory::before, .bg-linen::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .028; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vm-section > .container { position: relative; z-index: 1; }

.gold-rule { height: 1px; width: 100%; background: var(--gold-grad); border: 0; opacity: 1; margin: 0; }
.gold-rule--short { width: 72px; }

/* Image layers: background image over a teal gradient fallback */
.vm-img {
  position: relative;
  background-color: var(--teal);
  background-image: var(--img, none), linear-gradient(140deg, var(--teal), var(--sage));
  background-size: cover;
  background-position: center;
}
.vm-img--grade { filter: saturate(.82) contrast(1.02); }

/* ---------- Buttons ------------------------------------------------------ */
.btn-vm, .btn-vm-outline, .btn-vm-ghost {
  --pad-x: 1.75rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .85rem;
  padding: 1rem var(--pad-x);
  font-family: var(--sans); font-weight: 600; font-size: .76rem;
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  border-radius: 2px; border: 1px solid var(--champagne);
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
  cursor: pointer; line-height: 1.2;
}
.btn-vm { background: var(--champagne); color: var(--abyss); }
.btn-vm:hover, .btn-vm:focus-visible { background: var(--gold-light); color: var(--abyss); border-color: var(--gold-light); box-shadow: 0 0 0 6px rgba(228, 207, 163, .12); }
.btn-vm-outline { background: transparent; color: inherit; }
.btn-vm-outline:hover, .btn-vm-outline:focus-visible { background: var(--champagne); color: var(--abyss); }
.btn-vm-ghost { border-color: transparent; background: transparent; padding-left: 0; padding-right: 0; color: inherit; }
.btn-vm-ghost:hover { color: var(--champagne); }
.btn-vm .bi, .btn-vm-outline .bi, .btn-vm-ghost .bi, .link-arrow .bi { transition: transform .45s var(--ease); font-size: 1rem; }
.btn-vm:hover .bi, .btn-vm-outline:hover .bi, .btn-vm-ghost:hover .bi, .link-arrow:hover .bi { transform: translateX(6px); }
.btn-vm[disabled], .btn-vm:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-vm--sm { padding: .7rem 1.15rem; font-size: .7rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--champagne);
}

/* ---------- Header ------------------------------------------------------- */
.vm-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1030; height: var(--header-h);
  display: flex; align-items: center; color: var(--ivory);
  transition: background-color .5s var(--ease), backdrop-filter .5s var(--ease), height .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.vm-header.is-scrolled {
  background: rgba(15, 37, 48, .82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: rgba(198, 165, 107, .22);
  height: 70px;
}
.vm-header--solid { background: var(--abyss); }
.vm-brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--ivory); }
.vm-brand:hover { color: var(--ivory); }
.vm-brand img { width: 42px; height: 42px; }
.vm-wordmark { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; letter-spacing: .18em; text-transform: uppercase; line-height: 1; }
.vm-wordmark sup { font-size: .5em; letter-spacing: 0; top: -.9em; }
.vm-nav { display: flex; align-items: center; gap: clamp(.9rem, 1.4vw, 1.6rem); margin: 0; padding: 0; list-style: none; }
.vm-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: rgba(246, 241, 231, .86);
  padding: .35rem 0;
  white-space: nowrap;
}
.vm-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-grad);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.vm-nav a:hover, .vm-nav a[aria-current="page"] { color: var(--ivory); }
.vm-nav a:hover::after, .vm-nav a[aria-current="page"]::after { transform: scaleX(1); }
.vm-header-actions { display: flex; align-items: center; gap: 1rem; }
.vm-user { font-size: .74rem; color: var(--gold-light); letter-spacing: .04em; }
.vm-user button { background: none; border: 0; color: rgba(246,241,231,.7); font-size: .72rem; text-decoration: underline; text-underline-offset: 3px; padding: 0 0 0 .5rem; }
.vm-lang { font-size: .7rem; letter-spacing: .14em; color: rgba(246,241,231,.6); }
.vm-lang button { background: none; border: 0; color: inherit; padding: 0 .15rem; letter-spacing: inherit; }
.vm-lang button[aria-pressed="true"] { color: var(--champagne); }
.vm-burger {
  display: none; width: 46px; height: 46px; border: 1px solid rgba(198,165,107,.5); background: transparent;
  border-radius: 2px; position: relative;
}
.vm-burger span { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--ivory); transition: transform .45s var(--ease), top .45s var(--ease); }
.vm-burger span:nth-child(1) { top: 18px; }
.vm-burger span:nth-child(2) { top: 27px; }
.menu-open .vm-burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .vm-burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.vm-mobile-menu {
  position: fixed; inset: 0; z-index: 1025; background: var(--abyss); color: var(--ivory);
  padding: calc(var(--header-h) + 2rem) 2rem 2rem; display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.menu-open .vm-mobile-menu { opacity: 1; visibility: visible; }
.vm-mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.vm-mobile-menu li { overflow: hidden; }
.vm-mobile-menu a.m-link {
  display: block; font-family: var(--serif); font-size: clamp(2rem, 8vw, 2.8rem); font-weight: 300; line-height: 1.25;
  text-decoration: none; color: var(--ivory); transform: translateY(110%); transition: transform .8s var(--ease);
}
.menu-open .vm-mobile-menu a.m-link { transform: none; }
.vm-mobile-menu a.m-link[aria-current="page"] { color: var(--champagne); }

@media (max-width: 1379.98px) {
  .vm-nav, .vm-header-actions .d-desk { display: none !important; }
  .vm-burger { display: block; }
}

/* ---------- Hero --------------------------------------------------------- */
.vm-hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--ivory); background: var(--abyss); overflow: hidden; padding: calc(var(--header-h) + 3rem) 0 clamp(4rem, 9vh, 7rem);
}
.vm-hero--page { min-height: 72vh; min-height: 72svh; }
.vm-hero--short { min-height: 56vh; min-height: 56svh; }
.vm-hero__media { position: absolute; inset: -6% 0; z-index: 0; will-change: transform; }
.vm-hero__media .vm-img, .vm-hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vm-hero__media .kenburns { animation: kenburns 26s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.vm-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(35deg, rgba(15,37,48,.92) 0%, rgba(15,37,48,.72) 38%, rgba(15,37,48,.2) 75%, rgba(15,37,48,.35) 100%);
}
.vm-hero__overlay::after {
  content: ""; position: absolute; inset: 0; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vm-hero > .container { position: relative; z-index: 2; }
.vm-hero h1 {color: var(--ivory);/* max-width: 18ch; */}
.vm-hero .hero-sub { max-width: 58ch; color: rgba(246,241,231,.82); font-size: 1.08rem; }
.scroll-cue {
  position: absolute; z-index: 2; right: clamp(1.5rem, 4vw, 3.5rem); bottom: 2.5rem;
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(246,241,231,.6);
  writing-mode: vertical-rl;
}
.scroll-cue::after { content: ""; width: 1px; height: 72px; background: linear-gradient(var(--champagne), transparent); animation: travel 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes travel { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.split-hero { display: grid; grid-template-columns: 1fr 1fr; position: absolute; inset: 0; }
.split-hero .vm-img { height: 100%; }
@media (max-width: 767.98px) { .split-hero { grid-template-columns: 1fr; } .split-hero .vm-img:last-child { display: none; } }

/* ---------- Highlight cards ---------------------------------------------- */
.vm-card {
  position: relative; height: 100%; padding: 2.4rem 2rem 2.2rem; background: rgba(255,255,255,.35);
  border: 1px solid rgba(198,165,107,.35); border-radius: 2px;
  transition: border-color .6s var(--ease), background-color .6s var(--ease);
}
.vm-card:hover { border-color: var(--champagne); background: rgba(255,255,255,.65); }
.vm-card__num { font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--champagne); font-weight: 300; }
.vm-card h3 { font-size: 1.6rem; margin: 1.4rem 0 .9rem; position: relative; padding-bottom: .9rem; }
.vm-card h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 1px; background: var(--gold-grad); transition: width .7s var(--ease); }
.vm-card:hover h3::after { width: 100%; }
.vm-card p { font-size: .96rem; color: rgba(26,26,24,.74); margin: 0; }
.bg-abyss .vm-card, .bg-teal .vm-card { background: rgba(30,63,78,.45); }
.bg-abyss .vm-card p, .bg-teal .vm-card p { color: rgba(246,241,231,.72); }
.vm-icon { font-size: 1.7rem; color: var(--champagne); line-height: 1; }

/* ---------- Draggable material strip ------------------------------------- */
.vm-strip-wrap { position: relative; }
.vm-strip {
  display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x proximity; padding: .5rem 0 2rem;
  cursor: grab; scrollbar-width: thin; scrollbar-color: var(--champagne) rgba(246,241,231,.1);
  -webkit-overflow-scrolling: touch;
}
.vm-strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.vm-strip.is-dragging a { pointer-events: none; }
.vm-strip::-webkit-scrollbar { height: 3px; }
.vm-strip::-webkit-scrollbar-thumb { background: var(--champagne); }
.vm-strip::-webkit-scrollbar-track { background: rgba(246,241,231,.08); }
.strip-card {
  flex: 0 0 clamp(270px, 28vw, 360px); scroll-snap-align: start; text-decoration: none; color: var(--ivory);
  display: flex; flex-direction: column; user-select: none;
}
.strip-card__img {aspect-ratio: 1/1;overflow: hidden;border: 1px solid rgba(198,165,107,.25);}
.strip-card__img .vm-img { width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.strip-card:hover .strip-card__img .vm-img { transform: scale(1.05); }
.strip-card:hover { color: var(--ivory); }
.strip-card h3 { font-size: 1.6rem; margin: 1.3rem 0 .5rem; }
.strip-card p { font-size: .92rem; color: rgba(246,241,231,.7); margin-bottom: 1rem; }
.strip-hint { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(246,241,231,.55); }

/* ---------- Split application panels ------------------------------------- */
.split-panel {
  position: relative; display: block; min-height: clamp(420px, 70vh, 680px); overflow: hidden; text-decoration: none; color: var(--ivory);
}
.split-panel .vm-img { position: absolute; inset: 0; transition: transform 1.4s var(--ease); }
.split-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,37,48,.1) 20%, rgba(15,37,48,.9) 100%); transition: background .8s var(--ease); }
.split-panel:hover .vm-img { transform: scale(1.05); }
.split-panel:hover::after { background: linear-gradient(180deg, rgba(15,37,48,.35) 0%, rgba(15,37,48,.94) 100%); }
.split-panel__body { position: absolute; z-index: 2; left: clamp(1.5rem, 4vw, 3.5rem); right: clamp(1.5rem, 4vw, 3.5rem); bottom: clamp(2rem, 5vw, 3.5rem); }
.split-panel h3 { font-size: clamp(2rem, 3.4vw, 3rem); color: var(--ivory); font-weight: 300; }
.split-panel__reveal { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .9s var(--ease), opacity .7s var(--ease); }
.split-panel:hover .split-panel__reveal, .split-panel:focus-visible .split-panel__reveal { max-height: 220px; opacity: 1; }
.split-panel__reveal p { color: rgba(246,241,231,.82); max-width: 46ch; margin: 1rem 0 0; }
@media (hover: none) { .split-panel__reveal { max-height: none; opacity: 1; } }

/* ---------- CTA band ----------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band__mark {
  position: absolute; z-index: 0; width: min(760px, 120vw); left: 50%; top: 50%;
  translate: -50% -50%; opacity: .06; animation: spin 90s linear infinite; pointer-events: none;
}
@keyframes spin { to { rotate: 360deg; } }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { max-width: 54ch; margin-inline: auto; color: rgba(246,241,231,.78); }

/* ---------- About: flow diagram, quote ------------------------------------ */
.flow-diagram { width: 100%; height: auto; overflow: visible; }
.flow-diagram .line { fill: none; stroke: var(--champagne); stroke-width: 1.2; stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); transition: stroke-dashoffset 2.2s var(--ease); }
.flow-diagram.is-in .line { stroke-dashoffset: 0; }
.flow-diagram .node rect { fill: var(--ivory); stroke: var(--champagne); stroke-width: 1; }
.flow-diagram .node--main rect { fill: var(--abyss); }
.flow-diagram .node--leaf rect { fill: var(--linen); stroke: rgba(198,165,107,.55); }
.flow-diagram text { font-family: var(--sans); fill: var(--ink); }
.flow-diagram .t-title { font-family: var(--serif); font-size: 22px; }
.flow-diagram .t-sub { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; fill: #7d6a44; }
.flow-diagram .node--main .t-title { fill: var(--ivory); }
.flow-diagram .node--main .t-sub { fill: var(--gold-light); }
.flow-diagram .node { opacity: 0; transition: opacity 1s var(--ease); }
.flow-diagram.is-in .node { opacity: 1; }
.flow-diagram.is-in .node:nth-of-type(2) { transition-delay: .5s; }
.flow-diagram.is-in .node:nth-of-type(3) { transition-delay: .8s; }
.flow-diagram.is-in .node:nth-of-type(n+4) { transition-delay: 1.3s; }
.flow-mobile { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--champagne); }
.flow-mobile li { position: relative; padding: 0 0 1.6rem 1.6rem; }
.flow-mobile li::before { content: ""; position: absolute; left: -5px; top: .55rem; width: 9px; height: 9px; background: var(--champagne); border-radius: 50%; }
.flow-mobile .sub { margin-top: .6rem; padding-left: 1rem; border-left: 1px dashed rgba(198,165,107,.6); font-size: .92rem; }

.quote-mission { font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.25; color: var(--ivory); margin: 0; }
.quote-mission::before { content: "“"; display: block; font-size: 5rem; line-height: .6; color: var(--champagne); margin-bottom: 1.5rem; }

.adv-col { padding-top: 1.8rem; border-top: 1px solid rgba(198,165,107,.5); height: 100%; }
.adv-col h3 { font-size: 1.7rem; margin-bottom: 1rem; }

/* ---------- Material library --------------------------------------------- */
.material-card { height: 100%; display: flex; flex-direction: column; scroll-margin-top: 110px; }
.material-card__img { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.material-card__img .vm-img { position: absolute; inset: 0; transition: transform 1.2s var(--ease); }
.material-card:hover .material-card__img .vm-img { transform: scale(1.05); }
.material-card h3 { font-size: 1.8rem; margin: 1.5rem 0 .6rem; }
.material-card p { color: rgba(26,26,24,.72); font-size: .96rem; }
.lock-badge {
  display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start; margin-top: auto;
  font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: #7d6a44; border: 1px solid rgba(198,165,107,.6); padding: .45rem .75rem; border-radius: 2px;
}
.frost-preview { position: relative; margin-top: 3.5rem; }
.frost-preview .row { filter: blur(7px); opacity: .55; pointer-events: none; user-select: none; }
.frost-preview__veil {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2;
  background: linear-gradient(180deg, rgba(246,241,231,0) 0%, rgba(246,241,231,.75) 45%, var(--ivory) 100%);
}
.frost-preview__veil .veil-inner { text-align: center; max-width: 440px; }

.spec-card {
  background: var(--ivory); color: var(--ink); border: 1px solid rgba(198,165,107,.55); border-radius: 2px;
  padding: clamp(1.6rem, 3vw, 2.6rem); height: 100%; display: flex; flex-direction: column; position: relative;
}
.spec-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gold-grad); }
.spec-code { font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #8a7448; }
.spec-card h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: .6rem 0 .3rem; }
.spec-powered { font-size: .88rem; color: rgba(26,26,24,.6); margin-bottom: 1.4rem; }
.spec-rows { margin: 0 0 1.5rem; }
.spec-rows > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .9rem 0; border-top: 1px solid rgba(198,165,107,.3); font-size: .9rem; }
.spec-rows dt { font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #7d6a44; padding-top: .2rem; }
.spec-rows dd { margin: 0; color: rgba(26,26,24,.82); }
@media (max-width: 575.98px) { .spec-rows > div { grid-template-columns: 1fr; gap: .25rem; } }
.bio-figure { display: flex; align-items: baseline; gap: .6rem; }
.bio-figure .num { font-family: var(--serif); font-size: 3.4rem; font-weight: 300; color: var(--teal); line-height: 1; }
.pill { display: inline-block; font-size: .72rem; padding: .3rem .7rem; border: 1px solid rgba(94,125,110,.55); color: var(--teal); border-radius: 100px; margin: 0 .35rem .4rem 0; background: rgba(94,125,110,.07); }
.badge-dev { display: inline-flex; align-items: center; gap: .5rem; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--abyss); background: var(--gold-light); padding: .5rem .85rem; border-radius: 2px; }
.family-head { display: flex; align-items: baseline; gap: 1.25rem; flex-wrap: wrap; margin: 4.5rem 0 1.8rem; }
.family-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0; }
.callout {
  border: 1px solid var(--champagne); background: rgba(198,165,107,.08); padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: 2px; position: relative;
}
.callout .bi { color: var(--champagne); font-size: 1.4rem; }

/* ---------- Applications -------------------------------------------------- */
.app-feature { height: 100%; }
.app-feature__img { aspect-ratio: 16 / 11; overflow: hidden; margin-bottom: 1.6rem; }
.app-feature__img .vm-img { width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.app-feature:hover .app-feature__img .vm-img { transform: scale(1.05); }
.big-counter { font-family: var(--serif); font-size: clamp(3rem, 6vw, 5rem); font-weight: 300; color: var(--champagne); line-height: 1; }

.craft-timeline { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.craft-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: rgba(198,165,107,.35); }
.craft-timeline::after { content: ""; position: absolute; left: 0; top: 23px; height: 1px; width: 100%; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform 2.4s var(--ease); }
.craft-timeline.is-in::after { transform: scaleX(1); }
.craft-timeline li { position: relative; padding-right: 1rem; counter-increment: step; }
.craft-timeline .dot { width: 47px; height: 47px; border-radius: 50%; border: 1px solid var(--champagne); background: var(--abyss); display: grid; place-items: center; font-family: var(--serif); font-size: 1.15rem; color: var(--champagne); position: relative; z-index: 1; }
.craft-timeline h4 { font-size: 1.3rem; margin-top: 1.1rem; color: var(--ivory); }
@media (max-width: 767.98px) {
  .craft-timeline { grid-template-columns: 1fr; gap: 1.6rem; }
  .craft-timeline::before, .craft-timeline::after { left: 23px; right: auto; width: 1px; height: 100%; top: 0; }
  .craft-timeline::after { transform: scaleY(0); transform-origin: top; }
  .craft-timeline.is-in::after { transform: scaleY(1); }
  .craft-timeline li { display: flex; align-items: center; gap: 1.2rem; }
  .craft-timeline h4 { margin: 0; }
}

.vm-tabs { border-bottom: 1px solid rgba(198,165,107,.4); gap: 2rem; flex-wrap: nowrap; overflow-x: auto; }
.vm-tabs .nav-link {
  border: 0; background: none; color: rgba(26,26,24,.6); padding: 0 0 1rem; border-radius: 0; white-space: nowrap;
  font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.6rem); position: relative;
}
.vm-tabs .nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold-grad); transform: scaleX(0); transition: transform .6s var(--ease); }
.vm-tabs .nav-link.active, .vm-tabs .nav-link:hover { color: var(--ink); background: none; }
.vm-tabs .nav-link.active::after { transform: scaleX(1); }
.tab-pane.fade { transition: opacity .6s var(--ease); }
.product-item { padding: 1.4rem 0; border-top: 1px solid rgba(198,165,107,.35); }
.product-item h4 { font-size: 1.45rem; margin-bottom: .45rem; }
.product-item p { font-size: .95rem; color: rgba(26,26,24,.72); margin: 0; }
.masonry { column-count: 2; column-gap: 1rem; }
.masonry .m-item { break-inside: avoid; margin-bottom: 1rem; overflow: hidden; }
.masonry .m-item .vm-img { width: 100%; transition: transform 1.2s var(--ease); }
.masonry .m-item:hover .vm-img { transform: scale(1.05); }
.masonry .h1x { aspect-ratio: 4 / 5; } .masonry .h2x { aspect-ratio: 4 / 3; } .masonry .h3x { aspect-ratio: 1 / 1; }

/* ---------- EU compliance ------------------------------------------------ */
.eu-pattern { position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none; }
.eu-pattern circle, .eu-pattern path { fill: none; stroke: var(--champagne); stroke-width: .6; }
.pillar { padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid rgba(198,165,107,.4); }
.pillar__sticky { position: sticky; top: 120px; }
.pillar__num { font-family: var(--serif); font-size: clamp(3.5rem, 7vw, 6rem); color: var(--champagne); font-weight: 300; line-height: .9; }
.pillar h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); margin-top: 1rem; }
.check-item { display: flex; gap: 1.1rem; padding: 1.3rem 0; border-bottom: 1px solid rgba(198,165,107,.3); }
.check-item .bi { color: var(--champagne); font-size: 1.3rem; flex: none; margin-top: .1rem; }
.check-item h4 { font-size: 1.35rem; margin-bottom: .35rem; }
.check-item p { margin: 0; color: rgba(26,26,24,.74); font-size: .96rem; }
.value-chain { display: flex; align-items: flex-start; justify-content: space-between; position: relative; margin-top: 3rem; }
.value-chain::before { content: ""; position: absolute; left: 30px; right: 30px; top: 30px; height: 1px; background: rgba(198,165,107,.3); }
.value-chain::after { content: ""; position: absolute; left: 30px; right: 30px; top: 30px; height: 1px; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform 2.6s var(--ease); }
.value-chain.is-in::after { transform: scaleX(1); }
.vc-step { position: relative; z-index: 1; text-align: center; width: 25%; }
.vc-step .vc-icon { width: 61px; height: 61px; margin: 0 auto 1rem; border-radius: 50%; border: 1px solid var(--champagne); display: grid; place-items: center; background: var(--abyss); color: var(--champagne); font-size: 1.35rem; }
.vc-step span { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(246,241,231,.85); }
@media (max-width: 575.98px) { .vc-step span { font-size: .64rem; letter-spacing: .04em; } .vc-step .vc-icon { width: 48px; height: 48px; font-size: 1.1rem; } .value-chain::before, .value-chain::after { top: 24px; } }

/* ---------- Circle ------------------------------------------------------- */
.spin-slow { animation: spin 60s linear infinite; }
.loop-diagram { width: 100%; max-width: 520px; margin-inline: auto; display: block; }
.loop-diagram .ring { fill: none; stroke: rgba(198,165,107,.3); stroke-width: 1; }
.loop-diagram .ring-draw { fill: none; stroke: var(--champagne); stroke-width: 1.4; stroke-dasharray: 1068; stroke-dashoffset: 1068; transition: stroke-dashoffset 3s var(--ease); }
.loop-diagram.is-in .ring-draw { stroke-dashoffset: 0; }
.loop-diagram .ln circle { fill: var(--abyss); stroke: var(--champagne); }
.loop-diagram text { font-family: var(--sans); fill: var(--ivory); font-size: 12px; letter-spacing: .06em; }
.loop-diagram .ln .t-strong { font-family: var(--serif); font-size: 17px; letter-spacing: 0; fill: var(--gold-light); }
.loop-diagram .arrow { fill: var(--champagne); }

/* ---------- Advisory board ----------------------------------------------- */
.advisor-card { cursor: pointer; background: none; border: 0; padding: 0; text-align: left; width: 100%; color: inherit; }
.advisor-card__photo { aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(160deg, var(--linen), #d9ceb8); position: relative; }
.advisor-card__photo .vm-img {position: absolute;inset: 0;/* filter: grayscale(1); */transition: filter 1s var(--ease), transform 1.2s var(--ease);background-image: var(--img, none);background-color: transparent;}
.advisor-card:hover .advisor-card__photo .vm-img, .advisor-card:focus-visible .advisor-card__photo .vm-img { filter: grayscale(0); transform: scale(1.04); }
.advisor-card__photo svg { position: absolute; inset: 12% 15% 0; width: 70%; height: 88%; }
.advisor-card h3 { font-size: 1.8rem; margin: 1.3rem 0 .3rem; }
.advisor-card .role { font-size: .88rem; color: rgba(26,26,24,.65); }
.offcanvas.vm-drawer { background: var(--abyss); color: var(--ivory); width: min(520px, 100vw); border-left: 1px solid rgba(198,165,107,.4); }
.vm-drawer .btn-close { filter: invert(1) sepia(1) saturate(2) hue-rotate(5deg); }

/* ---------- Forms -------------------------------------------------------- */
.vm-form .form-label { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #6f5f3e; margin-bottom: .45rem; }
.vm-form .form-control, .vm-form .form-select {
  border-radius: 2px; border: 1px solid rgba(26,26,24,.2); background-color: rgba(255,255,255,.6);
  padding: .85rem 1rem; font-size: .98rem; color: var(--ink); transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.vm-form .form-control:focus, .vm-form .form-select:focus { border-color: var(--champagne); box-shadow: 0 0 0 4px rgba(198,165,107,.18); background-color: #fff; }
.vm-form textarea.form-control { min-height: 150px; }
.vm-form .invalid-feedback { font-size: .8rem; }
.vm-form .form-check-input { border-radius: 2px; border-color: rgba(26,26,24,.35); width: 1.15em; height: 1.15em; margin-top: .3em; }
.vm-form .form-check-input:checked { background-color: var(--teal); border-color: var(--teal); }
.vm-form .form-check-input:focus { box-shadow: 0 0 0 4px rgba(198,165,107,.2); border-color: var(--champagne); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.radio-cards { display: grid; gap: .75rem; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card label {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; border: 1px solid rgba(26,26,24,.18);
  border-radius: 2px; cursor: pointer; background: rgba(255,255,255,.5); transition: border-color .4s var(--ease), background-color .4s var(--ease);
  font-size: .95rem; line-height: 1.45;
}
.radio-card label::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: .1rem; border-radius: 50%; border: 1px solid rgba(26,26,24,.35); transition: box-shadow .3s var(--ease), border-color .3s; }
.radio-card input:checked + label { border-color: var(--champagne); background: #fff; }
.radio-card input:checked + label::before { border-color: var(--teal); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--teal); }
.radio-card input:focus-visible + label { outline: 2px solid var(--champagne); outline-offset: 2px; }

.segmented { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(26,26,24,.2); border-radius: 2px; overflow: hidden; }
.segmented input { position: absolute; opacity: 0; }
.segmented label { text-align: center; padding: .85rem .4rem; font-size: .85rem; cursor: pointer; border-left: 1px solid rgba(26,26,24,.12); transition: background-color .4s var(--ease), color .4s var(--ease); background: rgba(255,255,255,.5); }
.segmented label:first-of-type { border-left: 0; }
.segmented input:checked + label { background: var(--teal); color: var(--ivory); }
.segmented input:focus-visible + label { outline: 2px solid var(--champagne); outline-offset: -2px; }
@media (max-width: 575.98px) { .segmented { grid-template-columns: repeat(2, 1fr); } .segmented label:nth-of-type(3) { border-left: 0; } .segmented label:nth-of-type(n+3) { border-top: 1px solid rgba(26,26,24,.12); } }

.contact-card { background: var(--abyss); color: var(--ivory); padding: clamp(2rem, 4vw, 3rem); height: 100%; border-radius: 2px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(198,165,107,.2); font-size: .95rem; }
.contact-list .bi { color: var(--champagne); font-size: 1.1rem; margin-top: .15rem; }
.contact-list .lbl { display: block; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(246,241,231,.55); }
.contact-list a { color: var(--ivory); }
.map-embed { position: relative; aspect-ratio: 16 / 10; margin-top: 2rem; background: var(--teal); border: 1px solid rgba(198,165,107,.3); overflow: hidden; }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.9) brightness(.9) sepia(.15); }
.map-embed .map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1rem; padding: 1.5rem; font-size: .88rem; color: rgba(246,241,231,.78); }

.success-state { text-align: center; padding: 3rem 1rem; }
.success-state svg { width: 84px; height: 84px; }
.success-state circle, .success-state path { fill: none; stroke: var(--champagne); stroke-width: 1.5; }
.success-state circle { stroke-dasharray: 252; stroke-dashoffset: 252; animation: draw 1.2s var(--ease) forwards; }
.success-state path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .8s var(--ease) .9s forwards; stroke-width: 2; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.vat-status { font-size: .86rem; margin-top: .6rem; display: flex; align-items: center; gap: .5rem; min-height: 1.4rem; }
.vat-status.ok { color: #2f6b4f; } .vat-status.err { color: #a13c2e; } .vat-status.warn { color: #8a6a1f; }

.access-shell { min-height: 100vh; display: flex; align-items: center; padding: calc(var(--header-h) + 3rem) 0 4rem; }
.access-panel { background: var(--ivory); color: var(--ink); padding: clamp(1.8rem, 4vw, 3.2rem); border-radius: 2px; border-top: 2px solid var(--champagne); }
.terms-panel { max-height: 260px; overflow-y: auto; padding: 1.3rem 1.4rem; border: 1px solid rgba(198,165,107,.5); background: rgba(236,228,212,.5); font-size: .88rem; line-height: 1.65; border-radius: 2px; }
.terms-panel p:last-child { margin-bottom: 0; }

/* ---------- Footer ------------------------------------------------------- */
.vm-footer { background: var(--abyss); color: rgba(246,241,231,.75); padding: clamp(4rem, 8vw, 6rem) 0 2rem; font-size: .92rem; position: relative; }
.vm-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--gold-grad); opacity: .6; }
.vm-footer h2 { font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--champagne); margin-bottom: 1.2rem; }
.vm-footer ul { list-style: none; padding: 0; margin: 0; }
.vm-footer li { margin-bottom: .55rem; }
.vm-footer a { text-decoration: none; color: rgba(246,241,231,.78); }
.vm-footer a:hover { color: var(--champagne); }
.vm-footer .positioning { font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; color: var(--ivory); max-width: 34ch; }
.vm-footer .legal { border-top: 1px solid rgba(198,165,107,.2); margin-top: 3.5rem; padding-top: 1.8rem; font-size: .78rem; color: rgba(246,241,231,.55); }
.vm-footer .legal a { color: rgba(246,241,231,.6); }

/* ---------- Cookie banner ------------------------------------------------ */
.cookie-bar {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1050; max-width: 980px; margin-inline: auto;
  background: var(--ivory); color: var(--ink); border: 1px solid rgba(198,165,107,.6); border-radius: 2px;
  padding: 1.1rem 1.4rem; display: flex; gap: 1.2rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
  box-shadow: 0 24px 60px -30px rgba(15,37,48,.45);
  transform: translateY(140%); transition: transform .8s var(--ease);
}
.cookie-bar.is-visible { transform: none; }
.cookie-bar p { margin: 0; font-size: .86rem; max-width: 62ch; }
.cookie-bar .btn-link { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: underline; }

/* ---------- Page transition curtain & cursor ----------------------------- */
.vm-curtain {
  position: fixed; inset: 0; z-index: 3000; background: var(--abyss); display: grid; place-items: center;
  transform: translateY(0); transition: transform .9s var(--ease); pointer-events: none;
}
.vm-curtain img { width: 64px; height: 64px; opacity: .9; }
.vm-curtain.is-up { transform: translateY(-100%); }
.vm-curtain.is-down { transform: translateY(0); transition-duration: .6s; }
.vm-curtain.is-init { transform: translateY(100%); transition: none; }

.vm-cursor {
  position: fixed; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 1px solid var(--champagne);
  border-radius: 50%; pointer-events: none; z-index: 2500; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s var(--ease), opacity .3s;
  opacity: 0; mix-blend-mode: normal;
}
.vm-cursor.is-active { opacity: 1; }
.vm-cursor.is-hover { width: 62px; height: 62px; margin: -31px 0 0 -31px; background: rgba(198,165,107,.12); }
@media (hover: none), (pointer: coarse) { .vm-cursor { display: none; } }

/* Load sequence for logo & wordmark */
.intro-mark { animation: markIn 1.2s var(--ease) both; }
@keyframes markIn { from { opacity: 0; transform: rotate(-120deg) scale(.7); } to { opacity: 1; transform: none; } }
.intro-word .ch { display: inline-block; opacity: 0; transform: translateY(10px); animation: chIn .8s var(--ease) forwards; }
@keyframes chIn { to { opacity: 1; transform: none; } }

/* ---------- Scroll reveal ------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: .24s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: .36s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: .48s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: .6s; }

/* ---------- Legal / prose pages ------------------------------------------ */
.prose h2 { font-size: 2rem; margin: 3rem 0 1rem; }
.prose h3 { font-size: 1.5rem; margin: 2rem 0 .8rem; }
.prose p, .prose li { color: rgba(26,26,24,.8); }
.placeholder-note { border-left: 2px solid var(--champagne); background: rgba(198,165,107,.1); padding: 1rem 1.25rem; font-size: .9rem; margin: 1.5rem 0; }

/* ---------- 404 ---------------------------------------------------------- */
.nf-mark { width: clamp(120px, 20vw, 200px); }
.nf-num { font-family: var(--serif); font-size: clamp(6rem, 18vw, 12rem); font-weight: 300; color: var(--champagne); line-height: 1; }

/* ---------- Reduced motion ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-stagger > *, [data-split] .w > span { opacity: 1 !important; transform: none !important; }
  .vm-cursor, .vm-curtain { display: none !important; }
}

/* Eyebrows keep champagne on dark sections */
.bg-abyss .eyebrow, .bg-teal .eyebrow, .vm-drawer .eyebrow { color: var(--champagne); }
.access-panel .form-label { color: #6f5f3e; }

.vm-lang, .vm-user, .vm-header-actions .btn-vm { white-space: nowrap; }
.vm-header-actions { flex: none; }
.vm-brand { flex: none; }
@media (min-width: 1380px) and (max-width: 1599.98px) {
  .vm-nav { gap: 1.05rem; }
  .vm-nav a { font-size: .74rem; letter-spacing: .03em; }
  .vm-lang { display: none !important; }
}
.family-row { padding: 3.5rem 0; border-bottom: 1px solid rgba(198,165,107,.35); }
.family-row .family-head { display: block; margin: 0; position: sticky; top: 110px; }
.family-row .family-head h2 { margin: .5rem 0 .6rem; }
@media (max-width: 767.98px) { .scroll-cue { display: none; } }

/* =========================================================================
   WordPress layer — CF7, login, menus, value tree, alignments
   ========================================================================= */

/* ---- Contact Form 7 ----------------------------------------------------- */
.vm-cf7 .wpcf7-form-control-wrap { display: block; position: relative; }
.vm-cf7 .form-control.wpcf7-not-valid,
.vm-cf7 .form-select.wpcf7-not-valid { border-color: #a13c2e; }
.vm-cf7 .wpcf7-not-valid-tip { display: block; font-size: .8rem; color: #a13c2e; margin-top: .4rem; }
.vm-cf7 .wpcf7-response-output { margin: 1.5rem 0 0 !important; padding: .9rem 1.1rem !important; border: 1px solid rgba(198,165,107,.5) !important; border-radius: 2px; font-size: .9rem; background: rgba(198,165,107,.08); }
.vm-cf7.invalid .wpcf7-response-output,
.vm-cf7.unaccepted .wpcf7-response-output,
.vm-cf7.failed .wpcf7-response-output,
.vm-cf7.aborted .wpcf7-response-output,
.vm-cf7.spam .wpcf7-response-output { border-color: #a13c2e !important; color: #a13c2e; background: rgba(161,60,46,.06); }
.vm-cf7.sent .wpcf7-response-output { border-color: #2f6b4f !important; color: #2f6b4f; }
.vm-cf7 .wpcf7-spinner { margin: 0 0 0 1rem; vertical-align: middle; background-color: var(--teal); }
.vm-cf7 input[type="submit"].btn-vm { border: 1px solid var(--champagne); cursor: pointer; }
.vm-cf7 input[type="submit"].is-sending { opacity: .7; pointer-events: none; }
.vm-cf7 fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.vm-cf7 legend.form-label { float: none; width: auto; }
.screen-reader-response { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Radio cards (Requirement Type) */
.vm-radio-cards { display: grid; gap: .75rem; }
.vm-radio-cards .wpcf7-list-item { display: block; margin: 0; }
.vm-radio-cards label { position: relative; display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; border: 1px solid rgba(26,26,24,.18); border-radius: 2px; cursor: pointer; background: rgba(255,255,255,.5); font-size: .95rem; line-height: 1.45; transition: border-color .4s var(--ease), background-color .4s var(--ease); }
.vm-radio-cards input { position: absolute; opacity: 0; pointer-events: none; }
.vm-radio-cards label::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: .1rem; border-radius: 50%; border: 1px solid rgba(26,26,24,.35); transition: box-shadow .3s var(--ease), border-color .3s; }
.vm-radio-cards label:hover { border-color: rgba(198,165,107,.7); }
.vm-radio-cards label:has(input:checked) { border-color: var(--champagne); background: #fff; }
.vm-radio-cards label:has(input:checked)::before { border-color: var(--teal); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--teal); }
.vm-radio-cards label:has(input:focus-visible) { outline: 2px solid var(--champagne); outline-offset: 2px; }

/* Segmented control (Volume) */
.vm-segmented { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(26,26,24,.2); border-radius: 2px; overflow: hidden; }
.vm-segmented .wpcf7-list-item { margin: 0; display: flex; border-left: 1px solid rgba(26,26,24,.12); }
.vm-segmented .wpcf7-list-item.first { border-left: 0; }
.vm-segmented label { flex: 1; text-align: center; padding: .85rem .4rem; font-size: .85rem; cursor: pointer; background: rgba(255,255,255,.5); transition: background-color .4s var(--ease), color .4s var(--ease); }
.vm-segmented input { position: absolute; opacity: 0; pointer-events: none; }
.vm-segmented label:has(input:checked) { background: var(--teal); color: var(--ivory); }
.vm-segmented label:has(input:focus-visible) { outline: 2px solid var(--champagne); outline-offset: -2px; }
@media (max-width: 575.98px) {
  .vm-segmented { grid-template-columns: repeat(2, 1fr); }
  .vm-segmented .wpcf7-list-item:nth-child(3) { border-left: 0; }
  .vm-segmented .wpcf7-list-item:nth-child(n+3) { border-top: 1px solid rgba(26,26,24,.12); }
}

/* Acceptance / consent checkbox */
.vm-check .wpcf7-list-item { margin: 0; }
.vm-check label { display: flex; gap: .75rem; align-items: flex-start; font-size: .88rem; line-height: 1.5; cursor: pointer; color: rgba(26,26,24,.8); }
.vm-check input[type="checkbox"] { appearance: none; flex: none; width: 1.15em; height: 1.15em; margin-top: .2em; border: 1px solid rgba(26,26,24,.35); border-radius: 2px; background: #fff center / 70% no-repeat; transition: background-color .3s, border-color .3s; cursor: pointer; }
.vm-check input[type="checkbox"]:checked { background-color: var(--teal); border-color: var(--teal); background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e"); }
.vm-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--champagne); outline-offset: 2px; }
.vm-check a { color: var(--teal); }

/* VAT input group */
.vat-group { flex-wrap: nowrap; }
.vat-group .input-group-text { background: var(--linen); border-color: rgba(26,26,24,.2); border-radius: 2px 0 0 2px; font-size: .85rem; font-weight: 600; letter-spacing: .08em; color: var(--teal); min-width: 3.4rem; justify-content: center; }
.vat-group .wpcf7-form-control-wrap { flex: 1 1 auto; min-width: 0; }
.vat-group .form-control { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.vat-group .wpcf7-not-valid-tip { position: absolute; top: 100%; left: 0; }
.vat-group:has(.wpcf7-not-valid-tip) + .vat-status { margin-top: 2rem; }
.field-hint { font-size: .8rem; color: #8a6a1f; margin-top: .35rem; min-height: 0; }
.field-hint:empty { display: none; }

.grade-notice:empty { display: none; }
.grade-pill { display: inline-flex; align-items: center; gap: .5rem; margin: 0; padding: .55rem 1rem; border: 1px solid var(--champagne); background: rgba(198,165,107,.1); font-size: .85rem; letter-spacing: .04em; color: var(--teal); }

/* Terms summary inside the registration form */
.vm-cf7 .terms-panel ul, .vm-cf7 .terms-panel ol { padding-left: 1.1rem; margin: 0; }

/* ---- Sign in (wp_login_form) -------------------------------------------- */
.vm-login form p { margin-bottom: 1.2rem; }
.vm-login label { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #6f5f3e; margin-bottom: .45rem; }
.vm-login input[type="text"], .vm-login input[type="password"], .vm-login input[type="email"] { width: 100%; padding: .8rem 1rem; border: 1px solid rgba(26,26,24,.2); border-radius: 2px; background: rgba(255,255,255,.6); font: inherit; transition: border-color .3s, box-shadow .3s; }
.vm-login input[type="text"]:focus, .vm-login input[type="password"]:focus { outline: 0; border-color: var(--champagne); box-shadow: 0 0 0 4px rgba(198,165,107,.18); background: #fff; }
.vm-login .login-remember label { display: flex; align-items: center; gap: .6rem; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .88rem; color: rgba(26,26,24,.75); }
.vm-login .login-remember input { accent-color: var(--teal); }
.vm-login .login-submit input[type="submit"] { width: 100%; padding: 1rem 1.6rem; border: 1px solid var(--champagne); border-radius: 2px; background: var(--champagne); color: var(--abyss); font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: background-color .45s var(--ease); }
.vm-login .login-submit input[type="submit"]:hover { background: var(--gold-light); }
.vm-login a { color: var(--teal); }

/* ---- Header / footer menus from WP ------------------------------------- */
.vm-lang li { list-style: none; }
.vm-lang a { color: rgba(246,241,231,.6); text-decoration: none; text-transform: uppercase; }
.vm-lang .current-lang a, .vm-lang a:hover { color: var(--champagne); }
.vm-lang li + li::before { content: "/"; margin-right: .5rem; color: rgba(246,241,231,.35); }
.legal-menu { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 992px) { .legal-menu { justify-content: flex-end; } }
.vm-footer .legal-menu li { margin: 0; }
.vm-nav .current-menu-item > a, .vm-nav a[aria-current="page"] { color: var(--champagne); }

/* ---- About: value proposition tree -------------------------------------- */
.vp-tree { --line: rgba(198,165,107,.55); display: flex; flex-direction: column; align-items: center; margin-top: 2rem; }
.vp-node { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .3rem; align-items: center; text-align: center; padding: 1.2rem 1.4rem; background: #fff; border: 1px solid rgba(198,165,107,.55); border-radius: 2px; max-width: 360px; opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.vp-node strong { font-size: 1.35rem; font-weight: 500; color: var(--teal); line-height: 1.2; }
.vp-node span { font-size: .82rem; color: rgba(26,26,24,.66); }
.vp-node--main { background: var(--abyss); border-color: var(--champagne); padding: 1.6rem 2.2rem; }
.vp-node--main strong { color: var(--ivory); font-size: 1.7rem; }
.vp-node--main span { color: var(--gold-light); }
.vp-node--leaf { font-size: .82rem; padding: .7rem 1rem; background: var(--linen); border-color: rgba(198,165,107,.4); color: var(--ink); }
.vp-branches, .vp-leaves { position: relative; display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); width: 100%; }
.vp-branches { --gap: 2rem; gap: var(--gap); padding-top: 3rem; }
.vp-leaves { --gap: .75rem; gap: var(--gap); padding-top: 2rem; }
.vp-branch, .vp-leaf { position: relative; display: flex; flex-direction: column; align-items: center; }
/* connectors: vertical stub from parent, horizontal bar across children, stubs down */
.vp-branches::before, .vp-leaves::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 1.5rem; background: var(--line); }
.vp-leaves::before { height: 1rem; }
.vp-branch::before, .vp-leaf::before { content: ""; position: absolute; top: -1.5rem; left: 50%; width: 1px; height: 1.5rem; background: var(--line); }
.vp-leaf::before { top: -1rem; height: 1rem; }
.vp-branch::after, .vp-leaf::after { content: ""; position: absolute; top: -1.5rem; left: calc(var(--gap) / -2); right: calc(var(--gap) / -2); height: 1px; background: var(--line); transform: scaleX(0); transition: transform 1.2s var(--ease) .3s; }
.vp-leaf::after { top: -1rem; }
.vp-branch:first-child::after, .vp-leaf:first-child::after { left: 50%; }
.vp-branch:last-child::after, .vp-leaf:last-child::after { right: 50%; }
.vp-branch:only-child::after, .vp-leaf:only-child::after { display: none; }
.vp-branch:first-child::after, .vp-leaf:first-child::after { transform-origin: left; }
.vp-branch:last-child::after, .vp-leaf:last-child::after { transform-origin: right; }
.vp-tree.is-in .vp-node { opacity: 1; transform: none; }
.vp-tree.is-in .vp-branch::after, .vp-tree.is-in .vp-leaf::after { transform: none; }
.vp-tree.is-in .vp-branches .vp-node { transition-delay: .35s; }
.vp-tree.is-in .vp-leaves .vp-node { transition-delay: .7s; }
@media (max-width: 767.98px) {
  .vp-branches { grid-template-columns: 1fr; gap: 2.5rem; }
  .vp-branch::after, .vp-branches::before { display: none; }
  .vp-branch::before { top: -2.5rem; height: 2.5rem; }
  .vp-leaves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vp-leaf::before, .vp-leaf::after, .vp-leaves::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .vp-node { opacity: 1; transform: none; } .vp-branch::after, .vp-leaf::after { transform: none; } }

/* ---- Circle: dark checklist --------------------------------------------- */
.check-item--dark { border-bottom-color: rgba(198,165,107,.22); }
.check-item--dark p { color: rgba(246,241,231,.72); }
.check-item--dark h4 { color: var(--ivory); }

/* ---- EU stars ----------------------------------------------------------- */
.eu-pattern [data-eu-stars] path { fill: var(--champagne); stroke: none; opacity: .75; }

/* ---- Cookie bar (WP renders it hidden) ---------------------------------- */
.cookie-bar[hidden] { display: none !important; }

/* ---- WordPress core classes -------------------------------------------- */
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: 100%; }
.wp-caption, .wp-block-image figcaption { font-size: .82rem; color: rgba(26,26,24,.6); }
.wp-caption-text { margin-top: .4rem; }
.sticky, .gallery-caption, .bypostauthor { }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; z-index: 100000; background: var(--ivory); padding: .75rem 1rem; }
.prose img { max-width: 100%; height: auto; }
.prose .wp-block-button__link { background: var(--champagne); color: var(--abyss); border-radius: 2px; }
body.admin-bar .vm-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .vm-header { top: 46px; } }

/* =========================================================================
   VIREÔMONT™ — Home: swatch slider + applications gallery
   Loaded only on the front page (enqueued from front-page.php).
   ========================================================================= */

/* ---- Swatch slider ------------------------------------------------------ */
.swatch-slider { position: relative; }
.swatch-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain; outline: none;
}
.swatch-track::-webkit-scrollbar { display: none; }
.swatch-track:focus-visible { outline: 2px solid var(--champagne); outline-offset: 6px; }
@media (prefers-reduced-motion: reduce) { .swatch-track { scroll-behavior: auto; } }

.swatch-slide {
  scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem);
  align-items: center; padding-right: 2px;
}
.swatch-slide__media {
  position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--linen);
  border: 1px solid rgba(198,165,107,.35);
}
.swatch-slide__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.06); transition: transform 1.6s var(--ease);
}
.swatch-slide.is-active .swatch-slide__media img { transform: none; }
.swatch-slide__media::after {
  /* content: ""; */
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(246,241,231,.45);
  pointer-events: none;
}

.swatch-slide__body > * { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.swatch-slide.is-active .swatch-slide__body > * { opacity: 1; transform: none; }
.swatch-slide.is-active .swatch-slide__body > :nth-child(2) { transition-delay: .08s; }
.swatch-slide.is-active .swatch-slide__body > :nth-child(3) { transition-delay: .16s; }
.swatch-slide.is-active .swatch-slide__body > :nth-child(4) { transition-delay: .24s; }
.swatch-slide.is-active .swatch-slide__body > :nth-child(5) { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .swatch-slide__body > *, .swatch-slide__media img { opacity: 1; transform: none; transition: none; }
}

.swatch-slide__index { display: block; font-family: var(--serif); font-size: clamp(3rem, 6vw, 4.75rem); line-height: 1; color: var(--champagne); font-weight: 300; margin-bottom: 1rem; }
.swatch-slide__body h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; margin-bottom: .6rem; color: var(--ink); }
.swatch-slide__material { font-size: .95rem; color: rgba(26,26,24,.66); margin-bottom: 1.8rem; }

.swatch-meta { margin: 0; border-top: 1px solid rgba(198,165,107,.4); }
.swatch-meta > div { padding: 1.1rem 0; border-bottom: 1px solid rgba(198,165,107,.4); }
.swatch-meta dt { font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #6f5f3e; margin-bottom: .55rem; }
.swatch-meta dd { margin: 0; font-size: .95rem; }

.swatch-dots { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; padding: 0; margin: 0; }
.swatch-dot {
  display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--dot);
  box-shadow: inset 0 0 0 1px rgba(26,26,24,.18), 0 0 0 3px var(--ivory), 0 0 0 4px rgba(198,165,107,.0);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease); cursor: default;
}
.swatch-dot:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(26,26,24,.18), 0 0 0 3px var(--ivory), 0 0 0 4px var(--champagne); }

.swatch-controls { display: flex; align-items: center; gap: 1.5rem; margin-top: 2.5rem; }
.swatch-progress { flex: 1; height: 1px; background: rgba(26,26,24,.14); position: relative; overflow: hidden; }
.swatch-progress span { position: absolute; inset: 0 auto 0 0; width: var(--p, 25%); background: var(--gold-grad, var(--champagne)); transition: width .8s var(--ease); }
.swatch-count { margin: 0; font-size: .74rem; letter-spacing: .2em; color: rgba(26,26,24,.6); font-variant-numeric: tabular-nums; }
.swatch-count [data-swatch-current] { color: var(--teal); font-weight: 600; }
.swatch-arrows { display: flex; gap: .5rem; }
.swatch-arrow {
  width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(198,165,107,.7); border-radius: 50%; background: transparent; color: var(--teal);
  transition: background-color .45s var(--ease), color .45s var(--ease), opacity .3s;
}
.swatch-arrow:hover:not(:disabled), .swatch-arrow:focus-visible { background: var(--champagne); color: var(--abyss); }
.swatch-arrow:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.swatch-arrow:disabled { opacity: .3; cursor: default; }

@media (max-width: 991.98px) {
  .swatch-slide { grid-template-columns: 1fr; gap: 1.75rem; align-items: start; }
  .swatch-slide__index { font-size: 2.6rem; margin-bottom: .5rem; }
}
@media (max-width: 575.98px) {
  .swatch-arrow { width: 44px; height: 44px; }
  .swatch-dot { width: 22px; height: 22px; }
}

/* ---- Applications gallery ---------------------------------------------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-bottom: 2.5rem; border-bottom: 1px solid rgba(198,165,107,.22); }
.gallery-filter {
  position: relative; background: none; border: 0; padding: .9rem 0; color: rgba(246,241,231,.6);
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; transition: color .4s var(--ease);
}
.gallery-filter::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--gold-grad, var(--champagne)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.gallery-filter:hover, .gallery-filter[aria-pressed="true"] { color: var(--ivory); }
.gallery-filter[aria-pressed="true"]::after { transform: none; }
.gallery-filter:focus-visible { outline: 2px solid var(--champagne); outline-offset: 2px; }
@media (max-width: 575.98px) {
  .gallery-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px; }
  .gallery-filters::-webkit-scrollbar { display: none; }
  .gallery-filter { white-space: nowrap; }
}

/* Masonry via CSS columns: items flow top-to-bottom, hidden items reflow. */
.gallery-grid { columns: 3 320px; column-gap: 1rem; }
.gallery-item { break-inside: avoid; margin: 0 0 1rem; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.gallery-item.is-hidden { display: none; }
.gallery-item.is-entering { opacity: 0; transform: translateY(14px); }

.gallery-item__btn {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--teal);
  overflow: hidden; cursor: zoom-in; text-align: left;
}
.gallery-item__btn img { display: block; width: 100%; height: auto; transition: transform 1.2s var(--ease), filter 1.2s var(--ease); filter: saturate(.92); }
.gallery-item--tall .gallery-item__btn img { aspect-ratio: 3 / 4; object-fit: cover; }
.gallery-item--wide .gallery-item__btn img { aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-item--auto .gallery-item__btn img { min-height: 220px; object-fit: cover; }
.gallery-item__btn:hover img, .gallery-item__btn:focus-visible img { transform: scale(1.05); filter: saturate(1); }
.gallery-item__btn:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }

.gallery-item__veil {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .25rem;
  padding: 1.4rem; color: var(--ivory);
  background: linear-gradient(180deg, rgba(15,37,48,0) 45%, rgba(15,37,48,.88) 100%);
  opacity: 0; transition: opacity .6s var(--ease);
}
.gallery-item__btn:hover .gallery-item__veil, .gallery-item__btn:focus-visible .gallery-item__veil { opacity: 1; }
.gallery-item__cat { font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--champagne); }
.gallery-item__title { font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; }
.gallery-item__veil .bi { position: absolute; top: 1.1rem; right: 1.1rem; font-size: 1rem; color: var(--gold-light); }
@media (hover: none) { .gallery-item__veil { opacity: 1; background: linear-gradient(180deg, rgba(15,37,48,0) 60%, rgba(15,37,48,.85) 100%); } .gallery-item__veil .bi { display: none; } }

.gallery-note { font-size: .78rem; font-style: italic; color: rgba(246,241,231,.5); }

/* ---- Lightbox (native <dialog>) ---------------------------------------- */
.vm-lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10,26,34,.96); color: var(--ivory);
}
.vm-lightbox::backdrop { background: rgba(10,26,34,.7); }
.vm-lightbox[open] { animation: lb-in .5s var(--ease); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.vm-lightbox__inner { position: relative; height: 100%; display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; padding: 4.5rem 1rem 2rem; }
.vm-lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; min-height: 0; height: 100%; justify-content: center; }
.vm-lightbox__figure img { max-width: 100%; max-height: calc(100vh - 12rem); object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.vm-lightbox__figure img.is-loading { opacity: .25; }
.vm-lightbox__figure figcaption { text-align: center; max-width: 60ch; display: flex; flex-direction: column; gap: .2rem; }
.vm-lightbox__figure strong { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.vm-lightbox__figure [data-lb-caption] { font-size: .9rem; color: rgba(246,241,231,.7); }
.vm-lightbox__count { font-size: .68rem; letter-spacing: .2em; color: rgba(246,241,231,.45); margin-top: .4rem; }
.vm-lightbox__close, .vm-lightbox__nav {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 50%; border: 1px solid rgba(198,165,107,.6); background: transparent; color: var(--ivory);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.vm-lightbox__close:hover, .vm-lightbox__nav:hover, .vm-lightbox__close:focus-visible, .vm-lightbox__nav:focus-visible { background: var(--champagne); color: var(--abyss); }
.vm-lightbox__close:focus-visible, .vm-lightbox__nav:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.vm-lightbox__close { position: absolute; top: 1rem; right: 1rem; }
.vm-lightbox__nav--prev { justify-self: start; }
.vm-lightbox__nav--next { justify-self: end; }
.vm-lightbox__nav[hidden] { visibility: hidden; display: inline-flex; }
@media (max-width: 767.98px) {
  .vm-lightbox__inner { grid-template-columns: 1fr; padding: 4.5rem .75rem 6rem; }
  .vm-lightbox__nav { position: absolute; bottom: 1.5rem; }
  .vm-lightbox__nav--prev { left: calc(50% - 64px); }
  .vm-lightbox__nav--next { right: calc(50% - 64px); }
  .vm-lightbox__figure img { max-height: calc(100vh - 16rem); }
}
html.lb-open { overflow: hidden; }

/* =========================================================================
   VIREÔMONT™ — About: Value Proposition (hub → supply streams → image cards)
   Loaded only on the About template (enqueued from tpl-about.php).
   ========================================================================= */

.vpx { --line: rgba(198,165,107,.55); --drop: 3.25rem; overflow: hidden; }

/* ---- Hub ---------------------------------------------------------------- */
.vpx-hub {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  flex-wrap: wrap;
  padding: 1.6rem clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid rgba(198,165,107,.45);
  background: rgba(30,63,78,.55);
  justify-content: center;
}
.vpx-hub::before { /* thin gold top rule */
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 1px; background: var(--gold-grad);
}
.vpx-hub__brand { display: flex; align-items: center; gap: 1rem; }
.vpx-hub__brand img { flex: none; }
.vpx-hub__brand strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; color: var(--ivory); }
.vpx-hub__pillars { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.vpx-hub__pillars li {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light);
  padding: .35rem 1.25rem;
  border-left: 1px solid rgba(198,165,107,.35);
}
.vpx-hub__pillars li:first-child { border-left: 0; padding-left: 0; }

/* ---- Streams ------------------------------------------------------------ */
.vpx-streams {
  display: grid; grid-template-columns: repeat(var(--total, 3), minmax(0, 1fr)); gap: 1rem;
  padding-top: var(--drop);
}
.vpx-stream { position: relative; grid-column: span var(--n, 1); min-width: 0; }

/* drop line from the hub to the centre of each stream bracket */
.vpx-stream::before {
  content: ""; position: absolute; left: 50%; top: calc(var(--drop) * -1); width: 1px; height: var(--drop);
  background: var(--line); transform: scaleY(0); transform-origin: top; transition: transform .8s var(--ease) .2s;
}
.vpx-stream__label {
  position: relative; text-align: center; padding: 1.3rem 1rem 0; border-top: 1px solid transparent;
}
/* bracket: top rule with end ticks, drawn outwards from the centre */
.vpx-stream__label::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line);
  transform: scaleX(0); transition: transform 1.1s var(--ease) .7s;
}
.vpx-stream__label::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 10px;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  opacity: 0; transition: opacity .6s var(--ease) 1.5s;
}
.vpx-stream__label h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); color: var(--ivory); margin-bottom: .3rem; }
.vpx-stream__label p { margin: 0; font-size: .82rem; color: rgba(246,241,231,.6); }

/* ---- Cards -------------------------------------------------------------- */
.vpx-cards {
  display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); gap: 1rem;
  list-style: none; padding: 0; margin: 1.75rem 0 0;
}
.vpx-card { min-width: 0; opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.vpx-card__inner {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; color: var(--ivory); text-decoration: none;
  background: var(--teal); isolation: isolate;
}
.vpx-card__img { position: absolute; inset: 0; z-index: -2; transform: scale(1.02); transition: transform 1.6s var(--ease), filter 1.2s var(--ease); }
.vpx-card__inner::before { /* legibility gradient */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,37,48,.05) 30%, rgba(15,37,48,.55) 62%, rgba(15,37,48,.94) 100%);
  transition: background .8s var(--ease);
}
.vpx-card__inner::after { /* inner hairline frame on hover */
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(228,207,163,.0); pointer-events: none;
  transition: border-color .8s var(--ease), inset .8s var(--ease);
}
.vpx-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1.4rem, 2.4vw, 2rem); }
.vpx-card__num {
  display: inline-flex; align-items: center; gap: .8rem; font-family: var(--serif); font-size: 1.05rem; color: var(--champagne); margin-bottom: .8rem;
}
.vpx-card__num::after { content: ""; width: 34px; height: 1px; background: var(--gold-grad); transition: width .8s var(--ease); }
.vpx-card h4 { font-size: clamp(1.55rem, 2.2vw, 2rem); line-height: 1.1; color: var(--ivory); margin: 0; }
.vpx-card__more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .8s var(--ease), opacity .6s var(--ease); }
.vpx-card__more > p { overflow: hidden; margin: 0; font-size: .9rem; line-height: 1.6; color: rgba(246,241,231,.82); }
.vpx-card__more > p::before { content: ""; display: block; height: .9rem; }
.vpx-card .link-arrow { margin-top: 1.1rem; color: var(--gold-light); }

.vpx-card__inner:hover .vpx-card__img, .vpx-card__inner:focus-visible .vpx-card__img { transform: scale(1.07); filter: saturate(1); }
.vpx-card__inner:hover::before, .vpx-card__inner:focus-visible::before { background: linear-gradient(180deg, rgba(15,37,48,.15) 15%, rgba(15,37,48,.7) 50%, rgba(15,37,48,.96) 100%); }
.vpx-card__inner:hover::after, .vpx-card__inner:focus-visible::after { border-color: rgba(228,207,163,.45); }
.vpx-card__inner:hover .vpx-card__more, .vpx-card__inner:focus-visible .vpx-card__more,
.vpx-card__inner:focus-within .vpx-card__more { grid-template-rows: 1fr; opacity: 1; }
.vpx-card__inner:hover .vpx-card__num::after { width: 60px; }
.vpx-card__inner:focus-visible { outline: 2px solid var(--champagne); outline-offset: 4px; }

/* Touch screens: no hover, so the text is always shown */
@media (hover: none) {
  .vpx-card__more { grid-template-rows: 1fr; opacity: 1; }
  .vpx-card__inner::before { background: linear-gradient(180deg, rgba(15,37,48,.1) 20%, rgba(15,37,48,.7) 50%, rgba(15,37,48,.95) 100%); }
}

/* ---- Reveal sequence (main.js adds .is-in to [data-inview]) ------------- */
.vpx-map.is-in .vpx-stream::before { transform: none; }
.vpx-map.is-in .vpx-stream__label::before { transform: none; }
.vpx-map.is-in .vpx-stream__label::after { opacity: 1; }
.vpx-map.is-in .vpx-card { opacity: 1; transform: none; }
.vpx-map.is-in .vpx-stream:nth-child(1) .vpx-card:nth-child(1) { transition-delay: .9s; }
.vpx-map.is-in .vpx-stream:nth-child(1) .vpx-card:nth-child(2) { transition-delay: 1.05s; }
.vpx-map.is-in .vpx-stream:nth-child(1) .vpx-card:nth-child(3) { transition-delay: 1.2s; }
.vpx-map.is-in .vpx-stream:nth-child(2) .vpx-card:nth-child(1) { transition-delay: 1.2s; }
.vpx-map.is-in .vpx-stream:nth-child(2) .vpx-card:nth-child(2) { transition-delay: 1.35s; }
.vpx-map.is-in .vpx-stream:nth-child(2) .vpx-card:nth-child(3) { transition-delay: 1.5s; }
@media (prefers-reduced-motion: reduce) {
  .vpx-stream::before, .vpx-stream__label::before { transform: none; transition: none; }
  .vpx-stream__label::after, .vpx-card { opacity: 1; transform: none; transition: none; }
}

/* ---- Responsive --------------------------------------------------------- */
/* Tablet: each stream on its own row, cards side by side */
@media (max-width: 991.98px) {
  .vpx { --drop: 2.5rem; }
  .vpx-streams { grid-template-columns: 1fr; row-gap: 3.5rem; }
  .vpx-stream { grid-column: auto; }
  .vpx-stream + .vpx-stream::before { display: none; } /* only the first stream hangs from the hub */
  .vpx-hub { flex-direction: column; align-items: flex-start; }
  /* a stream with one card would otherwise give a very tall full-width card */
  .vpx-stream--single .vpx-card__inner { aspect-ratio: 16 / 9; }
}
/* Phone: everything stacks; cards become landscape so the page stays short */
@media (max-width: 575.98px) {
  .vpx-hub__pillars { flex-direction: column; gap: .35rem; }
  .vpx-hub__pillars li { border-left: 0; padding: 0; }
  .vpx-stream::before { left: 0; }
  .vpx-stream__label { text-align: left; padding-left: 0; }
  .vpx-stream__label::after { border-right: 0; }
  .vpx-cards { grid-template-columns: 1fr; }
  .vpx-card__inner { aspect-ratio: 4 / 4.2; }
}

/* =========================================================================
   VIREÔMONT™ — Sign in / Forgot password / Set password
   ========================================================================= */
.vm-auth .form-control.is-invalid { border-color: #a13c2e; }

/* Password field with show/hide button */
.vm-pass { position: relative; }
.vm-pass .form-control { padding-right: 3.25rem; }
.vm-pass .form-control::-ms-reveal { display: none; }   /* hide Edge's own eye */
.vm-pass__toggle {
  position: absolute; top: 0; right: 0; bottom: 0; width: 3rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: rgba(26,26,24,.55); font-size: 1.1rem;
  border-radius: 0 2px 2px 0; transition: color .3s var(--ease);
}
.vm-pass__toggle:hover, .vm-pass__toggle[aria-pressed="true"] { color: var(--teal); }
.vm-pass__toggle:focus-visible { outline: 2px solid var(--champagne); outline-offset: -4px; }

/* Remember me + forgot link */
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem; }
.auth-row a, .vm-auth a:not(.btn-vm):not(.btn-vm-ghost) { color: var(--teal); }
.auth-check { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; color: rgba(26,26,24,.8); }
.auth-check input { width: 1.05rem; height: 1.05rem; accent-color: var(--teal); }

/* Alerts */
.auth-alert { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1.1rem; margin-bottom: 1.5rem; border: 1px solid; border-radius: 2px; font-size: .9rem; outline: none; }
.auth-alert p { margin: 0; } .auth-alert p + p { margin-top: .25rem; }
.auth-alert .bi { font-size: 1.1rem; line-height: 1.35; flex: none; }
.auth-alert--error { border-color: rgba(161,60,46,.45); background: rgba(161,60,46,.06); color: #8a3326; }
.auth-alert--success { border-color: rgba(47,107,79,.4); background: rgba(47,107,79,.07); color: #2f6b4f; }

/* Password rules */
.pass-rules { list-style: none; padding: 0; margin: -.75rem 0 1.5rem; display: grid; gap: .3rem; font-size: .82rem; color: rgba(26,26,24,.6); }
.pass-rules li { display: flex; align-items: center; gap: .5rem; transition: color .3s; }
.pass-rules li::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1px solid rgba(26,26,24,.3); background: center / 10px no-repeat; transition: background-color .3s, border-color .3s; }
.pass-rules li.is-ok { color: #2f6b4f; }
.pass-rules li.is-ok::before { border-color: #2f6b4f; background-color: #2f6b4f; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m5 10 3.5 3.5L15 7'/%3e%3c/svg%3e"); }
.was-checked .pass-rules li:not(.is-ok) { color: #a13c2e; }

/* Confirmation / expired states */
.auth-done { text-align: center; }
.auth-done > .bi { display: block; font-size: 2.4rem; color: var(--champagne); margin-bottom: 1rem; }
.auth-done p { color: rgba(26,26,24,.75); }

/* Busy submit */
.vm-auth [type=submit].is-sending { opacity: .7; pointer-events: none; }

/* Headings inside the ivory panel (the dark section would otherwise make them ivory-on-ivory) */
.access-panel h1, .access-panel h2, .access-panel h3, .access-panel h4 { color: var(--ink); }

/* =========================================================================
   VIREÔMONT™ — Welcome popup
   ========================================================================= */
.vm-welcome {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 2px; background: transparent; color: var(--ink); overflow: visible;
}
.vm-welcome::backdrop { background: rgba(10, 26, 34, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.vm-welcome[open] { animation: vm-welcome-in .7s var(--ease) both; }
.vm-welcome[open]::backdrop { animation: vm-welcome-fade .6s var(--ease) both; }
@keyframes vm-welcome-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes vm-welcome-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .vm-welcome[open], .vm-welcome[open]::backdrop { animation: none; } }

.vm-welcome__card {
  position: relative; max-height: inherit; overflow-y: auto; text-align: center;
  padding: clamp(2.2rem, 5vw, 3.4rem) clamp(1.5rem, 5vw, 3.2rem) clamp(2rem, 4vw, 2.8rem);
  background: var(--ivory); border-top: 2px solid var(--champagne);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .35);
}
.vm-welcome__card::after { /* fine inner frame */
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(198, 165, 107, .35); pointer-events: none;
}
.vm-welcome__mark { display: block; margin: 0 auto 1.1rem; }
.vm-welcome__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 6vw, 3rem); line-height: 1.05; color: var(--ink); margin: 0; }
.vm-welcome__rule { display: block; width: 56px; height: 1px; margin: 1.2rem auto 1.3rem; background: var(--gold-grad, var(--champagne)); }
.vm-welcome__text { font-size: 1rem; line-height: 1.7; color: rgba(26, 26, 24, .78); max-width: 42ch; margin: 0 auto; }
.vm-welcome__text p:last-child { margin-bottom: 0; }
.vm-welcome__text a { color: var(--teal); }

.vm-welcome__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.vm-welcome__actions .btn-vm-outline { color: var(--teal); border-color: rgba(30, 63, 78, .45); background: transparent; }
.vm-welcome__actions .btn-vm-outline:hover { background: var(--teal); border-color: var(--teal); color: var(--ivory); }
.vm-welcome__actions .btn-vm-outline:focus-visible { background: transparent; color: var(--teal); box-shadow: none; }
.vm-welcome__actions :focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }

.vm-welcome__close {
  position: absolute; top: 18px; right: 18px; z-index: 1; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: transparent; color: rgba(26, 26, 24, .55);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.vm-welcome__close:hover { background: rgba(198, 165, 107, .18); color: var(--ink); }
.vm-welcome__close:focus-visible { outline: 2px solid var(--champagne); outline-offset: 2px; }

@media (max-width: 575.98px) {
  .vm-welcome__actions { flex-direction: column; }
  .vm-welcome__actions > * { width: 100%; justify-content: center; }
}
html.vm-welcome-open { overflow: hidden; }
