/* SKM Engg — site design system (2026 redesign)
   Tokens follow the banyan green already in the brand artwork (#0C480C).
   Contrast figures are WCAG 2 ratios against the surface they sit on. */

:root {
  color-scheme: light dark;

  /* Colour — light */
  --surface: #ffffff;          /* page */
  --surface-2: #f4f5f1;        /* alternate sections, cards */
  --content: #1d1f1c;          /* 16.6:1 on surface, 15.2:1 on surface-2 */
  --content-2: #4f564f;        /* 7.6:1 on surface, 6.9:1 on surface-2 */
  --content-3: #6e766e;        /* 4.7:1 on surface — footnotes only */
  --accent: #0c480c;           /* banyan green: links and primary actions, 10.8:1 */
  --on-accent: #ffffff;        /* 10.8:1 on accent */
  --line: #d9ddd5;             /* separators (non-text) */
  --branch: #0c480c;           /* the banyan timeline line */
  --header-bg: rgba(255, 255, 255, 0.78);
  --photo-dim: none;
  --track: #e6e8e2;            /* segmented control track */
  --thumb: #ffffff;            /* selected segment */

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Tamil", sans-serif;
  --fs-footnote: 0.875rem;     /* 14px */
  --fs-body: 1.0625rem;        /* 17px */
  --fs-lead: clamp(1.1875rem, 1.6vw, 1.375rem);  /* 19–22px */
  --fs-h3: 1.3125rem;          /* 21px */
  --fs-h2: clamp(2rem, 4.2vw, 3rem);              /* 32–48px */
  --fs-h1: clamp(2.5rem, 6.4vw, 4.75rem);         /* 40–76px */

  /* Space */
  --gutter: clamp(20px, 5vw, 40px);
  --max: 1080px;
  --section: clamp(64px, 10vw, 128px);
  --radius: 18px;
  --radius-sm: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #111311;
    --surface-2: #1b1e1a;
    --content: #f2f3ee;        /* 16.7:1 */
    --content-2: #a7afa6;      /* 8.3:1 on surface, 7.5:1 on surface-2 */
    --content-3: #8a928a;      /* 5.8:1 */
    --accent: #7cc985;         /* 9.4:1 */
    --on-accent: #0b1a0e;      /* 9.0:1 on accent */
    --line: #2e332d;
    --branch: #7cc985;
    --header-bg: rgba(17, 19, 17, 0.74);
    --photo-dim: brightness(0.88);   /* soften white product backgrounds */
    --track: #262a25;
    --thumb: #3a4038;
  }
}

@media (prefers-contrast: more) {
  :root { --content-2: var(--content); --content-3: var(--content); --line: var(--content); }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--content);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.022em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--alt { background: var(--surface-2); }
