/* =========================================================
   Ashrafi Foods - design system
   Shared by every page. Load this first, then any page stylesheet.

   Everything here is driven by the tokens in :root, so a change to a
   token flows through buttons, sections, nav and footer at once.
   ========================================================= */

/* =========================================================
   Tokens — dark "roasted ink" theme, chili red + saffron gold
   ========================================================= */
:root {
  --red: #bf3a2f;
  --red-fg: #f5f0e6;
  --gold: #e3a838;
  --gold-200: #ecd6a3;
  --cream: #f5f0e6;
  --ink: #17120e;
  --bg: var(--ink);
  --fg: var(--cream);
  --card: #241d17;
  --muted-fg: #b5a891;
  --border: #3a2f24;
  --shadow-glow: 0 30px 80px -20px rgba(191, 58, 47, 0.45);
  --shadow-soft: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  /* Fluid site frame: keeps 1080p layouts comfortably wide, expands through
     1440p, then stops before content becomes unwieldy on 4K displays. */
  --max: clamp(1216px, 88vw, 2240px);
  --page-gutter: clamp(18px, 2.5vw, 72px);

  /* corners: one scale for the whole site -- change it here, not per card */
  --r-sm: 10px;   /* small: nav items, cells, chips */
  --r-md: 14px;   /* default: cards, panels, media, avatars */
  --r-lg: 18px;   /* large: feature panels */
  --r-pill: 999px; /* buttons and pills only */

  /* type: every page pulls its fonts from these two, never inline */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  /* a sans display face needs more weight and tighter tracking than a serif
     did to keep the same presence at large sizes */
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--page-gutter);
}
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
}
.muted {
  color: var(--muted-fg);
}
.red {
  color: var(--red);
}
.gold {
  color: var(--gold);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-pill);
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover {
  transform: translateY(-1px);
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover {
  transform: translateY(-1px);
}
.btn-ghost {
  color: rgba(245, 240, 230, 0.8);
}
.btn-ghost:hover {
  color: var(--fg);
}
/* ---------- NAV ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  /* frosted glass: blurred, slightly saturated backdrop under a dark tint */
  background: linear-gradient(
    180deg,
    rgba(36, 29, 23, 0.92) 0%,
    rgba(23, 18, 14, 0.9) 100%
  );
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(245, 240, 230, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.25);
}
section[id],
[id] {
  scroll-margin-top: 40px;
}
.nav nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--page-gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  height: 58px;
  width: auto;
  display: block;
}
.nav .logo {
  height: 76px;
}
.nav .btn-gold {
  padding: 10px 20px;
  font-size: 13px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 42px;
  font-size: 16px;
  color: var(--muted-fg);
}
/* ---------- NAV DROPDOWN ---------- */
.nav-links {
  position: relative;
}
.menu {
  position: relative;
}
.menu > .menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.menu > .menu-trigger .caret {
  font-size: 9px;
  line-height: 1;
  transition: transform 0.25s ease;
  opacity: 0.75;
}
.menu.open > .menu-trigger .caret {
  transform: rotate(180deg);
}
.menu.open > .menu-trigger,
.menu > .menu-trigger:hover {
  color: var(--gold);
}
.drop {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 80;
  min-width: 232px;
  padding: 8px;
  border-radius: var(--r-md);
  border: 1px solid rgba(227, 168, 56, 0.22);
  background: #1c1611;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s;
}
.menu.open > .drop,
.sub.open > .drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* invisible bridge so the pointer can travel to the panel */
.menu > .drop::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.drop a,
.drop .sub-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  font: inherit;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.86);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}
.drop a:hover,
.drop .sub-trigger:hover,
.sub.open > .sub-trigger {
  background: rgba(227, 168, 56, 0.12);
  color: var(--gold);
}
.sub {
  position: relative;
}
.sub > .drop {
  top: -8px;
  left: calc(100% + 6px);
  z-index: 90;
}
.sub > .drop::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -8px;
  width: 8px;
}
.sub.flip > .drop {
  left: auto;
  right: calc(100% + 6px);
}
.chev {
  font-size: 10px;
  opacity: 0.6;
}
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  height: 40px;
  width: 40px;
  padding: 0 9px;
  border: 1px solid rgba(227, 168, 56, 0.35);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
}
.nav-burger .bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--gold);
  transition:
    transform 0.3s ease,
    opacity 0.2s ease;
}
.nav.open .nav-burger .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.open .nav-burger .bar:nth-child(2) {
  opacity: 0;
}
.nav.open .nav-burger .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-links a:hover {
  color: var(--fg);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(227, 168, 56, 0.4);
  background: rgba(227, 168, 56, 0.1);
  padding: 6px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.pill .dot {
  height: 6px;
  width: 6px;
  border-radius: var(--r-pill);
  background: var(--gold);
}
.vh {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2.4vh, 30px);
  width: 100%;
  /* the ring is allowed past the text column, so the side packs sit further
     out than a normal .wrap would let them */
  max-width: min(var(--max), 98vw);
}
/* ---------- section shells ---------- */
section {
  position: relative;
}
.pad {
  padding: 80px 0;
}
section#heritage {
  padding-bottom: 0;
}
section#products {
  padding-bottom: 0;
}
section#brands {
  padding-bottom: 0;
}
section#about {
  padding-bottom: 0;
}
section#certificates {
  padding-bottom: 0;
}
.h-lg {
  font-size: 48px;
  line-height: 1.05;
  text-wrap: balance;
  margin-top: 10px;
}
/* ---------- ABOUT / HERITAGE ---------- */
.story-grid {
  display: grid;
  gap: 64px;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.story-img-wrap {
  position: relative;
}
.story-frame {
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.story-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.stamp {
  position: absolute;
  right: -24px;
  top: -24px;
  height: 120px;
  width: 120px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.stamp b {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
}
.stamp small {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 600;
}
.flist {
  list-style: none;
  margin: 32px 0 34px;
  padding: 0;
  display: grid;
  gap: 20px;
}
.flist li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.flist .ic {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.flist .ic svg {
  width: 21px;
  height: 21px;
  color: var(--gold);
}
.flist b {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--fg);
  margin-bottom: 2px;
}
.flist .k {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.flist .d {
  color: var(--muted-fg);
  font-size: 14px;
}
/* ---------- PRODUCTS (image cards) ---------- */
.products {
  background: rgba(36, 29, 23, 0.4);
}
.prod-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.prod-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.prod {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
}
.prod img {
  display: block;
  width: 100%;
  height: auto;
}
.prod .cap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 24px 26px;
}
.prod .tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  background: rgba(23, 18, 14, 0.5);
  border: 1px solid rgba(227, 168, 56, 0.3);
  padding: 5px 12px;
  border-radius: var(--r-pill);
}
.prod h3 {
  padding-top: 14px;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--fg);
}
.prod .note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted-fg);
}
/* ---------- GALLERY (collage) ---------- */
/* Collections -- uniform 4-up grid of product ranges */
.collections {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.coll {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.35s ease;
}
.coll img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* no photo yet: a tinted pool of light stands in */
.coll.no-img {
  background:
    radial-gradient(ellipse 80% 55% at 50% 38%, rgba(176, 92, 110, 0.45), transparent 70%),
    var(--card);
}
.coll .cap {
  position: absolute;
  inset: auto 0 0;
  padding: 90px 24px 24px;
  background: linear-gradient(
    to top,
    rgba(23, 18, 14, 0.95) 0%,
    rgba(23, 18, 14, 0.7) 50%,
    transparent 100%
  );
  transition: padding 0.4s ease;
}
.coll .t {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
  color: var(--fg);
}
.coll .d {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-fg);
}
.coll .go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
  transition: gap 0.3s ease, opacity 0.3s ease;
}
.coll::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 18, 14, 0);
  transition: background 0.4s ease;
  pointer-events: none;
}
.coll:hover,
.coll:focus-visible {
  border-color: color-mix(in srgb, var(--gold) 50%, transparent);
}
.coll:hover img,
.coll:focus-visible img {
  transform: scale(1.08);
}
.coll:hover::after,
.coll:focus-visible::after {
  background: rgba(23, 18, 14, 0.25);
}
.coll:hover .go,
.coll:focus-visible .go {
  gap: 14px;
  opacity: 1;
}
.coll .cap {
  z-index: 1;
}
@media (min-width: 961px) {
  .leader { padding: 34px 18px; }
  .leader .avatar { height: 150px; width: 150px; }
}
@media (max-width: 960px) {
  .collections { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .collections { grid-template-columns: 1fr; }
  .coll { aspect-ratio: 4 / 3; }
}
/* ---------- INVITE (careers + partner) ---------- */
.invite-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.icard {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--fg);
}
.icard img {
  display: block;
  width: 100%;
  aspect-ratio: 1920/699;
  object-fit: cover;
}
.icard .body {
  padding: 32px 34px 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.icard .k {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.icard h3 {
  margin-top: 12px;
  font-size: 32px;
}
.icard p {
  margin-top: 12px;
  color: var(--muted-fg);
  font-size: 15px;
}
.icard a.btn {
  margin-top: 32px;
}
/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.ccard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ccard .ic {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: rgba(191, 58, 47, 0.15);
  border: 1px solid rgba(191, 58, 47, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ccard .ic svg {
  width: 23px;
  height: 23px;
  color: var(--gold);
}
.ccard h4 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0;
}
.ccard p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--fg);
  line-height: 1.35;
}
/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid rgba(58, 47, 36, 0.6);
  padding: 56px 0 28px;
}
.foot-grid {
  display: grid;
  /* the products column runs two-up, so it gets the extra width */
  grid-template-columns: 1.3fr 1.7fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(58, 47, 36, 0.6);
}
.foot-brand p {
  margin-top: 16px;
  font-size: 14px;
  max-width: 340px;
  color: var(--muted-fg);
}
.foot-col h5 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 0 0 18px;
  font-weight: 600;
}
.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.foot-col-wide ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
}
.foot-col a {
  font-size: 14px;
  color: var(--muted-fg);
}
.foot-col a:hover {
  color: var(--gold);
}
.foot-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: var(--muted-fg);
  flex-wrap: wrap;
  gap: 10px;
}
.logo-sm {
  height: 92px;
  width: auto;
  display: block;
}
/* ---------- ADDED: brands / heritage / leadership / showcase ---------- */
.section-intro {
  max-width: 820px;
  margin: 0 auto 46px;
  text-align: center;
  color: var(--muted-fg);
  font-size: 16px;
  line-height: 1.7;
}
.infra {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.infra .cell {
  background: var(--card);
  padding: 28px 18px;
  text-align: center;
}
.infra .n {
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--gold);
  line-height: 1;
}
.infra .l {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
/* Brands — editorial dual panel */
.brands-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  isolation: isolate;
}
.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 520px;
  padding: 40px 44px 36px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--card);
}
.brand-panel.local {
  background:
    radial-gradient(
      90% 70% at 0% 0%,
      rgba(227, 168, 56, 0.14),
      transparent 55%
    ),
    var(--card);
}
.brand-panel.export {
  background:
    radial-gradient(
      90% 70% at 100% 0%,
      rgba(227, 168, 56, 0.14),
      transparent 55%
    ),
    var(--card);
}
.brand-panel .idx {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.brand-panel h3 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  max-width: 12ch;
}
.brand-panel .tagline {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.brand-panel .desc {
  margin: 24px 0 28px;
  max-width: 34ch;
  color: var(--muted-fg);
  font-size: 15px;
  line-height: 1.65;
}
.brand-panel .pic {
  margin-bottom: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 180px;
}
.brand-panel .pic img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-panel:hover .pic img {
  transform: translateY(-6px) scale(1.02);
}
.brand-panel .meta {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
.brand-panel .meta b {
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.04em;
}
.certificates-head {
  max-width: 680px;
  margin: 0 auto 52px;
  text-align: center;
}
.certificates-head h2 {
  margin-top: 10px;
}
.certificates-head p {
  margin-top: 16px;
  color: var(--muted-fg);
  font-size: 16px;
  line-height: 1.7;
}
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  max-width: 838px;
  margin: 0 auto;
}
.certificate {
  margin: 0;
  text-align: center;
}
.certificate-placeholder {
  width: min(100%, 128px);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 2px solid var(--gold);
  border-radius: var(--r-lg);
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(227, 168, 56, 0.055) 0 12px,
      transparent 12px 24px
    ),
    var(--card);
  box-shadow:
    0 0 0 6px rgba(227, 168, 56, 0.07),
    0 24px 50px -22px rgba(0, 0, 0, 0.78);
  color: var(--gold-200);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease;
}
.certificate-placeholder span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.62;
}
.certificate:hover .certificate-placeholder {
  transform: translateY(-5px);
  border-color: var(--gold-200);
}
@media (max-width: 720px) {
.certificates-grid {
    grid-template-columns: repeat(2, 122px);
    justify-content: center;
    gap: 22px 18px;
    max-width: 280px;
    padding: 8px 0 24px;
  }
.certificate-placeholder {
    width: 122px;
  }
.certificate:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
@media (max-width: 420px) {
.certificates-grid {
    gap: 20px 14px;
  }
}
.leaders-feature {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}
.leader-hero {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 14px 30px;
  display: flex;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}
/* thin gold rule across the top marks these three as the senior tier */
.leader-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.leader-hero:hover,
.leader:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
}
.leader-hero .avatar {
  height: 190px;
  width: 190px;
  font-size: 30px;
  flex: none;
  margin: 18px auto 22px;
}
.leader-hero h4 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--fg);
  margin: 6px 0 0;
}
.leader-hero .role {
  color: var(--red);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.leader-hero p {
  padding: 0 12px;
}
/* flex rather than grid so a short last row sits centred instead of
   leaving a hole on the right */
.leaders-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.leader {
  flex: 0 1 calc((100% - 64px) / 5);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 26px 18px;
  text-align: center;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}
.avatar {
  height: 100px;
  width: 100px;
  border-radius: var(--r-md);
  margin: 0 auto;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), var(--gold-200));
  overflow: hidden;
}
/* a photo fills the circle; the gold gradient stays as the fallback behind it
   and is what still shows for anyone without a portrait */
