/* GLI site sample v2: dark, private-markets style. 2026-12-05 */
:root {
  color-scheme: dark;
  --bg: #0C120F;
  --bg-alt: #151F1A;
  --text: #E9EDEA;
  --muted: #95A39B;
  --faint: #84928A;
  --line: rgba(233, 237, 234, 0.14);
  --accent: #8CC26B;
  --serif: "Source Serif 4", Georgia, "Times New Roman", "Songti TC", serif;
  --sans: Inter, "Helvetica Neue", Arial, "PingFang TC", sans-serif;
  --wrap: 1280px;
  /* Type scale: every text on the page uses one of these */
  --fs-display: clamp(42px, 5.8vw, 96px);  /* hero headline */
  --fs-company: clamp(22px, 2vw, 32px);     /* company name above the headline */
  --fs-h2: clamp(28px, 2.5vw, 40px);        /* section titles, About lead sentence */
  --fs-h3: clamp(21px, 1.6vw, 26px);        /* service, value, team names */
  --fs-lead: 18px;                          /* hero intro */
  --fs-body: 16px;                          /* all paragraphs */
  --fs-ui: 15px;                            /* nav, links, buttons, service index */
  --fs-small: 13px;                         /* labels, numbers, roles, footer */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 16px; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--text); font-weight: 500; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }

.draft-badge {
  position: fixed; right: 12px; bottom: 12px; z-index: 50;
  background: #FFF4D6; color: #6B5200; border: 1px solid #E9D08A;
  font-size: 12px; font-weight: 400; padding: 4px 10px; border-radius: 4px;
}

/* Header: transparent over the hero, solid once scrolled */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  transition: background .3s, border-color .3s, transform .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(12, 18, 15, 0.92); border-color: var(--line); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand img { height: 40px; width: auto; }
.svc-img, .band img { height: auto; }
.nav { display: flex; gap: 36px; align-items: center; font-size: var(--fs-ui); letter-spacing: 0.04em; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav .nav-cta { color: var(--text); border: 1px solid var(--line); padding: 8px 18px; border-radius: 999px; }
.nav .nav-cta:hover { border-color: var(--text); }
.nav .lang { color: var(--text); }
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; cursor: pointer; color: var(--text); font-size: var(--fs-ui); padding: 8px 4px; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav-list {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px;
  display: grid; background: var(--bg-alt); border: 1px solid var(--line); padding: 8px 0;
}
.mnav-list a { padding: 12px 20px; color: var(--muted); }
.mnav-list a:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 80px;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 1; width: 100%; padding-bottom: 72px; }
.label {
  font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  padding-top: 10px;
}
.company {
  font-size: var(--fs-company); font-weight: 500; letter-spacing: 0.01em;
  color: var(--text); margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: var(--fs-display);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 28px;
}
/* Rotating last line of the headline */
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator .word {
  grid-area: 1 / 1; white-space: nowrap; font-style: italic; color: #CFE8BE;
  opacity: 0; transform: translateY(0.35em);
  transition: opacity .4s ease, transform .4s ease;
}
.rotator .word.is-on { opacity: 1; transform: none; }
.rotator .word.is-off { opacity: 0; transform: translateY(-0.35em); }

.motion-toggle {
  position: absolute; right: 40px; bottom: 96px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(12,18,15,0.4); cursor: pointer;
  display: grid; place-items: center;
}
.motion-toggle span { width: 10px; height: 12px; border-left: 3px solid var(--text); border-right: 3px solid var(--text); }
.motion-toggle.paused span { width: 0; height: 0; border: 0; border-left: 11px solid var(--text); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.hero-sub { text-shadow: 0 0 14px var(--bg), 0 0 28px var(--bg); font-size: var(--fs-lead); color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.link-arrow { font-size: var(--fs-ui); border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color .2s; }
.link-arrow:hover { border-color: var(--text); }
.link-arrow span { display: inline-block; transition: transform .2s; }
.link-arrow:hover span { transform: translateX(4px); }

.hero-index {
  position: relative; z-index: 1; width: 100%;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.hero-index a {
  padding: 22px 24px 28px 0; font-size: var(--fs-ui); color: var(--muted); line-height: 1.45;
  transition: color .2s;
}
.hero-index a:hover { color: var(--text); }
.hero-index span { display: block; font-size: var(--fs-small); color: var(--faint); margin-bottom: 8px; letter-spacing: 0.08em; }

/* Sections */
.section { padding: 140px 0; }
.section-alt { background: var(--bg-alt); }
.grid-12 { display: grid; grid-template-columns: 3fr 9fr; gap: 40px; }
.col-main { min-width: 0; }

.about { max-width: 820px; }
.about p { font-size: var(--fs-lead); line-height: 1.75; color: var(--muted); margin: 0; }

.band { margin: 0; height: 50vh; min-height: 360px; position: relative; overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) brightness(0.55) contrast(1.05); }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, transparent 25%, transparent 75%, var(--bg) 100%); }

