/* =====================================================================
   R.S. Agro Corporation — Site Stylesheet
   Palette: white base · ink #16161A · crimson #C41E2F · gray #F4F4F5
   Type: Archivo (headlines) · Spectral (serif eyebrows) · IBM Plex Sans (body)
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --ink: #16161A;
  --ink-soft: #3a3a42;
  --ink-mute: #6b6b76;
  --crimson: #C41E2F;
  --crimson-dark: #9e1826;
  --crimson-tint: rgba(196, 30, 47, 0.08);
  --white: #ffffff;
  --gray: #F4F4F5;
  --gray-line: #e3e3e6;
  --gray-line-soft: #ececee;

  --font-head: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-eyebrow: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --wrap-narrow: 860px;
  --gutter: clamp(20px, 5vw, 64px);

  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(22, 22, 26, 0.06), 0 1px 3px rgba(22, 22, 26, 0.05);
  --shadow-md: 0 6px 24px rgba(22, 22, 26, 0.08);
  --shadow-lg: 0 18px 50px rgba(22, 22, 26, 0.14);

  --header-h: 84px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

img { max-width: 100%; display: block; }
svg { display: block; }

a { color: var(--crimson); text-decoration: none; }
a:hover { color: var(--crimson-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

/* ---------- Focus visibility ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--crimson);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1200;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(56px, 8vw, 112px); }
.section--gray { background: var(--gray); }
.section--ink { background: var(--ink); color: #cfcfd6; }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.grid { display: grid; gap: clamp(20px, 3vw, 36px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---------- Eyebrow + swoosh motif ---------- */
.eyebrow {
  font-family: var(--font-eyebrow);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--crimson);
  margin: 0 0 0.9rem;
  padding-left: 2px;
}
.section--ink .eyebrow { color: #ff5566; }

/* The signature motif: the logo's S-swoosh abstracted into a short angled stroke */
.swoosh {
  display: block;
  width: 54px;
  height: 6px;
  margin-top: 20px;
  background: var(--crimson);
  transform: skewX(-24deg);
  border-radius: 1px;
}
.swoosh svg { display: none; }
.swoosh--center { margin-inline: auto; }
.section-head--center .swoosh { margin-inline: auto; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.section-head p { color: var(--ink-mute); font-size: 1.06rem; margin-top: 0.6rem; }
.section--ink .section-head h2 { color: #fff; }
.section--ink .section-head p { color: #a7a7b2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--crimson); color: #fff; }
.btn--primary:hover { background: var(--crimson-dark); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--gray-line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.section--ink .btn--ghost,
.hero .btn--ghost,
.page-hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.32); }
.section--ink .btn--ghost:hover,
.hero .btn--ghost:hover,
.page-hero .btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.06); }
.btn .arrow { transition: transform 0.18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  color: var(--crimson);
}
.link-arrow .arrow { transition: transform 0.18s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(3px); }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  /* NOTE: no backdrop-filter here — it would create a containing block that
     traps the position:fixed mobile drawer (.nav) inside the header. */
  background: #ffffff;
  border-bottom: 1px solid var(--gray-line-soft);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo — HTML/CSS wordmark lockup echoing the R·S Agro mark */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
  line-height: 1;
  padding: 4px 2px;
}
.logo:focus-visible { outline-offset: 6px; }
.logo-mark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.62rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
}
.logo-mark .lm-s {
  color: var(--crimson);
  position: relative;
  display: inline-block;
  padding: 0 0.02em;
}
.logo-mark .lm-dot { color: var(--crimson); }
.logo-sub {
  font-family: var(--font-eyebrow);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-left: 0.34em;
  margin-top: 3px;
}
.logo-swoosh {
  display: block;
  width: 100%;
  height: 5px;
  color: var(--crimson);
  margin-top: 2px;
}
.site-footer .logo-mark { color: #fff; }
.site-footer .logo-sub { color: #8a8a95; }
.logo--img img { height: 48px; width: auto; display: block; }
@media (max-width: 520px) { .logo--img img { height: 40px; } }

/* Primary nav */
.nav { display: flex; align-items: center; }
.nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  padding: 0.6em 0.7em;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav-link:hover { color: var(--crimson); background: var(--crimson-tint); }
.nav-item.is-active > .nav-link { color: var(--crimson); }
.nav-item.is-active > .nav-link::after {
  content: "";
  position: absolute;
  left: 0.7em; right: 0.7em; bottom: 0.15em;
  height: 2px;
  background: var(--crimson);
  border-radius: 2px;
}
.nav-caret { width: 9px; height: 9px; transition: transform 0.2s var(--ease); }
.has-dropdown:hover .nav-caret,
.has-dropdown.open .nav-caret { transform: rotate(180deg); }

/* Dropdowns */
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 232px;
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.has-dropdown:hover > .dropdown,
.has-dropdown.open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 0.7em;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.62em 0.8em;
  border-radius: var(--radius);
  transition: background 0.14s var(--ease), color 0.14s var(--ease);
}
.dropdown a::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gray-line);
  flex-shrink: 0;
  transition: background 0.14s var(--ease), transform 0.14s var(--ease);
}
.dropdown a:hover { background: var(--gray); color: var(--crimson); }
.dropdown a:hover::before { background: var(--crimson); transform: scale(1.25); }

