/* ==========================================================================
   Victory Apparels — style.css
   Bright showroom: white base, fresh green-tinted bands, vibrant emerald &
   logo-gold accents (matches the green+gold eagle mark).
   Typography-led, motion restrained.
   ========================================================================== */

:root {
  --ink: #13271c;
  --ink-soft: #3a4d41;
  --ink-muted: #586a5e;
  /* Ground vs. surface: the page sits on a faint green tint, cards are pure
     white and lift off it. Never use --bg as a page background. */
  --page: #f3f7f3;        /* body / header / ticker ground — light green tint */
  --mist: #eaf2ea;        /* alternating band, one step deeper than --page */
  --bg: #ffffff;          /* card & input surfaces, and white-on-dark text */

  --green: #098044;       /* primary — vivid emerald, carries white text 5:1 */
  --green-deep: #05612f;  /* headings, hover, footer ground */
  --green-bright: #3ad07f;/* light accent on dark surfaces */

  /* Gold ramp. --gold is the logo gold and only survives on dark/green.
     The two darker steps carry gold onto the light ground at legible contrast. */
  --gold: #f2b21e;        /* logo gold — dark/green surfaces only (1.9:1 on white) */
  /* gold-deep / gold-ink share the logo gold's exact OKLCH hue (81°), darkened
     only enough to stay legible on the light ground — so they read as the same
     gold as the button, just deeper, rather than a separate brown. */
  --gold-deep: #b87b00;   /* display & large accents on light — 3.3:1, AA large */
  --gold-ink: #956700;    /* small labels & body-size accents on light — 4.6:1 */
  --gold-hover: #e0a413;  /* primary-button hover — 7.1:1 with --ink */
  --gold-lift: #f8c94b;   /* small text on --green-deep — 4.9:1 (--gold is only 4.1) */

  --line: rgba(19, 39, 28, 0.14);
  --line-soft: rgba(19, 39, 28, 0.08);

  /* Elevation — tinted toward the ink hue so shadows read green-grey, not grey */
  --shadow-sm: 0 1px 2px rgba(19, 39, 28, 0.05),
               0 8px 20px -14px rgba(19, 39, 28, 0.28);
  --shadow-md: 0 2px 4px rgba(19, 39, 28, 0.05),
               0 20px 40px -24px rgba(19, 39, 28, 0.34);

  /* Hero backdrop: matches the page ground so the band reads continuous */
  --studio-hi: #f3f7f3;
  --studio-lo: #f3f7f3;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Anchored sections land below the sticky header */
[id] {
  scroll-margin-top: 96px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--green);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

p {
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 60;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  transform: translateY(-64px);
  opacity: 0;
  pointer-events: none;
}

.skip-link:focus-visible {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

/* Screen-reader-only text (announcements, labels) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Stretched link: makes a whole card or row the click target */
.stretch-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

/* ---------- Layout primitives ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 8vw, 104px);
}

.section--mist {
  background: var(--mist);
  border-block: 1px solid var(--line-soft);
}

/* Two sections on the same ground stack two full pads into one dead void — the
   tint change that normally justifies that much air isn't there to read. Collapse
   the seam so same-ground neighbours separate by roughly one pad, not two. */
.section:not(.section--mist) + .section:not(.section--mist),
.section--mist + .section--mist {
  padding-top: clamp(24px, 3vw, 40px);
}

/* A doubled mist band is one surface; drop the hairline that splits it. */
.section--mist + .section--mist {
  border-top: 0;
}

/* Centered section head — the showroom cadence borrowed from the reference site */

.section-head {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: clamp(36px, 5vw, 60px);
  text-align: center;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--green-deep);
}

.section-head h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--green);
  margin: 20px auto 0;
}

.section-head p {
  margin-top: 18px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-inline: auto;
}

/* Italic accents inside green headings run gold — the logo's second colour,
   darkened to --gold-deep so it clears AA-large against the light ground. */
.serif-accent {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-deep);
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out);
}