.eyebrow { display: block; font-size: var(--fs-footnote); font-weight: 600; letter-spacing: 0; color: var(--accent); margin-bottom: 12px; }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--content-2); letter-spacing: -0.012em; }
.muted { color: var(--content-2); }
.footnote { font-size: var(--fs-footnote); color: var(--content-3); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .lead { margin-top: 16px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Header — the one translucent, floating functional layer */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.brand img { width: 96px; height: auto; }
@media (prefers-color-scheme: dark) { .brand img, .footer-brand img { filter: invert(1); } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--content); font-size: 0.9375rem; border-radius: 10px;
}
.nav a:hover { text-decoration: none; background: var(--surface-2); }
.nav a[aria-current="page"] { font-weight: 600; }
.nav .btn { margin-left: 8px; border-radius: 999px; }
.nav a.btn--primary, .nav a.btn--primary:hover { color: var(--on-accent); background: var(--accent); }
.menu-toggle {
  display: none; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 12px; margin-right: -12px;
  background: none; border: 0; border-radius: 10px; color: var(--content);
  font: inherit; font-size: 0.9375rem; cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .i-close, .menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: inline; }
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { min-height: 52px; font-size: 1.1875rem; padding: 0 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: 16px 0 0; justify-content: center; border-bottom: 0; border-radius: 999px; }
}

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  font-size: var(--fs-body); font-weight: 500; line-height: 1; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer; transition: filter 0.15s ease, background-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { filter: brightness(1.12); }
.btn--secondary { background: transparent; color: var(--accent); border-color: currentColor; }
.btn--secondary:hover { background: var(--surface-2); }
.btn--small { min-height: 36px; padding: 0 16px; font-size: 0.9375rem; }
.nav .btn--small { min-height: 36px; }
@media (pointer: coarse) { .btn--small, .nav .btn--small { min-height: 44px; } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.more { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: var(--fs-body); font-weight: 500; }
.more::after { content: "›"; font-size: 1.25em; line-height: 1; transform: translateY(-1px); }
.ext::after { content: "↗"; font-size: 0.85em; margin-left: 2px; }

/* Hero */
.hero { padding: clamp(56px, 9vw, 112px) 0 0; text-align: center; overflow: hidden; }
.hero h1, .hero .display { max-width: 20ch; margin: 0 auto; }
.hero .display { font-size: var(--fs-h1); letter-spacing: -0.03em; line-height: 1.04; }
.hero .line { display: block; }
.hero .lead { max-width: 40rem; margin: 24px auto 0; }
.hero .actions { justify-content: center; }
.hero--page { padding-bottom: clamp(40px, 6vw, 72px); }
.hero--page h1 { max-width: 18ch; }

/* Banyan — the signature. The tree is drawn from the brand artwork as a mask,
   so it takes the accent colour in light and dark appearances. */
.banyan {
  width: min(540px, 86%); aspect-ratio: 720 / 580; margin: clamp(48px, 7vw, 72px) auto 0;
  background: var(--branch);
  -webkit-mask: url("../img/web/banyan.png") center / contain no-repeat;
  mask: url("../img/web/banyan.png") center / contain no-repeat;
}

/* Roots timeline: one branch line, an aerial root dropping to each division */
.roots { padding: 0 0 var(--section); }
.roots-list {
  list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 2px solid var(--branch); counter-reset: none;
}
.root { position: relative; padding: 72px 16px 0 0; }
.root::before {
  content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 56px;
  background: var(--branch); transform-origin: top; transform: scaleY(var(--grow, 1));
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 110ms);
}
.root::after {
  content: ""; position: absolute; left: -4px; top: 52px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--branch); opacity: var(--dot, 1);
  transition: opacity 0.3s ease; transition-delay: calc(var(--i, 0) * 110ms + 450ms);
}
.js .roots-list:not(.is-visible) .root { --grow: 0; --dot: 0; }
.root .year { display: block; font-size: var(--fs-footnote); font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.root h3 { margin-top: 6px; }
.root p { margin-top: 10px; font-size: 0.9375rem; color: var(--content-2); line-height: 1.5; }
.root .more { font-size: 0.9375rem; }
@media (max-width: 1000px) {
  .roots-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
}
@media (max-width: 640px) {
  .roots-list { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--branch); row-gap: 36px; margin-left: 6px; }
  .root { padding: 0 0 0 44px; }
  .root::before { top: 11px; left: 0; width: 28px; height: 2px; transform-origin: left; transform: scaleX(var(--grow, 1)); }
  .root::after { top: 7px; left: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .root::before, .root::after { transition: none; }
  .js .roots-list:not(.is-visible) .root { --grow: 1; --dot: 1; }
}

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; }
.facts div { border-top: 1px solid var(--line); padding-top: 16px; }
.facts dt { font-size: var(--fs-footnote); color: var(--content-2); }
.facts dd { margin: 4px 0 0; font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Grids and cards */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line);
}
.section--alt .card { border-color: transparent; }
.card-body { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 28px; flex: 1; }
.card-body > .more, .card-body > .btn { margin-top: auto; align-self: flex-start; }
.card h3 + p { color: var(--content-2); }
.card-media { aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-dim); mix-blend-mode: multiply; }
.card-media--photo img { object-fit: cover; padding: 0; }

.feature-card { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: 16px; }
.feature-card .chips { margin-top: 4px; }
.feature-card .more { margin-top: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { font-size: var(--fs-footnote); padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--content); }

/* Specs inside product cards */
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 4px 0 0; font-size: 0.9375rem; }
.specs dt { color: var(--content-2); }
.specs dd { margin: 0; }
details.uses { border-top: 1px solid var(--line); padding-top: 4px; }
details.uses summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 44px;
  cursor: pointer; font-weight: 500; list-style: none;
}
details.uses summary::-webkit-details-marker { display: none; }
details.uses summary::after { content: "+"; font-size: 1.35em; line-height: 1; color: var(--accent); font-weight: 400; }
details.uses[open] summary::after { content: "−"; }
details.uses ul { padding-left: 1.1em; margin: 4px 0 8px; color: var(--content-2); font-size: 0.9375rem; }
details.uses li + li { margin-top: 4px; }

