/* =========================================================
   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 1.875rem 5rem -1.25rem rgba(191, 58, 47, 0.45);
  --shadow-soft: 0 1.25rem 3.125rem -1.25rem 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(76rem, 88vw, 140rem);
  --page-gutter: clamp(1.125rem, 2.5vw, 4.5rem);

  /* corners: one scale for the whole site -- change it here, not per card */
  --r-sm: 0.625rem;
  /* small: nav items, cells, chips */
  --r-md: 0.875rem;
  /* default: cards, panels, media, avatars */
  --r-lg: 1.125rem;
  /* large: feature panels */
  --r-pill: 62.4375rem;
  /* 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;
  height: 100%;
  max-width: 100%;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--page-gutter);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  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: 0.5rem;
  border-radius: var(--r-pill);
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.btn svg {
  width: 1rem;
  height: 1rem;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}

.btn-primary:hover {
  transform: translateY(-0.0625rem);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  transform: translateY(-0.0625rem);
}

.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(1.125rem) saturate(160%);
  backdrop-filter: blur(1.125rem) saturate(160%);
  border-bottom: 0.0625rem solid rgba(245, 240, 230, 0.08);
  box-shadow:
    inset 0 0.0625rem 0 rgba(255, 255, 255, 0.05),
    0 0.5rem 1.5rem rgba(0, 0, 0, 0.25);
}

section[id],
[id] {
  scroll-margin-top: 2.5rem;
}

.nav nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--page-gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.logo {
  height: 3.625rem;
  width: auto;
  display: block;
}

.nav .logo {
  height: 4.75rem;
}

.nav .btn-gold {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.625rem;
  font-size: 1rem;
  color: var(--muted-fg);
}

/* ---------- NAV DROPDOWN ---------- */
.nav-links {
  position: relative;
}

.menu {
  position: relative;
}

.menu>.menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.menu>.menu-trigger .caret {
  font-size: 0.5625rem;
  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% + 0.875rem);
  left: 0;
  z-index: 80;
  min-width: 14.5rem;
  padding: 0.5rem;
  border-radius: var(--r-md);
  border: 0.0625rem solid rgba(227, 168, 56, 0.22);
  background: #1c1611;
  box-shadow: 0 1.5rem 3.75rem rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(0.625rem);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.375rem);
  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: -0.875rem;
  height: 0.875rem;
}

.drop a,
.drop .sub-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  font: inherit;
  font-size: 0.84375rem;
  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: -0.5rem;
  left: calc(100% + 0.375rem);
  z-index: 90;
}

.sub>.drop::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -0.5rem;
  width: 0.5rem;
}

.sub.flip>.drop {
  left: auto;
  right: calc(100% + 0.375rem);
}

.chev {
  font-size: 0.625rem;
  opacity: 0.6;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.3125rem;
  height: 2.5rem;
  width: 2.5rem;
  padding: 0 0.5625rem;
  border: 0.0625rem solid rgba(227, 168, 56, 0.35);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
}

.nav-burger .bar {
  display: block;
  height: 0.125rem;
  width: 100%;
  border-radius: 0.125rem;
  background: var(--gold);
  transition:
    transform 0.3s ease,
    opacity 0.2s ease;
}

.nav.open .nav-burger .bar:nth-child(1) {
  transform: translateY(0.4375rem) rotate(45deg);
}

.nav.open .nav-burger .bar:nth-child(2) {
  opacity: 0;
}

.nav.open .nav-burger .bar:nth-child(3) {
  transform: translateY(-0.4375rem) rotate(-45deg);
}

.nav-links a:hover {
  color: var(--fg);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--r-pill);
  border: 0.0625rem solid rgba(227, 168, 56, 0.4);
  background: rgba(227, 168, 56, 0.1);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.pill .dot {
  height: 0.375rem;
  width: 0.375rem;
  border-radius: var(--r-pill);
  background: var(--gold);
}

.vh {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(0.625rem, 2.4vh, 1.875rem);
  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: 5rem 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: 3rem;
  line-height: 1.05;
  text-wrap: balance;
  margin-top: 0.625rem;
}

/* ---------- ABOUT / HERITAGE ---------- */
.story-grid {
  display: grid;
  gap: 4rem;
  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: -1.5rem;
  top: -1.5rem;
  height: 7.5rem;
  width: 7.5rem;
  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: 1.875rem;
  line-height: 1;
}

.stamp small {
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.25rem;
  font-weight: 600;
}

.flist {
  list-style: none;
  margin: 2rem 0 2.125rem;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.flist li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.flist .ic {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-md);
  background: var(--card);
  border: 0.0625rem solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flist .ic svg {
  width: 1.3125rem;
  height: 1.3125rem;
  color: var(--gold);
}

.flist b {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--fg);
  margin-bottom: 0.125rem;
}

.flist .k {
  display: block;
  margin-bottom: 0.1875rem;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.flist .d {
  color: var(--muted-fg);
  font-size: 0.875rem;
}

/* ---------- 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: 1.5rem;
}

.prod-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.prod {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--card);
  border: 0.0625rem solid var(--border);
}

.prod img {
  display: block;
  width: 100%;
  height: auto;
}

.prod .cap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.375rem 1.5rem 1.625rem;
}

.prod .tag {
  display: inline-block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  background: rgba(23, 18, 14, 0.5);
  border: 0.0625rem solid rgba(227, 168, 56, 0.3);
  padding: 0.3125rem 0.75rem;
  border-radius: var(--r-pill);
}

.prod h3 {
  padding-top: 0.875rem;
  font-family: var(--font-display);
  font-size: 1.625rem;
  color: var(--fg);
}

.prod .note {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
}

/* ---------- GALLERY (collage) ---------- */
/* Collections -- uniform 4-up grid of product ranges */
.collections {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.125rem;
}

.coll {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 0.0625rem 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: 5.625rem 1.5rem 1.5rem;
  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: 1.5rem;
  line-height: 1.2;
  color: var(--fg);
}

.coll .d {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted-fg);
}

