/* ==========================================================================
   SevaWear — Homepage v1
   Quiet luxury / editorial. Tokens per SEVAWEAR_HOMEPAGE_SPEC.md
   ========================================================================== */

:root {
  --green: #1d322b;
  --green-2: #24413a;
  --green-deep: #14231e;
  --cream: #f1e8dd;
  --cream-2: #ebe1d4;
  --ink: #1b1f1d;
  --muted: #5d625f;
  --line: rgba(255,255,255,.28);
  --line-dark: rgba(27,31,29,.18);

  --forest: #1d322b;
  --navy: #1f2b4d;
  --burgundy: #6b1f2c;

  --display: 'Tenor Sans', Didot, 'Helvetica Neue', sans-serif;
  --body: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --pad: clamp(20px, 5vw, 72px);
  --sec-y: clamp(48px, 6vw, 96px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: .01em;
  margin: 0;
}
h1 { font-size: clamp(38px, 4.6vw, 72px); }
h2 { font-size: clamp(28px, 2.9vw, 46px); }
.lead {
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 300;
  line-height: 1.6;
  margin: 26px 0 0;
}
.lead.narrow { max-width: 380px; }
.eyebrow {
  display: flex; align-items: center; gap: 18px;
  font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  margin: 0 0 26px;
}
.eyebrow .hair { width: 56px; height: 1px; background: currentColor; opacity: .5; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 26px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn .arr, .link-u .arr { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: var(--cream); color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.link-u {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}
a:hover .link-u .arr, .link-u:hover .arr { transform: translate(3px, -3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 26px var(--pad);
  color: var(--cream);
  transition: padding .4s var(--ease), background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
  padding-top: 16px; padding-bottom: 16px;
  background: rgba(241,232,221,.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line-dark);
}
.logo { font-family: var(--display); font-size: 22px; letter-spacing: .08em; }

.main-nav { display: flex; gap: 42px; }
.nav-link {
  position: relative; display: inline-block; padding: 6px 0;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav-link:hover::after, .has-drop:focus-within .nav-link::after { transform: scaleX(1); }

.has-drop { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 18px); left: 50%;
  display: grid; grid-template-columns: repeat(3, auto); gap: 48px;
  padding: 30px 40px;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 20px 50px rgba(20,35,30,.14);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.dropdown::before { content: ''; position: absolute; inset: -20px 0 auto 0; height: 20px; }
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.drop-col h4 { margin: 0 0 14px; font-size: 11px; font-weight: 600; letter-spacing: .22em; color: var(--muted); }
.drop-col a { display: block; padding: 5px 0; font-size: 14px; font-weight: 300; white-space: nowrap; }
.drop-col a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }

.nav-icons { display: flex; gap: 20px; justify-self: end; align-items: center; }
.icon-btn { display: inline-grid; place-items: center; position: relative; }
.bag-count {
  position: absolute; top: -7px; right: -9px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 600;
  background: var(--cream); color: var(--ink);
  transition: transform .3s var(--ease);
}
.scrolled .bag-count { background: var(--green); color: var(--cream); }
.bag-count.empty { display: none; }
.bag-count.bump { transform: scale(1.35); }
.burger { display: none; }

/* ---------- Mobile drawer ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 80;
  background: var(--green); color: var(--cream);
  padding: 100px var(--pad) 40px;
  transform: translateX(100%);
  transition: transform .55s var(--ease);
  visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer nav { display: flex; flex-direction: column; gap: 22px; }
.drawer nav a { font-family: var(--display); font-size: clamp(30px, 9vw, 44px); text-transform: uppercase; }
.drawer-close { position: absolute; top: 24px; right: var(--pad); }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.d1 { transition-delay: .12s; } .d2 { transition-delay: .24s; } .d3 { transition-delay: .36s; }

/* ---------- Media / placeholders ---------- */
.media { overflow: hidden; position: relative; }
.media > img, .media > .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.media:hover > img, .media:hover > .ph { transform: scale(1.04); }

.ph {
  position: relative; width: 100%; height: 100%;
  display: grid; place-items: end start;
  background:
    radial-gradient(120% 90% at 70% 30%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(135deg, var(--green-2), var(--green-deep));
  color: rgba(241,232,221,.55);
}
.ph > span {
  padding: 18px 22px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  position: relative; z-index: 2;
}
.ph.has-3d > span { opacity: 0; }
.ph-card { --tint: var(--green); background: radial-gradient(110% 80% at 30% 20%, color-mix(in srgb, var(--tint) 55%, #fff 10%), var(--tint) 70%); }
.ph-card > span { color: rgba(241,232,221,.75); }

canvas.fabric3d {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; z-index: 1;
  opacity: 0; transition: opacity 1.4s var(--ease);
}
canvas.fabric3d.ready { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1fr 1fr;
  background: radial-gradient(120% 120% at 20% 40%, #2d4a42 0%, var(--green) 45%, var(--green-deep) 100%);
  color: var(--cream);
  overflow: hidden;
}
.hero-copy {
  align-self: center;
  padding: 140px var(--pad) 140px;
  position: relative; z-index: 3;
}
.hero-copy h1 { font-size: clamp(38px, 4.4vw, 70px); }
/* Photo on the right, natural colours (no tint / shadow), starting below the
   fixed header so heads are never cut; only the left edge fades into the green. */
.hero-media {
  position: absolute; top: 92px; right: 0; bottom: 0;
  width: 54%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}
.hero-media > img, .hero-media > .ph {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transform-origin: center top;
  animation: heroZoom 2.4s var(--ease) both;
}
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }

.hero-tabs {
  position: absolute; left: var(--pad); bottom: 40px; z-index: 4;
  display: flex; align-items: stretch;
}
.hero-tabs a {
  position: relative;
  padding: 16px 40px 0 0;
  font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  opacity: .62; transition: opacity .3s;
}
.hero-tabs a + a { padding-left: 40px; border-left: 1px solid var(--line); padding-top: 2px; margin-top: 14px; }
.hero-tabs a.active::before {
  content: ''; position: absolute; left: 0; right: 40px; top: 0; height: 1px; background: var(--cream);
}
.hero-tabs a.active { opacity: 1; }
.hero-tabs a:hover { opacity: 1; }

/* ---------- Split sections ---------- */
.split {
  display: grid; grid-template-columns: 40% 60%;
  min-height: clamp(400px, 32vw, 600px);
}
.split.reverse { grid-template-columns: 60% 40%; min-height: clamp(400px, 34vw, 640px); }
.split.reverse .split-text { padding-left: clamp(28px, 4.5vw, 64px); }
.split.light { background: var(--cream); color: var(--ink); }
.split.dark { background: var(--green); color: var(--cream); }
.split-text {
  align-self: center;
  padding: var(--sec-y) var(--pad);
}
.split-media { min-height: 100%; }
.split-media > img, .split-media > .ph { position: absolute; inset: 0; }

/* Find your fit */
.fit-links { display: flex; margin-top: 44px; }
.fit-links a { display: flex; flex-direction: column; gap: 14px; padding-right: 36px; }
.fit-links a + a { padding-left: 36px; padding-right: 0; border-left: 1px solid var(--line-dark); }
.fit-links strong { font-weight: 500; font-size: 15px; letter-spacing: .08em; }
.fit-links .link-u { font-size: 11px; letter-spacing: .12em; text-transform: none; font-weight: 400; }

/* Essentials diagonal */
.diag { clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }

/* Comfort */
.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  max-width: 520px; margin-top: 46px;
}
.features li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; font-size: 12.5px; line-height: 1.35; }
.features small { font-size: 12.5px; color: var(--ink); margin-top: 12px; }
.f-ic {
  width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.features li:hover .f-ic { background: var(--green); color: var(--cream); border-color: var(--green); }

.fade-left::after, .fade-left-green::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(241,232,221,1) 0%, rgba(241,232,221,.982) 5%, rgba(241,232,221,.93) 10%, rgba(241,232,221,.853) 15%, rgba(241,232,221,.755) 20%, rgba(241,232,221,.644) 25%, rgba(241,232,221,.524) 30%, rgba(241,232,221,.404) 35%, rgba(241,232,221,.288) 40%, rgba(241,232,221,.184) 45%, rgba(241,232,221,.098) 50%, rgba(241,232,221,.038) 55%, rgba(241,232,221,.008) 59%, rgba(241,232,221,0) 62%);
}
.fade-left-green::after { background: linear-gradient(90deg, var(--green) 0%, rgba(29,50,43,0) 30%); }
.community .split-media > img { object-position: left top; }
.community .split-media { background: var(--green); }
#fit .split-media > img { object-position: center top; }
#story .split-media > img { object-position: center top; }
.essentials .split-media > img { object-position: 60% 55%; }
.split-text .lead + div { margin-top: 34px; }
.comfort .split-media > img { object-position: center; }
.comfort { min-height: clamp(480px, 42vw, 740px); }
.comfort .split-text { position: relative; z-index: 3; }
@media (min-width: 961px) {
  .comfort { grid-template-columns: 45% 55%; }
  /* one line per headline row; the min() keeps it inside the text column now that the fabric panel has a hard edge */
  .comfort h2 { white-space: nowrap; font-size: min(clamp(24px, 2.3vw, 40px), calc((45vw - 2 * var(--pad)) / 16.2)); }
}

/* ---------- Shop ---------- */
.shop { background: var(--cream-2); padding: clamp(70px, 8vw, 120px) var(--pad); }
.shop-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.filters { display: flex; gap: 14px; align-items: center; font-size: 12px; letter-spacing: .16em; font-weight: 500; }
.filters span { color: var(--muted); }
.filters button { padding: 6px 0; border-bottom: 1px solid transparent; color: var(--muted); transition: color .3s, border-color .3s; }
.filters button:hover { color: var(--ink); }
.filters button.active { color: var(--ink); border-bottom-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.card { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.card.hide { display: none; }
.card-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream); }
.card-img > img, .card-img > .ph {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.card:hover .card-img > img, .card:hover .card-img > .ph { transform: scale(1.06); }
.tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 6px 10px;
  background: var(--green); color: var(--cream);
  font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
}
.add {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 16px;
  background: var(--green); color: var(--cream);
  font-size: 11px; font-weight: 600; letter-spacing: .16em;
  transform: translateY(101%);
  transition: transform .45s var(--ease), background .3s;
}
.card:hover .add, .add:focus-visible { transform: none; }
.add:hover { background: var(--green-deep); }
.add[disabled] { opacity: .7; cursor: progress; }
.card h3 { font-family: var(--body); text-transform: none; font-size: 15px; font-weight: 500; letter-spacing: 0; line-height: 1.35; margin: 16px 0 6px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.swatches { display: flex; gap: 6px; }
.swatches i { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.db-notice { padding: 18px 22px; border: 1px solid var(--line-dark); margin: 0 0 30px; font-size: 14px; }
.db-notice a { border-bottom: 1px solid; }

/* ---------- Banner ---------- */
.banner {
  position: relative; overflow: hidden;
  min-height: clamp(380px, 38vw, 540px);
  display: grid; place-items: center; text-align: center;
  color: var(--cream);
  background: var(--green-deep);
}
.banner::before {
  content: ''; position: absolute; inset: 0;
  background: var(--bg, none) center / cover no-repeat;
  filter: brightness(.85) saturate(.95);
}
.banner > canvas.fabric3d { filter: brightness(.85) saturate(.95); }
.banner-inner { position: relative; z-index: 3; padding: 60px var(--pad); }
.banner h1 { letter-spacing: .08em; }
.banner .lead { font-size: clamp(18px, 1.6vw, 24px); margin: 18px 0 34px; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--green-deep); color: var(--cream);
  padding: 56px var(--pad);
  display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
}
.newsletter h3 { font-size: 22px; }
.nl-form { display: flex; gap: 18px; align-items: flex-end; flex: 0 1 560px; }
.nl-form input[type=email] {
  flex: 1; min-width: 0;
  padding: 14px 2px;
  background: transparent; color: var(--cream);
  border: 0; border-bottom: 1px solid var(--line);
  font: 300 15px var(--body);
  border-radius: 0;
}
.nl-form input::placeholder { color: rgba(241,232,221,.55); }
.nl-form input:focus { outline: none; border-bottom-color: var(--cream); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream); padding: 56px var(--pad) 34px; }
.foot-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.foot-logo { font-size: 28px; }
.foot-links { display: flex; gap: 42px; font-size: 12px; font-weight: 500; letter-spacing: .16em; }
.foot-links a:hover { color: var(--green); }
.socials { display: flex; gap: 20px; justify-self: end; }
.socials a { transition: transform .3s var(--ease), color .3s; }
.socials a:hover { transform: translateY(-3px); color: var(--green); }
.copy { text-align: center; margin: 28px 0 0; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200; /* above the Try On modal */
  padding: 16px 26px;
  background: var(--green); color: var(--cream);
  font-size: 13px; letter-spacing: .04em;
  box-shadow: 0 20px 40px rgba(0,0,0,.18);
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.error { background: var(--burgundy); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .burger { display: inline-grid; }
  .site-header { grid-template-columns: 1fr auto; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-media { position: relative; top: 0; width: 100%; order: -1; height: 72vh; margin-top: 76px; -webkit-mask-image: none; mask-image: none; }
  .hero-media > img { object-position: center top; }
  .hero-copy { margin-top: 0; padding: 48px var(--pad) 120px; }

  .split, .split.reverse { grid-template-columns: 1fr; min-height: 0; }
  .split-media { height: max(62vw, 320px); min-height: 0; }
  .essentials .split-media { order: -1; }
  .diag { clip-path: none; }
  .fade-left::after, .fade-left-green::after { display: none; }
  .split-text { padding: 56px var(--pad); }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .add { transform: none; padding: 12px; font-size: 10px; }

  .foot-row { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .socials { justify-self: center; }
  .newsletter { flex-direction: column; align-items: stretch; text-align: center; }
  .nl-form { flex-basis: auto; }
}

@media (max-width: 520px) {
  .features { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .hero-tabs { display: none; }
  .hero-copy { padding-bottom: 70px; }
  .nl-form { flex-direction: column; align-items: stretch; }
  .fit-links a { padding-right: 24px; }
  .fit-links a + a { padding-left: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- Hero: full photo background, blended into the green ---------- */
/* One long eased fade (mask + matching green wash) so the bright wall melts
   into the green like a natural vignette: no visible edge or band. */
.hero-media.bg {
  top: 0; bottom: 0; right: 0; left: 22%; width: auto;
  -webkit-mask-image: linear-gradient(90deg,
    rgba(0,0,0,0) 0%, rgba(0,0,0,.08) 3%, rgba(0,0,0,.22) 6%, rgba(0,0,0,.42) 9%,
    rgba(0,0,0,.62) 12%, rgba(0,0,0,.8) 15%, rgba(0,0,0,.92) 18%, #000 22%);
  mask-image: linear-gradient(90deg,
    rgba(0,0,0,0) 0%, rgba(0,0,0,.08) 3%, rgba(0,0,0,.22) 6%, rgba(0,0,0,.42) 9%,
    rgba(0,0,0,.62) 12%, rgba(0,0,0,.8) 15%, rgba(0,0,0,.92) 18%, #000 22%);
}
.hero-media.bg > img {
  inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 72% top;
  filter: none;
  transform-origin: 72% top;
}
.hero-media.bg::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(29,50,43,.96) 0%, rgba(29,50,43,.9) 6%, rgba(29,50,43,.8) 11%,
      rgba(29,50,43,.66) 16%, rgba(29,50,43,.5) 21%, rgba(29,50,43,.34) 26%,
      rgba(29,50,43,.2) 30%, rgba(29,50,43,.09) 34%, rgba(29,50,43,.03) 37%, rgba(29,50,43,0) 40%),
    linear-gradient(180deg,
      rgba(20,35,30,.5) 0, rgba(20,35,30,.32) 40px, rgba(20,35,30,.14) 80px, rgba(20,35,30,.04) 110px, rgba(20,35,30,0) 130px);
}
@media (max-width: 960px) {
  .hero-media.bg { position: relative; left: 0; width: 100%; height: 72vh; margin-top: 0; -webkit-mask-image: none; mask-image: none; }
  .hero-media.bg > img { object-position: 68% top; }
  .hero-media.bg::after {
    background:
      linear-gradient(0deg, var(--green) 0%, rgba(29,50,43,0) 30%),
      linear-gradient(180deg, rgba(20,35,30,.6) 0, rgba(20,35,30,0) 100px);
  }
}

/* ==========================================================================
   Opening transition (motion only). Active while <html class="intro">.
   Every rule's final state equals the page's normal appearance.
   Skipped under prefers-reduced-motion.
   ========================================================================== */
:root { --intro-ease: cubic-bezier(.2,.7,.2,1); }

.intro-pl, .intro-skip { display: none; }

/* --- Loading screen: plain cream, the SEVA Wear logo and tagline --------- */
html.intro .intro-pl {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 500; overflow: hidden;
  background: var(--cream);
  transition: opacity .7s cubic-bezier(.4,0,.2,1);
}
html.intro .intro-pl.pl-out { opacity: 0; pointer-events: none; }
.pl-wrap { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 20px; }
.intro-pl .brand-intro { --bm-w: clamp(190px, 18vw, 300px); }
.pl-logo, .pl-tag { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--intro-ease), transform 1s var(--intro-ease); }
.pl-logo.is-on, .pl-tag.is-on { opacity: 1; transform: none; }
.pl-tag { margin-top: clamp(20px, 2.2vw, 30px); font-size: clamp(9.5px, .62vw + 5px, 11.5px); font-weight: 500; letter-spacing: .34em; text-indent: .34em; text-transform: uppercase; color: #3d4654; transform: translateY(8px); }
@media (max-width: 600px) {
  .intro-pl .brand-intro { --bm-w: clamp(170px, 50vw, 220px); }
}

/* Skip link: off-screen for mouse users, appears for keyboard users */
html.intro .intro-skip {
  display: inline-block; position: fixed; right: var(--pad); bottom: 28px; z-index: 502;
  font: 500 11px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: #244C78;
  padding: 8px 0; border-bottom: 1px solid rgba(36,76,120,.45); opacity: 0;
}
html.intro .intro-skip:focus-visible { opacity: 1; }

/* --- Hero reveal ---------------------------------------------------------- */
html.intro .hero { clip-path: inset(0 100% 0 0); }
html.intro .hero.is-on { clip-path: inset(0 0 0 0); transition: clip-path 1.1s cubic-bezier(.77,0,.18,1); }
html.intro .hero-media > img, html.intro .hero-media > .ph { animation: none; transform: scale(1.08); }
html.intro .hero-media.is-on > img, html.intro .hero-media.is-on > .ph { transform: scale(1); transition: transform 2.6s var(--intro-ease); }

/* During the intro the hero's own choreography replaces the generic scroll-reveal */
html.intro .hero .rv { opacity: 1; transform: none; transition: none; }

html.intro .site-header { opacity: 0; transform: translateY(-8px); }
html.intro .site-header.is-on { opacity: 1; transform: none; transition: opacity .9s var(--intro-ease), transform .9s var(--intro-ease); }

.hl { display: block; overflow: hidden; }
.hl > span { display: block; }
html.intro .hero .hl > span { transform: translateY(105%); }
html.intro .hero .hl.is-on > span { transform: none; transition: transform 1s cubic-bezier(.2,.75,.2,1); }

html.intro .hero .eyebrow .hair { transform: scaleX(0); transform-origin: left; }
html.intro .hero .eyebrow .hair.is-on { transform: scaleX(1); transition: transform .9s var(--intro-ease); }

html.intro .hero .lead, html.intro .hero .btn-row { opacity: 0; transform: translateY(10px); }
html.intro .hero .lead.is-on, html.intro .hero .btn-row.is-on { opacity: 1; transform: none; transition: opacity .8s var(--intro-ease), transform .8s var(--intro-ease); }

html.intro.intro-lock, html.intro.intro-lock body { overflow: hidden; }
/* Skip: jump every element to its final state instantly */
html.intro.intro-skipped .hero, html.intro.intro-skipped .hero *, html.intro.intro-skipped .site-header { transition: none !important; }

/* ==========================================================================
   Try On — fit preview
   ========================================================================== */
.try {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  padding: 7px 11px;
  background: rgba(241,232,221,.92); color: var(--green);
  font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  backdrop-filter: blur(4px);
  transition: background .3s, color .3s;
}
.try:hover, .try:focus-visible { background: var(--green); color: var(--cream); }

.tryon { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.tryon[hidden] { display: none; }
.tryon-backdrop { position: absolute; inset: 0; background: rgba(20,35,30,.72); backdrop-filter: blur(6px); }
.tryon-panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  width: min(1080px, 100%, calc((100vh - 40px) * .75 + 340px)); max-height: calc(100vh - 40px);
  background: var(--cream); color: var(--ink);
  box-shadow: 0 40px 80px rgba(0,0,0,.35); overflow: hidden;
}
.tryon-close { position: absolute; top: 8px; right: 10px; z-index: 5; width: 40px; height: 40px; font-size: 28px; line-height: 1; color: var(--ink); }
.tryon-stage { position: relative; aspect-ratio: 3 / 4; max-height: calc(100vh - 40px); background: var(--green-deep); overflow: hidden; touch-action: none; }
.tryon-stage > video, .tryon-stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tryon-stage > video { object-fit: cover; }
.tryon-stage.mirror > video, .tryon-stage.mirror > #tryonPhoto { transform: scaleX(-1); }
#tryonLayer { cursor: grab; outline: none; z-index: 2; }
#tryonLayer:active { cursor: grabbing; }
#tryonLayer:focus-visible { box-shadow: inset 0 0 0 2px var(--cream); }
.tryon-empty {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-content: center; gap: 10px; text-align: center; padding: 32px;
  background: var(--green); color: var(--cream);
}
.tryon-empty[hidden] { display: none; }
.tryon-empty .eyebrow { justify-content: center; }
.tryon-empty h3 { font-size: clamp(24px, 3vw, 36px); }
.tryon-empty p { max-width: 34ch; margin: 0 auto; font-size: 14px; font-weight: 300; color: rgba(241,232,221,.85); }
.tryon-empty small { font-size: 11px; letter-spacing: .06em; color: rgba(241,232,221,.6); }
.tryon-status { max-width: 40ch; margin: 4px auto 0; padding: 10px 14px; background: rgba(241,232,221,.12); font-size: 13px; line-height: 1.5; color: var(--cream); }
.tryon-status.error { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(241,232,221,.35); }
.tryon-status[hidden] { display: none; }
.tryon-empty .btn[disabled] { opacity: .6; cursor: progress; }
.tryon-src { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.tryon .btn-outline { background: transparent; color: var(--green); border: 1px solid var(--green); cursor: pointer; }
.tryon .btn-outline:hover { background: var(--green); color: var(--cream); }
.tryon-empty .btn-outline { color: var(--cream); border-color: rgba(241,232,221,.7); }
.tryon-empty .btn-outline:hover { background: var(--cream); color: var(--ink); }
.tryon-empty .btn { background: var(--cream); color: var(--ink); }
.tryon-side { display: flex; flex-direction: column; gap: 14px; padding: 48px 32px 28px; overflow: auto; max-height: calc(100vh - 40px); min-height: 0; }
.tryon-side h2 { font-size: clamp(22px, 2vw, 30px); }
.tryon-price { margin-top: -6px; font-size: 15px; color: var(--muted); }
.tryon-label { margin-top: 6px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.tryon-select { padding: 10px 12px; border: 1px solid rgba(29,50,43,.25); background: #fff; color: var(--ink); font: 14px var(--body); }
.tryon-swatches { display: flex; gap: 10px; }
.tryon-swatches button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.tryon-swatches button[aria-pressed="true"] { border-color: var(--cream); box-shadow: 0 0 0 2px var(--green); }
#tryonSize { width: 100%; accent-color: var(--green); }
.tryon-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tryon-tool { padding: 8px 12px; border: 1px solid rgba(29,50,43,.25); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; transition: border-color .3s, background .3s; }
.tryon-tool:hover, .tryon-tool[aria-pressed="true"] { border-color: var(--green); }
.tryon-tool[aria-pressed="true"] { background: var(--green); color: var(--cream); }
.tryon-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.tryon-actions .btn { justify-content: center; }
.tryon-side .btn:not(.btn-outline) { background: var(--green); color: var(--cream); }
.tryon-side .btn:not(.btn-outline):hover { background: var(--green-deep); }
.tryon-hint { font-size: 11px; letter-spacing: .04em; color: var(--muted); }
/* lock the page behind the try-on: the document scrolls on <html>, so both are locked; scrolling stays inside the panel */
html.tryon-open, body.tryon-open { overflow: hidden; }
.tryon, .tryon-panel, .tryon-side { overscroll-behavior: contain; }
@media (max-width: 860px) {
  .tryon { padding: 0; }
  .tryon-panel { grid-template-columns: 1fr; width: 100%; height: 100vh; max-height: 100vh; overflow: auto; }
  .tryon-stage { aspect-ratio: auto; height: 62vh; max-height: 62vh; }
  .tryon-side { padding: 22px var(--pad) 28px; }
}


/* ==========================================================================
   SEVA brand lockup — the traditional SEVA mark (blue) + a SevaWear wordmark
   Variants: a stacked · b inline · c editorial (see brand.php)
   Logo palette only: navy #304e73, blue #6197c9, light blue #71c0d6, silver, white
   ========================================================================== */
:root { --seva-navy: #304e73; --seva-blue: #6197c9; --seva-sky: #71c0d6; --seva-silver: #cdd6de; }

.brand { display: inline-flex; align-items: center; color: var(--seva-navy); line-height: 1; white-space: nowrap; --bm-w: 92px; }
.brand .bm { display: block; width: var(--bm-w); height: auto; }
.brand .bm-dark { display: none; }
.brand .bw { font-family: var(--body); color: inherit; }
.brand .bw i { font-style: normal; }
/* dark backgrounds: white / silver version of the mark, white text */
.on-dark .brand, .site-header:not(.scrolled):not(.inner-h) .brand, .brand-intro, .brand-hero, .bp-stage.dark .brand, .bp-mini.dark .brand { color: #fff; }
.on-dark .brand .bm-light, .site-header:not(.scrolled):not(.inner-h) .brand .bm-light, .brand-intro .bm-light, .brand-hero .bm-light, .bp-stage.dark .brand .bm-light, .bp-mini.dark .brand .bm-light { display: none; }
.on-dark .brand .bm-dark, .site-header:not(.scrolled):not(.inner-h) .brand .bm-dark, .brand-intro .bm-dark, .brand-hero .bm-dark, .bp-stage.dark .brand .bm-dark, .bp-mini.dark .brand .bm-dark { display: block; }
body.inner .site-header .brand { color: var(--seva-navy); }
body.inner .site-header .brand .bm-light { display: block; }
body.inner .site-header .brand .bm-dark { display: none; }

/* a · stacked: WEAR under a hairline, like HEALTHCARE in the parent logo */
.brand-a { flex-direction: column; align-items: stretch; gap: 5px; }
.brand-a .bw { display: block; text-align: center; border-top: 1px solid currentColor; padding-top: 5px; font-size: calc(var(--bm-w) * .105); font-weight: 500; letter-spacing: .5em; text-indent: .5em; }
/* b · inline: SEVA + WEAR as one word */
.brand-b { align-items: flex-end; gap: calc(var(--bm-w) * .04); }
.brand-b .bw { font-size: calc(var(--bm-w) * .285); font-weight: 600; letter-spacing: .01em; transform: translateY(calc(var(--bm-w) * .012)); }
/* c · editorial: mark | SEVAWEAR. in the display face */
.brand-c { gap: calc(var(--bm-w) * .13); }
.brand-c .bw { font-family: var(--display); font-size: calc(var(--bm-w) * .2); letter-spacing: .14em; padding-left: calc(var(--bm-w) * .13); border-left: 1px solid currentColor; line-height: 1.1; }

/* sizes per placement */
.site-header .logo { display: inline-flex; align-items: center; }
.brand-header { --bm-w: 88px; }
.brand-footer { --bm-w: 120px; }
.foot-brand { display: flex; flex-direction: column; gap: 10px; }
.foot-brand small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.brand-intro { --bm-w: clamp(160px, 22vw, 260px); }
.pl-logo { letter-spacing: 0; text-indent: 0; display: block; }
.hero-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 34px; }
.brand-hero { --bm-w: clamp(150px, 15vw, 230px); }
.hero-brand-tag { font-size: 10px; font-weight: 500; letter-spacing: .3em; color: rgba(241,232,221,.72); }
@media (max-width: 960px) { .brand-header { --bm-w: 74px; } .hero-brand { margin-bottom: 24px; } }

/* ---------- offers strip under the hero ---------- */
.promo-strip { overflow: hidden; background: var(--seva-navy); color: #fff; border-top: 1px solid rgba(255,255,255,.12); }
.promo-track { display: flex; width: max-content; animation: promoScroll 42s linear infinite; }
.promo-track span { padding: 13px 44px; font-size: 10.5px; font-weight: 500; letter-spacing: .24em; white-space: nowrap; position: relative; }
.promo-track span::after { content: ''; position: absolute; right: 0; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--seva-sky); transform: translateY(-50%); }
@keyframes promoScroll { to { transform: translateX(-50%); } }
.promo-strip:hover .promo-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .promo-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ---------- shop: category chips ---------- */
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 30px; }
.cats button { padding: 8px 14px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 10.5px; font-weight: 500; letter-spacing: .16em; color: var(--muted); transition: color .3s, border-color .3s, background .3s; }
.cats button:hover { color: var(--ink); border-color: var(--ink); }
.cats button.active { color: var(--cream); background: var(--green); border-color: var(--green); }
.no-match { margin: 0 0 30px; font-weight: 300; color: var(--muted); }

/* ---------- offers & programmes ---------- */
.offers { padding: var(--sec-y) var(--pad); background: var(--cream-2); }
.offers-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 44px; }
.offers-head .lead { margin: 0; max-width: 46ch; justify-self: end; }
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.offer { background: var(--cream); padding: 34px 30px 30px; display: flex; flex-direction: column; gap: 12px; min-height: 250px; transition: background .4s; }
.offer:hover { background: #fff; }
.offer small { font-size: 10px; letter-spacing: .3em; color: var(--seva-navy); }
.offer h3 { font-size: 18px; letter-spacing: .04em; }
.offer p { margin: 0; font-weight: 300; line-height: 1.6; color: var(--muted); flex: 1; }
.offer .link-u { align-self: flex-start; }
@media (max-width: 960px) { .offers-head { grid-template-columns: 1fr; } .offers-head .lead { justify-self: start; } .offers-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .offers-grid { grid-template-columns: 1fr; } }

/* ---------- student modal / promo field ---------- */
.modal-panel.stu { width: min(520px, 100%); }
.modal-panel.stu .muted { font-weight: 300; line-height: 1.6; }
.promo-result { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; margin: 10px 0 0; }
.promo-result strong { font-size: 28px; letter-spacing: .24em; color: var(--seva-navy); }
.promo-form { display: flex; gap: 8px; margin: 18px 0 8px; }
.promo-form input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line-dark); background: #fff; font: 400 13px var(--body); letter-spacing: .12em; text-transform: uppercase; }
.promo-form button { padding: 10px 16px; border: 1px solid var(--ink); font-size: 11px; font-weight: 600; letter-spacing: .18em; }
.promo-form button:hover { background: var(--ink); color: var(--cream); }
.promo-lines { margin: 0 0 6px; padding: 0; font-size: 13px; color: var(--seva-navy); }
.promo-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }

/* ---------- brand.php ---------- */
.bp-ref { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0; }
.bp-ref-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 34px 20px; min-height: 180px; }
.bp-ref-card.light { background: #fff; border: 1px solid var(--line-dark); }
.bp-ref-card.dark { background: var(--green); color: var(--cream); }
.bp-ref-card small { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.bp-ref-card.swatches { flex-direction: row; flex-wrap: wrap; }
.bp-ref-card.swatches span { width: 44px; height: 44px; border-radius: 50%; background: var(--c); border: 1px solid var(--line-dark); }
.bp-ref-card.swatches small { width: 100%; text-align: center; }
.bp-options { display: grid; gap: 28px; }
.bp-option { border: 1px solid var(--line-dark); background: #fff; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.bp-option.is-active { outline: 2px solid var(--seva-navy); outline-offset: -2px; }
.bp-option header { grid-column: 1 / -1; }
.bp-blurb { margin: 6px 0 0; max-width: 70ch; font-weight: 300; line-height: 1.6; color: var(--muted); }
.bp-stage { display: grid; place-items: center; min-height: 220px; padding: 30px; }
.bp-stage.dark { background: var(--green); }
.bp-stage.light { background: var(--cream); border: 1px solid var(--line-dark); }
.bp-stage .brand-brand { --bm-w: clamp(160px, 20vw, 240px); }
.bp-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bp-mini { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; }
.bp-mini.dark { background: var(--green); color: var(--cream); }
.bp-mini.light { background: var(--cream); border: 1px solid var(--line-dark); }
.bp-mini small { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; opacity: .65; }
.bp-mini.light .brand { color: var(--seva-navy); }
.bp-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; }
@media (max-width: 760px) { .bp-ref, .bp-option, .bp-row { grid-template-columns: 1fr; } }
/* brand page: keep the wide lockups inside their stages */
.bp-stage .brand-b.brand-brand, .bp-stage .brand-c.brand-brand { --bm-w: clamp(120px, 11vw, 150px); }
.brand-c .bw { font-size: calc(var(--bm-w) * .17); letter-spacing: .12em; }
.bp-mini .brand { max-width: 100%; }
.bp-mini .brand-footer { --bm-w: 96px; }

/* One logo: it lives in the header (top left). The hero keeps only the SEVA Healthcare line. */
.hero-brand .brand { display: none; }
.hero-brand { margin-bottom: 18px; }
.brand-header { --bm-w: 96px; }
@media (max-width: 960px) { .brand-header { --bm-w: 78px; } }

/* Logo identity: the mark always keeps its own blues, whatever the background; only the WEAR line follows the background.
   Stacked lockup reads  SEVA  over  — WEAR —  */
.brand .bm-light { display: block !important; }
.brand .bm-dark { display: none !important; }
.brand-a { gap: 4px; }
.brand-a .bw { display: flex; align-items: center; gap: 7px; border-top: 0; padding-top: 0; text-indent: 0; letter-spacing: .42em; font-weight: 500; }
.brand-a .bw::before, .brand-a .bw::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .75; }
.brand-a .bw::after { margin-left: -.35em; }

/* ---- SEVA Wear / Apparel lockups (preview options d · e · f) ---- */
.brand-d, .brand-e, .brand-f { color: var(--seva-navy); }
.brand-d .bw, .brand-e .bw, .brand-f .bw { font-family: var(--body); font-weight: 700; line-height: .78; letter-spacing: -.01em; }
.brand-d { align-items: center; gap: calc(var(--bm-w) * .075); }
.brand-d .bw { font-size: calc(var(--bm-w) * .40); }
.brand-e { flex-direction: column; align-items: center; gap: calc(var(--bm-w) * .07); }
.brand-e .bw { font-size: calc(var(--bm-w) * .33); }
.brand-f { display: inline-grid; grid-template-columns: auto auto; align-items: center; column-gap: calc(var(--bm-w) * .075); row-gap: calc(var(--bm-w) * .09); }
.brand-f .bw { font-size: calc(var(--bm-w) * .40); }
.brand-f .ba { grid-column: 1 / -1; display: flex; align-items: center; gap: calc(var(--bm-w) * .05); font-family: var(--body); font-weight: 500; font-size: calc(var(--bm-w) * .085); letter-spacing: .5em; text-indent: .5em; white-space: nowrap; }
.brand-f .ba::before, .brand-f .ba::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .7; }
/* fixed colour versions */
.brand.tone-blue { color: var(--seva-navy); }
.brand.tone-white { color: #fff; }
.brand.tone-silver { color: #8a949e; }
.brand.tone-green { color: var(--green); }
.brand .bm { display: block; width: var(--bm-w); height: auto; }

/* preview page additions */
.bp-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; grid-column: 1 / -1; }
.bp-tone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 200px; padding: 28px 20px; }
.bp-tone.white { background: #fff; border: 1px solid var(--line-dark); }
.bp-tone.green { background: var(--green); color: var(--cream); }
.bp-tone.grey { background: #e9ebee; color: var(--muted); }
.bp-tone small { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; text-align: center; }
.bp-tone .brand-brand { --bm-w: clamp(110px, 10vw, 150px); }
.bp-hdr { grid-column: 1 / -1; background: var(--green); padding: 20px var(--pad); display: flex; align-items: center; justify-content: space-between; color: var(--cream); }
.bp-hdr nav { display: flex; gap: 32px; font-size: 12px; letter-spacing: .16em; }
.bp-hdr .brand-header { --bm-w: 120px; }
.bp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 40px; }
.bp-compare .bp-tone { min-height: 240px; }
.bp-compare .brand-brand { --bm-w: clamp(150px, 16vw, 230px); }
.bp-warn { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8a3b2b; }
@media (max-width: 760px) { .bp-grid3, .bp-compare { grid-template-columns: 1fr; } }
/* size balance: the mark leads, "Wear" sits just under its cap height */
.brand-d .bw, .brand-f .bw { font-size: calc(var(--bm-w) * .36); }
.brand-e .bw { font-size: calc(var(--bm-w) * .30); }
.bp-tone .brand-brand { --bm-w: clamp(96px, 8.5vw, 122px); }
.bp-compare .brand-brand { --bm-w: clamp(150px, 14vw, 200px); }
.bp-hdr .brand-header { --bm-w: 104px; }
.bp-hdr nav span, .bp-hdr small { white-space: nowrap; }
.bp-hdr small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.brand .bm { flex: 0 0 auto; max-width: none; }
.bp-hdr > .brand { flex: 0 0 auto; }
.bp-hdr nav { margin: 0 24px; }

/* ---------- Option F applied (19 Nov 2026): "SEVA Wear" + APPAREL line, colour by background ---------- */
.brand .bm-light { display: block !important; }
.brand .bm-dark { display: none !important; }
/* white version on the green header, the loading screen and any dark surface; blue returns on the scrolled (cream) header and inner pages */
.site-header:not(.scrolled) .brand:not(.tone-blue):not(.tone-silver),
.brand-intro, .on-dark .brand:not([class*="tone-"]), .bp-stage.dark .brand, .bp-mini.dark .brand { color: #fff; }
.site-header:not(.scrolled) .brand:not([class*="tone-"]) .bm-light,
.brand-intro .bm-light, .on-dark .brand:not([class*="tone-"]) .bm-light, .bp-stage.dark .brand .bm-light, .bp-mini.dark .brand .bm-light { display: none !important; }
.site-header:not(.scrolled) .brand:not([class*="tone-"]) .bm-dark,
.brand-intro .bm-dark, .on-dark .brand:not([class*="tone-"]) .bm-dark, .bp-stage.dark .brand .bm-dark, .bp-mini.dark .brand .bm-dark { display: block !important; }
body.inner .site-header .brand { color: var(--seva-navy); }
body.inner .site-header .brand .bm-light { display: block !important; }
body.inner .site-header .brand .bm-dark { display: none !important; }
.site-header.scrolled .brand { color: var(--seva-navy); }
/* header: clearly larger */
.brand-header { --bm-w: 112px; }
.site-header { padding-top: 20px; padding-bottom: 20px; }
.site-header.scrolled { padding-top: 12px; padding-bottom: 12px; }
@media (max-width: 960px) { .brand-header { --bm-w: 84px; } }
/* loading screen */
.pl-logo .brand { text-transform: none; letter-spacing: normal; text-indent: 0; }
.brand-intro { --bm-w: clamp(180px, 24vw, 300px); filter: drop-shadow(0 1px 12px rgba(0,0,0,.35)); }
/* hero: SEVA Wear named in the eyebrow line (the lockup itself lives in the header, not repeated here) */
.hero-brand-tag { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .3em; color: rgba(241,232,221,.72); }
.hero-brand-tag strong { font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: var(--cream); line-height: 1; }
.hero-brand-tag i { width: 1px; height: 18px; background: currentColor; opacity: .6; }
/* footer: silver version */
.brand-footer { --bm-w: 128px; }
.foot-brand small { color: #8a949e; }
/* bulk order form header */
.form-brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line-dark); }
.form-brand .brand { --bm-w: 84px; }
.form-brand span:last-child { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 600px) { .form-brand { flex-direction: column; align-items: flex-start; } }
@media (max-width: 600px) {
  .hero-brand-tag { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-brand-tag strong { white-space: nowrap; }
  .hero-brand-tag i { display: none; }
}
@media (max-width: 600px) { .brand-header { --bm-w: 72px; } }

/* ---------- Header (19 Nov 2026): fully transparent over the hero, no tint, blur or shadow; logo in its original blue ---------- */
.site-header { background: transparent; box-shadow: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.scrolled { background: rgba(241,232,221,.96); box-shadow: 0 1px 0 var(--line-dark); -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header .logo .brand.tone-blue, .site-header:not(.scrolled) .logo .brand.tone-blue { color: var(--seva-navy); }
.site-header .bag-count { background: var(--green); color: var(--cream); }
.brand-header, .site-header.scrolled .brand-header { --bm-w: 112px; }
/* no dark band under the header: the photo keeps only its left-edge blend into the green */
.hero-media.bg::after { background: linear-gradient(90deg, rgba(29,50,43,.96) 0%, rgba(29,50,43,.88) 6%, rgba(29,50,43,.72) 12%, rgba(29,50,43,.5) 18%, rgba(29,50,43,.28) 23%, rgba(29,50,43,.12) 27%, rgba(29,50,43,.03) 30%, rgba(29,50,43,0) 33%); }
@media (max-width: 960px) { .brand-header, .site-header.scrolled .brand-header { --bm-w: 84px; } }
@media (max-width: 600px) { .brand-header, .site-header.scrolled .brand-header { --bm-w: 72px; } }

/* ---------- Lockup A (19 Nov 2026): SEVA mark + WEAR line; silver over the hero, blue when the header is cream ---------- */
.site-header:not(.scrolled) .brand.pair-silver { color: #b4bcc4; }
.site-header.scrolled .brand.pair-silver { color: var(--seva-navy); }
.brand-header, .site-header.scrolled .brand-header { --bm-w: 104px; }
.brand-a .bw { font-size: calc(var(--bm-w) * .105); }
@media (max-width: 960px) { .brand-header, .site-header.scrolled .brand-header { --bm-w: 80px; } }
@media (max-width: 600px) { .brand-header, .site-header.scrolled .brand-header { --bm-w: 70px; } }

/* ---------- Offer tiles with photos; loading screen and footer show the original blue logo (19 Nov 2026) ---------- */
.offer { padding-top: 0; }
.offer .offer-img { width: calc(100% + 60px); max-width: none; margin: 0 -30px 22px; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 30%; background: var(--cream-2); display: block; }
.offer:nth-child(1) .offer-img { object-position: center; }
.offer:nth-child(3) .offer-img { object-position: center 20%; }
.brand-intro.tone-blue { color: var(--seva-navy); filter: none; }
.foot-brand small { color: var(--muted); }

/* ---------- Product grid refresh (19 Nov 2026): aligned rows, framed images, clearer swatches ---------- */
.shop .grid { gap: 40px 24px; align-items: stretch; }
.card { display: flex; flex-direction: column; }
.card .card-img { background: var(--cream-2); box-shadow: inset 0 0 0 1px rgba(27,31,29,.06); }
.card h3 { margin: 16px 0 4px; font-size: 15px; font-weight: 500; line-height: 1.35; }
.card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.card .stars { margin: 0 0 6px; }
.card .card-meta { margin-top: auto; padding-top: 8px; border-top: 1px solid rgba(27,31,29,.08); }
.card .price { color: var(--ink); font-weight: 500; font-size: 15px; }
.card .swatches { gap: 7px; }
.card .swatches i { width: 14px; height: 14px; box-shadow: 0 0 0 1px rgba(27,31,29,.14), inset 0 0 0 2px rgba(241,232,221,.9); }
.card .cmp { margin-top: 10px; font-size: 10px; letter-spacing: .14em; color: var(--muted); opacity: .8; }
.card .cmp:hover { opacity: 1; color: var(--ink); }
.card .tag { font-size: 10px; letter-spacing: .18em; padding: 6px 10px; }
.card .try { background: rgba(241,232,221,.94); color: var(--ink); font-size: 10px; letter-spacing: .16em; }
.card .try:hover { background: var(--green); color: var(--cream); }
.card .add { font-size: 11px; letter-spacing: .16em; }
@media (max-width: 960px) { .shop .grid { gap: 28px 16px; } }

/* ---------- Shop core colours (19 Nov 2026): swatch row, feature image + horizontal product track ---------- */
.shop .core-head { align-items: flex-start; margin-bottom: 26px; }
.shop .core-head .lead { margin: 14px 0 0; max-width: 46ch; }
.shop .core-head .filters { margin-top: 8px; }
.colour-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 0 0 18px; }
.colour-dot { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--c, var(--cream)); box-shadow: 0 0 0 1px rgba(27,31,29,.18); display: grid; place-items: center; color: #fff; transition: transform .25s var(--ease), box-shadow .25s; }
.colour-dot.all { background: #fff; color: var(--ink); }
.colour-dot svg { width: 14px; height: 14px; opacity: 0; transition: opacity .2s; }
.colour-dot.on svg { opacity: 1; }
.colour-dot.on { box-shadow: 0 0 0 2px var(--cream-2), 0 0 0 3.5px var(--ink); }
.colour-dot:hover { transform: scale(1.08); }
.colour-name { margin-left: 6px; font-family: var(--display); font-style: italic; font-size: 20px; letter-spacing: .02em; text-transform: none; }
.shop .cats { margin: 0 0 28px; }
.shop-row { display: grid; grid-template-columns: minmax(360px, 44%) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.colour-feature { position: relative; margin: 0; overflow: hidden; background: var(--cream-2); aspect-ratio: 4 / 5; max-height: 720px; }
.colour-feature img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: opacity .35s var(--ease), transform 1.2s var(--ease); }
.colour-feature:hover img { transform: scale(1.03); }
.colour-feature figcaption { position: absolute; left: 22px; bottom: 20px; padding: 8px 12px; background: rgba(241,232,221,.92); font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.track-wrap { position: relative; min-width: 0; }
.shop .grid { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 0 2px 10px; scrollbar-width: none; align-items: stretch; }
.shop .grid::-webkit-scrollbar { display: none; }
.shop .grid .card { flex: 0 0 clamp(240px, 22vw, 300px); scroll-snap-align: start; }
.track-btn { position: absolute; top: calc((100% - 150px) / 2); z-index: 4; width: 46px; height: 46px; border-radius: 50%; background: var(--cream); color: var(--ink); box-shadow: 0 8px 24px rgba(20,35,30,.16); display: grid; place-items: center; font-size: 18px; transition: transform .25s var(--ease), background .25s; }
.track-btn:hover { transform: scale(1.06); background: #fff; }
.track-btn.prev { left: -10px; }
.track-btn.next { right: -10px; }
@media (max-width: 960px) {
  .shop-row { grid-template-columns: 1fr; }
  .colour-feature { aspect-ratio: 16 / 10; max-height: 360px; }
  .shop .grid { gap: 14px; }
  .shop .grid .card { flex-basis: 66vw; }
  .track-btn { display: none; }
  .colour-name { font-size: 17px; }
}

/* ---------- Shop core colours, alignment (19 Nov 2026): feature photo matches the product track height ---------- */
.shop-row { grid-template-columns: minmax(300px, 34%) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.colour-feature { aspect-ratio: auto; max-height: none; height: auto; min-height: 0; align-self: stretch; }
.colour-feature img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 20%; }
.track-wrap { display: flex; flex-direction: column; }
.shop .grid { flex: 1 1 auto; padding: 0 2px 0; gap: 24px; }
.shop .grid .card { flex: 0 0 clamp(250px, 23vw, 330px); }
.track-btn { top: calc(var(--card-img-h, 56%) - 23px); }
@media (max-width: 960px) {
  .shop-row { grid-template-columns: 1fr; }
  .colour-feature { aspect-ratio: 16 / 10; max-height: 360px; }
  .colour-feature img { position: static; height: 100%; }
  .shop .grid .card { flex-basis: 66vw; }
}
/* product pictures: the <picture> wrapper must fill the 4:5 frame like a bare <img> (was narrower on phones) */
.card-img > picture { position: absolute; inset: 0; display: block; }
.card-img > picture > img { width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-img > picture > img { transform: scale(1.04); }
/* feature photo: keep heads in frame whatever the box ratio */
.colour-feature img { object-position: center top; }
/* header lockup over the hero: a touch larger */
.brand-header, .site-header.scrolled .brand-header { --bm-w: 124px; }
@media (max-width: 960px) { .brand-header, .site-header.scrolled .brand-header { --bm-w: 92px; } }
@media (max-width: 600px) { .brand-header, .site-header.scrolled .brand-header { --bm-w: 78px; } }

/* ===================== SEO & privacy additions ===================== */
/* primary keyword line inside the hero h1 (reads like the existing eyebrows) */
.h1-kicker { display: block; font-family: var(--body, 'Jost', sans-serif); font-size: 11px; font-weight: 500; letter-spacing: .26em; line-height: 1.4; margin: 0 0 22px; opacity: .82; }
/* closing banner keeps the old h1 look as an h2 */
.banner .banner-title { font-size: clamp(38px, 4.6vw, 72px); letter-spacing: .08em; }

/* FAQ */
.faq { padding: var(--sec-y) var(--pad); background: var(--cream); color: var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px 64px; align-items: start; }
.faq-head .eyebrow { color: var(--muted); }
.faq-list { border-top: 1px solid var(--line-dark); }
.faq-item { border-bottom: 1px solid var(--line-dark); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--green); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item h3 { font-family: var(--body, 'Jost', sans-serif); font-size: 16px; font-weight: 500; letter-spacing: .01em; text-transform: none; line-height: 1.4; }
.faq-item p { margin: 0 0 22px; max-width: 64ch; line-height: 1.7; color: var(--muted); }
@media (max-width: 960px) { .faq { grid-template-columns: 1fr; } }

/* consent and privacy lines next to submit buttons */
.form-consent { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 10px 0 0; }
.form-consent a, .consent-check a { text-decoration: underline; text-underline-offset: 2px; }
.newsletter .nl-consent { color: rgba(241,232,221,.7); flex-basis: 100%; text-align: center; }
.consent-check { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; text-transform: none !important; letter-spacing: 0 !important; }
.consent-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }

/* inline field errors added by guard.js */
.field-msg { display: block; margin-top: 6px; font-size: 12px; line-height: 1.4; color: #a33; text-transform: none; letter-spacing: 0; font-weight: 500; }
[aria-invalid="true"] { border-color: #a33 !important; }

/* footer legal row and NAP */
.foot-legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 26px; margin-top: 22px; font-size: 12px; letter-spacing: .08em; }
.foot-legal a, .foot-legal .link-btn { color: var(--muted); padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; }
.foot-legal a:hover, .foot-legal .link-btn:hover { color: var(--green); }
.link-btn { background: none; border: 0; font: inherit; letter-spacing: inherit; cursor: pointer; }
.foot-nap { font-style: normal; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 22px; font-size: 13px; color: var(--muted); }
.foot-nap a { text-decoration: underline; text-underline-offset: 2px; }

/* cookie banner: equal-weight choices */
.consent { position: fixed; z-index: 120; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin-left: auto; background: #fff; color: var(--ink); padding: 20px 22px; box-shadow: 0 18px 50px rgba(0,0,0,.22); font-size: 14px; line-height: 1.55; }
.consent[hidden] { display: none; }
.consent-title { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; margin: 0 0 6px; }
.consent p { margin: 0 0 12px; }
.consent a { text-decoration: underline; }
.consent-more { margin: 0 0 12px; }
.consent-more summary { cursor: pointer; font-weight: 500; min-height: 44px; display: flex; align-items: center; }
.consent-more label { display: flex; gap: 10px; align-items: center; padding: 6px 0; text-transform: none; letter-spacing: 0; font-size: 14px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent-actions .btn, .consent-more .btn { justify-content: center; min-height: 44px; }

/* legal drafts and 404 */
.page-narrow { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 20px; margin: 36px 0 12px; }
.legal p, .legal li { line-height: 1.7; }
.legal ul { padding-left: 20px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal-draft { background: #fff4d6; border-left: 3px solid #c79a2b; padding: 10px 14px; font-size: 13px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
.notfound { text-align: left; padding-bottom: 40px; }
.notfound-links { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.notfound-links a { min-height: 44px; }
@media (max-width: 600px) { .legal-table { font-size: 13px; } .legal-table th:nth-child(4), .legal-table td:nth-child(4) { display: none; } }
/* no sideways scrolling on phones (off-canvas drawer and marquee stay clipped; clip keeps sticky headers working) */
html, body { overflow-x: clip; }
/* inner pages (cream header): blue SEVA mark, as on every cream surface */
body.inner .site-header:not(.scrolled):not(.inner-h) .brand { color: var(--seva-navy); }
body.inner .site-header:not(.scrolled):not(.inner-h) .brand .bm-light { display: block !important; }
body.inner .site-header:not(.scrolled):not(.inner-h) .brand .bm-dark { display: none !important; }
.teams-form .consent-check span { font-size: 13px; line-height: 1.5; color: var(--ink); }
/* product track: scroll sideways only. overflow-x:auto alone also made it vertically scrollable,
   so a vertical swipe on a phone shifted the cards up inside the track and clipped their tops */
.shop .grid { overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y; padding-top: 8px; }
/* cards fade in without sliding, so nothing pokes out of the clipped track while revealing */
.shop .grid .card.rv { transform: none !important; }
