/* ==========================================================================
   Stellar Grid — Apple-style design system
   Tokens first, then layout, then components. No build step required.
   ========================================================================== */

:root {
  /* 60% black behind card text (top), easing to fully clear across the photo */
  --text-scrim: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.58) 18%, rgba(0,0,0,.5) 32%, rgba(0,0,0,.34) 44%, rgba(0,0,0,.16) 56%, rgba(0,0,0,.05) 66%, rgba(0,0,0,0) 74%);
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-elev: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: #d2d2d7;
  --link: #0066cc;
  --btn: #0071e3;
  --btn-hover: #0077ed;
  --btn-text: #ffffff;
  --nav-bg: rgba(250, 250, 252, 0.8);
  --nav-text: #1d1d1f;
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --sun-1: #ff9500;
  --sun-2: #ffcc00;
  --sun-grad: linear-gradient(100deg, #ff7a00 0%, #ffb300 45%, #ffd60a 100%);
  --sky-grad: linear-gradient(100deg, #0071e3 0%, #2fb6ff 100%);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1024px;
  --max-wide: 1440px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

/* Dark theme: follows the system unless the visitor picked light with the toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-alt: #101012;
    --bg-elev: #1c1c1e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --line: #424245;
    --link: #2997ff;
    --nav-bg: rgba(22, 22, 23, 0.8);
    --nav-text: #f5f5f7;
    --card-shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #101012;
  --bg-elev: #1c1c1e;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --line: #424245;
  --link: #2997ff;
  --nav-bg: rgba(22, 22, 23, 0.8);
  --nav-text: #f5f5f7;
  --card-shadow: none;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--btn); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--btn); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--sun-1); margin-bottom: 10px;
}
.headline-xl { font-size: clamp(44px, 8vw, 96px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
.headline-lg { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; }
.headline-md { font-size: clamp(28px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
.headline-sm { font-size: clamp(24px, 3vw, 32px); line-height: 1.125; letter-spacing: -0.02em; }
.lede { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.38; color: var(--text-2); letter-spacing: -0.015em; font-weight: 400; }
.muted { color: var(--text-2); }
.grad-sun { background: var(--sun-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-sky { background: var(--sky-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--max), 100% - 44px); margin-inline: auto; }
.wrap-wide { width: min(var(--max-wide), 100% - 24px); margin-inline: auto; }
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section-tight { padding: clamp(48px, 7vw, 88px) 0; }
.bg-alt { background: var(--bg-alt); }
.section-head { max-width: 780px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.section-head .lede { margin-top: 18px; }
.section-head.left { margin-left: 0; text-align: left; }

/* Always-dark band (Apple "pro" sections). Re-scopes tokens locally. */
.theme-dark {
  --bg: #000; --bg-alt: #101012; --bg-elev: #1c1c1e; --text: #f5f5f7; --text-2: #a1a1a6;
  --line: #333336; --link: #2997ff; --card-shadow: none;
  background: var(--bg); color: var(--text); color-scheme: dark;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 11px 22px; border-radius: 980px; border: 0;
  background: var(--btn); color: var(--btn-text); font-size: 17px; font-weight: 400;
  cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--btn-hover); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-ghost { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.btn-ghost:hover { background: var(--link); color: #fff; }
.btn-sm { min-height: 30px; padding: 5px 14px; font-size: 14px; }
.btn-light { background: #fff; color: #1d1d1f; }
.btn-light:hover { background: #f0f0f2; }
.link-more { font-size: 17px; white-space: nowrap; }
.link-more::after { content: " ›"; font-size: 1.1em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: center; margin-top: 28px; }
.cta-row.left { justify-content: flex-start; }

/* ---------- Global nav ---------- */
.gnav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
}
.gnav-inner {
  width: min(1024px, 100% - 32px); margin: 0 auto; height: 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--nav-text); font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 24px; height: 24px; flex: none; }
.brand svg.brand-logo { width: auto; height: 38px; }
@media (max-width: 860px) { .brand svg.brand-logo { height: 32px; } }
.gnav-links { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 34px); list-style: none; margin: 0; padding: 0; }
.gnav-links a { color: var(--nav-text); opacity: .82; font-size: 13px; letter-spacing: -0.01em; transition: opacity .2s; }
.gnav-links a:hover, .gnav-links a[aria-current="page"] { opacity: 1; text-decoration: none; }
.gnav-links a[aria-current="page"] { font-weight: 600; }
.gnav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%;
  background: transparent; border: 0; color: var(--nav-text); cursor: pointer; opacity: .82;
}
.icon-btn:hover { opacity: 1; background: color-mix(in srgb, var(--text) 8%, transparent); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-icon-moon { display: block; }
}
.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  .gnav-cta { display: none; }
  .gnav-links {
    position: fixed; inset: 52px 0 auto 0; height: 0; overflow: hidden;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 0 32px;
    transition: height .35s cubic-bezier(.4,0,.2,1);
  }
  .gnav.open .gnav-links { height: calc(100dvh - 52px); padding-top: 16px; }
  .gnav-links li { opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; }
  .gnav.open .gnav-links li { opacity: 1; transform: none; }
  .gnav.open .gnav-links li:nth-child(2) { transition-delay: .03s; }
  .gnav.open .gnav-links li:nth-child(3) { transition-delay: .06s; }
  .gnav.open .gnav-links li:nth-child(4) { transition-delay: .09s; }
  .gnav.open .gnav-links li:nth-child(5) { transition-delay: .12s; }
  .gnav.open .gnav-links li:nth-child(6) { transition-delay: .15s; }
  .gnav-links a { display: block; font-size: 28px; font-weight: 600; padding: 10px 0; opacity: 1; letter-spacing: -0.02em; }
  .gnav.open { background: var(--bg); }
  body.nav-open { overflow: hidden; }
}

/* ---------- Sub nav (sticky page title bar like Apple product pages) ---------- */
.subnav {
  position: sticky; top: 52px; z-index: 90;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.subnav-inner { width: min(1024px, 100% - 32px); margin: 0 auto; height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.subnav-title { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.subnav-links { display: flex; align-items: center; gap: 22px; }
.subnav-links a:not(.btn) { color: var(--text); font-size: 12px; opacity: .8; }
@media (max-width: 640px) { .subnav-links a:not(.btn) { display: none; } .subnav-title { font-size: 19px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(92vh, 880px); display: grid; place-items: center;
  text-align: center; overflow: hidden; color: #f5f5f7; background: #000;
  isolation: isolate;
}
.hero-media, .hero-media img, .hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero-media img { transform: scale(var(--hero-scale, 1.08)); transition: transform .1s linear; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.75) 100%);
}
.hero-copy { padding: 120px 22px 100px; max-width: 1100px; }
.hero h1 { font-size: clamp(44px, 7.4vw, 84px); }
.hero .eyebrow { color: var(--sun-2); }
.hero .lede { color: rgba(245,245,247,.86); margin: 22px auto 0; max-width: 720px; }
.hero .link-more { color: #fff; }
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: rgba(255,255,255,.7); letter-spacing: .08em; text-transform: uppercase;
}
.hero-scroll::after { content: ""; display: block; width: 1px; height: 28px; margin: 8px auto 0; background: linear-gradient(rgba(255,255,255,.7), transparent); animation: drip 2s ease-in-out infinite; }
@keyframes drip { 0%,100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

/* Page hero (inner pages) */
.page-hero { padding: clamp(80px, 12vw, 150px) 0 clamp(48px, 7vw, 80px); text-align: center; }
.page-hero .lede { max-width: 760px; margin: 22px auto 0; }
.page-hero-image {
  width: min(var(--max-wide), 100% - 24px); margin: 0 auto; border-radius: var(--radius-lg);
  overflow: hidden; aspect-ratio: 21 / 9; background: var(--bg-alt);
}
.page-hero-image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .page-hero-image { aspect-ratio: 4 / 3; border-radius: var(--radius-md); } }

/* ---------- Highlights carousel ---------- */
.highlights { padding: clamp(72px, 10vw, 120px) 0; background: var(--bg-alt); overflow: hidden; }
.highlights-head { width: min(var(--max), 100% - 44px); margin: 0 auto 36px; display: flex; justify-content: space-between; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.rail {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0 max(22px, calc((100vw - var(--max)) / 2)); scrollbar-width: none;
  scroll-padding-inline: max(22px, calc((100vw - var(--max)) / 2));
}
.rail::-webkit-scrollbar { display: none; }
.hl-card {
  position: relative; flex: 0 0 min(86vw, 900px); aspect-ratio: 16 / 10; border-radius: var(--radius-lg);
  overflow: hidden; scroll-snap-align: start; background: #111; color: #fff; isolation: isolate;
}
.hl-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.hl-card:hover img { transform: scale(1.03); }
.hl-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--text-scrim); }
.hl-copy { padding: clamp(24px, 4vw, 44px); max-width: 620px; }
.hl-copy h3 { font-size: clamp(22px, 2.8vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }
.hl-copy p { margin-top: 10px; color: rgba(255,255,255,.82); font-size: clamp(15px, 1.5vw, 17px); }
@media (max-width: 640px) { .hl-card { aspect-ratio: 4 / 5; } }
.rail-controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 30px; }
.dots { display: flex; gap: 12px; padding: 18px 22px; border-radius: 980px; background: color-mix(in srgb, var(--text) 8%, transparent); }
.dot { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; cursor: pointer; background: var(--text-3); transition: width .4s ease, background .3s; }
.dot.active { width: 48px; background: var(--text); }
.play-btn { width: 56px; height: 56px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.play-btn svg { width: 18px; height: 18px; }

/* ---------- Tiles (Apple home page grid) ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 12px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-alt);
  min-height: 580px; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(40px, 5vw, 56px) 24px 0; isolation: isolate;
}
.tile.full { grid-column: 1 / -1; min-height: 640px; }
.tile h3 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
.tile p { margin-top: 8px; font-size: clamp(19px, 2vw, 24px); color: var(--text-2); letter-spacing: -0.015em; max-width: 520px; }
.tile .cta-row { margin-top: 18px; }
.tile-media { margin-top: auto; width: 100%; padding-top: 32px; }
.tile-media img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.tile.image-bg { color: #fff; background: #000; justify-content: flex-start; }
.tile.image-bg p { color: rgba(255,255,255,.84); }
.tile.image-bg .link-more { color: #fff; }
.tile.image-bg > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tile.image-bg::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--text-scrim); }
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 500px; }
}

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg-elev); border-radius: var(--radius-lg); padding: 34px 30px 36px;
  box-shadow: var(--card-shadow); transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s;
}
.bg-alt .card { background: var(--bg-elev); }
.section:not(.bg-alt):not(.theme-dark) .card { background: var(--bg-alt); box-shadow: none; }
.card:hover { transform: translateY(-4px); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, #ffb300, #ff7a00); color: #fff;
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon.blue { background: linear-gradient(135deg, #2fb6ff, #0071e3); }
.card-icon.green { background: linear-gradient(135deg, #34c759, #0a9e6b); }
.card-icon.purple { background: linear-gradient(135deg, #bf5af2, #5e5ce6); }
.card h3 { font-size: 24px; line-height: 1.17; letter-spacing: -0.02em; }
.card p { margin-top: 10px; color: var(--text-2); font-size: 17px; }
@media (max-width: 860px) { .cards, .cards.two { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-size: clamp(40px, 5.4vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; background: var(--sun-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; color: var(--text-2); font-size: 17px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 44px; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 32px 28px; border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--line); }
.theme-dark .step { border-color: #2c2c2e; background: #111113; }
.step-num { font-size: 15px; font-weight: 600; color: var(--sun-1); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 24px; letter-spacing: -0.02em; }
.step p { margin-top: 10px; color: var(--text-2); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 40px; }
.pill { padding: 8px 16px; border-radius: 980px; font-size: 14px; color: var(--text-2); border: 1px solid var(--line); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Split / feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split .lede { margin-top: 18px; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; color: var(--text-2); }
.check-list li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* ---------- Contact channels ---------- */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.channel {
  display: flex; flex-direction: column; gap: 6px; padding: 30px 28px; border-radius: var(--radius-lg);
  background: var(--bg-elev); color: var(--text); box-shadow: var(--card-shadow);
  transition: transform .3s ease;
}
.channel:hover { text-decoration: none; transform: translateY(-3px); }
.channel b { font-size: 21px; letter-spacing: -0.02em; }
.channel span { color: var(--text-2); }
.channel .link-more { color: var(--link); margin-top: 10px; }
@media (max-width: 860px) { .channels { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .lede { max-width: 640px; margin: 18px auto 0; }

/* ---------- Gallery / projects ---------- */
.filters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.filter {
  padding: 8px 18px; border-radius: 980px; border: 1px solid var(--line); background: transparent;
  color: var(--text); font-size: 14px; cursor: pointer; transition: background .2s, color .2s;
}
.filter[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-elev); box-shadow: var(--card-shadow); display: flex; flex-direction: column; }
.section:not(.bg-alt) .project { background: var(--bg-alt); box-shadow: none; }
.project.wide { grid-column: span 2; }
.project-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); flex: 1 0 auto; }
.project.wide .project-img { aspect-ratio: 16 / 9; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.project:hover .project-img img { transform: scale(1.04); }
.project-body { padding: 22px 24px 26px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--sun-1); text-transform: uppercase; }
.project h3 { margin-top: 6px; font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; }
.project p { margin-top: 8px; color: var(--text-2); font-size: 15px; }
.specs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--text-3); }
.specs b { color: var(--text); font-weight: 600; }
.project[hidden] { display: none; }
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } .project.wide { grid-column: auto; } .project.wide .project-img { aspect-ratio: 4 / 3; } }

