/*
  HENG MAO visual refresh (2026-11)
  Loaded after styles.css. Everything visual that changed in the refresh lives here,
  so removing this <link> restores the previous look.
*/

:root {
  /* Navy + corporate blue on white, with a light-blue accent reserved for dark surfaces.
     (The --green-* names are kept from an earlier palette; they now hold the blue brand scale.) */
  --ink-950: #07142b;
  --ink-900: #0b1f3f;
  --ink-800: #12305e;
  --ink-700: #1a3f7a;
  --green-700: #1746a2;
  --green-600: #1d5bd6;
  --green-500: #3b82f6;
  --green-100: #dbe7fb;
  --green-50: #eef3fd;
  --accent: #8ab8ff;
  --accent-soft: #b9d4ff;
  --amber-500: #e3a33b;
  --paper: #ffffff;
  --paper-soft: #f4f6fa;
  --paper-tint: #e8eef8;
  --line: rgba(11, 31, 63, 0.1);
  --line-strong: rgba(11, 31, 63, 0.2);
  --body-text: #3a4558;
  --muted-text: #667085;

  --text-primary: var(--ink-900);
  --text-secondary: var(--body-text);
  --text-muted: var(--muted-text);
  --primary-500: var(--green-600);
  --primary-400: var(--green-500);
  --primary-900: var(--ink-900);
  --surface-border: var(--line);
  --shadow-rest: 0 1px 2px rgba(7, 20, 43, 0.04);
  --shadow-hover: 0 22px 48px rgba(7, 20, 43, 0.12);
  --shadow-glow: none;
  --radius-md: 18px;
  --radius-lg: 26px;
  --font-heading: "Manrope", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-body: "Inter", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --content-width: min(1240px, calc(100% - 64px));
  --site-header-height: 76px;
  --section-space: clamp(80px, 9vw, 128px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */

html body {
  background: var(--paper);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

html[lang="zh-Hant"] body {
  line-height: 1.85;
  letter-spacing: 0.01em;
}

body::before,
body::after,
.ambient-layer,
.ambient-grid {
  display: none !important;
}

body main h1,
body main h2,
body main h3 {
  color: var(--ink-900);
  font-family: var(--font-heading);
  text-wrap: balance;
}

body main h2 {
  font-size: clamp(1.9rem, 2.6vw, 2.75rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
  font-weight: 750;
}

html[lang="zh-Hant"] body main h1,
html[lang="zh-Hant"] body main h2 {
  letter-spacing: 0.01em;
  line-height: 1.32;
}

body main h3 {
  font-size: 1.2rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-weight: 700;
}

body main p {
  color: var(--body-text);
}

::selection {
  background: var(--green-100);
  color: var(--ink-900);
}

/* English sub-tags next to every label made each heading look doubled. */
body .kicker-en,
body .desktop-nav .nav-zh,
body .button small,
body .footer-link-en,
body .drawer-link .nav-en {
  display: none !important;
}

/* ---------- Kicker / eyebrow ---------- */

body .section-kicker,
body .hero-kicker,
body .card-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--green-700);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body .section-kicker::before,
body .hero-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  flex: none;
}

html[lang="zh-Hant"] body .section-kicker,
html[lang="zh-Hant"] body .hero-kicker,
html[lang="zh-Hant"] body .card-meta {
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

body .card-meta {
  margin-bottom: 10px;
  font-size: 0.72rem;
  color: var(--green-600);
}

/* ---------- Buttons ---------- */

body .button {
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0;
  gap: 10px;
  box-shadow: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

body .button-primary {
  background: var(--green-600);
  border: 1px solid var(--green-600);
  color: #fff;
}

body .button-primary:hover,
body .button-primary:focus-visible {
  background: var(--green-700);
  border-color: var(--green-700);
  transform: translateY(-1px);
}

body .button-secondary {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-900);
}

body .button-secondary:hover,
body .button-secondary:focus-visible {
  border-color: var(--ink-900);
  background: rgba(11, 31, 63, 0.04);
}

body .button-compact {
  min-height: 42px;
  padding: 0 20px;
  font-size: 0.88rem;
}

/* ---------- Header ---------- */

body .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: saturate(160%) blur(18px);
}

body .site-header::after {
  display: none;
}

body .header-shell {
  padding: 0;
}

body .header-brand-row {
  min-height: 76px;
  gap: 28px;
}

body .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--ink-800), var(--green-600));
  box-shadow: none;
  font-size: 0.86rem;
}

body .brand-text strong {
  font-size: 1rem;
  color: var(--ink-900);
}