/* Header CTA + burger */
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-cta { padding: 0.62em 1.15em; font-size: 0.9rem; }

.burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease), top 0.25s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
body.nav-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Mobile nav ---------- */
@media (max-width: 1040px) {
  .burger { display: block; }
  .header-cta { display: none; }
  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: auto;
    height: auto;
    max-height: calc(100dvh - var(--header-h));
    width: min(420px, 86vw);
    background: #fff;
    border-left: 1px solid var(--gray-line);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    overflow-y: auto;
    padding: 18px var(--gutter) 60px;
    display: block;
    z-index: 1001;
  }
  body.nav-open .nav { transform: translateX(0); }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--gray-line-soft); }
  .nav-link { padding: 1em 0.2em; font-size: 1.05rem; justify-content: space-between; }
  .nav-item.is-active > .nav-link::after { display: none; }
  .nav-caret { width: 12px; height: 12px; }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 10px 6px;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s var(--ease);
  }
  .has-dropdown.open > .dropdown { max-height: 420px; }
  .has-dropdown:hover > .dropdown { max-height: 0; }
  .has-dropdown.open:hover > .dropdown { max-height: 420px; }
  .dropdown a { padding: 0.6em 0.4em; }

  .mobile-cta { display: block; margin-top: 22px; }
  .mobile-cta .btn { width: 100%; justify-content: center; }
}
@media (min-width: 1041px) { .mobile-cta { display: none; } }

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(22, 22, 26, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
  z-index: 999;
}
body.nav-open .nav-scrim { opacity: 1; visibility: visible; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero, .page-hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(196, 30, 47, 0.28), transparent 55%),
    radial-gradient(80% 70% at 6% 108%, rgba(196, 30, 47, 0.12), transparent 60%),
    var(--ink);
}
.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 44px);
  pointer-events: none;
  z-index: 0;
}
.hero > .wrap, .page-hero > .wrap { position: relative; z-index: 1; }
.hero {
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
}
.hero-bg svg { width: 100%; height: 100%; }
.hero-inner {
  padding-block: clamp(72px, 12vw, 148px);
  max-width: 780px;
}
.hero .eyebrow { color: #ff5566; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--crimson); }
.hero p.lead {
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  color: #c7c7d0;
  max-width: 620px;
  margin-top: 1.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 64px);
  margin-top: clamp(40px, 6vw, 68px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid rgba(255,255,255,0.14);
}
.stat .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: #fff;
  line-height: 1;
}
.stat .num em { color: var(--crimson); font-style: normal; }
.stat .label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a9aa6;
}