/* Flow diagram (projects page) */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; margin-top: 12px; }
.flow-step { text-align: center; padding: 0 12px; position: relative; }
.flow-step .orb { width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #2c2c2e, #0c0c0d); border: 1px solid #333336; color: var(--sun-2); }
.flow-step .orb svg { width: 36px; height: 36px; }
.flow-step:not(:last-child)::after { content: ""; position: absolute; top: 44px; left: calc(50% + 52px); right: calc(-50% + 52px); height: 2px; background: linear-gradient(90deg, var(--sun-1), transparent); }
.flow-step h3 { font-size: 21px; }
.flow-step p { color: var(--text-2); margin-top: 6px; font-size: 15px; }
@media (max-width: 760px) { .flow { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } .flow-step::after { display: none; } }

/* ---------- Forms ---------- */
.form-card { max-width: 640px; margin: 0 auto; padding: clamp(28px, 5vw, 48px); border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: var(--card-shadow); }
.section:not(.bg-alt) .form-card { background: var(--bg-alt); box-shadow: none; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.field .hint { font-size: 13px; color: var(--text-3); }
.input, .field input, .field select {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 17px;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2386868b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 40px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--btn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--btn) 22%, transparent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.input-prefix input { padding-left: 34px; }
.form-note { font-size: 13px; color: var(--text-3); margin-top: 14px; text-align: center; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 15px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: color-mix(in srgb, #34c759 15%, transparent); color: var(--text); }
.form-status.err { background: color-mix(in srgb, #ff3b30 14%, transparent); color: var(--text); }

/* ---------- Calculator ---------- */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.calc-panel { border-radius: var(--radius-lg); background: var(--bg-elev); padding: clamp(24px, 4vw, 40px); box-shadow: var(--card-shadow); }
.calc-panel h2 { font-size: 28px; letter-spacing: -0.02em; }
.calc-panel .calc-help { color: var(--text-2); font-size: 15px; margin: 8px 0 26px; }
.calc-results { position: sticky; top: 124px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 980px; font-size: 13px; background: color-mix(in srgb, var(--sun-1) 14%, transparent); color: var(--text); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun-1); }
.out-hero { padding: 22px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.out-hero span { color: var(--text-2); font-size: 15px; }
.out-hero b { display: block; font-size: clamp(44px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; margin-top: 4px; background: var(--sun-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.out-list { list-style: none; margin: 0; padding: 0; }
.out-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.out-list li:last-child { border-bottom: 0; }
.out-list span { color: var(--text-2); font-size: 15px; }
.out-list b { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-align: right; }
.finance-results { display: none; margin-top: 10px; padding: 18px 20px; border-radius: var(--radius-md); background: var(--bg-alt); }
.finance-results.show { display: block; }
.finance-results .out-list li { padding: 10px 0; }
.finance-results small { display: block; color: var(--text-3); font-size: 13px; margin-top: 8px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 20px; border-radius: var(--radius-md); background: var(--bg-alt); margin-top: 8px; }
.toggle-row strong { font-size: 17px; }
.toggle-row p { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch .slider { position: absolute; inset: 0; border-radius: 99px; background: color-mix(in srgb, var(--text) 18%, transparent); transition: background .25s; }
.switch .slider::before { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 1px 1px rgba(0,0,0,.16); transition: transform .25s cubic-bezier(.4,0,.2,1); }
.switch input:checked + .slider { background: #34c759; }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--btn); outline-offset: 3px; }
.assumptions { margin-top: 18px; font-size: 13px; color: var(--text-3); line-height: 1.55; }
@media (max-width: 900px) { .calc-layout { grid-template-columns: 1fr; } .calc-results { position: static; } }

/* Financial snapshot (always dark — chart colors are tuned for it) */
.snapshot { border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); background: #0b0b0c; border: 1px solid #222224; }
.snapshot-top { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; }
.snapshot-top h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.025em; }
.snapshot-top p { color: var(--text-2); margin-top: 10px; }
.snap-inputs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.snap-inputs .field { margin: 0; }
.snap-inputs label { font-size: 12px; font-weight: 500; color: var(--text-2); line-height: 1.3; min-height: 32px; }
.snap-inputs input { min-height: 46px; background: #1c1c1e; border-color: #333336; font-size: 16px; }
.snap-summary { display: flex; gap: 22px; align-items: center; margin: 36px 0 20px; padding: 24px; border-radius: var(--radius-md); background: linear-gradient(120deg, rgba(255,149,0,.16), rgba(255,204,0,.04)); border: 1px solid rgba(255,179,0,.25); }
.snap-summary .sun { flex: none; width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe066, #ff9500 70%); box-shadow: 0 0 40px rgba(255,170,0,.5); }
.snap-summary h3 { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.25; letter-spacing: -0.02em; }
.snap-summary p { color: var(--text-2); margin-top: 6px; font-size: 15px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--text-2); margin: 8px 0 4px; }
.chart-legend i, .row-label i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 0; }
.pill-savings { background: #ffd21f; }
.pill-emi { background: rgba(255,255,255,.6); }
.pill-maint { background: #18d7ce; }
.pill-net { background: #34c759; }
.financial-bar-chart { width: 100%; height: 380px; }
@media (max-width: 640px) { .financial-bar-chart { height: 300px; } }
.table-scroll { overflow-x: auto; margin-top: 18px; -webkit-overflow-scrolling: touch; }
.cumulative-table { width: 100%; min-width: 560px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cumulative-table th, .cumulative-table td { white-space: nowrap; padding: 14px 12px; text-align: right; border-bottom: 1px solid #2c2c2e; font-size: 15px; }
.cumulative-table th { color: var(--text-2); font-weight: 500; font-size: 13px; }
.cumulative-table th:first-child, .cumulative-table td:first-child { text-align: left; }
.cumulative-table tr:last-child td { border-bottom: 0; font-weight: 600; color: #fff; }
.row-label { white-space: nowrap; }
@media (max-width: 960px) { .snapshot-top { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .snap-inputs { grid-template-columns: 1fr 1fr; } }

.explainer { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: 24px; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: var(--card-shadow); }
.explainer-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.explainer-figs div { padding: 24px 20px; border-radius: var(--radius-md); background: var(--bg-alt); }
.explainer-figs b { display: block; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; font-weight: 700; font-variant-numeric: tabular-nums; }
.explainer-figs div:first-child b { background: var(--sun-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.explainer-figs span { color: var(--text-2); font-size: 14px; }
.explainer h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.025em; line-height: 1.12; }
.explainer p { color: var(--text-2); margin-top: 12px; }
@media (max-width: 860px) { .explainer { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-elev); color: var(--text); box-shadow: var(--card-shadow); }
.post-card:hover { text-decoration: none; }
.post-card .project-img { aspect-ratio: 16 / 10; }
.post-card:hover img { transform: scale(1.04); }
.post-card img { transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.post-card .body { padding: 22px 24px 26px; }
.post-card h3 { font-size: 21px; line-height: 1.22; letter-spacing: -0.02em; margin-top: 6px; }
.post-card p { color: var(--text-2); font-size: 15px; margin-top: 8px; }
.post-card time { display: block; margin-top: 14px; font-size: 13px; color: var(--text-3); }
.post-card.placeholder { border: 1px dashed var(--line); background: transparent; box-shadow: none; justify-content: center; align-items: center; text-align: center; padding: 40px 28px; min-height: 300px; }
.post-card.placeholder h3 { color: var(--text-2); }
@media (max-width: 960px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-list { grid-template-columns: 1fr; } }

.article { width: min(692px, 100% - 44px); margin: 0 auto; }
.article-head { padding: clamp(64px, 9vw, 110px) 0 32px; }
.article-head .tag { margin-bottom: 14px; }
.article-head h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
.article-head .lede { margin-top: 18px; }
.article-meta { margin-top: 22px; font-size: 14px; color: var(--text-3); }
.article-figure { width: min(980px, 100% - 24px); margin: 0 auto 48px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; }
.article-figure img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 19px; line-height: 1.6; letter-spacing: -0.012em; padding-bottom: 80px; }
.prose h2 { font-size: 30px; line-height: 1.15; letter-spacing: -0.025em; margin: 52px 0 14px; }
.prose h3 { font-size: 22px; margin: 34px 0 10px; }
.prose p { margin: 0 0 20px; color: var(--text); }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 28px; font-size: 16px; }
.prose th, .prose td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-size: 14px; color: var(--text-2); font-weight: 600; }
.prose .callout { padding: 22px 24px; border-radius: var(--radius-md); background: var(--bg-alt); margin: 28px 0; font-size: 17px; }
.prose .callout p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-size: clamp(19px, 2vw, 22px); font-weight: 600; letter-spacing: -0.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 300; color: var(--text-2); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 26px; color: var(--text-2); font-size: 17px; max-width: 700px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); color: var(--text-2); font-size: 12px; line-height: 1.5; padding: 40px 0 28px; }
.footer-inner { width: min(1024px, 100% - 44px); margin: 0 auto; }
.footer-note { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.footer h4 { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 10px; letter-spacing: -0.01em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 18px; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff;
  box-shadow: 0 10px 30px rgba(37,211,102,.35), 0 2px 6px rgba(0,0,0,.15);
  transition: transform .25s ease;
}
.wa-fab:hover { transform: scale(1.06); text-decoration: none; }
.wa-fab svg { width: 28px; height: 28px; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.show { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll::after { animation: none; }
  .hero-media img { transform: none !important; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Print ---------- */
@media print {
  .gnav, .subnav, .wa-fab, .footer { display: none; }
}

/* ---------- 3D hero animation (blueprint → clay → real plant) ---------- */
.hero-3d { place-items: start center; background: #0a1b33; }
.hero-3d .hero-copy { padding-top: clamp(84px, 12vh, 140px); padding-bottom: 0; }
.hero-3d h1 { font-size: clamp(48px, 8.3vw, 99px); }
.hero-3d .lede { font-size: clamp(17px, 1.9vw, 21px); margin-top: 16px; }
.hero-3d::after {
  background: linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.34) 34%, rgba(0,0,0,0) 58%, rgba(0,0,0,.18) 100%);
}
.hero-3d .hero-media img { display: none; transform: none; }
.hero-3d .hero-media video { object-position: center 70%; }
.hero-3d.static .hero-media img { display: block; object-position: center 70%; }
.hero-3d.static .hero-media video { display: none; }
@media (max-width: 640px) {
  .hero-3d { min-height: 88svh; }
  }

/* Home: "Let's get you Solarised" intro sits tight above its tiles */
.solarise-head { padding-bottom: 8px; }
.solarise-head + .tiles, .tiles + .tiles { padding-top: 0; }

/* ==========================================================================
   Home page bands: each major section sits on its own tone so visitors can
   feel where one topic ends and the next begins.
   ========================================================================== */
:root {
  --band-a: #f5f5f7;            /* track record */
  --band-b: #ffffff;            /* solutions */
  --band-c: #edf1f6;            /* how we work + FAQ (cool tint) */
  --band-d: #1d1d1f;            /* contact (deep) */
  --logo-cut: var(--band-a);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --band-a: #0e0e10; --band-b: #000000; --band-c: #0b1016; --band-d: #161618; }
}
:root[data-theme="dark"] { --band-a: #0e0e10; --band-b: #000000; --band-c: #0b1016; --band-d: #161618; }

.band { position: relative; }
.band-a { background: var(--band-a); }
.band-b { background: var(--band-b); }
.band-c { background: var(--band-c); }
.band-d { background: var(--band-d); }
.band .section, .band .highlights, .band .bg-alt, .band .section-tight { background: transparent; }
.band-a .stats-sec { padding-bottom: clamp(36px, 5vw, 64px); }
.band-a .highlights { padding-top: clamp(40px, 6vw, 72px); }
.band-b { padding-bottom: clamp(56px, 8vw, 110px); }
.band-c .faq-sec { padding-top: 0; }
.band-d .section + .section { padding-top: 0; }
.band-d .channel { background: #2a2a2d; }

/* Space between the tile groups inside "Let's get you Solarised" */
.band-b .tiles + .tiles { margin-top: clamp(28px, 4vw, 56px); }
.band-b .tile:not(.image-bg):not(.theme-dark) { background: var(--bg-alt); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band-b .tile:not(.image-bg):not(.theme-dark) { background: #141416; } }
:root[data-theme="dark"] .band-b .tile:not(.image-bg):not(.theme-dark) { background: #141416; }

/* ---------- Client logo ticker ---------- */
.logos { padding: 0 0 clamp(24px, 4vw, 40px); }
.logos-title { text-align: center; font-size: 14px; color: var(--text-3); letter-spacing: .02em; margin-bottom: 26px; }
.marquee {
  display: flex; overflow: hidden; gap: 0; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; flex: none; align-items: center; gap: clamp(40px, 6vw, 72px); padding: 0 clamp(20px, 3vw, 36px);
  list-style: none; margin: 0; min-width: 100%; justify-content: space-around;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.client { display: inline-flex; align-items: center; gap: 9px; color: var(--text-2); opacity: .78; transition: opacity .3s, color .3s; }
.client-mark { display: block; flex: none; background: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; }
.client-label { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; }
.client-word { display: block; color: var(--text-2); opacity: .78; font-size: 19px; font-weight: 650; letter-spacing: -0.015em; white-space: nowrap; transition: opacity .3s, color .3s; }
.client:hover, .client-word:hover { opacity: 1; color: var(--text); }
.logo { display: block; height: 30px; width: auto; color: var(--text-2); opacity: .7; transition: opacity .3s, color .3s; overflow: visible; }
.logo text { font-family: var(--font); }
.logo:hover { opacity: 1; color: var(--text); }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; flex-wrap: wrap; justify-content: center; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 24px; }
  .marquee-track[aria-hidden="true"] { display: none; }
}

/* ---------- Process rail (How we work) ---------- */
.proc-rail {
  display: grid; grid-template-columns: repeat(5, minmax(240px, 1fr)); gap: 16px;
  width: min(var(--max-wide), 100% - 24px); margin: 0 auto clamp(64px, 9vw, 110px);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0 8px;
}
.proc-rail::-webkit-scrollbar { display: none; }
.proc { scroll-snap-align: start; background: var(--bg-elev); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--card-shadow); }
.proc-media { aspect-ratio: 16 / 10; background: #0f1d33; display: grid; place-items: center; overflow: hidden; }
.proc-media img { width: 100%; height: 100%; object-fit: cover; }
.proc-media .viz { width: 100%; height: 100%; background: var(--bg-elev); padding: 10px 8px 4px; }
.proc-body { padding: 18px 20px 22px; }
.proc-body .step-num { display: block; margin-bottom: 8px; }
.proc h3 { font-size: 19px; letter-spacing: -0.02em; }
.proc p { margin-top: 6px; font-size: 15px; color: var(--text-2); line-height: 1.45; }
@media (max-width: 1100px) { .proc-rail { grid-template-columns: repeat(5, 72vw); width: 100%; padding-inline: 22px; scroll-padding-inline: 22px; } }
@media (min-width: 640px) and (max-width: 1100px) { .proc-rail { grid-template-columns: repeat(5, 320px); } }
/* chart + diagram */
.viz text { font-family: var(--font); }
.viz .ax { font-size: 9.5px; fill: var(--text-3); }
.viz .g { stroke: var(--line); stroke-width: 1; opacity: .55; }
.viz .base { stroke: var(--text-3); stroke-width: 1; }
.gen .bar path { fill: var(--sun-1); transition: opacity .2s; }
.gen .bar .hit { fill: transparent; }
.gen:hover .bar path { opacity: .45; }
.gen .bar:hover path, .gen .bar:focus path { opacity: 1; }
.gen .bar:focus { outline: none; }
.sld .box { fill: none; stroke: var(--text-2); stroke-width: 1.4; }
.sld .pv { fill: #1f5fbf; opacity: .85; }
.sld .dc { stroke: #2fb6ff; stroke-width: 2; fill: none; stroke-dasharray: 4 3; animation: flow 1.4s linear infinite; }
.sld .ac { stroke: var(--sun-1); stroke-width: 2; fill: none; stroke-dasharray: 6 3; animation: flow 1.4s linear infinite; }
.sld .ac-l { stroke: var(--text-2); stroke-width: 1.3; }
.sld .grid-l { stroke: var(--text-2); stroke-width: 1.6; }
.sld .lb { font-size: 9.5px; fill: var(--text-2); }
.sld .dc-t { fill: #2fb6ff; font-weight: 600; } .sld .ac-t { fill: var(--sun-1); font-weight: 600; }
@keyframes flow { to { stroke-dashoffset: -14; } }
@media (prefers-reduced-motion: reduce) { .sld .dc, .sld .ac { animation: none; } }

/* ---------- Partner programme (high-contrast band) ---------- */
.band-partner { background: linear-gradient(135deg, #ff8a00 0%, #ffb000 55%, #ffd23f 100%); color: #1d1d1f; }
.band-partner .eyebrow { color: #1d1d1f; opacity: .75; }
.band-partner .headline-lg, .band-partner h3 { color: #111; }
.band-partner .lede { color: rgba(17,17,17,.78); }
.partner-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.partner-grid li { background: rgba(255,255,255,.55); border-radius: var(--radius-md); padding: 22px 22px 24px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.partner-grid b { display: block; font-size: 19px; letter-spacing: -0.02em; color: #111; }
.partner-grid span { display: block; margin-top: 6px; font-size: 15px; color: rgba(17,17,17,.75); line-height: 1.45; }
.partner-perks { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.partner-perks li { padding: 8px 16px; border-radius: 980px; background: rgba(17,17,17,.88); color: #fff; font-size: 14px; }
.band-partner .cta-row { margin-top: 32px; }
.band-partner .link-more { color: #111; font-weight: 500; }
.btn-dark { background: #111; color: #fff; }
.btn-dark:hover { background: #2a2a2a; }
@media (max-width: 860px) { .partner-grid { grid-template-columns: 1fr; } }
@media (min-width: 561px) and (max-width: 860px) { .partner-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Side section label ---------- */
.side-nav { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.side-nav a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.side-nav .sn-label {
  font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 980px; white-space: nowrap;
  background: var(--nav-bg); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 6px rgba(0,0,0,.12); opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; pointer-events: none;
}
.side-nav .sn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); opacity: .55; box-shadow: 0 0 0 2px var(--nav-bg); transition: all .25s; }
.side-nav a.active .sn-dot { background: var(--sun-1); opacity: 1; height: 22px; border-radius: 6px; }
.side-nav.awake a.active .sn-label, .side-nav a:hover .sn-label, .side-nav a:focus-visible .sn-label { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .side-nav { right: 6px; gap: 8px; }
  .side-nav .sn-dot { width: 6px; height: 6px; }
  .side-nav a.active .sn-dot { height: 16px; }
  .side-nav a:not(.active) .sn-label { display: none; }
  .side-nav:not(.awake) { opacity: .6; }
  .side-nav .sn-label { font-size: 11px; padding: 3px 8px; }
}
@media (max-width: 560px) {
  .partner-grid { gap: 10px; }
  .partner-grid li { padding: 16px 18px 18px; }
  .partner-grid b { font-size: 17px; }
  .partner-grid span { font-size: 14px; }
  .proc-rail { margin-bottom: 48px; }
}

/* ==========================================================================
   Calculator: 25-year snapshot (light by default, follows the site theme)
   Series colours validated for CVD and contrast (dataviz validator):
   savings · tax benefit · loan · O&M+insurance
   ========================================================================== */
:root { --s-sav: #2a78d6; --s-tax: #eda100; --s-loan: #6250d6; --s-om: #eb6834; --snap-bg: #f2f5f9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --s-sav: #3987e5; --s-tax: #c98500; --s-loan: #9085e9; --s-om: #d95926; --snap-bg: #0b1016; } }
:root[data-theme="dark"] { --s-sav: #3987e5; --s-tax: #c98500; --s-loan: #9085e9; --s-om: #d95926; --snap-bg: #0b1016; }

.snap-band { background: var(--snap-bg); }
.snap-head { max-width: 820px; margin-bottom: 28px; }
.snap-head .lede { margin-top: 12px; }
#snapshotHeadline { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; }

.kpis { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.kpi { border-radius: var(--radius-md); padding: 20px 20px 18px; background: var(--bg-elev); box-shadow: var(--card-shadow); display: flex; flex-direction: column; min-height: 132px; }
.kpi span { font-size: 13px; color: var(--text-2); }
.kpi b { margin-top: auto; padding-top: 10px; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.03em; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.05; }
.kpi small { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.kpi-hero { background: linear-gradient(135deg, #ff8a00 0%, #ffb000 55%, #ffd23f 100%); color: #1d1d1f; box-shadow: 0 10px 30px rgba(255,149,0,.25); }
.kpi-hero span, .kpi-hero small { color: rgba(29,29,31,.75); }
.kpi-hero b { font-size: clamp(36px, 4.2vw, 54px); }
.kpi-hero em { font-style: normal; font-weight: 600; font-size: 17px; }
.kpi-dark { background: linear-gradient(140deg, #0b2545 0%, #0f3b73 70%, #1667c4 100%); color: #fff; }
.kpi-dark span, .kpi-dark small { color: rgba(255,255,255,.72); }
.kpi-dark b { font-size: clamp(32px, 3.4vw, 44px); }
@media (max-width: 1000px) { .kpis { grid-template-columns: 1fr 1fr; } .kpi-hero { grid-column: 1 / -1; } }

.viz-card { background: var(--bg-elev); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 28px); box-shadow: var(--card-shadow); margin-top: 16px; }
.viz-card h3 { font-size: 19px; letter-spacing: -0.02em; }
.viz-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.viz-head p { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend span[hidden] { display: none; }
.k { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.k-sav { background: var(--s-sav); } .k-tax { background: var(--s-tax); } .k-loan { background: var(--s-loan); } .k-om { background: var(--s-om); }
.chart-host { position: relative; }
.chart-host svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-host text, .viz-cum text, .viz-annual text { font-family: var(--font); }
.chart-host .ax { font-size: 11px; fill: var(--text-3); font-variant-numeric: tabular-nums; }
.chart-host .grid { stroke: var(--line); stroke-width: 1; opacity: .6; }
.chart-host .zero { stroke: var(--text-3); stroke-width: 1; }
.cum-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.be-line { stroke: var(--sun-1); stroke-width: 1.5; stroke-dasharray: 4 4; }
.be-dot { fill: var(--sun-1); stroke: var(--bg-elev); stroke-width: 2; }
.be-text { font-size: 12px; font-weight: 600; fill: var(--text); }
.end-dot { fill: #0071e3; stroke: var(--bg-elev); stroke-width: 2; }
.cross { stroke: var(--text-3); stroke-width: 1; }
.hover-dot { fill: #0071e3; stroke: var(--bg-elev); stroke-width: 2.5; }
.debt-zone { fill: var(--s-loan); opacity: .06; }
.s-sav { fill: var(--s-sav); } .s-tax { fill: var(--s-tax); } .s-loan { fill: var(--s-loan); } .s-om { fill: var(--s-om); }
.viz-annual .yr path { transition: opacity .15s; }
.viz-annual.hovering .yr:not(.on) path { opacity: .35; }
.chart-tip { position: absolute; z-index: 3; pointer-events: none; min-width: 150px; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.5;
  background: var(--bg-elev); color: var(--text); box-shadow: 0 8px 28px rgba(0,0,0,.16); border: 1px solid var(--line); }
.chart-tip[hidden] { display: none; }
.chart-tip b { display: block; font-size: 13px; margin-bottom: 2px; }
.chart-tip span { display: flex; align-items: center; gap: 6px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart-tip .net { color: var(--text); font-weight: 600; margin-top: 2px; }

.snap-split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.snap-split .viz-card h3 { margin-bottom: 8px; }
@media (max-width: 900px) { .snap-split { grid-template-columns: 1fr; } }
.data-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; }
.data-table th, .data-table td { padding: 11px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table thead th { font-size: 12px; font-weight: 500; color: var(--text-2); }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table tbody th { font-weight: 500; }
.data-table tr:last-child td, .data-table tr:last-child th { border-bottom: 0; }
.data-table .strong { font-weight: 700; }
.data-table .neg { color: var(--s-om); }
.miles td.strong { color: #1a8f3c; }
.be-list { list-style: none; margin: 0; padding: 0; }
.be-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.be-list li:last-child { border-bottom: 0; }
.be-list li[hidden] { display: none; }
.be-list span { color: var(--text-2); font-size: 14px; }
.be-list b { font-size: 18px; font-variant-numeric: tabular-nums; }
details.years { margin-top: 14px; }
details.years summary, details.tune summary { cursor: pointer; color: var(--link); font-size: 15px; list-style: none; }
details.years summary::-webkit-details-marker, details.tune summary::-webkit-details-marker { display: none; }
details.years summary::after, details.tune summary::after { content: " ›"; display: inline-block; transition: transform .2s; }
details[open].years summary::after, details[open].tune summary::after { transform: rotate(90deg); }
details.tune { margin-top: 18px; padding: 16px 20px; border-radius: var(--radius-md); background: var(--bg-alt); }
.tune-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 14px; }
.tune-grid .field { margin-bottom: 12px; }
.tune-grid label { font-size: 13px; font-weight: 500; color: var(--text-2); }
#taxRow { margin-top: 10px; }
#taxRow.off { opacity: .45; }
.bom-table td { white-space: normal; text-align: left; color: var(--text-2); }
.bom-table td:nth-child(3), .bom-table td:nth-child(4) { white-space: nowrap; color: var(--text); }
.bom-table thead th { text-align: left; }
.bom-table tbody th { white-space: nowrap; }
.bom-note { margin-top: 14px; font-size: 13px; color: var(--text-3); }
#bom .explainer { margin-top: 20px; grid-template-columns: 1.2fr 1fr; }
.snap-split > *, .kpis > *, .calc-layout > * { min-width: 0; }

/* ---------- Hero rotating word ---------- */
.rotator { display: inline-block; position: relative; padding-bottom: .08em; }
.rot-word {
  display: inline-block; background: var(--sun-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform .25s cubic-bezier(.3,.7,.2,1), opacity .25s ease, filter .25s ease; will-change: transform, opacity;
}
.rot-word.out { transform: translateY(-38%); opacity: 0; filter: blur(6px); }
.rot-word.in { transform: translateY(38%); opacity: 0; filter: blur(6px); transition: none; }

/* ---------- Handover photo strip (home) ---------- */
.handovers { padding: clamp(56px, 8vw, 96px) 0 clamp(24px, 4vw, 40px); }
.handovers .section-head { margin-bottom: clamp(24px, 4vw, 40px); }
.photo-marquee .marquee-track { gap: 18px; padding: 0 9px; justify-content: flex-start; animation-duration: 70s; }
.photo-marquee li { flex: none; width: clamp(240px, 26vw, 340px); }
.photo-marquee figure { margin: 0; }
.photo-marquee img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 18px; background: var(--surface-2, #e8e8ed); }
.photo-marquee figcaption { margin-top: 10px; font-size: 14px; color: var(--text-2); }
.handovers-more { margin-top: clamp(20px, 3vw, 32px); text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .photo-marquee { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; scroll-snap-type: x mandatory; }
  .photo-marquee .marquee-track { flex-wrap: nowrap; justify-content: flex-start; }
  .photo-marquee li { scroll-snap-align: start; }
}

/* ---------- Photo slideshow (project cards, case studies) ---------- */
.slides { position: relative; width: 100%; height: 100%; }
.slides-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides-track::-webkit-scrollbar { display: none; }
.slides-track > img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.slides-dots { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 6px; padding: 5px 8px; border-radius: 999px; background: rgba(0,0,0,.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.slides-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); transition: width .3s, background .3s; }
.slides-dots i.on { width: 16px; border-radius: 3px; background: #fff; }
.slides-btn { position: absolute; top: 50%; width: 36px; height: 36px; margin-top: -18px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.82) center / 14px no-repeat; box-shadow: 0 2px 10px rgba(0,0,0,.18); opacity: 0; transition: opacity .25s; }
.slides-btn.prev { left: 10px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M10 2 4 8l6 6' fill='none' stroke='%231d1d1f' stroke-width='2'/%3E%3C/svg%3E"); }
.slides-btn.next { right: 10px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m6 2 6 6-6 6' fill='none' stroke='%231d1d1f' stroke-width='2'/%3E%3C/svg%3E"); }
.slides:hover .slides-btn, .slides-btn:focus-visible { opacity: 1; }
.slides-btn[disabled] { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .slides-btn { display: none; } }
.project-img .slides img { transition: none; }
.case-link { display: inline-block; margin-top: 14px; }

/* ---------- Case study pages ---------- */
.case-hero { position: relative; min-height: min(88svh, 820px); display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: #0a1b33; }
.case-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.66) 100%); }
.case-hero-copy { position: relative; z-index: 1; padding-bottom: clamp(36px, 6vw, 72px); }
.case-hero .eyebrow a { color: inherit; }
.case-hero .eyebrow { color: var(--sun-2); }
.case-kw { font-size: clamp(84px, 16vw, 200px); line-height: .9; font-weight: 700; letter-spacing: -.05em; margin: 6px 0 8px; }
.case-kw small { font-size: .3em; letter-spacing: 0; margin-left: .15em; font-weight: 600; }
.case-place { font-size: clamp(16px, 1.8vw, 20px); color: rgba(255,255,255,.85); margin-top: 8px; }
.case-lede { max-width: 780px; margin: 0 0 clamp(28px, 4vw, 44px); font-size: clamp(19px, 2.2vw, 26px); color: var(--text); }
.bento { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); grid-auto-flow: dense; gap: 16px; }
.bento.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.bento + .bento { margin-top: 16px; }
.cs-tile { position: relative; border-radius: 26px; background: var(--bg-alt); overflow: hidden; min-width: 0; }
.band-a .cs-tile { background: var(--bg); }
.cs-tile.fact { padding: 22px 24px; }
.cs-tile.fact span { display: block; font-size: 13px; color: var(--text-3); margin-bottom: 6px; }
.cs-tile.fact b { font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.02em; }
.cs-tile.comp { padding: clamp(24px, 3vw, 34px); }
.cs-tile.comp h3 { margin: 8px 0 10px; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.02em; }
.cs-tile.comp p { color: var(--text-2); }
.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; margin-top: 16px; }
.promise div { padding: 22px 24px; border-radius: 26px; background: #0a1b33; color: #fff; }
.promise b { display: block; font-size: clamp(34px, 4vw, 48px); letter-spacing: -.03em; line-height: 1; color: var(--sun-2); }
.promise span { display: block; margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.78); }
.cs-tile-img { margin: 0; aspect-ratio: 4 / 3; }
.cs-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.cs-tile-img.cs-wide { grid-column: span 2; aspect-ratio: auto; }
.cs-tile-img.cs-tall { grid-row: span 2; aspect-ratio: auto; }
.cs-tile-img.cs-tall img { object-fit: contain; background: #fff; }
@media (max-width: 700px) { .cs-tile-img.cs-wide { grid-column: auto; aspect-ratio: 4 / 3; } .cs-tile-img.cs-tall { grid-row: auto; aspect-ratio: 3 / 4; } }
.cs-pill { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: #fff; background: rgba(10,27,51,.86); border: 1.5px solid var(--sun-2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cs-pill b { color: var(--sun-2); margin-right: 4px; }
.ticks { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--sun); border-bottom: 2px solid var(--sun); transform: rotate(-45deg); }
.timeline { margin-top: 16px; }
.num-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.num-grid div { padding: 26px; border-radius: 26px; background: rgba(255,255,255,.06); }
.num-grid b { display: block; font-size: clamp(40px, 5vw, 60px); letter-spacing: -.04em; line-height: 1; color: var(--sun-2); }
.num-grid span { display: block; margin-top: 10px; color: rgba(255,255,255,.78); }
.case-slides { border-radius: 26px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-alt); }
.case-cta { margin-top: 28px; }

/* Quiet project tag on real photos (services, roof types) */
.captioned { position: relative; height: 100%; }
.captioned > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-tag { position: absolute; right: 12px; bottom: 10px; max-width: calc(100% - 24px); font-size: 11px; letter-spacing: .01em;
  color: rgba(255,255,255,.82); text-shadow: 0 1px 6px rgba(0,0,0,.55); pointer-events: none; text-align: right; }

/* Case-study teasers (projects page) */
.case-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.case-teaser { position: relative; display: flex; align-items: flex-end; aspect-ratio: 16 / 11; border-radius: 26px; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; }
.case-teaser img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.case-teaser::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%); }
.case-teaser:hover img { transform: scale(1.04); }
.ct-copy { display: grid; gap: 4px; padding: 24px; }
.ct-copy .ct-kw { color: #fff; font-size: clamp(54px, 6vw, 76px); font-weight: 700; letter-spacing: -.05em; line-height: .95; }
.ct-kw small { font-size: .32em; margin-left: .12em; letter-spacing: 0; font-weight: 600; }
.ct-copy b { font-size: 20px; letter-spacing: -.01em; }
.ct-copy span { color: rgba(255,255,255,.82); font-size: 14px; }
.ct-copy .ct-more { margin-top: 8px; color: var(--sun-2); font-weight: 600; }
.ct-copy .ct-more::after { content: " ›"; }
.hl-card .hl-link { display: inline-flex; margin-top: 16px; color: #fff; }

#case-studies, #portfolio, #flow { scroll-margin-top: 120px; }

/* ---------- Projects: India map ---------- */
.india-map { background: radial-gradient(120% 90% at 70% 40%, #12305a 0%, #0a1b33 55%, #071426 100%); color: #f5f5f7; padding: clamp(56px, 8vw, 110px) 0; position: relative; overflow: hidden; }
.india-map::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(190,222,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(190,222,255,.07) 1px, transparent 1px); background-size: 40px 40px; }
.map-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .map-grid { grid-template-columns: 1fr; } .map-art { order: -1; width: 92%; } .map-credit { position: static; margin-top: 8px; } }
.map-copy .lede { color: rgba(245,245,247,.78); }
.map-stats { display: flex; gap: clamp(18px, 3vw, 36px); margin: 28px 0; flex-wrap: wrap; }
.map-stats b { display: block; font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.03em; color: var(--sun-2); line-height: 1; }
.map-stats span { font-size: 13px; color: rgba(245,245,247,.65); }
.map-list { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.map-list li { display: grid; grid-template-columns: 1fr 70px 80px; gap: 8px; padding: 9px 0; border-bottom: 1px solid rgba(190,222,255,.12); align-items: baseline; }
.map-list li.head { font-size: 12px; color: rgba(245,245,247,.5); text-transform: uppercase; letter-spacing: .06em; }
.map-list span small { margin-left: 8px; font-size: 12px; color: rgba(245,245,247,.5); }
.map-list b, .map-list em { text-align: right; font-style: normal; font-weight: 600; }
.map-list li.head b, .map-list li.head em { font-weight: 500; }
.map-art { position: relative; aspect-ratio: 612 / 696; width: 100%; max-width: 620px; justify-self: center; }
.map-art > img, .map-art > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-art .pin { cursor: pointer; outline: none; }
.map-art .dot { fill: #f5a733; stroke: #fff3d6; stroke-width: 1; filter: drop-shadow(0 0 6px rgba(245,167,51,.9)); transition: fill .2s; }
.map-art .halo { fill: none; stroke: #f5a733; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pin-pulse 2.8s ease-out infinite; }
.map-art .pin:hover .dot, .map-art .pin:focus .dot { fill: #ffd27a; }
@keyframes pin-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3); opacity: 0; } }
.map-labels text { fill: rgba(245,245,247,.85); font: 600 13px var(--font); paint-order: stroke; stroke: rgba(7,20,38,.8); stroke-width: 3px; }
.map-credit { position: absolute; left: 0; right: 0; bottom: -28px; text-align: center; font-size: 11px; color: rgba(245,245,247,.4); }
@media (prefers-reduced-motion: reduce) { .map-art .halo { animation: none; opacity: .3; } }
#map { scroll-margin-top: 104px; }
.map-copy .lede { margin-top: 16px; }
.map-states { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.map-states li { padding: 11px 0; border-bottom: 1px solid rgba(190,222,255,.12); display: flex; flex-direction: column; gap: 2px; }
.map-states span { font-weight: 600; font-size: 16px; }
.map-states span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #f5a733; box-shadow: 0 0 8px #f5a733; margin-right: 10px; vertical-align: middle; }
.map-states small { font-size: 12px; color: rgba(245,245,247,.55); padding-left: 17px; }
@media (max-width: 420px) { .map-states { grid-template-columns: 1fr; } }

/* Map build-up: outline draws in, then dots drop onto their towns (about 1.6 s) */
.map-art > img { opacity: 0; transform: scale(.96); transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.map-art.show > img { opacity: 1; transform: none; }
.map-art .pin { opacity: 0; transform: translateY(-46px); }
.map-art .map-labels { opacity: 0; transition: opacity .5s ease 1.3s; }
.map-art.show .pin { animation: pin-drop .55s cubic-bezier(.3,1.5,.5,1) forwards; animation-delay: calc(.35s + var(--i, 0) * .045s); }
.map-art.show .map-labels { opacity: 1; }
@keyframes pin-drop { 0% { opacity: 0; transform: translateY(-46px); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .map-art > img, .map-art .pin, .map-art .map-labels { opacity: 1; transform: none; animation: none; transition: none; }
}

/* EPC rooftop tile: copy on top, the plant-types film below (its labels are baked in, so no text over it) */
.tiles .tile.tile-video-card, .band-b .tiles .tile.tile-video-card, :root .band-b .tiles .tile.tile-video-card { background: #0a1b33; color: #f5f5f7; padding-bottom: 0; }
.tile.tile-video-card p { color: rgba(245,245,247,.8); }
.tile.tile-video-card .link-more { color: #fff; }
.tile.tile-video-card .eyebrow { color: var(--sun-2); }
.tile-video { width: calc(100% + 48px); margin: clamp(28px, 4vw, 44px) -24px 0; aspect-ratio: 16 / 9; background: #0a1b33; }
.tile-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tiles .tile.tile-video-card { min-height: 0; }

/* ---------- Blog articles: figures, tables, sources, related ---------- */
.prose .post-fig { margin: 34px 0 34px; }
.prose .post-fig img { width: 100%; height: auto; border-radius: var(--radius-md); display: block; }
.prose .post-fig figcaption { margin-top: 10px; font-size: 14px; color: var(--text-3); }
.prose .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 28px; }
.prose .table-wrap table { margin: 0; min-width: 560px; }
.prose ol { padding-left: 1.4em; }
.prose sub { font-size: .7em; }
.post-sources { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.prose .post-sources h2 { font-size: 20px; margin: 0 0 12px; }
.prose .post-sources li { margin-bottom: 6px; }
.prose .post-sources p { font-size: 14px; color: var(--text-3); margin-top: 14px; }
.blog-filters { margin-bottom: 32px; }
.post-card[hidden] { display: none; }
.related-posts { padding-top: 0; }
.related-posts .headline-md { margin-bottom: 24px; }
.related-posts .post-card h3 { font-size: 18px; }

/* ---------- Offices (contact) ---------- */
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); max-width: 1180px; margin: 0 auto; }
.office {
  display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  background: var(--bg-elev); color: var(--text); box-shadow: var(--card-shadow);
}
.office-map { position: relative; aspect-ratio: 16 / 9; background: #e8eaed; }
.office-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.office-body { display: flex; flex-direction: column; flex: 1; padding: clamp(24px, 3vw, 40px); }
.office-tag {
  align-self: flex-start; padding: 5px 12px; border-radius: 980px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sun-1); background: color-mix(in srgb, var(--sun-1) 14%, transparent);
}
.office h3 { margin: 16px 0 14px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.12; letter-spacing: -0.025em; }
.office-addr { margin-bottom: 28px; display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-style: normal; font-size: 17px; line-height: 1.55; }
.office-addr svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--text-3, var(--text-2)); }
.office-addr em { display: block; margin-top: 6px; font-style: normal; font-size: 15px; font-weight: 500; color: var(--link); }
.office-addr:hover { text-decoration: none; color: var(--text); }
.office-addr:hover em { text-decoration: underline; }
.office-foot { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.office-phone { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.015em; color: var(--text); font-variant-numeric: tabular-nums; }
.office-phone svg { width: 20px; height: 20px; color: var(--text-2); }
.office-phone:hover { text-decoration: none; color: var(--link); }
.office-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.office-actions .btn { min-height: 48px; padding: 10px 18px; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.office-actions svg { width: 18px; height: 18px; flex: none; }
.btn-wa { background: #25d366; color: #08341a; }
.btn-wa:hover { background: #1fc05c; color: #08341a; }
@media (max-width: 640px) { .offices { grid-template-columns: 1fr; } }
:root[data-theme="dark"] .office-map { background: #2a2a2d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .office-map { background: #2a2a2d; } }

/* ---------- Arcade (contact) ---------- */
.arcade { max-width: 980px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-elev); box-shadow: var(--card-shadow); }
.arcade-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px clamp(16px, 2.4vw, 24px); border-bottom: 1px solid var(--line); }
.arcade-tabs { display: inline-flex; padding: 4px; border-radius: 980px; background: var(--bg-alt); }
.arcade-tabs button { border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 15px; font-weight: 600; padding: 8px 16px; border-radius: 980px; cursor: pointer; transition: background .2s, color .2s; }
.arcade-tabs button[aria-selected="true"] { background: var(--bg-elev); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.arcade-hud { display: flex; gap: 18px; align-items: center; font-size: 15px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.arcade-hud b { color: var(--text); font-size: 20px; letter-spacing: -0.01em; }
.arcade-hud .life { display: inline-block; width: 10px; height: 10px; margin-left: 4px; border-radius: 50%; background: var(--sun-1); }
.arcade-stage { position: relative; aspect-ratio: 16 / 10; }
#arcade[data-current="tetris"] .arcade-stage { aspect-ratio: 16 / 11; }
.arcade-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; outline: none; }
.arcade.playing .arcade-stage canvas { touch-action: none; }
body.arcade-playing .wa-fab { opacity: 0; pointer-events: none; transform: scale(.8); }
.wa-fab { transition: opacity .25s, transform .25s; }
.arcade-stage canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--link); }
.arcade-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.arcade-overlay[hidden] { display: none; }
.arcade-card { max-width: 420px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: var(--card-shadow); }
.arcade-card h3 { margin: 0; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.02em; }
.arcade-card p { margin: 0; color: var(--text-2); line-height: 1.5; }
.arcade-card .btn { min-width: 140px; margin-top: 6px; }
.arcade-cta { margin-top: 4px; }
.arcade-pad { display: flex; justify-content: center; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.arcade-pad button { width: 56px; height: 48px; border-radius: 14px; border: 0; background: var(--bg-alt); color: var(--text); cursor: pointer; display: grid; place-items: center; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.arcade-pad button:active { background: var(--line); }
.arcade-pad svg { width: 22px; height: 22px; }
#arcade[data-current="sun"] .only-tetris { display: none; }
#arcade[data-current="sun"] .arcade-pad button { width: 110px; }
@media (hover: hover) and (pointer: fine) { #arcade[data-current="sun"] .arcade-pad { display: none; } }
@media (max-width: 640px) {
  .arcade-stage, #arcade[data-current="tetris"] .arcade-stage { aspect-ratio: 3 / 4; }
  .arcade-top { justify-content: center; }
}