/* Photo strip */
.photos { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.photos figure { margin: 0; display: flex; flex-direction: column; min-height: 0; }
.photos img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-sm); }
.photos figure:first-child { grid-row: span 2; }
.photos figure:first-child img { aspect-ratio: auto; flex: 1; min-height: 0; height: 100%; }
.photos figcaption { margin-top: 8px; font-size: var(--fs-footnote); color: var(--content-2); }
@media (max-width: 760px) {
  .photos { grid-template-columns: 1fr 1fr; }
  .photos figure:first-child { grid-column: 1 / -1; grid-row: auto; }
  .photos figure:first-child img { aspect-ratio: 16 / 10; height: auto; }
}

/* Segmented control (in-page sections) */
.segmented {
  position: sticky; top: 57px; z-index: 20; display: flex; justify-content: center;
  padding: 12px 0; background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
@media (prefers-reduced-transparency: reduce) { .segmented { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.segmented nav { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--track); }
.segmented a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 20px; border-radius: 999px;
  color: var(--content); font-size: 0.9375rem; font-weight: 500;
}
.segmented a:hover { text-decoration: none; }
.segmented a.is-active { background: var(--thumb); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08); }
@media (pointer: coarse) { .segmented a { min-height: 44px; } }

/* Technical note */
.note { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.note p + p { margin-top: 14px; }
.note .muted { font-size: 0.9375rem; }
@media (max-width: 760px) { .note { grid-template-columns: 1fr; } }
table.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.data caption { text-align: left; font-weight: 600; margin-bottom: 8px; }
table.data th, table.data td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); }
table.data th { font-weight: 500; color: var(--content-2); }
table.data td:last-child, table.data th:last-child { text-align: right; }

/* People */
.person { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; padding: 32px; border-radius: var(--radius); background: var(--surface); }
.person img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: center top; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.person .role { color: var(--content-2); margin-top: 4px; }
.person .bio { margin-top: 16px; color: var(--content-2); }
.person .more { min-height: 32px; margin-top: 8px; }
@media (max-width: 560px) { .person { grid-template-columns: 1fr; padding: 24px; } .person img { width: 96px; height: 96px; } }

