/* ==========================================================================
   Al Maha Commerce & Industry Ltd — almaha.ug
   Design system drawn from the official logo: emerald wordmark green,
   burnished gold, the gazelle's ivory, and the gold orbit around the globe.

   Layout concept: a 12-column editorial grid on ivory, broken by deep-green
   chapters; photography is framed, never boxed; the gold orbit line is the
   one recurring flourish.
   ========================================================================== */

/* ---------- Fonts (self-hosted, Latin subset) ---------- */
@font-face {
  font-family: "Marcellus";
  src: url("../fonts/marcellus-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Colour — sampled from the logo, then tuned for contrast */
  --green-950: #05231f;
  --green-900: #072b26; /* deepest chapter ground */
  --green-800: #0b3a33; /* wordmark green */
  --green-700: #154a41;
  --green-600: #2a5f55;
  --ivory: #f7f5ef;
  --sand: #eee9dc; /* secondary ground */
  --white: #ffffff;
  --gold: #c6a15b; /* on green */
  --gold-soft: #dcc59a;
  --gold-ink: #8a6125; /* gold text on ivory (AA) */
  --charcoal: #242822;
  --muted: #555b52;
  --muted-on-green: #b9c7bf;
  --line: rgba(11, 58, 51, 0.14);
  --line-strong: rgba(11, 58, 51, 0.28);
  --line-on-green: rgba(220, 197, 154, 0.22);
  --danger: #a33a2a;
  --success: #1f6a4a;

  /* Type */
  --font-display: "Marcellus", "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.35rem, 1.22rem + 0.55vw, 1.7rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.3vw, 2.4rem);
  --step-4: clamp(2rem, 1.6rem + 2vw, 3.1rem);
  --step-5: clamp(2.2rem, 1.7rem + 2.6vw, 3.6rem);

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(1.25rem, 2.5vw, 2.25rem);
  --maxw: 84rem;
  --radius-s: 4px;
  --radius-m: 10px;
  --radius-photo: 2px;

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

  color-scheme: light;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
  color: var(--green-800);
}
p {
  margin: 0;
  text-wrap: pretty;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
::selection {
  background: var(--gold-soft);
  color: var(--green-950);
}
:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-green :focus-visible {
  outline-color: var(--gold);
}
[hidden] {
  display: none !important;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--green-800);
  color: var(--ivory);
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-s);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section);
  position: relative;
}
.on-green {
  background: var(--green-900);
  color: var(--ivory);
}
.on-green h2,
.on-green h3 {
  color: var(--ivory);
}
.on-sand {
  background: var(--sand);
}
.on-white {
  background: var(--white);
}

/* Section label: a short gold rule + the section's name (mirrors the nav) */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-ink);
  margin-bottom: 0.6rem;
}
.label::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}
.on-green .label {
  color: var(--gold);
}

.section-head {
  display: grid;
  gap: 0.85rem;
  max-width: 46rem;
}
.section-head h2 {
  font-size: var(--step-4);
}
.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--muted);
  max-width: 38rem;
}
.on-green .lede {
  color: var(--muted-on-green);
}
.prose {
  display: grid;
  gap: 0.65rem;
  color: var(--muted);
  max-width: 36rem;
}
.on-green .prose {
  color: var(--muted-on-green);
}
.prose-lead {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.4;
  color: var(--green-800);
}
.on-green .prose-lead {
  color: var(--ivory);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green-800);
  --btn-fg: var(--ivory);
  --btn-bd: var(--green-800);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  font: 600 0.95rem/1.2 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-s);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}