.btn .btn-arrow {
  transition: transform 0.15s var(--ease-out);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Primary CTA is the logo gold. White text on gold is unreadable (2.0:1), so
   the label runs --ink — 8.4:1, and the dark-on-bright pairing is what makes
   the pill read as the loudest thing on a green-tinted page. */
.btn-primary {
  background: var(--gold);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--gold-hover);
  color: var(--ink);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green-deep);
}

/* WhatsApp action. Sits beside the gold primary as the second-loudest CTA:
   green fill, white label (5.0:1), glyph carried inline so it reads as
   WhatsApp rather than as a generic secondary button. */
.btn-whatsapp {
  background: var(--green);
  color: #fff;
}

.btn-whatsapp:hover {
  background: var(--green-deep);
  color: #fff;
}

.btn-whatsapp svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex: none;
}

/* ---------- Top bar ---------- */

/* Deep-green utility bar: the darkest thing above the fold, so the white
   header below it reads as a lit surface. Address and phone run --gold-lift
   rather than the logo --gold, which only reaches 4.1:1 here. */
.topbar {
  background: var(--green-deep);
  color: var(--gold-lift);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}

.topbar a:hover {
  color: #fff;
}

/* The global focus ring is --green-deep, which is exactly the background of
   the top bar and the footer — the ring vanishes on both. Gold restores it. */
.topbar :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold-lift);
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.topbar-item svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  opacity: 0.85;
}

@media (max-width: 719px) {
  .topbar-item--address {
    display: none;
  }

  .topbar .container {
    justify-content: center;
  }
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--page);
  transition: box-shadow 0.3s var(--ease-out);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line-soft), 0 8px 24px -20px rgba(19, 39, 28, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: auto;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  /* --gold-ink, not --gold: this is 9.5px text and needs 4.5:1 on the light
     header, which the logo gold (1.9:1) cannot carry. */
  color: var(--gold-ink);
  margin-top: 5px;
  /* Centered under the wordmark. The 0.22em tracking adds a trailing space
     after the last letter, which throws optical centering off to the left;
     the negative margin cancels it. */
  text-align: center;
  margin-right: -0.22em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 32px);
}

.nav-links a {
  position: relative;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color 0.2s var(--ease-out);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

@media (max-width: 1023px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  body.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  body.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}

/* Mobile menu overlay */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--page);
  /* Top pad clears the sticky header (~76px) and no more — 18vh pushed the
     list so far down the quote CTA fell off the bottom of the screen. */
  padding: clamp(96px, 13vh, 116px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0s linear 0.3s;
}

body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

body.menu-open {
  overflow: hidden;
}

/* The float sits at z-index 45, above the menu's 40, so it landed on top of
   the quote CTA while the menu was open. It has no job over a full-screen
   menu — the menu carries its own CTA. */
body.menu-open .wa-float {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease-out), visibility 0s linear 0.2s;
}

.mobile-menu a {
  font-family: var(--font-display);
  /* 7vw ran to 38px+ on wider phones and tall enough that six links plus the
     CTA overflowed. This keeps the editorial weight at a size that fits. */
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 600;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
}

body.menu-open .mobile-menu a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu .btn {
  margin-top: 22px;
  align-self: stretch;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: transform 0.4s var(--ease-out) 0.25s, opacity 0.4s var(--ease-out) 0.25s,
    background-color 0.2s var(--ease-out);
}

body.menu-open .mobile-menu .btn {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hero: full-width product slideshow, no text ---------- */

.hero-slider {
  position: relative;
  height: min(74vh, 640px);
  overflow: hidden;
  background: linear-gradient(180deg, var(--studio-hi), var(--studio-lo));
}

@media (max-width: 719px) {
  /* Square-ish on phones so the garment never letterboxes */
  .hero-slider {
    height: min(96vw, 64vh);
  }
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Slides are 16:9 with the subject centred; cover fills the band edge-to-edge
   (desktop trims a little top/bottom, phones trim the sides). The blurred copy
   behind only shows while the sharp image is still loading. */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: -48px;
  background: var(--slide-bg, linear-gradient(180deg, var(--studio-hi), var(--studio-lo)))
    center / cover no-repeat;
  filter: blur(36px) saturate(1.05);
}

.hero-slide img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Arrows: hidden until the slider is wired up */

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: none;
  place-items: center;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out);
}

