/* ==========================================================================
   KABEELA DESIGN SYSTEM  ·  assets/kabeela.css
   One file every page loads. Tokens first, then base, layout, components.

   Rules for anyone editing a page:
   1. Never write a colour, font or pixel size in a page. Use a token.
   2. Never restyle a component inside a page. If a component is missing,
      add it here.
   3. Amber is for the one main action on a screen. Nothing else is amber.
   4. One italic accent word per page, inside a headline (<em>).
   5. Spacing uses logical properties (inline/block) so an Arabic,
      right-to-left version works by setting dir="rtl" on <html>.
   ========================================================================== */

/* 1. TOKENS --------------------------------------------------------------- */
:root {
  /* Greens */
  --pine: #14201A;
  --pine-deep: #0E1713;
  --field: #2C4034;
  --moss: #5C7060;
  --olive: #7A7D58;
  --sage: #A8AD88;

  /* Earth */
  --amber: #C08A34;
  --amber-deep: #A47426;   /* amber, darkened: hover and button edge */
  --walnut: #6B4F3A;
  --soil: #5C4D3C;
  --bark: #8C7B68;

  /* Neutrals */
  --linen: #FAF8F4;
  --cream: #F4F0E8;
  --parchment: #E4DCCB;
  --limestone: #EDE7DA;
  --ink: #2B2118;
  --ink-soft: #4A3F33;

  /* Roles (use these in components, not the raw colours above) */
  --bg: var(--linen);
  --bg-alt: var(--cream);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --text-quiet: var(--soil);
  --rule: rgba(92, 77, 60, 0.22);
  --link: var(--field);
  --focus: var(--amber);

  /* Type */
  --serif: 'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --arabic: 'Amiri', 'Traditional Arabic', serif;

  --fs-display: clamp(2.75rem, 1.3rem + 6.2vw, 6.5rem);
  --fs-h1: clamp(2.5rem, 1.7rem + 3.6vw, 4.25rem);
  --fs-h2: clamp(2.125rem, 1.4rem + 3vw, 3.75rem);
  --fs-h3: clamp(1.5rem, 1.35rem + 0.6vw, 1.75rem);
  --fs-lead: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --fs-body: 1.125rem;     /* 18px */
  --fs-small: 0.9375rem;   /* 15px */
  --fs-label: 0.8125rem;   /* 13px */

  --lh-tight: 1.08;
  --lh-head: 1.16;
  --lh-body: 1.65;

  /* Space (4px base) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section: clamp(4rem, 2.5rem + 7vw, 8rem);
  --gutter: clamp(1.25rem, 0.5rem + 3.5vw, 3.75rem);

  /* Widths */
  --w-page: 72rem;
  --w-text: 40rem;

  /* Shape and motion */
  --radius: 2px;
  --ease: cubic-bezier(0.25, 0.6, 0.3, 1);   /* slow in, slower out */
  --t-slow: 1.8s;      /* blocks arriving */
  --t-slower: 2.8s;    /* photographs opening */
  --word: var(--walnut);   /* colour of Arabic words; flips on dark grounds */
  --header-h: 5.5rem;
}

/* 2. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 500;
  color: inherit;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -0.012em; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-head); letter-spacing: -0.008em; }
h3 { font-size: var(--fs-h3); line-height: 1.22; }
h4 { font-family: var(--sans); font-size: var(--fs-body); font-weight: 500; line-height: 1.35; }
.display { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.018em; }
h1 em, h2 em, .display em { font-style: italic; font-weight: 400; }

p { text-wrap: pretty; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 500; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--radius); }
::selection { background: var(--sage); color: var(--pine); }

.ar { font-family: var(--arabic); font-style: normal; letter-spacing: 0; line-height: 1.5; white-space: nowrap; }
p .ar { font-size: 1.3em; line-height: 1; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: var(--s-4); top: -4rem; z-index: 500;
  padding: var(--s-3) var(--s-5); background: var(--pine); color: var(--limestone);
  font-size: var(--fs-small); text-decoration: none;
}
.skip-link:focus { top: var(--s-4); }

/* 3. LAYOUT --------------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--w-page) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: calc(var(--w-text) + var(--gutter) * 2); }

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--cream { background: var(--bg-alt); }
.section--parchment { background: var(--parchment); }
.section--rule { border-block-start: 1px solid var(--rule); }

/* Dark ground. Roles flip, components inside adapt on their own. */
.section--pine, .section--deep, .on-pine, .page-head, .hero-photo {
  background: var(--pine);
  color: var(--limestone);
  --bg: var(--pine);
  --bg-alt: var(--pine);
  --text: var(--limestone);
  --text-soft: rgba(237, 231, 218, 0.86);
  --text-quiet: #B4BFB6;
  --rule: rgba(237, 231, 218, 0.18);
  --link: var(--limestone);
  --word: #E4DCCB;
}
.section--deep { background: var(--pine-deep); --bg: var(--pine-deep); --bg-alt: var(--pine-deep); }
.section--field { background: var(--field); }

/* Vertical rhythm inside a block of text */
.stack > * + * { margin-block-start: var(--s-5); }
.stack--tight > * + * { margin-block-start: var(--s-3); }
.stack--loose > * + * { margin-block-start: var(--s-7); }

/* Two columns that become one on small screens */
.split { display: grid; gap: var(--s-7) clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--text-wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .split--media-wide { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .split--top { align-items: start; }
  .split--flip > :first-child { order: 2; }
}

.grid { display: grid; gap: var(--s-6); }
.grid + p { margin-block-start: var(--s-6); }
@media (min-width: 40rem) { .grid--2, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 56rem) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Section heading block, and space above a full-width figure */
.section-head { margin-block-end: var(--s-7); }
.section-head > * + * { margin-block-start: var(--s-4); }
.figure--below { margin-block-start: var(--s-7); }

/* 4. TEXT COMPONENTS ------------------------------------------------------ */
/* Label: the small line above a headline. Use on at most every other section. */
.label {
  display: block;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-quiet);
  margin-block-end: var(--s-4);
}
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-soft); max-width: 36em; }
.prose { max-width: var(--w-text); }
.prose > * + * { margin-block-start: 1.15em; }
.prose p { color: var(--text-soft); }
.prose h2 { margin-block-end: var(--s-5); }
.prose h3 { margin-block-start: var(--s-7); }
.small { font-size: var(--fs-small); color: var(--text-quiet); }
.soft { color: var(--text-soft); }