.btn::after {
  /* gold wipe from the left on hover */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease);
}
.btn:hover::after,
.btn:focus-visible::after {
  transform: scaleX(1);
}
.btn:hover,
.btn:focus-visible {
  color: var(--green-950);
  border-color: var(--gold);
}
.btn .btn-icon {
  width: 1rem;
  height: 1rem;
  flex: none;
  transition: transform 0.35s var(--ease);
}
.btn:hover .btn-icon {
  transform: translateX(3px);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--green-800);
  --btn-bd: var(--line-strong);
}
.on-green .btn--ghost,
.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--ivory);
  --btn-bd: rgba(247, 245, 239, 0.4);
}
.on-green .btn:not(.btn--ghost) {
  --btn-bg: var(--gold);
  --btn-fg: var(--green-950);
  --btn-bd: var(--gold);
}
.on-green .btn:not(.btn--ghost)::after {
  background: var(--ivory);
}
.on-green .btn:not(.btn--ghost):hover {
  border-color: var(--ivory);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(247, 245, 239, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(7, 43, 38, 0.45);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--header-h);
  transition: height 0.35s var(--ease);
}
.site-header.is-scrolled .header-inner {
  height: 72px;
}
.brand {
  display: block;
  flex: none;
  line-height: 0;
}
.brand img {
  height: 76px;
  width: auto;
  transition: height 0.35s var(--ease);
}
.site-header.is-scrolled .brand img {
  height: 56px;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.25rem);
}
.nav-list {
  display: flex;
  gap: clamp(0.9rem, 1.8vw, 1.9rem);
}
.nav-list a {
  position: relative;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  padding-block: 0.4rem;
  white-space: nowrap;
  transition: color 0.25s;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-list a:hover,
.nav-list a[aria-current="true"] {
  color: var(--green-800);
}
.nav-list a:hover::after,
.nav-list a[aria-current="true"]::after {
  transform: scaleX(1);
}
.header-cta {
  min-height: 2.85rem;
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
}
.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  padding: 0.65rem 0.9rem;
  font: 600 0.9rem var(--font-body);
  color: var(--green-800);
  cursor: pointer;
}
.menu-toggle-bars {
  position: relative;
  width: 18px;
  height: 12px;
}
.menu-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s, top 0.3s var(--ease);
}
.menu-toggle-bars span:nth-child(1) { top: 0; }
.menu-toggle-bars span:nth-child(2) { top: 5px; }
.menu-toggle-bars span:nth-child(3) { top: 10px; }
.menu-open .menu-toggle-bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-open .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle-bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-list a { font-size: 0.88rem; }
  .header-cta { display: none; }
}
@media (max-width: 920px) {
  :root { --header-h: 76px; }
  .brand img { height: 58px; }
  .site-header.is-scrolled .header-inner { height: 66px; }
  .site-header.is-scrolled .brand img { height: 50px; }
  /* backdrop-filter would become the containing block of the fixed menu panel */
  .site-header {
    background: var(--ivory);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
    background: var(--ivory);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .site-header.is-scrolled .primary-nav { top: 66px; }
  .menu-open .primary-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
  }
  .nav-list {
    flex-direction: column;
    gap: 0;
  }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    padding-block: 1rem;
    color: var(--green-800);
  }
  .nav-list a::after { display: none; }
  .header-cta {
    display: inline-flex;
    width: 100%;
    min-height: 3.4rem;
    font-size: 1rem;
  }
  body.menu-open { overflow: hidden; }
}

