/* The Elephants and the Grass — static site styles */
:root {
  --ink: rgb(29, 30, 32);
  --teal: rgb(14, 77, 78);
  --accent: rgb(232, 44, 88);
  --row: min(8px, calc(8 / 1456 * 100vw));
  --font: "Figtree", "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-weight: 300; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; justify-content: center; padding: 22px 24px; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.site-nav a { font-size: 14px; font-weight: 400; text-decoration: none; color: var(--ink); padding-bottom: 3px; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: currentColor; }
.menu-btn { display: none; }

/* Sections + fluid grid (desktop mirrors the original 1456px layout, scaled) */
.sec { position: relative; overflow: hidden; scroll-margin-top: 64px; }
.sec.has-bg { background-color: #1d1e20 !important; }
.sec .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sec .ov { position: absolute; inset: 0; }
.grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(200, minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows), minmax(var(--row), auto));
  min-height: calc(var(--h) / 1456 * 100vw);
}
@media (min-width: 1456px) { .grid { min-height: calc(var(--h) * 1px); } }
.cell { position: relative; min-width: 0; }
.txt > :first-child { margin-top: 0; }
.txt > :last-child { margin-bottom: 0; }
.txt h1, .txt h2, .txt h3, .txt h4 { font-weight: 300; line-height: 1.12; margin: 0 0 .4em; }
.txt p, .txt li { line-height: 1.8; margin: 0 0 1em; }
.txt a { text-decoration: underline; text-underline-offset: 2px; }
.pic { margin: 0; width: 100%; height: 100%; position: relative; }
.pic .over { position: absolute; z-index: 2; }
.pic .over p, .pic .over h1, .pic .over h2, .pic .over h3 { color: #fff !important; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.pic a { display: block; width: 100%; height: 100%; }
.pic img { width: 100%; height: 100%; }
.vid { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.cell .vid { height: 100%; aspect-ratio: auto; }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.btnwrap { height: 100%; display: flex; align-items: center; justify-content: center; }
.btn { display: inline-block; padding: 1.1em 2.2em; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: opacity .2s; }
.btn:hover { opacity: .75; }
.stack { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.stack img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
hr { border: 0; border-top: 1px solid currentColor; opacity: .3; margin: 50% 0 0; }

/* Accordion */
.acc details { border-bottom: 1px solid rgba(255,255,255,.35); padding: 14px 0; color: #fff; }
.acc summary { cursor: pointer; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.acc summary::after { content: "+"; }
.acc details[open] summary::after { content: "–"; }
.acc .txt { margin-top: 10px; font-size: 15px; }
.acc .txt p { color: #fff; }

/* Marquee band */
.marquee { height: 100%; display: flex; align-items: center; overflow: hidden; background: var(--ink); color: #fff; }
.marquee div { display: flex; white-space: nowrap; animation: marq 40s linear infinite; }
.marquee span { font-size: clamp(20px, 2.8vw, 40px); padding-right: 2.5em; }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee div { animation: none; } }

/* Image gallery (Images Gallery page) */
.gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 40px 5vw 60px; }
.gallery figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; }
.gallery img { height: min(70vh, 700px); width: auto; }

/* Simple content pages */
.page-pad { padding: 72px 5vw 100px; }
.narrow { max-width: 1000px; margin: 0 auto; }
.page-title { font-weight: 300; font-size: clamp(32px, 4vw, 56px); color: var(--teal); margin: 0 0 16px; }
.note { font-size: 15px; line-height: 1.7; margin: 16px 0; }

/* Footer */
.site-footer { padding: 48px 24px; text-align: center; font-size: 14px; color: #666; border-top: 1px solid #eee; }
.site-footer p { margin: 6px 0; }

/* Mobile: stack blocks in reading order */
@media (max-width: 767px) {
  .site-header { justify-content: flex-end; padding: 10px 16px; }
  .menu-btn { display: flex; flex-direction: column; gap: 6px; background: rgba(255,255,255,.85); border: 0; padding: 12px 10px; border-radius: 4px; cursor: pointer; }
  .menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .2s; }
  .menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav { display: none; position: fixed; inset: 0; background: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 28px; z-index: -1; }
  .menu-open .site-nav { display: flex; }
  .site-nav a { font-size: 24px; }
  .grid { display: flex; flex-direction: column; gap: 20px; padding: 48px 20px; min-height: 0; }
  .cell { z-index: auto !important; }
  .t-image .pic { aspect-ratio: var(--ar); height: auto; }
  .t-image.t-image .pic img { height: 100%; }
  .t-image .pic:has(img[style*="contain"]):not(:has(.over)) { aspect-ratio: auto; height: 56px; }
  .t-image .pic img[style*="contain"] { height: 56px; }
  .t-image .pic:has(.over) { aspect-ratio: auto; height: auto; min-height: 60vw; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 28px 22px; border-radius: 10px; overflow: hidden; }
  .pic:has(.over) > img { position: absolute; inset: 0; }
  .pic .over { position: relative; left: auto !important; top: auto !important; width: auto !important; }
  .t-video .vid { aspect-ratio: 16 / 9; height: auto; }
  .t-gallery .stack { aspect-ratio: var(--ar); height: auto; }
  .t-scrolling { margin: 0 -20px; height: 64px; }
  .sec.has-bg:not(.bg-only) .grid { padding-top: 64px; padding-bottom: 64px; }
  .btnwrap { justify-content: flex-start; }
  .txt p, .txt li { line-height: 1.7; }
  hr { margin: 0; }
}