/* Contact tiles */
.tile { padding: 28px; border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.tile h2 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.012em; }
.tile ul { list-style: none; display: grid; gap: 2px; }
.tile a.line { display: inline-flex; align-items: center; min-height: 40px; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.tile address { font-style: normal; color: var(--content-2); }
.tile .btn, .tile .more { margin-top: auto; align-self: flex-start; }

/* Call to action band */
.cta { text-align: center; }
.cta .lead { max-width: 36rem; margin: 16px auto 0; }
.cta .actions { justify-content: center; }

.make-in-india { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; color: var(--content-2); font-size: 0.9375rem; }
.make-in-india img { width: 88px; filter: var(--photo-dim); }

/* Footer */
.site-footer { background: var(--surface-2); color: var(--content-2); font-size: var(--fs-footnote); padding: 56px 0 32px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 32px; }
.footer-brand img { width: 88px; margin-bottom: 12px; }
.site-footer h2 { font-size: var(--fs-footnote); font-weight: 600; color: var(--content); margin-bottom: 8px; letter-spacing: 0; }
.site-footer ul { list-style: none; display: grid; }
.site-footer a { color: var(--content-2); display: inline-flex; align-items: center; min-height: 32px; }
.site-footer a:hover { color: var(--content); }
.site-footer address { font-style: normal; line-height: 1.6; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-bottom ul { display: flex; gap: 20px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
@media (pointer: coarse) { .site-footer a { min-height: 44px; } }

@media print {
  .site-header, .segmented, .site-footer, .actions, .btn { display: none !important; }
  body { color: #000; background: #fff; }
}

/* ==========================================================================
   Dynamic layer (v2): forest bands, image tiles, parallax photo, reveals.
   Forest is the banyan's own green taken darker, not near-black; leaf is the
   tree's highlight. All text pairs ≥ 5.9:1. Motion is off under reduced motion.
   ========================================================================== */
:root {
  --forest: #0b3a16;           /* band surface */
  --forest-2: #124d20;         /* band gradient end */
  --on-forest: #ffffff;        /* 12.9:1 on forest, 10.0:1 on forest-2 */
  --on-forest-2: #c5d8c7;      /* 8.6:1 / 6.7:1 */
  --leaf: #8fd89a;             /* 7.6:1 / 5.9:1 */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Forest band — the page-header world for every page and the banyan story */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 38%, rgba(143, 216, 154, 0.20), transparent 70%),
    linear-gradient(180deg, var(--forest) 0%, var(--forest-2) 100%);
  color: var(--on-forest);
}
.band .eyebrow { color: var(--leaf); }
.band .lead, .band .muted { color: var(--on-forest-2); }
.band a { color: var(--leaf); }
.band .btn--primary { background: #fff; color: var(--forest); }
.band .btn--secondary { color: #fff; }
.band .btn--secondary:hover { background: rgba(255,255,255,0.08); }
.band :focus-visible { outline-color: var(--leaf); }
/* faint growth rings, drawn from the banyan's own trunk — texture, not decoration-for-its-own-sake */
.band::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 140%; z-index: -1; pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 110%, rgba(255,255,255,0.035) 0 1px, transparent 1px 46px);
}

/* Banyan story on the forest band */
.band.hero { padding-top: clamp(72px, 10vw, 128px); }
.band .banyan {
  background: linear-gradient(180deg, #b8efbf 0%, var(--leaf) 45%, #3fa154 100%);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35));
}
.band.roots { padding-top: 0; background: var(--forest-2); }
.band.roots::before { display: none; }
.band .roots-list { border-color: var(--leaf); }
.band .root::before, .band .root::after { background: var(--leaf); }
.band .root .year { color: var(--leaf); }
.band .root h3 { color: #fff; }
.band .root p { color: var(--on-forest-2); }
.band .root .more { color: var(--leaf); }
.band.roots + .section { border-top: 0; }

/* Page headers on inner pages */
.band.hero--page { padding-bottom: clamp(64px, 9vw, 112px); }
.band .make-in-india { color: var(--on-forest-2); }
.band .make-in-india img { background: #fff; border-radius: 10px; padding: 6px 8px; }

/* Header-level product strip on the products page */
.hero-strip { display: flex; justify-content: center; gap: clamp(12px, 2.5vw, 28px); margin-top: clamp(40px, 6vw, 64px); }
.hero-strip figure { margin: 0; width: clamp(96px, 18vw, 200px); aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px rgba(0,0,0,0.35); }
.hero-strip figure:nth-child(2) { transform: translateY(-18px); }
.hero-strip img { width: 100%; height: 100%; object-fit: cover; }

/* Product tiles (bento): text on top, the product photographed below on a light stage.
   White product backgrounds melt into the stage with multiply, so no scrim sits under text. */
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.tile-img {
  position: relative; grid-column: span 3; min-height: 300px; border-radius: 24px; overflow: hidden;
  display: flex; flex-direction: column; padding: 24px 24px 0;
  background: #f1f2ee; color: #1d1f1c; text-decoration: none; isolation: isolate;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.tile-img--lg { grid-column: span 6; min-height: 500px; padding: 36px 36px 0; text-align: center; align-items: center; }
.tile-img h3 { color: #1d1f1c; font-size: var(--fs-h3); }
.tile-img--lg h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.028em; }
.tile-img p { color: #4f564f; margin-top: 6px; font-size: 0.9375rem; max-width: 34ch; }   /* 6.7:1 on #f1f2ee, 6.3:1 on #e9ebe6 */
.tile-img .more { color: #0c480c; margin-top: 2px; min-height: 36px; }                     /* 9.6:1 */
.tile-img img {
  display: block; width: 100%; margin-top: auto; aspect-ratio: 4 / 3; object-fit: contain; object-position: bottom center;
  mix-blend-mode: multiply; transition: transform 0.8s var(--ease-out); transform-origin: bottom center; order: 2;
}
.tile-img--lg img { max-width: none; width: calc(100% + 72px); margin: 28px -36px 0; aspect-ratio: 16 / 10; object-fit: cover; object-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%); mask-image: linear-gradient(to bottom, transparent 0, #000 30%); }
/* Small tiles: the source photos are cropped at their right and top edges, so the photo is
   anchored flush to the tile's right and bottom edges (the crop meets the tile edge) and its
   top edge fades into the stage. Uncropped products use .fit-center. */
.tile-img:not(.tile-img--lg) img {
  max-width: none; width: 86%; aspect-ratio: 1; align-self: flex-end; margin: 12px -24px 0 0;
  object-fit: contain; object-position: right bottom; transform-origin: bottom right;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 26%);
}
.tile-img:not(.tile-img--lg) img.fit-center { align-self: center; margin-right: 0; width: 78%; object-position: center bottom; transform-origin: bottom center; -webkit-mask-image: none; mask-image: none; }
@media (max-width: 560px) { .tile-img:not(.tile-img--lg) img { margin-right: -18px; } .tile-img:not(.tile-img--lg) img.fit-center { margin-right: 0; } }
.tile-img .more { order: 1; }
.tile-img:hover { text-decoration: none; transform: translateY(-4px); box-shadow: 0 24px 48px rgba(0,0,0,0.12); }
.tile-img:hover img { transform: scale(1.04); }
.tile-img:focus-visible { outline-offset: 4px; }
@media (prefers-color-scheme: dark) { .tile-img { background: #e9ebe6; } .tile-img:hover { box-shadow: 0 24px 48px rgba(0,0,0,0.5); } }
@media (max-width: 900px) { .tile-img { grid-column: span 6; } .tile-img--lg { grid-column: span 12; min-height: 420px; } }
@media (max-width: 560px) { .tile-img { grid-column: span 6; min-height: 240px; padding: 18px 18px 0; } .tile-img--lg { grid-column: span 12; } .tile-img p { font-size: 0.875rem; } }
/* Full-bleed parallax photo */
.feature-photo { position: relative; height: clamp(420px, 78vh, 760px); overflow: hidden; color: #fff; isolation: isolate; }
.feature-photo img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; z-index: -2; }
.feature-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 15%, rgba(0,0,0,0.5) 45%, rgba(0,0,0,0.82) 100%), linear-gradient(90deg, rgba(0,0,0,0.35), rgba(0,0,0,0) 60%); }
.feature-photo .wrap { text-shadow: 0 1px 24px rgba(0,0,0,0.35); }
.feature-photo .wrap { position: absolute; left: 0; right: 0; bottom: clamp(32px, 6vw, 72px); }
.feature-photo h2 { color: #fff; font-size: var(--fs-h1); letter-spacing: -0.03em; }
.feature-photo p { color: rgba(255,255,255,0.9); font-size: var(--fs-lead); margin-top: 12px; max-width: 36rem; }
.feature-photo .eyebrow { color: var(--leaf); }

/* Horizontal photo strip with scroll snapping */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 36vw, 440px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 20px; margin: 0 calc(var(--gutter) * -1);
  scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip-nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 4px; }
.strip-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--track); color: var(--content); transition: background-color 0.2s ease, opacity 0.2s ease;
}
.strip-nav button:hover { background: var(--line); }
.strip-nav button:disabled { opacity: 0.35; cursor: default; }
.strip-nav svg { width: 18px; height: 18px; }
.strip figure { margin: 0; scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.strip figcaption { margin-top: 10px; font-size: var(--fs-footnote); color: var(--content-2); }

/* Counting facts */
.facts--big dd { font-size: clamp(2.75rem, 6vw, 4.5rem); color: var(--accent); line-height: 1; letter-spacing: -0.04em; }
.facts--big div { border-top: 2px solid var(--accent); padding-top: 20px; }

/* Cards: lift and image zoom */
.card { transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out); }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(0,0,0,0.10); }
.card-media img { transition: transform 0.8s var(--ease-out); }
.card:hover .card-media img { transform: scale(1.04); }
@media (prefers-color-scheme: dark) { .card:hover { box-shadow: 0 20px 44px rgba(0,0,0,0.5); } }

/* Contact tiles with symbols */
.tile .glyph { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--forest); color: var(--leaf); margin-bottom: 6px; }
.tile .glyph svg { width: 24px; height: 24px; }
.tile { transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out); }
.tile:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,0,0,0.08); }
.person { transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out); }
.person:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,0,0,0.08); }