/* A sentence set large, for the one line a section turns on */
.pull {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-style: italic;
  line-height: 1.3;
  color: var(--text);
  padding-inline-start: var(--s-5);
  border-inline-start: 2px solid var(--sage);
  max-width: 28em;
}

/* 5. BUTTONS AND LINKS ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 3rem;
  padding: 0.7rem 1.6rem;
  font-family: var(--sans); font-size: 1rem; font-weight: 500; line-height: 1.2;
  text-decoration: none; text-align: center;
  color: var(--text);
  background: transparent;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--linen); border-color: var(--ink); }
:is(.section--pine, .section--deep, .on-pine, .page-head, .hero-photo) .btn:hover { background: var(--limestone); color: var(--pine); border-color: var(--limestone); }

/* The main action. One per screen. */
.btn--primary, :is(.section--pine, .section--deep, .on-pine, .page-head, .hero-photo) .btn--primary {
  background: var(--amber); color: var(--pine); border-color: var(--amber-deep);
}
.btn--primary:hover, :is(.section--pine, .section--deep, .on-pine, .page-head, .hero-photo) .btn--primary:hover {
  background: var(--amber-deep); color: var(--pine-deep); border-color: var(--amber-deep);
}
.btn--small { min-height: 2.5rem; padding: 0.45rem 1.1rem; font-size: var(--fs-small); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); }