/* ---------- Photography frames ---------- */
.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--sand);
  border-radius: var(--radius-photo);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo.is-missing img {
  visibility: hidden;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(1.25rem, 2.5vw, 2.25rem) clamp(2rem, 3.5vw, 3rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}
.hero-copy {
  grid-column: 1 / span 6;
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.1rem;
  padding-block: 0.5rem;
}
.hero-kicker {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-ink);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-kicker::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}
.hero h1 {
  font-size: var(--step-5);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.hero-sub {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.3;
  color: var(--gold-ink);
  max-width: 30rem;
}
.hero-desc {
  color: var(--muted);
  max-width: 34rem;
}
.hero-media {
  grid-column: 7 / span 6;
  position: relative;
  min-height: 0;
}
.hero-photo-main {
  aspect-ratio: 4 / 5;
  width: 68%;
  margin-left: auto;
  border-radius: 180px 180px var(--radius-photo) var(--radius-photo);
}
.hero-photo-inset {
  position: absolute;
  left: 0;
  bottom: 8%;
  width: 42%;
  aspect-ratio: 1 / 1;
  border: 8px solid var(--ivory);
  border-radius: var(--radius-photo);
  box-shadow: 0 30px 60px -30px rgba(7, 43, 38, 0.55);
}
.hero-orbit {
  position: absolute;
  inset: -6% -14% -2% -10%;
  width: 124%;
  height: 108%;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}
.hero-orbit path {
  fill: none;
  stroke-linecap: round;
}
.hero-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(1.75rem, 3vw, 3rem);
  border-top: 1px solid var(--line-strong);
}
.hero-facts li {
  display: grid;
  gap: 0.3rem;
  padding: 1.5rem 1.5rem 0 0;
}
.hero-facts li + li {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}
.hero-facts strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-2);
  color: var(--green-800);
  line-height: 1.2;
}
.hero-facts span {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .hero-copy { grid-column: 1 / -1; }
  .hero-media {
    grid-column: 1 / -1;
    max-width: 36rem;
    width: 100%;
    margin-inline: auto;
    margin-bottom: 0.75rem;
    /* Mobile hero reads top-down as a banner: photo first, then the
       headline and copy — so visitors see the coffee before any scroll. */
    order: -1;
  }
}
@media (max-width: 640px) {
  .hero-photo-main {
    width: 72%;
    border-radius: 140px 140px var(--radius-photo) var(--radius-photo);
  }
  .hero-photo-inset { width: 42%; border-width: 5px; }
  .hero-copy { gap: 0.85rem; }
  .hero-desc { font-size: 0.93rem; }
  .hero .btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .hero .btn-row .btn {
    min-height: 3rem;
    padding: 0.7rem 0.6rem;
    font-size: 0.84rem;
  }
  .hero .btn-row .btn-icon { display: none; }
  .hero-facts { margin-top: 1.25rem; }
  .hero-facts li { padding: 0.8rem 0.5rem 0 0; }
  .hero-facts li + li { padding-left: 0.6rem; }
  .hero-facts strong { font-size: 0.95rem; }
  .hero-facts span { font-size: 0.72rem; line-height: 1.35; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.about-media {
  grid-column: 1 / span 5;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.about-media .photo {
  aspect-ratio: 3 / 4;
}
.about-body {
  grid-column: 7 / span 6;
  display: grid;
  gap: 0.7rem;
}
.about-body h2 {
  font-size: var(--step-4);
}
.activities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.9rem;
  padding-block: 0.75rem;
  border-block: 1px solid var(--line);
}
.activities li {
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--green-800);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.activity-icon {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-ink);
}
.activity-icon svg {
  width: 13px;
  height: 13px;
}
.mission {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.mission-card {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  background: var(--sand);
  border-radius: var(--radius-m);
  border-top: 3px solid var(--gold);
  padding: 1.1rem 1.25rem 1.3rem;
}
.mission-card h3 {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-ink);
}
.mission-card p {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.4;
  color: var(--green-800);
}
@media (max-width: 960px) {
  .about-media {
    grid-column: 1 / -1;
    position: relative;
    top: 0;
  }
  .about-media .photo { aspect-ratio: 16 / 11; }
  .about-body { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .mission { grid-template-columns: 1fr; gap: 0.75rem; }
  .mission-card { padding: 0.9rem 1rem 1rem; }
  .mission-card p { font-size: 1rem; }
}

/* ---------- Coffee matrix ---------- */
.coffee-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.coffee-head .section-head {
  grid-column: 1 / span 7;
}
.coffee-head .lede {
  grid-column: 8 / span 5;
  font-size: var(--step-0);
}
.matrix {
  display: grid;
  grid-template-columns: minmax(12rem, 0.8fr) minmax(0, 1.6fr) minmax(0, 1.6fr);
  column-gap: clamp(1.5rem, 3vw, 3rem);
}
.matrix-corner {
  border-bottom: 1px solid var(--line-strong);
}
.variety {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line-strong);
}
.variety h3 {
  font-size: var(--step-3);
}
.variety .tagline {
  font-weight: 600;
  color: var(--gold-ink);
  font-size: 0.95rem;
}
.variety p:not(.tagline) {
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 30rem;
}
.row-label {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding-top: 1.25rem;
  padding-right: 1rem;
}
.row-label h3 {
  font-size: var(--step-2);
}
.row-label p {
  color: var(--muted);
  font-size: 0.95rem;
}
.row-label .row-tag {
  font-weight: 600;
  color: var(--gold-ink);
  font-size: 0.9rem;
}
.product {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding-block: 1rem;
}
.product .photo {
  aspect-ratio: 16 / 8;
}
.product .photo img {
  transition: transform 1.2s var(--ease);
}
.product:hover .photo img {
  transform: scale(1.035);
}
.product h4 {
  font-size: var(--step-2);
  color: var(--green-800);
}
.product p {
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 32rem;
}
.matrix-note {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-strong);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.matrix-note p {
  max-width: 40rem;
}
.row-rule {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--line);
}

