/* ============================================================
   ElBishbishy — Photography layer
   Loaded after main.css. Everything here exists to carry the
   client's own farm / packing-house / archive photography.
   ============================================================ */

/* ============================================================
   EDITORIAL LAYER
   Replaces the template's card-and-icon chrome. The house style here is:
   hairlines instead of boxes, light serif numerals instead of heavy ones,
   and no decorative icon where a heading already says the same thing.
   ============================================================ */

/* ---------- Figures (replaces the three floating stat cards) ---------- */
.figures-band {
  background: var(--white);
  border-bottom: 1px solid rgba(0, 77, 153, 0.10);
}

.figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.figure {
  position: relative;
  padding: 52px 28px 46px;
  text-align: center;
}
/* Hairline between columns, inset so it reads as a rule and not a table border. */
.figure + .figure::before {
  content: '';
  position: absolute;
  left: 0;
  top: 26%;
  bottom: 26%;
  width: 1px;
  background: rgba(0, 77, 153, 0.13);
}

.figure dt {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5vw, 3.7rem);
  font-weight: 400; /* the light cut reads more considered than the bold */
  color: var(--blue-dark);
  line-height: 1;
  letter-spacing: -0.015em;
}
.figure dt .plus {
  color: var(--gold);
  font-size: 0.46em;
  vertical-align: super;
  margin-left: 3px;
}

.figure dd {
  margin-top: 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ---------- Milestones (replaces the three stacked counter boxes) ---------- */
/* Dates carry more credibility than rounded totals, and they resolve the
   "three different clocks" problem the 100+/70+/30+ stack created. */
.milestones { border-top: 1px solid rgba(0, 77, 153, 0.13); }

.milestone {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 26px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid rgba(0, 77, 153, 0.13);
}

.milestone .year {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}

.milestone h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 7px;
}
.milestone p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ---------- Markets (replaces the glass tiles and their clip-art icons) ---------- */
/* The old icons stood a mosque in for the Gulf and a Japanese torii gate in for
   the whole of Asia. Names only. */
.markets-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 56px;
}

/* ---------- Regions with named countries ---------- */
/* 48 destinations is the strongest proof of reach the company has, so the
   countries are set out in full rather than summarised into five labels. */
.regions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
}

.region {
  position: relative;
  padding: 26px 30px 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-right: 30px;
}
.region::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.55s ease;
}
.region:hover::after { width: 100%; }

.region h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}
.region p {
  font-size: 0.86rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.66);
}

@media (max-width: 900px) {
  .regions { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .regions { grid-template-columns: 1fr; }
  .region { margin-right: 0; padding-right: 0; }
}

/* Same treatment on a light section (contact page). */
.markets-list.on-light .market { border-top-color: rgba(0, 77, 153, 0.18); }
.markets-list.on-light .market .name { color: var(--blue-dark); }

.regions.on-light .region { border-top-color: rgba(0, 77, 153, 0.18); }
.regions.on-light .region h3 { color: var(--blue-dark); }
.regions.on-light .region p { color: var(--text-mid); }

.market {
  position: relative;
  padding: 26px 20px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.market::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.55s ease;
}
.market:hover::after { width: 100%; }

.market .idx {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 14px;
}
.market .name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #fff;
  line-height: 1.35;
}

/* ---------- Social links (footer) ---------- */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.social-links a:hover {
  color: var(--white);
  border-color: var(--green);
  background: var(--green);
}
.social-links a.wa:hover {
  border-color: #25d366;
  background: #25d366;
}

/* ---------- Spec list (light backgrounds) ---------- */
/* Its own component on purpose: .footer-contact-item hard-codes white text for
   the dark footer, so borrowing it on a white section renders invisible copy. */
.spec-list { display: flex; flex-direction: column; gap: 12px; }

.spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.spec-list li i {
  color: var(--green);
  font-size: 0.95rem;
  margin-top: 4px;
  flex-shrink: 0;
}
.spec-list li span {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ---------- Category card holding a cut-out rather than a photograph ---------- */
/* The Fruits range is only supplied as cut-outs on white, so that card is
   letterboxed on a wash instead of bleeding to the edges like its neighbours. */
.category-card.cat-cutout { background: linear-gradient(165deg, #fbfcfe 0%, #eaf1f9 100%); }
.category-card.cat-cutout .cat-photo {
  object-fit: contain;
  padding: 16px 16px 58px;
  mix-blend-mode: multiply;
}
/* The dark scrim exists to carry white type over a photo; on a pale wash the
   label needs the opposite treatment. */
.category-card.cat-cutout .cat-body { background: linear-gradient(to top, rgba(0,51,102,0.92) 40%, rgba(0,51,102,0) 100%); }

/* ---------- Location map ---------- */
.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0, 77, 153, 0.14);
  background: var(--light-bg);
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  /* Google's default map is louder than the rest of the page; easing the
     saturation lets it sit inside the layout rather than on top of it. */
  filter: saturate(0.82) contrast(0.96);
}

.map-note {
  margin-top: 16px;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.map-note a { color: var(--blue); transition: color var(--transition); }
.map-note a:hover { color: var(--green); }

@media (max-width: 700px) {
  .map-frame { aspect-ratio: 4 / 3; }
  .map-note { text-align: left; }
}

/* ---------- Certification marks ---------- */
/* Third-party audit marks are evidence, not decoration: sit them on a hairline
   under the quality claims and let them stay small and quiet. */
.certifications {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 77, 153, 0.16);
}

.certifications .cert-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.cert-marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cert-marks li { line-height: 0; }

.cert-marks img {
  height: 58px;
  width: auto;
  /* The supplied marks differ in weight and colour; a light desaturation lets
     them read as one row without misrepresenting any individual mark. */
  filter: saturate(0.9);
  opacity: 0.92;
  transition: opacity var(--transition), filter var(--transition);
}
.cert-marks li:hover img { filter: none; opacity: 1; }

/* The SEDEX mark is a wide lock-up rather than a square badge. */
.cert-marks .cert-wide img { height: 34px; }

@media (max-width: 600px) {
  .cert-marks { gap: 22px 24px; }
  .cert-marks img { height: 46px; }
  .cert-marks .cert-wide img { height: 27px; }
}

/* ---------- Contact lines (replaces the three icon cards) ---------- */
/* auto-fit so the strip reflows on its own as channels are added or removed. */
.contact-lines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  border-top: 1px solid rgba(0, 77, 153, 0.16);
}

.contact-line {
  position: relative;
  padding: 34px 30px 34px 0;
}
.contact-line + .contact-line { padding-left: 30px; }
.contact-line + .contact-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 34px;
  bottom: 34px;
  width: 1px;
  background: rgba(0, 77, 153, 0.13);
}

.contact-line .cl-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.contact-line p {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--blue-dark);
}
.contact-line a { transition: color var(--transition); }
.contact-line a:hover { color: var(--green); }

@media (max-width: 800px) {
  .contact-lines { grid-template-columns: 1fr; }
  .contact-line,
  .contact-line + .contact-line { padding: 26px 0; }
  .contact-line + .contact-line::before {
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
  }
}

/* ---------- Values (drops the circular icon badge) ---------- */
.value-card.plain {
  background: transparent;
  border: none;
  border-top: 1px solid rgba(0, 77, 153, 0.16);
  border-radius: 0;
  padding: 26px 20px 0 0;
  text-align: left;
  transition: border-color var(--transition);
}
.value-card.plain:hover {
  transform: none;
  box-shadow: none;
  border-top-color: var(--green);
}
.value-card.plain .v-idx {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 12px;
}
.value-card.plain h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--blue-dark);
  margin-bottom: 9px;
}
.value-card.plain p { font-size: 0.88rem; color: var(--text-mid); }