/* Text link with an arrow, for the second action */
.link-arrow {
  display: inline-flex; align-items: baseline; gap: 0.4em;
  font-weight: 500; color: var(--link);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em;
}
.link-arrow::after { content: '\2192'; transition: transform 0.25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
[dir='rtl'] .link-arrow::after { content: '\2190'; }
[dir='rtl'] .link-arrow:hover::after { transform: translateX(-4px); }

/* 6. HEADER AND NAVIGATION ------------------------------------------------
   The header from the first Kabeela site, kept: tall and clear over the
   photograph, small wide capitals, a quiet outlined button. As you scroll
   (--head runs 0 to 1, set by kabeela.js) it draws in, dark green glass comes
   up behind it, and the button warms to amber. It never leaves the screen.
   The glass is on ::before so the full-screen phone menu can sit inside. */
.site-header { position: fixed; inset-inline: 0; top: 0; z-index: 300; color: var(--limestone); --head: 0; }
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: rgba(20, 32, 26, calc(var(--head) * 0.9));
  -webkit-backdrop-filter: blur(calc(var(--head) * 14px));
  backdrop-filter: blur(calc(var(--head) * 14px));
  border-block-end: 1px solid rgba(237, 231, 218, calc(var(--head) * 0.12));
}
.site-header__in {
  position: relative; z-index: 1;
  /* Three parts: the name at the start, the links in the centre, the name in Arabic at the end */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-5);
  padding-block: calc(1.5rem - var(--head) * 0.75rem);
}
.brand {
  position: relative; z-index: 3;
  font-family: var(--serif); font-size: 1.5625rem; font-weight: 400; letter-spacing: 0.16em; line-height: 1.2;
  text-transform: uppercase; text-decoration: none; color: var(--limestone);
  justify-self: start;
}
.site-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.2vw, 2rem); }
@media (min-width: 68rem) {
  .site-nav { display: contents; }
  /* Evenly spaced. The three links each side of The Shop are almost the same width,
     and the small padding makes up the difference, so The Shop sits on the centre line. */
  .site-nav__list { grid-column: 2; padding-inline-start: 8px; }
}
/* The name in Arabic closes the bar on wide screens */
.brand-ar { display: none; grid-column: 3; justify-self: end; font-family: var(--arabic); font-size: 1.75rem; line-height: 1; color: #E4DCCB; text-decoration: none; opacity: 0.85; transition: opacity 0.8s var(--ease); }
.brand-ar:hover { opacity: 1; }
@media (min-width: 68rem) { .brand-ar { display: block; } }
/* The Shop is the middle link, exactly in the centre of the bar, and carries a small bag */
.site-nav__list a.nav-shop { display: inline-flex; align-items: center; gap: 0.55em; color: var(--limestone); }
.site-nav__list a.nav-shop svg { width: 0.95rem; height: 0.95rem; flex: none; transition: transform 0.3s var(--ease); }
.site-nav__list a.nav-shop:hover svg { transform: translateY(-2px); }
.site-nav__list { display: flex; gap: clamp(1.1rem, 2vw, 2rem); }
.site-nav__list a {
  position: relative; display: block;
  font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(237, 231, 218, 0.66); text-decoration: none;
  padding-block: var(--s-2);
  transition: color 0.25s ease;
}
/* The underline grows from the start of the word */
.site-nav__list a::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0.15rem; height: 1px; background: var(--sage);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
[dir='rtl'] .site-nav__list a::after { transform-origin: right; }
.site-nav__list a:hover, .site-nav__list a[aria-current='page'] { color: var(--limestone); }
.site-nav__list a:hover::after, .site-nav__list a[aria-current='page']::after { transform: scaleX(1); }
/* The button: an outline at the top of the page, amber once the glass is in */
.site-header .site-nav > .btn {
  min-height: 0; padding: 0.6rem 1.4rem;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(192, 138, 52, var(--head));
  color: color-mix(in srgb, var(--pine) calc(var(--head) * 100%), var(--limestone));
  border-color: color-mix(in srgb, var(--amber-deep) calc(var(--head) * 100%), rgba(237, 231, 218, 0.45));
}
.site-header .site-nav > .btn:hover { background: var(--limestone); color: var(--pine); border-color: var(--limestone); }

.nav-toggle {
  position: relative; z-index: 3; grid-column: 3; justify-self: end;
  display: none; align-items: center; gap: var(--s-3);
  min-height: 2.75rem; padding: 0 var(--s-4);
  font-family: var(--sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--limestone);
  background: none; border: 1px solid rgba(237, 231, 218, 0.28); border-radius: 999px; cursor: pointer;
  transition: border-color 0.5s var(--ease);
}
.nav-toggle:hover { border-color: rgba(237, 231, 218, 0.6); }
/* Two bars that cross into an X when the menu is open */
.nav-toggle__bars { position: relative; width: 1.1rem; height: 0.7rem; border: 0; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ''; position: absolute; inset-inline: 0; height: 1.5px; background: currentColor;
  transition: transform 0.7s var(--ease), top 0.7s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: calc(100% - 1.5px); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before { top: calc(50% - 0.75px); transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after { top: calc(50% - 0.75px); transform: rotate(-45deg); }

/* Phone and tablet menu: a dark green curtain comes down, then the links rise one by one */
@media (max-width: 67.99rem) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 0; z-index: 2;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--s-6);
    padding: calc(var(--header-h) + var(--s-4)) var(--gutter) var(--s-7);
    background: var(--pine-deep);
    overflow: hidden auto;
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1s var(--ease), visibility 0s linear 1s;
  }
  .site-nav.is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path 1s var(--ease), visibility 0s; }
  /* The name, very large and very faint, behind the links */
  .site-nav::after {
    content: '\0642\0628\064A\0644\0629';
    /* fixed, so the word stays at the foot of the screen and never makes the menu scroll.
       It rests half sunk below the edge; pulling the menu lifts it (--rise, 0 to 1) until
       the whole word shows, dots included. */
    position: fixed; inset-inline-end: 0.02em; bottom: env(safe-area-inset-bottom, 0px); z-index: 0;
    transform: translate3d(0, calc((1 - var(--rise, 0)) * 0.46em), 0);
    font-family: var(--arabic); font-size: min(50vw, 25vh, 22rem); line-height: 1.3; color: var(--limestone); opacity: 0.05;
    pointer-events: none;
  }
  .site-nav__list { position: relative; z-index: 1; flex-direction: column; gap: 0; margin-block: auto; transition: opacity 1.6s var(--ease); }
  .site-nav__list li, .site-header .site-nav > .btn {
    opacity: 0; transform: translateY(1.4rem);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }
  .site-nav.is-open .site-nav__list li, .site-header .site-nav.is-open > .btn {
    opacity: 1; transform: none;
    transition: opacity 1.1s var(--ease), transform 1.3s var(--ease);
    transition-delay: calc(0.35s + var(--n, 0) * 0.1s);
  }
  .site-nav__list li:nth-child(1) { --n: 0; } .site-nav__list li:nth-child(2) { --n: 1; }
  .site-nav__list li:nth-child(3) { --n: 2; } .site-nav__list li:nth-child(4) { --n: 3; }
  .site-nav__list li:nth-child(5) { --n: 4; } .site-nav__list li:nth-child(6) { --n: 5; }
  .site-nav__list li:nth-child(7) { --n: 6; } .site-header .site-nav > .btn { --n: 7.5; }
  .site-nav__list a {
    padding-block: 0.45rem;
    font-family: var(--serif); font-size: clamp(2rem, 1.3rem + 4vw, 2.875rem); font-weight: 500; line-height: 1.15;
    letter-spacing: 0; text-transform: none; color: var(--limestone);
  }
  .site-nav__list a::after { display: none; }
  .site-nav__list a.nav-shop { display: flex; gap: 0.4em; }
  .site-nav__list a.nav-shop svg { width: 0.62em; height: 0.62em; }
  .site-nav__list a[aria-current='page'] { font-style: italic; color: var(--sage); }
  .site-header .site-nav > .btn {
    position: relative; z-index: 1; width: 100%; min-height: 3.5rem;
    font-size: 0.875rem; background: var(--amber); color: var(--pine); border-color: var(--amber-deep);
  }
  /* Hidden: pull the open menu past its end and the name at the bottom catches light.
     The links step back for a few seconds while the welcome is said, then return. */
  .site-nav::after { transition: opacity 2s var(--ease), color 2s var(--ease), text-shadow 2s var(--ease), transform 1.1s var(--ease); }
  .site-nav.is-pulling::after { transition: opacity 0.3s linear, color 2s var(--ease), text-shadow 2s var(--ease); opacity: calc(0.05 + var(--rise, 0) * 0.2); }
  .site-nav.is-lit::after { opacity: 0.6; color: #D9A548; text-shadow: 0 0 50px rgba(217, 165, 72, 0.55), 0 0 120px rgba(217, 165, 72, 0.35); }
  .menu-welcome { position: absolute; inset-inline: var(--gutter); top: 40%; z-index: 2; margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.75rem, 1.1rem + 3.4vw, 2.5rem); line-height: 1.2; color: var(--limestone); opacity: 0; transform: translateY(0.8rem); transition: opacity 1.2s var(--ease), transform 1.6s var(--ease); pointer-events: none; }
  .menu-welcome span { display: block; }
  .menu-welcome span + span { margin-block-start: 0.35em; font-size: 0.72em; color: var(--sage); }
  .site-nav.is-telling .site-nav__list { opacity: 0; pointer-events: none; }
  .site-nav.is-lit:not(.is-telling)::after { opacity: 0.3; }
  .site-nav.is-telling .menu-welcome { opacity: 1; transform: none; transition: opacity 2.2s var(--ease) 0.7s, transform 2.4s var(--ease) 0.7s; }
  .menu-spark { position: absolute; bottom: 4vw; z-index: 1; width: 5px; height: 5px; border-radius: 50%; background: #F6D592; box-shadow: 0 0 14px 5px rgba(240, 196, 120, 0.7); opacity: 0; pointer-events: none; animation: spark-rise var(--dur, 4s) ease-out var(--delay, 0s) forwards; }
  @keyframes spark-rise { 0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.6); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate3d(var(--dx, 0), -62vh, 0) scale(0.2); } }
  html.menu-open { overflow: hidden; overscroll-behavior: none; }
  html.menu-open .site-header { --head: 0 !important; }
}

