/* Saivalabs homepage, next version. Separate from the V4 build. */
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Medium.ttf"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-SemiBold.ttf"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-Medium.ttf"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-SemiBold.ttf"); font-weight: 600; font-display: swap; }

:root {
  --forest: #0a1a10; --tile-bg: #132a1c; --ivory: #f3eee3; --ink: #1f2a22; --mint: #6ee7b7;
  --brass: #b98d3e; --brass-pale: #e9d6a0; --amber: #f5a524;
  --hair: rgba(185, 141, 62, .45); --hair-soft: rgba(185, 141, 62, .22);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif; --body: "Barlow", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 84px); --nav-h: 64px;
  /* Three easing curves for all motion: entrances, small pops, camera and scene moves */
  --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-pop: cubic-bezier(.34, 1.56, .64, 1); --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Time of day ---------- */
body[data-time="day"] {
  --sky: linear-gradient(180deg, #dfeadf 0%, #eef0e4 55%, #f3eee3 100%);
  --fg: #1f2a22; --fg-soft: #4c5a4e; --eyebrow: #0b6646; --panel: rgba(255, 255, 255, .6); --panel-line: rgba(31, 42, 34, .16);
  --cta-bg: #0a1a10; --cta-fg: #f3eee3; --hex: rgba(31, 42, 34, .1); --thumb-bg: #e3ecdc;
  --ground: #d6cfbc; --grass: #cbdcbb; --road: #b4b2a5; --pave: #dcd8cb; --wall: #f6f1e4; --roof: #b98d3e; --panel-m: #3f7290;
  --steel: #a9b3ae; --white: #ffffff; --dark: #2c4a3a; --dark2: #3d5c4b; --crop: #9cc177; --crop2: #b5cf89; --paddy: #8fc3ab;
  --tile: #c8643c; --awning: #1d8a5f; --brassm: #d2a24c; --mintm: #6ee7b7; --leaf: #5b9862; --leaf2: #80b680;
  --win: #7fb1c4; --win2: #a9cad6; --led: #58d6a4; --shade: #26342b; --edge: rgba(31, 42, 34, .3); --line: #33423a; --mark: #f3eee3; --glow: 0;
  --bus: #1fa87a; --glass: #36565e; --kerb: #e6e1d2; --car1: #d9623f; --car2: #3f6fb0; --zebra: #f6f2e8; --cast: rgba(20, 40, 30, .15);
}
body[data-time="dusk"] {
  --sky: radial-gradient(ellipse 62% 58% at 70% 66%, #d28a45 0%, #8a5a3c 26%, #37403a 55%, #10221a 82%);
  --fg: #f3eee3; --fg-soft: rgba(243, 238, 227, .8); --eyebrow: #ffc76a; --panel: rgba(10, 26, 16, .55); --panel-line: rgba(233, 214, 160, .3);
  --cta-bg: #6ee7b7; --cta-fg: #0a1a10; --hex: rgba(233, 214, 160, .12); --thumb-bg: #26382f;
  --ground: #3a3832; --grass: #32503c; --road: #2a312f; --pave: #454b45; --wall: #bfae8d; --roof: #7c5b2a; --panel-m: #27495f;
  --steel: #6f7b77; --white: #dcd4c3; --dark: #16281e; --dark2: #1d3327; --crop: #4d6f45; --crop2: #5b7c4b; --paddy: #3e6a63;
  --tile: #93492f; --awning: #176b4a; --brassm: #c1903c; --mintm: #4fbf95; --leaf: #2d5839; --leaf2: #3c6a44;
  --win: #f8b94a; --win2: #8a6a3a; --led: #6ee7b7; --shade: #0a1410; --edge: rgba(5, 13, 8, .45); --line: #0d1a13; --mark: rgba(243, 238, 227, .55); --glow: .8;
  --bus: #1a8f69; --glass: #f3c370; --kerb: #50554e; --car1: #9a4a32; --car2: #2f5285; --zebra: #a9a898; --cast: rgba(0, 0, 0, .26);
}
body[data-time="night"] {
  --sky: radial-gradient(ellipse 70% 60% at 68% 70%, #12302a 0%, #0a1d17 45%, #050d09 85%);
  --fg: #f3eee3; --fg-soft: rgba(243, 238, 227, .74); --eyebrow: #ffc76a; --panel: rgba(10, 26, 16, .6); --panel-line: rgba(233, 214, 160, .24);
  --cta-bg: #6ee7b7; --cta-fg: #0a1a10; --hex: rgba(110, 231, 183, .12); --thumb-bg: #0e1c15;
  --ground: #131b17; --grass: #12281b; --road: #0e1613; --pave: #1a241f; --wall: #34463b; --roof: #28382d; --panel-m: #15303f;
  --steel: #3b4944; --white: #808a82; --dark: #0c1711; --dark2: #122019; --crop: #1a3a25; --crop2: #20432a; --paddy: #16393a;
  --tile: #4c2d22; --awning: #0f4a34; --brassm: #8a6a2c; --mintm: #2f8f6d; --leaf: #133220; --leaf2: #193c26;
  --win: #f5a524; --win2: #3b3424; --led: #6ee7b7; --shade: #020705; --edge: rgba(0, 0, 0, .55); --line: #050b08; --mark: rgba(243, 238, 227, .32); --glow: 1;
  --bus: #11634a; --glass: #f5b544; --kerb: #222c27; --car1: #532e22; --car2: #1d3355; --zebra: #56605a; --cast: rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.03; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.eyebrow { font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 26px; font-weight: 500; font-size: 16px; letter-spacing: .04em; border: 1px solid transparent; transition: transform .25s, background .3s, border-color .3s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--cta-bg); color: var(--cta-fg); }
.btn--ghost { border-color: var(--panel-line); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg); }

/* ---------- City drawing ---------- */
.city { display: block; width: 100%; height: 100%; overflow: visible; }
.city polygon, .city ellipse { stroke: var(--edge); stroke-width: .6; stroke-linejoin: round; transition: fill 1.4s ease, stroke 1.4s ease; }
.city .ft { fill: var(--c); }
.city .fl { fill: color-mix(in srgb, var(--c) 84%, var(--shade)); }
.city .fr { fill: color-mix(in srgb, var(--c) 64%, var(--shade)); }
.city .fw { fill: var(--c); stroke-width: .3; }
.city .ln { fill: none; stroke: var(--line); stroke-width: 1.3; stroke-linecap: round; transition: stroke 1.4s; }
.city .ln.fine { stroke-width: .6; opacity: .55; }
.city .ln.row { stroke-width: .7; opacity: .3; }
.city .ln.mark { stroke: var(--mark); stroke-width: 1.2; }
.city .plot { fill: none; stroke: var(--line); stroke-dasharray: 3 4; opacity: .4; }
.city .halo { fill: #f5a524; opacity: calc(var(--glow) * .34); filter: blur(7px); mix-blend-mode: screen; stroke: none; transition: opacity 1.4s; }
.city .bulb { fill: #ffd27a; opacity: calc(.25 + var(--glow) * .75); }
.city .bulb--red { fill: #ff6b5e; animation: blink 2.4s steps(1) infinite; }
.city .shadow { fill: rgba(0, 0, 0, .2); stroke: none; }
.city .spray { fill: rgba(255, 255, 255, .22); stroke: none; }
.city .rotor { fill: rgba(255, 255, 255, .35); stroke: var(--line); stroke-width: .5; }
.city .drone { animation: hover 3.4s ease-in-out infinite alternate; }
.city .van, .city .mover { animation: drive 18s linear infinite; }
.city .cast { fill: var(--cast); stroke: none; transition: fill 1.4s; }
.city .wheel { fill: #141d18; stroke: none; }
.city .frond { fill: none; stroke: var(--leaf); stroke-width: 2.4; stroke-linecap: round; transition: stroke 1.4s; }
.city .frond2 { stroke: var(--leaf2); }
.city .trunk { stroke: #8a6f4a; stroke-width: 2; }
.city .cable { fill: none; stroke: var(--line); stroke-width: 1; }
.city .stripe { stroke: var(--mintm); stroke-width: 1.6; }
.city .pipe-a { stroke: #f5a524; stroke-width: 1.5; }
.city .pipe-b { stroke: #4fa3c7; stroke-width: 1.5; }
.city .net { fill: none; stroke: var(--led); stroke-width: 1.4; stroke-dasharray: 2 5; animation: net 1.2s linear infinite; }
.city .person path { stroke-width: 3.2; stroke-linecap: round; fill: none; }
.city .person circle { fill: #e6c39a; stroke: none; }
@keyframes net { to { stroke-dashoffset: -7; } }
.city .fan { transform-box: fill-box; transform-origin: center; }
@keyframes hover { from { transform: translate(-5px, 3px); } to { transform: translate(6px, -5px); } }
@keyframes drive { from { transform: translate(0, 0); } to { transform: translate(var(--tx), var(--ty)); } }
@keyframes blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .15; } }

.cam { transform-origin: 0 0; transition: transform 1.5s cubic-bezier(.65, 0, .2, 1); }
.district { transition: opacity .9s ease; cursor: pointer; }
.district .pad { transition: fill 1.4s ease, stroke .3s; }
.city:not([data-focus]) .district:hover .pad, .city[data-focus=""] .district:hover .pad { stroke: var(--amber); stroke-width: 2; }
.city[data-focus="energy"] .district:not([data-fam="energy"]),
.city[data-focus="field"] .district:not([data-fam="field"]),
.city[data-focus="trade"] .district:not([data-fam="trade"]),
.city[data-focus="digital"] .district:not([data-fam="digital"]) { opacity: .22; }

.tag__in { transform: scale(calc(1.2 / var(--z, 1))); transition: transform 1.5s cubic-bezier(.65, 0, .2, 1), opacity .5s; }
.city[data-focus="energy"] .district:not([data-fam="energy"]) .tag,
.city[data-focus="field"] .district:not([data-fam="field"]) .tag,
.city[data-focus="trade"] .district:not([data-fam="trade"]) .tag,
.city[data-focus="digital"] .district:not([data-fam="digital"]) .tag { opacity: 0; pointer-events: none; }
.tag { transition: opacity .5s; }
.scene { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 0); mask-image: linear-gradient(90deg, transparent 0, #000 0); }
.scene.is-focus { -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 34%); mask-image: linear-gradient(90deg, transparent 4%, #000 34%); }
.tag rect { fill: var(--forest); stroke: rgba(233, 214, 160, .5); stroke-width: 1; }
.tag text { fill: var(--ivory); font-family: var(--body); font-size: 14px; font-weight: 500; }
.tag__stem { stroke: var(--forest); stroke-width: 1.2; }
.tag:hover rect { fill: #1d3a29; stroke: var(--mint); }

/* ---------- Nav ---------- */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 20; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); color: var(--fg); transition: color 1.4s; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: .14em; }
.nav__brand img { width: 32px; height: 32px; }
.nav__brand b { font-weight: 600; color: #0b7a52; }
body:not([data-time="day"]) .nav .nav__brand b { color: var(--mint); }
body[data-time="day"] .nav { background: linear-gradient(rgba(243, 238, 227, .85), rgba(243, 238, 227, 0)); }
body[data-time="day"] .nav__links a:not(.btn) { font-weight: 500; }
.nav__links { display: flex; align-items: center; gap: 30px; font-size: 15.5px; }
.nav__links a:not(.btn):hover { color: var(--amber); }
.nav__links .btn { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(100vh, 700px); background: var(--sky); color: var(--fg); overflow: hidden; display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); align-items: center; padding: calc(var(--nav-h) + 12px) 0 96px var(--gutter); transition: color 1.4s; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: 0; background: inherit; }
.hex { position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v33L28 65 0 49V16zM28 97L0 81V65M56 65v16L28 97' fill='none' stroke='%23888' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 42px 73px; opacity: .22;
  -webkit-mask-image: linear-gradient(115deg, transparent 0%, transparent 38%, #000 50%, transparent 62%, transparent 100%); mask-image: linear-gradient(115deg, transparent 0%, transparent 38%, #000 50%, transparent 62%, transparent 100%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%; animation: scan 9s linear infinite; }
body[data-time="day"] .hex { opacity: .16; }
@keyframes scan { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0% 0; mask-position: 0% 0; } }

.orb { position: absolute; right: 9%; top: 15%; width: 84px; height: 84px; border-radius: 50%; transition: background 1.4s, box-shadow 1.4s, transform 1.6s cubic-bezier(.3, .7, .2, 1); }
body[data-time="day"] .orb { background: #f6dc9a; box-shadow: 0 0 0 22px rgba(246, 220, 154, .25), 0 0 80px 30px rgba(246, 220, 154, .35); }
body[data-time="dusk"] .orb { background: #ffb561; box-shadow: 0 0 90px 50px rgba(255, 170, 90, .35); transform: translate(-60px, 250px); }
body[data-time="night"] .orb { background: #e8ecdf; box-shadow: inset -16px -6px 0 0 #b9c2b4, 0 0 50px 8px rgba(232, 236, 223, .2); transform: scale(.6); }
.stars { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s; pointer-events: none;
  background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 31% 9%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 47% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 63% 7%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 78% 26%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 91% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 34%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 55% 38%, #fff 50%, transparent 51%); }
body[data-time="night"] .stars { opacity: .7; }

.copy { position: relative; z-index: 2; max-width: 560px; }
.copy .eyebrow { color: var(--eyebrow); display: flex; align-items: center; gap: 12px; transition: color 1.4s; }
.copy .eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(245, 165, 36, .18); }
.copy h1 { font-size: clamp(42px, 5vw, 82px); margin: 18px 0 18px; text-wrap: balance; letter-spacing: -.005em; }
.copy h1.is-fam { font-size: clamp(34px, 3.7vw, 60px); }
.copy .lede { color: var(--fg-soft); max-width: 44ch; font-size: clamp(16px, 1.25vw, 19px); transition: color 1.4s; }
.swap { transition: opacity .35s ease, transform .5s cubic-bezier(.2, .7, .2, 1); min-height: 330px; }
.swap.is-out { opacity: 0; transform: translateY(12px); }
/* hero headlines rise line by line from behind a mask (Shell.lines); the resting state is plain text */
.copy h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.copy h1 .ln > span { display: inline-block; animation: line-up .9s var(--ease-out) both; animation-delay: calc(var(--i) * 85ms + 40ms); }
@keyframes line-up { from { transform: translateY(108%); } }
.copy h1.is-static .ln > span { animation: none; }
.cos { margin-top: 20px; border-top: 1px solid var(--panel-line); }
.cos a:hover { padding-left: 8px; }
.cos i { width: 10px; height: 10px; border-radius: 2px; }
.cos b { font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.1; }
.cos span { display: block; font-size: 14.5px; color: var(--fg-soft); }
.cos em { font-style: normal; font-family: var(--display); font-weight: 600; letter-spacing: .18em; font-size: 14px; text-transform: uppercase; color: var(--eyebrow); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.scene { position: relative; z-index: 1; height: min(84vh, 840px); margin: 0 -3% 0 -9%; }

/* Time of day: a clock that follows the visitor, and three icons. The thumb slides to the chosen one. */
.timeset { position: absolute; z-index: 5; right: var(--gutter); top: calc(var(--nav-h) + 10px); display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--panel-line); background: var(--panel); backdrop-filter: blur(8px); border-radius: 999px; font-size: 13px; color: var(--fg-soft); transition: color 1.4s, background 1.4s, border-color 1.4s; }
.timeset__clock { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px 0 11px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; color: inherit; transition: background .25s; }
.timeset__clock i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .7; }
.timeset__clock[aria-pressed="true"] i { background: var(--amber); border-color: var(--amber); opacity: 1; box-shadow: 0 0 0 3px rgba(245, 165, 36, .2); }
.timeset__clock[aria-pressed="false"] { cursor: pointer; }
.timeset__clock[aria-pressed="false"]:hover { background: var(--panel-line); }
.timeset__clock[aria-pressed="false"]::after { content: "↺"; font-size: 14px; line-height: 1; opacity: .75; }
.timeset__clock[aria-pressed="true"] { cursor: default; }
.timeset__seg { position: relative; display: grid; grid-template-columns: repeat(3, 34px); --i: 0; }
.timeset__thumb { position: absolute; left: 0; top: 0; width: 34px; height: 32px; border-radius: 999px; background: var(--fg); transform: translateX(calc(var(--i) * 100%)); transition: transform .55s var(--ease-pop), background 1.4s; }
.timeset__seg button { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 32px; border-radius: 999px; color: inherit; transition: color .3s; }
.timeset__seg button:hover { color: var(--fg); }
.timeset__seg button[aria-pressed="true"] { color: var(--ivory); }
.timeset svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.timeset__seg button[data-t="night"] svg path:first-child { fill: currentColor; fill-opacity: .18; }
body[data-time="dusk"] .timeset__seg button[aria-pressed="true"], body[data-time="night"] .timeset__seg button[aria-pressed="true"] { color: var(--forest); }

/* Jump chips */
.chips { position: absolute; z-index: 5; left: var(--gutter); right: var(--gutter); bottom: 26px; display: flex; align-items: stretch; gap: 10px; }
.chips__pause { width: 46px; border: 1px solid var(--panel-line); display: grid; place-items: center; background: var(--panel); }
.chips ol { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.chip { position: relative; width: 100%; text-align: left; padding: 10px 14px 12px; border: 1px solid var(--panel-line); background: var(--panel); backdrop-filter: blur(8px); color: var(--fg-soft); transition: color .3s, border-color .3s; overflow: hidden; }
.chip small { display: block; font-family: var(--display); font-weight: 600; letter-spacing: .18em; font-size: 13px; color: var(--eyebrow); }
.chip b { font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: .02em; white-space: nowrap; }
.chip[aria-pressed="true"] { color: var(--fg); border-color: var(--fg); }
.chip::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; }
.chips.is-auto .chip[aria-pressed="true"]::after { animation: fill var(--tour, 6s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding: calc(var(--nav-h) + 56px) var(--gutter) 150px; align-items: start; }
  .scene { order: -1; height: 46vh; min-height: 300px; margin: 0 -8%; }
  .swap { min-height: 0; }
  .chips { flex-wrap: wrap; bottom: 16px; }
  .chips ol { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .chips__pause { display: none; }
  .chip { padding: 8px 10px; } .chip b { font-size: 15px; white-space: normal; line-height: 1.1; display: block; } .chip small { font-size: 10px; }
  .orb { right: 6%; top: 12%; width: 54px; height: 54px; }
  body[data-time="dusk"] .orb { transform: translate(-10px, 30px); }
  body[data-time="dusk"] { --sky: radial-gradient(ellipse 120% 34% at 50% 34%, #c98443 0%, #7a543b 30%, #2f3a34 62%, #10221a 100%); }
}

/* =====================================================================
   PAINTED STAGE: a canvas scene fills the hero (the home town and the EV scenes)
   ===================================================================== */
.hero--stage { grid-template-columns: minmax(0, 600px) 1fr; background: #f6f1df; }
.stage { position: absolute; inset: 0; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s ease, filter 1.2s ease; }
.stage canvas.is-live { opacity: 1; }
/* The veil keeps the text readable and fades out just past the middle, so the drawing on the right stays clear */
.veil { position: absolute; inset: 0; pointer-events: none; transition: opacity .8s;
  background: linear-gradient(90deg, rgba(246, 241, 223, .9) 0%, rgba(246, 241, 223, .8) 22%, rgba(246, 241, 223, .44) 38%, rgba(246, 241, 223, .12) 50%, rgba(246, 241, 223, 0) 58%); }
.veil--dark { opacity: 0; background: linear-gradient(90deg, rgba(8, 20, 13, .86) 0%, rgba(8, 20, 13, .74) 22%, rgba(8, 20, 13, .38) 38%, rgba(8, 20, 13, .1) 50%, rgba(8, 20, 13, 0) 58%); }
body[data-time="night"] .veil--light { opacity: 0; }
body[data-time="night"] .veil--dark { opacity: 1; }
body[data-time="dusk"] .hero--stage {
  --fg: #1f2a22; --fg-soft: #3b473e; --eyebrow: #063d2c; --panel: rgba(255, 251, 245, .78); --panel-line: rgba(31, 42, 34, .24);
  --cta-bg: #0a1a10; --cta-fg: #f3eee3;
}
body[data-time="dusk"] .hero--stage .nav .nav__brand b { color: #0b7a52; }
body[data-time="dusk"] .hero--stage .timeset__seg button[aria-pressed="true"] { color: var(--ivory); }
body[data-time="day"] .hero--stage .nav { background: none; }
.hero--stage .copy { max-width: 560px; }
.hero--stage .swap { min-height: 360px; }
@media (max-width: 980px) {
  .hero--stage { --scene-h: calc(var(--nav-h) + 38vh); padding-top: calc(var(--scene-h) + 22px); background: #f6f1df; }
  body[data-time="night"] .hero--stage { background: #08140d; }
  .stage { inset: 0 0 auto 0; height: var(--scene-h); }
  .veil { top: calc(var(--scene-h) - 70px); bottom: auto; height: 72px; background: linear-gradient(0deg, #f6f1df 6%, rgba(246, 241, 223, 0)); }
  .veil--dark { background: linear-gradient(0deg, #08140d 6%, rgba(8, 20, 13, 0)); }
  .hero--stage .swap { min-height: 0; }
  .hero--stage .timeset { top: calc(var(--nav-h) + 8px); }
}

/* ---------- Home: the painted town (scenes/town.js) and its labels ---------- */
.hero--town .scene, .hero--town .stars, .hero--town .orb, .hero--town .hex { display: none; }
.ttags { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
/* each label sits on its building: a leader line draws up, then the pill pops in */
.ttag { position: absolute; left: 0; top: 0; pointer-events: none; transition: opacity .5s var(--ease-out); --stem: 30px; }
.ttag::before { content: ""; position: absolute; left: -.5px; bottom: 0; width: 1px; height: var(--stem); background: rgba(19, 42, 28, .7); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .45s var(--ease-out); }
.ttag::after { content: ""; position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px rgba(255, 251, 245, .85); opacity: 0; transition: opacity .3s; }
.ttag__pill { position: absolute; left: 0; bottom: var(--stem); display: flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border-radius: 999px; white-space: nowrap; background: rgba(19, 42, 28, .9); color: var(--ivory); font-size: 13.5px; font-weight: 500; line-height: 1.2; box-shadow: 0 6px 18px -8px rgba(10, 26, 16, .6); opacity: 0; transform: translateX(-50%) translateY(6px) scale(.86); transform-origin: 50% 100%; transition: opacity .35s .22s, transform .55s .22s var(--ease-pop), background .25s; pointer-events: auto; }
.ttag__pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.ttag__pill small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid rgba(243, 238, 227, .45); padding: 0 6px; border-radius: 99px; opacity: .8; }
.ttag.is-in::before { transform: scaleY(1); }
.ttag.is-in::after { opacity: 1; }
.ttag.is-in .ttag__pill { opacity: 1; transform: translateX(-50%) scale(1); }
.ttag.is-soon .ttag__pill { background: rgba(58, 70, 64, .86); color: rgba(243, 238, 227, .9); pointer-events: none; }
.ttag.is-live .ttag__pill { box-shadow: 0 0 0 1.5px var(--mint), 0 6px 18px -8px rgba(10, 26, 16, .6); }
.ttag.is-live:hover .ttag__pill { background: #1d3a29; }
.ttag.is-off { opacity: 0; }
.ttag.is-off .ttag__pill { pointer-events: none; }
@media (max-width: 980px) { .ttag { --stem: 18px; } .ttag__pill { font-size: 11.5px; padding: 3px 9px 3px 7px; gap: 5px; } .ttag__pill small { display: none; } }
/* leader lines stay visible on the dark night scene */
body[data-time="night"] .ttag::before { background: rgba(243, 238, 227, .6); }
/* painted card pictures are day-lit, so they keep a paper background at dusk and night */
.card__art.card__art--paint { background: #ece4d2; }
.card__art canvas { display: block; width: 100%; height: 100%; transition: transform .6s var(--ease-out); }
.card:hover .card__art canvas { transform: scale(1.06); }
.card.is-soon:hover .card__art canvas { transform: none; }

/* ---------- What we take on ---------- */
.take { padding: clamp(64px, 8vw, 120px) var(--gutter); background: var(--ivory); }
.take__top { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: 36px; }
.take .eyebrow, .foot .eyebrow { color: #0b6646; }
.take h2 { font-size: clamp(38px, 4.8vw, 72px); margin-top: 12px; max-width: 16ch; }
.take__top p { color: #55604f; max-width: 38ch; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.filter button { padding: 8px 16px; border: 1px solid rgba(31, 42, 34, .22); border-radius: 999px; font-size: 15px; transition: background .25s, color .25s; }
.filter button sup { font-size: 11px; opacity: .6; margin-left: 4px; }
.filter button[aria-pressed="true"] { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.fam { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 28px 0; border-top: 1px solid var(--hair); }
.fam[hidden] { display: none; }
.fam__name h3 { font-size: 30px; }
.fam__name p { font-size: 14.5px; color: #55604f; margin-top: 8px; max-width: 22ch; }
.fam__name span { font-family: var(--display); letter-spacing: .2em; font-size: 14px; font-weight: 600; color: #0b6646; text-transform: uppercase; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(31, 42, 34, .1); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -22px rgba(10, 26, 16, .45); }
.card__art { aspect-ratio: 16 / 10; background: var(--thumb-bg); padding: 14px; transition: background 1.4s; overflow: hidden; }
.card__art svg { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card__art svg { transform: scale(1.07); }
.card__body { padding: 18px 20px 20px; border-top: 3px solid var(--accent); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__body small { font-family: var(--display); font-weight: 600; letter-spacing: .18em; font-size: 13.5px; text-transform: uppercase; color: #46524a; }
.card__body b { font-family: var(--display); font-weight: 500; font-size: 28px; line-height: 1.05; }
.card__body p { color: #55604f; font-size: 15.5px; flex: 1; }
.card__body em { font-style: normal; font-family: var(--display); letter-spacing: .2em; font-size: 13px; text-transform: uppercase; margin-top: 8px; }
.card--soon { border: 1px dashed rgba(31, 42, 34, .25); background: transparent; align-items: center; justify-content: center; min-height: 180px; color: #7a857b; font-size: 14.5px; text-align: center; padding: 20px; }
@media (max-width: 980px) { .take__top, .fam { grid-template-columns: 1fr; } .cards { grid-template-columns: repeat(2, 1fr); } .card--soon { display: none; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- One accountable team ---------- */
.team { background: var(--forest); color: var(--ivory); padding: clamp(64px, 8vw, 120px) var(--gutter); display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px 72px; }
.team .eyebrow { color: #ffc76a; }
.team h2 { font-size: clamp(38px, 4.6vw, 68px); margin-top: 12px; }
.team li { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 24px 0; border-top: 1px solid var(--hair-soft); opacity: .3; transform: translateY(14px); transition: opacity .8s, transform .8s; }
.team li:last-child { border-bottom: 1px solid var(--hair-soft); }
.team li.is-in { opacity: 1; transform: none; }
.team li b { font-family: var(--display); font-weight: 400; font-size: 46px; line-height: 1; color: var(--brass-pale); }
.team li h3 { font-size: 30px; margin-bottom: 6px; }
.team li p { color: rgba(243, 238, 227, .72); max-width: 46ch; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } .team li { grid-template-columns: 56px 1fr; } }

/* ---------- Footer ---------- */
.foot { background: var(--ivory); color: var(--ink); }
.street { padding: 34px 0 0; overflow: hidden; border-bottom: 1px solid var(--ink); }
.street svg { height: clamp(120px, 15vw, 210px); width: auto; min-width: 100%; margin: 0 auto; }
.lineart { clip-path: inset(0 100% 0 0); transition: clip-path 3.2s cubic-bezier(.5, 0, .2, 1); }
.lineart.is-in { clip-path: inset(0 0 0 0); }
/* Wider than the page: draw in over the part on screen, then pan end to end and back */
.street.is-pan .lineart { transition-duration: 1.6s; }
.street.is-pan .lineart.is-in { animation: street-pan var(--pan-t, 20s) var(--ease-io) 1.8s infinite alternate; }
@keyframes street-pan { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--pan, 0px))); } }
.lineart polygon, .lineart ellipse { fill: var(--ivory) !important; stroke: var(--ink); stroke-width: 1; }
.lineart .ln { stroke: var(--ink); stroke-width: 1; opacity: 1; }
.lineart .halo, .lineart .shadow, .lineart .spray, .lineart .bulb, .lineart .cast { display: none; }
.lineart .wheel, .lineart .person circle { fill: var(--ink); }
.lineart .frond, .lineart .trunk, .lineart .cable, .lineart .stripe, .lineart .pipe-a, .lineart .pipe-b, .lineart .net, .lineart .person path { stroke: var(--ink); stroke-width: 1; animation: none; stroke-dasharray: none; }
.lineart .fw { fill: var(--ivory) !important; }
.foot__grid { display: grid; grid-template-columns: 1.3fr repeat(4, auto) 1fr; gap: 28px 44px; padding: 44px var(--gutter) 28px; }
.foot__brand h3 { font-size: 30px; margin: 10px 0 12px; }
.foot__brand p, .foot__col a, .foot__base { font-size: 15px; color: #4c584e; }
.foot__col h4 { margin: 0 0 10px; font-family: var(--display); font-weight: 500; letter-spacing: .18em; text-transform: uppercase; font-size: 14px; font-weight: 600; color: #0b6646; }
.foot__col a { display: block; padding: 3px 0; }
.foot__col a:hover { color: var(--ink); text-decoration: underline; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 18px var(--gutter) 28px; border-top: 1px solid var(--hair-soft); }
@media (max-width: 1100px) { .foot__grid { grid-template-columns: repeat(2, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  /* No pan: the whole street fits the width instead */
  .street svg { width: 100%; min-width: 0; height: auto; }
}

/* =====================================================================
   SHELL ADDITIONS: spoke nav, phone menu, quick-contact dock, "soon" states
   ===================================================================== */
.nav__brand em { font-style: normal; font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; padding-left: 12px; margin-left: 4px; border-left: 1px solid var(--panel-line); color: var(--eyebrow); white-space: nowrap; }
.nav__links a[aria-current="page"] { box-shadow: 0 2px 0 var(--amber); }
.nav__up { opacity: .8; }
.nav__up::before { content: "← "; }
.nav--spoke .nav__links { gap: 24px; }
.nav__toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border: 1px solid var(--panel-line); background: var(--panel); backdrop-filter: blur(8px); }
.nav__toggle i { width: 18px; height: 2px; background: currentColor; transition: transform .25s, opacity .25s; }
.nav.is-open .nav__toggle i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle i:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__links, .nav--spoke .nav__links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 6px var(--gutter) 22px; background: var(--forest); color: var(--ivory); box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .5); }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid rgba(233, 214, 160, .18); font-size: 17px; font-weight: 400 !important; }
  .nav__links a[aria-current="page"] { box-shadow: none; color: var(--amber); }
  .nav__links .btn { margin-top: 16px; justify-content: center; min-height: 48px; background: var(--mint); color: var(--forest); }
}
@media (min-width: 821px) and (max-width: 1180px) {
  .nav--spoke .nav__toggle { display: flex; }
  .nav--spoke .nav__links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 6px var(--gutter) 22px; background: var(--forest); color: var(--ivory); box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .5); }
  .nav--spoke.is-open .nav__links { display: flex; }
  .nav--spoke .nav__links a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid rgba(233, 214, 160, .18); font-size: 17px; font-weight: 400 !important; }
  .nav--spoke .nav__links a[aria-current="page"] { box-shadow: none; color: var(--amber); }
  .nav--spoke .nav__links .btn { margin-top: 16px; justify-content: center; min-height: 48px; background: var(--mint); color: var(--forest); }
}
@media (max-width: 420px) { .nav__brand { font-size: 20px; } .nav__brand em { font-size: 12.5px; padding-left: 8px; } }

/* Quick contact on phones, shown once the hero has scrolled away */
.dock { display: none; }
@media (max-width: 760px) {
  .dock { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr 1.3fr; background: var(--forest); border-top: 1px solid rgba(233, 214, 160, .25); transform: translateY(100%); transition: transform .35s; }
  .dock.is-on { transform: none; }
  .dock a { padding: 14px 8px; text-align: center; color: var(--ivory); font-size: 15px; font-weight: 500; }
  .dock .dock__main { background: var(--mint); color: var(--forest); }
  .foot__base { padding-bottom: 76px; }
}

/* Companies whose pages are not open yet: visible, but not links */
.is-soon { cursor: default; }
.foot__col span.is-soon { display: block; padding: 3px 0; font-size: 15px; color: #8a9388; }
.foot__col small, .cos small { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid currentColor; padding: 1px 6px; border-radius: 99px; margin-left: 6px; vertical-align: 2px; white-space: nowrap; }
.card.is-soon { background: #faf7f0; }
.card.is-soon:hover { transform: none; box-shadow: none; }
.card.is-soon:hover .card__art svg { transform: none; }
.card.is-soon .card__art { filter: saturate(.3); opacity: .8; }
.card.is-soon .card__body { border-top-color: rgba(31, 42, 34, .18); }
.card.is-soon .card__body b, .card.is-soon .card__body p { color: #6d776c; }
.card.is-soon .card__body em { color: #7a857b; }
.card:not(.is-soon) .card__body em { color: #0b6646; font-weight: 600; }
.cos > a, .cos > div { display: grid; grid-template-columns: 10px 1fr auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--panel-line); transition: padding .3s; }
.cos > div.is-soon b, .cos > div.is-soon span { opacity: .62; }
.cos > div.is-soon em { opacity: .6; }
.tag.is-soon { pointer-events: none; }
.tag.is-soon rect { fill: #4d5a52; stroke: rgba(233, 214, 160, .25); }
.tag.is-soon text { fill: rgba(243, 238, 227, .8); }
.take__note { margin: -18px 0 30px; font-size: 15px; color: #55604f; }
.take__note b { color: #0b6646; font-weight: 600; }
@media (max-width: 980px) { .hero:not(.hero--stage):not(.hero--contact) { padding-bottom: 176px; } }

/* =====================================================================
   FAQ: short answers before a call. Shared by every company page (Shell.faq builds it).
   One question opens at a time; the plus turns into a minus.
   ===================================================================== */
.faq__list { max-width: 1060px; border-top: 1px solid rgba(31, 42, 34, .16); }
.faq__q { border-bottom: 1px solid rgba(31, 42, 34, .16); }
.faq__q summary { list-style: none; display: grid; grid-template-columns: 58px minmax(0, 1fr) 26px; gap: 12px; align-items: baseline; padding: 21px 0 20px; cursor: pointer;
  font-family: var(--display); font-weight: 500; font-size: clamp(21px, 2vw, 28px); line-height: 1.15; color: var(--ink); transition: color .25s; }
.faq__q summary::-webkit-details-marker { display: none; }
.faq__q summary small { font-weight: 600; font-size: 13px; letter-spacing: .16em; color: var(--brass); }
.faq__q summary i { position: relative; width: 18px; height: 18px; align-self: center; justify-self: end; }
.faq__q summary i::before, .faq__q summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: #0b6646; transition: transform .4s var(--ease-out); }
.faq__q summary i::after { transform: rotate(90deg); }
.faq__q[open] summary i::after { transform: rotate(0deg); }
.faq__q summary:hover, .faq__q[open] summary { color: #0b6646; }
.faq__q summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.faq__a { padding: 0 44px 26px 70px; max-width: 84ch; color: #47524a; font-size: 16.5px; }
.faq__a a { color: #0b6646; border-bottom: 1px solid currentColor; }
.faq__q[open] .faq__a { animation: faq-in .45s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 600px) { .faq__q summary { grid-template-columns: 34px minmax(0, 1fr) 20px; } .faq__a { padding: 0 0 22px 46px; } }
@media (prefers-reduced-motion: reduce) { .faq__q[open] .faq__a { animation: none; } }
