/* Usaha Pammek: editorial layout after sunwayconstruction.com.my — charcoal and paper, sans with italic serif accents,
   label-left section heads, framed photography. Brand indigo and yellow come from the logo. */
:root {
  --char: #07192b;
  --char-2: #0a2237;
  --char-3: #123350;
  --paper: #edf4f6;
  --white: #fff;
  --ink: #0d1b26;
  --muted: #4f6070;
  --muted-d: #9fbccd;
  --line: rgba(13, 27, 38, 0.13);
  --line-d: rgba(190, 230, 255, 0.15);
  --indigo: #0a68a0;
  --indigo-d: #074b75;
  --aqua: #6fd6f2;
  --yellow: #f2b928;
  --gold: #4fc3e6;
  --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: var(--sans);
  --g: clamp(16px, 5.5vw, 80px);
  --max: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --head-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--char); color: var(--white); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.grey :focus-visible, .white :focus-visible { outline-color: var(--indigo); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--g) * 2); margin: 0 auto; padding: 0 var(--g); }

/* ---------- type ---------- */
.d1 { font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 1.02; font-weight: 500; letter-spacing: -0.03em; }
.d2 { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.08; font-weight: 500; letter-spacing: -0.025em; text-wrap: balance; }
.d3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.2; font-weight: 500; letter-spacing: -0.015em; }
.d1 em, .d2 em, .d3 em { font-size: 1.06em; }
.label { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; color: inherit; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--muted-d); max-width: 40em; }
.lead { font-size: clamp(1.2rem, 1.9vw, 1.6rem); line-height: 1.45; letter-spacing: -0.01em; max-width: 34em; }
.small { font-size: 0.9rem; color: var(--muted); }
.grey .lede, .white .lede { color: var(--muted); }
.sub { font-size: 1.25rem; font-weight: 500; margin: 72px 0 24px; }