/* CTA on the forest band */
.band.cta h2 { color: #fff; }

/* Scroll reveal: content rises into place once. Without JS or with reduced motion it is simply there. */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Scroll-linked motion where the browser supports it (Chrome, Edge, Safari 26+) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .feature-photo img { animation: parallax linear both; animation-timeline: view(); }
    @keyframes parallax { from { transform: translateY(-8%); } to { transform: translateY(8%); } }
    .band .banyan { animation: tree-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes tree-rise { from { transform: translateY(60px) scale(0.92); opacity: 0.25; } to { transform: none; opacity: 1; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .card, .tile, .person, .tile-img, .tile-img img, .card-media img { transition: none; }
  .card:hover, .tile:hover, .person:hover, .tile-img:hover { transform: none; }
  .tile-img:hover img, .card:hover .card-media img { transform: none; }
}
@media (prefers-reduced-transparency: reduce) { .band::before { display: none; } }
@media (prefers-contrast: more) { .band { background: var(--forest); } .band::before { display: none; }  }

/* ==========================================================================
   Immersive 3D layer (js/three-scenes.js). Every rule here only applies once a
   scene has started (.is-3d) or styles the canvas it adds; without WebGL the
   static design above is what people see.
   ========================================================================== */
.scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Living banyan: the CSS-masked artwork gives way to the 3D tree */
[data-banyan-3d] { position: relative; }
.band .banyan.is-3d {
  -webkit-mask: none; mask: none; background: none; filter: none; animation: none;
  width: min(1000px, 100%); aspect-ratio: 10 / 7; margin-top: clamp(16px, 4vw, 40px);
}

/* Drifting leaves behind page headers */
[data-leaves] { position: relative; }
.leaves-canvas { z-index: -1; pointer-events: none; }

/* Steel viewer */
.steel-stage {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  padding: var(--section) 0;
  background: radial-gradient(70% 55% at 50% 55%, #1f2b23 0%, #0d120f 75%);
}
.steel-stage h2 { color: #fff; }
.steel-stage .eyebrow { color: var(--leaf); }
.steel-stage .lead { color: #c5d0c7; max-width: 38rem; margin: 16px auto 0; }   /* 11.9:1 on #0d120f */
.steel-stage .actions { justify-content: center; }
.steel-stage .btn--primary { background: #fff; color: var(--forest); }
.steel-stage .more { color: var(--leaf); }

.steel-viewer { margin-top: clamp(24px, 4vw, 40px); }
.steel-canvas {
  position: relative; height: clamp(300px, 48vw, 560px); border-radius: 28px; overflow: hidden;
  background: radial-gradient(60% 60% at 50% 50%, #26332a 0%, #0d120f 80%);
  cursor: grab; touch-action: pan-y;
}
.steel-canvas:active { cursor: grabbing; }
.steel-stage .steel-canvas { background: none; }
.steel-fallback { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.steel-viewer.is-3d .steel-fallback { display: none; }
.steel-viewer:not(.is-3d) .steel-picker, .steel-viewer:not(.is-3d) .steel-hint { display: none; }

.steel-hint { margin-top: 12px; font-size: var(--fs-footnote); color: #a9b5ab; }
@media (pointer: coarse) { .steel-hint { display: none; } }

.steel-picker { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.steel-picker button {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font: inherit; font-size: 0.9375rem; font-weight: 500;
  background: var(--track); color: var(--content);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.steel-picker button:hover { background: var(--line); }
.steel-picker button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.steel-stage .steel-picker button { background: rgba(255,255,255,0.08); color: #fff; }
.steel-stage .steel-picker button:hover { background: rgba(255,255,255,0.16); }
.steel-stage .steel-picker button[aria-pressed="true"] { background: #fff; color: #0b3a16; }
.steel-stage :focus-visible { outline-color: var(--leaf); }

.steel-caption { margin-top: 16px; font-size: var(--fs-body); color: var(--content-2); }
.steel-caption .steel-name { font-weight: 600; color: var(--content); margin-right: 6px; }
.steel-stage .steel-caption { color: #c5d0c7; }
.steel-stage .steel-caption .steel-name { color: #fff; }
.steel-viewer--panel { margin: 0 0 clamp(32px, 5vw, 56px); text-align: center; }

@media (prefers-contrast: more) {
  .steel-stage { background: #0d120f; }
  .steel-stage .lead, .steel-stage .steel-caption, .steel-hint { color: #fff; }
}
