/* Site C: Ledger. Quiet, typographic, forest green on near-white. The skyline is a chart. */
:root {
  --paper: #fbfbf8;
  --ink: #171a18;
  --body: #454a46;
  --forest: #1f4a3a;
  --forest-2: #173a2d;
  --sage: #e6ede8;
  --stone: #7b807a;
  --line: #d9ddd6;
  --serif: "IBM Plex Serif", "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --sans: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --side: 248px;
}
html[lang="zh-HK"] {
  --serif: "IBM Plex Serif", "Noto Serif HK", "Songti TC", "PMingLiU", Georgia, serif;
  --sans: "IBM Plex Sans", "PingFang HK", "PingFang TC", "Microsoft JhengHei", "Noto Sans HK", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.7; color: var(--body); background: var(--paper); -webkit-font-smoothing: antialiased; }
svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 0; line-height: 1.2; letter-spacing: -0.015em; }
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 1em; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
dd { margin: 0; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Side navigation */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); display: flex; flex-direction: column; padding: 36px 28px 28px; border-right: 1px solid var(--line); background: var(--paper); z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 19px; line-height: 1.2; font-weight: 500; color: var(--forest); }
.nav { display: flex; flex-direction: column; gap: 4px; margin-top: 72px; }
.nav a { position: relative; padding: 7px 0 7px 18px; color: var(--stone); transition: color .2s; }
.nav a::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 1.5px; background: currentColor; opacity: 0; transition: opacity .2s, width .2s; }
.nav a:hover { color: var(--ink); }
.nav a.current { color: var(--forest); font-weight: 600; }
.nav a.current::before { opacity: 1; width: 12px; }
.lang { margin-top: auto; display: flex; gap: 4px; }
.lang button { font: inherit; font-size: 14px; color: var(--stone); background: none; border: 1px solid transparent; padding: 4px 10px; cursor: pointer; border-radius: 3px; }
.lang button:hover { color: var(--ink); }
.lang button.active { color: var(--forest); border-color: var(--forest); font-weight: 600; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 0; color: var(--ink); cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 6px auto; }

/* Layout */
.main { margin-left: var(--side); }
.col { width: min(980px, 100% - clamp(48px, 9vw, 144px)); margin-left: clamp(24px, 6vw, 96px); }
.section { padding: clamp(80px, 11vw, 148px) 0; }
.sage { background: var(--sage); }
h2 { font-size: clamp(30px, 3.6vw, 46px); max-width: 20ch; margin-bottom: 20px; }
html[lang^="zh"] h2 { max-width: 16em; }
.lead { font-size: 18px; max-width: 54ch; color: var(--body); }

/* Hero */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 96px 0 40px; }
.hero-eyebrow { color: var(--forest); font-weight: 500; margin-bottom: 22px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 78px); max-width: 13ch; line-height: 1.06; letter-spacing: -0.025em; }
html[lang^="zh"] .hero h1 { max-width: 12em; line-height: 1.25; letter-spacing: 0; }
.hero-sub { max-width: 54ch; font-size: 19px; margin: 28px 0 34px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; }
.btn { display: inline-block; font: inherit; font-weight: 600; font-size: 16px; color: #fff; background: var(--forest); border: 1.5px solid var(--forest); padding: 13px 28px; border-radius: 2px; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--forest-2); }
.textlink { color: var(--forest); font-weight: 600; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.chart { width: 100%; height: clamp(150px, 20vw, 240px); margin-top: clamp(40px, 7vw, 80px); overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .area { fill: var(--forest); opacity: 0; animation: fade 1.2s 1.8s ease-out forwards; }
.chart .line { fill: none; stroke: var(--forest); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s .3s cubic-bezier(.5,0,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: .08; } }

/* About */
.big { font-family: var(--serif); font-size: clamp(24px, 3vw, 38px); line-height: 1.4; color: var(--ink); max-width: 28em; margin-bottom: 64px; }
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 88px); }
.terms > div { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 140px 1fr; gap: 20px; }
.terms > div:last-child { border-bottom: 1px solid var(--line); }
.terms dt { font-family: var(--serif); font-size: 20px; color: var(--ink); }

/* Services accordion (native details) */
.acc { margin-top: 56px; border-top: 1px solid var(--ink); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 32px); color: var(--ink); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--forest), var(--forest)) center / 100% 2px no-repeat, linear-gradient(var(--forest), var(--forest)) center / 2px 100% no-repeat; transition: transform .25s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc summary:hover { color: var(--forest); }
.acc-body { display: grid; grid-template-columns: 1fr minmax(220px, 300px); gap: 32px; align-items: start; padding: 0 0 36px; }
.acc-body p { max-width: 54ch; }
.acc-body ul { margin-top: 8px; }
.acc-body li { position: relative; padding-left: 22px; }
.acc-body li::before { content: ""; position: absolute; left: 0; top: .85em; width: 10px; height: 1.5px; background: var(--forest); }