.avatar img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.avatar.photo {
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
}
.leader h4 {
  margin: 16px 0 0;
  font-size: 18px;
  color: var(--fg);
}
.leader .role {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
@media (max-width: 960px) {
.infra {
    grid-template-columns: repeat(2, 1fr);
  }
  /* five stats in a 2-up grid: the last one spans the full row */
  .infra .cell:last-child {
    grid-column: 1 / -1;
  }
.brands-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
.brand-panel {
    min-height: 0;
    padding: 32px 28px 28px;
  }
.leaders-feature {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
.leader {
    flex-basis: calc((100% - 16px) / 2);
  }
}
@media (max-width: 600px) {
.infra .cell {
    padding: 24px 12px;
  }
/* team stays two across on phones, with tighter cards */
.leaders-grid {
    gap: 12px;
  }
.leader {
    flex-basis: calc((100% - 12px) / 2);
    padding: 20px 10px;
  }
.leader .avatar {
    height: 84px;
    width: 84px;
  }
.leader h4 {
    font-size: 14px;
  }
.leader .role {
    font-size: 10px;
    letter-spacing: 0.06em;
  }
}
/* =========================================================
   MOTION — pure enhancement (§2 + §7 of the guidelines).
   Resting state = final design. Start states apply ONLY when
   <body> has .js-motion (added by JS when motion is allowed and
   NOT in export mode). Under ?export=1 / reduced-motion / no-JS
   everything is fully visible and static → clean Figma capture.
   ========================================================= */
.js-motion .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.js-motion .reveal.in {
  opacity: 1;
  transform: none;
}
@keyframes af-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
/* Gentle float on the heritage stamp */
@keyframes af-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.js-motion .float {
  animation: af-float 7s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
.js-motion .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
/* ---------- Export mode (§7): neutralise ALL motion, force visible ---------- */
body.export-ready *,
body.export-ready *::before,
body.export-ready *::after {
  animation: none !important;
  transition: none !important;
  opacity: 1 !important;
  transform: none !important;
}
@media (max-width: 900px) {
.h-lg {
    font-size: 36px;
  }
.story-grid,
  .invite-grid {
    grid-template-columns: 1fr;
  }
.prod-grid {
    grid-template-columns: 1fr 1fr;
  }
.contact-grid,
  .foot-grid {
    grid-template-columns: 1fr;
  }
.nav-burger {
    display: inline-flex;
    order: 3;
    flex: none;
    height: 42px;
    width: 42px;
    border-color: rgba(227, 168, 56, 0.5);
    background: rgba(227, 168, 56, 0.06);
  }
.nav nav {
    gap: 10px;
    padding: 10px 16px;
  }
.nav .brand {
    min-width: 0;
    margin-right: auto;
    gap: 8px;
  }
.nav .logo {
    height: 72px;
    flex: none;
  }
  /* the mark carries the wordmark, so it has to stay readable once the
     brand text beside it is gone */
  .logo-sm {
    height: 96px;
  }
.nav .btn-gold {
    order: 2;
    flex: none;
    padding: 10px 15px;
    font-size: 11px;
    white-space: nowrap;
  }
.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 16px 18px;
    background: rgba(28, 22, 17, 0.97);
    border-top: 1px solid rgba(227, 168, 56, 0.18);
    border-bottom: 1px solid rgba(227, 168, 56, 0.22);
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(18px);
    max-height: calc(100dvh - var(--navh, 72px));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
.nav.open .nav-links {
    display: flex;
  }
.nav-links > a,
  .menu > .menu-trigger {
    width: 100%;
    min-height: 46px;
    padding: 13px 14px;
    border-radius: var(--r-sm);
    text-align: left;
    color: rgba(245, 240, 230, 0.88);
    font-size: 14px;
    font-weight: 500;
  }
.nav-links > a:hover,
  .menu > .menu-trigger:hover,
  .menu.open > .menu-trigger {
    background: rgba(227, 168, 56, 0.11);
    color: var(--gold);
  }
.menu,
  .sub {
    width: 100%;
  }
.menu > .menu-trigger {
    justify-content: space-between;
  }
.drop,
  .sub > .drop {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    display: none;
    min-width: 0;
    width: 100%;
    margin: 4px 0 6px;
    padding: 4px 0 4px 12px;
    border: 0;
    border-left: 1px solid rgba(227, 168, 56, 0.24);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
.menu.open > .drop,
  .sub.open > .drop {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
.menu > .drop::before,
  .sub > .drop::before {
    content: none;
  }
.drop a,
  .drop .sub-trigger {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    font-size: 13px;
    color: rgba(245, 240, 230, 0.76);
  }
.drop a:hover,
  .drop .sub-trigger:hover,
  .sub.open > .sub-trigger {
    background: rgba(227, 168, 56, 0.1);
    color: var(--gold-200);
  }
.menu > .menu-trigger .caret,
  .chev {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(227, 168, 56, 0.09);
    color: var(--gold);
    opacity: 1;
  }
.sub-trigger .chev {
    transition: transform 0.25s ease;
  }
.sub.open > .sub-trigger .chev {
    transform: rotate(90deg);
  }
}
@media (max-width: 420px) {
.nav nav {
    gap: 7px;
    padding-inline: 12px;
  }
.nav .logo {
    height: 64px;
  }
.nav .btn-gold {
    padding: 9px 12px;
    font-size: 10px;
  }
.nav-burger {
    width: 40px;
    height: 40px;
  }
.nav-links {
    padding-inline: 12px;
  }
}
@media (max-width: 560px) {
.prod-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Reusable primitives
   Generic versions of patterns the home page had hard-wired to one
   section. Prefer these on new pages instead of writing fresh CSS.
   ========================================================= */

/* intro paragraph under a heading */
.lead {
  margin: 28px 0 0;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg);
}
.lead.muted {
  color: var(--muted-fg);
}

/* a row of buttons; wraps on small screens */
.cta-row {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.cta-row.center {
  justify-content: center;
}

/* card grids: the same gap and breakpoint everywhere */
.grid-2,
.grid-3 {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* centre a section's heading block */
.stack-center {
  text-align: center;
}
.stack-center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- map panel ----------
   One framed map, used by every page that shows the office.
   About and Contact must not drift into two different looks. */
.map-panel {
  margin: 32px 0 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--card);
  overflow: hidden;
}
.map-panel iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  /* the embed ships a bright basemap; settle it into the dark page */
  filter: grayscale(0.3) brightness(0.88) contrast(1.05);
}
.map-panel figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--muted-fg);
}
.map-panel figcaption a {
  color: var(--gold);
}
@media (max-width: 900px) {
  .map-panel iframe {
    height: 300px;
  }
}

/* ---------- page head band ----------
   Breadcrumb, title and standfirst at the top of an inner page.
   Shared: the product page and the about page both use it. */
.page-head {
  position: relative;
  padding: 64px 0 44px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(
    ellipse 900px 300px at 15% 0%,
    rgba(227, 168, 56, 0.1),
    transparent 60%
  );
}
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--muted-fg);
}
.crumb a {
  color: var(--muted-fg);
  transition: color 0.25s ease;
}
.crumb a:hover {
  color: var(--gold);
}
.crumb .sep {
  opacity: 0.45;
}
.crumb .here {
  color: var(--fg);
}
.page-head h1 {
  /* size and weight come from .h-lg in the markup, so the product title and
     the homepage headings can never drift apart */
  margin-top: 18px;
}
.page-head h1 em {
  font-style: italic;
  color: var(--gold-200);
  font-weight: 600;
}
.page-tag {
  margin: 14px 0 0;
  max-width: 80%;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-fg);
}