.coll .go {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  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: 0.875rem;
  opacity: 1;
}

.coll .cap {
  z-index: 1;
}

@media (min-width: 961px) {
  .leader {
    padding: 2.125rem 1.125rem;
  }

  .leader .avatar {
    height: 9.375rem;
    width: 9.375rem;
  }
}

@media (max-width: 960px) {
  .collections {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {




  .hero--reference-image .hero-inner.has-slider {
    aspect-ratio: 2176 / 1598 !important;
  }

  .collections {
    grid-template-columns: 1fr;
  }

  .coll {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- INVITE (careers + partner) ---------- */
.invite-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.icard {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--card);
  border: 0.0625rem solid var(--border);
  color: var(--fg);
}

.icard img {
  display: block;
  width: 100%;
  aspect-ratio: 1920/699;
  object-fit: cover;
}

.icard .body {
  padding: 2rem 2.125rem 3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.icard .k {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.icard h3 {
  margin-top: 0.75rem;
  font-size: 2rem;
}

.icard p {
  margin-top: 0.75rem;
  color: var(--muted-fg);
  font-size: 0.9375rem;
}

.icard a.btn {
  margin-top: 2rem;
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.ccard {
  background: var(--card);
  border: 0.0625rem solid var(--border);
  border-radius: var(--r-sm);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ccard .ic {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--r-md);
  background: rgba(191, 58, 47, 0.15);
  border: 0.0625rem solid rgba(191, 58, 47, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ccard .ic svg {
  width: 1.4375rem;
  height: 1.4375rem;
  color: var(--gold);
}

.ccard h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  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: 1.25rem;
  color: var(--fg);
  line-height: 1.35;
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 0.0625rem solid rgba(58, 47, 36, 0.6);
  padding: 3.5rem 0 1.75rem;
}

.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: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 0.0625rem solid rgba(58, 47, 36, 0.6);
}

.foot-brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
  max-width: 21.25rem;
  color: var(--muted-fg);
}

.foot-col h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 0 0 1.125rem;
  font-weight: 600;
}

.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.foot-col-wide ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.75rem;
}

.foot-col a {
  font-size: 0.875rem;
  color: var(--muted-fg);
}

.foot-col a:hover {
  color: var(--gold);
}

.foot-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted-fg);
  flex-wrap: wrap;
  gap: 0.625rem;
}

.logo-sm {
  height: 5.75rem;
  width: auto;
  display: block;
}

/* ---------- ADDED: brands / heritage / leadership / showcase ---------- */
.section-intro {
  max-width: 51.25rem;
  margin: 0 auto 2.875rem;
  text-align: center;
  color: var(--muted-fg);
  font-size: 1rem;
  line-height: 1.7;
}

.infra {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.0625rem;
  background: var(--border);
  border: 0.0625rem solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.infra .cell {
  background: var(--card);
  padding: 1.75rem 1.125rem;
  text-align: center;
}

.infra .n {
  font-family: var(--font-display);
  font-size: 2.375rem;
  color: var(--gold);
  line-height: 1;
}

.infra .l {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  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: 3.125rem;
  isolation: isolate;
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 32.5rem;
  padding: 2.5rem 2.75rem 2.25rem;
  border: 0.0625rem 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: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.brand-panel h3 {
  margin-top: 1.125rem;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.2vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  max-width: 12ch;
}

.brand-panel .tagline {
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.brand-panel .desc {
  margin: 1.5rem 0 1.75rem;
  max-width: 34ch;
  color: var(--muted-fg);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.brand-panel .pic {
  margin-bottom: 1.625rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 11.25rem;
}

.brand-panel .pic img {
  width: 100%;
  max-height: 18.5rem;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1.125rem 1.875rem 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(-0.375rem) scale(1.02);
}

.brand-panel .meta {
  margin-top: auto;
  padding-top: 1.125rem;
  border-top: 0.0625rem solid var(--border);
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.375rem;
  font-size: 0.75rem;
  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: 42.5rem;
  margin: 0 auto 3.25rem;
  text-align: center;
}

.certificates-head h2 {
  margin-top: 0.625rem;
}

.certificates-head p {
  margin-top: 1rem;
  color: var(--muted-fg);
  font-size: 1rem;
  line-height: 1.7;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.875rem;
  max-width: 52.375rem;
  margin: 0 auto;
}

.certificate {
  margin: 0;
  text-align: center;
}

.certificate-placeholder {
  width: min(100%, 8rem);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 0.125rem 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 0.75rem,
      transparent 0.75rem 1.5rem),
    var(--card);
  box-shadow:
    0 0 0 0.375rem rgba(227, 168, 56, 0.07),
    0 1.5rem 3.125rem -1.375rem 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: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.62;
}

.certificate:hover .certificate-placeholder {
  transform: translateY(-0.3125rem);
  border-color: var(--gold-200);
}

@media (max-width: 720px) {
  .certificates-grid {
    grid-template-columns: repeat(2, 7.625rem);
    justify-content: center;
    gap: 1.375rem 1.125rem;
    max-width: 17.5rem;
    padding: 0.5rem 0 1.5rem;
  }

  .certificate-placeholder {
    width: 7.625rem;
  }

  .certificate:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .certificates-grid {
    gap: 1.25rem 0.875rem;
  }
}

.leaders-feature {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.375rem;
  margin-bottom: 1.375rem;
}

.leader-hero {
  position: relative;
  background: var(--card);
  border: 0.0625rem solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.875rem 0.875rem 1.875rem;
  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: 0.1875rem;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.leader-hero:hover,
.leader:hover {
  transform: translateY(-0.25rem);
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
}

.leader-hero .avatar {
  height: 11.875rem;
  width: 11.875rem;
  font-size: 1.875rem;
  flex: none;
  margin: 1.125rem auto 1.375rem;
}

.leader-hero h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--fg);
  margin: 0.375rem 0 0;
}

.leader-hero .role {
  color: var(--red);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.leader-hero p {
  padding: 0 0.75rem;
}

/* 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: 1rem;
}

.leader {
  flex: 0 1 calc((100% - 4rem) / 5);
  background: var(--card);
  border: 0.0625rem solid var(--border);
  border-radius: var(--r-sm);
  padding: 1.625rem 1.125rem;
  text-align: center;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.avatar {
  height: 6.25rem;
  width: 6.25rem;
  border-radius: var(--r-md);
  margin: 0 auto;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  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: 0.0625rem solid color-mix(in srgb, var(--gold) 45%, transparent);
}

.leader h4 {
  margin: 1rem 0 0;
  font-size: 1.125rem;
  color: var(--fg);
}

.leader .role {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (max-width: 960px) {
  .infra {
    grid-template-columns: repeat(2, 1fr);
  }

  .brands-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .brand-panel {
    min-height: 0;
    padding: 2rem 1.75rem 1.75rem;
  }

  .leaders-feature {
    grid-template-columns: 1fr;
    max-width: 26.25rem;
    margin-inline: auto;
  }

  .leader {
    flex-basis: calc((100% - 1rem) / 2);
  }
}

@media (max-width: 600px) {
  .infra .cell {
    padding: 1.5rem 0.75rem;
  }

  /* team stays two across on phones, with tighter cards */
  .leaders-grid {
    gap: 0.75rem;
  }

  .leader {
    flex-basis: calc((100% - 0.75rem) / 2);
    padding: 1.25rem 0.625rem;
  }

  .leader .avatar {
    height: 5.25rem;
    width: 5.25rem;
  }

  .leader h4 {
    font-size: 0.875rem;
  }

  .leader .role {
    font-size: 0.625rem;
    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(1.625rem);
  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(-0.625rem);
  }
}

.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: 1100px) {
  .h-lg {
    font-size: 2.25rem;
  }

  .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: 2.625rem;
    width: 2.625rem;
    border-color: rgba(227, 168, 56, 0.5);
    background: rgba(227, 168, 56, 0.06);
  }

  .nav nav {
    gap: 0.625rem;
    padding: 0.625rem 1rem;
  }

  .nav .brand {
    min-width: 0;
    margin-right: auto;
    gap: 0.5rem;
  }

  .nav .logo {
    height: 4.5rem;
    flex: none;
  }

  /* the mark carries the wordmark, so it has to stay readable once the
     brand text beside it is gone */
  .logo-sm {
    height: 6rem;
  }

  .nav .btn-gold {
    order: 2;
    flex: none;
    padding: 0.625rem 0.9375rem;
    font-size: 0.6875rem;
    white-space: nowrap;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.875rem 1rem 1.125rem;
    background: rgba(28, 22, 17, 0.97);
    border-top: 0.0625rem solid rgba(227, 168, 56, 0.18);
    border-bottom: 0.0625rem solid rgba(227, 168, 56, 0.22);
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    box-shadow: 0 1.75rem 3.75rem rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(1.125rem);
    max-height: calc(100dvh - var(--navh, 4.5rem));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav.open .nav-links {
    display: flex;
  }

  .nav-links>a,
  .menu>.menu-trigger {
    width: 100%;
    min-height: 2.875rem;
    padding: 0.8125rem 0.875rem;
    border-radius: var(--r-sm);
    text-align: left;
    color: rgba(245, 240, 230, 0.88);
    font-size: 0.875rem;
    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: 0.25rem 0 0.375rem;
    padding: 0.25rem 0 0.25rem 0.75rem;
    border: 0;
    border-left: 0.0625rem 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: 2.625rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--r-sm);
    font-size: 0.8125rem;
    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: 1.5rem;
    height: 1.5rem;
    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: 0.4375rem;
    padding-inline: 0.75rem;
  }

  .nav .logo {
    height: 4rem;
  }

  .nav .btn-gold {
    padding: 0.5625rem 0.75rem;
    font-size: 0.625rem;
  }

  .nav-burger {
    width: 2.5rem;
    height: 2.5rem;
  }

  .nav-links {
    padding-inline: 0.75rem;
  }
}

@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: 1.75rem 0 0;
  max-width: 60ch;
  font-size: 1rem;
  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: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.cta-row.center {
  justify-content: center;
}

/* card grids: the same gap and breakpoint everywhere */
.grid-2,
.grid-3 {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.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: 2rem 0 0;
  border: 0.0625rem solid var(--border);
  border-radius: var(--r-md);
  background: var(--card);
  overflow: hidden;
}

.map-panel iframe {
  display: block;
  width: 100%;
  height: 26.25rem;
  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: 0.625rem;
  padding: 0.875rem 1.25rem;
  border-top: 0.0625rem solid var(--border);
  font-size: 0.84375rem;
  color: var(--muted-fg);
}

.map-panel figcaption a {
  color: var(--gold);
}

@media (max-width: 900px) {
  .map-panel iframe {
    height: 18.75rem;
  }
}

/* ---------- 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: 2rem 0 2.75rem;
  border-bottom: 0.0625rem solid var(--border);
  background: radial-gradient(ellipse 56.25rem 18.75rem at 15% 0%,
      rgba(227, 168, 56, 0.1),
      transparent 60%);
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.78125rem;
  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: 1.125rem;
}

.page-head h1 em {
  font-style: italic;
  color: var(--gold-200);
  font-weight: 600;
}

.page-tag {
  margin: 0.875rem 0 0;
  max-width: 80%;
  font-size: 1rem;
  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: 1;
  object-position: center bottom;
  transform: none;
  animation: none;
}

.hero:has(.has-slider) .hero-media::after {
  content: none;
}

@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, 51.25rem);
  padding: 7.5rem 1.5rem 6.25rem;
  max-width: var(--max);
  margin: 0 auto;
  text-align: left;
}

.hero-copy {
  max-width: 35rem;
  margin: 0;
}

.hero h1 {
  margin-top: 1.75rem;
  font-size: 4.5rem;
  line-height: 1.02;
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-200);
  font-weight: 600;
}

.hero p.lead {
  margin: 1.75rem 0 0;
  max-width: 33.75rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #ffffff;
}

.hero-cta {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

/* 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(0.5rem, 2vh, 1.75rem);
  text-align: center;
  width: 100%;
  /* the sticky nav sits in flow above the hero, so discount its height */
  min-height: calc(100vh - var(--navh, 5.6875rem));
  min-height: calc(100svh - var(--navh, 5.6875rem));
  padding: clamp(1rem, 4vh, 3rem) 1.5rem clamp(1.5rem, 5vh, 3.5rem);
  /* 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(1.25rem, 4.6vw, 4.25rem);
}

/* 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, 35rem);
}

/* 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, 32.5rem);
  width: min(62vh, 32.5rem);
  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: 3.75rem;
  width: min(46vh, 23.75rem);
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(ellipse,
      color-mix(in srgb, #fff3d6 22%, transparent),
      transparent 70%);
  filter: blur(0.25rem);
}

/* 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: 0.3125rem;
  width: 1.0625rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #fffaf0, #eadfc6);
  box-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.35);
}

.vh-bit.daal {
  height: 0.5625rem;
  width: 0.5625rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe08a, #e0a526 70%);
  box-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.35);
}

.vh-bit.frost {
  height: 0.4375rem;
  width: 0.4375rem;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 30%, #cfeaff 60%, transparent 72%);
  box-shadow: 0 0 0.5rem rgba(190, 228, 255, 0.8);
}

.vh-bit.nimko {
  height: 0.5rem;
  width: 0.75rem;
  border-radius: 40% 60% 45% 55%;
  background: linear-gradient(135deg, #f0b64a, #b36d1c);
  box-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.35);
}

/* garlic clove: a cream teardrop with a faint papery sheen */
.vh-bit.garlic {
  height: 0.9375rem;
  width: 0.6875rem;
  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 0.0625rem 0.125rem rgba(0, 0, 0, 0.35);
}

/* ginger slice: a pale gold disc with a tan skin rim */
.vh-bit.ginger {
  height: 0.8125rem;
  width: 0.9375rem;
  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 0.0625rem 0.125rem 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;
  /* one box for every pack, with the artwork sitting on a shared ground line */
  aspect-ratio: 640 / 760;
  object-fit: contain;
  object-position: 50% 100%;
  pointer-events: none;
}

/* Crop away the empty margin in each file so Rice, Flour, Frozen and
   Nimco fill that same box instead of looking shorter or narrower. */
.vh-item[data-word="Traditional Everyday Rice"] img { object-view-box: inset(4.17% 18.89% 1.11% 18.89%); }
.vh-item[data-word="1121 Basmati Sella Rice"] img { object-view-box: inset(3.24% 18.43% 2.69% 20.56%); }
.vh-item[data-word="1121 Basmati Steam Rice"] img { object-view-box: inset(2.31% 19.26% 0.46% 19.54%); }
.vh-item[data-word="Fresh Chakki Atta"] img { object-view-box: inset(1.67% 17.78% 2.22% 17.78%); }
.vh-item[data-word="Cornflour"] img { object-view-box: inset(11.94% 22.58% 11.12% 24.48%); }
.vh-item[data-word="Plain Paratha"] img { object-view-box: inset(6.99% 4.72% 5.63% 4.63%); }
.vh-item[data-word="Whole Wheat Paratha"] img { object-view-box: inset(3.35% 3.92% 4.10% 4.10%); }
.vh-item[data-word="Home Style Paratha"] img { object-view-box: inset(4.76% 4.03% 3.90% 3.94%); }
.vh-item[data-word="Chewra"] img { object-view-box: inset(1.55% 3.01% 1.28% 3.67%); }
.vh-item[data-word="Chilli Chips"] img { object-view-box: inset(2.30% 7.14% 1.63% 3.22%); }
.vh-item[data-word="Dahi Boondi"] img { object-view-box: inset(2.15% 3.98% 1.63% 3.88%); }

.vh-item.is-front {
  cursor: default;
}

.vh-item.is-front img {
  filter:
    drop-shadow(0 0 1.375rem color-mix(in srgb, #fff3d6 22%, transparent)) drop-shadow(0 1.875rem 2.75rem 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: 3.25rem;
  width: 3.25rem;
  padding: 0;
  border: 0.0625rem 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(0.375rem);
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    scale 0.25s ease;
}

.vh-arrow svg {
  height: 1.375rem;
  width: 1.375rem;
}

.vh-arrow.prev {
  left: clamp(0.375rem, 3vw, 2.5rem);
}

.vh-arrow.next {
  right: clamp(0.375rem, 3vw, 2.5rem);
}

.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: 0.625rem;
  padding-bottom: 0.375rem;
}

.vh-dot {
  height: 0.5rem;
  width: 0.5rem;
  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: 1.875rem;
  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, 26.25rem);
  }

  .vh-arrow {
    height: 2.625rem;
    width: 2.625rem;
  }

  .vh-arrow svg {
    height: 1.125rem;
    width: 1.125rem;
  }
}