/* 7. HERO ----------------------------------------------------------------- */
/* Text beside one photograph. Photo sits above the text on small screens. */
.hero { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) var(--section); }
.hero__grid { display: grid; gap: var(--s-6) clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__text > * + * { margin-block-start: var(--s-5); }
.hero__text .actions { margin-block-start: var(--s-6); }
.hero__name { display: flex; align-items: baseline; gap: var(--s-3); color: var(--text-quiet); font-size: var(--fs-small); font-weight: 500; }
.hero__name .ar { font-size: 1.6rem; color: var(--word); line-height: 1; }
@media (min-width: 56rem) {
  .hero__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
  .hero__media { order: 2; }
}
/* Page header for inner pages: text only */
.page-head { padding-block: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 6rem)) clamp(3rem, 2rem + 4vw, 5.5rem); }
.page-head:has(> .figure--bleed) { padding-block-end: 0; }
.page-head > .wrap > * + * { margin-block-start: var(--s-5); }

/* 8. MEDIA ---------------------------------------------------------------- */
.figure img { width: 100%; object-fit: cover; border-radius: var(--radius); background: var(--parchment); }
.figure figcaption { margin-block-start: var(--s-3); font-size: var(--fs-small); color: var(--text-quiet); }
.ratio-3x2 img { aspect-ratio: 3 / 2; }
.ratio-4x3 img { aspect-ratio: 4 / 3; }
.ratio-4x5 img { aspect-ratio: 4 / 5; }
.ratio-1x1 img { aspect-ratio: 1 / 1; }

/* Labeled gap for a photograph we don't have yet. Never use stock. */
.slot {
  display: grid; place-content: center; gap: var(--s-2); text-align: center;
  aspect-ratio: 4 / 3; padding: var(--s-5);
  background: var(--parchment); border: 1px dashed var(--bark); border-radius: var(--radius);
  color: var(--soil); font-size: var(--fs-small);
}
.slot strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--ink); }

/* 9. ROWS, CARDS, FACTS --------------------------------------------------- */
/* Way-in row: a title, a few lines, one link. Stacks on small screens. */
.ways { border-block-start: 1px solid var(--rule); }
.way { display: grid; gap: var(--s-3) var(--s-7); padding-block: var(--s-6); border-block-end: 1px solid var(--rule); align-items: baseline; }
.way p { color: var(--text-soft); max-width: 34em; }
.way .badge { margin-block-end: var(--s-3); }
.way__go { justify-self: start; }
@media (min-width: 56rem) {
  .way { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr) 13rem; }
  .way__go { justify-self: end; }
}

.card { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6); background: var(--linen); border: 1px solid var(--rule); border-radius: var(--radius); }
.section--cream .card { background: var(--linen); }
.card p { color: var(--text-soft); }
.card__kicker { font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-quiet); }
.card--empty { border-style: dashed; background: transparent; }
.card__img { width: calc(100% + var(--s-6) * 2); max-width: none; margin: calc(var(--s-6) * -1) calc(var(--s-6) * -1) var(--s-3); aspect-ratio: 3 / 2; object-fit: cover; }
.card__links { display: flex; flex-wrap: wrap; gap: var(--s-5); margin-block-start: auto; padding-block-start: var(--s-3); font-size: var(--fs-small); }

.badge {
  display: inline-block; align-self: flex-start;
  padding: 0.3rem 0.7rem;
  font-size: var(--fs-label); font-weight: 500; line-height: 1.3;
  color: var(--soil); border: 1px solid var(--bark); border-radius: 999px;
}
.badge--cert { color: var(--field); border-color: var(--moss); background: rgba(168, 173, 136, 0.22); }

/* Plain facts: a figure and what it counts */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
.facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.facts--3 .fact__n { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); }
@media (min-width: 56rem) { .facts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact { border-block-start: 1px solid var(--rule); padding-block-start: var(--s-4); }
.fact__n { display: block; font-family: var(--serif); font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); font-weight: 500; line-height: 1.05; }
.fact__l { display: block; margin: 0; margin-block-start: var(--s-2); font-size: var(--fs-small); color: var(--text-quiet); }

/* Numbered steps, for real sequences only */
.steps { counter-reset: step; display: grid; gap: var(--s-6); }
@media (min-width: 56rem) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { counter-increment: step; border-block-start: 1px solid var(--rule); padding-block-start: var(--s-4); }
.step::before { content: counter(step); display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--olive); margin-block-end: var(--s-2); }
.step p { color: var(--text-soft); margin-block-start: var(--s-2); }

/* Checklist with a hairline between items */
.points { counter-reset: point; border-block-start: 1px solid var(--rule); }
.points li { padding-block: var(--s-4); border-block-end: 1px solid var(--rule); color: var(--text-soft); }
.points strong { color: var(--text); }

/* Timeline: what's done, what's next */
.timeline { border-inline-start: 1px solid var(--rule); }
.timeline li { position: relative; padding-inline-start: var(--s-6); padding-block-end: var(--s-6); }
.timeline li::before { content: ''; position: absolute; inset-inline-start: -5px; top: 0.6em; width: 9px; height: 9px; border-radius: 50%; background: var(--olive); }
.timeline li.is-next::before { background: var(--bg); border: 1px solid var(--olive); }
.timeline__when { display: block; font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-quiet); }
.timeline p { color: var(--text-soft); }

/* Produce teaser: small cards fed by assets/produce-data.js */
.produce-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
@media (min-width: 56rem) { .produce-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.produce-card { display: block; text-decoration: none; color: inherit; }
.produce-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); background: var(--parchment); transition: transform 0.6s var(--ease); }
.produce-card:hover img { transform: scale(1.02); }
.produce-card__name { display: block; margin-block-start: var(--s-3); font-family: var(--serif); font-size: 1.3125rem; font-weight: 500; line-height: 1.2; }
.produce-card__price { display: block; font-size: var(--fs-small); color: var(--text-quiet); }