h2 { font-family: var(--serif); font-weight: 300; font-size: var(--fs-h2); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 32px; }
.lead { max-width: 680px; color: var(--muted); }

/* Services: hairline rows */
.svc-list { margin-top: 96px; }
.svc {
  display: grid; grid-template-columns: 3fr 5fr 4fr; gap: 40px;
  padding: 48px 0; border-top: 1px solid var(--line);
}
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc-head .num { display: block; margin-bottom: 14px; }
.num { font-size: var(--fs-small); color: var(--faint); letter-spacing: 0.1em; }
.svc h3 { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.15; }
.svc-body { color: var(--muted); font-size: var(--fs-body); }
.svc-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  filter: grayscale(1) brightness(0.7); transition: filter .5s;
}
.svc:hover .svc-img { filter: grayscale(0) brightness(0.85); }

/* Selected experience: anonymised case cards */
.exp-intro { max-width: 680px; margin-bottom: 56px; }
.exp-group + .exp-note { margin: -8px 0 18px; }
.exp-group { font-size: var(--fs-small); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 64px; }
.exp { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-direction: column; }
.exp-meta { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-small); margin-bottom: 14px; }
.exp-meta span:first-child { color: var(--accent); }
.exp-meta span:last-child { color: var(--faint); }
.exp h3 { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.25; margin-bottom: 12px; }
.exp p:not(.exp-meta):not(.exp-status) { color: var(--muted); font-size: var(--fs-body); margin: 0; }
.exp-status { margin: 16px 0 0; font-size: var(--fs-small); color: var(--text); }
.exp-status::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
.exp-note { font-size: var(--fs-small); color: var(--muted); max-width: 680px; }

/* Values: hairline rows, same rhythm as services and team */
.value {
  display: grid; grid-template-columns: 48px 1fr 1.4fr; gap: 24px; align-items: baseline;
  border-top: 1px solid var(--line); padding: 28px 0;
}
.value:last-child { border-bottom: 1px solid var(--line); }
.value h3 { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.2; }
.value p { font-size: var(--fs-body); color: var(--muted); margin: 0; }