/* =========================================================
   PAGE SECTION: home
   Hero ring slider and the "Our Journey" timeline.
   Only loads-in on index.html; harmless elsewhere.
   Everything above is shared. Add a new page's rules the same
   way -- one commented section at the bottom, built on the
   tokens above rather than new colours or spacing values.
   ========================================================= */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img,
.hero-media video {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 70% center;
  opacity: 0.85;
}
/* slider hero: symmetric vignette + a very slow drift, so the
   backdrop recedes and the packs own the centre of the frame */
.hero:has(.has-slider) .hero-media img {
  opacity: 0.92;
  object-position: center;
  transform: scale(1.06);
  animation: hero-drift 34s ease-in-out infinite alternate;
}
.hero:has(.has-slider) .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 70% 60% at 50% 45%,
      rgba(23, 18, 14, 0) 0%,
      rgba(23, 18, 14, 0.12) 66%,
      rgba(23, 18, 14, 0.4) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(23, 18, 14, 0.22) 0%,
      transparent 36%,
      rgba(23, 18, 14, 0.32) 100%
    );
}
@keyframes hero-drift {
  from { transform: scale(1.06) translate3d(-1.2%, 0, 0); }
  to { transform: scale(1.12) translate3d(1.2%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
.hero:has(.has-slider) .hero-media img {
    animation: none;
  }
}
.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(92vh, 820px);
  padding: 120px 24px 100px;
  max-width: var(--max);
  margin: 0 auto;
  text-align: left;
}
.hero-copy {
  max-width: 560px;
  margin: 0;
}
.hero h1 {
  margin-top: 28px;
  font-size: 72px;
  line-height: 1.02;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-200);
  font-weight: 600;
}
.hero p.lead {
  margin: 28px 0 0;
  max-width: 540px;
  font-size: 16px;
  line-height: 1.7;
  color: #ffffff;
}
.hero-cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}
/* Heading + slider are sized to share a single viewport. */
.hero-inner.has-slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vh, 28px);
  text-align: center;
  width: 100%;
  /* the sticky nav sits in flow above the hero, so discount its height */
  min-height: calc(100vh - var(--navh, 91px));
  min-height: calc(100svh - var(--navh, 91px));
  padding: clamp(16px, 4vh, 48px) 24px clamp(24px, 5vh, 56px);
  /* the ring is allowed past the text column so the side packs sit further
     out; .wrap sections keep the normal --max width */
  max-width: min(var(--max), 98vw);
}
.hero-inner.has-slider .hero-copy {
  max-width: none;
  margin: 0 auto;
}
/* single line, scaled off the viewport so it never wraps */
.hero-inner.has-slider h1 {
  margin-top: 0;
  white-space: nowrap;
  font-size: clamp(20px, 4.6vw, 68px);
}
/* Every pack owns an accent; --v drives wash, wordmark, props and UI. */
.hero:has(.vh) {
  --v: #e3a838;
  --v-deep: #5a3f12;
  /* the wash follows the live accent */
  --bv: #e3a838;
  --bv-deep: #5a3f12;
}
.hero:has(.vh)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 60% 55% at 50% 44%,
      color-mix(in srgb, var(--bv) 15%, transparent),
      transparent 70%
    ),
    radial-gradient(
      ellipse 90% 70% at 50% 100%,
      color-mix(in srgb, var(--bv-deep) 32%, transparent),
      transparent 72%
    );
  pointer-events: none;
}
.vh-stage {
  position: relative;
  height: min(68vh, 560px);
}
/* spotlight -- a warm pool of light behind the front pack plus a lit
   floor, so dark packs separate from the dark backdrop */