.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1rem; }
.more svg { width: 18px; transition: transform 0.4s var(--ease); }
.more:hover svg { transform: translateX(5px); }
.grey .more, .white .more { color: var(--indigo); }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 600; font-size: 1rem; line-height: 1; transition: background 0.3s, transform 0.3s var(--ease); }
.btn svg { width: 18px; transition: transform 0.4s var(--ease); }
.btn:hover { background: #fff; }
.btn:hover svg { transform: translateX(4px); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.grey .btn, .white .btn { background: var(--ink); color: #fff; }
.grey .btn:hover, .white .btn:hover { background: var(--indigo); }

/* ---------- logo mark ---------- */
.mark { width: 30px; flex: none; }
.m-bg { fill: #3b3196; }
.m-bolt { fill: var(--yellow); }
.m-hub { fill: #fff; }
.m-ring { fill: none; stroke: var(--char); stroke-width: 15; stroke-dasharray: 26 12; }
.m-x { stroke: var(--char); stroke-width: 17; stroke-linecap: round; }

/* ---------- header ---------- */
.head { position: fixed; inset: 0 0 auto; z-index: 50; transition: transform 0.5s var(--ease), background 0.4s; }
.head-bar { height: var(--head-h); display: flex; align-items: center; gap: 40px; padding: 0 var(--g); max-width: 1600px; margin: 0 auto; }
.head.solid { background: rgba(18, 17, 40, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.head.hide { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 12px; line-height: 1.1; }
.brand b { display: block; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; }
.brand small { display: block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-d); margin-top: 3px; }
.nav { display: flex; gap: 30px; }
.nav a { font-weight: 600; font-size: 0.98rem; position: relative; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current]::after { background: var(--yellow); height: 2px; }
.head-call { margin-left: auto; font-weight: 600; font-size: 0.95rem; color: var(--muted-d); }
.head-call:hover { color: #fff; }
.menu-btn { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; z-index: 2; }
.menu-btn .bars { width: 34px; height: 8px; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform 0.45s var(--ease), top 0.45s var(--ease); }
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { top: 6px; }
.menu-open .menu-btn .bars::before { top: 3px; transform: scaleX(0.7) rotate(40deg); }
.menu-open .menu-btn .bars::after { top: 3px; transform: scaleX(0.7) rotate(-40deg); }

.menu { position: fixed; inset: 0; z-index: 45; background: var(--char); visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path 0.7s var(--ease), visibility 0s 0.7s; overflow-y: auto; }
.menu-open .menu { visibility: visible; clip-path: inset(0); transition: clip-path 0.7s var(--ease); }
.menu-open .head { background: transparent; backdrop-filter: none; }
.menu-in { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 64px; padding: calc(var(--head-h) + 48px) var(--g) 48px; max-width: 1600px; margin: 0 auto; }
.menu-list li { border-bottom: 1px solid var(--line-d); }
.menu-list a { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 12px; padding: 22px 0; }
.menu-list b { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; transition: color 0.3s; }
.menu-list a:hover b, .menu-list a[aria-current] b { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--yellow); }
.menu-list small { color: var(--muted-d); font-size: 0.92rem; }
.menu-side { display: flex; flex-direction: column; gap: 6px; align-self: end; }
.menu-side .label { color: var(--muted-d); font-size: 0.85rem; margin-top: 18px; }
.menu-side .big { font-size: 1.8rem; font-weight: 500; }
.menu-side .btn { margin-top: 28px; align-self: start; }
.menu-open .menu-list li { animation: rise 0.7s var(--ease) both; }
.menu-open .menu-list li:nth-child(2) { animation-delay: 0.05s; }
.menu-open .menu-list li:nth-child(3) { animation-delay: 0.1s; }
.menu-open .menu-list li:nth-child(4) { animation-delay: 0.15s; }
.menu-open .menu-list li:nth-child(5) { animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.status { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--muted-d); margin-top: 14px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #8b8d94; flex: none; }
.status.open i { background: #3ccf7a; box-shadow: 0 0 0 4px rgba(60, 207, 122, 0.18); }
.grey .status, .white .status { color: var(--muted); }

/* ---------- home hero: pinned while scrolling; the frame opens to full bleed, then steps through three scenes ---------- */
.hero { position: relative; height: calc(var(--scenes) * 100vh + 40vh); background: var(--char); }
.hero-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hero-frame { position: absolute; inset: 0; overflow: hidden; }
.slides { position: absolute; inset: 0; overflow: hidden; background: var(--char-2); transform-origin: 50% 50%; will-change: transform; backface-visibility: hidden; border-radius: 6px; }
.slides.open { border-radius: 0; }
.slides { position: absolute; inset: 0; background: var(--char-2); }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.slides img.on { will-change: transform; }
.slides img.on { opacity: 1; }
.slides::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 45% at 50% 50%, rgba(14, 13, 34, 0.42), transparent 75%), linear-gradient(180deg, rgba(14, 13, 34, 0.45) 0%, rgba(14, 13, 34, 0) 30%, rgba(14, 13, 34, 0.1) 55%, rgba(14, 13, 34, 0.8) 100%); pointer-events: none; z-index: 1; }
.hero-copy { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px; opacity: 0; transform: translateY(48px); filter: blur(10px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease), filter 0.9s var(--ease); pointer-events: none; }
.hero-copy.on { opacity: 1; transform: none; filter: none; }
.hero-copy.past { transform: translateY(-48px); }
.hero-h { font-size: clamp(2.7rem, 7.4vw, 6.6rem); line-height: 1; font-weight: 500; letter-spacing: -0.035em; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25); max-width: 14em; text-wrap: balance; }
.hero-h em { font-size: 1.05em; }
.ln { display: inline-block; overflow: hidden; padding: 0 0.04em 0.1em; margin: 0 -0.04em; vertical-align: top; }
.ln > span { display: inline-block; animation: lineup 1.2s var(--ease) both; }
.ln + .ln > span { animation-delay: 0.12s; }
@keyframes lineup { from { transform: translateY(105%); } }
.hero-sub { margin-top: 26px; font-size: clamp(0.95rem, 1.3vw, 1.1rem); font-weight: 500; letter-spacing: 0.01em; opacity: 0.92; max-width: 40em; }
.hero-foot { position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(100lvh - 100svh); display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 28px clamp(20px, 3vw, 40px); opacity: 0; transform: translateY(12px); transition: opacity 0.6s, transform 0.8s var(--ease); }
.hero-pin.open .hero-foot { opacity: 1; transform: none; }
.hero-cap { display: flex; gap: 18px; align-items: baseline; font-size: 0.92rem; }
.hero-idx { font-variant-numeric: tabular-nums; font-weight: 600; }
.hero-txt { opacity: 0.85; }
.scroll { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; position: absolute; z-index: 2; left: 50%; bottom: calc(100lvh - 100svh + 16px); transform: translateX(-50%); transition: opacity 0.4s; }
.hero-pin.moved .scroll { opacity: 0; }
.scroll i { width: 1px; height: 54px; background: rgba(255, 255, 255, 0.35); position: relative; overflow: hidden; }
.scroll i::after { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 50%; background: #fff; animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(200%); } }
.hero-meter { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.12); }
.hero-meter i { display: block; height: 100%; background: var(--yellow); transform-origin: left; transform: scaleX(0); will-change: transform; }
html:not(.js) .hero, .reduce .hero { height: auto; }
html:not(.js) .hero-pin, .reduce .hero-pin { position: relative; }
html:not(.js) .hero-copy[data-scene='0'] { opacity: 1; transform: none; filter: none; }

/* ---------- sections ---------- */
.sec { padding: clamp(80px, 11vw, 150px) 0; }
.dark { background: var(--char); color: #fff; }
.grey { background: var(--paper); color: var(--ink); }
.white { background: var(--white); color: var(--ink); }
.sec-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; margin-bottom: clamp(48px, 6vw, 80px); }
.sec-head .label { padding-top: 0.5em; }
.sec-head .lede { margin-top: 24px; }
.sec-foot { margin-top: 48px; display: flex; justify-content: flex-end; }

.intro-body { margin-left: calc(33.333% + 11px); }
.intro-body figure { margin-bottom: 48px; }
.intro-body figcaption, .gallery figcaption { font-size: 0.85rem; color: var(--muted-d); margin-top: 12px; }
.white .gallery figcaption { color: var(--muted); }
.intro-body .lead { margin-bottom: 36px; }
.intro-body .lead em { font-size: 1.05em; }

.ledger { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(80px, 9vw, 120px); border-top: 1px solid var(--line-d); }
.ledger > div { padding: 32px 28px 0 0; border-right: 1px solid var(--line-d); padding-left: 28px; }
.ledger > div:first-child { padding-left: 0; }
.ledger > div:last-child { border-right: 0; }
.ledger strong { display: block; font-size: clamp(2.6rem, 4.6vw, 4rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.ledger sup { font-size: 0.32em; letter-spacing: 0.02em; font-weight: 600; vertical-align: top; margin-left: 6px; position: relative; top: 0.4em; color: var(--yellow); }
.ledger span { display: block; margin-top: 16px; color: var(--muted-d); font-size: 0.95rem; max-width: 18em; }

/* reveal */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js figure.rv { clip-path: inset(8% 0 0 0); transform: none; transition: clip-path 1.2s var(--ease), opacity 0.8s; }
.js figure.rv.in { clip-path: inset(0); }

/* ---------- expertise slider ---------- */
.xp { position: relative; }
.xp-nav { display: flex; justify-content: flex-end; gap: 32px; align-items: center; margin: calc(-1 * clamp(24px, 3vw, 40px)) 0 32px; }
.xp-count { display: inline-flex; align-items: center; gap: 14px; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.xp-count i { width: 48px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.xp-count i::after { content: ''; position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--xp, 0.14)); transition: transform 0.6s var(--ease); }
.xp-btns { display: flex; gap: 12px; }
.xp-btns button { width: 56px; height: 34px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ink); display: grid; place-items: center; transition: background 0.3s, color 0.3s; }
.xp-btns button:hover { background: var(--ink); color: #fff; }
.xp-btns svg { width: 18px; }
.xp-prev svg { transform: scaleX(-1); }
.xp-slides { display: grid; }
.xp-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 7vw, 120px); align-items: center; }
.js .xp-slide { visibility: hidden; }
.js .xp-slide.on { visibility: visible; }
.xp-slide figure { aspect-ratio: 4 / 3; overflow: hidden; background: #dcdbd6; }
.xp-slide img { width: 100%; height: 100%; object-fit: cover; }
.js .xp-slide figure { clip-path: inset(0 100% 0 0); transition: clip-path 0.9s var(--ease); }
.js .xp-slide.on figure { clip-path: inset(0); }
.js .xp-slide img { transform: scale(1.12); transition: transform 1.4s var(--ease); }
.js .xp-slide.on img { transform: none; }
.xp-n { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.xp-h { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--indigo); font-size: clamp(2.1rem, 3.8vw, 3.3rem); line-height: 1.04; letter-spacing: -0.02em; margin-bottom: 28px; }
.xp-text p { color: var(--muted); font-size: 1.05rem; margin-bottom: 28px; max-width: 30em; }
.js .xp-text > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s, transform 0.8s var(--ease); }
.js .xp-slide.on .xp-text > * { opacity: 1; transform: none; transition-delay: 0.25s; }
.js .xp-slide.on .xp-text > *:nth-child(2) { transition-delay: 0.32s; }
.js .xp-slide.on .xp-text > *:nth-child(3) { transition-delay: 0.39s; }
.js .xp-slide.on .xp-text > *:nth-child(4) { transition-delay: 0.46s; }
.xp-tabs { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.xp-tabs button { padding: 9px 16px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.xp-tabs button:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.xp-tabs button[aria-current] { background: var(--ink); color: #fff; box-shadow: none; }
html:not(.js) .xp-nav, html:not(.js) .xp-tabs { display: none; }
html:not(.js) .xp-slides { gap: 64px; }
html:not(.js) .xp-slide { grid-area: auto; }

/* ---------- live projects ---------- */
.lives { border-top: 1px solid var(--line-d); }
.live { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; padding: 32px 0; border-bottom: 1px solid var(--line-d); }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--yellow); margin-bottom: 10px; }
.grey .tag, .white .tag { color: var(--indigo); }
.live h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; }
.live-meta { color: var(--muted-d); font-size: 0.92rem; margin-top: 8px; }
.live-side { align-self: center; }
.live-val { display: block; font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1; margin-bottom: 18px; }
.bar { height: 4px; background: rgba(255, 255, 255, 0.12); position: relative; overflow: hidden; }
.bar i { position: absolute; inset: 0; background: var(--yellow); transform-origin: left; transform: scaleX(0); transition: transform 1.6s 0.2s var(--ease); }
.live.in .bar i, html:not(.js) .bar i { transform: scaleX(var(--w)); }
.live-dates { display: flex; justify-content: space-between; margin-top: 10px; font-size: 0.85rem; color: var(--muted-d); font-variant-numeric: tabular-nums; }
.live-dates b { color: #fff; font-weight: 600; }

/* ---------- featured projects ---------- */
.features { display: grid; gap: clamp(64px, 8vw, 110px); }
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.feature:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature:nth-child(even) figure { order: 2; }
.feature figure { aspect-ratio: 16 / 10; overflow: hidden; background: #e2e1dc; }
.feature img { width: 100%; height: 100%; object-fit: cover; }
.feature figure { transition: clip-path 0.8s var(--ease); clip-path: inset(0); }
.feature:hover figure { clip-path: inset(2.5%); }
.feature .meta { padding-bottom: 8px; }
.feature .idx { display: block; font-family: var(--serif); font-style: italic; font-size: 3.4rem; line-height: 1; color: var(--indigo); margin-bottom: 26px; }
.feature h3 { margin-bottom: 18px; }
.feature-sub { color: var(--muted); font-size: 0.95rem; }
.feature-val { display: inline-block; margin-top: 24px; font-weight: 600; padding-top: 14px; border-top: 1px solid var(--line); min-width: 160px; }

/* ---------- pillars (after the reference site's E / S / G cards) ---------- */
.pillars { background: var(--char-2); padding-bottom: clamp(80px, 10vw, 140px); }
.pillars-top { background: var(--char-3); padding: clamp(80px, 10vw, 140px) 0 clamp(170px, 18vw, 240px); }
.pillars-top .lede { color: rgba(255, 255, 255, 0.78); }
.pillars-top .sec-head { margin-bottom: 0; }
.pillar-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: calc(-1 * clamp(110px, 12vw, 160px)); max-width: 1040px; margin-left: auto; margin-right: auto; }
.pillar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; aspect-ratio: 3 / 4.2; overflow: hidden; background: var(--char-3); padding: 24px; }
.pillar-bg { position: absolute; inset: -20px; }
.pillar-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(14px) saturate(0.8); opacity: 0.35; transform: scale(1.1); transition: opacity 0.6s, transform 1.2s var(--ease); }
.pillar a:hover .pillar-bg img { opacity: 0.55; transform: scale(1.2); }
.pillar-disc { position: relative; width: min(190px, 62%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: grid; place-items: center; margin-bottom: 26px; transition: transform 0.8s var(--ease); }
.pillar a:hover .pillar-disc { transform: scale(1.06); }
.pillar-disc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pillar-disc b { position: relative; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 4.4rem; line-height: 1; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5); }
.pillar-t { position: relative; font-size: 1.45rem; font-weight: 500; }
.pillar-d { position: relative; color: var(--muted-d); font-size: 0.92rem; margin-top: 8px; max-width: 16em; }

/* ---------- map ---------- */
.map-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.map svg { width: 100%; height: auto; }
.land { fill: rgba(255, 255, 255, 0.04); stroke: rgba(255, 255, 255, 0.16); stroke-width: 0.8; }
.land.my { fill: rgba(255, 255, 255, 0.09); stroke: rgba(255, 255, 255, 0.3); }
.grat { stroke: rgba(255, 255, 255, 0.05); stroke-width: 0.6; }
.pin { cursor: pointer; outline: none; }
.pin circle.dot { fill: var(--yellow); stroke: var(--char); stroke-width: 2; transition: r 0.3s var(--ease); }
.pin circle.halo { fill: none; stroke: var(--yellow); stroke-width: 1.5; opacity: 0; }
.pin.hq circle.dot { fill: #fff; }
.pin:hover circle.dot, .pin.on circle.dot, .pin:focus-visible circle.dot { r: 9; }
.pin.on circle.halo { animation: halo 1.6s var(--ease) infinite; }
@keyframes halo { from { opacity: 0.9; r: 8; } to { opacity: 0; r: 22; } }
.pin text { fill: #fff; font: 600 12px var(--sans); paint-order: stroke; stroke: var(--char); stroke-width: 4px; pointer-events: none; }
.map-list li { border-top: 1px solid var(--line-d); }
.map-list li:last-child { border-bottom: 1px solid var(--line-d); }
.map-list button { width: 100%; text-align: left; display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 0; transition: padding 0.4s var(--ease); }
.map-list b { font-weight: 600; }
.map-list span { color: var(--muted-d); font-size: 0.92rem; }
.map-list li.on button { padding-left: 14px; box-shadow: inset 2px 0 0 var(--yellow); }
.map-list li.on b { color: var(--yellow); }
.map-away { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.map-away a { font-size: 0.85rem; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-d); color: var(--muted-d); transition: color 0.3s, box-shadow 0.3s; }
.map-away a:hover { color: #fff; box-shadow: inset 0 0 0 1px #fff; }

/* ---------- clients and registrations ---------- */
.clients { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.clients li { padding: 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 500; font-size: 0.98rem; line-height: 1.35; min-height: 92px; display: flex; align-items: end; transition: background 0.3s, color 0.3s; }
.clients li:hover { background: var(--ink); color: #fff; }
.regs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.regs li { display: flex; gap: 14px; align-items: center; background: var(--white); padding: 14px; }
.white .regs li { background: var(--paper); }
.regs img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.regs span { font-size: 0.85rem; color: var(--muted); line-height: 1.35; }
.regs b { display: block; color: var(--ink); font-size: 0.95rem; font-weight: 600; }

/* ---------- call to action ---------- */
.cta { position: relative; overflow: hidden; padding: clamp(100px, 12vw, 170px) 0; background: var(--char); }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: grayscale(0.4); }
.cta-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--char) 15%, rgba(18, 17, 40, 0.35)); }
.cta-grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.cta .label { margin-bottom: 22px; color: var(--muted-d); }
.cta .lede { color: rgba(255, 255, 255, 0.78); }
.cta-lines { display: grid; gap: 6px; margin: 28px 0 32px; font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 500; letter-spacing: -0.01em; }
.cta-lines a:hover { color: var(--yellow); }

/* ---------- footer ---------- */
.foot { background: var(--char-2); border-top: 4px solid var(--yellow); padding: clamp(64px, 8vw, 100px) 0 32px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: 40px; }
.foot .brand { align-self: start; }
.foot .mark { width: 40px; }
.foot h4 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.45rem; margin-bottom: 16px; }
.foot address { color: var(--muted-d); margin-bottom: 18px; }
.foot-phone { font-size: 1.9rem; font-weight: 500; letter-spacing: -0.02em; }
.small-d { color: var(--muted-d); font-size: 0.92rem; margin-top: 8px; }
.small-d a:hover { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 64px; padding: 28px 0; border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); font-weight: 500; }
.foot-links a:hover { color: var(--yellow); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 0.8rem; color: var(--muted-d); }
.powered { margin-top: 28px; text-align: center; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-d); }
.powered a { color: #fff; border-bottom: 1px solid var(--gold); padding-bottom: 2px; transition: color 0.3s; }
.powered a:hover { color: var(--yellow); }
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 50px; height: 50px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity 0.4s, transform 0.4s var(--ease); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
.to-top svg { width: 20px; }
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- inner page hero ---------- */
.phero { padding: calc(var(--head-h) + clamp(40px, 6vw, 80px)) 0 0; background: var(--char); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.88rem; color: var(--muted-d); margin-bottom: clamp(32px, 4vw, 56px); }
.crumbs li + li::before { content: '/'; margin-right: 10px; opacity: 0.5; }
.crumbs a:hover { color: #fff; }
.phero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; padding-bottom: clamp(48px, 6vw, 80px); }
.phero h1 em { display: inline; }
.phero .frame { margin: 0 var(--g); max-width: 1600px; aspect-ratio: 21 / 9; overflow: hidden; background: var(--char-2); }
@media (min-width: 1760px) { .phero .frame { margin: 0 auto; } }
.phero .frame:empty { display: none; }
.phero .frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- scope, flow, gallery ---------- */
.scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 80px); margin-left: calc(33.333% + 11px); }
.scope li { padding: 28px 0; border-top: 1px solid var(--line-d); }
.scope h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.scope p { color: var(--muted-d); font-size: 0.98rem; }
.flow { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); counter-reset: f; border-top: 1px solid var(--line); }
.flow li { counter-increment: f; padding: 26px 22px 0 0; position: relative; }
.flow li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.flow li::before { content: counter(f, decimal-leading-zero); display: block; font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--indigo); margin-bottom: 20px; }
.flow h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; }
.flow p { color: var(--muted); font-size: 0.93rem; }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(64px, 8vw, 100px); }
.gallery figure:nth-child(1) { grid-column: span 8; }
.gallery figure:nth-child(2) { grid-column: span 4; }
.gallery figure:nth-child(3) { grid-column: span 5; }
.gallery figure:nth-child(4) { grid-column: span 7; }
.gallery img { width: 100%; height: clamp(220px, 30vw, 440px); object-fit: cover; }