/* Page hero (interior pages) */
.page-hero {
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
/* Photo variant: real photograph under an ink overlay (used on About).
   Tune "center 68%" to move the crop up/down; lower overlay alphas = more photo. */
.page-hero--photo {
  background:
    linear-gradient(100deg, rgba(22, 22, 26, 0.88) 30%, rgba(22, 22, 26, 0.45) 72%, rgba(196, 30, 47, 0.18)),
    url("../img/gallery/team-partners-1.webp") center 48% / cover no-repeat,
    var(--ink);
}
.page-hero .hero-bg { opacity: 0.4; }
.page-hero-inner { padding-block: clamp(60px, 9vw, 104px); max-width: 760px; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero p { color: #b8b8c2; font-size: 1.12rem; max-width: 600px; margin-top: 0.8rem; }
.breadcrumbs {
  display: flex; gap: 0.55em; align-items: center;
  font-size: 0.82rem; color: #8a8a95; margin-bottom: 1.4rem;
  letter-spacing: 0.02em;
}
.breadcrumbs a { color: #b8b8c2; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .sep { color: var(--crimson); }

/* =====================================================================
   CARDS
   ===================================================================== */
.card {
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gray-line); }

/* Category / feature cards */
.feature-card {
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 3px; width: 0;
  background: var(--crimson);
  transition: width 0.3s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card:hover::after { width: 100%; }
.feature-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--crimson-tint);
  color: var(--crimson);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.22rem; margin: 0; }
.feature-card p { color: var(--ink-mute); font-size: 0.97rem; margin: 0; }
.feature-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--crimson);
  letter-spacing: 0.08em;
}

/* Category link card (products landing tiles) */
.cat-card {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  min-height: 180px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
  position: relative;
  overflow: hidden;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--ink); border-color: transparent; }
.cat-card .cat-illus { position: absolute; right: -8px; top: -8px; width: 116px; height: 116px; opacity: 0.1; color: var(--ink); transition: opacity 0.22s var(--ease), color 0.22s var(--ease); }
.cat-card:hover .cat-illus { opacity: 0.16; color: var(--crimson); }
.cat-card h3 { font-size: 1.3rem; margin: auto 0 6px; }
.cat-card .cat-count { font-size: 0.85rem; color: var(--ink-mute); font-weight: 600; }
.cat-card .cat-go { margin-top: 14px; color: var(--crimson); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.4em; }
.cat-card:hover .cat-go .arrow { transform: translateX(3px); }
.cat-card .arrow { transition: transform 0.18s var(--ease); }

/* =====================================================================
   PRODUCTS
   ===================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 44px);
  align-items: center;
}
.filter-chip {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55em 1.1em;
  border-radius: 100px;
  border: 1px solid var(--gray-line);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-chip .chip-count { opacity: 0.55; margin-left: 0.4em; font-variant-numeric: tabular-nums; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
  position: relative;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-media {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: var(--gray);
}
.product-media svg { width: 100%; height: 100%; }
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.04); }
.product-media .swoosh-hover {
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 4px;
  background: var(--crimson);
  transition: width 0.32s var(--ease);
}
.product-card:hover .product-media .swoosh-hover { width: 100%; }
.product-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.chip {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crimson);
  background: var(--crimson-tint);
  padding: 0.35em 0.7em;
  border-radius: 100px;
}
.product-body h3 { font-size: 1.12rem; margin: 0; line-height: 1.2; }
.product-body p { font-size: 0.93rem; color: var(--ink-mute); margin: 0; }
.product-tags { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.product-tag { font-size: 0.74rem; color: var(--ink-mute); background: var(--gray); padding: 0.28em 0.6em; border-radius: var(--radius); }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-mute);
}
.results-meta { font-size: 0.9rem; color: var(--ink-mute); margin-bottom: 18px; }
.results-meta strong { color: var(--ink); }

/* =====================================================================
   SPLIT / MEDIA blocks
   ===================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--media-right { direction: ltr; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-line);
  background: var(--gray);
  aspect-ratio: 5 / 4;
  position: relative;
}
.media-frame svg { width: 100%; height: 100%; }
.media-frame--tall { aspect-ratio: 4 / 5; }

/* Value list with swoosh bullets */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.36em;
  width: 20px; height: 10px;
  background: var(--crimson);
  clip-path: polygon(0 55%, 38% 100%, 100% 0, 78% 0, 34% 62%, 16% 45%);
}
.checklist li strong { color: var(--ink); font-weight: 700; }

/* Numbered process steps */
.steps { display: grid; gap: 4px; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--gray-line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--gray-line); }
.step-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--crimson);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 2px solid var(--crimson);
  border-radius: 50%;
}
.step h3 { font-size: 1.2rem; margin: 4px 0 6px; }
.step p { color: var(--ink-mute); margin: 0; }