.vh-spot {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.vh-spot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  height: min(62vh, 520px);
  width: min(62vh, 520px);
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, #fff3d6 30%, transparent) 0%,
    color-mix(in srgb, var(--v) 26%, transparent) 34%,
    color-mix(in srgb, var(--v) 8%, transparent) 58%,
    transparent 72%
  );
  transition: background 0.6s ease;
}
.vh-spot::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6%;
  height: 60px;
  width: min(46vh, 380px);
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    color-mix(in srgb, #fff3d6 22%, transparent),
    transparent 70%
  );
  filter: blur(4px);
}
/* category burst -- grains/lentils/bits thrown out from behind the pack */
.vh-burst {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.vh-bit {
  position: absolute;
  left: 50%;
  top: 46%;
  opacity: 0;
  animation: vh-burst 1.6s cubic-bezier(0.15, 0.75, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes vh-burst {
  0% { transform: translate(-50%, -50%) rotate(var(--r0)) scale(0.4); opacity: 0; }
  12% { opacity: 1; }
  70% { opacity: 0.9; }
  100% {
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y)))
      rotate(var(--r1)) scale(1);
    opacity: 0;
  }
}
.vh-bit.rice {
  height: 5px;
  width: 17px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fffaf0, #eadfc6);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.vh-bit.daal {
  height: 9px;
  width: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe08a, #e0a526 70%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.vh-bit.frost {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 30%, #cfeaff 60%, transparent 72%);
  box-shadow: 0 0 8px rgba(190, 228, 255, 0.8);
}
.vh-bit.nimko {
  height: 8px;
  width: 12px;
  border-radius: 40% 60% 45% 55%;
  background: linear-gradient(135deg, #f0b64a, #b36d1c);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
/* garlic clove: a cream teardrop with a faint papery sheen */
.vh-bit.garlic {
  height: 15px;
  width: 11px;
  border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%;
  background:
    linear-gradient(100deg, transparent 45%, rgba(255, 255, 255, 0.55) 50%, transparent 56%),
    radial-gradient(circle at 40% 70%, #fffaf0, #efe2c8 70%, #d9c6a3);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
/* ginger slice: a pale gold disc with a tan skin rim */
.vh-bit.ginger {
  height: 13px;
  width: 15px;
  border-radius: 46% 54% 50% 50% / 55% 48% 52% 45%;
  background: radial-gradient(circle at 50% 50%, #f7df9a 0%, #e9c46a 55%, #b8864a 78%, #8a5f33 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
@media (prefers-reduced-motion: reduce) {
  .vh-burst { display: none; }
}
/* the packs themselves */
.vh-track {
  position: absolute;
  inset: 0;
}
/* 3D ring carousel: packs sit on a circle in the XZ plane, projected
   with a real perspective divide -- k = f / (f + R(1 - cos0)) -- so the
   ones going round the back shrink, rise, fade and blur. */
.vh-track {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.vh-item {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  cursor: pointer;
  transform-origin: 50% 100%;
}
.vh-item img {
  display: block;
  width: 100%;
  height: auto;
  /* every thumbnail is rendered onto the same 640x760 canvas, so one
     width gives every pack an identical box and a common ground line */
  aspect-ratio: 640 / 760;
  object-fit: contain;
  object-position: 50% 100%;
  pointer-events: none;
}
.vh-item.is-front {
  cursor: default;
}
.vh-item.is-front img {
  filter:
    drop-shadow(0 0 22px color-mix(in srgb, #fff3d6 22%, transparent))
    drop-shadow(0 30px 44px rgba(0, 0, 0, 0.62));
}
/* arrows + dots -- the only manual controls on the ring. Both borrow the
   live variant accent (--v), so they retint with the product on screen. */
.vh-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 3;
  display: grid;
  place-items: center;
  height: 52px;
  width: 52px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--card) 72%, transparent);
  color: var(--cream);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    scale 0.25s ease;
}
.vh-arrow svg { height: 22px; width: 22px; }
.vh-arrow.prev { left: clamp(6px, 3vw, 40px); }
.vh-arrow.next { right: clamp(6px, 3vw, 40px); }
.vh-arrow:hover,
.vh-arrow:focus-visible {
  border-color: var(--v, var(--gold));
  background: color-mix(in srgb, var(--v, var(--gold)) 18%, var(--card));
  color: #fff;
  scale: 1.06;
}
.vh-arrow:active { scale: 0.96; }

.vh-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
}
.vh-dot {
  height: 8px;
  width: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--cream) 30%, transparent);
  cursor: pointer;
  /* the active dot stretches into a dash rather than just changing colour */
  transition:
    width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease;
}
.vh-dot:hover { background: color-mix(in srgb, var(--cream) 55%, transparent); }
.vh-dot.is-on {
  width: 30px;
  background: var(--v, var(--gold));
}
@media (prefers-reduced-motion: reduce) {
  .vh-arrow,
  .vh-dot { transition: none; }
}
@media (max-width: 900px) {
.vh-stage { height: min(54vh, 420px); }
  .vh-arrow { height: 42px; width: 42px; }
  .vh-arrow svg { height: 18px; width: 18px; }
}
/* phones: arrows drop out of the ring and sit side by side under the
   packs, with the dots below them, so nothing covers the products */
@media (max-width: 640px) {
  .vh {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "stage stage"
      "prev next"
      "dots dots";
    justify-content: center;
    column-gap: 18px;
    row-gap: 18px;
  }
  .vh-stage {
    grid-area: stage;
    width: 100%;
    height: min(52svh, 420px);
  }
  /* hero + range strip fill exactly one screen under the nav */
  .hero-inner.has-slider {
    min-height: calc(100vh - var(--navh, 72px) - 64px);
    min-height: calc(100svh - var(--navh, 72px) - 64px);
    padding-top: 24px;
    padding-bottom: 28px;
  }
  .vh-arrow {
    position: static;
    translate: none;
    height: 54px;
    width: 54px;
  }
  .vh-arrow svg { height: 22px; width: 22px; }
  .vh-arrow.prev { grid-area: prev; justify-self: end; }
  .vh-arrow.next { grid-area: next; justify-self: start; }
  .vh-dots { grid-area: dots; }
}
/* "Our Journey" — photo medallions either side of a line that DRAWS
   with scroll. There is deliberately no base rail: before you scroll
   there is no line at all, only the milestones fading in. */
.tl-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}
.tl-head h2 {
  margin-top: 10px;
}
.tl-head .intro {
  margin-top: 18px;
  color: var(--muted-fg);
  font-size: 16px;
  line-height: 1.75;
}
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 0 40px;
}
/* the meandering line — an SVG path stroked in as you scroll */
.tl-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.tl-path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(227, 168, 56, 0.45));
}
/* the dot riding the tip of the drawn curve */
.tl-marker {
  position: absolute;
  top: 0;
  left: 0;
  height: 14px;
  width: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow:
    0 0 0 5px rgba(227, 168, 56, 0.16),
    0 0 14px rgba(227, 168, 56, 0.7);
  opacity: 0;
  transition: opacity 0.35s ease;
  will-change: transform;
}
.tl-marker.lit {
  opacity: 1;
}
.tl-item {
  position: relative;
  width: 50%;
  box-sizing: border-box;
  /* wide enough that the year label sits between circle and line */
  padding: 0 150px;
  margin-bottom: 72px;
}
.tl-item:nth-child(odd) {
  left: 0;
  text-align: right;
}
.tl-item:nth-child(even) {
  left: 50%;
  text-align: left;
  margin-top: 90px; /* stagger the two columns like the reference */
}
.tl-circle {
  /* 200px fits the 200px content box left by the 150px side padding */
  width: 200px;
  height: 200px;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow:
    0 0 0 6px rgba(227, 168, 56, 0.08),
    0 24px 50px -18px rgba(0, 0, 0, 0.8);
  background: var(--card);
}
.tl-item:nth-child(odd) .tl-circle {
  margin-left: auto;
}
.tl-item:nth-child(even) .tl-circle {
  margin-right: auto;
}
.tl-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* placeholder stand-in until real event photography is dropped in --
   swap the <figure> contents for an <img> and it styles itself */