@media (max-width: 1000px) {
  .coffee-head .section-head,
  .coffee-head .lede { grid-column: 1 / -1; }
  .matrix {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .matrix-corner { display: none; }
  .row-label {
    grid-column: 1 / -1;
    padding-top: 2.5rem;
    padding-right: 0;
    max-width: 34rem;
  }
  .row-rule { display: none; }
}
@media (max-width: 640px) {
  /* Phones: two varieties and two products per row, like a product grid. */
  .coffee-head { margin-bottom: 1.25rem; }
  .matrix { column-gap: 0.75rem; }
  .variety { padding-bottom: 0.9rem; gap: 0.3rem; }
  .variety h3 { font-size: 1.35rem; }
  .variety .tagline { font-size: 0.78rem; line-height: 1.3; }
  .variety p:not(.tagline) { font-size: 0.82rem; line-height: 1.45; }
  .row-label { padding-top: 1.25rem; gap: 0.25rem; }
  .row-label h3 { font-size: 1.15rem; }
  .row-label p { font-size: 0.85rem; }
  .product { padding-block: 0.75rem 0.25rem; gap: 0.4rem; }
  .product .photo { aspect-ratio: 4 / 3; }
  .product h4 { font-size: 1rem; line-height: 1.25; }
  .product p { font-size: 0.8rem; line-height: 1.45; }
  .matrix-note { margin-top: 1.25rem; }
  .matrix-note .btn { width: 100%; }
}

/* ---------- Capabilities ---------- */
.cap-group {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 3.2fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(0.5rem, 1vw, 0.9rem);
  border-top: 1px solid var(--line-strong);
}
.section-head + .cap-group {
  margin-top: clamp(0.5rem, 1vw, 0.9rem);
}
.cap-group-title {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}
.cap-group-title h3 {
  font-size: var(--step-2);
}
.cap-group-title p {
  color: var(--muted);
  font-size: 0.93rem;
  max-width: 16rem;
}
.cap-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}
.cap {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}
.cap-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-ink);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s;
}
.cap-icon svg {
  width: 20px;
  height: 20px;
}
.cap:hover .cap-icon {
  background: var(--green-800);
  border-color: var(--green-800);
  color: var(--gold);
}
.cap h4 {
  font-size: var(--step-1);
  color: var(--green-800);
  line-height: 1.25;
}
.cap p {
  color: var(--muted);
  font-size: 0.95rem;
}
@media (max-width: 900px) {
  .cap-group { grid-template-columns: 1fr; }
  .cap-group-title p { max-width: none; }
}
@media (max-width: 640px) {
  .cap-group { gap: 0.6rem; padding-block: 0.9rem 0.4rem; }
  .cap-group-title { gap: 0.15rem; }
  .cap-group-title h3 { font-size: 1.2rem; }
  .cap-group-title p { font-size: 0.82rem; }
  /* .cap-list becomes a 2-column tile grid — see "Phone tile grids" below. */
  .cap {
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 0.85rem 0.8rem 0.9rem;
    gap: 0.4rem;
  }
  .cap-icon { width: 34px; height: 34px; }
  .cap-icon svg { width: 16px; height: 16px; }
  .cap h4 { font-size: 0.95rem; line-height: 1.25; }
  .cap p { font-size: 0.78rem; line-height: 1.45; }
}