/* ---------- project list ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { padding: 10px 16px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); display: inline-flex; gap: 8px; transition: background 0.3s, color 0.3s; }
.chip span { color: var(--muted); font-variant-numeric: tabular-nums; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip[aria-pressed='true'] { background: var(--ink); color: #fff; box-shadow: none; }
.chip[aria-pressed='true'] span { color: var(--muted-d); }
.plist { border-top: 1px solid var(--line); }
.prow { border-bottom: 1px solid var(--line); }
.prow > button { width: 100%; text-align: left; display: grid; grid-template-columns: 64px minmax(0, 1fr) 220px 100px 24px; gap: 20px; align-items: baseline; padding: 22px 0; transition: padding 0.4s var(--ease); }
.prow > button:hover { padding-left: 10px; }
.prow .yr { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--indigo); }
.prow h3 { font-size: 1.05rem; font-weight: 500; line-height: 1.4; }
.prow .loc { color: var(--muted); font-size: 0.9rem; }
.prow .val { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.pm { width: 14px; height: 14px; position: relative; align-self: center; justify-self: end; }
.pm::before, .pm::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease); }
.pm::after { transform: rotate(90deg); }
.prow.open .pm::after { transform: rotate(0); }
.pbody { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.pbody > div { overflow: hidden; }
.prow.open .pbody { grid-template-rows: 1fr; }
.pinner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; padding: 4px 0 36px 84px; }
.pinner.noimg { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.pinner figure { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.pinner img { width: 100%; height: 100%; object-fit: cover; }
.status-pill { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--paper); }
.facts { display: grid; grid-template-columns: 130px 1fr; gap: 10px 16px; margin-top: 20px; font-size: 0.93rem; }
.facts dt { color: var(--muted); }
.orig { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 0.98rem; margin-top: 20px; }

/* ---------- faq ---------- */
.faq { margin-left: calc(33.333% + 11px); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: 1.15rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 14px; height: 14px; position: relative; flex: none; margin-top: 8px; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq .ans { padding: 0 48px 26px 0; color: var(--muted); }

/* ---------- about ---------- */
.facts-big { display: grid; grid-template-columns: 220px 1fr; margin-left: calc(33.333% + 11px); border-top: 1px solid var(--line-d); }
.facts-big dt, .facts-big dd { padding: 18px 0; border-bottom: 1px solid var(--line-d); }
.facts-big dt { color: var(--muted-d); font-size: 0.95rem; }
.facts-big dd { font-size: 1.05rem; }
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.people li { padding: 28px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 150px; display: flex; flex-direction: column; justify-content: end; }
.people b { font-size: 1.15rem; font-weight: 600; }
.people span { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.people li.lead { background: var(--ink); color: #fff; }
.people li.lead b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.5rem; }
.people li.lead span { color: var(--muted-d); }
.prose.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(32px, 5vw, 80px); margin-left: calc(33.333% + 11px); }
.prose h3 { margin-bottom: 14px; }
.prose p { color: var(--muted); }
.table-wrap { overflow-x: auto; }
.lic { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 640px; }
.lic th, .lic td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lic thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.lic tbody th { font-weight: 600; }
.lic td { color: var(--muted); }
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.brands > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.brands dt { font-weight: 600; margin-bottom: 4px; }
.brands dd { color: var(--muted); font-size: 0.93rem; }
.timeline { margin-left: calc(33.333% + 11px); border-left: 1px solid var(--line-d); }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 0 0 36px 32px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--char-3); box-shadow: 0 0 0 1px var(--muted-d); }
.timeline li.key::before { background: var(--yellow); box-shadow: none; }
.timeline time { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.1; }
.timeline li.key time { color: var(--yellow); }
.timeline p { color: var(--muted-d); padding-top: 4px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); }
.cblock { padding: 24px 0; border-top: 1px solid var(--line); }
.cblock .label { font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
.cblock .big { font-size: 2rem; font-weight: 500; letter-spacing: -0.02em; }
.cblock a:not(.more):hover { color: var(--indigo); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; background: var(--white); padding: clamp(28px, 4vw, 56px); align-self: start; }
.form .full { grid-column: 1 / -1; }
.form h2 { margin-bottom: 8px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid transparent; border-bottom: 1px solid var(--line); padding: 14px 14px; border-radius: 0; transition: border-color 0.3s, background 0.3s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--indigo); }
.field [aria-invalid='true'] { border-color: #c4302b; }
.err { display: block; color: #c4302b; font-size: 0.85rem; margin-top: 6px; min-height: 1em; }
.form-end { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form-note { font-size: 0.88rem; color: var(--muted); }
.map-embed { margin-top: clamp(64px, 8vw, 100px); aspect-ratio: 21 / 8; background: #dcdbd6; }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.7) contrast(1.05); }


/* ---------- richness: word reveals, parallax ---------- */
.lux { position: relative; isolation: isolate; overflow: hidden; }
/* gold hairline before every section label */
.sec-head .label, .cta .label { display: flex; align-items: center; gap: 14px; }
.sec-head .label::before, .cta .label::before { content: ''; width: 30px; height: 2px; border-radius: 2px; background: var(--gold); flex: none; }
.grey .sec-head .label::before, .white .sec-head .label::before { background: var(--indigo); }

/* headlines rise word by word as they enter */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.05em 0.12em; margin: 0 -0.05em -0.12em; }
.split .w > span { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: left bottom; transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.split.in .w > span { transform: none; }

/* parallax photographs: the image drifts inside its frame */
.par { overflow: hidden; }
.par img { transform: translate3d(0, var(--py, 0%), 0) scale(1.14); will-change: transform; }

/* lines that draw themselves */
.js .lives, .js .plist, .js .ledger, .js .faq, .js .clients { background-image: linear-gradient(var(--gold), var(--gold)); background-repeat: no-repeat; background-size: 0 1px; transition: background-size 1.6s var(--ease); }
.js .drawn { background-size: 100% 1px; }

/* staggered rows */
.js .lives .live.rv:nth-child(2) { transition-delay: 0.06s; }
.js .lives .live.rv:nth-child(3) { transition-delay: 0.12s; }
.js .pillar.rv:nth-child(2) { transition-delay: 0.12s; }
.js .pillar.rv:nth-child(3) { transition-delay: 0.24s; }
.js .ledger .rv:nth-child(2) { transition-delay: 0.08s; }
.js .ledger .rv:nth-child(3) { transition-delay: 0.16s; }
.js .ledger .rv:nth-child(4) { transition-delay: 0.24s; }


/* ---------- bold voice: heavier headlines, fewer words ---------- */
.d1, .d2, .hero-h, .menu-list b { font-weight: 700; letter-spacing: -0.045em; }
.d3, .live h3, .feature h3, .prow h3, .scope h3, .flow h3, .faq summary, .pillar-t, .people b { font-weight: 700; letter-spacing: -0.02em; }
.d1 em, .d2 em, .hero-h em, .d3 em { font-weight: 500; letter-spacing: -0.02em; }
.label, .sec-head .label { font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; }
.lead { font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.2; font-weight: 500; letter-spacing: -0.025em; }
.lead strong, .lede strong { font-weight: 800; color: #fff; }
.grey .lead strong, .white .lead strong, .grey .lede strong, .white .lede strong { color: var(--ink); }
.lede { font-weight: 500; }
.hero-sub { font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em; font-size: clamp(0.78rem, 1vw, 0.9rem); }
.ledger strong { font-weight: 800; letter-spacing: -0.05em; }
.ledger span, .pillar-d { font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; }
.xp-text p, .scope p, .flow p, .prose p { font-weight: 500; font-size: 1.05rem; }
.xp-h { font-weight: 500; }
.scope h3 { font-size: 1.35rem; }
.map-list span { font-weight: 500; }
.foot-phone, .cta-lines, .menu-side .big, .cblock .big { font-weight: 700; letter-spacing: -0.03em; }

/* ---------- water round (29 Oct): one typeface, bold carries the emphasis, deep-water palette ---------- */
em, .xp-h, .live-val, .prow .yr, .timeline time, .foot h4, .people li.lead b, .orig, .menu-list a:hover b, .menu-list a[aria-current] b, .pillar-disc b { font-family: var(--sans); font-style: normal; }
em { font-weight: 800; color: var(--aqua); letter-spacing: inherit; }
.grey em, .white em { color: var(--indigo); }
.d1, .d2, .hero-h, .menu-list b { font-weight: 500; }
.d1 em, .d2 em, .hero-h em, .d3 em, .intro-body .lead em { font-size: 1em; font-weight: 800; letter-spacing: -0.045em; }
.hero-h em { color: #c9f1ff; }
.xp-h { font-weight: 800; letter-spacing: -0.035em; color: var(--ink); }
.live-val { font-weight: 800; letter-spacing: -0.03em; }
.prow .yr, .timeline time, .foot h4, .pillar-disc b { font-weight: 800; }
.people li.lead b { font-weight: 800; font-size: 1.3rem; }
.orig { font-weight: 500; }
.flow li::before { content: none; }
.flow li { padding-top: 22px; }
.flow h3::before { content: ''; display: block; width: 22px; height: 2px; margin-bottom: 16px; border-radius: 2px; background: var(--indigo); }

/* water surfaces */
.head.solid { background: rgba(7, 25, 43, 0.84); }
.pillars-top { background: linear-gradient(180deg, #0b3a5e, #0a2b48); }
.cta-bg::after { background: linear-gradient(90deg, var(--char) 15%, rgba(7, 25, 43, 0.35)); }
/* each page's wallpaper sits behind its dark sections, under a deep-water veil so the words stay readable */
.lux { background: var(--char) center / cover no-repeat; background-image: linear-gradient(180deg, rgba(7, 25, 43, 0.76), rgba(7, 25, 43, 0.9)), var(--wall); }
.phero.lux { background-image: linear-gradient(180deg, rgba(7, 25, 43, 0.5), rgba(7, 25, 43, 0.7) 60%, rgba(7, 25, 43, 0.9)), var(--wall); }
.phero h1, .phero .lede { text-shadow: 0 2px 24px rgba(7, 25, 43, 0.6); }
.phero .lede { color: #d6e9f3; }
.pillars-top.lux { background-position: center 70%; background-image: linear-gradient(180deg, rgba(11, 58, 94, 0.82), rgba(10, 43, 72, 0.9)), var(--wall); }
@media (max-width: 960px) { .lux, .phero.lux, .pillars-top.lux { background-image: linear-gradient(180deg, rgba(7, 25, 43, 0.84), rgba(7, 25, 43, 0.92)), var(--wall-m); } }
.btn { position: relative; overflow: hidden; }
.btn::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); transform: translate(-50%, -50%) scale(0); opacity: 0; pointer-events: none; }
.btn:hover::after { animation: ripple 0.9s var(--ease); }
@keyframes ripple { from { transform: translate(-50%, -50%) scale(0); opacity: 1; } to { transform: translate(-50%, -50%) scale(22); opacity: 0; } }

/* scrollbar in the site's colours */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--char); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #6fd6f2, #0a68a0); border-radius: 999px; border: 3px solid var(--char); }
::-webkit-scrollbar-thumb:hover { background: #6fd6f2; }
@supports not selector(::-webkit-scrollbar) { html { scrollbar-color: #3fa9d4 var(--char); scrollbar-width: thin; } }

/* home hero: a square window over the lake, opening to full bleed */
.hero-wall { position: absolute; inset: 0; overflow: hidden; background: var(--char) center / cover; }
.hero-wall img { width: 100%; height: 100%; object-fit: cover; animation: wallDrift 30s ease-in-out infinite alternate; }
.hero-wall::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 25, 43, 0.55), rgba(7, 25, 43, 0) 26%, rgba(7, 25, 43, 0) 70%, rgba(7, 25, 43, 0.6)); }
@keyframes wallDrift { to { transform: scale(1.07) translate3d(-1%, 1%, 0); } }
.slides, .slides.open { border-radius: 0; background: transparent; box-shadow: 0 40px 80px rgba(7, 25, 43, 0.35); }

/* expertise: bigger, obvious tabs */
.xp-tabs { gap: 12px; margin-top: 48px; padding-top: 32px; }
.xp-tabs button { padding: 16px 26px; font-size: 1.05rem; font-weight: 700; background: var(--white); box-shadow: inset 0 0 0 1.5px rgba(10, 104, 160, 0.28); }
.xp-tabs button:hover { box-shadow: inset 0 0 0 1.5px var(--indigo); color: var(--indigo); }
.xp-tabs button[aria-current] { background: var(--indigo); color: #fff; box-shadow: 0 8px 22px rgba(10, 104, 160, 0.3); }
.xp-btns button { width: 64px; height: 44px; box-shadow: inset 0 0 0 1.5px var(--ink); }

/* recently completed: bigger words, centred on the photo */
.feature { align-items: center; }
.feature .meta { padding-bottom: 0; }
.feature .tag { font-size: 0.9rem; }
.feature h3 { font-size: clamp(1.8rem, 3.1vw, 2.8rem); line-height: 1.08; letter-spacing: -0.035em; }
.feature-sub { font-size: 1.15rem; }
.feature-val { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }

/* logo mark: the bolt strikes in, the wheel turns like a pump impeller; spins again on hover */
.mark .m-bolt { animation: bolt 1.1s 0.2s var(--ease) both; transform-origin: 50% 50%; }
.mark .m-wheel { transform-box: fill-box; transform-origin: center; animation: impeller 1.6s 0.5s var(--ease) both; }
.mark .m-ring { animation: flow 3s linear infinite; }
.brand:hover .m-wheel { animation: impeller 1.2s var(--ease); }
.brand:hover .m-bolt { animation: zap 0.5s ease-in-out; }
@keyframes bolt { from { opacity: 0; transform: translate(-18%, -22%) scale(0.85); } 60% { opacity: 1; } }
@keyframes impeller { from { transform: rotate(-360deg) scale(0.4); opacity: 0; } }
@keyframes flow { to { stroke-dashoffset: -76; } }
@keyframes zap { 50% { filter: brightness(1.6) drop-shadow(0 0 6px #f6be16); } }

/* tighter rhythm: each section reads in about one screen */
.sec { padding: clamp(56px, 6.5vw, 96px) 0; }
.sec-head { margin-bottom: clamp(28px, 3.5vw, 48px); }
.hero { height: calc(var(--scenes) * 70vh + 30vh); }
.intro-body figure { margin-bottom: 32px; max-height: 52vh; overflow: hidden; }
.intro-body figure img { width: 100%; height: 52vh; object-fit: cover; }
.ledger { margin-top: clamp(40px, 5vw, 64px); }
.xp-slide figure { aspect-ratio: 16 / 10; max-height: 58vh; }
.xp-tabs { margin-top: 32px; padding-top: 24px; }
.features { gap: clamp(40px, 5vw, 64px); }
.feature figure { aspect-ratio: 16 / 9; max-height: 42vh; }
.clients li { min-height: 68px; padding: 18px; }
.intro-body figure, .intro-body figure img { max-height: 44vh; }
.live { padding: 22px 0; }
.pillars-top { padding: clamp(56px, 6.5vw, 96px) 0 clamp(150px, 15vw, 200px); }
.pillars { padding-bottom: clamp(56px, 6.5vw, 96px); }
.pillar a { aspect-ratio: 3 / 3.4; }
.sub { margin: 48px 0 20px; }
.cta { padding: clamp(64px, 8vw, 110px) 0; }
.phero-grid { padding-bottom: clamp(32px, 4vw, 52px); }
.phero .frame { aspect-ratio: 3 / 1; }
.gallery { margin-bottom: clamp(40px, 5vw, 64px); }
.gallery img { height: clamp(200px, 24vw, 340px); }
.timeline li { padding-bottom: 24px; }
.foot-links { margin-top: 40px; }
.foot { padding-top: clamp(48px, 6vw, 72px); }
@media (max-width: 960px) {
  .intro-body figure img { height: auto; aspect-ratio: 4 / 3; }
  .intro-body figure, .xp-slide figure, .feature figure { max-height: none; }
  .phero .frame { aspect-ratio: 16 / 10; }
  .pillar a { aspect-ratio: auto; }
}

/* registrations: logos sit straight on the page, name underneath */
.regs { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 32px 16px; }
@media (max-width: 1180px) { .regs { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 760px) { .regs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.regs li, .white .regs li { flex-direction: column; justify-content: flex-start; align-items: center; gap: 16px; text-align: center; background: transparent; padding: 0; }
.regs img { width: min(116px, 100%); height: auto; aspect-ratio: 1; object-fit: contain; padding: 12px; border-radius: 50%; background: #fff; box-shadow: 0 10px 26px rgba(10, 60, 100, 0.12), inset 0 0 0 1px rgba(10, 104, 160, 0.08); transition: transform 0.5s var(--ease), box-shadow 0.5s; }
.regs li:hover img { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(10, 60, 100, 0.2); }
.regs b { font-size: 0.92rem; font-weight: 700; line-height: 1.3; }
@media (max-width: 560px) { .regs { gap: 24px 10px; } .regs img { width: 92px; height: 92px; padding: 8px; } .regs b { font-size: 0.8rem; } .xp-tabs button { padding: 13px 18px; font-size: 0.95rem; } }

/* ---------- responsive ---------- */
/* phones and tablets: same look, lighter work for the GPU */
@media (max-width: 960px), (pointer: coarse) {
      .hero-wall img { animation: none; }
  .hero-copy { filter: none; }
  .slides img { will-change: auto; }
}
@media (max-width: 1180px) {
  .nav, .head-call { display: none; }
  .menu-btn { margin-left: auto; }
}
@media (max-width: 960px) {
  :root { --head-h: 72px; }
  .sec-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sec-head .label { padding-top: 0; font-size: 1rem; color: var(--muted-d); }
  .grey .sec-head .label, .white .sec-head .label { color: var(--muted); }
  .intro-body, .scope, .faq, .facts-big, .prose.cols, .timeline { margin-left: 0; }
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger > div:nth-child(2) { border-right: 0; }
  .ledger > div:nth-child(3) { padding-left: 0; }
  .ledger > div:nth-child(n + 3) { border-top: 1px solid var(--line-d); margin-top: 32px; }
  .xp-nav { justify-content: space-between; margin: 0 0 28px; }
  .xp-slide, .feature, .feature:nth-child(even), .map-grid, .cta-grid, .phero-grid, .contact-grid, .live, .menu-in { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-child(even) figure { order: 0; }
  .feature .idx { font-size: 2.4rem; margin-bottom: 16px; }
  .live { gap: 18px; }
  .pillar-list { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
  .pillar a { aspect-ratio: auto; padding: 48px 24px; }
  .clients, .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li, .flow li + li { padding: 24px 18px 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .flow li:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .gallery figure:nth-child(n) { grid-column: span 12; }
  .gallery figure img { height: auto; aspect-ratio: 4 / 3; }
  .prow > button { grid-template-columns: 52px minmax(0, 1fr) 20px; }
  .prow .loc, .prow .val { display: none; }
  .pinner, .pinner.noimg { grid-template-columns: minmax(0, 1fr); padding-left: 0; }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .menu-side { align-self: start; }
  .phero .frame { aspect-ratio: 16 / 10; }
  .hero-cap .hero-txt { display: none; }
  .map-embed { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand small { display: none; }
  .menu-btn .t { display: none; }
  .scroll { display: none; }
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .ledger > div, .ledger > div:nth-child(n) { border-right: 0; padding-left: 0; border-top: 1px solid var(--line-d); margin-top: 0; padding-bottom: 28px; }
  .ledger > div:first-child { border-top: 0; }
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients li { padding: 16px 14px; font-size: 0.88rem; }
  .clients li { min-height: 0; }
  .people { grid-template-columns: minmax(0, 1fr); }
  .people li { min-height: 0; }
  .scope, .prose.cols { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow li:nth-child(even) { padding-left: 0; border-left: 0; }
  .facts-big { grid-template-columns: minmax(0, 1fr); }
  .facts-big dt { border-bottom: 0; padding-bottom: 0; }
  .facts-big dd { padding-top: 4px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .map-list button { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .xp-btns button { width: 48px; }
  .menu-list a { grid-template-columns: 1fr; gap: 6px; }
  .to-top { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .slides img { transition: none; }
}

/* page heroes: words on the left, photograph on the right */
.phero { padding-bottom: clamp(56px, 7vw, 104px); }
.phero-grid.split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; padding-bottom: 0; }
.phero-grid.split .lede { margin-top: 24px; }
.phero-grid.split .frame { margin: 0; aspect-ratio: 4 / 3; max-height: 62vh; width: 100%; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); }
@media (max-width: 960px) { .phero-grid.split { grid-template-columns: minmax(0, 1fr); } .phero-grid.split .frame { aspect-ratio: 16 / 10; max-height: none; } }

/* team page: department on the left, people on the right */
.team-more { margin-top: 32px; }
.tm-group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--line); }
.tm-group:first-child { border-top: 0; padding-top: 0; }
.tm-group:last-child { padding-bottom: 0; }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
.team li { display: flex; flex-direction: column; }
.tm-photo { display: block; aspect-ratio: 4 / 5; background: #e4e9ee; margin-bottom: 14px; }
.team b { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.team li > span:last-child { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
@media (max-width: 960px) { .tm-group { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
@media (max-width: 560px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; } .team b { font-size: 0.98rem; overflow-wrap: anywhere; } }

/* images appear only once fully downloaded: solid water colour first, never a blurry or half-painted picture */
.js .hero-wall img { opacity: 0; transition: opacity 0.8s var(--ease); }
.js .hero-wall img.ld { opacity: 1; }
.js .slides img.on:not(.ld) { opacity: 0; }