@media (max-width: 900px) {
  .figures { grid-template-columns: 1fr; }
  .figure + .figure::before {
    left: 22%;
    right: 22%;
    top: 0;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .figure { padding: 34px 24px; }
  .markets-list { grid-template-columns: repeat(2, 1fr); }
  .milestone { grid-template-columns: 76px 1fr; gap: 18px; }
}

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

/* ---------- Shared image behaviour ---------- */
.ph { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Archive scans are 720px originals from the family album; a warm grade and a
   print frame make their age read as intent rather than as low resolution. */
.ph-archive {
  filter: sepia(0.45) contrast(1.05) brightness(1.02) saturate(0.85);
}

/* ---------- About: heritage stack ---------- */
/* Replaces the logo placeholder. A present-day orchard with the oldest archive
   print laid over it -- the century of the copy, stated visually. */
.heritage-stack {
  position: relative;
  padding-bottom: 56px;
  padding-right: 40px;
}

.heritage-stack .stack-main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.heritage-stack .stack-archive {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44%;
  max-width: 230px;
  background: #fff;
  padding: 12px 12px 40px;
  border-radius: 3px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
  transform: rotate(-4deg);
  transition: transform var(--transition);
}
.heritage-stack .stack-archive:hover { transform: rotate(-1deg) scale(1.03); }
.heritage-stack .stack-archive img { aspect-ratio: 1 / 1; object-fit: cover; }

.heritage-stack .stack-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  font-size: 0.68rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  text-align: center;
}

.heritage-stack .about-image-badge { z-index: 2; }

/* ---------- Heritage timeline strip ---------- */
.heritage-section {
  background: var(--blue-dark);
  color: #fff;
  overflow: hidden;
}
.heritage-section .section-title { color: #fff; }
.heritage-section .section-subtitle { color: rgba(255, 255, 255, 0.72); }

.archive-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 54px;
}

.archive-item {
  background: #f5f1e8;
  padding: 14px 14px 0;
  border-radius: 2px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition);
}
.archive-item:nth-child(odd)  { transform: rotate(-1.6deg); }
.archive-item:nth-child(even) { transform: rotate(1.4deg); }
.archive-item:hover { transform: rotate(0deg) translateY(-8px); }

.archive-item .frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #2a2118;
}

.archive-item figcaption {
  padding: 14px 4px 18px;
  text-align: center;
  color: #4a4034;
  font-size: 0.78rem;
  line-height: 1.5;
}
.archive-item .cap-year {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 2px;
}

/* ---------- Archive timeline (About) ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 58px;
}

.timeline-entry { position: relative; }

.timeline-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: #f5f1e8;
  padding: 10px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
  transition: transform var(--transition);
}
.timeline-entry:nth-child(odd) .timeline-photo  { transform: rotate(-1.4deg); }
.timeline-entry:nth-child(even) .timeline-photo { transform: rotate(1.2deg); }
.timeline-entry:hover .timeline-photo { transform: rotate(0) translateY(-6px); }

/* The connecting thread is drawn per entry, anchored to the caption rather than
   to a fixed offset -- the photos are square, so their height tracks the column
   width and any hard-coded top would drift across breakpoints. Each segment
   bleeds half the grid gap either side so neighbours join into one line. */
.timeline-entry figcaption {
  position: relative;
  padding-top: 44px;
}
.timeline-entry figcaption::before {
  content: '';
  position: absolute;
  top: 14px;
  left: -15px;
  right: -15px;
  height: 1px;
  background: rgba(200, 151, 42, 0.5);
}
.timeline-entry:first-child figcaption::before { left: 50%; }
.timeline-entry:last-child  figcaption::before { right: 50%; }

.timeline-entry figcaption::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  width: 15px;
  height: 15px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--blue-dark);
}
.timeline-entry .t-year {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.timeline-entry h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.timeline-entry p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ---------- Category cards with photography ---------- */
.category-card.has-photo {
  position: relative;
  padding: 0;
  border: none;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: block;
  box-shadow: var(--shadow);
}

.category-card.has-photo .cat-photo {
  position: absolute;
  inset: 0;
  transition: transform 0.7s ease;
}
.category-card.has-photo:hover .cat-photo { transform: scale(1.07); }

/* Strong enough to hold white type over a pale photo (the seed-sorter shot is
   almost white at the bottom edge), not so strong it kills a dark one. */
.category-card.has-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0, 28, 56, 0.96) 0%,
    rgba(0, 28, 56, 0.78) 26%,
    rgba(0, 28, 56, 0.32) 55%,
    rgba(0, 28, 56, 0) 78%);
}

.category-card.has-photo .cat-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px 20px;
  text-align: left;
}
.category-card.has-photo .cat-name {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 2px;
  text-shadow: 0 1px 12px rgba(0, 20, 40, 0.6);
}
.category-card.has-photo .cat-count {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  text-shadow: 0 1px 10px rgba(0, 20, 40, 0.6);
}

/* ---------- Farm cards with photography ---------- */
.farm-card.has-photo { overflow: hidden; }

.farm-card.has-photo .farm-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.farm-card.has-photo .farm-photo img { transition: transform 0.7s ease; }
.farm-card.has-photo:hover .farm-photo img { transform: scale(1.05); }