/* Point list — used in the dark "for principals" band */
.point-list { display: grid; gap: 14px; }
.point-card {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding: 20px 22px; background: #1f1f26; border: 1px solid #2a2a33;
  border-radius: var(--radius-lg); transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.point-card:hover { border-color: #3a3a44; transform: translateY(-2px); }
.point-card .pc-mark { width: 18px; height: 5px; background: var(--crimson); transform: skewX(-24deg); margin-top: 10px; border-radius: 1px; flex-shrink: 0; }
.point-card h4 { margin: 0 0 4px; font-size: 1.02rem; color: #fff; font-family: var(--font-head); font-weight: 700; }
.point-card p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: #9a9aa6; }

/* =====================================================================
   TEAM
   ===================================================================== */
.team-card { text-align: left; }
.team-photo { aspect-ratio: 1 / 1; background: var(--gray); position: relative; overflow: hidden; }
.team-photo svg { width: 100%; height: 100%; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.team-body { padding: 18px 20px 22px; }
.team-body h3 { font-size: 1.15rem; margin: 0 0 2px; }
.team-role { color: var(--crimson); font-weight: 600; font-size: 0.9rem; margin: 0 0 8px; }
.team-bio { font-size: 0.9rem; color: var(--ink-mute); margin: 0; }
.team-card::after {
  content: "";
  display: block;
  height: 3px; width: 0;
  background: var(--crimson);
  transition: width 0.3s var(--ease);
}
.team-card:hover::after { width: 100%; }

/* =====================================================================
   GALLERY
   ===================================================================== */
/* Masonry via CSS columns: photos keep their natural proportions, so mixed
   portrait/landscape shots pack without the uneven gaps a rigid grid leaves. */
.gallery-grid {
  columns: 3;
  column-gap: 14px;
}
@media (max-width: 980px) { .gallery-grid { columns: 2; } }
@media (max-width: 560px) { .gallery-grid { columns: 1; } }
.gallery-grid .gallery-item {
  display: block;
  margin: 0 0 14px;
  break-inside: avoid;
  aspect-ratio: auto;
}
.gallery-grid .gallery-item img { height: auto; }
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--gray);
  border: 1px solid var(--gray-line);
}
.gallery-item svg { width: 100%; height: 100%; transition: transform 0.4s var(--ease); }
.gallery-item:hover svg { transform: scale(1.05); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figure, figure.gallery-item { margin: 0; }
.gallery-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 18px 14px;
  background: linear-gradient(to top, rgba(22,22,26,0.78), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  transform: translateY(6px);
  opacity: 0;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.gallery-item:hover .gallery-cap { opacity: 1; transform: translateY(0); }

/* =====================================================================
   CERTIFICATES (Award page)
   ===================================================================== */
.cert-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--ink);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
  position: relative;
}
.cert-card::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 3px; width: 0;
  background: var(--crimson);
  transition: width 0.3s var(--ease);
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--ink); }
.cert-card:hover::after { width: 100%; }
.cert-media {
  aspect-ratio: 4 / 3;
  background: var(--gray);
  display: grid;
  place-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--gray-line-soft);
  overflow: hidden;
}
.cert-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  box-shadow: var(--shadow-sm);
  background: #fff;
  transition: transform 0.3s var(--ease);
}
.cert-card:hover .cert-media img { transform: scale(1.03); }
/* Two-page certificate shown side by side inside one card */
.cert-media--pair { display: flex; gap: 10px; align-items: center; justify-content: center; }
.cert-media--pair img { max-width: calc(50% - 5px); }
.cert-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cert-body h3 { font-size: 1.12rem; margin: 0; }
.cert-body p { font-size: 0.92rem; color: var(--ink-mute); margin: 0; }
.cert-view {
  margin-top: auto;
  padding-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--crimson);
  font-weight: 600;
  font-size: 0.9rem;
}
.cert-view .arrow { transition: transform 0.18s var(--ease); }
.cert-card:hover .cert-view .arrow { transform: translateX(3px); }