body .brand-text small {
  font-size: 0.72rem;
  color: var(--muted-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body .desktop-nav {
  justify-content: center;
  gap: 2px;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

body .desktop-nav .nav-link {
  position: relative;
  min-height: 76px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transform: none;
  color: var(--body-text);
}

body .desktop-nav .nav-link .nav-en {
  display: inline;
  color: inherit;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

body .desktop-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: var(--green-600);
  transform: scaleX(0);
  transition: transform 200ms ease;
}

body .desktop-nav .nav-link:hover,
body .desktop-nav .nav-link.is-current {
  color: var(--ink-900);
  background: none;
}

body .desktop-nav .nav-link:hover::after,
body .desktop-nav .nav-link.is-current::after {
  transform: scaleX(1);
}

body .header-actions {
  gap: 10px;
  flex: none;
}

body .header-actions .language-switch {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}

body .language-options {
  background: var(--paper-soft);
  border: 1px solid var(--line);
}

body .language-option {
  min-width: 40px;
  min-height: 30px;
  font-size: 0.74rem;
}

body .language-option.is-active,
body .language-option[aria-pressed="true"] {
  background: var(--ink-900);
  color: #fff;
  box-shadow: none;
}

@media (max-width: 1180px) {
  body .header-actions {
    display: none;
  }

  body .header-brand-row {
    min-height: 68px;
  }

  body .mobile-toggle {
    border-color: var(--line);
    box-shadow: none;
  }
}

@media (min-width: 1181px) and (max-width: 1360px) {
  body .brand-text small {
    display: none;
  }

  body .desktop-nav .nav-link {
    padding: 0 9px;
  }

  body .desktop-nav .nav-link .nav-en {
    font-size: 0.84rem;
  }
}

/* ---------- Home hero ---------- */

body .portal-hero.hero-carousel {
  min-height: clamp(640px, 88vh, 820px);
  border-bottom: 0;
  background: var(--ink-950);
}

body .portal-hero .hero-slide::before {
  background:
    linear-gradient(90deg, rgba(7, 20, 43, 0.92) 0%, rgba(7, 20, 43, 0.78) 34%, rgba(7, 20, 43, 0.38) 64%, rgba(7, 20, 43, 0.12) 100%),
    linear-gradient(0deg, rgba(7, 20, 43, 0.55) 0%, rgba(7, 20, 43, 0) 36%);
  background-size: auto;
}

body .portal-hero .hero-slide .hub-slide-shell {
  min-height: clamp(640px, 88vh, 820px);
  align-items: center;
  padding: 140px 0 150px;
}

body .portal-hero .hero-slide .hub-copy {
  max-width: min(46rem, 100%);
}

body .portal-hero .hero-slide .hero-kicker {
  color: var(--accent);
  margin-bottom: 24px;
}

body .portal-hero .hero-slide h1,
body .portal-hero .hero-slide .hub-title {
  color: #fff;
  font-size: clamp(2.5rem, 4.4vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: none;
}

html[lang="zh-Hant"] body .portal-hero .hero-slide h1,
html[lang="zh-Hant"] body .portal-hero .hero-slide .hub-title {
  line-height: 1.24;
  letter-spacing: 0.01em;
}

body .portal-hero .hero-slide .hub-lead {
  margin-top: 26px;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.14rem;
  line-height: 1.7;
}

body .portal-hero .hero-slide .hero-en {
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.98rem;
}

body .portal-hero .hub-actions {
  margin-top: 36px;
  gap: 12px;
}

body .portal-hero .button-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

body .portal-hero .button-secondary:hover,
body .portal-hero .button-secondary:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

body .portal-hero .hero-dots {
  bottom: 128px;
}

body .portal-hero .hero-dot {
  background: rgba(255, 255, 255, 0.36);
}

body .portal-hero .hero-dot.is-active {
  background: #fff;
}

/* Company facts band overlapping the hero */
body .ticker-strip {
  position: relative;
  z-index: 3;
  margin-top: -96px;
  padding: 0 0 24px;
  background: none;
  border: 0;
}

body .ticker-strip .ticker-grid {
  gap: 0;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 30px 70px rgba(7, 20, 43, 0.16);
  overflow: hidden;
}

body .ticker-strip .ticker-item {
  padding: 30px 30px 28px;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--line);
  background: none;
  box-shadow: none;
  color: var(--ink-900);
}

body .ticker-strip .ticker-item:last-child {
  border-right: 0;
}

body .ticker-strip .ticker-item:nth-child(2) {
  background: var(--ink-900);
}

body .ticker-strip .ticker-item:nth-child(2) strong,
body .ticker-strip .ticker-item:nth-child(2) .ticker-label {
  color: #fff;
}

body .ticker-strip .ticker-item:nth-child(2) p {
  color: rgba(255, 255, 255, 0.7);
}

body .ticker-strip .ticker-label {
  display: block;
  margin-bottom: 12px;
  padding: 0;
  background: none;
  color: var(--green-600);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body .ticker-strip .ticker-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

body .ticker-strip .ticker-item p {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ---------- Inner-page masthead ---------- */

body .portal-masthead {
  padding: calc(var(--site-header-height) + 96px) 0 96px;
  border-bottom: 0;
  background: var(--ink-950);
}

body .portal-masthead-compact {
  padding: calc(var(--site-header-height) + 80px) 0 80px;
}

body main > .portal-masthead:first-child {
  margin-top: 0;
}

body .portal-masthead::before {
  background-size: cover !important;
}

body .portal-masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 20, 43, 0.94) 0%, rgba(7, 20, 43, 0.82) 40%, rgba(7, 20, 43, 0.5) 72%, rgba(7, 20, 43, 0.3) 100%);
  pointer-events: none;
}

body .portal-masthead.tone-company::before { background: url("assets/hengmao/taiwan-landmark.jpg") center 56% / cover no-repeat; }
body .portal-masthead.tone-capability::before { background: url("assets/hengmao/solar-tree.jpg") center 42% / cover no-repeat; }
body .portal-masthead.tone-flow::before { background: url("assets/hengmao/factory-delivery.jpg") center 36% / cover no-repeat; }
body .portal-masthead.tone-energy::before { background: url("assets/hengmao/factory-campus.jpg") center 48% / cover no-repeat; }
body .portal-masthead.tone-quality::before { background: url("assets/hengmao/nature-seedling.jpg") center 46% / cover no-repeat; }
body .portal-masthead.tone-network::before { background: url("assets/hengmao/asia-indonesia.jpg") center 46% / cover no-repeat; }
body .portal-masthead.tone-contact::before { background: url("assets/hengmao/taiwan-city.jpg") center 54% / cover no-repeat; }
body .portal-masthead.tone-updates::before { background: url("assets/hengmao/factory-engineer.jpg") center 32% / cover no-repeat; }
body .portal-masthead.tone-partnership::before { background: url("assets/hengmao/asia-philippines.jpg") center 50% / cover no-repeat; }

body .portal-masthead-grid {
  position: relative;
  z-index: 1;
  align-items: end;
  gap: clamp(32px, 5vw, 80px);
}

body .portal-masthead .section-kicker {
  color: var(--accent);
}

body .portal-masthead-copy h1,
body .portal-masthead-compact .portal-masthead-copy h1 {
  color: #fff;
  font-size: clamp(2.3rem, 4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 22ch;
}

html[lang="zh-Hant"] body .portal-masthead-copy h1 {
  line-height: 1.26;
  letter-spacing: 0.01em;
  max-width: 18em;
}

html[lang="de"] body .portal-masthead-copy h1 {
  max-width: 26ch;
  hyphens: auto;
}

body .portal-masthead-copy p,
body .portal-masthead-compact .portal-masthead-copy p {
  max-width: 40rem;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.75;
}

body .portal-masthead .portal-summary-card {
  padding: 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(7, 20, 43, 0.5);
  backdrop-filter: blur(14px);
  box-shadow: none;
  color: #fff;
}

body .portal-masthead .portal-summary-card strong {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body .portal-masthead .portal-summary-card h3 {
  margin-top: 8px;
  color: #fff;
  font-size: 1.3rem;
}

body .portal-masthead .portal-summary-card li,
body .portal-masthead .portal-summary-card p {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
}

body .portal-masthead .portal-summary-card li::before {
  background: var(--accent);
}

/* In-page anchor navigation under the masthead */
body .portal-subnav,
body .portal-anchor-nav,
body .page-anchor-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

/* ---------- Sections ---------- */

body .portal-section,
body .portal-related,
body .portal-band,
body .updates-band,
body .dark-section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  border: 0;
}

body .portal-section {
  background: var(--paper);
}

body .portal-section.portal-light,
body .portal-related.portal-related-light,
body .portal-band.portal-band-light {
  background: var(--paper-soft);
}

body .portal-section::before,
body .portal-section::after,
body .portal-related::before,
body .portal-light::before {
  display: none;
}

body .portal-heading,
body .section-heading {
  max-width: 52rem;
  margin-bottom: clamp(36px, 4vw, 56px);
}

body .portal-heading p:not(.section-kicker),
body .section-heading p:not(.section-kicker) {
  max-width: 42rem;
  font-size: 1.06rem;
}

/* ---------- Cards ---------- */

body .portal-panel,
body .portal-link-card,
body .portal-flow-step,
body .portal-stat-card,
body .case-snapshot-card,
body .update-column,
body .contact-note,
body .contact-step,
body .contact-anchor-card,
body .contact-record-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-rest);
  backdrop-filter: none;
  padding: 28px 28px 30px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

body .portal-light .portal-panel,
body .portal-light .portal-link-card,
body .portal-light .portal-flow-step,
body .portal-light .portal-stat-card,
body .portal-light .case-snapshot-card,
body .portal-related-light .portal-link-card {
  border-color: transparent;
}

body .portal-link-card:hover,
body .portal-panel:hover,
body .case-snapshot-card:hover,
body .portal-flow-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--line);
}