/* Questions that open */
.faq { border-block-start: 1px solid var(--rule); }
h2 + .faq { margin-block-start: var(--s-6); }
.faq details { border-block-end: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding-block: var(--s-4); font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--olive); }
.faq details[open] summary::after { content: '\2212'; }
.faq details > div { padding-block-end: var(--s-5); color: var(--text-soft); max-width: var(--w-text); }

/* A form: fields in a column, pairs side by side when there is room */
.form { display: grid; gap: var(--s-5); max-width: 40rem; }
.form__row { display: grid; gap: var(--s-5); }
@media (min-width: 40rem) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form textarea { resize: vertical; min-height: 9rem; line-height: 1.55; }
.form__done { padding: var(--s-6); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--cream); max-width: 40rem; }
.form__done > * + * { margin-block-start: var(--s-3); }

/* Form fields */
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--fs-small); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.6rem 0.85rem;
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--bark); border-radius: var(--radius);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--field); }
.field__hint { font-size: var(--fs-small); color: var(--text-quiet); }

/* 10. NAME BLOCK (the Arabic word, set large) ------------------------------ */
.name-block { text-align: center; }
.name-block .ar { display: block; font-size: clamp(4rem, 2.5rem + 9vw, 8.5rem); line-height: 1.25; color: var(--word); }
.name-block__say { display: block; font-size: var(--fs-small); letter-spacing: 0.14em; color: var(--text-quiet); margin-block-end: var(--s-5); }
.name-block p { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.4; max-width: 30em; margin-inline: auto; }

/* 11. FOOTER --------------------------------------------------------------- */
.site-footer { background: var(--pine-deep); color: #B4BFB6; padding-block: var(--s-8) var(--s-6); font-size: var(--fs-small); }
.site-footer a { color: var(--limestone); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; gap: var(--s-7); }
@media (min-width: 56rem) { .site-footer__grid { grid-template-columns: 1.6fr repeat(4, 1fr); column-gap: var(--s-6); } }
.site-footer .brand { color: var(--limestone); }
.site-footer h2 { font-family: var(--sans); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #B4BFB6; margin-block-end: var(--s-3); }
.site-footer li + li { margin-block-start: var(--s-2); }
.site-footer__base { margin-block-start: var(--s-7); padding-block-start: var(--s-5); border-block-start: 1px solid rgba(237, 231, 218, 0.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); }

/* 12. INTERACTION -----------------------------------------------------------
   Everything here works without JavaScript: the content is plain markup first,
   and assets/kabeela.js upgrades it. */

/* 12a. Ways in, with a photograph per row.
   Small screens: each row carries its own photo. Wide screens: the photos stack
   in one frame on the right and the active row (hover, focus or tap) shows its own. */
.ways--show { position: relative; }
.ways--show .way { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
.ways--show .way__go { justify-self: start; }
.way__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--parchment); margin-block-end: var(--s-2); }
@media (min-width: 56rem) {
  .ways--show { padding-inline-end: calc(48% + var(--s-8)); border-block-start: 0; }
  .ways--show .way {
    padding-inline-start: var(--s-5);
    border-block-end: 0;
    border-inline-start: 2px solid var(--rule);
    transition: border-color 0.4s var(--ease);
  }
  .ways--show .way h3 { transition: color 0.4s var(--ease); color: var(--text-quiet); }
  .ways--show .way.is-active { border-inline-start-color: var(--pine); }
  .ways--show .way.is-active h3 { color: var(--text); }
  .way__img {
    position: absolute; inset-inline-end: 0; top: 50%;
    width: 48%; height: auto; aspect-ratio: 5 / 4; margin: 0;
    opacity: 0; transform: translateY(-50%) scale(1.03);
    transition: opacity 0.7s var(--ease), transform 1.4s var(--ease);
  }
  .way.is-active .way__img { opacity: 1; transform: translateY(-50%); }
}

/* 12b. Produce filter chips (built by kabeela.js from produce-data.js) */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  min-height: 2.5rem; padding: 0.35rem 0.95rem;
  font: inherit; font-size: var(--fs-small); font-weight: 500; color: var(--text-soft);
  background: transparent; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
@media (max-width: 39.99rem) {
  /* One row you can swipe, so twelve chips don't push the produce off screen */
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-block-end: var(--s-2); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
.chip:hover { border-color: var(--bark); color: var(--text); }
.chip[aria-pressed='true'] { background: var(--field); border-color: var(--field); color: var(--limestone); }
.produce-block > * + * { margin-block-start: var(--s-5); }
.produce-strip.is-swapping { opacity: 0; transform: translateY(6px); }
.produce-strip { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }

/* 12c. The root of the name: four words from ق ب ل.
   Without JS it is a plain list of four. With JS it becomes a switcher. */
.root { max-width: var(--w-text); }
.root__list { display: grid; gap: var(--s-5); }
.root__word { display: block; font-family: var(--arabic); font-size: 2.25rem; line-height: 1.4; color: var(--word); }
.root__say { font-size: var(--fs-small); color: var(--text-quiet); font-style: italic; }
.root__mean { font-weight: 500; }
.root__gloss { display: block; color: var(--text-soft); }
.root.is-live .root__list { display: none; }
.root__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block-end: 1px solid var(--rule); }
.root__tab {
  padding: var(--s-3) var(--s-2) var(--s-2);
  font-family: var(--arabic); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.5; color: color-mix(in srgb, var(--word) 55%, transparent);
  background: none; border: 0; border-block-end: 2px solid transparent; margin-block-end: -1px; cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.root__tab:hover { color: var(--word); }
.root__tab[aria-selected='true'] { color: var(--word); border-block-end-color: var(--word); }
.root__panel { padding-block-start: var(--s-5); min-height: 7.5rem; }
.root__panel > * { animation: root-in 1.2s var(--ease) both; }
.root__panel > :nth-child(2) { animation-delay: 0.15s; }
.root__panel > :nth-child(3) { animation-delay: 0.3s; }
.root__panel .root__mean { display: block; font-family: var(--serif); font-size: var(--fs-h3); font-weight: 500; line-height: 1.2; }
.root__panel .root__gloss { margin-block-start: var(--s-2); }
@keyframes root-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 12d. Timeline that draws as you scroll. --drawn runs 0 to 1, set by kabeela.js. */
.timeline.is-live { border-inline-start-color: transparent; position: relative; --drawn: 0; }
.timeline.is-live::before, .timeline.is-live::after {
  content: ''; position: absolute; inset-block: 0; inset-inline-start: -1px; width: 1px; background: var(--rule);
}
.timeline.is-live::after { background: var(--olive); transform-origin: top; transform: scaleY(var(--drawn)); }
.timeline.is-live li::before { z-index: 1; background: var(--bg-alt); border: 1px solid var(--bark); transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease); }
.timeline.is-live li > * { opacity: 0.45; transition: opacity 0.5s var(--ease); }
.timeline.is-live li.is-reached > * { opacity: 1; }
.timeline.is-live li.is-reached::before { background: var(--olive); border-color: var(--olive); transform: scale(1.15); }
.timeline.is-live li.is-next.is-reached::before { background: var(--amber); border-color: var(--amber-deep); }

/* 12e. Scroll reveal. kabeela.js adds .will-reveal only to blocks that start
   below the fold, then .is-in when they arrive. Nothing is ever hidden without JS. */
.will-reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--t-slow) var(--ease), transform calc(var(--t-slow) + 0.4s) var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.will-reveal.is-in { opacity: 1; transform: none; }