.farm-card.has-photo .farm-photo-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 28px 20px;
  background: linear-gradient(to top, rgba(0, 32, 64, 0.92), rgba(0, 32, 64, 0));
  color: #fff;
}
.farm-card.has-photo .farm-photo-label h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 2px;
}
.farm-card.has-photo .farm-photo-label p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  margin: 0;
}

/* ---------- Operations band ---------- */
.ops-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  margin-top: 50px;
  height: 520px;
}

.ops-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.ops-tile:first-child { grid-row: span 2; }
.ops-tile img { transition: transform 0.7s ease; }
.ops-tile:hover img { transform: scale(1.06); }

.ops-tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 22px 18px;
  background: linear-gradient(to top, rgba(0, 32, 64, 0.9), rgba(0, 32, 64, 0));
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ---------- Section with a photographic backdrop ---------- */
.photo-band {
  position: relative;
  padding: 110px 0;
  color: #fff;
  overflow: hidden;
}
.photo-band > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.photo-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 32, 64, 0.88) 0%, rgba(0, 32, 64, 0.55) 100%);
  z-index: 1;
}
.photo-band .container { position: relative; z-index: 2; }
.photo-band .section-title { color: #fff; }

/* ---------- Product cards with photography ---------- */
.product-card { overflow: hidden; }

.product-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--blue-light);
}
.product-photo img { transition: transform 0.7s ease; }
.product-card:hover .product-photo img { transform: scale(1.06); }

.product-photo .accent {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  z-index: 2;
}

/* Studio cut-outs on white: contain rather than cover so nothing is clipped,
   on a soft wash so they sit calmly next to the on-the-tree photography. */
.product-photo.is-cutout {
  background: linear-gradient(160deg, #fbfcfe 0%, #eef3fa 100%);
}
.product-photo.is-cutout img {
  object-fit: contain;
  padding: 14px;
  mix-blend-mode: multiply;
}

/* Products still awaiting a shoot: a deliberate tinted panel, never a stock
   cut-out. Reads as designed rather than broken. */
.product-photo.no-photo {
  display: grid;
  place-items: center;
}
.product-photo.no-photo i {
  font-size: 3.4rem;
  opacity: 0.26;
}

/* ---------- Film-strip gallery ---------- */
.filmstrip {
  position: relative;
  background: var(--blue-dark);
  padding: 90px 0 100px;
  overflow: hidden;
}
.filmstrip .section-title { color: #fff; }
.filmstrip .section-subtitle { color: rgba(255, 255, 255, 0.7); }

.filmstrip-gallery {
  margin-top: 56px;
  transform: rotate(-3deg) scale(1.08);
  transform-origin: center;
}

.filmstrip-row {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}
.filmstrip-row + .filmstrip-row { margin-top: 16px; }

.filmstrip-row .tile {
  position: relative;
  flex: 0 0 auto;
  width: 320px;
  height: 210px;
  border-radius: 6px;
  overflow: hidden;
  background: #06203a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.filmstrip-row .tile img { transition: transform 0.6s ease; }
.filmstrip-row .tile:hover img { transform: scale(1.06); }

/* Word-stagger scaffolding for GSAP; harmless when GSAP never runs. */
.section-title .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.section-title .wi { display: inline-block; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .archive-strip { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 34px 24px; }
  /* The connecting thread only reads as a timeline in a single row. */
  .timeline-entry figcaption::before,
  .timeline-entry figcaption::after { display: none; }
  .timeline-entry figcaption { padding-top: 20px; }
  .ops-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 200px);
    height: auto;
  }
  .ops-tile:first-child { grid-row: span 1; grid-column: span 2; }
}

@media (max-width: 640px) {
  .timeline { grid-template-columns: 1fr; }
  .filmstrip-row .tile { width: 220px; height: 150px; }
  .filmstrip-gallery { transform: rotate(-2deg) scale(1.05); }
  .heritage-stack { padding-right: 0; padding-bottom: 44px; }
  .heritage-stack .stack-archive { width: 40%; }
  .archive-strip { gap: 16px; }
  .category-card.has-photo { aspect-ratio: 4 / 3; }
  .ops-grid { grid-template-columns: 1fr; grid-template-rows: repeat(5, 200px); }
  .ops-tile:first-child { grid-column: span 1; }
}