/* Photo runs to the card edge instead of floating inside it */
body .portal-panel > .portal-card-media,
body .portal-link-card > .portal-card-media,
body .portal-flow-step > .portal-card-media,
body .portal-stat-card > .portal-card-media,
body .case-snapshot-card > .portal-card-media,
body .update-column > .portal-card-media,
body .portal-panel > .portal-card-media-grid,
body .portal-link-card > .portal-card-media-grid {
  margin: -28px -28px 24px;
  border: 0;
  border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;
  box-shadow: none;
}

body .portal-card-media::after {
  display: none;
}

body .portal-card-media-grid img {
  border-radius: 0;
}

body .portal-panel h3,
body .portal-link-card h3,
body .portal-flow-step h3 {
  margin-top: 0;
}

body .portal-panel p,
body .portal-link-card p,
body .portal-flow-step p,
body .portal-stat-card p {
  font-size: 0.97rem;
  line-height: 1.7;
}

body .step-number {
  color: var(--green-600);
  font-family: var(--font-heading);
  font-weight: 800;
}

/* Text-link affordance inside link cards */
body .portal-link-card .card-link,
body .portal-link-card .link-arrow,
body .text-link {
  color: var(--green-700);
  font-weight: 700;
}

/* Dark "featured" card variants used across pages */
body [class*="portal-"][style*="--featured"],
body .portal-stat-card.is-featured {
  background: var(--ink-900);
}

/* Pills */
body .visual-pill {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-800);
  box-shadow: none;
}

/* ---------- Dark sections ---------- */

body .dark-section,
body .portal-band:not(.portal-band-light) {
  background: var(--ink-900);
  color: #fff;
}

body .dark-section::before {
  background: radial-gradient(70% 60% at 85% 0%, rgba(59, 130, 246, 0.22), transparent 70%);
}

body .dark-section h2,
body .dark-section h3,
body .portal-band:not(.portal-band-light) h2,
body .portal-band:not(.portal-band-light) h3 {
  color: #fff;
}

body .dark-section p,
body .portal-band:not(.portal-band-light) p {
  color: rgba(255, 255, 255, 0.74);
}

body .dark-section .section-kicker,
body .portal-band:not(.portal-band-light) .section-kicker {
  color: var(--accent);
}