/* 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: 1.125rem;
    row-gap: 1.125rem;
  }

  .vh-stage {
    grid-area: stage;
    width: 100%;
    height: min(52svh, 26.25rem);
  }

  /* hero + range strip fill exactly one screen under the nav */
  .hero-inner.has-slider {
    min-height: calc(100vh - var(--navh, 4.5rem) - 4rem);
    min-height: calc(100svh - var(--navh, 4.5rem) - 4rem);
    padding-top: 1.5rem;
    padding-bottom: 1.75rem;
  }

  .vh-arrow {
    position: static;
    translate: none;
    height: 3.375rem;
    width: 3.375rem;
  }

  .vh-arrow svg {
    height: 1.375rem;
    width: 1.375rem;
  }

  .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: 47.5rem;
  margin: 0 auto 4rem;
}

.tl-head h2 {
  margin-top: 0.625rem;
}

.tl-head .intro {
  margin-top: 1.125rem;
  color: var(--muted-fg);
  font-size: 1rem;
  line-height: 1.75;
}

.timeline {
  position: relative;
  max-width: 62.5rem;
  margin: 0 auto;
  padding: 0.625rem 0 2.5rem;
}

/* 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 0.5rem rgba(227, 168, 56, 0.45));
}

/* the dot riding the tip of the drawn curve */
.tl-marker {
  position: absolute;
  top: 0;
  left: 0;
  height: 0.875rem;
  width: 0.875rem;
  margin: -0.4375rem 0 0 -0.4375rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow:
    0 0 0 0.3125rem rgba(227, 168, 56, 0.16),
    0 0 0.875rem 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 9.375rem;
  margin-bottom: 4.5rem;
}