.tl-circle.is-placeholder {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(227, 168, 56, 0.05) 0 10px,
      transparent 10px 20px
    ),
    var(--card);
}
.tl-circle.is-placeholder svg {
  width: 46px;
  height: 46px;
  stroke-width: 1.4;
  color: var(--gold);
  opacity: 0.5;
}
/* .tl-stub is only a positioning box -- the drawn line is ::before, so
   the year label inside is never squashed by the wipe animation */
.tl-stub {
  position: absolute;
  top: 110px; /* vertical centre of the 200px medallion */
  height: 2px;
  width: 78px; /* JS re-measures this to meet the curve */
  opacity: 0;
  transition: opacity 0.4s ease;
}
.tl-stub::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.tl-item:nth-child(odd) .tl-stub {
  right: 0;
}
.tl-item:nth-child(odd) .tl-stub::before {
  transform-origin: right center;
}
.tl-item:nth-child(even) .tl-stub {
  left: 0;
}
.tl-item:nth-child(even) .tl-stub::before {
  transform-origin: left center;
}
.tl-item.in .tl-stub {
  opacity: 1;
}
.tl-item.in .tl-stub::before {
  transform: scaleX(1);
}
.tl-stub .yr {
  position: absolute;
  bottom: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  color: var(--gold);
  white-space: nowrap;
}
/* anchor the year at the medallion end of the stub so the text runs
   AWAY from the circle (toward the line) and can never overlap it */
.tl-item:nth-child(odd) .tl-stub .yr {
  left: 6px;
}
.tl-item:nth-child(even) .tl-stub .yr {
  right: 6px;
}
/* clicking a milestone expands sub-events; the line grows with it */
.tl-circle {
  cursor: pointer;
}
.tl-toggle {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(227, 168, 56, 0.35);
  border-radius: var(--r-pill);
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}
.tl-toggle:hover {
  background: rgba(227, 168, 56, 0.12);
  border-color: var(--gold);
}
.tl-toggle .ico {
  position: relative;
  width: 9px;
  height: 9px;
  flex: none;
}
.tl-toggle .ico::before,
.tl-toggle .ico::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: currentColor;
}
.tl-toggle .ico::before {
  width: 9px;
  height: 1.5px;
}
.tl-toggle .ico::after {
  width: 1.5px;
  height: 9px;
  transition: transform 0.3s ease;
}
.tl-item.open .tl-toggle .ico::after {
  transform: scaleY(0);
}
/* 0fr -> 1fr animates to the panel's natural height */
.tl-detail {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease;
}
.tl-item.open .tl-detail {
  grid-template-rows: 1fr;
  opacity: 1;
}
.tl-detail-inner {
  overflow: hidden;
  min-height: 0;
}
/* the two boxes sit side by side; the panel reclaims some of the item's
   outer padding so each box has usable width */