.hero-slider.is-ready .slider-arrow {
  display: grid;
}

.slider-arrow:hover {
  color: var(--gold-ink);
  border-color: var(--gold-deep);
  background: #fff;
}

.slider-arrow svg {
  width: 20px;
  height: 20px;
}

.slider-arrow--prev {
  left: clamp(14px, 3vw, 36px);
}

.slider-arrow--next {
  right: clamp(14px, 3vw, 36px);
}

/* Dots: slim dashes, Ronai-style */

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 2.6vw, 26px);
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 4px;
  padding-inline: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.slider-dots:empty {
  display: none;
}

.slider-dot {
  padding: 10px 3px;
}

.slider-dot::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: rgba(19, 39, 28, 0.22);
  transition: background-color 0.25s var(--ease-out);
}

.slider-dot:hover::before {
  background: rgba(19, 39, 28, 0.45);
}

.slider-dot[aria-current="true"]::before {
  background: var(--ink);
}

/* ---------- Category tiles ---------- */

.catrow {
  padding-block: clamp(36px, 4.5vw, 56px);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}

.cat-tile {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    transform 0.25s var(--ease-out);
}

.cat-tile:hover,
.cat-tile:focus-visible {
  border-color: rgba(9, 128, 68, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -20px rgba(19, 39, 28, 0.4);
}

.cat-figure {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.cat-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.cat-tile:hover .cat-figure img,
.cat-tile:focus-visible .cat-figure img {
  transform: scale(1.045);
}

.cat-label {
  display: block;
  padding: 13px 16px;
  background: var(--green);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  transition: background-color 0.25s var(--ease-out);
}

.cat-tile:hover .cat-label,
.cat-tile:focus-visible .cat-label {
  background: var(--green-deep);
}

@media (max-width: 1023px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 479px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }

  .cat-figure {
    aspect-ratio: 3 / 2;
  }
}

/* ---------- Ticker ---------- */

.ticker {
  border-block: 1px solid var(--line-soft);
  background: var(--page);
  overflow: hidden;
  padding-block: 18px;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: ticker-scroll 46s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-inline: 26px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.ticker-item::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.about-figure {
  overflow: hidden;
  aspect-ratio: 5 / 4;
}

.about-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy p {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 58ch;
}

.about-copy p + p {
  margin-top: 20px;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: clamp(44px, 5.5vw, 64px);
  padding-top: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--line);
  text-align: center;
}

.about-stat .stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--green-deep);
}

.about-stat .stat-value sup {
  font-size: 0.55em;
  color: var(--green);
  margin-left: 1px;
}

.about-stat .stat-label {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (max-width: 1023px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-figure {
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 719px) {
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }
}

/* ---------- Services ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}

.service-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  padding-bottom: 54px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.service-card:hover,
.service-card:focus-within {
  border-color: rgba(9, 128, 68, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.service-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.service-card:hover .service-thumb img,
.service-card:focus-within .service-thumb img {
  transform: scale(1.045);
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.005em;
  padding: 18px 20px 0;
  color: var(--green-deep);
  transition: color 0.2s var(--ease-out);
}

.service-card:hover h3,
.service-card:focus-within h3 {
  color: var(--green);
}

.service-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  padding: 8px 20px 0;
}

.service-arrow {
  position: absolute;
  left: 20px;
  bottom: 16px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--ink-muted);
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}

/* Gold accent on hover. The glyph runs --gold-ink (5.0:1 on white) and the
   ring --gold-deep (3.5:1) — the logo gold is only 1.9:1 here and would read
   as a smudge rather than an accent. */
.service-card:hover .service-arrow,
.service-card:focus-within .service-arrow {
  border-color: var(--gold-deep);
  color: var(--gold-ink);
  transform: translateX(3px);
}

@media (max-width: 1023px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 479px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- What we manufacture: corporate-blue tile wall ---------- */

.make-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(10px, 1.4vw, 16px);
}

.make-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 16px 16px 14px;
  background-color: var(--green);
  /* Faint twill cross-weave — the fabric motif, barely-there */
  background-image: repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.028) 0 1px,
      transparent 1px 12px
    ),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 12px);
  color: #fff;
  transition: background-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.make-tile-ico {
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.88);
}