.tl-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.tl-item:nth-child(even) {
  left: 50%;
  text-align: left;
  margin-top: 5.625rem;
  /* stagger the two columns like the reference */
}

.tl-circle {
  width: 220px;
  height: 220px;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 0.125rem solid var(--gold);
  box-shadow:
    0 0 0 0.375rem rgba(227, 168, 56, 0.08),
    0 1.5rem 3.125rem -1.125rem 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 0.625rem,
      transparent 0.625rem 1.25rem),
    var(--card);
}

.tl-circle.is-placeholder svg {
  width: 2.875rem;
  height: 2.875rem;
  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 220px medallion */
  height: 0.125rem;
  width: 4.875rem;
  /* 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;
}

section#certificates {
    padding-top: 0px;
}

.tl-item.in .tl-stub {
  opacity: 1;
}

.tl-item.in .tl-stub::before {
  transform: scaleX(1);
}

.tl-stub .yr {
  position: absolute;
  bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  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: 0.375rem;
}

.tl-item:nth-child(even) .tl-stub .yr {
  right: 0.375rem;
}

/* clicking a milestone expands sub-events; the line grows with it */
.tl-item:has(.tl-toggle) .tl-circle {
  cursor: pointer;
}

.tl-toggle {
  margin-top: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 0.875rem;
  border: 0.0625rem solid rgba(227, 168, 56, 0.35);
  border-radius: var(--r-pill);
  background: transparent;
  font: inherit;
  font-size: 0.6875rem;
  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: 0.5625rem;
  height: 0.5625rem;
  flex: none;
}

.tl-toggle .ico::before,
.tl-toggle .ico::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: currentColor;
}