.tl-item:nth-child(odd) .tl-detail {
  margin-left: -140px;
}
.tl-item:nth-child(even) .tl-detail {
  margin-right: -140px;
}
.tl-events {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.tl-event {
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: var(--r-sm);
  background: var(--card);
}
/* .tl-item p sits later in this sheet at equal specificity, so the
   extra class is needed to stop the uppercase/tracking leaking in */
.tl-item .tl-event p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  color: var(--muted-fg);
}
.tl-item h4 {
  margin: 20px 0 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  line-height: 1.35;
}
.tl-item p {
  margin: 6px 0 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
@media (max-width: 860px) {
.tl-item,
  .tl-item:nth-child(odd),
  .tl-item:nth-child(even) {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 0 0 0 148px;
    margin-top: 0;
    margin-bottom: 40px;
  }
.tl-item:nth-child(odd) .tl-circle,
  .tl-item:nth-child(even) .tl-circle {
    margin: 0;
    width: 110px;
    height: 110px;
  }
.tl-circle.is-placeholder svg {
    width: 30px;
    height: 30px;
  }
.tl-item:nth-child(odd) .tl-detail,
  .tl-item:nth-child(even) .tl-detail {
    margin-left: 0;
    margin-right: 0;
  }
.tl-item:nth-child(odd) .tl-stub,
  .tl-item:nth-child(even) .tl-stub {
    left: 34px;
    right: auto;
    top: 55px; /* centre of the 110px medallion */
  }
.tl-item:nth-child(odd) .tl-stub::before,
  .tl-item:nth-child(even) .tl-stub::before {
    transform-origin: left center;
  }
.tl-item:nth-child(odd) .tl-stub .yr,
  .tl-item:nth-child(even) .tl-stub .yr {
    left: 12px;
    right: auto;
    bottom: 7px;
    font-size: 15px;
  }
.tl-item h4 {
    margin-top: 14px;
    font-size: 13px;
    letter-spacing: 0.1em;
  }
.tl-item p {
    font-size: 12px;
    letter-spacing: 0.04em;
  }
.tl-toggle {
    margin-top: 10px;
    padding: 6px 11px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }
.tl-events {
    margin-top: 12px;
    gap: 10px;
  }
.tl-event {
    padding: 10px 11px;
  }
.tl-item .tl-event p {
    font-size: 11.5px;
  }
}
@media (max-width: 560px) {
.tl-events {
    grid-template-columns: 1fr;
  }
}
/* timeline items slide in from their own side of the spine */
.js-motion .tl-item.reveal {
  transform: translateX(-46px);
}
.js-motion .tl-item:nth-child(even).reveal {
  transform: translateX(46px);
}
.js-motion .tl-item.reveal.in {
  transform: none;
}
.js-motion .tl-item.reveal .tl-circle {
  opacity: 0;
  transform: scale(0.86);
  transition:
    opacity 0.6s ease,
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.js-motion .tl-item.reveal.in .tl-circle {
  opacity: 1;
  transform: none;
}
@media (max-width: 860px) {
.js-motion .tl-item.reveal,
  .js-motion .tl-item:nth-child(even).reveal {
    transform: translateX(-28px);
  }
.js-motion .tl-item.reveal.in {
    transform: none;
  }
}
/* Range strip -- names the ranges in the hero carousel */
.range-strip {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 40px;
  border-top: 1px solid rgba(58, 47, 36, 0.6);
  border-bottom: 1px solid rgba(58, 47, 36, 0.6);
  background: rgba(36, 29, 23, 0.5);
  padding: 16px 24px;
}
.range-tab {
  position: relative;
  padding: 4px 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 24px;
  color: rgba(245, 240, 230, 0.45);
  transition: color 0.3s ease;
}
.range-tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  height: 2px;
  width: 0;
  translate: -50% 0;
  background: var(--v, var(--gold));
  transition: width 0.35s ease;
}
.range-tab:hover {
  color: rgba(245, 240, 230, 0.8);
}
.range-tab.is-on {
  color: var(--cream, #f5f0e6);
}
.range-tab.is-on::after {
  width: 100%;
}
/* phones: one scrollable line; the live range is scrolled to the centre */
@media (max-width: 600px) {
  .range-tab {
    flex: none;
    font-size: 17px;
    white-space: nowrap;
  }
  .range-strip {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 26px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    /* near-half-width padding lets the first and last tab reach the
       centre too (% of the strip, so it never widens the page) */
    padding-inline: calc(50% - 40px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  }
  .range-strip::-webkit-scrollbar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
.js-motion .float {
    animation: none !important;
  }
}
@media (max-width: 900px) {
.hero h1 {
    font-size: 48px;
  }
}

/* =========================================================
   PAGE SECTION: product detail
   The original product-page layout -- glowing head, one sticky
   visual panel, panelled variety grid and packaging table --
   rebuilt on the shared tokens so it matches the homepage.
   ========================================================= */

/* ---------- body: sticky visual panel + scrolling detail ---------- */
.pdp-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}
.pdp-visual {
  position: sticky;
  top: calc(var(--navh, 91px) + 24px);
  align-self: start;
}

/* image and caption share one panel, as they did originally */
.pdp-figure {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  margin: 0;
  min-height: 520px;
  padding: 44px 34px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #241f1a 0%, #171310 65%);
  overflow: hidden;
}
.pdp-figure .shot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.pdp-figure img {
  height: 300px;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.5));
}
.pdp-figure figcaption {
  text-align: center;
}
.pdp-figure .kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.pdp-figure h3 {
  margin: 10px 0 0;
  font-size: 24px;
  font-weight: 400;
}
.pdp-figure figcaption p {
  margin: 10px auto 0;
  max-width: 320px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted-fg);
}

/* stat strip under the panel */
.pdp-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 34px;
  border-radius: var(--r-md);
  background: var(--border);
  overflow: hidden;
}
.pdp-stats div {
  padding: 16px 14px;
  background: var(--card);
}
.pdp-stats .num {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.1;
  color: var(--gold);
}
.pdp-stats .lbl {
  margin-top: 4px;
  font-size: 10.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

/* ---------- content blocks ---------- */
.pdp-block + .pdp-block {
  margin-top: 56px;
}
.pdp-block h2 {
  margin-top: 12px;
  font-size: 30px;
  line-height: 1.15;
}
.pdp-block .lead {
  margin-top: 18px;
}

/* varieties: two columns of hairline-separated panels */
.variety-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--border);
  overflow: hidden;
  /* it is a <ul>: without this the browser's list indent shows up as a bar of
     panel background down the left edge */
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.variety-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: var(--card);
  font-size: 14.5px;
  color: var(--fg);
}
.variety-list .n {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold);
}
.variety-list .cut {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--muted-fg);
}

/* packaging table */
.pack-table {
  width: 100%;
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  border-collapse: collapse;
  overflow: hidden;
}
.pack-table th {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--gold) 5%, var(--card));
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
.pack-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  font-size: 14.5px;
  color: var(--fg);
}
.pack-table tr:last-child td {
  border-bottom: none;
}
.pack-table td.mat {
  color: var(--gold);
  font-weight: 500;
}

@media (max-width: 900px) {
  .pdp-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pdp-visual {
    position: static;
  }
  .pdp-figure {
    min-height: 0;
  }
  .pdp-figure img {
    height: 240px;
  }
  .page-tag {
    max-width: none;
  }
  .pdp-block h2 {
    font-size: 25px;
  }
  .variety-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .pdp-stats {
    grid-template-columns: 1fr;
  }
  .pack-table th,
  .pack-table td {
    padding: 13px 14px;
    font-size: 13.5px;
  }
}

/* =========================================================
   PAGE SECTION: about us
   Only two things the shared classes did not already cover:
   flipping a story row, and the mission pull-quote.
   ========================================================= */

/* image on the right instead of the left */
.story-grid.reverse .story-img-wrap {
  order: 2;
}

/* mission statement, set as a pull quote */
.mission {
  margin: 0;
  padding: 40px 44px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-md);
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--gold) 7%, var(--card)),
    var(--card) 60%
  );
}
.mission p {
  margin: 14px 0 0;
  max-width: 60ch;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.4;
  color: var(--fg);
}

/* the office on a map, framed like every other media panel */





