/* W5 v2 final-premium — art-direction layer over site.css (direction B + final logo).
   Principles: one memorable move (full-bleed verandah hero), editorial asymmetry, fewer/larger images,
   quiet type with real scale contrast, colour used sparingly, one orchestrated load reveal. */
:root {
  --p-display: clamp(2.6rem, 1.05rem + 4.6vw, 5rem);      /* 1280 ≈ 72px, 390 ≈ 41px */
  --p-h2: clamp(1.9rem, 1.2rem + 2.1vw, 3.25rem);         /* 1280 ≈ 46px */
  --p-space: clamp(72px, 9vw, 152px);
  --p-ease: cubic-bezier(.22, 1, .36, 1);
}
:root:lang(zh-Hans) { --p-display: clamp(2.3rem, 1.1rem + 3.6vw, 4.1rem); --p-h2: clamp(1.7rem, 1.15rem + 1.7vw, 2.75rem); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { font-weight: 380; font-optical-sizing: auto; }
:lang(zh-Hans) :is(h1, h2, h3) { font-weight: 500; }

/* Header: quieter, more air; the filled button is reserved for the hero */
.site-header { background: rgb(249 249 246 / 92%); backdrop-filter: saturate(1.2) blur(10px); border-bottom-color: transparent; transition: border-color var(--motion); }
.header-inner { min-height: 84px; }
.site-nav > a:not(.button) { font-size: .9375rem; letter-spacing: .01em; color: var(--ink-primary); text-decoration: none; }
.site-nav > a:not(.button):hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.header-cta { background: transparent; color: var(--brand-primary); border: 1px solid rgb(20 54 46 / 35%); min-height: 44px; padding-inline: 18px; font-weight: 500; }
.header-cta:hover { background: var(--brand-primary); color: var(--bg-canvas); border-color: var(--brand-primary); }
.button--lg { min-height: 56px; padding-inline: 30px; font-size: 1rem; letter-spacing: .01em; border-radius: 2px; }

/* Hero: oversized serif headline + right-aligned aside, then a full-bleed photograph */
.p-hero { padding-top: clamp(40px, 6.5vw, 104px); }
.p-hero-copy { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 88px); align-items: end; }
.p-hero h1 { font-size: var(--p-display); line-height: .98; letter-spacing: -.028em; max-width: 12.5ch; }
:lang(zh-Hans) .p-hero h1 { line-height: 1.16; letter-spacing: .01em; max-width: none; }
.p-hero-aside .lead { font-size: 1.0625rem; line-height: 1.6; color: var(--ink-secondary); max-width: 34ch; }
.p-hero-aside .actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.p-hero-photo { margin-top: clamp(40px, 5.5vw, 88px); }
.p-hero-photo img { --crop: 21 / 9; width: 100%; max-height: 78vh; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 62%; border-radius: 0; }
.p-hero-photo figcaption { position: relative; margin: 10px var(--page-margin) 0; }
.p-trust { margin-top: 18px; color: var(--ink-secondary); font-size: var(--text-small); }

/* Services: asymmetric editorial pair, no centre rule, no card chrome */
.service-duo { padding-top: var(--p-space); border-top: 0; }
.service-duo > h2 { font-size: var(--p-h2); max-width: 16ch; line-height: 1.05; letter-spacing: -.02em; }
.service-duo > .section-intro { margin-top: 18px; max-width: 46ch; font-size: 1.0625rem; }
.service-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4.4vw, 72px); margin-top: clamp(48px, 5vw, 80px); align-items: start; }
.service-feature, .service-feature + .service-feature { padding-inline: 0; border: 0; }
.service-feature + .service-feature { margin-top: clamp(80px, 11vw, 176px); }
.service-feature:first-child .photo { --crop: 4 / 3; }
.service-feature + .service-feature .photo { --crop: 4 / 5; }
.service-feature h3 { margin-top: 26px; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.25rem); letter-spacing: -.015em; }
.service-feature .context { margin: 8px 0 14px; font-weight: 500; letter-spacing: .005em; }
.service-feature p:not(.context) { max-width: 44ch; }
.service-feature .text-action { margin-top: 14px; }
.photo { overflow: hidden; }
.photo img { border-radius: 0; transition: transform 1.2s var(--p-ease); }
.photo figcaption { font-size: .78rem; letter-spacing: .01em; }
@media (hover: hover) { .service-feature:hover .photo img { transform: scale(1.025); } }