.tl-toggle .ico::before {
  width: 0.5625rem;
  height: 0.09375rem;
}

.tl-toggle .ico::after {
  width: 0.09375rem;
  height: 0.5625rem;
  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: -8.75rem;
}

.tl-item:nth-child(even) .tl-detail {
  margin-right: -8.75rem;
}

.tl-events {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.tl-event {
  padding: 0.8125rem 0.875rem;
  border: 0.0625rem solid var(--border);
  border-top: 0.125rem 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: 0.78125rem;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  color: var(--muted-fg);
}

.tl-item h4 {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  line-height: 1.35;
}

.tl-item p {
  margin: 0.375rem 0 0;
  font-size: 0.875rem;
  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 9.25rem;
    margin-top: 0;
    margin-bottom: 2.5rem;
  }

  .tl-item:nth-child(odd) .tl-circle,
  .tl-item:nth-child(even) .tl-circle {
    margin: 0;
    width: 6.875rem;
    height: 6.875rem;
  }

  .tl-circle.is-placeholder svg {
    width: 1.875rem;
    height: 1.875rem;
  }

  .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: 2.125rem;
    right: auto;
    top: 3.4375rem;
    /* centre of the 6.875rem 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: 0.75rem;
    right: auto;
    bottom: 0.4375rem;
    font-size: 0.9375rem;
  }

  .tl-item h4 {
    margin-top: 0.875rem;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
  }

  .tl-item p {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
  }

  .tl-toggle {
    margin-top: 0.625rem;
    padding: 0.375rem 0.6875rem;
    font-size: 0.625rem;
    letter-spacing: 0.12em;
  }

  .tl-events {
    margin-top: 0.75rem;
    gap: 0.625rem;
  }

  .tl-event {
    padding: 0.625rem 0.6875rem;
  }

  .tl-item .tl-event p {
    font-size: 0.71875rem;
  }
}

@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(-2.875rem);
}

.js-motion .tl-item:nth-child(even).reveal {
  transform: translateX(2.875rem);
}

.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(-1.75rem);
  }

  .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: 0.5rem 2.5rem;
  border-top: 0.0625rem solid rgba(58, 47, 36, 0.6);
  border-bottom: 0.0625rem solid rgba(58, 47, 36, 0.6);
  background: rgba(36, 29, 23, 0.5);
  padding: 1rem 1.5rem;
}

.range-tab {
  position: relative;
  padding: 0.25rem 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: rgba(245, 240, 230, 0.45);
  transition: color 0.3s ease;
}

.range-tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.125rem;
  height: 0.125rem;
  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: 1.0625rem;
    white-space: nowrap;
  }

  .range-strip {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 1.625rem;
    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% - 2.5rem);
    -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: 3rem;
  }
}

/* =========================================================
   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: 4.375rem;
  align-items: start;
}

.product-index-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
}

.product-index-item:nth-last-child(4) {
  grid-column-start: 2;
}

.product-index-item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 0rem 1rem;
  border: 0.11rem solid #835936;
  border-radius: var(--r-md);
  /* background: #835936; */
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--home-cream);
  transition: border-color 0.2s ease;
}