@media (max-width: 900px) {

  .story-grid.reverse .story-img-wrap {
    order: 0;
  }
  .mission {
    padding: 30px 26px;
  }
  .mission p {
    font-size: 21px;
  }
}

/* =========================================================
   PAGE SECTION: events
   A horizontal carousel per trade show, and one lightbox shared
   by all of them. Arrows and the lightbox are built by the
   script, so the markup stays a plain list of figures.
   ========================================================= */

.event + .event {
  margin-top: 72px;
  padding-top: 72px;
  border-top: 1px solid var(--border);
}
.event-head h2 {
  margin-top: 10px;
  font-size: 34px;
  line-height: 1.1;
}
.event-head .lead {
  margin-top: 14px;
  max-width: 62ch;
}

/* ---------- carousel ---------- */
.carousel {
  position: relative;
  margin-top: 32px;
}
.gallery {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.gallery::-webkit-scrollbar {
  display: none;
}
.gallery figure {
  flex: 0 0 auto;
  height: 300px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--card);
  scroll-snap-align: start;
  cursor: zoom-in;
}
/* the natural aspect is kept, so portrait and landscape shots sit in one row */
.gallery img {
  height: 100%;
  width: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 0.68, 0.24, 1);
}
.gallery figure:hover img {
  transform: scale(1.04);
}

.car-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  height: 46px;
  width: 46px;
  margin-top: -23px;
  border-radius: var(--r-pill);
  border: 1px solid color-mix(in srgb, var(--gold) 32%, transparent);
  background: rgba(23, 18, 14, 0.72);
  backdrop-filter: blur(10px);
  color: var(--gold);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
}
.car-nav:hover {
  background: color-mix(in srgb, var(--gold) 16%, rgba(23, 18, 14, 0.8));
  border-color: color-mix(in srgb, var(--gold) 70%, transparent);
}
.car-nav.prev {
  left: -10px;
}
.car-nav.next {
  right: -10px;
}
.car-nav[disabled] {
  opacity: 0;
  pointer-events: none;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  /* minmax(0, 1fr), not 1fr: a plain 1fr has an auto minimum, so a tall photo
     refuses to shrink and pushes the next/prev row off the bottom */
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px;
  background: rgba(12, 9, 7, 0.92);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted-fg);
  font-size: 12.5px;
  letter-spacing: 0.03em;
}
.lb-title {
  color: var(--fg);
}
.lb-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
}
.lb-stage img {
  height: auto;
  width: auto;
  /* Sized against the viewport minus the chrome around it (bar 44 + foot 44
     + two 12px gaps + 18px padding top and bottom, plus room to breathe).
     A percentage needs a definite parent height to resolve against, which a
     grid row does not always give -- this always resolves, so the photo can
     never run under the next/prev row. */
  max-height: calc(100vh - 190px);
  max-width: min(1100px, 92vw);
  object-fit: contain;
  border-radius: var(--r-md);
  transition: opacity 0.2s ease;
}
.lb-stage img.swapping {
  opacity: 0;
}
.lb-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.lb-btn {
  display: grid;
  place-items: center;
  height: 44px;
  width: 44px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: rgba(36, 29, 23, 0.9);
  color: var(--fg);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}
.lb-btn:hover {
  color: var(--gold);
  border-color: color-mix(in srgb, var(--gold) 60%, transparent);
}
.lb-close {
  font-size: 22px;
}
.lb-count {
  min-width: 74px;
  text-align: center;
  color: var(--muted-fg);
  font-size: 13px;
}
body.lb-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .event + .event {
    margin-top: 52px;
    padding-top: 52px;
  }
  .event-head h2 {
    font-size: 27px;
  }
  .gallery figure {
    height: 220px;
  }
  .car-nav {
    height: 40px;
    width: 40px;
    margin-top: -20px;
  }
  .car-nav.prev {
    left: 2px;
  }
  .car-nav.next {
    right: 2px;
  }
}
@media (max-width: 560px) {
  .gallery {
    gap: 10px;
  }
  .gallery figure {
    height: 190px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery {
    scroll-behavior: auto;
  }
  .gallery figure:hover img {
    transform: none;
  }
}

/* =========================================================
   PAGE SECTION: contact
   A photo-backed head, the office shot and details on one side,
   the message form on the other, and a full-bleed map band with
   a floating card. Only the form controls and these three
   wrappers are new -- type, buttons and corners are shared.
   ========================================================= */

/* the three headline facts under the title */
.head-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;
  margin-top: 28px;
}
.head-facts div {
  display: grid;
  gap: 4px;
}
.head-facts .k {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
.head-facts a,
.head-facts div > span:last-child {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--fg);
}
.head-facts a:hover {
  color: var(--gold);
}

/* ---------- details column ---------- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-photo {
  position: relative;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.contact-photo img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
}
/* stand-in until a real photograph of the office is supplied -- same
   treatment as the timeline placeholders */
.contact-photo .ph-box {
  display: grid;
  place-items: center;
  gap: 12px;
  height: 340px;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(227, 168, 56, 0.05) 0 10px,
      transparent 10px 20px
    ),
    var(--card);
}
.contact-photo .ph-box svg {
  width: 44px;
  height: 44px;
  color: var(--gold);
  opacity: 0.5;
}
.contact-photo .ph-box span {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
.contact-photo figcaption {
  padding: 18px 22px;
  border-top: 1px solid var(--border);
  background: var(--card);
}
.contact-photo figcaption p {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: var(--fg);
}

.detail-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.detail-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--fg);
}
.detail-list .k {
  min-width: 110px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
.detail-list a {
  color: var(--fg);
  transition: color 0.25s ease;
}
.detail-list a:hover {
  color: var(--gold);
}

/* ---------- form ---------- */
.form-panel {
  padding: 34px 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background:
    radial-gradient(
      ellipse 120% 80% at 100% 0%,
      color-mix(in srgb, var(--gold) 7%, transparent),
      transparent 60%
    ),
    var(--card);
}
.form-panel h2 {
  margin-top: 10px;
  font-size: 30px;
  line-height: 1.15;
}
.cform {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}
.cform-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.cform label {
  display: grid;
  gap: 8px;
}
.cform label span {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted-fg);
}
.cform label b {
  color: var(--gold);
  font-weight: 400;
}
.cform input,
.cform textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: rgba(23, 18, 14, 0.6);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}
.cform textarea {
  resize: vertical;
  min-height: 140px;
}
.cform input:focus,
.cform textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--gold) 65%, transparent);
  background: rgba(23, 18, 14, 0.85);
}
.cform input:user-invalid,
.cform textarea:user-invalid {
  border-color: color-mix(in srgb, #d1452f 70%, transparent);
}
.cform .btn {
  justify-self: start;
  border: 0;
  cursor: pointer;
}
/* careers: the form column stretches to the photo column so both end on the
   same line -- the message box absorbs whatever the difference happens to be,
   which keeps them level at any width instead of at one hand-tuned size */
.split-even .form-panel {
  align-self: stretch;
  display: grid;
  grid-template-rows: auto auto 1fr;
}
.split-even .cform {
  grid-template-rows: auto auto 1fr auto;
}
.split-even .cform label:has(textarea) {
  grid-template-rows: auto 1fr;
}
.split-even .cform textarea {
  height: 100%;
  /* the shared 140px floor is taller than this column needs; lower it so
     there is room to stretch up to the photo column instead of past it */
  min-height: 104px;
}
.cform-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted-fg);
}
.cform-note.sent {
  color: var(--gold);
}