/* Certificate lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(22, 22, 26, 0.82);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-panel {
  position: relative;
  max-width: min(860px, 94vw);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.25s var(--ease);
}
.lightbox.is-open .lightbox-panel { transform: none; }
.lightbox-scroll {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  max-height: calc(100vh - clamp(90px, 14vw, 150px));
  max-width: 100%;
  scrollbar-width: thin;
}
.lightbox-scroll img {
  max-width: 100%;
  max-height: calc(100vh - clamp(90px, 14vw, 150px));
  width: auto; height: auto;
  flex: 0 1 auto;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  cursor: zoom-in;
}
/* Two pages side by side share the width */
.lightbox-scroll img + img { max-width: calc(50% - 7px); }
.lightbox-scroll img:has(+ img) { max-width: calc(50% - 7px); }
/* Zoomed: images render large, container scrolls/pans */
.lightbox-scroll.is-zoomed { justify-content: flex-start; }
.lightbox-scroll.is-zoomed img {
  max-width: none;
  max-height: none;
  width: 1100px;
  cursor: zoom-out;
}
.lightbox-cap {
  margin-top: 12px;
  color: #d8d8de;
  font-size: 0.92rem;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: -14px; right: -14px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--crimson);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background 0.16s var(--ease), transform 0.16s var(--ease);
  z-index: 1;
}
.lightbox-close:hover { background: var(--crimson-dark); transform: scale(1.06); }
.lightbox-close svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .lightbox-close { top: 8px; right: 8px; } }
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox-panel { transition: none; }
}
body.lightbox-open { overflow: hidden; }

/* =====================================================================
   PLACEHOLDER / COMING SOON pages
   ===================================================================== */
.coming-panel {
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: clamp(36px, 6vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.coming-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--crimson);
  background: var(--crimson-tint);
  padding: 0.5em 1em;
  border-radius: 100px;
  margin-bottom: 1.4rem;
}
.coming-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--crimson); }
.coming-panel h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.coming-panel p { color: var(--ink-mute); max-width: 560px; margin-inline: auto; }

.preview-list { display: grid; gap: 14px; margin-top: 2.4rem; text-align: left; }
.preview-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  background: var(--gray);
}
.preview-row .pr-icon { width: 40px; height: 40px; display: grid; place-items: center; background: #fff; border-radius: 8px; color: var(--crimson); }
.preview-row .pr-icon svg { width: 20px; height: 20px; }
.preview-row h4 { margin: 0 0 2px; font-size: 1rem; }
.preview-row p { margin: 0; font-size: 0.88rem; color: var(--ink-mute); }
.preview-row .pr-soon { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-block { display: grid; gap: 22px; }
.info-item { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.info-item .ii-icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--crimson-tint); color: var(--crimson); border-radius: 10px; flex-shrink: 0; }
.info-item .ii-icon svg { width: 22px; height: 22px; }
.info-item h4 { margin: 0 0 3px; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); font-family: var(--font-body); font-weight: 700; }
.info-item p, .info-item a { margin: 0; font-size: 1.04rem; color: var(--ink); font-weight: 500; }
.info-item a:hover { color: var(--crimson); }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-line);
  aspect-ratio: 16 / 10;
  position: relative;
  background: var(--gray);
}
.map-frame svg { width: 100%; height: 100%; }
.map-pin-label {
  position: absolute;
  left: 50%; top: 44%;
  transform: translate(-50%, -100%);
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5em 0.9em;
  border-radius: var(--radius);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}
.map-pin-label::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -5px;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--ink);
  border-bottom: 0;
}