.make-tile-ico svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.make-tile-label {
  margin-top: auto;
  padding-top: 16px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.5;
  text-wrap: balance;
}

/* The tiles are quote links — say so, but only when attention arrives */
.make-tile-hint {
  position: absolute;
  top: 16px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.make-tile-arrow {
  font-size: 14px;
  line-height: 1;
}

.make-tile:hover,
.make-tile:focus-visible {
  background-color: var(--green-deep);
  transform: translateY(-2px);
}

.make-tile:hover .make-tile-hint,
.make-tile:focus-visible .make-tile-hint {
  opacity: 1;
  transform: none;
}

/* No hover on touch — the affordance must be resting-state visible */
@media (hover: none) {
  .make-tile-hint {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1023px) {
  .make-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 599px) {
  .make-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .make-tile {
    min-height: 124px;
    padding: 14px 14px 12px;
  }

  .make-tile-ico {
    width: 27px;
    height: 27px;
  }

  .make-tile-label {
    font-size: 11.5px;
    letter-spacing: 0.07em;
  }
}

/* ---------- Industries ---------- */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 20px);
}

.industry-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.industry-card:hover,
.industry-card:focus-within {
  border-color: rgba(9, 128, 68, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.industry-figure {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.industry-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.industry-card:hover .industry-figure img,
.industry-card:focus-within .industry-figure img {
  transform: scale(1.045);
}

.industry-icon {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink-soft);
  transition: color 0.25s var(--ease-out);
}

.industry-card:hover .industry-icon,
.industry-card:focus-within .industry-icon {
  color: var(--green-deep);
}

.industry-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.industry-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.005em;
  padding: 18px 20px 0;
  color: var(--green-deep);
}

.industry-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  padding: 6px 20px 22px;
}

@media (max-width: 1023px) {
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 479px) {
  .industry-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Process ---------- */

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.2vw, 28px);
  /* Stretch, not start: copy lengths differ per step and ragged card bottoms
     read as sloppy rather than as rhythm. */
  align-items: stretch;
}

/* The thread. Cards are opaque, so this hairline is visible only in the gaps
   between them — the four still read as one run rather than four unrelated
   tiles, which is the failure mode of a plain card grid for a sequence. */
.process-grid::before {
  content: "";
  position: absolute;
  top: 29px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

/* Card language is inherited from .service-card so the section reads as
   native to the page: white surface, hairline, square corners, 2px lift. */
.process-step {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  padding: 44px 24px 30px;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.process-step:hover {
  border-color: rgba(9, 128, 68, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* The station on the thread: gold dot sitting at the thread's exact height,
   so each card marks a point along the run. */
.process-step::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 24px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-deep);
}

.process-step .step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--gold-ink);
}

.process-step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin-top: 8px;
  color: var(--green-deep);
}

.process-step p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

@media (max-width: 1023px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Two rows: the thread would align with the first row only, so drop it and
     let the step numbers carry the sequence. */
  .process-grid::before {
    display: none;
  }
}

@media (max-width: 479px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Why Victory: bright statement band ---------- */

.why {
  text-align: center;
}

.why-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3.8vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 24ch;
  margin-inline: auto;
  text-wrap: balance;
  color: var(--green-deep);
}

.why-quote em {
  font-style: italic;
  color: var(--gold-deep);
}

.why-sub {
  margin-top: 22px;
  max-width: 58ch;
  margin-inline: auto;
  color: var(--ink-soft);
  font-size: 16px;
}

.why-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: clamp(36px, 4vw, 52px);
  border-top: 1px solid var(--line);
  text-align: left;
}

.why-value .value-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--gold-ink);
}

.why-value h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  margin-top: 10px;
  color: var(--green-deep);
}

.why-value p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

@media (max-width: 719px) {
  .why-values {
    grid-template-columns: 1fr;
  }
}

/* ---------- Brands: placeholder wordmark wall ---------- */

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}