@media (max-width: 900px) {
  .contact-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .form-panel {
    padding: 26px 22px;
  }
  .form-panel h2 {
    font-size: 25px;
  }
  .cform-row {
    grid-template-columns: 1fr;
  }
  .contact-photo img,
  .contact-photo .ph-box {
    height: 240px;
  }
  .head-facts {
    gap: 14px 28px;
  }
  /* stacked now, so there is no column to match -- give the message box its
     normal height back */
  .split-even .cform textarea {
    min-height: 140px;
  }
  /* stack the label above its value: at this width some rows fit beside the
     label and some wrapped under it, so the column edge kept moving */
  .detail-list li {
    display: grid;
    gap: 4px;
    padding: 13px 2px;
  }
  .detail-list .k {
    min-width: 0;
  }
}

/* ---------- GLOBAL PRESENCE MAP ---------- */
.gmap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: stretch;
  padding: 0 0 0 40px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg, 20px);
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(227, 168, 56, 0.06), transparent 70%),
    var(--card);
}
.gmap-copy .h-lg {
  font-size: clamp(28px, 3vw, 40px);
}
.gmap-copy p.muted {
  margin-top: 18px;
  line-height: 1.7;
}
.gmap-hint {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.gmap-copy {
  align-self: center;
  padding: 44px 0;
}
/* the globe runs to the card's top, right and bottom edges */
.gmap-stage {
  position: relative;
  width: 100%;
  /* same shape as the globe's viewBox, so both the left rim and Pakistan
     stay in frame at every width */
  aspect-ratio: 600 / 480;
  align-self: center;
}
.globe-svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.globe-svg.is-dragging {
  cursor: grabbing;
}
.globe-svg .g-sphere {
  stroke: rgba(227, 168, 56, 0.55);
  stroke-width: 1;
}
.globe-svg .g-grat {
  fill: none;
  stroke: rgba(227, 168, 56, 0.08);
  stroke-width: 0.6;
}
.globe-svg .c {
  fill: #2c2621;
  stroke: rgba(227, 168, 56, 0.45);
  stroke-width: 0.5;
  stroke-linejoin: round;
  transition: fill 0.3s ease, stroke 0.3s ease;
}
.globe-svg .c.mk {
  fill: #3a3129;
  stroke: rgba(227, 168, 56, 0.8);
}
.globe-svg .c.hq {
  fill: rgba(227, 168, 56, 0.35);
  stroke: var(--gold);
}
.globe-svg .c.mk.lit,
.globe-svg .c.mk:hover {
  fill: rgba(227, 168, 56, 0.28);
  stroke: var(--gold);
}
.globe-svg .pin {
  cursor: pointer;
  outline: none;
}
/* flags held at the edge for countries out of view */
.globe-svg .pin.is-edge .badge {
  opacity: 0.72;
}
.globe-svg .pin.is-edge .pulse {
  display: none;
}
.globe-svg .pin.is-edge:hover .badge,
.globe-svg .pin.is-edge:focus-visible .badge {
  opacity: 1;
}
.globe-svg .pin .hit {
  fill: transparent;
}
.globe-svg .pin .dot {
  fill: #17120e;
  stroke: rgba(227, 168, 56, 0.85);
  stroke-width: 1.6;
}
.globe-svg .pin .badge {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}
.globe-svg .pin .pulse {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: gmap-pulse 3s ease-out infinite;
}
.globe-svg .pin.hq .dot {
  stroke: var(--gold);
  stroke-width: 2;
}
.globe-svg .pin:hover .badge,
.globe-svg .pin:focus-visible .badge,
.globe-svg .pin.on .badge {
  transform: scale(1.18);
}
.globe-svg .pin:hover .dot,
.globe-svg .pin:focus-visible .dot,
.globe-svg .pin.on .dot {
  stroke: var(--gold);
}
@keyframes gmap-pulse {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}
.gmap-tip {
  position: absolute;
  z-index: 2;
  translate: -50% calc(-100% - 14px);
  padding: 9px 14px;
  border: 1px solid rgba(227, 168, 56, 0.35);
  border-radius: var(--r-sm);
  background: rgba(23, 18, 14, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  pointer-events: none;
}
.gmap-tip b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}
.gmap-tip span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--gold);
}
@media (max-width: 900px) {
  .gmap {
    grid-template-columns: 1fr;
    padding: 0;
    text-align: center;
  }
  .gmap-copy {
    padding: 32px 20px 0;
  }

}
@media (prefers-reduced-motion: reduce) {
  .globe-svg .pin .pulse { animation: none; }
}

/* ---------- LIFE AT ASHRAFI (careers) ---------- */
.life {
  padding-bottom: 0;
}
.life-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg, 20px);
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(227, 168, 56, 0.12), transparent 65%),
    linear-gradient(135deg, #2a1f16, #1f1812);
}
.life-photo {
  margin: 0;
  min-height: 320px;
}
.life-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.life-copy {
  padding: 44px 44px 40px;
}
.life-copy .h-lg {
  font-size: clamp(28px, 3vw, 40px);
}
.life-copy p {
  margin: 18px 0 26px;
  line-height: 1.75;
}
.why-join {
  margin-top: 40px;
}
.why-join ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.why-join li {
  padding: 22px 22px 22px 24px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-sm);
  background: var(--card);
}
.why-join b {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--fg);
}
.why-join li span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-fg);
}
@media (max-width: 900px) {
  .life-card { grid-template-columns: 1fr; }
  .life-photo { min-height: 220px; }
  .life-copy { padding: 28px 22px; }
  .why-join ul { grid-template-columns: 1fr; }
}

/* ---------- MAKING PROCESS VIDEO ---------- */
/* video on one side, copy on the other */
.pv-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
}
.pv-copy p.muted {
  margin: 18px 0 0;
  line-height: 1.75;
}
.pv-steps {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.pv-steps li {
  padding-left: 18px;
  position: relative;
  color: var(--muted-fg);
  font-size: 15px;
}
.pv-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.pv-steps b {
  color: var(--fg);
  font-weight: 600;
}
@media (max-width: 900px) {
  .pv-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
.pv-frame {
  position: relative;
  width: 100%;
  max-height: calc(100svh - var(--navh, 91px) - 48px);
  overflow: hidden;
  aspect-ratio: 1138 / 640;
  border: 1px solid var(--border);
  border-radius: var(--r-lg, 20px);
  background: #17120e;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.pv-video {
  display: block;
  width: 100%;
  height: 100%;
  /* frame and video share the 16:9 ratio, so cover fills edge to edge
     without cropping anything meaningful */
  object-fit: cover;
}
.pv-controls {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  gap: 10px;
}
.pv-btn {
  display: grid;
  place-items: center;
  height: 44px;
  width: 44px;
  padding: 0;
  border: 1px solid rgba(245, 240, 230, 0.25);
  border-radius: 50%;
  background: rgba(23, 18, 14, 0.6);
  backdrop-filter: blur(8px);
  color: var(--cream, #f5f0e6);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.pv-btn:hover,
.pv-btn:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}
.pv-btn svg {
  height: 18px;
  width: 18px;
}
.pv-btn .i-play,
.pv-btn .i-sound,
.pv-frame.paused .i-pause,
.pv-frame.sound .i-muted {
  display: none;
}
.pv-frame.paused .i-play,
.pv-frame.sound .i-sound {
  display: block;
}
@media (max-width: 560px) {
  .pv-controls { left: 12px; bottom: 12px; }
  .pv-btn { height: 38px; width: 38px; }
}