.product-index-item::before {
  position: absolute;
  z-index: 0;
  top: 4%;
  left: 50%;
  width: 96%;
  height: 68%;
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.product-index-item img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1rem 0.875rem rgba(0, 0, 0, 0.56));
  transition: transform 0.2s ease;
}

.product-item-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--home-cream);
  text-align: center;
}

.product-item-text::after {
  width: 100%;
  height: 0.0925rem;
  background: linear-gradient(90deg, transparent, #f8de7a, transparent);
  content: "";
}

.product-index-item:hover,
.product-index-item:focus-visible {
  border-color: var(--home-highlight);
}

.product-index-item:hover img,
.product-index-item:focus-visible img {
  transform: scale(1.08);
}

.pdp-visual {
  position: sticky;
  top: calc(var(--navh, 5.6875rem) + 1.5rem);
  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: 1rem;
  margin: 0;
  min-height: 32.5rem;
  padding: 2rem 2rem;
  border: 0.0625rem 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: 25rem;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1.5rem 2.125rem rgba(0, 0, 0, 0.5));
}

.pdp-figure figcaption {
  text-align: center;
}

.pdp-figure .kicker {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.pdp-figure h3 {
  margin: 0.625rem 0 0;
  font-size: 1.5rem;
  font-weight: 400;
}

.pdp-figure figcaption p {
  margin: 0.625rem auto 0;
  max-width: 20rem;
  font-size: 0.84375rem;
  line-height: 1.6;
  color: var(--muted-fg);
}

/* stat strip under the panel */
.pdp-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.0625rem;
  margin-top: 2.125rem;
  border-radius: var(--r-md);
  background: var(--border);
  overflow: hidden;
}

.pdp-stats div {
  padding: 1rem 0.875rem;
  background: var(--card);
}

.pdp-stats .num {
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1.1;
  color: var(--gold);
}

.pdp-stats .lbl {
  margin-top: 0.25rem;
  font-size: 0.65625rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

/* ---------- content blocks ---------- */
.pdp-block+.pdp-block {
  margin-top: 2rem;
}

.pdp-block h2 {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  line-height: 1.15;
}

.pdp-block .lead {
  margin-top: 1.125rem;
}

.scroll-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(1rem, 3vw, 2.5rem);
  z-index: 45;
  width: 3.5rem;
  height: 3.5rem;
  justify-content: center;
  padding: 0;
  box-shadow: var(--shadow-soft);
}

.scroll-to-top svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.scroll-to-top:focus-visible {
  outline: 0.125rem solid var(--cream);
  outline-offset: 0.1875rem;
}

/* varieties: two columns of hairline-separated panels */
.variety-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.0625rem;
  border: 0.0625rem 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: 1.625rem 0 0;
  padding: 0;
  list-style: none;
}

.variety-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.125rem 1.375rem;
  background: var(--card);
  font-size: 0.90625rem;
  color: var(--fg);
}

.variety-list .n {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  color: var(--gold);
}

.variety-list .cut {
  margin-left: auto;
  font-size: 0.78125rem;
  color: var(--muted-fg);
}

/* packaging table */
.pack-table {
  width: 100%;
  margin-top: 1.375rem;
  border: 0.0625rem solid var(--border);
  border-radius: var(--r-md);
  border-collapse: collapse;
  overflow: hidden;
}