.brand-card {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 22px 16px;
  text-align: center;
  border: 1px solid var(--line-soft);
  background: var(--bg);
  color: var(--green-deep);
  box-shadow: var(--shadow-sm);
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.brand-card:hover {
  color: var(--green);
  border-color: rgba(9, 128, 68, 0.4);
  box-shadow: var(--shadow-md);
}

.brand-card span {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* Wordmark voices: each "logo" gets its own type treatment */
.brand-card--serif {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-card--caps {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.brand-card--italic {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  font-weight: 500;
}

.brand-card--light {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Client logo wall: real marks shown full colour, each centered and capped to a
   consistent optical height on its own white card. */
.brand-card--logo {
  min-height: 150px;
  padding: clamp(20px, 2.6vw, 32px);
}

.brand-logo {
  max-width: 100%;
  max-height: 84px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1023px) {
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 4px;
}

.contact-row {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.contact-row:first-child {
  padding-top: 0;
}

.contact-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-row svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  stroke: var(--green-deep);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-row strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 3px;
}

.contact-row a {
  text-decoration: underline;
  text-decoration-color: rgba(19, 39, 28, 0.25);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease-out), text-decoration-color 0.2s var(--ease-out);
}

.contact-row a:hover {
  color: var(--green-deep);
  text-decoration-color: currentColor;
}

/* Form */

.contact-form {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
  padding: clamp(26px, 3.4vw, 44px);
}

.contact-form h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--green-deep);
}

.contact-form > p {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 6px;
  margin-bottom: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.form-field .req {
  color: var(--green-deep);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  font: inherit;
  /* 16px floor: anything smaller makes iOS Safari zoom the page on focus */
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2305612f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--ink-muted);
  opacity: 1;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(9, 128, 68, 0.15);
}

.form-submit {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.form-note {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.form-success {
  display: none;
  grid-column: 1 / -1;
  padding: 14px 18px;
  background: rgba(9, 128, 68, 0.07);
  border: 1px solid rgba(9, 128, 68, 0.3);
  color: var(--green-deep);
  font-size: 14px;
  font-weight: 500;
}

.contact-form.is-sent .form-success {
  display: block;
}

@media (max-width: 1023px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 479px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-submit {
    flex-direction: column;
    align-items: stretch;
  }

  .form-submit .btn {
    justify-content: center;
  }

  .form-note {
    text-align: center;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.9);
  padding-top: clamp(56px, 7vw, 88px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr));
  gap: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.footer-brand .brand-mark {
  /* Client logo is green+gold; render a clean white silhouette on the blue footer */
  filter: brightness(0) invert(1);
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-brand .brand-name small {
  color: rgba(255, 255, 255, 0.72);
}

.footer-brand p {
  margin-top: 18px;
  font-size: 14px;
  max-width: 34ch;
}

/* ---------- Social icon row (shared: footer + contact) ----------
   Icons are always shown. A platform with no URL set in the CMS renders as a
   present-but-inert placeholder that lights up once its `social_*` value is
   filled in. Context classes (.footer-social on green, .contact-social on
   light) supply the colours; the base handles shape and motion. */

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links__item {
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.social-links svg {
  width: 16px;
  height: 16px;
  margin: 0;
  fill: currentColor;
  stroke: none;
}

/* Footer context — on --green-deep ground */
.footer-social {
  margin-top: 24px;
}

.footer-social .social-links__item {
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
}

.footer-social a.social-links__item:hover {
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.footer-social .social-links__item.is-placeholder {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.4);
  cursor: default;
}

/* Contact context — brand green on the light contact panel */
.contact-social {
  margin-top: 10px;
}

.contact-social .social-links__item {
  border-color: rgba(9, 128, 68, 0.3);
  color: var(--green);
}

.contact-social a.social-links__item:hover {
  background-color: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-2px);
}

.contact-social .social-links__item.is-placeholder {
  border-color: rgba(9, 128, 68, 0.22);
  color: rgba(9, 128, 68, 0.5);
  cursor: default;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  transition: color 0.2s var(--ease-out);
}

.footer-col a:hover {
  color: #fff;
}

.footer-col address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 479px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- WhatsApp float ---------- */

/* Bottom-LEFT: the ChatPal avatar owns the bottom-right corner */
.wa-float {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 12px 20px 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 12px 32px -12px rgba(19, 39, 28, 0.5);
  transition: transform 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

/* Hover deepens rather than brightens: the old #128c4a left the 13.5px label
   at 3.5:1. --green-deep carries white at 7.6:1. */
.wa-float:hover {
  transform: translateY(-2px);
  background: var(--green-deep);
}

.wa-float svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

@media (max-width: 719px) {
  .wa-float span {
    display: none;
  }

  .wa-float {
    padding: 13px;
  }
}

/* Comfortable touch targets on touch devices (44px per Apple HIG / WCAG AAA) */
@media (pointer: coarse) {
  .slider-arrow {
    width: 44px;
    height: 44px;
  }

  .social-links__item {
    width: 44px;
    height: 44px;
  }

  .chip {
    min-height: 44px;
    padding: 10px 22px;
  }
}

/* ---------- Reveal animations ----------
   Gated behind html.js so the page is fully visible without JavaScript. */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ticker-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Inner pages — recompositions of the approved system (full build, doc 01)
   ========================================================================== */

/* ---------- Page hero: mist band, centered serif title ---------- */

.page-hero {
  background: var(--mist);
  padding-block: clamp(56px, 7vw, 96px) 0;
  text-align: center;
}

.page-hero .container {
  max-width: 820px;
  padding-bottom: clamp(48px, 6vw, 80px);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--green-deep);
}

.page-hero h1::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--green);
  margin: 22px auto 0;
}

.page-hero p {
  margin-top: 18px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 58ch;
  margin-inline: auto;
}

/* ---------- Left-aligned band title (story, service bands) ---------- */

.band-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--green-deep);
}

.band-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--green);
  margin-top: 16px;
}