/* ---------- Facilities ---------- */
.facilities {
  overflow: hidden;
}
.fac-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  align-items: start;
}
.fac-copy {
  grid-column: 1 / span 5;
  display: grid;
  gap: 0.65rem;
}
.fac-copy h2 {
  font-size: var(--step-4);
}
.fac-ops {
  display: grid;
  border-top: 1px solid var(--line-on-green);
}
.fac-ops li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  padding-block: 0.45rem;
  border-bottom: 1px solid var(--line-on-green);
}
.fac-ops .dot {
  grid-row: span 2;
  width: 10px;
  height: 10px;
  margin-top: 0.55rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  position: relative;
}
.fac-ops .dot::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--gold);
}
.fac-ops h3 {
  font-size: var(--step-1);
  color: var(--ivory);
  line-height: 1.3;
}
.fac-ops p {
  color: var(--muted-on-green);
  font-size: 0.95rem;
}
.fac-media {
  grid-column: 7 / span 6;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
  gap: 1rem;
}
.fac-media .photo:nth-child(1) {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}
.fac-media .photo:nth-child(2) {
  grid-column: 1 / span 3;
  aspect-ratio: 1 / 1;
}
.fac-media .photo:nth-child(3) {
  grid-column: 4 / span 3;
  aspect-ratio: 1 / 1;
}
@media (max-width: 960px) {
  .fac-copy,
  .fac-media { grid-column: 1 / -1; }
}

/* ---------- Why Al Maha ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.why-head {
  grid-column: 1 / span 5;
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
  display: grid;
  gap: 1.25rem;
}
.why-head h2 {
  font-size: var(--step-4);
}
.why-list {
  grid-column: 7 / span 6;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 3vw, 3rem);
}
.why-list li {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding-block: 1rem 1.2rem;
  border-top: 1px solid var(--line-strong);
}
.why-list h3 {
  font-size: var(--step-1);
  line-height: 1.3;
}
.why-list p {
  color: var(--muted);
  font-size: 0.95rem;
}
@media (max-width: 960px) {
  .why-head {
    grid-column: 1 / -1;
    position: relative;
    top: 0;
  }
  .why-list { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .why-grid { gap: 1.25rem; }
  .why-head { gap: 0.75rem; }
  .why-head .lede { font-size: 0.95rem; }
  /* .why-list becomes a 2-column tile grid — see "Phone tile grids" below. */
  .why-list li {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius-m);
    padding: 0.8rem 0.8rem 0.9rem;
    gap: 0.35rem;
  }
  .why-list h3 { font-size: 0.95rem; line-height: 1.25; }
  .why-list p { font-size: 0.78rem; line-height: 1.45; }
}