body .dark-section .portal-panel,
body .dark-section .portal-link-card,
body .dark-section article {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

body .portal-band:not(.portal-band-light) .button-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

body .portal-band:not(.portal-band-light) .portal-panel,
body .portal-band:not(.portal-band-light) aside,
body .portal-band:not(.portal-band-light) .contact-checklist {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

body .portal-band:not(.portal-band-light) li {
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Footer ---------- */

body .site-footer {
  background: var(--ink-950);
  color: rgba(255, 255, 255, 0.72);
  border-top: 0;
  padding-top: clamp(64px, 7vw, 96px);
}

body .site-footer::before {
  display: none;
}

body .site-footer .brand-text strong,
body .site-footer h3,
body .site-footer strong {
  color: #fff;
}

body .site-footer p,
body .site-footer li,
body .site-footer .brand-text small {
  color: rgba(255, 255, 255, 0.64);
}

body .site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

body .site-footer a:hover {
  color: #fff;
}

body .site-footer .section-kicker {
  color: var(--accent);
}

body .site-footer .footer-action {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

body .site-footer .footer-action:hover {
  border-color: rgba(138, 184, 255, 0.5);
}

body .site-footer .footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Mobile ---------- */

@media (max-width: 1024px) {
  body .ticker-strip .ticker-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 768px) {
  :root {
    --content-width: calc(100% - 40px);
  }

  html body {
    font-size: 16px;
  }

  body .portal-hero .hero-slide .hub-slide-shell {
    min-height: 0;
    padding: calc(var(--site-header-height) + 56px) 0 150px;
  }

  body .portal-hero.hero-carousel {
    min-height: 0;
  }

  body .portal-hero .hero-slide::before {
    background: linear-gradient(180deg, rgba(7, 20, 43, 0.7) 0%, rgba(7, 20, 43, 0.88) 100%);
  }

  body .portal-hero .hero-slide .hub-lead {
    font-size: 1.02rem;
  }

  body .portal-hero .hub-actions .button {
    width: 100%;
  }

  body .ticker-strip {
    margin-top: -80px;
  }

  body .ticker-strip .ticker-item {
    padding: 22px 22px 20px;
  }

  body .portal-masthead,
  body .portal-masthead-compact {
    padding: calc(var(--site-header-height) + 48px) 0 56px;
  }

  body .portal-masthead::after {
    background: linear-gradient(180deg, rgba(7, 20, 43, 0.78) 0%, rgba(7, 20, 43, 0.9) 100%);
  }

  body .portal-panel,
  body .portal-link-card,
  body .portal-flow-step,
  body .portal-stat-card,
  body .case-snapshot-card,
  body .update-column {
    padding: 22px 22px 24px;
  }

  body .portal-panel > .portal-card-media,
  body .portal-link-card > .portal-card-media,
  body .portal-flow-step > .portal-card-media,
  body .portal-stat-card > .portal-card-media,
  body .case-snapshot-card > .portal-card-media,
  body .update-column > .portal-card-media,
  body .portal-panel > .portal-card-media-grid,
  body .portal-link-card > .portal-card-media-grid {
    margin: -22px -22px 20px;
  }
}

/* ---------- Home: photo route tiles ---------- */

body .feature-grid-primary,
body .feature-grid-secondary {
  gap: 16px;
  background: none;
  border: 0;
}

body .feature-grid-secondary {
  margin-top: 16px;
}

body .feature-tile {
  border: 0;
  border-radius: var(--radius-md);
  isolation: isolate;
}

body .feature-tile::before {
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

body .feature-tile:hover::before,
body .feature-tile:focus-visible::before {
  transform: scale(1.04);
}

body .feature-tile::after {
  background: linear-gradient(180deg, rgba(7, 20, 43, 0) 30%, rgba(7, 20, 43, 0.86) 100%);
}

body .feature-tile .tile-content {
  padding: 28px 28px 26px;
  background: none;
}

body main .feature-tile h3 {
  color: #fff;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.12;
}

body main .feature-tile p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

body .feature-tile .tile-tag {
  color: var(--accent);
}

body .feature-tile .tile-meta {
  color: #fff;
  font-size: 0.76rem;
}

body .feature-tile .tile-meta::after {
  content: "→";
  margin-left: 8px;
  transition: transform 200ms ease;
}

body .feature-tile:hover .tile-meta::after {
  transform: translateX(4px);
}

/* Secondary hero slides carry longer statements than slide 1 */
body .portal-hero .hero-slide .hub-copy {
  max-width: min(54rem, 100%);
}

body .portal-hero .hero-slide .hub-title {
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
}

/* Four-up card rows read better with slightly smaller titles */
body .four-up h3,
body .proof-matrix h3 {
  font-size: 1.08rem;
}

body .feature-grid-primary,
body .feature-grid-secondary {
  width: var(--content-width);
  margin-inline: auto;
}

/* Old glow/sheen decorations fight the flat card style */
body .ticker-item::before,
body .portal-panel::before,
body .portal-link-card::before,
body .portal-flow-step::before,
body .portal-stat-card::before,
body .portal-panel::after,
body .portal-link-card::after,
body .portal-flow-step::after,
body .portal-stat-card::after,
body .home-proof-copy::before,
body .home-proof-copy::after,
body .proof-highlight-card::before {
  display: none !important;
}

body .ticker-strip .ticker-item:nth-child(2) .ticker-label {
  background: none;
  color: var(--accent);
}

body .ticker-strip .ticker-item:hover,
body .ticker-strip .ticker-item:focus-within {
  transform: none;
  box-shadow: none;
}

body .ticker-strip .ticker-item:not(:nth-child(2)):hover {
  background: var(--paper-soft);
}

body .portal-panel:hover,
body .portal-link-card:hover,
body .portal-flow-step:hover,
body .portal-stat-card:hover,
body .portal-panel:focus-within,
body .portal-link-card:focus-visible {
  background-color: var(--paper);
}

body .home-proof-copy,
body .proof-highlight-card {
  border-radius: var(--radius-lg);
  box-shadow: none;
}

body .home-proof-copy {
  border: 1px solid var(--line);
  background: var(--paper);
}

body .proof-highlight-card {
  background: var(--ink-900);
}

/* ---------- About: long-form reading column ---------- */

body[data-page="about"] .about-topic {
  max-width: 880px;
  margin-inline: auto;
}

body[data-page="about"] .about-topic-head h2 {
  max-width: none;
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
}

body[data-page="about"] .about-topic-lead {
  margin-top: 18px;
  color: var(--green-700);
  font-weight: 600;
}

body[data-page="about"] .about-topic-body {
  margin-top: 40px;
}

body[data-page="about"] .about-topic-block + .about-topic-block {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

body[data-page="about"] .about-topic-block h3 {
  margin-bottom: 14px;
  font-size: 1.15rem;
}

body[data-page="about"] .about-topic-block p {
  font-size: 1.03rem;
  line-height: 1.9;
}

html[lang="zh-Hant"] body[data-page="about"] .about-topic-block p {
  text-align: justify;
}

/* Long-word languages: keep masthead titles to two or three comfortable lines */
body .portal-masthead-copy h1 {
  max-width: none;
}

html[lang="de"] body .portal-masthead-copy h1,
html[lang="en"] body .portal-masthead-copy h1 {
  font-size: clamp(2.2rem, 3.4vw, 3.2rem);
}

body .home-proof-copy h2,
body #cooperation-entry h2,
body .portal-band h2 {
  max-width: none;
}

html[lang="de"] body main h2 {
  font-size: clamp(1.8rem, 2.3vw, 2.45rem);
}

body[data-page="sustainability"] #profile .portal-heading h2 {
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  max-width: none;
}

body .case-snapshot-card > .portal-card-media-grid,
body .update-column > .portal-card-media-grid,
body .portal-flow-step > .portal-card-media-grid,
body .portal-stat-card > .portal-card-media-grid {
  margin: -28px -28px 24px;
  gap: 2px;
  border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;
  overflow: hidden;
}

body .case-snapshot-card .portal-card-media-grid img {
  aspect-ratio: 16 / 15.6;
}

@media (max-width: 768px) {
  body .case-snapshot-card > .portal-card-media-grid,
  body .update-column > .portal-card-media-grid,
  body .portal-flow-step > .portal-card-media-grid,
  body .portal-stat-card > .portal-card-media-grid {
    margin: -22px -22px 20px;
  }
}

@media (max-width: 1180px) {
  body .header-shell {
    padding: 0;
  }

  body .header-brand-row {
    min-height: 68px;
    padding: 12px 0;
  }
}

@media (max-width: 1024px) {
  body .ticker-strip .ticker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0;
  }

  body .ticker-strip .ticker-item {
    margin: 0;
    border-right: 1px solid var(--line);
  }

  body .ticker-strip .ticker-item:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 560px) {
  body .ticker-strip .ticker-grid {
    grid-template-columns: 1fr;
  }

  body .ticker-strip .ticker-item {
    border-right: 0;
  }
}

body .ticker-strip .ticker-grid {
  padding: 0;
  border: 0;
  backdrop-filter: none;
}

body .ticker-strip .ticker-grid::before,
body .ticker-strip .ticker-grid::after {
  display: none;
}

body .ticker-strip .ticker-item {
  min-height: 0;
}

/* ---------- Mobile drawer ---------- */

body .drawer-panel {
  background: var(--paper);
}

body .drawer-link {
  min-height: 54px;
  padding: 0 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--ink-900);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
}

body .drawer-link.is-current {
  color: var(--green-700);
  background: none;
}

body .drawer-link .nav-zh {
  display: inline;
}

body .drawer-link.is-current {
  border: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

body .drawer-link .nav-zh {
  font-size: 1.05rem;
  font-weight: 700;
}

/* =========================================================
   Interaction layer (works with theme.js)
   ========================================================= */

/* ---------- Header over the dark hero ---------- */

html body {
  padding-top: 0;
}

body .site-header {
  transition: background-color 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}

body.theme-ready:not(.is-scrolled):not(.drawer-open) .site-header {
  background: linear-gradient(180deg, rgba(7, 20, 43, 0.55) 0%, rgba(7, 20, 43, 0) 100%);
  border-bottom-color: transparent;
  backdrop-filter: none;
}

body.theme-ready:not(.is-scrolled):not(.drawer-open) .site-header .brand-text strong,
body.theme-ready:not(.is-scrolled):not(.drawer-open) .site-header .desktop-nav .nav-link,
body.theme-ready:not(.is-scrolled):not(.drawer-open) .site-header .desktop-nav .nav-link:hover,
body.theme-ready:not(.is-scrolled):not(.drawer-open) .site-header .desktop-nav .nav-link.is-current {
  color: #fff;
}

body.theme-ready:not(.is-scrolled):not(.drawer-open) .site-header .brand-text small {
  color: rgba(255, 255, 255, 0.66);
}

body.theme-ready:not(.is-scrolled):not(.drawer-open) .site-header .desktop-nav .nav-link::after {
  background: var(--accent);
}

body.theme-ready:not(.is-scrolled):not(.drawer-open) .site-header .language-options {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

body.theme-ready:not(.is-scrolled):not(.drawer-open) .site-header .language-option {
  color: rgba(255, 255, 255, 0.8);
}

body.theme-ready:not(.is-scrolled):not(.drawer-open) .site-header .language-option.is-active {
  background: #fff;
  color: var(--ink-900);
}

body.theme-ready:not(.is-scrolled):not(.drawer-open) .site-header .mobile-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

body.is-scrolled .site-header {
  box-shadow: 0 10px 30px rgba(7, 20, 43, 0.06);
}

body .brand-mark {
  background: linear-gradient(140deg, var(--green-600) 0%, var(--ink-800) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

/* Reading progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--accent));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 35;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--ink-900);
  color: #fff;
  box-shadow: 0 14px 30px rgba(7, 20, 43, 0.24);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms var(--ease-out), background-color 200ms ease;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

.back-to-top.is-shown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--green-600);
}

/* ---------- Buttons ---------- */

body .button-primary {
  background: linear-gradient(135deg, var(--green-500) 0%, var(--green-700) 100%);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(29, 91, 214, 0.28);
}

body .button-primary:hover,
body .button-primary:focus-visible {
  background: linear-gradient(135deg, var(--green-600) 0%, var(--ink-800) 100%);
  box-shadow: 0 14px 30px rgba(29, 91, 214, 0.34);
}

body main .button::after,
body .drawer-foot .button::after {
  content: "→";
  display: inline-block;
  margin-left: 2px;
  transition: transform 220ms var(--ease-out);
}

body main .button:hover::after,
body main .button:focus-visible::after {
  transform: translateX(4px);
}

/* ---------- Hero motion ---------- */

body .portal-hero .hero-slide {
  overflow: hidden;
  isolation: isolate;
}

body .portal-hero .hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: inherit;
  background-size: cover;
  inset: 0;
  filter: none;
  opacity: 1;
  mix-blend-mode: normal;
  animation: none;
  transform: scale(1.02);
}

body .portal-hero .hero-slide.slide-capability,
body .portal-hero .hero-slide.slide-energy,
body .portal-hero .hero-slide.slide-partner {
  background-color: var(--ink-950);
}

body .portal-hero .hero-slide.is-entering::after {
  animation: heroDrift 9s linear forwards;
}

@keyframes heroDrift {
  from { transform: scale(1.02); }
  to { transform: scale(1.12) translate3d(-1.2%, -1%, 0); }
}

body .portal-hero .hero-slide.is-entering .hub-copy > * {
  animation: heroRise 900ms var(--ease-out) both;
}

body .portal-hero .hero-slide.is-entering .hub-copy > :nth-child(2) { animation-delay: 90ms; }
body .portal-hero .hero-slide.is-entering .hub-copy > :nth-child(3) { animation-delay: 180ms; }
body .portal-hero .hero-slide.is-entering .hub-copy > :nth-child(4) { animation-delay: 260ms; }
body .portal-hero .hero-slide.is-entering .hub-copy > :nth-child(5) { animation-delay: 340ms; }

@keyframes heroRise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* Slide dots become progress bars */
body .portal-hero .hero-dots {
  gap: 10px;
}

body .portal-hero .hero-dot,
body .portal-hero .hero-dot.is-active {
  position: relative;
  width: 44px;
  height: 3px;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: none;
  transform: none;
}

body .portal-hero .hero-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

body .portal-hero .hero-dot.is-active::after {
  animation: dotFill 6.8s linear forwards;
}

body .portal-hero:hover .hero-dot.is-active::after,
body .portal-hero:focus-within .hero-dot.is-active::after {
  animation-play-state: paused;
}

@keyframes dotFill {
  to { transform: scaleX(1); }
}

body .portal-hero .hero-slide .hero-kicker,
body .portal-masthead .section-kicker {
  color: var(--accent);
}

/* ---------- Masthead parallax ---------- */

body .portal-masthead::before {
  inset: -12% 0 -12% 0;
  transform: translate3d(0, var(--parallax, 0px), 0) scale(1.04);
  will-change: transform;
}

body .portal-masthead::after {
  background:
    linear-gradient(90deg, rgba(7, 20, 43, 0.94) 0%, rgba(7, 20, 43, 0.8) 42%, rgba(7, 20, 43, 0.46) 74%, rgba(7, 20, 43, 0.28) 100%),
    radial-gradient(60% 80% at 100% 100%, rgba(59, 130, 246, 0.22), transparent 70%);
}

body .portal-masthead-copy > * {
  animation: heroRise 900ms var(--ease-out) both;
}

body .portal-masthead-copy > :nth-child(2) { animation-delay: 90ms; }
body .portal-masthead-copy > :nth-child(3) { animation-delay: 180ms; }
body .portal-masthead .portal-summary-card { animation: heroRise 900ms 260ms var(--ease-out) both; }

/* ---------- Scroll reveal ---------- */

body.motion-ready .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

body.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

body.motion-ready .portal-masthead .reveal,
body.motion-ready .portal-hero .reveal {
  opacity: 1;
  transform: none;
}

/* Kicker line draws in when its section appears */
body.motion-ready .reveal .section-kicker::before,
body.motion-ready .reveal.section-kicker::before {
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 700ms 200ms var(--ease-out);
}

body.motion-ready .reveal.is-visible .section-kicker::before,
body.motion-ready .reveal.is-visible.section-kicker::before {
  transform: scaleX(1);
}

/* Card photos settle into place */
body.motion-ready .reveal .portal-card-media img {
  transform: scale(1.12);
  transition: transform 1400ms var(--ease-out), opacity 600ms ease;
}

body.motion-ready .reveal.is-visible .portal-card-media img {
  transform: scale(1);
}

body.motion-ready .reveal.is-visible:hover .portal-card-media img {
  transform: scale(1.06);
}

/* ---------- Cursor light on cards ---------- */

body .portal-panel,
body .portal-link-card,
body .portal-flow-step,
body .portal-stat-card,
body .case-snapshot-card,
body .update-column {
  background-image: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(59, 130, 246, 0.09), transparent 62%);
}

body .ticker-strip .ticker-item:nth-child(2),
body .proof-highlight-card,
body .portal-masthead .portal-summary-card {
  background-image: radial-gradient(360px circle at var(--mx, -999px) var(--my, -999px), rgba(138, 184, 255, 0.16), transparent 62%);
}

body .ticker-strip .ticker-item:nth-child(2),
body .proof-highlight-card {
  background-color: var(--ink-900);
}

/* Link cards get a moving arrow */
body .portal-link-card {
  position: relative;
}

body a.portal-link-card::after {
  content: "→" !important;
  display: grid !important;
  place-items: center;
  position: absolute;
  inset: auto 22px 22px auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--green-700);
  font-weight: 700;
  opacity: 1 !important;
  animation: none !important;
  transition: transform 260ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}

body a.portal-link-card:hover::after {
  transform: translateX(4px);
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
}

body a.portal-link-card {
  padding-bottom: 76px;
}

/* ---------- Photo tiles: depth on hover ---------- */

body .feature-grid-primary,
body .feature-grid-secondary {
  perspective: 1200px;
}

body .feature-tile {
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 400ms var(--ease-out), box-shadow 400ms ease;
  will-change: transform;
}

body .feature-tile:hover {
  box-shadow: 0 30px 60px rgba(7, 20, 43, 0.28);
}

body .feature-tile .tile-content {
  transform: translateZ(30px);
}

/* ---------- Dark sections: richer backdrop ---------- */

body .dark-section,
body .portal-band:not(.portal-band-light) {
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(59, 130, 246, 0.2), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(138, 184, 255, 0.08), transparent 70%),
    var(--ink-900);
}

body .dark-section .section-kicker,
body .portal-band:not(.portal-band-light) .section-kicker {
  color: var(--accent);
}

body .site-footer {
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(59, 130, 246, 0.14), transparent 70%),
    var(--ink-950);
}

/* Soft sections get a faint warm tone */
body .portal-section.portal-light,
body .portal-related.portal-related-light,
body .portal-band.portal-band-light {
  background: var(--paper-soft);
}

body .card-meta {
  color: var(--green-600);
}

@media (prefers-reduced-motion: reduce) {
  body .portal-hero .hero-slide.is-entering::after,
  body .portal-hero .hero-slide.is-entering .hub-copy > *,
  body .portal-masthead-copy > *,
  body .portal-masthead .portal-summary-card,
  body .portal-hero .hero-dot.is-active::after {
    animation: none !important;
  }

  body .portal-masthead::before,
  body .feature-tile {
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  body a.portal-link-card {
    padding-bottom: 70px;
  }
}

/* ---------- Dark "related pages" band (inner pages) ---------- */

body .portal-related:not(.portal-related-light) {
  background:
    radial-gradient(55% 70% at 0% 0%, rgba(59, 130, 246, 0.2), transparent 70%),
    radial-gradient(45% 60% at 100% 100%, rgba(138, 184, 255, 0.08), transparent 70%),
    var(--ink-900);
}

body .portal-related:not(.portal-related-light) h2,
body .portal-related:not(.portal-related-light) h3 {
  color: #fff;
}

body .portal-related:not(.portal-related-light) p {
  color: rgba(255, 255, 255, 0.72);
}

body .portal-related:not(.portal-related-light) .section-kicker,
body .portal-related:not(.portal-related-light) .card-meta {
  color: var(--accent);
}

body .portal-related:not(.portal-related-light) .portal-link-card,
body .dark-section .portal-link-card,
body .portal-band:not(.portal-band-light) .portal-link-card {
  border-color: rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.04);
  background-image: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(138, 184, 255, 0.12), transparent 62%);
}

body .portal-related:not(.portal-related-light) .portal-link-card:hover,
body .dark-section .portal-link-card:hover,
body .portal-band:not(.portal-band-light) .portal-link-card:hover {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(138, 184, 255, 0.3);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
}

body .portal-related:not(.portal-related-light) a.portal-link-card::after,
body .dark-section a.portal-link-card::after,
body .portal-band:not(.portal-band-light) a.portal-link-card::after {
  border-color: rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
}

body .portal-related:not(.portal-related-light) a.portal-link-card:hover::after,
body .dark-section a.portal-link-card:hover::after,
body .portal-band:not(.portal-band-light) a.portal-link-card:hover::after {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink-900);
}