/* ---------- Immersive photo hero (all inner pages; About runs tall) ----------
   The ink underlay + scrim keep the white headline ≥ 4.5:1 over any photo. */
.photo-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(360px, 48vh, 520px);
  background: var(--ink);
  overflow: hidden;
}

.photo-hero--tall {
  min-height: clamp(480px, 72vh, 720px);
}

.photo-hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
}

.photo-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: photo-hero-settle 1.8s var(--ease-out) both;
}

@keyframes photo-hero-settle {
  from {
    transform: scale(1.05);
  }
  to {
    transform: none;
  }
}

.photo-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to top,
      rgba(19, 39, 28, 0.88),
      rgba(19, 39, 28, 0.44) 46%,
      rgba(19, 39, 28, 0.14) 80%,
      rgba(19, 39, 28, 0.06)
    ),
    linear-gradient(105deg, rgba(19, 39, 28, 0.62), rgba(19, 39, 28, 0.28) 42%, transparent 68%);
}

.photo-hero-inner {
  padding-block: clamp(44px, 6vw, 80px);
}

.photo-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: #fff;
  max-width: 18ch;
}

.photo-hero h1::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin-top: 24px;
}

.photo-hero h1 .serif-accent {
  color: var(--gold);
}

.photo-hero p {
  margin-top: 18px;
  font-size: clamp(16px, 1.4vw, 18px);
  color: rgba(255, 255, 255, 0.92);
  max-width: 52ch;
}

/* ---------- About page ---------- */

/* Story: editorial lede + captioned square portrait */
.about-grid--story .about-copy .band-title {
  margin-bottom: 22px;
}

.about-grid--story .about-copy .about-lede {
  font-size: 19px;
  color: var(--ink);
}

.about-figure--story {
  overflow: visible;
  aspect-ratio: auto;
}

.about-figure--story img {
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.about-figure--story figcaption {
  margin-top: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-muted);
}

/* Values on the mist band: three columns on a hairline rail, no cards */
.why-values--rail {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
  gap: 0;
}

.why-values--rail .why-value {
  padding-inline: clamp(28px, 4vw, 52px);
}

.why-values--rail .why-value:first-child {
  padding-left: 0;
}

.why-values--rail .why-value + .why-value {
  border-left: 1px solid var(--line);
}

.why-values--rail .value-num {
  font-size: 15px;
}