/* ---------- Global trade ---------- */
.global {
  background: var(--green-800);
  overflow: hidden;
}
.global-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  align-items: center;
}
.globe-wrap {
  grid-column: 1 / span 6;
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 40rem;
  justify-self: center;
}
.globe-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.globe-coords {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.globe-coords::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(198, 161, 91, 0.25);
}
.global-copy {
  grid-column: 7 / span 6;
  display: grid;
  gap: 0.6rem;
}
.global-copy h2 {
  font-size: var(--step-4);
}
.buyers {
  display: grid;
  border-top: 1px solid var(--line-on-green);
}
.buyers li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.3rem;
  border-bottom: 1px solid var(--line-on-green);
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ivory);
}
.buyers li span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted-on-green);
  text-align: right;
}
.buyers-title {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
@media (max-width: 960px) {
  .globe-wrap {
    grid-column: 1 / -1;
    max-width: 30rem;
    order: 2;
  }
  .global-copy { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .buyers li { flex-direction: column; gap: 0.1rem; font-size: 1rem; padding-block: 0.5rem; }
  .buyers li span { text-align: left; font-size: 0.78rem; }
  .globe-wrap { max-width: 17rem; }
}

/* ---------- How we work ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute;
  top: 1.45rem;
  left: 1.45rem;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 70%, transparent 100%);
  transform-origin: left;
}
.step {
  position: relative;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.step-num {
  position: relative;
  z-index: 1;
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gold);
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--green-800);
  font-variant-numeric: lining-nums tabular-nums;
  margin-bottom: 0.6rem;
}
.step h3 {
  font-size: var(--step-1);
  line-height: 1.3;
}
.step p {
  color: var(--muted);
  font-size: 0.93rem;
}
@media (max-width: 1000px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 38rem;
  }
  .steps::before {
    top: 0;
    bottom: 0;
    left: 1.45rem;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--gold), var(--gold) 85%, transparent);
  }
  .step {
    grid-template-columns: 2.9rem minmax(0, 1fr);
    column-gap: 1.25rem;
    row-gap: 0.35rem;
    padding-bottom: 1.25rem;
  }
  .step-num { grid-row: span 2; margin-bottom: 0; }
}
@media (max-width: 640px) {
  .steps::before { left: 1.1rem; }
  .step {
    grid-template-columns: 2.2rem minmax(0, 1fr);
    column-gap: 0.85rem;
    row-gap: 0.15rem;
    padding-bottom: 0.9rem;
  }
  .step-num { width: 2.2rem; height: 2.2rem; font-size: 0.9rem; }
  .step h3 { font-size: 1rem; }
  .step p { font-size: 0.84rem; line-height: 1.45; }
}

/* ---------- Contact ---------- */
.contact-band {
  position: relative;
  color: var(--ivory);
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(7rem, 12vw, 9.5rem);
  overflow: hidden;
  background: var(--green-900);
}
.contact-band .band-photo {
  position: absolute;
  inset: 0;
  border-radius: 0;
}
.contact-band .band-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 35, 31, 0.92) 0%, rgba(7, 43, 38, 0.78) 45%, rgba(7, 43, 38, 0.45) 100%),
    linear-gradient(0deg, rgba(5, 35, 31, 0.6), transparent 40%);
}
.contact-band .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
}
.contact-band h2 {
  font-size: var(--step-5);
  color: var(--ivory);
  max-width: 15ch;
  line-height: 1.04;
}
.contact-band p:not(.label) {
  color: #d6dcd4;
  max-width: 38rem;
  font-size: var(--step-1);
}

.contact {
  padding-block: 0 var(--section);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.contact-info {
  grid-column: 1 / span 4;
  display: grid;
  gap: 1.25rem;
  padding-top: clamp(2rem, 3.5vw, 2.75rem);
}
.contact-info h3 {
  font-size: var(--step-3);
}
.contact-list {
  display: grid;
  border-top: 1px solid var(--line-strong);
}
.contact-list li {
  display: grid;
  gap: 0.2rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.contact-list .k {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--gold-ink);
}
.contact-list .v {
  font-size: 1.02rem;
  color: var(--green-800);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.contact-list a.v {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.3s var(--ease);
  justify-self: start;
}
.contact-list a.v:hover {
  background-size: 100% 1px;
}
.brief-list {
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.93rem;
}
.brief-list li {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: 0.5rem;
}
.brief-list li::before {
  content: "";
  width: 0.7rem;
  height: 1px;
  background: var(--gold-ink);
  margin-top: 0.8rem;
}

.form-panel {
  grid-column: 6 / span 7;
  margin-top: clamp(-6rem, -9vw, -4rem);
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: var(--radius-m);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 40px 80px -50px rgba(7, 43, 38, 0.55), 0 0 0 1px var(--line);
}
.form-panel h3 {
  font-size: var(--step-2);
  margin-bottom: 0.4rem;
}
.form-intro {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 1.25rem;
}
.field {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  min-width: 0;
}
.field--full {
  grid-column: 1 / -1;
}
.field label,
.field legend {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
  padding: 0;
}
.field .opt {
  font-weight: 400;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font: 400 1rem/1.4 var(--font-body);
  color: var(--charcoal);
  background: var(--ivory);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  padding: 0.85rem 0.95rem;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.field textarea {
  min-height: 8.5rem;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #8b8f87;
}
.field input:hover,
.field textarea:hover {
  border-color: var(--green-600);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--green-800);
  box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.35);
}
.field .hint {
  font-size: 0.8rem;
  color: var(--muted);
}
.field .error {
  font-size: 0.82rem;
  color: var(--danger);
  font-weight: 500;
  min-height: 0;
}
.field .error:empty {
  display: none;
}
.field.has-error input,
.field.has-error textarea {
  border-color: var(--danger);
  background: #fdf6f4;
}
fieldset.field {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.choice span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--ivory);
  transition: all 0.2s var(--ease);
  pointer-events: none;
}
.choice span::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: all 0.2s;
}
.choice input:hover + span {
  border-color: var(--green-600);
}
.choice input:checked + span {
  background: var(--green-800);
  border-color: var(--green-800);
  color: var(--ivory);
}
.choice input:checked + span::before {
  background: var(--gold);
  border-color: var(--gold);
}
.choice input:focus-visible + span {
  outline: 2px solid var(--gold-ink);
  outline-offset: 2px;
}
.field.has-error .choice span {
  border-color: var(--danger);
}
.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.form-foot small {
  color: var(--muted);
  font-size: 0.82rem;
  max-width: 22rem;
}
.btn[aria-busy="true"] {
  pointer-events: none;
  opacity: 0.75;
}
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.8rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-s);
  font-size: 0.95rem;
  border: 1px solid;
}
.form-status[data-tone="success"] {
  background: #eef6f1;
  border-color: rgba(31, 106, 74, 0.35);
  color: #143f2d;
}
.form-status[data-tone="error"] {
  background: #fbf1ee;
  border-color: rgba(163, 58, 42, 0.35);
  color: #6b2418;
}
.form-status[data-tone="notice"] {
  background: #faf5ea;
  border-color: rgba(138, 97, 37, 0.4);
  color: #4d3713;
}
.form-status strong {
  font-weight: 600;
}
.form-status .btn-row .btn {
  min-height: 2.75rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.88rem;
}