/* Team: expandable rows, kept compact so name, title and + sit close together */
.team { max-width: 760px; }
.person { border-top: 1px solid var(--line); }
.person:last-child { border-bottom: 1px solid var(--line); }
.person summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 240px 1fr 24px; align-items: baseline; gap: 24px;
  padding: 26px 0;
}
.person summary::-webkit-details-marker { display: none; }
.person summary:focus:not(:focus-visible) { outline: none; }
.name { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.1; }
.meta { display: grid; gap: 4px; }
.role { color: var(--text); font-size: var(--fs-small); letter-spacing: 0.04em; }
.firms { color: var(--faint); font-size: var(--fs-small); }
.plus { position: relative; width: 16px; height: 16px; align-self: center; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 7.5px; width: 16px; height: 1px; background: var(--text); transition: transform .25s; }
.plus::after { transform: rotate(90deg); }
.person[open] .plus::after { transform: rotate(0deg); }
.person summary:hover .name { color: var(--accent); }
.person > p { color: var(--muted); margin-left: 264px; padding-bottom: 36px; font-size: var(--fs-body); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact h2 { margin-bottom: 16px; }
.muted { color: var(--muted); }
.form { display: grid; gap: 28px; }
.form label { display: grid; gap: 6px; }
.form label span { font-size: var(--fs-small); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.form input, .form textarea, .form select {
  font: inherit; color: var(--text); background: transparent;
  border: 0; border-bottom: 1px solid var(--faint); padding: 8px 0; border-radius: 0; resize: vertical;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); }
.btn {
  justify-self: start; font: inherit; font-size: var(--fs-ui); color: var(--bg); background: var(--text);
  border: 0; border-radius: 999px; padding: 12px 28px; cursor: pointer; transition: background .2s;
}
.btn:hover { background: var(--accent); }
.form-note { color: var(--accent); margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 40px; padding: 64px 40px 40px; font-size: var(--fs-small); color: var(--faint); }
.footer-inner p { margin: 0; }
.footer-logo { height: 30px; width: auto; }
.footer-nav { display: flex; gap: 28px; justify-content: flex-end; flex-wrap: wrap; }
.footer-nav a:hover { color: var(--text); }

/* Mobile */
@media (max-width: 900px) {
  .wrap { padding: 0 22px; }
  html { scroll-padding-top: 72px; }
  .header-inner { height: 64px; }
  .brand img { height: 34px; }
  .nav > a:not(.nav-cta):not(.lang) { display: none; }
  .nav { gap: 16px; }
  .mnav { display: block; }
  :root { --fs-display: clamp(36px, 10vw, 96px); }
  .hero-inner { padding-bottom: 48px; }
  .motion-toggle { right: 22px; top: 76px; bottom: auto; }
  .hero-index { grid-template-columns: 1fr 1fr; }
  .hero-index a { padding: 16px 12px 18px 0; font-size: var(--fs-small); }
  .section { padding: 88px 0; }
  .grid-12, .lead, .contact { grid-template-columns: 1fr; gap: 24px; }
  .svc-list { margin-top: 56px; }
  .svc { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; }
  .svc-media { order: -1; }
  .svc-img { filter: grayscale(0.3) brightness(0.8); }
  .value { grid-template-columns: 1fr; gap: 8px; padding: 22px 0 24px; }
  .exp-grid { grid-template-columns: 1fr; gap: 0; margin-bottom: 44px; }
  .exp { padding: 22px 0 26px; }
  .person summary { grid-template-columns: 1fr 24px; gap: 4px 16px; padding: 24px 0; }
  .person .meta { grid-column: 1; grid-row: 2; }
  .plus { grid-column: 2; grid-row: 1 / span 2; }
  .person > p { margin-left: 0; }
  .band { height: 46vh; min-height: 280px; }
  .footer-inner { grid-template-columns: 1fr; justify-items: start; gap: 18px; padding: 48px 22px 32px; }
  .footer-nav { justify-content: flex-start; gap: 18px; }
}

/* Chinese page: Noto Serif TC / Noto Sans TC, no italics, roomier line height */
html[lang="zh-Hant"] {
  /* Peers' Chinese pages (BlackRock, Fidelity, Cathay, HSBC, UBS, PwC, HKEX...) all set Chinese in a Hei (sans) face */
  --serif: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --sans: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
html[lang="zh-Hant"] body { line-height: 1.85; }
html[lang="zh-Hant"] .rotator .word { font-style: normal; }
html[lang="zh-Hant"] .hero h1 { line-height: 1.2; letter-spacing: 0.02em; }
html[lang="zh-Hant"] h2,
html[lang="zh-Hant"] h3 { letter-spacing: 0.02em; }
html[lang="zh-Hant"] h2 { line-height: 1.45; }
html[lang="zh-Hant"] .about p,
html[lang="zh-Hant"] .svc-body p,
html[lang="zh-Hant"] .exp p,
html[lang="zh-Hant"] .value p,
html[lang="zh-Hant"] .person > p { line-height: 1.9; }
/* Chinese: avoid one- or two-character last lines; names are short, so a narrower name column */
html[lang="zh-Hant"] .hero-sub,
html[lang="zh-Hant"] h2,
html[lang="zh-Hant"] h3 { text-wrap: balance; }
html[lang="zh-Hant"] .about p,
html[lang="zh-Hant"] .svc-body p,
html[lang="zh-Hant"] .exp p,
html[lang="zh-Hant"] .person > p { text-wrap: pretty; }
@media (min-width: 901px) {
  html[lang="zh-Hant"] .person summary { grid-template-columns: 140px 1fr 24px; }
  html[lang="zh-Hant"] .person > p { margin-left: 164px; }
}

/* Keyboard users can see where they are (mouse clicks stay clean) */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.form input:focus-visible, .form textarea:focus-visible, .form select:focus-visible { outline: none; }

/* Dropdown in the enquiry form matches the underlined inputs */
.form select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2395A39B'/%3E%3C/svg%3E") no-repeat right 4px center; }
.form select option { color: #0C120F; background: #E9EDEA; }
.form select:has(option[value=""]:checked) { color: var(--faint); }

/* Keyboard users can jump past the menu */
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 18px; border-radius: 999px;
  background: var(--text); color: var(--bg); transition: top .2s; }
.skip:focus { top: 16px; }

/* ---- Polish round 2: navigation (KKR / Blackstone / Brookfield / CIP patterns) ---- */
/* Language switch shows both, the current one marked */
.lang-switch { display: inline-flex; gap: 10px; align-items: center; }
.lang-switch > * + *::before { content: "/"; color: var(--faint); margin-right: 10px; }
.lang-switch [aria-current] { color: var(--text); }
.nav .lang-switch .lang { color: var(--muted); }
.nav .lang-switch .lang:hover { color: var(--text); }

/* Menu links: thin underline grows on hover; current section stays marked */
.nav > a:not(.nav-cta) { position: relative; }
.nav > a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav > a:not(.nav-cta):hover::after, .nav > a[aria-current]::after { transform: scaleX(1); }
.nav > a[aria-current] { color: var(--text); }

/* Header slides away while reading down, comes back when scrolling up */
.site-header.hide { transform: translateY(-100%); }

/* Service index under the hero: accent line runs along the top on hover */
.hero-index a { position: relative; }
.hero-index a::before {
  content: ""; position: absolute; left: 0; right: 24px; top: -1px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.hero-index a:hover::before, .hero-index a:focus-visible::before { transform: scaleX(1); }

/* Hero text settles in on first load */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > *, .hero-index { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-inner > :nth-child(2) { animation-delay: .12s; }
  .hero-inner > :nth-child(3) { animation-delay: .24s; }
  .hero-inner > :nth-child(4) { animation-delay: .36s; }
  .hero-index { animation-delay: .5s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Mobile menu: full-screen panel with large links */
@media (max-width: 900px) {
  .mnav-list {
    position: fixed; inset: 64px 0 0 0; min-width: 0; border: 0; border-top: 1px solid var(--line);
    background: var(--bg); padding: 24px 22px 40px; align-content: start; overflow-y: auto;
  }
  .mnav-list a {
    font-family: var(--serif); font-size: 28px; font-weight: 300; line-height: 1.2; color: var(--text);
    padding: 16px 0; border-bottom: 1px solid var(--line);
  }
  .mnav-list a[aria-current] { color: var(--accent); }
  .mnav-list .mnav-lang { font-family: var(--sans); font-size: var(--fs-ui); color: var(--muted); border: 0; margin-top: 16px; }
  body:has(.mnav[open]) { overflow: hidden; }
  .site-header:has(.mnav[open]) { background: var(--bg); }
}
@media (max-width: 900px) {
  /* Phones: just the other language, as before; the full menu also lists it */
  .lang-switch [aria-current] { display: none; }
  .lang-switch > * + *::before { content: none; }
  .nav > *, .mnav summary { white-space: nowrap; }
}

/* ---- Polish round 3: content presentation ---- */
/* Experience cards: accent line on hover (Brookfield / CIP case tiles) */
.exp { position: relative; }
.exp::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .5s ease;
}
.exp:hover::before { transform: scaleX(1); }
/* Earlier-stage projects get a hollow dot */
.exp-status.is-dev::before { background: transparent; box-shadow: inset 0 0 0 1px var(--accent); }

/* Section labels stay in view while reading a long section (Lazard / Brookfield editorial layout) */
@media (min-width: 901px) {
  .grid-12 > .label { position: sticky; top: 120px; align-self: start; }
}

/* "Discuss this service" under each service */
.svc-ask { display: inline-block; margin-top: 8px; color: var(--text); }

/* Team bios open smoothly where the browser supports it */
.person::details-content { block-size: 0; overflow: hidden; transition: block-size .35s ease, content-visibility .35s allow-discrete; }
.person[open]::details-content { block-size: auto; }
:root { interpolate-size: allow-keywords; }

/* Footer: brand + tagline, links, then a base row (CIP / Brookfield) */
.footer-brand p { margin: 14px 0 0; color: var(--muted); font-size: var(--fs-small); }
.footer-base {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  border-top: 1px solid var(--line); padding-top: 24px; padding-bottom: 32px;
  font-size: var(--fs-small); color: var(--faint);
}
.footer-base p { margin: 0; }
.to-top:hover { color: var(--text); }
@media (max-width: 900px) {
  .footer-base { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Slow drift on the photo band (KKR / Brookfield use slow-moving imagery) */
@media (prefers-reduced-motion: no-preference) {
  .band img { transform: scale(1.08); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
  .band.in img { transform: scale(1); }
}

/* Sections fade up as they arrive */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---- Polish round 4: form and accessibility ---- */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.field-err { color: #E8A39A; font-size: var(--fs-small); }
.form input[aria-invalid="true"] { border-bottom-color: #E8A39A; }
.form-req { margin: -12px 0 0; font-size: var(--fs-small); color: var(--faint); }
.form label:focus-within > span { color: var(--accent); }
.form label > span { transition: color .2s; }
.form textarea { field-sizing: content; min-height: 6.5em; max-height: 20em; }
.btn:disabled { opacity: .6; cursor: default; }

/* Selection and scrollbars in brand colours */
::selection { background: rgba(140, 194, 107, 0.35); color: var(--text); }
html { scrollbar-color: #2C3A33 var(--bg); }

/* Reduced motion: no smooth scrolling or decorative transitions anywhere */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* ---- Polish round 5: typography, wide screens, print ---- */
/* Headings break evenly; paragraphs avoid a lonely last word (English too) */
h1, h2, h3, .hero-sub { text-wrap: balance; }
p { text-wrap: pretty; }
/* Numbers line up */
.num, .hero-index span, .footer-base { font-variant-numeric: tabular-nums; }

/* Wide screens use more of the width, like KKR / Brookfield (1400–1440px containers) */
@media (min-width: 1600px) { :root { --wrap: 1400px; } }

/* Animation button explains itself on hover / focus */
.motion-toggle::after {
  content: attr(data-tip); position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: var(--fs-small); color: var(--muted); background: rgba(12,18,15,0.85);
  padding: 4px 10px; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.motion-toggle:hover::after, .motion-toggle:focus-visible::after { opacity: 1; }

/* Print: a clean light page (Lazard / McKinsey pages print this way) */
@media print {
  :root { --bg: #fff; --bg-alt: #fff; --text: #111; --muted: #333; --faint: #555; --line: #ccc; --accent: #2F6B2A; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .site-header, #hero-canvas, .motion-toggle, .band, .svc-img, .draft-badge, .skip, .form, .to-top, .svc-ask, .hero-index, .link-arrow { display: none !important; }
  .hero { min-height: 0; padding: 0 0 24pt; }
  .section { padding: 24pt 0; }
  .svc, .exp, .value, .person { break-inside: avoid; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rotator .word:not(.is-on) { display: none; }
  .rotator .word.is-on { opacity: 1; transform: none; color: var(--accent); }
  * { text-shadow: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .person > p { display: block; }
  .grid-12 > .label { position: static; }
  a { color: inherit; }
}
.nowrap { white-space: nowrap; }

/* ==== Second 50 rounds (51–100), 2026-12-05 ==== */
/* 51 Reading progress along the top edge (McKinsey / Brookfield articles) */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 30; background: var(--accent);
  transform: scaleX(0); transform-origin: left; pointer-events: none; }
/* 52 Where a menu or index link lands is briefly highlighted */
@keyframes landed { from { color: var(--accent); } to { color: inherit; } }
.svc:target h3, .section:target h2 { animation: landed 1.8s ease-out; }
[tabindex="-1"]:focus { outline: none; }
/* 54 Mobile menu links slide in one after another (KKR) */
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .mnav[open] .mnav-list a { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
  .mnav[open] .mnav-list a:nth-child(2) { animation-delay: .04s; }
  .mnav[open] .mnav-list a:nth-child(3) { animation-delay: .08s; }
  .mnav[open] .mnav-list a:nth-child(4) { animation-delay: .12s; }
  .mnav[open] .mnav-list a:nth-child(5) { animation-delay: .16s; }
  .mnav[open] .mnav-list a:nth-child(6) { animation-delay: .20s; }
  .mnav[open] .mnav-list a:nth-child(7) { animation-delay: .24s; }
}
/* 56 Round back-to-top button after the first screen (HSBC / Brookfield mobile) */
.fab-top {
  position: fixed; right: 12px; bottom: calc(52px + env(safe-area-inset-bottom)); z-index: 40;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(21, 31, 26, 0.92); border: 1px solid var(--line); color: var(--text); font-size: 18px;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .3s, transform .3s, border-color .2s;
}
.fab-top.show { opacity: 1; transform: none; pointer-events: auto; }
.fab-top:hover { border-color: var(--accent); color: var(--accent); }
/* 57 Header gets slimmer and the logo smaller once scrolled (Blackstone) */
.header-inner { transition: height .3s; }
.brand img { transition: height .3s; }
@media (min-width: 901px) {
  .site-header.scrolled .header-inner { height: 64px; }
  .site-header.scrolled .brand img { height: 32px; }
}
/* 58 Expand / collapse all bios */
.team-toggle { display: block; margin: 0 0 16px auto; font: inherit; font-size: var(--fs-small); letter-spacing: 0.08em;
  color: var(--muted); background: none; border: 0; padding: 10px 0; cursor: pointer; }
.team-toggle:hover { color: var(--text); }
/* 60 Footer links underline like the header menu */
.footer-nav a { position: relative; }
.footer-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.footer-nav a:hover::after { transform: scaleX(1); }

/* 61 A dark wash at the bottom of the hero keeps text clear of bright strands (KKR video scrim) */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; pointer-events: none;
  background: linear-gradient(to top, rgba(12, 18, 15, 0.8), rgba(12, 18, 15, 0)); }
.hero-inner, .hero-index { z-index: 2; }
.motion-toggle { z-index: 3; }
/* 62 Service photo zooms gently inside its frame (Brookfield) */
.svc-media { overflow: hidden; align-self: start; }
.svc-img { transition: filter .5s, transform .8s cubic-bezier(.2,.7,.2,1); }
.svc:hover .svc-img { transform: scale(1.04); }
/* 63 Service row: number and title turn green on hover */
.svc .num, .svc h3 { transition: color .3s; }
.svc:hover .num, .svc:hover h3 { color: var(--accent); }
/* 64 Values: accent line along the top on hover, like the experience cards */
.value { position: relative; }
.value::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .5s ease; }
.value:hover::before { transform: scaleX(1); }
/* 65 Team row lights up slightly on hover */
.person summary { margin: 0 -16px; padding-left: 16px; padding-right: 16px; transition: background .25s; }
.person summary:hover { background: rgba(233, 237, 234, 0.035); }
/* 66 Submit arrow moves on hover like the other links */
.btn span { display: inline-block; transition: transform .2s; }
.btn:hover span { transform: translateX(4px); }
/* 67 "Primary / Secondary market" as small subheads (Lazard service pages) */
.svc-body em { display: block; font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); margin-bottom: 6px; }
/* 69 Confirmation panel after sending */
.form-done { align-self: start; border-top: 1px solid var(--accent); padding-top: 28px; }
.form[hidden], .form-done[hidden] { display: none; }
@media (min-width: 901px) { .form-done { grid-column: 2; grid-row: 1; } }
.form-done p { color: var(--text); font-size: var(--fs-lead); margin: 16px 0 24px; }
.form-done .again { background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); font: inherit; font-size: var(--fs-ui); cursor: pointer; padding: 0 0 4px; }
.tick { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--accent); }
.tick::before { content: ""; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translate(1px, -1px); }
/* 70 Short accent line before each section label (KKR / Brookfield) */
.grid-12 > .label::before { content: ""; display: inline-block; width: 24px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 12px; }

/* 71 Notched phones: content stays inside the safe area */
@media (max-width: 900px) {
  .wrap { padding-left: max(22px, env(safe-area-inset-left)); padding-right: max(22px, env(safe-area-inset-right)); }
  .footer-base { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
}
.draft-badge { bottom: calc(12px + env(safe-area-inset-bottom)); }
/* 72 Touch targets at least 44px on phones */
@media (max-width: 900px) {
  .footer-nav a, .to-top { display: inline-block; padding: 12px 0; }
  .footer-nav { gap: 4px 22px; }
  .nav .lang-switch a { display: inline-block; padding: 12px 0; }
  .mnav summary { padding: 12px 4px; }
}
/* 73 No grey flash on tap; a light press instead */
a, button, summary { -webkit-tap-highlight-color: transparent; }
@media (hover: none) { a:active, button:active, summary:active { opacity: .65; } }
/* 74 Phone turned sideways: the hero is not squeezed */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --fs-display: clamp(30px, 6vw, 52px); }
  .hero { min-height: 0; padding-top: 88px; }
  .hero-inner { padding-bottom: 28px; }
  .hero h1 { margin-bottom: 16px; }
  .hero-sub { margin-bottom: 18px; }
  .hero-index { display: none; }
  .motion-toggle { top: 76px; }
  html .lang-hint { top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); right: auto; max-width: 60%; }
}
/* 75 Tablets (901–1180px): service text gets room, photo sits under it */
@media (min-width: 901px) and (max-width: 1180px) {
  .svc { grid-template-columns: 1fr 2fr; }
  .svc-media { grid-column: 2; }
  .svc-img { aspect-ratio: 16 / 9; }
}
/* 76 Phones: wider, shorter service photos */
@media (max-width: 900px) { .svc-img { aspect-ratio: 16 / 9; } }
/* 80 Phones: hero service index easier to read and tap */
@media (max-width: 900px) { .hero-index a { font-size: 14px; } }

/* 91 Chinese: no punctuation at the start of a line */
html[lang="zh-Hant"] body { line-break: strict; }
/* 92 Language suggestion card */
.lang-hint { position: fixed; right: 16px; top: 92px; z-index: 45; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 16px; border-radius: 8px;
  background: rgba(21, 31, 26, 0.96); border: 1px solid var(--line); font-size: var(--fs-small); color: var(--muted); }
.lang-hint a { color: var(--text); border-bottom: 1px solid var(--accent); }
.lang-hint button { background: none; border: 0; color: var(--muted); font-size: 18px; line-height: 1; width: 32px; height: 32px; cursor: pointer; }
.lang-hint button:hover { color: var(--text); }
@media (max-width: 900px) { .lang-hint { top: 76px; left: 12px; right: 12px; max-width: none; justify-content: space-between; } }
/* 93 Characters left, shown near the limit */
.msg-count { font-size: var(--fs-small); color: var(--faint); justify-self: end; }
/* 404 page (moved out of the page so the security policy can forbid inline styles) */
.nf { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; gap: 56px; padding: 80px 0; }
.nf h1 { font-family: var(--serif); font-weight: 300; font-size: var(--fs-h2); line-height: 1.2; margin: 0 0 16px; }
.nf .zh, .nf .zh h1 { font-family: Inter, "Noto Sans TC", sans-serif; }
.nf p { color: var(--muted); max-width: 520px; }
.nf-links { display: flex; gap: 32px; flex-wrap: wrap; }

/* 96 / 97 Print: headings stay with their text; the site address at the end */
@media print {
  .progress, .fab-top, .lang-hint, .team-toggle, .form-done, .hero::after { display: none !important; }
  h2, h3, .label { break-after: avoid; }
  :root { color-scheme: light; }
  html { background: #fff; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 4pt; }
  .footer-base::after { content: "www.green-intel.com"; color: #555; font-size: 9pt; }
  .svc-media { display: none; }
  .person summary { margin: 0; padding-left: 0; padding-right: 0; }
}