.why-values--rail .why-value h3 {
  font-size: 23px;
  margin-top: 12px;
}

.why-values--rail .why-value p {
  margin-top: 12px;
  font-size: 15px;
}

@media (max-width: 899px) {
  .why-values--rail {
    grid-template-columns: 1fr;
    max-width: 62ch;
    margin-inline: auto;
  }

  .why-values--rail .why-value {
    padding-inline: 0;
  }

  .why-values--rail .why-value + .why-value {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 28px;
    margin-top: 28px;
  }
}

/* Facility: mosaic — one tall lead image, two stacked beside, navy label bars
   (the home category-tile grammar applied to the production floor) */
.facility-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px;
}

.facility-mosaic figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.facility-mosaic figure:first-child {
  grid-row: 1 / 3;
}

.facility-media {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.facility-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stacked pair drives the row heights; the lead image stretches to match */
.facility-mosaic figure:not(:first-child) .facility-media {
  aspect-ratio: 3 / 2;
}

.facility-mosaic figcaption {
  padding: 13px 16px;
  background: var(--green);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 899px) {
  .facility-mosaic {
    grid-template-columns: 1fr;
  }

  .facility-mosaic figure:first-child {
    grid-row: auto;
  }

  .facility-mosaic .facility-media,
  .facility-mosaic figure:not(:first-child) .facility-media {
    aspect-ratio: 16 / 10;
  }
}

/* ---------- Services page: alternating image/copy bands ---------- */

.svc-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.svc-grid--flip .svc-figure {
  order: 2;
}

.svc-figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
}

.svc-figure img {
  width: 100%;
  height: auto; /* beat the height="" attribute so aspect-ratio applies */
  aspect-ratio: 1;
  object-fit: cover;
}

.svc-copy .band-title {
  margin-bottom: 18px;
}

.svc-copy p {
  color: var(--ink-soft);
  max-width: 58ch;
}

.svc-copy p + p {
  margin-top: 14px;
}

/* Spec list: chalk-line rules, no bullets */
.svc-specs {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.svc-specs li {
  padding: 11px 0 11px 24px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  color: var(--ink-soft);
  position: relative;
}

.svc-specs li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  margin-top: -1px;
  width: 10px;
  height: 2px;
  background: var(--green);
}

.svc-copy .about-actions {
  margin-top: 26px;
}

@media (max-width: 1023px) {
  .svc-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .svc-grid--flip .svc-figure {
    order: 0;
  }

  .svc-figure img {
    aspect-ratio: 16 / 10;
  }
}

/* Long service names wrap the CTA pill: go full-width, centered */
@media (max-width: 539px) {
  .svc-copy .about-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    text-wrap: balance;
  }
}

/* ---------- Industries page: sector index + detail bands ---------- */

.ind-index {
  padding: clamp(26px, 4vw, 44px) 0 clamp(14px, 2.5vw, 26px);
}

.ind-index ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.ind-index a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 18px 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out),
    background-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.ind-index a:hover,
.ind-index a:focus-visible {
  border-color: rgba(9, 128, 68, 0.45);
  background: rgba(9, 128, 68, 0.05);
  color: var(--green-deep);
  transform: translateY(-1px);
}

.ind-index-ico {
  width: 21px;
  height: 21px;
  flex: none;
  color: var(--green);
}

.ind-index-ico svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Detail bands share the services grid; the figure carries the same line-art
   chip as the home industry cards, so both pages read as one system. */
.ind-band .svc-figure {
  position: relative;
}

.ind-band .svc-specs {
  max-width: 58ch;
}

/* ---------- FAQ: native accordion, hairline dividers ---------- */

.faq-list {
  max-width: 760px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 2px;
  font-weight: 600;
  font-size: 16.5px;
  color: var(--green-deep);
  transition: color 0.2s var(--ease-out);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--green);
}

.faq-marker {
  flex: none;
  position: relative;
  width: 14px;
  height: 14px;
}

.faq-marker::before,
.faq-marker::after {
  content: "";
  position: absolute;
  inset: 6px 0;
  background: var(--green);
  transition: transform 0.25s var(--ease-out);
}