@media (max-width: 960px) {
  .contact-info { grid-column: 1 / -1; order: 2; padding-top: 0; }
  .form-panel { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .contact-band .wrap { gap: 1rem; }
  .contact-band p:not(.label) { font-size: 0.95rem; }
  .contact-band .btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .contact-band .btn-row .btn { min-height: 3rem; padding: 0.7rem 0.6rem; font-size: 0.84rem; }

  .form-panel { border-radius: var(--radius-s); padding: 1.25rem 1.1rem 1.4rem; }
  .form-panel h3 { font-size: 1.5rem; }
  .form-intro { font-size: 0.88rem; margin-bottom: 1.1rem; }
  .form-grid { grid-template-columns: 1fr; gap: 0.9rem; }
  .field { gap: 0.3rem; }
  .field label,
  .field legend { font-size: 0.82rem; }
  .field input,
  .field textarea { padding: 0.65rem 0.8rem; font-size: 1rem; }
  .field textarea { min-height: 6rem; }
  .choices { flex-wrap: nowrap; gap: 0.4rem; }
  .choice span { padding: 0.45rem 0.75rem; font-size: 0.85rem; gap: 0.4rem; }
  .form-foot { padding-top: 1rem; gap: 0.75rem; }
  .form-foot .btn { width: 100%; }

  .contact-info { gap: 0.9rem; padding-top: 1.75rem; }
  .contact-info h3 { font-size: 1.5rem; }
  .contact-list li { padding-block: 0.55rem; }
  .brief-list { font-size: 0.85rem; gap: 0.4rem; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sand);
  color: var(--charcoal);
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  padding-block: clamp(2.25rem, 4.5vw, 3.5rem);
}
.footer-brand {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}
.footer-brand img {
  width: 210px;
  height: auto;
}
.footer-brand .tag {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--green-800);
  line-height: 1.25;
}
.footer-brand .lines {
  color: var(--muted);
  font-size: 0.93rem;
}
.footer-col {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.footer-col h2 {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--gold-ink);
  letter-spacing: 0.02em;
}
.footer-col ul {
  display: grid;
  gap: 0.45rem;
}
.footer-col a {
  text-decoration: none;
  color: var(--charcoal);
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--gold-ink);
}
.footer-col .v {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.footer-bar {
  background: var(--green-900);
  color: var(--muted-on-green);
  font-size: 0.85rem;
}
.footer-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 0.9rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
}
.footer-bar a {
  color: var(--gold-soft);
  text-decoration: none;
}
.footer-bar a:hover {
  color: var(--ivory);
}
@media (max-width: 860px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
/* Phone footer: one centred column — brand, a wrapped row of links,
   then contact as tappable pills — instead of three stacked desktop columns. */
@media (max-width: 640px) {
  .footer-main {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.25rem;
    padding-block: 2rem 1.5rem;
  }
  .footer-brand { justify-items: center; gap: 0.45rem; }
  .footer-brand img { width: 120px; }
  .footer-brand .tag { font-size: 1.15rem; }
  .footer-brand .lines { font-size: 0.8rem; max-width: 18rem; }
  .footer-col { width: 100%; justify-items: center; gap: 0; }
  .footer-col h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .footer-col ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1.1rem;
    font-size: 0.88rem;
  }
  .footer-col + .footer-col {
    padding-top: 1.1rem;
    border-top: 1px solid var(--line-strong);
  }
  #footer-contact { gap: 0.5rem; }
  #footer-contact [data-contact="location"] { width: 100%; color: var(--muted); font-size: 0.82rem; }
  #footer-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--ivory);
  }
  .footer-bar .wrap {
    justify-content: center;
    text-align: center;
    gap: 0.2rem 0.75rem;
    font-size: 0.74rem;
    padding-block: 0.75rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }
}