/* "Open page" label sits on the same baseline as the arrow */
body a.portal-link-card .entry-meta {
  position: absolute;
  left: 28px;
  bottom: 31px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--green-700);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body .portal-related:not(.portal-related-light) a.portal-link-card .entry-meta,
body .dark-section a.portal-link-card .entry-meta,
body .portal-band:not(.portal-band-light) a.portal-link-card .entry-meta {
  color: var(--accent);
}

@media (max-width: 768px) {
  body a.portal-link-card .entry-meta {
    left: 22px;
    bottom: 32px;
  }
}

/* ---------- Client revision (2026-11) ---------- */

:root {
  --brand-deep: #002a25;
}

body .brand-mark {
  background: var(--brand-deep);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

/* Longer nav names: each link takes the width of its own text, never truncated */
html[lang] body .desktop-nav {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: space-between;
  gap: 2px;
}

html[lang] body .desktop-nav .nav-link {
  flex: 0 0 auto;
  padding-inline: 12px;
}

html[lang] body .desktop-nav .nav-link .nav-en {
  display: inline;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

@media (min-width: 1181px) and (max-width: 1360px) {
  html[lang] body .desktop-nav .nav-link .nav-en {
    font-size: 0.84rem;
  }
}

/* Set by theme.js when the measured header does not fit */
body.header-tight .header-brand-row {
  gap: 16px;
}

body.header-tight .brand-text small {
  display: none;
}

html[lang] body.header-cramped .desktop-nav .nav-link {
  padding-inline: 6px;
}

body.header-wide .header-shell {
  width: min(1360px, calc(100% - 48px));
  max-width: none;
}

body.header-collapsed .desktop-nav,
body.header-collapsed .header-actions {
  display: none;
}

body.header-collapsed .mobile-toggle {
  display: inline-flex;
  margin-left: auto;
}

/* Every inner-page masthead uses the same label as "About Us" */
html[lang] body .portal-masthead .section-kicker,
html[lang] body .portal-masthead .section-kicker span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  letter-spacing: 0.08em;
}

body[data-page="about"] .about-hero-story {
  max-width: 64ch;
  margin-top: 18px;
  white-space: pre-line;
}

/* Home: cards now directly follow the ticker */
body .home-proof .proof-matrix {
  margin-top: 0;
}

/* Home: photo tiles, text from the top, link at the bottom */
body .home-feature-stage {
  padding-top: 0;
}

body .feature-tile::after {
  background: linear-gradient(180deg, rgba(7, 20, 43, 0.84) 0%, rgba(7, 20, 43, 0.52) 48%, rgba(7, 20, 43, 0.4) 72%, rgba(7, 20, 43, 0.66) 100%);
}

body .feature-tile .tile-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

body .feature-tile .tile-meta {
  margin-top: auto;
  padding-top: 18px;
}

/* Home: latest news */
body .dark-section.home-news {
  background: var(--brand-deep);
}

body .dark-section.home-news .section-heading {
  margin-bottom: 40px;
}

body .home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

body .dark-section.home-news .card-meta,
body .dark-section.home-news a.portal-link-card .entry-meta {
  color: rgba(255, 255, 255, 0.82);
}

body .dark-section.home-news .portal-link-card:hover {
  border-color: rgba(255, 255, 255, 0.32);
}

body .dark-section.home-news a.portal-link-card:hover::after {
  background: #fff;
  border-color: #fff;
  color: var(--brand-deep);
}

@media (max-width: 1024px) {
  body .home-news-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer: statement on the left, company details on the right */
body .site-footer .footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

body .site-footer .footer-brand-block {
  max-width: none;
}

body .site-footer .footer-summary {
  margin-top: 20px;
  max-width: none;
  white-space: pre-line;
  line-height: 1.9;
}

body .site-footer .footer-contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body .site-footer .footer-contact-list li {
  padding: 0;
  line-height: 1.7;
}

body .site-footer .footer-contact-list li::before {
  display: none;
}

@media (max-width: 768px) {
  body .site-footer .footer-shell {
    grid-template-columns: 1fr;
  }
}

/* About: "Read more" on case studies */
body[data-page="about"] .about-more > p:first-child {
  margin-top: 1em;
}

body[data-page="about"] .about-more > .about-topic-block:first-child {
  margin-top: 0.9em;
}

body[data-page="about"] .about-readmore {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-top: 22px;
  padding: 10px 20px;
  border: 1px solid var(--green-700);
  border-radius: 999px;
  background: transparent;
  color: var(--green-700);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

body[data-page="about"] .about-readmore:hover,
body[data-page="about"] .about-readmore:focus-visible {
  background: var(--green-700);
  color: #fff;
}

body[data-page="about"] .about-readmore::after {
  content: "↓";
  transition: transform 200ms ease;
}

body[data-page="about"] .about-readmore[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

body[data-page="about"] .about-readmore .is-less,
body[data-page="about"] .about-readmore[aria-expanded="true"] .is-more {
  display: none;
}

body[data-page="about"] .about-readmore[aria-expanded="true"] .is-less {
  display: inline;
}

/* About: closing statement sits on a light band, so the legacy white text needs to go dark */
body[data-page="about"] .about-longform-closing {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

body[data-page="about"] .about-longform-closing h2 {
  color: var(--ink-900);
}

body[data-page="about"] .about-longform-closing .section-kicker {
  justify-content: center;
  color: var(--green-700);
}

/* Contact: link rows inside the white side card */
body .contact-side-card .portal-band-link,
body .contact-side-card .portal-band-link span {
  color: var(--ink-900);
}

body .contact-side-card .portal-band-link span:last-child {
  color: var(--muted-text);
}

body .contact-side-card .portal-band-link:hover,
body .contact-side-card .portal-band-link:focus-visible {
  background: var(--paper-tint);
}

/* Case snapshot: readable step numbers, and tags on the dark fifth card */
body .case-snapshot-card .case-snapshot-number {
  color: rgba(29, 91, 214, 0.72);
}

body[data-page="sustainability"] #case-index .case-snapshot-card:nth-child(5) .case-snapshot-number {
  color: rgba(255, 255, 255, 0.6);
}

body[data-page="sustainability"] #case-index .case-snapshot-card:nth-child(5) .case-snapshot-tags span {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Home banner buttons follow the logo green; other primary buttons stay blue */
body .portal-hero .hub-actions .button-primary {
  background: var(--brand-deep);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 24px rgba(0, 42, 37, 0.3);
}

body .portal-hero .hub-actions .button-primary:hover,
body .portal-hero .hub-actions .button-primary:focus-visible {
  background: #0b4a41;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 14px 30px rgba(0, 42, 37, 0.36);
}