/* 12f. ART DIRECTION ---------------------------------------------------------
   The larger moves: a hero whose photograph runs edge to edge, photographs that
   break out of their column, a strip of photos to drag through, and a closing
   section set over a full photograph. */

/* Hero photograph, shown whole. Sky, people, earth.
   The headline is written in the sky and the name is set into the ground.
   Narrow screens can't fit words in the sky, so there the words sit on dark
   green above and below, and the photograph's edges melt into them. */
.hero-photo { position: relative; display: flex; flex-direction: column; overflow: hidden; }
/* Phones and tablets: the photograph rises out of the dark green behind the last
   lines of the headline block and sinks back into it behind the words that follow,
   so the words sit on the photograph here too. --lap-top and --lap-bottom say how far. */
.hero-photo__img { display: block; width: 100%; height: auto; position: relative; z-index: 0;
  margin-block: calc(var(--lap-top, 24vw) * -1) calc(var(--lap-bottom, 34vw) * -1);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,0.5) 20%, #000 36%, #000 64%, rgba(0,0,0,0.5) 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,0.5) 20%, #000 36%, #000 64%, rgba(0,0,0,0.5) 82%, transparent 100%); }
.hero-photo__sky { position: relative; z-index: 2; padding-block: calc(var(--header-h) + var(--s-7)) var(--s-5); }
.hero-photo__sky > .wrap > * + * { margin-block-start: var(--s-5); }
.hero-photo__sky .display { font-size: clamp(2.75rem, 1rem + 4.7vw, 6.25rem); }
.hero-photo__earth { position: relative; z-index: 2; padding-block: var(--s-5) var(--section); }
.hero-photo .lead { color: var(--limestone); }
.hero-photo .name-block .ar { animation: breathe 11s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 0.86; transform: scale(1); } 50% { opacity: 1; transform: scale(1.014); } }
@media (min-width: 75rem) {
  .hero-photo { display: block; }
  .hero-photo__img { -webkit-mask-image: none; mask-image: none; margin-block: 0; }
  /* Dusk comes down over the sky, and the ground darkens into the next section */
  .hero-photo::before, .hero-photo::after { content: ''; position: absolute; inset-inline: 0; z-index: 1; pointer-events: none; }
  .hero-photo::before { top: 0; height: var(--dusk, 46%); background: linear-gradient(to bottom, rgba(14, 23, 19, 0.94) 0%, rgba(14, 23, 19, 0.86) 22%, rgba(14, 23, 19, 0.62) 46%, rgba(14, 23, 19, 0.28) 72%, rgba(14, 23, 19, 0) 100%); }
  .hero-photo::after { bottom: 0; height: var(--ground, 44%); background: linear-gradient(to top, var(--pine) 0%, rgba(20, 32, 26, 0.9) 22%, rgba(20, 32, 26, 0.62) 52%, rgba(20, 32, 26, 0) 100%); }
  .hero-photo__sky { position: absolute; inset-inline: 0; top: 0; padding-block: calc(var(--header-h) + 3.2vw) 0;
    opacity: calc(1 - var(--leave, 0) * 1.25); transform: translate3d(calc(var(--px, 0) * -9px), calc(var(--leave, 0) * 60px + var(--py, 0) * -6px), 0); }
  .hero-photo__earth .name-block { transform: translate3d(calc(var(--px, 0) * 12px), calc(var(--py, 0) * 6px), 0); }
  .hero-photo__earth { position: absolute; inset-inline: 0; bottom: 0; padding-block: 0 5vw; }
  .hero-photo__earth .name-block .ar { font-size: clamp(8rem, 15.5vw, 17rem); }
}
/* Middle zone: words set into the photograph itself (the fog on the Story page) */
.hero-photo__mid { position: relative; z-index: 2; padding-block: var(--s-7) var(--s-5); }
/* Story: dusk lifts into fog, the first section is read inside the fog, the people come out of it */
.hero-photo--fog { --dusk: 26%; --ground: 30%; --lap-top: 20vw; --lap-bottom: 30vw; }
.hero-photo--fog .hero-photo__earth .statement { margin-inline: auto; text-align: center; }
/* The Land: a wide photograph, facts set on the ground */
.hero-photo--land { --dusk: 66%; --ground: 42%; --lap-top: 11vw; --lap-bottom: 12vw; }
@media (max-width: 39.99rem) { .hero-photo--land .facts--3 { grid-template-columns: minmax(0, 1fr); } }
.hero-photo--land .fact__n { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); }
@media (min-width: 75rem) {
  .hero-photo__mid { position: absolute; inset-inline: 0; top: var(--mid, 28%); padding-block: 0;
    color: var(--ink); --text: var(--ink); --text-soft: #3A3027; --text-quiet: var(--soil); --link: var(--field); }
  .hero-photo--land .hero-photo__earth { padding-block-end: 3.5vw; }
}
.hero__row { display: grid; gap: var(--s-5) var(--s-8); align-items: end; }
@media (min-width: 56rem) { .hero__row { grid-template-columns: minmax(0, 1.1fr) auto; } }

/* A figure that runs to both edges of the screen */
.figure--bleed img { border-radius: 0; height: clamp(18rem, 60vh, 40rem); aspect-ratio: auto; }
.figure--bleed figcaption { padding-inline: var(--gutter); max-width: calc(var(--w-page) + var(--gutter) * 2); margin-inline: auto; }

/* The Arabic name, set as large as the screen allows */
.name-block--grand .ar { font-size: clamp(5.5rem, 2rem + 17vw, 15rem); line-height: 1.15; transform-origin: center 60%; }
.name-block--grand p { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); }