.pack-table th {
  padding: 0.875rem 1.25rem;
  border-bottom: 0.0625rem solid var(--border);
  background: color-mix(in srgb, var(--gold) 5%, var(--card));
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

.pack-table td {
  padding: 0.9375rem 1.25rem;
  border-bottom: 0.0625rem solid var(--border);
  background: var(--card);
  font-size: 0.90625rem;
  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) {
  .product-index-list {
    gap: 1rem;
  }

  .product-index-item img {
    height: 7rem;
  }

  span.product-item-text {
    font-size: 14px !important;
  }

  .product-index-list {
    gap: 0.5rem;
  }

  .pdp-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .pdp-visual {
    position: static;
  }

  .pdp-figure {
    min-height: 0;
  }

  .pdp-figure img {
    height: 15rem;
  }

  .page-tag {
    max-width: none;
  }

  .pdp-block h2 {
    font-size: 1.5625rem;
  }

  .variety-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .product-index-list {
    grid-template-columns: 1fr;
  }

  .product-index-item:nth-last-child(4) {
    grid-column-start: auto;
  }

  .product-index-item img {
    height: 18rem;
  }

  .pdp-stats {
    grid-template-columns: 1fr;
  }

  .pack-table th,
  .pack-table td {
    padding: 0.8125rem 0.875rem;
    font-size: 0.84375rem;
  }
}

/* =========================================================
   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: 2.5rem 2.75rem;
  border: 0.0625rem solid var(--border);
  border-left: 0.1875rem 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: 0.875rem 0 0;
  max-width: 60ch;
  font-family: var(--font-display);
  font-size: 1.625rem;
  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: 1.875rem 1.625rem;
  }

  .mission p {
    font-size: 1.3125rem;
  }
}

/* =========================================================
   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: 4.5rem;
  padding-top: 4.5rem;
  border-top: 0.0625rem solid var(--border);
}

.event-head h2 {
  margin-top: 0.625rem;
  font-size: 2.125rem;
  line-height: 1.1;
}

.event-head .lead {
  margin-top: 0.875rem;
  max-width: 62ch;
}

/* ---------- carousel ---------- */
.carousel {
  position: relative;
  margin-top: 2rem;
}

.gallery {
  display: flex;
  gap: 0.875rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery figure {
  flex: 0 0 auto;
  height: 18.75rem;
  margin: 0;
  overflow: hidden;
  border: 0.0625rem 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: 2.875rem;
  width: 2.875rem;
  margin-top: -1.4375rem;
  border-radius: var(--r-pill);
  border: 0.0625rem solid color-mix(in srgb, var(--gold) 32%, transparent);
  background: rgba(23, 18, 14, 0.72);
  backdrop-filter: blur(0.625rem);
  color: var(--gold);
  font-size: 1.25rem;
  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: -0.625rem;
}

.car-nav.next {
  right: -0.625rem;
}

.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: 0.75rem;
  padding: 1.125rem;
  background: rgba(12, 9, 7, 0.92);
  backdrop-filter: blur(0.5rem);
  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: 1rem;
  color: var(--muted-fg);
  font-size: 0.78125rem;
  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 0.75rem gaps + 1.125rem 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 - 11.875rem);
  max-width: min(68.75rem, 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: 1.125rem;
}

.lb-btn {
  display: grid;
  place-items: center;
  height: 2.75rem;
  width: 2.75rem;
  border-radius: var(--r-pill);
  border: 0.0625rem solid var(--border);
  background: rgba(36, 29, 23, 0.9);
  color: var(--fg);
  font-size: 1.1875rem;
  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: 1.375rem;
}

.lb-count {
  min-width: 4.625rem;
  text-align: center;
  color: var(--muted-fg);
  font-size: 0.8125rem;
}

body.lb-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .event+.event {
    margin-top: 3.25rem;
    padding-top: 3.25rem;
  }

  .event-head h2 {
    font-size: 1.6875rem;
  }

  .gallery figure {
    height: 13.75rem;
  }

  .car-nav {
    height: 2.5rem;
    width: 2.5rem;
    margin-top: -1.25rem;
  }

  .car-nav.prev {
    left: 0.125rem;
  }

  .car-nav.next {
    right: 0.125rem;
  }
}

@media (max-width: 560px) {
  .gallery {
    gap: 0.625rem;
  }

  .gallery figure {
    height: 11.875rem;
  }
}

@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: 0.625rem 2.5rem;
  margin-top: 1.75rem;
}

.head-facts div {
  display: grid;
  gap: 0.25rem;
}

.head-facts .k {
  font-size: 0.6875rem;
  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: 1.1875rem;
  color: var(--fg);
}

.head-facts a:hover {
  color: var(--gold);
}