/* Approach */
.rows { margin-top: 48px; }
.rows li { display: grid; grid-template-columns: 56px 200px 1fr; gap: 24px; align-items: baseline; padding: 26px 0; border-top: 1px solid #bccbc2; }
.rows li:last-child { border-bottom: 1px solid #bccbc2; }
.rows .num { font-family: var(--serif); font-size: 28px; color: var(--forest); }
.rows h3 { font-size: 26px; }
.rows p { margin: 0; max-width: 56ch; }

/* Focus */
.focus-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(28px, 5vw, 72px); margin-top: 48px; align-items: start; }
.focus-grid h3 { font-size: 15px; font-family: var(--sans); font-weight: 600; color: var(--forest); letter-spacing: 0; margin-bottom: 14px; }
.list li { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); color: var(--ink); padding: 10px 0; border-bottom: 1px solid var(--line); }

/* Contact */
.contact { background: var(--forest); color: #d4e3da; }
.contact h2 { color: #fff; }
.contact .lead { color: #c4d8cc; }
.mail { display: inline-block; margin-top: 32px; font-family: var(--serif); font-size: clamp(26px, 4vw, 52px); color: #fff; border-bottom: 2px solid rgba(255,255,255,.4); line-height: 1.25; word-break: break-all; transition: border-color .2s; }
.mail:hover { border-color: #fff; }
.mail + .form { margin-top: 64px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; max-width: 760px; }
.form label.wide, .form .wide-btn { grid-column: 1 / -1; }
.form label span { display: block; font-size: 14.5px; color: #b9d2c6; }
.form input, .form textarea { width: 100%; font: inherit; color: #fff; background: transparent; border: 0; border-bottom: 1.5px solid rgba(255,255,255,.4); padding: 8px 0 10px; border-radius: 0; }
.form input:focus, .form textarea:focus { outline: 0; border-bottom-color: #fff; }
.form textarea { resize: vertical; }
.form textarea::placeholder { color: rgba(255,255,255,.4); }
.btn-inv { background: #fff; color: var(--forest); border-color: #fff; justify-self: start; }
.btn-inv:hover { background: var(--sage); }
.contact :focus-visible { outline-color: #fff; }

/* Footer */
.site-footer { padding: 48px 0 44px; font-size: 14.5px; color: var(--stone); }
.foot-links { display: flex; gap: 24px; margin-bottom: 20px; }
.foot-links a:hover { color: var(--ink); }
.disc { max-width: 90ch; margin-bottom: 8px; }
.copy { margin: 0; }

/* Responsive */
@media (max-width: 960px) {
  .main { margin-left: 0; padding-top: 64px; }
  .side { inset: 0 0 auto 0; width: auto; height: 64px; flex-direction: row; align-items: center; padding: 0 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand span br { display: none; }
  .nav { position: fixed; inset: 64px 0 auto 0; margin: 0; padding: 8px 20px 16px; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .nav a { padding: 12px 0; }
  .nav a::before { display: none; }
  body.nav-open .nav { display: flex; }
  .lang { margin: 0 0 0 auto; }
  .nav-toggle { display: block; margin-left: 4px; }
  .col { width: calc(100% - 48px); margin-left: 24px; }
  .hero { min-height: auto; padding: 56px 0 48px; }
  .about-grid, .focus-grid { grid-template-columns: minmax(0, 1fr); }
  .acc-body { grid-template-columns: minmax(0, 1fr); }
  .acc-body figure { max-width: 420px; }
  .who { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .who figure, .focus-img { max-width: 520px; }
  .focus-grid { grid-template-columns: minmax(0, 1fr); }
  .rows li { grid-template-columns: 36px 1fr; row-gap: 6px; }
  .rows p { grid-column: 2; }
  .form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .side { padding: 0 12px; }
  .brand { gap: 8px; font-size: 16px; white-space: nowrap; }
  .brand svg { flex: none; width: 24px; }
  .lang button { padding: 4px 6px; }
  .nav-toggle { width: 32px; margin-left: 0; }
  .terms > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chart .line { animation: none; stroke-dashoffset: 0; }
  .chart .area { animation: none; opacity: .08; }
  * { transition: none !important; }
}

/* Photos and added sections (same content as Site A) */
figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
.ph { display: inline-block; }
html[lang^="zh"] body { word-break: auto-phrase; }
.panorama { margin-top: 72px; }
.panorama img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; border-radius: 2px; }
.acc-body img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.who figure { margin-bottom: 20px; }
.who img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.who h3 { font-size: 24px; margin-bottom: 8px; }
.who p { margin: 0; max-width: 34ch; }
.band { color: #fff; background: linear-gradient(90deg, rgba(14, 36, 28, .9) 0%, rgba(14, 36, 28, .65) 42%, rgba(14, 36, 28, .15) 80%), var(--forest-2) url(img/band.jpg) center / cover no-repeat; padding: clamp(96px, 14vw, 200px) 0; }
.band p { margin: 0; font-family: var(--serif); font-size: clamp(28px, 4.2vw, 56px); line-height: 1.25; max-width: 22ch; text-wrap: balance; }
html[lang^="zh"] .band p { max-width: 12em; line-height: 1.4; }
.focus-img { grid-column: 1 / -1; margin-top: 16px; }
.focus-img img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: 50% 45%; border-radius: 2px; }

@media (max-width: 960px) {
  .who { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .who figure { max-width: 520px; }
  .panorama { margin-top: 48px; }
  .panorama img { aspect-ratio: 16 / 9; }
}

@media (max-width: 960px) {
  .band { background-image: linear-gradient(rgba(14, 36, 28, .72), rgba(14, 36, 28, .6)), url(img/band.jpg); }
}