/* A photograph that climbs out of its section into the one above */
@media (min-width: 56rem) {
  .figure--rise { align-self: start; margin-block-start: calc(var(--section) * -1.7); position: relative; z-index: 1; }
  .figure--rise img { box-shadow: 0 30px 60px -30px rgba(14, 23, 19, 0.55); }
}

/* Statement: one sentence given the whole width */
.statement { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 1.2rem + 3.4vw, 4rem); line-height: 1.12; letter-spacing: -0.012em; max-width: 20ch; text-wrap: balance; }
.statement--wide { max-width: 26ch; }

/* Photo strip: drag, swipe or use the arrows */
.strip { position: relative; }
.strip__track {
  display: flex; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x proximity;
  padding-inline: max(var(--gutter), calc((100vw - var(--w-page)) / 2)); padding-block-end: var(--s-4);
  scrollbar-width: none; cursor: grab;
}
.strip__track::-webkit-scrollbar { display: none; }
.strip__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.strip__item { flex: none; scroll-snap-align: center; margin: 0; }
.strip__item img { height: clamp(16rem, 52vh, 30rem); width: auto; max-width: 82vw; object-fit: cover; border-radius: var(--radius); background: var(--parchment); user-select: none; -webkit-user-drag: none; }
.strip__item figcaption { margin-block-start: var(--s-3); font-size: var(--fs-small); color: var(--text-quiet); }
.strip__nav { display: flex; gap: var(--s-2); }
.strip__btn {
  width: 3rem; height: 3rem; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--text);
  background: transparent; border: 1px solid var(--rule); border-radius: 50%; cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.strip__btn:hover:not(:disabled) { background: var(--text); color: var(--bg); border-color: var(--text); }
.strip__btn:disabled { opacity: 0.35; cursor: default; }
:is(.section--pine, .section--deep) .strip__btn { border-color: rgba(237, 231, 218, 0.4); }
.strip__head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-5); margin-block-end: var(--s-6); }

/* Facts on a green ground */
.section--field { color: var(--limestone); --text: var(--limestone); --text-soft: rgba(237, 231, 218, 0.88); --text-quiet: #C3CCBF; --rule: rgba(237, 231, 218, 0.22); --link: var(--limestone); }
.section--field .btn:hover { background: var(--limestone); color: var(--pine); border-color: var(--limestone); }
.section--field .fact__n { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem); }

/* Closing section set over a full photograph */
.cover { position: relative; display: grid; align-items: end; min-height: min(92vh, 52rem); padding-block: var(--section); color: var(--limestone); background: var(--pine); overflow: hidden;
  --text: var(--limestone); --text-soft: rgba(237, 231, 218, 0.9); --rule: rgba(237, 231, 218, 0.2); --link: var(--limestone); }
.cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, center); }
.cover--low { --focus: center 62%; }
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 23, 19, 0.15) 0%, rgba(14, 23, 19, 0.35) 40%, rgba(14, 23, 19, 0.9) 100%); }
.cover > .wrap { position: relative; z-index: 1; }
.cover .btn:hover { background: var(--limestone); color: var(--pine); border-color: var(--limestone); }
.cover .btn--primary:hover { background: var(--amber-deep); color: var(--pine-deep); border-color: var(--amber-deep); }

/* A partner's logo, shown as supplied */
.partner-logo { display: inline-block; }
.partner-logo img { width: min(16rem, 70vw); height: auto; border-radius: 8px; }

/* 12f-2. HOVER -----------------------------------------------------------------
   Things answer the mouse at once: photographs lift and brighten, rows warm. */