/* ---------- details column ---------- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-photo {
  position: relative;
  margin: 0;
  border: 0.0625rem solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}

.contact-photo img {
  display: block;
  width: 100%;
  height: 21.25rem;
  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: 0.75rem;
  height: 21.25rem;
  background:
    repeating-linear-gradient(45deg,
      rgba(227, 168, 56, 0.05) 0 0.625rem,
      transparent 0.625rem 1.25rem),
    var(--card);
}

.contact-photo .ph-box svg {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--gold);
  opacity: 0.5;
}

.contact-photo .ph-box span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

.contact-photo figcaption {
  padding: 1.125rem 1.375rem;
  border-top: 0.0625rem solid var(--border);
  background: var(--card);
}

.contact-photo figcaption p {
  margin: 0.5rem 0 0;
  font-size: 0.90625rem;
  color: var(--fg);
}

.detail-list {
  margin: 1.375rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 0.0625rem solid var(--border);
}

.detail-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  padding: 0.9375rem 0.125rem;
  border-bottom: 0.0625rem solid var(--border);
  font-size: 0.9375rem;
  color: var(--fg);
}

.detail-list .k {
  min-width: 6.875rem;
  font-size: 0.6875rem;
  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: 2.125rem 2rem;
  border: 0.0625rem 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: 0.625rem;
  font-size: 1.875rem;
  line-height: 1.15;
}

.cform {
  display: grid;
  gap: 1.125rem;
  margin-top: 1.625rem;
}

.cform-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.125rem;
}

.cform label {
  display: grid;
  gap: 0.5rem;
}

.cform label span {
  font-size: 0.78125rem;
  letter-spacing: 0.04em;
  color: var(--muted-fg);
}

.cform label b {
  color: var(--gold);
  font-weight: 400;
}

.cform input,
.cform textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 0.0625rem solid var(--border);
  border-radius: var(--r-sm);
  background: rgba(23, 18, 14, 0.6);
  color: var(--fg);
  font: inherit;
  font-size: 0.9375rem;
  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}

.cform textarea {
  resize: vertical;
  min-height: 8.75rem;
}

.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 8.75rem 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: 6.5rem;
}

.cform-note {
  margin: 0;
  font-size: 0.78125rem;
  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: 2.5rem;
  }

  .form-panel {
    padding: 1.625rem 1.375rem;
  }

  .form-panel h2 {
    font-size: 1.5625rem;
  }

  .cform-row {
    grid-template-columns: 1fr;
  }

  .contact-photo img,
  .contact-photo .ph-box {
    height: 15rem;
  }

  .head-facts {
    gap: 0.875rem 1.75rem;
  }

  /* stacked now, so there is no column to match -- give the message box its
     normal height back */
  .split-even .cform textarea {
    min-height: 8.75rem;
  }

  /* 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: 0.25rem;
    padding: 0.8125rem 0.125rem;
  }

  .detail-list .k {
    min-width: 0;
  }
}

/* ---------- GLOBAL PRESENCE MAP ---------- */
.gmap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: stretch;
  padding: 0 0 0 2.5rem;
  overflow: hidden;
  border: 0.0625rem solid var(--border);
  border-radius: var(--r-lg, 1.25rem);
  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(1.75rem, 3vw, 2.5rem);
}

.gmap-copy p.muted {
  margin-top: 1.125rem;
  line-height: 1.7;
}

.gmap-hint {
  margin-top: 1.125rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.gmap-copy {
  align-self: center;
  padding: 2.75rem 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 0.25rem 0.5rem 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% - 0.875rem);
  padding: 0.5625rem 0.875rem;
  border: 0.0625rem solid rgba(227, 168, 56, 0.35);
  border-radius: var(--r-sm);
  background: rgba(23, 18, 14, 0.94);
  backdrop-filter: blur(0.5rem);
  box-shadow: 0 0.625rem 1.5rem rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  pointer-events: none;
}

.gmap-tip b {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg);
}

.gmap-tip span {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: var(--gold);
}

@media (max-width: 900px) {
  .gmap {
    grid-template-columns: 1fr;
    padding: 0;
    text-align: center;
  }

  .gmap-copy {
    padding: 2rem 1.25rem 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: 0.0625rem solid var(--border);
  border-radius: var(--r-lg, 1.25rem);
  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: 20rem;
}

.life-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.life-copy {
  padding: 2.75rem 2.75rem 2.5rem;
}

.life-copy .h-lg {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.life-copy p {
  margin: 1.125rem 0 1.625rem;
  line-height: 1.75;
}

.why-join {
  margin-top: 2.5rem;
}

.why-join ul {
  list-style: none;
  margin: 0.875rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.125rem;
}

.why-join li {
  padding: 1.375rem 1.375rem 1.375rem 1.5rem;
  border: 0.0625rem solid var(--border);
  border-left: 0.1875rem solid var(--gold);
  border-radius: var(--r-sm);
  background: var(--card);
}

.why-join b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--fg);
}

.why-join li span {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-fg);
}

@media (max-width: 900px) {
  .life-card {
    grid-template-columns: 1fr;
  }

  .life-photo {
    min-height: 13.75rem;
  }

  .life-copy {
    padding: 1.75rem 1.375rem;
  }

  .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: 3rem;
  align-items: center;
}

.pv-copy p.muted {
  margin: 1.125rem 0 0;
  line-height: 1.75;
}

.pv-steps {
  list-style: none;
  margin: 1.625rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.pv-steps li {
  padding-left: 1.125rem;
  position: relative;
  color: var(--muted-fg);
  font-size: 0.9375rem;
}

.pv-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  height: 0.4375rem;
  width: 0.4375rem;
  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: 1.75rem;
  }
}

.pv-frame {
  position: relative;
  width: 100%;
  max-height: calc(100svh - var(--navh, 5.6875rem) - 3rem);
  overflow: hidden;
  aspect-ratio: 1138 / 640;
  border: 0.0625rem solid var(--border);
  border-radius: var(--r-lg, 1.25rem);
  background: #17120e;
  box-shadow: none;
}

.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: 1.125rem;
  bottom: 1.125rem;
  display: flex;
  gap: 0.625rem;
}

.pv-btn {
  display: grid;
  place-items: center;
  height: 2.75rem;
  width: 2.75rem;
  padding: 0;
  border: 0.0625rem solid rgba(245, 240, 230, 0.25);
  border-radius: 50%;
  background: rgba(23, 18, 14, 0.6);
  backdrop-filter: blur(0.5rem);
  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: 1.125rem;
  width: 1.125rem;
}

.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: 0.75rem;
    bottom: 0.75rem;
  }

  .pv-btn {
    height: 2.375rem;
    width: 2.375rem;
  }
}