/* Calculator preview: an editorial figure, not a dashboard widget */
.preview { padding-block: var(--p-space); margin-top: var(--p-space); }
.preview-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: end; }
.preview h2 { font-size: var(--p-h2); line-height: 1.05; letter-spacing: -.02em; max-width: 13ch; }
.preview .section-intro { margin-top: 20px; max-width: 40ch; }
.preview .button { margin-top: 32px; min-height: 52px; padding-inline: 26px; }
.preview-sheet { padding: 0; background: transparent; border: 0; }
.preview-sheet > p:first-child { font-size: .875rem; letter-spacing: .01em; }
.preview-sheet .chart { margin-block: 28px 8px; }
.preview-sheet .chart-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label value" "track track"; gap: 12px 24px; align-items: baseline; padding-block: 22px; border-top: 1px solid var(--dark-rule); }
.preview-sheet .chart-row + .chart-row { margin-top: 0; }
.preview-sheet .chart-row > span:first-child { grid-area: label; font-size: 1rem; }
.preview-sheet .chart-row output { grid-area: value; font-family: var(--display-font); font-size: clamp(1.9rem, 1.3rem + 1.6vw, 2.9rem); font-weight: 340; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.01em; line-height: 1; }
.preview-sheet .chart-track { grid-area: track; height: 3px; background: var(--dark-track); border-radius: 0; }
.preview-sheet .chart-bar { height: 3px; border-radius: 0; }
.preview-note { border-top: 1px solid var(--dark-rule); padding-top: 20px; font-size: .9375rem; }

/* Practice: larger image, two-column statements */
.stewardship { padding-block: var(--p-space); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.stewardship h2 { font-size: var(--p-h2); line-height: 1.06; letter-spacing: -.02em; max-width: 15ch; }
.stewardship dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(28px, 3.5vw, 56px); margin-top: 44px; border: 0; }
.stewardship dl div { padding: 22px 0 0; border: 0; border-top: 1px solid var(--border-hairline); }
.stewardship dt { font-family: var(--display-font); font-weight: 420; font-size: 1.3rem; line-height: 1.25; }
.stewardship dd { margin-top: 10px; font-size: .9875rem; line-height: 1.6; }
.detail-photo { --crop: 4 / 5; }

/* Closing: a single large statement */
.closing { background: var(--bg-canvas); border-top: 1px solid var(--border-hairline); padding-block: var(--p-space); }
.closing-inner { align-items: end; }
.closing h2 { font-size: var(--p-h2); line-height: 1.05; letter-spacing: -.02em; max-width: 18ch; }
.closing .section-intro { margin-top: 18px; }
.closing .button { min-height: 56px; padding-inline: 30px; }

/* Footer: deep eucalypt, generous */
.p-footer { background: var(--brand-primary); color: var(--bg-canvas); border-top: 0; padding-block: clamp(64px, 7vw, 112px) 56px; }
.p-footer .footer-grid { gap: 40px var(--grid-gap); }
.p-footer :is(p, strong) { color: var(--dark-text); }
.p-footer strong { color: var(--bg-canvas); font-weight: 600; }
.p-footer a { color: var(--bg-canvas); text-decoration-color: rgb(249 249 246 / 40%); text-underline-offset: 4px; }
.p-footer a:hover { text-decoration-color: var(--accent-cedar-light); }
.p-footer :focus-visible { outline-color: var(--accent-cedar-light); }
.p-footer .footer-grid .logo img { height: 40px; }