/* ---------- Motion ----------
   Content is visible by default. Only when JS is running and the visitor
   has not asked for reduced motion do below-the-fold elements start
   hidden and reveal once as they enter the viewport. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--d, 0s);
  }
  /* Photos: the frame stays in place (and observable); the image wipes in. */
  .js [data-reveal="photo"] {
    opacity: 1;
    transform: none;
  }
  .js [data-reveal="photo"] img {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.3s var(--ease), transform 1.2s var(--ease);
    transition-delay: var(--d, 0s);
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
  .js [data-reveal="photo"].is-in img {
    clip-path: inset(0 0 0 0);
  }
  .js .steps::before {
    transform: scaleX(0);
    transition: transform 1.6s var(--ease) 0.2s;
  }
  .js .steps.is-in::before {
    transform: scaleX(1);
  }

  /* Hero load sequence: the page's one orchestrated moment */
  .js .hero [data-hero] {
    animation: hero-rise 1s var(--ease) both;
    animation-delay: var(--d, 0s);
  }
  .js .hero-photo-main {
    animation: hero-unveil 1.4s var(--ease) 0.15s both;
  }
  .js .hero-photo-inset {
    animation: hero-rise 1.1s var(--ease) 0.75s both;
  }
  .js .hero-orbit .orbit-gold {
    stroke-dasharray: var(--len, 2000);
    stroke-dashoffset: var(--len, 2000);
    animation: orbit-draw 2.2s var(--ease) 0.6s forwards;
  }
  .js .hero-orbit .orbit-green {
    stroke-dasharray: var(--len, 2000);
    stroke-dashoffset: var(--len, 2000);
    animation: orbit-draw 2.2s var(--ease) 0.9s forwards;
  }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 960px) {
  .js .steps::before { transform: scaleY(0); transform-origin: top; }
  .js .steps.is-in::before { transform: scaleY(1); }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-unveil {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes orbit-draw {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .contact-band .band-photo,
  .globe-wrap,
  .form-panel { display: none !important; }
  body { background: #fff; }
}

/* Each radio group takes a full row so its options stay on one line */
.field--half { grid-column: 1 / -1; }

/* Below tablet width the 12-column grids collapse to one column, so their
   column gaps can never add up to more than the screen is wide. */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .coffee-head,
  .fac-grid,
  .why-grid,
  .global-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-grid > *,
  .about-grid > *,
  .coffee-head > *,
  .fac-grid > *,
  .why-grid > *,
  .global-grid > *,
  .contact-grid > * {
    grid-column: 1 / -1;
  }
}

/* ---------- Phone tile grids ----------
   Lists of parallel items (capabilities, reasons to choose Al Maha) become
   a two-column grid of small, fully visible tiles on phones. An odd last
   tile spans the full row so the grid never ends with a gap. */
@media (max-width: 640px) {
  .cap-list,
  .why-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }
  .cap-list > :last-child:nth-child(odd),
  .why-list > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