.figure { overflow: hidden; border-radius: var(--radius); }
.figure img { transition: transform 0.6s var(--ease), filter 0.6s var(--ease); }
.figure:hover img { transform: scale(1.03); filter: brightness(1.06) saturate(1.06); }
.strip__item img { transition: transform 0.5s var(--ease), filter 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.strip__item:hover img { transform: translateY(-8px); filter: brightness(1.08) saturate(1.06); box-shadow: 0 22px 40px -22px rgba(0, 0, 0, 0.7); }
.strip__track { padding-block-start: var(--s-3); }
.way { transition: background-color 0.35s ease; }
.ways--show .way:hover { background: rgba(92, 77, 60, 0.05); }
.card { transition: border-color 0.3s ease, transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.card:hover { transform: translateY(-3px); border-color: var(--bark); box-shadow: 0 16px 30px -22px rgba(43, 33, 24, 0.5); }
.card--empty:hover { transform: none; box-shadow: none; }
.fact { transition: border-color 0.3s ease; }
.fact:hover { border-block-start-color: var(--amber); }
.produce-card img { transition: transform 0.5s var(--ease), filter 0.5s var(--ease); }
.produce-card:hover img { transform: scale(1.04); filter: brightness(1.05); }
.brand { transition: letter-spacing 0.5s var(--ease), opacity 0.3s ease; }
.site-header .brand:hover { letter-spacing: 0.2em; }

/* Buttons and links answer plainly: they rise, light up, and settle when pressed */
.btn { transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -14px rgba(14, 23, 19, 0.75); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--primary:hover, :is(.section--pine, .section--deep, .on-pine, .page-head, .hero-photo) .btn--primary:hover, .cover .btn--primary:hover {
  background: #D9A548; color: var(--pine-deep); border-color: #D9A548; box-shadow: 0 14px 30px -12px rgba(217, 165, 72, 0.6);
}
.link-arrow { transition: color 0.25s ease, text-decoration-color 0.25s ease; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.link-arrow:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.link-arrow:hover::after { transform: translateX(7px); }
.chip:hover { background: rgba(92, 77, 60, 0.08); }
.chip[aria-pressed='true']:hover { background: var(--pine); }
.faq summary { transition: color 0.25s ease, padding-inline-start 0.3s var(--ease); }
.faq summary:hover { color: var(--field); padding-inline-start: var(--s-2); }
.site-footer a { transition: color 0.25s ease; }
.site-footer a:hover { color: #fff; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--field); }

/* 12g. MOVEMENT ---------------------------------------------------------------
   Headlines arrive word by word, figures count up, photographs open like a
   shutter. assets/kabeela.js adds these classes; without it nothing is hidden. */

/* Words: each word rises out of its own line */
.word { display: inline-block; }
/* Each word comes into focus and settles, one after another, unhurried */
.word__in { display: inline-block; opacity: 0; transform: translateY(0.3em); filter: blur(10px);
  transition: opacity 2.2s var(--ease), transform 2.6s var(--ease), filter 2.2s var(--ease); transition-delay: calc(var(--i, 0) * 150ms); }
.words-in .word__in { opacity: 1; transform: none; filter: none; }

/* Photographs open from the top, and settle. The clip is on the image, not the
   figure, so the browser can still tell when the figure has come into view. */
.figure.will-reveal { opacity: 1; transform: none; }
.figure.will-reveal img { clip-path: inset(0 0 100% 0); transform: scale(1.1); transition: clip-path var(--t-slower) var(--ease), transform 4s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.figure.will-reveal.is-in img { clip-path: inset(0 0 0 0); transform: none; }
.cover__img { transform: scale(1.12); transition: transform 8s var(--ease); }
.cover.is-in .cover__img { transform: none; }

/* The pull line draws its rule */
.pull.will-reveal { border-inline-start-color: transparent; background: linear-gradient(var(--sage), var(--sage)) left top / 2px 0% no-repeat; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), background-size 1s var(--ease) 0.3s; }
.pull.will-reveal.is-in { background-size: 2px 100%; }
[dir='rtl'] .pull.will-reveal { background-position: right top; }

/* Figures that count up keep their width while they run */
.fact__n { font-variant-numeric: lining-nums; }

/* 12h. THE CYCLE DIAGRAM -------------------------------------------------------
   Four overlapping fields meeting at Kabeela. Draws itself when it comes into
   view; the four cards beneath it light their own field. */
.cycle svg { width: 100%; height: auto; display: block; overflow: visible; max-width: 34rem; margin-inline: auto; }
.cycle .dom { font-family: var(--serif); font-size: 22px; font-weight: 500; fill: var(--ink); }
.cycle .inter { font-family: var(--serif); font-size: 17px; font-style: italic; fill: var(--walnut); }
.cycle .verb { font-family: var(--serif); font-size: 18px; font-style: italic; fill: var(--bark); }
.cycle .core { font-family: var(--sans); font-size: 12px; font-weight: 500; fill: var(--soil); letter-spacing: 0.3em; }
.cycle [data-field] { transition: stroke-width 0.4s var(--ease), stroke-opacity 0.4s var(--ease), opacity 0.4s var(--ease); }
.cycle .is-lit { stroke-width: 3; stroke-opacity: 1; }
.cycle.has-lit circle[data-field]:not(.is-lit) { stroke-opacity: 0.3; }
.cycle.has-lit text[data-field]:not(.is-lit) { opacity: 0.4; }
.cycle.is-live .kbc-fade { opacity: 0; }
.cycle.is-live .kbc-draw { stroke-dasharray: 955; stroke-dashoffset: 955; }
.cycle.is-live .kbc-arc { opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1; }
.cycle.is-live .kbc-core { opacity: 0; transform: scale(0.8); transform-box: fill-box; transform-origin: center; }
.cycle.is-live.play .kbc-fade { animation: kbcFade 1.1s var(--ease) both; }
.cycle.is-live.play .kbc-draw { animation: kbcDraw 1.5s var(--ease) both; }
.cycle.is-live.play .kbc-arc { animation: kbcArc 1.2s var(--ease) both, kbcFade 0.9s ease both; }
.cycle.is-live.play .kbc-core { animation: kbcCore 1.2s var(--ease) both; }
@keyframes kbcFade { to { opacity: 1; } }
@keyframes kbcDraw { to { stroke-dashoffset: 0; } }
@keyframes kbcArc { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes kbcCore { to { opacity: 1; transform: scale(1); } }
.card[data-field] { transition: border-color 0.3s var(--ease), transform 0.4s var(--ease); }
.card[data-field]:hover, .card[data-field]:focus-within { border-color: var(--olive); transform: translateY(-3px); }

/* Instagram feed */
.insta behold-widget { display: block; min-height: 12rem; }

/* 13. MOTION */
@media (prefers-reduced-motion: reduce) {
  .will-reveal { opacity: 1; transform: none; }
  .timeline.is-live li > * { opacity: 1; }
  .way__img { transition: none; }
  .hero__stage img { transform: none; animation: none; }
  .word__in { opacity: 1; transform: none; filter: none; }
  .cover__img { transform: none; }
  .hero-photo .name-block .ar { animation: none; }
  .figure.will-reveal img { clip-path: none; transform: none; }
  .cycle.is-live .kbc-fade, .cycle.is-live .kbc-arc, .cycle.is-live .kbc-core { opacity: 1; transform: none; }
  .cycle.is-live .kbc-draw, .cycle.is-live .kbc-arc { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Legal pages: readable lists and breathing room before each section */
.legal ul { padding-inline-start: 1.25em; }
.legal li + li { margin-block-start: var(--s-2); }
.legal h2 { margin-block-start: var(--s-6); }