.faq-marker::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-marker::after {
  transform: rotate(0deg);
}

.faq-item > p {
  padding: 0 2px 20px;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* Smooth accordion reveal — progressive enhancement, ignored where
   ::details-content / interpolate-size aren't supported */
.faq-list {
  interpolate-size: allow-keywords;
}

.faq-item::details-content {
  opacity: 0;
  block-size: 0;
  overflow-y: clip;
  transition: content-visibility 0.3s allow-discrete, opacity 0.3s var(--ease-out),
    block-size 0.3s var(--ease-out);
}

.faq-item[open]::details-content {
  opacity: 1;
  block-size: auto;
}

/* ---------- Products: filter chips + gallery ---------- */

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.chip {
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out);
}

.chip:hover {
  border-color: var(--green);
  color: var(--green-deep);
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.product-grid {
  grid-template-columns: repeat(3, 1fr);
}

.product-card[hidden] {
  display: none;
}

.product-tag {
  display: inline-block;
  margin: 18px 20px 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.product-card h3 {
  padding-top: 0;
  margin-top: 8px;
}

/* Filter entrance: replaces the scroll-reveal once a chip is used */
.product-grid.is-filtered .product-card:not([hidden]) {
  animation: product-in 0.4s var(--ease-out) backwards;
  animation-delay: var(--in-delay, 0s);
}

@keyframes product-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.product-empty {
  text-align: center;
  color: var(--ink-muted);
  padding: 40px 0 8px;
}

.product-empty a {
  color: var(--green-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1023px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Shared: teaser "view all", CTA band, fabrics note ---------- */

.section-more {
  margin-top: clamp(32px, 4vw, 48px);
  text-align: center;
}

.cta-band {
  text-align: center;
}

.cta-band .section-head {
  margin-bottom: 28px;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.fabrics-note {
  margin: clamp(36px, 5vw, 56px) auto 0;
  max-width: 58ch;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* ---------- Home contact strip ---------- */

.contact-strip {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  max-width: 980px;
  margin-inline: auto;
}

.contact-strip-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

/* Stacked in the rail, the two pills share one width so their edges align. */
.contact-strip-cta .btn {
  justify-content: center;
}

@media (max-width: 1023px) {
  .contact-strip {
    grid-template-columns: 1fr;
  }
}

/* Tablet: room for a side-by-side row, split evenly so widths match.
   Below this the pills stay stacked and full-width (default), never
   overflowing a narrow phone. */
@media (min-width: 600px) and (max-width: 1023px) {
  .contact-strip-cta {
    flex-direction: row;
  }

  .contact-strip-cta .btn {
    flex: 1 1 0;
  }
}

/* ---------- Real form additions ---------- */

/* Honeypot: parked off-canvas, still in the accessibility tree of bots only */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  grid-column: 1 / -1;
  background: #fdf1f2;
  border: 1px solid rgba(164, 28, 46, 0.25);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #a41c2e;
}

.cf-turnstile {
  grid-column: 1 / -1;
}

/* ---------- Map band ---------- */

.map-band {
  border-top: 1px solid var(--line-soft);
  /* Faint plan grid shows through while the lazy iframe loads */
  background:
    linear-gradient(rgba(19, 39, 28, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 39, 28, 0.05) 1px, transparent 1px),
    var(--mist);
  background-size: 56px 56px, 56px 56px, auto;
  background-position: center;
}

.map-band iframe {
  display: block;
  width: 100%;
  height: clamp(300px, 40vw, 420px);
  border: 0;
}

/* ---------- 404 ---------- */

.error-page {
  text-align: center;
  padding-block: clamp(96px, 14vw, 180px);
}

.error-page .error-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  color: var(--green);
}

.error-page .error-code {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.error-page h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--green-deep);
  margin-top: 12px;
}

.error-page .error-copy {
  margin: 18px auto 30px;
  max-width: 48ch;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .faq-marker::before,
  .faq-marker::after,
  .faq-item::details-content,
  .chip {
    transition: none;
  }

  .product-grid.is-filtered .product-card:not([hidden]) {
    animation: none;
  }
}