.inquiry-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
}
.inquiry-card h3 { color: #fff; font-size: 1.5rem; }
.inquiry-card p { color: #b0b0ba; }
.inquiry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
@media (max-width: 520px) { .inquiry-grid { grid-template-columns: 1fr; } }
.mailto-btn {
  display: flex; flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  color: #fff;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), transform 0.16s var(--ease);
}
.mailto-btn:hover { background: rgba(255,255,255,0.08); border-color: var(--crimson); color: #fff; transform: translateY(-2px); }
.mailto-btn .mb-label { font-weight: 700; font-size: 0.98rem; }
.mailto-btn .mb-sub { font-size: 0.82rem; color: #9a9aa6; }

/* =====================================================================
   CTA band
   ===================================================================== */
.cta-band {
  background: var(--crimson);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: 0; }
.cta-band p { color: rgba(255,255,255,0.9); margin: 0.6rem 0 0; max-width: 520px; }
.cta-band .btn--ink { background: #fff; color: var(--crimson); }
.cta-band .btn--ink:hover { background: var(--ink); color: #fff; }
.cta-swoosh { position: absolute; right: -30px; bottom: -40px; width: 260px; opacity: 0.16; color: #fff; pointer-events: none; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--ink); color: #9a9aa6; padding-top: clamp(56px, 7vw, 84px); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 52px); padding-bottom: clamp(40px, 5vw, 60px); }
@media (max-width: 940px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p { margin-top: 18px; font-size: 0.94rem; max-width: 300px; color: #8a8a95; }
/* Footer wordmark: left-aligned, swoosh sized to the mark (not the column) */
.site-footer .logo { align-items: flex-start; align-self: flex-start; }
.site-footer .logo-swoosh { height: 5px; width: 100%; max-width: 148px; }
.site-footer .logo-swoosh svg { width: 100%; height: 100%; }
.site-footer .logo-sub { align-self: center; }
.footer-col h4 { color: #fff; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6em; }
.footer-col a { color: #a7a7b2; font-size: 0.94rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; margin-bottom: 0.9em; color: #a7a7b2; }
.footer-contact svg { width: 18px; height: 18px; color: var(--crimson); flex-shrink: 0; margin-top: 3px; }
.footer-contact a { color: #a7a7b2; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-block: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #7a7a85;
}
.footer-bottom .fb-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-badge { display: inline-flex; align-items: center; gap: 0.5em; }
.footer-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #35c26a; }

/* =====================================================================
   Scroll reveal
   ===================================================================== */
[data-reveal] { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }
  [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* =====================================================================
   Misc utilities
   ===================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.lead { font-size: 1.14rem; color: var(--ink-soft); }
.muted { color: var(--ink-mute); }
.prose p { margin-bottom: 1.2em; }
.prose h3 { margin-top: 1.8em; font-size: 1.4rem; }
.anchor-target { scroll-margin-top: calc(var(--header-h) + 28px); }
.divider { height: 1px; background: var(--gray-line); border: 0; margin: 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font-size: 0.84rem; font-weight: 600;
  padding: 0.5em 1em; border-radius: 100px;
  background: var(--gray); color: var(--ink-soft);
  border: 1px solid var(--gray-line);
}
.badge-row { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; }

/* Partner logo slider (Home "Sourcing Partners & Principals") */
.logo-slider-wrap { position: relative; }
.logo-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 14px;
  scrollbar-width: none;
}
.logo-slider::-webkit-scrollbar { display: none; }
.logo-slide {
  flex: 0 0 auto;
  width: clamp(150px, 18vw, 210px);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  scroll-snap-align: start;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.logo-slide:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.logo-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.25s var(--ease), opacity 0.25s var(--ease);
}
.logo-slide:hover img { filter: none; opacity: 1; }
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  color: var(--ink);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background 0.16s var(--ease);
  z-index: 2;
}
.slider-btn:hover { color: #fff; background: var(--crimson); border-color: var(--crimson); }
.slider-btn svg { width: 18px; height: 18px; }
.slider-btn--prev { left: -10px; }
.slider-btn--next { right: -10px; }
@media (max-width: 640px) { .slider-btn { display: none; } }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 0; padding: 0;
  background: var(--gray-line);
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.slider-dot.is-active { background: var(--crimson); transform: scale(1.25); }

/* Client segment tiles (Home "Our Clients") — swap for logo tiles later */
.client-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
@media (max-width: 1020px) { .client-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .client-grid { grid-template-columns: repeat(2, 1fr); } }
.client-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 26px 14px;
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.35;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), color 0.22s var(--ease);
}
.client-tile svg { width: 34px; height: 34px; color: var(--ink-mute); transition: color 0.22s var(--ease); }
.client-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--ink); }
.client-tile:hover svg { color: var(--crimson); }
.trust-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--ink-mute);
  opacity: 0.7;
}