/* One orchestrated load moment (respects reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .p-hero h1, .p-hero-aside { animation: p-rise 1s var(--p-ease) both; }
  .p-hero-aside { animation-delay: .12s; }
  .p-hero-photo img { animation: p-settle 1.8s var(--p-ease) both; }
  @keyframes p-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes p-settle { from { opacity: .001; transform: scale(1.045); } to { opacity: 1; transform: none; } }
}

/* Tablet / mobile */
@media (max-width: 900px) {
  .p-hero-copy, .preview-inner, .stewardship { grid-template-columns: 1fr; }
  .p-hero-copy { align-items: start; gap: 22px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-feature + .service-feature { margin-top: 64px; }
  .service-feature + .service-feature .photo { --crop: 4 / 3; }
}
@media (max-width: 600px) {
  .header-inner { min-height: 64px; }
  .header-cta { display: none; }
  .p-hero { padding-top: 28px; }
  .p-hero h1 { line-height: 1.02; letter-spacing: -.022em; }
  .p-hero-aside .lead { font-size: 1rem; }
  .p-hero-aside .actions { margin-top: 22px; flex-direction: column; align-items: stretch; gap: 6px; }
  .p-hero-aside .actions .text-action { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .p-hero-photo { margin-top: 32px; }
  .p-hero-photo img { aspect-ratio: 4 / 5; max-height: none; object-position: 50% 50%; }
  .p-hero-photo figcaption { margin-inline: 20px; }
  .stewardship dl { grid-template-columns: 1fr; gap: 28px; }
  .closing-inner { flex-direction: column; align-items: stretch; }
}

/* Iteration 2 refinements (self-review of iter1 screenshots) */
.p-hero h1 { max-width: 15.5ch; }
.p-hero-aside .p-trust { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border-hairline); font-size: .8125rem; max-width: 34ch; }
.p-section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4.4vw, 72px); align-items: end; }
.p-section-head h2 { font-size: var(--p-h2); line-height: 1.05; letter-spacing: -.02em; max-width: 14ch; }
.p-section-head .section-intro { margin: 0; max-width: 38ch; font-size: 1.0625rem; }
.closing h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.6rem); }
.preview-sheet .chart-row--short output { color: var(--accent-cedar-light); }
@media (max-width: 900px) { .p-section-head { grid-template-columns: 1fr; gap: 16px; } }

/* Iteration 3 (from Codex before/after critique) */
.p-hero-copy { align-items: end; }
.p-hero-aside { padding-bottom: .35em; }
.p-hero-photo { position: relative; padding-bottom: 34px; }
.p-hero-photo figcaption { position: absolute; right: var(--page-margin); bottom: 6px; margin: 0; }
.p-trust-row { margin-top: -28px; position: relative; font-size: .8125rem; color: var(--ink-secondary); max-width: none; }
.preview { margin-top: clamp(24px, 3vw, 48px); }
.service-feature + .service-feature .photo img { object-position: 50% 88%; }
@media (max-width: 600px) {
  .p-hero-aside .actions { gap: 2px; }
  .p-hero-photo { margin-top: 22px; padding-bottom: 0; }
  .p-hero-photo img { aspect-ratio: 4 / 4.4; object-position: 50% 78%; }
  .p-hero-photo figcaption { position: static; margin: 8px 20px 0; }
  .p-trust-row { margin-top: 6px; }
  .service-feature + .service-feature { margin-top: 48px; }
  .service-duo { padding-top: 64px; }
}

/* Iteration 4 (from agy before/after critique) */
.p-hero { padding-top: clamp(32px, 4.5vw, 72px); }
.p-hero-photo { margin-top: clamp(32px, 4vw, 64px); }
.service-feature + .service-feature { margin-top: clamp(40px, 5.5vw, 88px); }
.preview-sheet .chart-row > span:first-child { color: var(--bg-canvas); }
.preview-sheet .chart-row--short > span:first-child { color: var(--accent-cedar-light); }
.preview-sheet .chart-track { margin-top: 4px; }
@media (max-width: 600px) {
  .p-hero-aside .actions .text-action { justify-content: flex-start; }
}
