/* ============================================================
   Westelite Group — Brand Site Stylesheet
   Palette: Deep Navy #0F2C5C · Tiffany #0ABAB5 · Orange #FF7A00
   Type: Montserrat (Latin) · Noto Serif SC/TC (Song/Ming, Chinese)
   ============================================================ */

:root {
  --navy: #0F2C5C;
  --navy-deep: #081A38;
  --navy-soft: #173A72;
  --tiffany: #0ABAB5;
  --tiffany-deep: #089995;
  --orange: #FF7A00;
  --orange-soft: #FF9A3D;
  --ink: #1E293B;
  --body: #475569;
  --muted: #7C8AA0;
  --line: #E4EBF2;
  --paper: #F6F9FC;
  --white: #FFFFFF;
  --shadow: 0 18px 50px -20px rgba(15, 44, 92, .28);
  --shadow-soft: 0 10px 30px -16px rgba(15, 44, 92, .22);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1180px;
  --font-en: 'Montserrat', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-zh: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --font-hant: 'Noto Serif TC', 'PMingLiU', 'MingLiU', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-style: normal; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-en);
  color: var(--body);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
/* Chinese uses Song/Ming serif to echo the Logo's classic serif; always upright (no italic) */
body.lang-zh { font-family: var(--font-zh); }
body.lang-hant { font-family: var(--font-hant); }
body.lang-zh, body.lang-hant { letter-spacing: .01em; }
/* Keep headings/titles on-brand for every language */
h1, h2, h3, h4, h5, .brand-text, .section-title { font-family: inherit; font-style: normal; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section-sm { padding: 64px 0; }
.section-paper { background: var(--paper); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--tiffany-deep);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--orange); }
.eyebrow.light { color: #7FE7E3; }
.eyebrow.center { justify-content: center; }
.section-title {
  font-size: clamp(28px, 3.6vw, 42px); line-height: 1.2;
  color: var(--navy); font-weight: 700; letter-spacing: -.02em;
  margin-top: 14px;
}
.section-title.light { color: var(--white); }
/* Wider measure + smaller size + balanced wrapping: avoids one-word orphan lines. */
.section-lead { color: var(--muted); font-size: 15.5px; margin-top: 14px; max-width: 860px; text-wrap: balance; }
.section-lead.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-lead.light { color: rgba(255,255,255,.75); }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 8px; font-weight: 600; font-size: 15px;
  white-space: nowrap; flex-shrink: 0;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  cursor: pointer; border: 1.5px solid transparent;
}
.btn svg { flex-shrink: 0; width: 18px; height: 18px; }
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--tiffany); color: var(--navy-deep); }
.btn-primary:hover { background: #14CFC9; box-shadow: 0 12px 26px -10px rgba(10,186,181,.7); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-soft); box-shadow: 0 12px 26px -10px rgba(255,122,0,.6); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 26, 56, .94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; gap: 24px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 120px; height: auto; display: block; }
.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-menu > li { position: relative; }
.nav-menu a.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,.82); font-size: 14px; font-weight: 500;
  padding: 10px 13px; border-radius: 7px; transition: color .2s, background .2s;
}
.nav-menu a.nav-link:hover, .nav-menu a.nav-link.active { color: #fff; background: rgba(255,255,255,.08); }
.nav-menu a.nav-link .caret { font-size: 9px; opacity: .7; transition: transform .2s; }
.has-drop:hover .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow);
  padding: 10px; margin-top: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .22s ease;
}
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown::before { content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 12px; }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 7px; color: var(--ink); font-size: 13.5px; transition: background .18s, color .18s; }
.dropdown a:hover { background: var(--paper); color: var(--tiffany-deep); }
.dropdown .dd-ico { width: 26px; height: 26px; flex-shrink: 0; color: var(--tiffany-deep); }
.dropdown .dd-label { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; padding: 8px 11px 4px; font-weight: 700; }

/* Language dropdown */
.lang-drop { position: relative; flex-shrink: 0; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer;
  border: 1px solid rgba(255,255,255,.18); border-radius: 8px;
  font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  padding: 8px 12px; transition: background .2s, border-color .2s;
}
.lang-btn:hover, .lang-drop:hover .lang-btn { background: rgba(10,186,181,.18); border-color: var(--tiffany); }
.lang-caret { font-size: 9px; opacity: .8; transition: transform .2s; }
.lang-drop:hover .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: 100%; right: 0; min-width: 168px;
  background: #fff; border-radius: 10px; box-shadow: var(--shadow);
  padding: 8px; margin-top: 8px; z-index: 50;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .22s ease;
}
.lang-drop:hover .lang-menu, .lang-drop:focus-within .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 12px; }
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  padding: 9px 12px; border-radius: 7px; transition: background .18s, color .18s;
}
.lang-menu a:hover { background: var(--paper); color: var(--tiffany-deep); }
.lang-menu a.cur { color: var(--tiffany-deep); background: rgba(10,186,181,.08); font-weight: 700; }
.lang-menu a.cur::after { content: '✓'; font-size: 12px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; min-height: 620px;
  display: flex; align-items: center;
  background: radial-gradient(circle at 78% 30%, var(--navy-soft) 0%, var(--navy) 42%, var(--navy-deep) 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10,186,181,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,186,181,.07) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 72%);
  animation: gridDrift 30s linear infinite;
}
@keyframes gridDrift { from { background-position: 0 0; } to { background-position: 54px 54px; } }
.hero::after {
  content: ''; position: absolute; right: -6%; top: 8%;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(10,186,181,.18) 0%, rgba(10,186,181,0) 68%);
  animation: orbPulse 8s ease-in-out infinite;
}
@keyframes orbPulse { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.12); opacity: 1; } }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; padding-top: 90px; padding-bottom: 90px; }
.hero-copy { max-width: 660px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: #7FE7E3;
  border: 1px solid rgba(10,186,181,.4); border-radius: 30px; padding: 7px 15px; margin-bottom: 26px;
  background: rgba(10,186,181,.08); white-space: nowrap;
}
.hero-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,122,0,.18); }
.hero-title {
  font-size: clamp(36px, 5vw, 62px); line-height: 1.1; font-weight: 700;
  letter-spacing: -.03em; color: #fff; margin-bottom: 22px;
}
/* Slogan: two lines share ONE font (same weight + size) so they read as a matched pair.
   Line 1 = Tiffany teal, line 2 ("Shared Growth") = white, as the emphasised key message.
   A shared size is set per language below; nowrap keeps each sentence on a single line. */
.hero-title .hero-line { display: block; width: 100%; white-space: nowrap; font-weight: 700; }
.hero-title .hero-line-1 { color: var(--tiffany); }
.hero-title .hero-line-2 { color: #fff; }
/* Maximize the shared size within the available width for each language.
   Bounds derived from the widest of the two sentences at weight 700. */
.hero-title .hero-line { font-size: clamp(24px, 4.3vw, 58px); }        /* English */
body.lg-pt .hero-title .hero-line { font-size: clamp(20px, 3.3vw, 46px); }
body.lg-fr .hero-title .hero-line { font-size: clamp(22px, 4vw, 54px); }
body.lg-zh .hero-title .hero-line { font-size: clamp(34px, 6.5vw, 80px); }
body.lg-zhHant .hero-title .hero-line { font-size: clamp(34px, 6.5vw, 80px); }
.hero-sub { font-size: 17px; line-height: 1.8; color: rgba(255,255,255,.72); max-width: 580px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero visual — animated tech composition */
.hero-visual { position: relative; height: 380px; display: flex; align-items: center; justify-content: center; }
.hero-art { width: 100%; max-width: 460px; height: auto; filter: drop-shadow(0 24px 60px rgba(10,186,181,.28)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.orbit-ring { position: absolute; border: 1px solid rgba(10,186,181,.28); border-radius: 50%; }
.orbit-ring.r1 { width: 300px; height: 300px; animation: spin 24s linear infinite; }
.orbit-ring.r2 { width: 380px; height: 380px; border-style: dashed; border-color: rgba(255,255,255,.14); animation: spin 38s linear infinite reverse; }
.orbit-ring.r1::after { content: ''; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 14px var(--orange); }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.hero-scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; color: rgba(255,255,255,.5); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-scroll .line { width: 1px; height: 34px; background: linear-gradient(var(--tiffany), transparent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.entry-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px 26px; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.entry-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tiffany); transform: scaleY(0); transform-origin: top; transition: transform .3s ease; }
.entry-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(10,186,181,.5); }
.entry-card:hover::before { transform: scaleY(1); }
.entry-ico {
  width: 58px; height: 58px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(10,186,181,.14), rgba(10,186,181,.03)); color: var(--tiffany-deep); margin-bottom: 18px;
}
.entry-ico svg { width: 30px; height: 30px; }
.entry-num { position: absolute; top: 22px; right: 24px; font-size: 42px; font-weight: 800; color: var(--paper); line-height: 1; }
.entry-card h3 { font-size: 19px; color: var(--navy); font-weight: 700; margin-bottom: 18px; }
.entry-card p { font-size: 14.5px; color: var(--body); margin-bottom: 18px; }
.entry-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--tiffany-deep); }
.entry-link .arrow { transition: transform .25s; }
.entry-card:hover .entry-link .arrow { transform: translateX(4px); }

/* Stats / why-us */
.why-card { text-align: center; padding: 30px 22px; border-right: 1px solid var(--line); }
.why-card:last-child { border-right: 0; }
/* The figure above each Why-us title is either a number or a diamond, and
   the two are not the same height. A fixed band keeps every card's title on
   the same line. */
.why-num { font-size: 44px; font-weight: 800; color: var(--tiffany); line-height: 1; margin-bottom: 12px; letter-spacing: -.03em; height: 44px; display: flex; align-items: center; justify-content: center; }
.why-num.orange { color: var(--orange); }
/* The three numbered-less reasons carry distinct icons instead of a glyph;
   keep the same 44px band so the four titles still start on one line. */
.why-num.why-icon { color: var(--tiffany); }
.why-icon-svg { width: 34px; height: 34px; stroke: currentColor; }
.why-card h3 { font-size: 16px; color: var(--navy); font-weight: 700; margin-bottom: 8px; }
.why-card p { font-size: 13.5px; color: var(--muted); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow-soft); }

/* Feature / project cards */
.project-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-media { position: relative; aspect-ratio: 480 / 210; height: auto; overflow: hidden; }
.project-media .art { width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.project-card:hover .project-media .art { transform: scale(1.08); }
.project-tag { position: absolute; top: 14px; left: 14px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(15,44,92,.72); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); padding: 5px 11px; border-radius: 20px; }
.project-tag.orange { background: rgba(255,122,0,.78); }
.project-tag.gold { background: rgba(210,161,84,.82); color: #1A1A1A; }
.project-body { padding: 22px 22px 24px; }
.project-body h3 { color: var(--navy); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.project-body p { font-size: 14px; color: var(--body); }
.project-motto { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #3A3F47; }
/* Motto + brand badge share one line so the badge can never cover the motto text. */
.project-motto-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line);
}
.project-motto-row .project-motto { margin-top: 0; padding-top: 0; border-top: 0; flex: 1 1 auto; min-width: 0; }
.project-motto-row .brand-badge { position: static; flex: 0 0 auto; margin-left: auto; }

/* Emerging cards */
.emerging-card { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px dashed rgba(10,186,181,.5); border-radius: var(--radius-sm); padding: 22px 24px; transition: transform .25s, background .25s; }
.emerging-card:hover { transform: translateY(-3px); background: var(--paper); }
.emerging-ico { width: 46px; height: 46px; flex-shrink: 0; border-radius: 11px; background: var(--paper); display: flex; align-items: center; justify-content: center; color: var(--tiffany-deep); }
.emerging-ico svg { width: 24px; height: 24px; }
.badge-emerging { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); border: 1px solid rgba(255,122,0,.4); border-radius: 20px; padding: 3px 10px; margin-bottom: 6px; }
.emerging-card h2 { color: var(--navy); font-size: 17px; font-weight: 700; }
.emerging-card p { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* Partner wall */
.partner-wall { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.partner-chip { background: #fff; border: 1px solid var(--line); border-radius: 40px; padding: 13px 24px; color: var(--navy); font-size: 14px; font-weight: 600; transition: border-color .2s, color .2s; }
.partner-chip:hover { border-color: var(--tiffany); color: var(--tiffany-deep); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy-deep), var(--navy-soft)); }
.cta-band::before { content: ''; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border: 1px solid rgba(10,186,181,.2); border-radius: 50%; }
.cta-band::after { content: ''; position: absolute; right: 20px; bottom: -120px; width: 260px; height: 260px; border: 1px dashed rgba(255,255,255,.12); border-radius: 50%; }
.cta-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(26px, 3.4vw, 38px); color: #fff; font-weight: 700; letter-spacing: -.02em; }
.cta-inner p { color: rgba(255,255,255,.7); margin-top: 10px; font-size: 16px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Inner page banner ---------- */
.page-banner { position: relative; overflow: hidden; background: radial-gradient(circle at 85% 20%, var(--navy-soft), var(--navy) 55%, var(--navy-deep)); padding: 72px 0 66px; }
.page-banner::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(10,186,181,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(10,186,181,.06) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.page-banner .wrap { position: relative; z-index: 2; }
.page-banner h1 { font-size: clamp(32px, 4.5vw, 50px); color: #fff; font-weight: 700; letter-spacing: -.03em; margin-top: 14px; }
.page-banner p { color: rgba(255,255,255,.74); font-size: 17px; max-width: 720px; margin-top: 16px; }
.banner-motto { display: block; margin-top: 8px; font-size: inherit; font-weight: inherit; letter-spacing: inherit; color: inherit; }
.crumb { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 22px; display: flex; gap: 8px; align-items: center; }
.crumb a { color: #7FE7E3; }
.crumb a:hover { text-decoration: underline; }

/* Sector detail */
.sector-lead { font-size: 18px; line-height: 1.85; color: var(--ink); max-width: 860px; }
.capability-box { display: flex; gap: 18px; align-items: flex-start; background: linear-gradient(135deg, rgba(10,186,181,.08), rgba(10,186,181,.02)); border-left: 3px solid var(--tiffany); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 24px 28px; margin-top: 28px; }
.capability-box .cap-ico { flex-shrink: 0; color: var(--tiffany-deep); width: 30px; height: 30px; }
.capability-box .cap-ico svg { width: 30px; height: 30px; }
.capability-box h2 { color: var(--navy); font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.capability-box p { font-size: 15px; color: var(--body); }

.item-list { display: grid; gap: 20px; }
.item-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; transition: box-shadow .3s, border-color .3s, transform .3s; }
.item-card:hover { box-shadow: var(--shadow-soft); border-color: rgba(10,186,181,.45); transform: translateY(-3px); }
.item-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.item-bullet { width: 10px; height: 10px; border-radius: 3px; background: var(--orange); transform: rotate(45deg); flex-shrink: 0; }
.item-card h3 { font-size: 20px; color: var(--navy); font-weight: 700; }
.item-card > p { font-size: 15px; color: var(--body); padding-left: 24px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 24px; margin-top: 14px; }
.tag { font-size: 11.5px; font-weight: 600; color: var(--tiffany-deep); background: rgba(10,186,181,.09); border-radius: 20px; padding: 5px 12px; }
.note-box { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.note-box svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--orange); margin-top: 2px; }

/* Docs list */
.doc-row { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; transition: border-color .2s, transform .2s; }
.doc-row:hover { border-color: var(--tiffany); transform: translateX(3px); }
.doc-ico { width: 42px; height: 42px; flex-shrink: 0; border-radius: 9px; background: rgba(15,44,92,.06); display: flex; align-items: center; justify-content: center; color: var(--navy); font-size: 11px; font-weight: 800; }
.doc-ico.pdf { background: rgba(255,122,0,.1); color: #E2660A; }
.doc-ico.zip { background: rgba(10,186,181,.1); color: var(--tiffany-deep); }
.doc-meta { flex: 1; min-width: 0; }
.doc-meta h3 { font-size: 15px; color: var(--navy); font-weight: 600; }
.doc-meta p { font-size: 12.5px; color: var(--muted); }
.doc-dl { font-size: 13px; font-weight: 700; color: var(--tiffany-deep); display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.doc-dl svg { width: 16px; height: 16px; }
.doc-group + .doc-group { margin-top: 30px; }
.doc-group h2 { font-size: 18px; color: var(--navy); font-weight: 700; margin-bottom: 14px; padding-left: 12px; border-left: 3px solid var(--orange); }
.doc-request { cursor: default; }
.doc-request:hover { transform: none; border-color: var(--line); }
.doc-req-link { color: var(--orange); }
.doc-req-link:hover { color: var(--navy); }
.doc-req-note { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin-top: 10px; padding-left: 2px; }
.mail-inline { color: var(--tiffany-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.mail-inline:hover { color: var(--orange); }

/* About specifics */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.prose p { color: var(--body); font-size: 16px; line-height: 1.9; margin-bottom: 16px; }
.prose p:first-child { color: var(--ink); font-size: 18px; }
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cap-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px; }
.cap-item .cap-n { font-size: 12px; font-weight: 800; color: var(--orange); letter-spacing: .1em; }
.cap-item h3 { color: var(--navy); font-size: 17px; font-weight: 700; margin: 8px 0; }
.cap-item p { font-size: 14px; color: var(--body); }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.portfolio-item { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.portfolio-item .pf-ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 9px; background: rgba(10,186,181,.1); color: var(--tiffany-deep); display: flex; align-items: center; justify-content: center; }
.portfolio-item .pf-ico svg { width: 20px; height: 20px; }
.portfolio-item h3 { color: var(--navy); font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.portfolio-item p { font-size: 13px; color: var(--muted); }
.globe-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.globe-card { text-align: center; padding: 30px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.globe-card .gl-ico { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: rgba(10,186,181,.1); color: var(--tiffany-deep); display: flex; align-items: center; justify-content: center; }
.globe-card .gl-ico svg { width: 26px; height: 26px; }
.globe-card h3 { color: var(--navy); font-size: 17px; font-weight: 700; }
.globe-card span { font-size: 12px; color: var(--tiffany-deep); font-weight: 600; }
.globe-card.hub { border-color: var(--tiffany); box-shadow: var(--shadow-soft); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.office-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.office-card:last-child { border-bottom: 0; }
.office-ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; background: rgba(15,44,92,.06); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.office-ico svg { width: 22px; height: 22px; }
.office-card h3 { color: var(--navy); font-size: 16px; font-weight: 700; }
.office-card .of-role { font-size: 12.5px; color: var(--tiffany-deep); font-weight: 600; margin: 2px 0 4px; }
.office-card p { font-size: 13.5px; color: var(--muted); }
.inquiry-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.inquiry-chip { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; background: #fff; flex: 1; min-width: 140px; }
.inquiry-chip h3 { color: var(--navy); font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.inquiry-chip span { font-size: 12px; color: var(--muted); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-soft); }
.form-card h3 { color: var(--navy); font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.form-card .form-note { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px;
  font-size: 14px; font-family: inherit; color: var(--ink); background: var(--paper); transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--tiffany); }
.field textarea { resize: vertical; min-height: 110px; }
.form-submit { width: 100%; }
.form-success {
  background: rgba(10,186,181,.1); border: 1px solid rgba(10,186,181,.45);
  border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 18px;
  color: var(--tiffany-deep); font-size: 15px; font-weight: 600; line-height: 1.6;
}
.response-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--tiffany-deep); font-weight: 600; margin-top: 12px; }
.response-badge .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--tiffany); box-shadow: 0 0 0 0 rgba(10,186,181,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(10,186,181,0); } 100% { box-shadow: 0 0 0 0 rgba(10,186,181,0); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 66px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.footer-top > * { min-width: 0; } /* prevent long links from forcing horizontal overflow on small phones */
.footer-brand .brand img { width: 200px; }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,.6); margin-top: 18px; max-width: 300px; }
.footer-col h3 { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 13.5px; padding: 5px 0; color: rgba(255,255,255,.65); transition: color .2s; }
.footer-col a:hover { color: var(--tiffany); }
.footer-contact li { font-size: 13px; padding: 5px 0; display: flex; gap: 9px; align-items: flex-start; }
.footer-contact svg { width: 15px; height: 15px; color: var(--tiffany); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { padding: 4px 0 22px; font-size: 12.5px; color: rgba(255,255,255,.5); }
.footer-bottom-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.footer-bottom .f-langs { display: flex; gap: 14px; }
.footer-bottom .f-langs a:hover { color: var(--tiffany); }

/* ---------- Scroll reveal (progressive enhancement: visible by default) ---------- */
.reveal { opacity: 1; transform: none; }
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js-reveal .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Identity / facts / trade / badges ---------- */
.identity-band { background: var(--paper); }
.identity-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 34px; box-shadow: var(--shadow-soft);
}
.identity-card p { font-size: 15.5px; color: var(--body); line-height: 1.85; margin-bottom: 14px; }
.identity-card p:last-child { margin-bottom: 0; }
.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact-item { background: #fff; padding: 24px 26px; display: flex; flex-direction: column; gap: 9px; }
.fact-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tiffany-deep); }
.fact-text { font-size: 15px; color: var(--navy); line-height: 1.65; font-weight: 500; word-break: break-word; }
.brand-badge {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, #0ABAB5, #078F8B); color: #fff;
  border: 1px solid rgba(255,255,255,.38);
  font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 6px 11px; border-radius: 20px;
  box-shadow: 0 6px 16px -6px rgba(10,186,181,.75);
}
.brand-badge svg { width: 11px; height: 11px; flex: none; }
.brand-badge b { font-weight: 700; }
.brand-badge-inline {
  position: static; display: inline-flex; align-self: center; margin: 0;
  background: linear-gradient(135deg, #0ABAB5, #078F8B); color: #fff; border-color: rgba(255,255,255,.38);
}
.life-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.life-card-bottom .life-card-foot { margin-top: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.footer-col-contact { display: flex; flex-direction: column; }
.footer-site-note-col {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  width: 100%; margin: auto 0 0; padding: 16px 0 5px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12px; line-height: 1.7; color: rgba(255,255,255,.5); text-align: left;
}
.footer-site-note-col .fsn-line { display: block; }
.site-url {
  color: #fff; font-weight: 700; letter-spacing: .04em;
  border-bottom: 1px solid rgba(10,186,181,.7); padding-bottom: 1px; white-space: nowrap;
}
.footer-site-note-col .fsn-url {
  color: inherit; font-weight: inherit; letter-spacing: .04em;
  border-bottom: none; padding-bottom: 0; text-transform: uppercase;
}
.footer-site-note-col .site-url {
  color: inherit; font-weight: inherit; letter-spacing: inherit;
  border-bottom: none; padding-bottom: 0; white-space: nowrap;
}
.identity-card .site-url { color: var(--tiffany-deep); border-bottom-color: var(--tiffany); }
.sm-brand-badge {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 9px; padding: 2px 9px; border-radius: 99px;
  background: linear-gradient(135deg, #0ABAB5, #078F8B); color: #fff; font-size: 11px; font-weight: 700;
  white-space: nowrap; vertical-align: 1px;
}
.sm-brand-badge svg { width: 11px; height: 11px; flex: none; }
.sm-brand-badge b { font-weight: 700; }
.legal-sec { margin-top: 28px; }
.legal-sec h2 { font-size: 19px; color: var(--navy); font-weight: 700; margin-bottom: 8px; }
.legal-sec p { font-size: 14.5px; color: var(--body); line-height: 1.8; }
.legal-note { font-size: 12.5px; color: var(--muted); line-height: 1.7; font-style: italic; padding: 12px 16px; background: var(--paper); border-left: 3px solid var(--orange); border-radius: 0 8px 8px 0; }
@media (max-width: 720px) {
  .facts-grid { grid-template-columns: 1fr; }
  .identity-card { padding: 22px 20px; }
  .sm-brand-badge { display: flex; margin: 5px 0 0; width: fit-content; }
  .footer-site-note-col { text-align: left; }
  .site-url { white-space: normal; overflow-wrap: anywhere; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-menu { display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--navy-deep); flex-direction: column; align-items: stretch; padding: 16px 24px; gap: 2px; box-shadow: var(--shadow); }
  .nav-menu.open { display: flex; }
  .nav-menu > li { width: 100%; }
  .nav-menu a.nav-link { justify-content: space-between; padding: 12px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,.05); margin-top: 4px; }
  .dropdown a { color: rgba(255,255,255,.8); }
  .dropdown a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .dropdown .dd-label { color: var(--tiffany); }
  .nav-toggle { display: block; margin-left: auto; }
  .lang-drop { margin-left: 4px; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 78px; gap: 26px; }
  .hero-visual { display: flex; height: auto; min-height: 260px; }
  .hero-art { max-width: min(100%, 330px); }
  .orbit-ring.r1 { width: 220px; height: 220px; }
  .orbit-ring.r2 { width: 280px; height: 280px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-card:nth-child(2) { border-right: 0; }
  .why-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding: 72px 0; }
}
@media (max-width: 720px) {
  /* Side gutters scale with device width: ~20px on small phones, ~30px on large.
     Keeps comfortable breathing room on every screen without feeling cramped. */
  .wrap { padding-left: clamp(20px, 5.5vw, 30px); padding-right: clamp(20px, 5.5vw, 30px); }
  .grid-2, .grid-3, .grid-4, .cap-grid, .portfolio-grid, .globe-wrap { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero { min-height: 0; }
  .hero-grid { padding-top: 52px; padding-bottom: 68px; }
  .hero-title .hero-line { font-size: clamp(24px, 8vw, 40px); }        /* English */
  body.lg-pt .hero-title .hero-line { font-size: clamp(19px, 6.2vw, 30px); }
  body.lg-fr .hero-title .hero-line { font-size: clamp(22px, 7.6vw, 36px); }
  body.lg-zh .hero-title .hero-line { font-size: clamp(40px, 15vw, 70px); }
  body.lg-zhHant .hero-title .hero-line { font-size: clamp(40px, 15vw, 70px); }
  .hero-sub { font-size: 15px; margin-bottom: 26px; }
  .hero-kicker { white-space: normal; font-size: 11px; }
  .crumb { flex-wrap: wrap; row-gap: 5px; font-size: 12px; }
  .hero-visual { min-height: 220px; }
  .hero-art { max-width: min(100%, 250px); }
  .orbit-ring.r1 { width: 180px; height: 180px; }
  .orbit-ring.r2 { width: 230px; height: 230px; }
  .hero::after { width: 320px; height: 320px; right: -24%; top: 4%; }
  .hero-scroll { display: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .brand img { width: 104px; }
  .footer-brand .brand img { width: 165px; }
  .lang-btn { padding: 7px 10px; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .hero-scroll, .cta-band, .site-footer { display: none; }
  body { color: #000; }
}

/* ============================================================
   AI SECTOR ONLY — Apple-inspired bright glass theme
   Scoped to body.theme-glass (sector-ai.html). All other pages
   keep the classic deep-navy palette above. Fonts & logo images
   are untouched; only colors, glass surfaces and radii change.
   ============================================================ */
body.theme-glass {
  --navy: #12201B;
  --navy-deep: #0A1512;
  --navy-soft: #265E55;
  --tiffany: #0ABAB5;
  --tiffany-deep: #0B8C82;
  --orange: #C9823A;
  --orange-soft: #E0A061;
  --ink: #16231E;
  --body: #43564E;
  --muted: #74857C;
  --line: #D8E6DE;
  --paper: #EEF5F0;
  --glass: rgba(255,255,255,.68);
  --glass-line: rgba(255,255,255,.9);
  --shadow: 0 18px 50px -22px rgba(18,64,52,.30);
  --shadow-soft: 0 10px 30px -18px rgba(18,64,52,.24);
  --radius: 20px;
  --radius-sm: 14px;
  background: linear-gradient(160deg, #F7F9F7 0%, #EDF4F0 48%, #E3EFE9 100%);
  background-attachment: fixed;
}
/* Header: light frosted glass; invert the white wordmark to dark (no image file changed) */
body.theme-glass .site-header {
  background: rgba(247,250,248,.78);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(18,64,52,.08);
}
body.theme-glass .site-header .brand img { filter: invert(1) grayscale(1) brightness(.25); }
body.theme-glass .nav-menu a.nav-link { color: rgba(22,35,30,.72); }
body.theme-glass .nav-menu a.nav-link:hover,
body.theme-glass .nav-menu a.nav-link.active { color: #0B8C82; background: rgba(10,186,181,.1); }
body.theme-glass .nav-menu a.nav-link .caret { color: currentColor; }
body.theme-glass .lang-btn { color: #16231E; background: rgba(18,64,52,.05); border-color: rgba(18,64,52,.14); }
body.theme-glass .lang-btn:hover { background: rgba(10,186,181,.14); border-color: var(--tiffany); }
body.theme-glass .nav-toggle span { background: #16231E; }
/* Inner page banner: soft Apple-style gradient, dark text, glowing teal core */
body.theme-glass .page-banner {
  background:
    radial-gradient(circle at 82% 26%, rgba(10,186,181,.20) 0%, rgba(10,186,181,0) 42%),
    radial-gradient(circle at 18% 78%, rgba(201,130,58,.12) 0%, rgba(201,130,58,0) 40%),
    linear-gradient(150deg, #F4F8F5 0%, #E6F1EA 55%, #DCEBE2 100%);
}
body.theme-glass .page-banner::before {
  background-image: linear-gradient(rgba(10,186,181,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(10,186,181,.08) 1px, transparent 1px);
  mask-image: radial-gradient(circle at 78% 35%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 78% 35%, #000 0%, transparent 70%);
}
body.theme-glass .page-banner h1 { color: #12201B; }
body.theme-glass .page-banner p { color: #4B5D55; }
body.theme-glass .crumb { color: #6E7F76; }
body.theme-glass .crumb a { color: #0B8C82; }
body.theme-glass .eyebrow { color: #0B8C82; }
/* Glass cards */
body.theme-glass .capability-box {
  background: var(--glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-line);
  border-left: 3px solid var(--tiffany);
  box-shadow: var(--shadow-soft);
}
body.theme-glass .item-card,
body.theme-glass .globe-card,
body.theme-glass .cap-item,
body.theme-glass .portfolio-item {
  background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-soft);
}
body.theme-glass .tag { background: rgba(10,186,181,.12); }
body.theme-glass .section-paper { background: rgba(233,242,236,.6); }
/* Capsule buttons */
body.theme-glass .btn { border-radius: 40px; }
body.theme-glass .btn-primary { background: linear-gradient(135deg, #0ABAB5, #0B8C82); color: #fff; }
body.theme-glass .btn-primary:hover { box-shadow: 0 12px 30px -8px rgba(10,186,181,.55); }
body.theme-glass .btn-outline { border-color: #0B8C82; color: #0B8C82; }
body.theme-glass .btn-outline:hover { background: #0B8C82; color: #fff; }
/* CTA band: keep a dark anchor but with teal glow for rhythm */
body.theme-glass .cta-band {
  background:
    radial-gradient(circle at 80% 20%, rgba(10,186,181,.28), transparent 50%),
    linear-gradient(120deg, #0A1512, #16463C);
}
/* Responsive mobile menu on light header */
@media (max-width: 1024px) {
  body.theme-glass .nav-menu { background: rgba(247,250,248,.98); }
  body.theme-glass .nav-menu a.nav-link { color: #16231E; }
  body.theme-glass .dropdown { background: #fff; }
  body.theme-glass .dropdown a { color: #16231E; }
}

/* Life Science: directory and focused child pages */
.dropdown .dd-sub { display: flex; flex-direction: column; padding: 0 0 6px 32px; }
.dropdown .dd-sub a { font-size: 12px; color: var(--muted); padding: 4px 0; }
.dropdown .dd-extra { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.life-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.life-card { position: relative; display: block; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 34px 30px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.life-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tiffany); transform: scaleY(0); transform-origin: top; transition: transform .3s ease; }
.life-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(10,186,181,.5); }
.life-card:hover::before { transform: scaleY(1); }
.life-card-num { position: absolute; right: 24px; top: 16px; font-size: 38px; font-weight: 800; color: rgba(15,44,92,.08); line-height: 1; }
.life-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(10,186,181,.1); color: var(--tiffany-deep); margin-bottom: 18px; }
.life-card-icon svg { width: 24px; height: 24px; }
.life-card h3 { color: var(--navy); font-size: 20px; font-weight: 700; line-height: 1.45; margin-bottom: 12px; max-width: 92%; }
.life-card p { color: var(--body); font-size: 15px; line-height: 1.75; }
.life-card-foot { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; color: var(--tiffany-deep); font-size: 14px; font-weight: 700; }
.life-card-foot svg { width: 18px; height: 18px; transition: transform .25s ease; }
.life-card:hover .life-card-foot svg { transform: translateX(4px); }
.life-card-static:hover { transform: none; box-shadow: none; border-color: var(--line); }
.life-card-static:hover::before { transform: scaleY(0); }
.life-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.life-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px; }
.life-step-num { color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.life-step h3 { color: var(--navy); font-size: 17px; font-weight: 700; margin: 10px 0 8px; }
.life-step p { color: var(--body); font-size: 14px; line-height: 1.7; }
.product-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.product-chip { display: inline-flex; align-items: baseline; gap: 10px; padding: 10px 18px; border-radius: 999px; background: rgba(10,186,181,.07); border: 1px solid rgba(10,186,181,.22); }
.product-chip strong { color: var(--navy); font-size: 14px; }
.product-chip span { color: var(--muted); font-size: 13px; }
@media (max-width: 780px) {
  .life-grid, .life-steps { grid-template-columns: 1fr; }
  .life-card { padding: 28px 22px 26px; }
  .life-card h3 { max-width: 86%; }
}

/* ---- Robotics grouped product lines (preview only) ---- */
.line-groups { display: flex; flex-direction: column; gap: 40px; }
.line-group { background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px 32px; }
.line-group-head { display: grid; grid-template-columns: 10px 1fr; column-gap: 12px; row-gap: 8px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.line-group-head .item-bullet { margin-left: 2px; margin-top: 7px; background: var(--navy); }
.line-group-head h3 { color: var(--navy); font-size: 21px; font-weight: 700; line-height: 1.4; grid-column: 2; }
.line-group-head p { color: var(--body); font-size: 15px; line-height: 1.75; max-width: 900px; grid-column: 1 / -1; }
.item-card .item-bullet { background: var(--orange); }
/* Robotics grouped lines: when a product title wraps to two lines, keep the
   orange diamond centred on the FIRST text line instead of floating halfway
   down the whole block. Scoped to .line-group so other pages keep their
   existing item-head alignment. */
.line-group .item-head { align-items: flex-start; }
.line-group .item-head .item-bullet { margin-top: 9px; }
.line-group .item-list { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
@media (max-width: 860px) { .line-group .item-list { grid-template-columns: 1fr; } .line-group { padding: 24px 20px; } }

/* ---- Sitemap collapsible tree (preview only) ---- */
.sm-tree { display: grid; gap: 14px; }
.sm-directory { gap: 0; }
.sm-directory-no-intro { margin-top: 36px; }
.sm-group { display: grid; gap: 16px; }
.sm-group + .sm-group { margin-top: 34px; padding-top: 34px; border-top: 1px solid var(--line); }
.sm-group-title { display: flex; align-items: center; gap: 11px; margin: 0; font-size: 18px; font-weight: 700; color: var(--navy); letter-spacing: .01em; }
.sm-group-title::before { content: ""; width: 4px; height: 20px; flex-shrink: 0; border-radius: 2px; background: var(--orange); }
.sm-group-body { display: grid; gap: 12px; }
.sm-group-general .sm-group-body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sm-node { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.sm-node > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 16px 18px; transition: background .2s; }
.sm-node > summary::-webkit-details-marker { display: none; }
.sm-node > summary:hover { background: rgba(10,186,181,.04); }
.sm-node > summary .sm-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: var(--navy); }
.sm-node > summary .sm-title small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.sm-ico { width: 42px; height: 42px; flex-shrink: 0; border-radius: 9px; background: rgba(15,44,92,.06); display: inline-flex; align-items: center; justify-content: center; color: var(--navy); }
.sm-ico svg { width: 20px; height: 20px; }
.sm-dot-ico { background: rgba(255,122,0,.08); }
.sm-dot { width: 9px; height: 9px; border-radius: 2px; background: var(--orange); transform: rotate(45deg); }
.sm-caret { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex-shrink: 0; color: var(--tiffany-deep); transition: transform .2s; margin-right: 4px; }
.sm-caret svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sm-node[open] > summary .sm-caret { transform: rotate(180deg); }
.sm-node > summary .sm-title a { color: inherit; text-decoration: none; }
.sm-node > summary .sm-title a:hover { color: var(--tiffany-deep); text-decoration: underline; }
.sm-children { display: grid; gap: 12px; padding: 4px 18px 18px 34px; margin-left: 27px; border-left: 2px solid rgba(10,186,181,.28); }
.sm-node .sm-node { border-color: rgba(228,235,242,.9); }
.sm-leaf { display: flex; align-items: center; gap: 16px; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 18px; transition: border-color .2s, transform .2s; }
a.sm-leaf:hover { border-color: var(--tiffany); transform: translateX(3px); }
.sm-leaf .sm-title { flex: 1; min-width: 0; font-size: 14px; color: var(--navy); font-weight: 600; }
.sm-go { display: inline-flex; color: var(--tiffany-deep); }
.sm-go svg { width: 16px; height: 16px; }
.sm-external .sm-title small.sm-ext-note { display: inline-block; margin-left: 10px; padding: 3px 9px; border-radius: 99px; background: rgba(10,186,181,.12); color: var(--tiffany-deep); font-size: 11.5px; font-weight: 700; white-space: nowrap; vertical-align: 1px; }
.sm-external:hover .sm-title small.sm-ext-note { background: rgba(10,186,181,.2); }
.sm-terminal { cursor: default; }
.sm-terminal .sm-title { color: var(--body); font-weight: 500; }
@media (max-width: 720px) {
  .sm-children { margin-left: 16px; padding-left: 16px; padding-right: 12px; }
  .sm-node > summary, .sm-leaf { padding: 14px 12px; gap: 12px; }
  .sm-ico { width: 36px; height: 36px; }
  .sm-group-general .sm-group-body { grid-template-columns: 1fr; }
  .sm-group + .sm-group { margin-top: 28px; padding-top: 28px; }
  .sm-external .sm-title small.sm-ext-note { display: block; margin: 6px 0 0; width: fit-content; }
}

/* ============================================================
   Added blocks — B1 anchor, B2 how, B3 cooperation, B4 process,
   selected case, and organisation functions
   ============================================================ */
.site-anchor { background: var(--navy-deep); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-anchor-inner {
  max-width: var(--max); margin: 0 auto; padding: 11px 26px;
  display: flex; align-items: center; gap: 11px; flex-wrap: wrap;
  font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.6);
  text-transform: uppercase;
}
.site-anchor .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tiffany); flex: none; }
.site-anchor .url { color: #fff; font-weight: 700; letter-spacing: .07em; }
.site-anchor .sep { color: rgba(255,255,255,.28); }
.site-anchor .right { margin-left: auto; font-size: 11px; color: rgba(255,255,255,.42); letter-spacing: .1em; font-weight: 600; }

.how-grid, .coop-grid { display: grid; gap: 20px; }
.how-grid { grid-template-columns: repeat(3, 1fr); }
.coop-grid { grid-template-columns: repeat(4, 1fr); }
.how-card, .coop-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-soft);
}
.how-num { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--orange); }
.how-card h3, .coop-card h3 { font-size: 16px; color: var(--navy); font-weight: 700; margin: 10px 0 9px; line-height: 1.4; }
.how-card p, .coop-card p { font-size: 13.5px; color: var(--body); line-height: 1.75; }
.how-card p.how-desc-2 { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.coop-ico {
  width: 36px; height: 36px; border-radius: 9px; display: inline-flex;
  align-items: center; justify-content: center; background: rgba(10,186,181,.1);
  color: var(--tiffany-deep);
}
.coop-ico svg { width: 19px; height: 19px; }
.block-note { margin-top: 24px; font-size: 12.5px; color: var(--muted); text-align: center; text-wrap: balance; }

.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.proc-step { position: relative; padding: 0 22px 0 0; }
.proc-step:not(:last-child)::after {
  content: ''; position: absolute; top: 17px; left: 42px; right: 16px;
  border-top: 1px dashed var(--line);
}
.proc-num {
  position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%;
  background: var(--tiffany); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; margin-bottom: 15px;
}
.proc-step h3 { font-size: 15px; color: var(--navy); font-weight: 700; margin-bottom: 7px; }
.proc-step p { font-size: 13px; color: var(--body); line-height: 1.7; padding-right: 14px; }
.proc-note {
  margin-top: 28px; background: #fff; border-left: 3px solid var(--tiffany);
  padding: 14px 18px; font-size: 12.5px; color: var(--muted); line-height: 1.7;
  text-wrap: balance;
}

.case-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; }
.case-art {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: #fff; padding: 56px; display: flex; align-items: center; justify-content: center;
}
.case-art svg { display: block; width: 100%; height: auto; }
.case-art img { display: block; width: 100%; max-width: 280px; height: auto; }
.case-tag {
  display: inline-block; margin: 14px 0 0 14px; font-size: 10px; font-weight: 700;
  letter-spacing: .12em; color: var(--orange); border: 1px solid rgba(255,122,0,.4);
  border-radius: 20px; padding: 4px 11px;
}
.case-copy .section-title { margin-top: 14px; font-size: clamp(25px, 3vw, 34px); }
.case-lead { font-size: 15px; color: var(--navy); font-weight: 600; line-height: 1.65; margin-top: 16px; text-wrap: balance; }
.case-body { margin-top: 16px; }
.case-body p { font-size: 13.5px; color: var(--body); line-height: 1.8; margin-bottom: 10px; }
.case-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 18px;
  font-size: 13px; font-weight: 700; color: var(--tiffany-deep); text-decoration: none;
}
.case-link:hover { text-decoration: underline; }
.case-link svg { width: 15px; height: 15px; }
.case-link b { font-weight: 600; }

.cap-ico-lg {
  width: 40px; height: 40px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; background: rgba(10,186,181,.1);
  color: var(--tiffany-deep); margin-bottom: 4px;
}
.cap-ico-lg svg { width: 21px; height: 21px; }

@media (max-width: 900px) {
  .how-grid, .coop-grid, .proc-grid { grid-template-columns: 1fr; }
  .proc-step:not(:last-child)::after { display: none; }
  .proc-step { padding-bottom: 18px; }
  .case-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-anchor .right { margin-left: 0; width: 100%; }
}

/* ============================================================
   v15 — Business-sector architecture
   1. Home: role label + unified statement + sector card summary
   2. Sector pages: positioning block, compact cooperation cards
   3. Brand outlet (consumer products stay on their own brand site)
   4. Contact: pre-filled enquiry notice
   ============================================================ */

/* 1. Home — role label on the three sector cards */
.entry-role {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--tiffany-deep);
  background: rgba(10,186,181,.1); border-radius: 20px;
  padding: 4px 11px; margin-bottom: 14px;
}
.entry-card .entry-role + h3 { margin-bottom: 12px; }

/* 1. Home — unified statement explaining the three sectors */
.sector-statement {
  margin: 34px auto 0; max-width: 960px; text-align: left;
  background: linear-gradient(135deg, rgba(10,186,181,.07), rgba(10,186,181,.015));
  border: 1px solid rgba(10,186,181,.18); border-radius: var(--radius);
  padding: 30px 34px 24px;
}
.sector-statement h3 { font-size: 17px; color: var(--navy); font-weight: 700; margin-bottom: 14px; }
.sector-statement p { font-size: 15px; color: var(--body); line-height: 1.85; }
.sector-statement p + p { margin-top: 12px; }
.sector-statement .statement-foot {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 13.5px; font-weight: 700; color: var(--tiffany-deep);
}

/* 2. Sector pages — positioning & value */
.sector-prose { max-width: 940px; margin-top: 22px; }
.sector-prose p { font-size: 15.5px; line-height: 1.9; }
.sector-prose p:first-child { font-size: 17px; }

/* 2. Sector pages — cooperation cards become links into a pre-filled form */
.coop-card-link {
  display: block; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.coop-card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(10,186,181,.5); }
.coop-cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: 12.5px; font-weight: 700; color: var(--tiffany-deep);
}
.coop-cta svg { width: 15px; height: 15px; transition: transform .25s ease; }
.coop-card-link:hover .coop-cta svg { transform: translateX(4px); }

/* 1. Home — Featured cards carry their own link instead of wrapping the card */
.project-cta {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  font-size: 13px; font-weight: 700; color: var(--tiffany-deep);
}
.project-cta svg { width: 16px; height: 16px; transition: transform .25s ease; }
.project-card:hover .project-cta svg { transform: translateX(4px); }
.brand-badge { text-decoration: none; }

/* 3. Brand outlet — consumer products live on their own brand site */
.brand-outlet {
  display: grid; grid-template-columns: 1.35fr .85fr; gap: 36px; align-items: center;
  background: linear-gradient(135deg, rgba(210,161,84,.10), rgba(10,186,181,.05));
  border: 1px solid rgba(210,161,84,.28); border-radius: var(--radius); padding: 34px 36px;
}
.brand-outlet .section-title { margin-top: 10px; font-size: 24px; }
.brand-outlet-lead { font-size: 15px; color: var(--body); line-height: 1.85; margin: 12px 0 20px; }
.brand-outlet-note { border-left: 3px solid rgba(210,161,84,.55); padding-left: 20px; }
.brand-outlet-note p { font-size: 13.5px; color: var(--muted); line-height: 1.8; }

/* 4. Contact — pre-filled enquiry notice */
.intent-notice {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  background: rgba(10,186,181,.07); border: 1px solid rgba(10,186,181,.24);
  border-radius: var(--radius-sm); padding: 13px 16px; margin-bottom: 20px; font-size: 13px;
}
.intent-notice[hidden] { display: none; }
.intent-notice-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tiffany-deep);
}
.intent-notice-value { color: var(--navy); font-size: 14px; font-weight: 700; }
.intent-notice-sector { font-size: 12.5px; color: var(--muted); }
.intent-notice-hint { flex: 1 1 100%; font-size: 12px; color: var(--muted); line-height: 1.6; }

/* Glass theme (AI sector page) keeps the same components readable */
body.theme-glass .sector-statement { background: rgba(255,255,255,.55); border-color: rgba(10,186,181,.22); }
body.theme-glass .sector-statement .statement-foot { border-top-color: var(--line); }
body.theme-glass .intent-notice { background: rgba(10,186,181,.08); border-color: rgba(10,186,181,.26); }

@media (max-width: 900px) {
  .brand-outlet { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; }
  .sector-statement { padding: 26px 24px 22px; }
}

/* v15.1 — the "available on request" note appears once per page */
.doc-req-note-top {
  margin-top: 0; margin-bottom: 30px; padding: 13px 16px;
  background: rgba(10,186,181,.06); border: 1px solid rgba(10,186,181,.2);
  border-radius: var(--radius-sm); font-size: 13px;
}

/* ============================================================
   v16 — one card layout contract for the whole site
   "Title + body + bottom link" cards share one internal grid:
     · the title sits in a fixed band, so every title starts on the
       same horizontal line even when one title is shorter;
     · the body occupies the remaining band, so all bodies in a row
       share one height;
     · the link row is pinned to the card bottom, so a long or short
       paragraph can never push a link up or down.
   The bands are measured per language, so the rule holds in all six.
   ============================================================ */

/* -- Home: three business-sector cards -- */
.entry-card { display: flex; flex-direction: column; height: 100%; }
.entry-card h3 { line-height: 1.45; min-height: 56px; }   /* 2 lines @ 19px */
.entry-card p { line-height: 1.75; flex: 1 1 auto; }
.entry-link { margin-top: auto; }

/* -- Business pages: capability-line cards -- */
.life-card { display: flex; flex-direction: column; }
.life-card h3 { line-height: 1.45; min-height: 29px; }    /* 1 line @ 20px */
.life-card p { line-height: 1.75; flex: 1 1 auto; }
.life-card-foot { margin-top: auto; }
.life-card-bottom { margin-top: auto; padding-top: 20px; }

/* -- Home: featured project cards -- */
.project-card { display: flex; flex-direction: column; }
.project-media { flex: 0 0 auto; }
.project-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.project-body h3 { line-height: 1.45; min-height: 52px; }  /* 2 lines @ 18px */
.project-body p { line-height: 1.75; flex: 1 1 auto; }
.project-cta { margin-top: auto; padding-top: 14px; }

/* -- Cooperation cards: home grid and the pre-filled sector links -- */
.coop-card { display: flex; flex-direction: column; }
.coop-card h3 { min-height: 45px; }                       /* 2 lines @ 16px */
.coop-card p { line-height: 1.75; flex: 1 1 auto; }
.coop-cta { margin-top: auto; padding-top: 14px; }

/* -- Advanced-manufacturing hub: the partner-facing lead paragraph -- */
.hub-prose { max-width: 940px; }
.hub-prose p { font-size: 18px; line-height: 1.85; color: var(--ink); }

/* ============================================================
   v16 — sector page structure tweaks
   · a capability line with a single product runs full width;
   · the lead paragraph and the capability box share one white
     area with only a short gap between them.
   ============================================================ */

/* A line that currently holds one product uses the whole page width
   instead of a half-width cell. Adding a second product restores the
   two-column grid automatically (the class is applied per line). */
.line-group .item-list-wide { grid-template-columns: 1fr; }
.line-group .item-list-wide .item-card { padding: 30px 32px; }

/* Precision Manufacturing keeps a short breathing space between the
   opening paragraph and Technical Strengths (about two to three lines). */
.hub-prose + .capability-box { margin-top: 88px; }

/* ---- v17 spacing contract for the five restructured sector pages ----
   On these pages the capability box was moved up to lead the first body
   block, and the paragraph that used to sit above it now follows as the
   second block. Two rules, scoped with :has() so no other page's section
   rhythm changes:
     gap1 = one text line (~33px) between the capability box and that paragraph;
     gap2 = at most two lines (~64px) from the paragraph to the next section.
   Copy and markup are untouched — only margins/padding are normalised. */
.capability-box + .hub-prose,
.capability-box + .sector-prose { margin-top: 33px; }

/* The next section's own padding used to stack with this one's (92 + 92),
   leaving over six lines of white space. Tighten just this section pair. */
section.section:has(> .wrap > .capability-box) { padding-bottom: 16px; }
/* Align the block's first visible element — the eyebrow label where present,
   the title otherwise — to the same ~64px (two lines) below the paragraph.
   The eyebrow's inline box adds ~9px, so its section needs 23px while the
   eyebrow-less section needs 18px (its title has a 14px top margin). */
section.section:has(> .wrap > .capability-box) + section.section { padding-top: 23px; }
section.section:has(> .wrap > .capability-box) + section.section:not(:has(.eyebrow)) { padding-top: 18px; }

/* Robotics pulls its capability box up close to the opening paragraph. */
.sector-prose + .capability-box { margin-top: 20px; }

/* ============================================================
   v16 — one "title + body + link" contract for every block card
   Rule (a), confirmed by the client: the title occupies its own
   line and never shares a line with the body or the link. The body
   sits on its own line, and the link always lands on the same
   baseline inside its row, whatever the length of the copy.

   Each card becomes a three-row flex column:
     row 1  title   (fixed band, so titles start on one line)
     row 2  body    (flexible, so bodies share one height)
     row 3  link    (pinned to the card bottom)
   ============================================================ */

/* -- Home: how this site works -- */
.how-card { display: flex; flex-direction: column; }
.how-card h3 { line-height: 1.4; min-height: 45px; }   /* 2 lines @ 16px */
.how-card p { flex: 1 1 auto; }
.how-card p.how-desc-2 { flex: 0 0 auto; }

/* -- Sector pages: product cards -- */
.item-card { display: flex; flex-direction: column; }
.item-card h3 { line-height: 1.4; min-height: 56px; }   /* 2 lines @ 20px */
.item-card > p { flex: 1 1 auto; }
.item-card .tag-row { margin-top: auto; padding-top: 14px; }

/* -- About + other grids: capability items -- */
.cap-item { display: flex; flex-direction: column; }
.cap-item h3 { line-height: 1.4; min-height: 45px; }
.cap-item p { flex: 1 1 auto; }

/* Narrower columns: the title band grows so the bodies still start on
   the same line across the row. The three-column grids stay side by side
   down to 721px; below that they become a single column and no horizontal
   alignment is needed any more. */
@media (max-width: 1023px) {
  .how-card h3 { min-height: 67px; }
  .coop-card h3 { min-height: 67px; }
  .item-card h3 { min-height: 84px; }
  .entry-card h3 { min-height: 83px; }
  .project-body h3 { min-height: 78px; }
  .life-card h3 { min-height: 58px; }
  .cap-item h3 { min-height: 67px; }
}

/* The four cooperation cards stay side by side above 900px. The French
   titles need a third line up to 1115px, so the band grows there. */
@media (max-width: 1115px) {
  .coop-card h3 { min-height: 67px; }
}

/* Two grids of the home page collapse to a single column at 900px. Once
   the cards are stacked one under another the shared title band is no
   longer needed for alignment, so it falls back to its base height and
   the extra white space goes with it. This rule sits after the one above
   so that it wins where the two overlap. */
@media (max-width: 900px) {
  .how-card h3 { min-height: 45px; }
  .coop-card h3 { min-height: 45px; }
}

/* The two capability lines of the advanced-manufacturing page stay side
   by side; the longer title needs a second line up to 1082px. */
@media (max-width: 1082px) {
  .life-card h3 { min-height: 58px; }
}

/* The Featured cards share one title band, so their bodies start on the
   same line whichever title is longer. Two lines cover the longest title
   above 1084px; from 1084px down the Spanish and Portuguese titles need
   a third line, so the band grows by one line. */
.project-body h3 { min-height: 54px; }
@media (max-width: 1084px) { .project-body h3 { min-height: 80px; } }
@media (min-width: 721px) and (max-width: 860px) { .project-body h3 { min-height: 106px; } }

/* The Why-us grid is four columns above 1024px, two columns down to 720px
   and one column below that. Each mode needs its own title band:
     · four wide columns   → two lines
     · four narrow columns → three lines
     · two wide columns    → one line
     · two narrow columns  → two lines
     · one column          → one line */
.why-card h3 { line-height: 1.4; min-height: 45px; }
@media (max-width: 1081px) and (min-width: 1025px) { .why-card h3 { min-height: 68px; } }
@media (max-width: 1024px) and (min-width: 782px) { .why-card h3 { min-height: 23px; } }
@media (max-width: 781px) and (min-width: 721px) { .why-card h3 { min-height: 45px; } }
@media (max-width: 720px) { .why-card h3 { min-height: 23px; } }

/* Between 721px and 860px the three-column grids are at their narrowest
   while still side by side, so the title needs one more line. */
@media (min-width: 721px) and (max-width: 860px) {
  .entry-card h3 { min-height: 83px; }
  .project-body h3 { min-height: 106px; }
  .cap-item h3 { min-height: 67px; }
  /* The role badge wraps onto two lines in narrow columns; a fixed band
     keeps every card's title on the same line. */
  .entry-role { display: flex; align-items: center; height: 44px; }
}

/* ============================================================
   v16 — About: "At a glance" and "Our sites" share one width
   Both blocks use the standard page container, so the fact grid
   and the site card sit on the same left and right edges.
   Inside the grid every cell keeps the same padding as the site
   card, and the rows share one height, so no cell reads as wider
   or narrower than another.
   ============================================================ */

/* Same inner margin in both blocks, so the text edges line up. */
.facts-grid .fact-item { padding: 26px 34px; }
.identity-card { padding: 26px 34px; }

/* The site card is now as wide as the page container. Its paragraphs are
   running copy, so the measure is capped to keep the line length
   readable instead of running the full 1132px. */
.identity-card p { max-width: 880px; }

/* Every cell in the grid takes the height of the tallest one, so the
   two rows read as one even block rather than a short row over a tall one. */
.facts-grid { grid-auto-rows: 1fr; align-items: stretch; }
.fact-item { justify-content: flex-start; }

/* The two headings sit the same way: label above, title below, both
   aligned to the same left edge as the card below them. The rule is
   scoped to the two About identity blocks so the other paper sections
   on the site keep their centred headings. */
.about-identity .eyebrow.center { justify-content: flex-start; }
.about-identity .section-title { text-align: left; }
.about-identity .text-center { text-align: left; }

/* ============================================================
   v20 — Biotechnology / Health Products page only
   The white surface for Offerings / About WESTELiTE / Brand Site is
   set in build.py by dropping the paper tint, not by an override.
   Everything here is scoped with body.pg-sector-biotech so the other
   five languages' peer pages keep their existing typography and rhythm.
   ============================================================ */

/* One body-copy scale across every independent block on this page.
   Previously running copy used 15 / 15.5 / 16 / 17 / 18px with line
   heights from 1.75 to 1.9, so adjacent blocks read as different type
   systems. Opening paragraphs keep their emphasis through colour only. */
body.pg-sector-biotech .sector-prose p,
body.pg-sector-biotech .sector-prose p:first-child,
body.pg-sector-biotech .capability-box p,
body.pg-sector-biotech .item-card > p,
body.pg-sector-biotech .brand-outlet-lead,
body.pg-sector-biotech .brand-outlet-note p,
body.pg-sector-biotech #cooperate .section-lead,
body.pg-sector-biotech .bio-about-content p:not(.bio-about-note),
body.pg-sector-biotech .bio-program-item p {
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: normal;
  color: var(--body);
}
body.pg-sector-biotech .sector-prose p:first-child,
body.pg-sector-biotech .bio-program > p {
  color: var(--ink);
}

/* One heading scale inside the green box and the new sub-blocks. */
body.pg-sector-biotech .capability-box h2,
body.pg-sector-biotech .bio-about-block h3,
body.pg-sector-biotech .bio-program h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
}
body.pg-sector-biotech .bio-program h3 { font-size: 17px; }
body.pg-sector-biotech .bio-program-item h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--tiffany-deep);
}

/* Orange diamond follows the first line of a wrapped product title.
   The global .item-head centres it against the whole two-line block,
   leaving it 14px (half a line-height) below the text's first line. */
body.pg-sector-biotech .item-card .item-head { align-items: flex-start; }
body.pg-sector-biotech .item-card .item-bullet { margin-top: 9px; }

/* About WESTELiTE core block: same green box, clearer internal layers. */
body.pg-sector-biotech .bio-about-box { gap: 20px; }
body.pg-sector-biotech .bio-about-content { min-width: 0; }
body.pg-sector-biotech .bio-about-block h3 { margin: 0 0 8px; }
body.pg-sector-biotech .bio-about-content p { margin: 0; }
body.pg-sector-biotech .bio-about-content p + p { margin-top: 10px; }
body.pg-sector-biotech .bio-about-block + .bio-about-block { margin-top: 20px; }
body.pg-sector-biotech .bio-program {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(10, 186, 181, .28);
}
body.pg-sector-biotech .bio-program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin-top: 14px;
}
body.pg-sector-biotech .bio-program-item {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(10, 186, 181, .2);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
body.pg-sector-biotech .bio-about-note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
@media (max-width: 900px) {
  body.pg-sector-biotech .bio-program-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   v21 — one vertical rhythm for every content section
   The old default stacked 92px + 92px between adjacent sections,
   while a few v17 pairs were reduced to 16px + 23px. This block
   gives all pages and all six languages the same contract:
     desktop 64px, tablet 56px, phone 48px between content blocks.
   Only spacing changes; copy, markup and links are untouched.
   ============================================================ */
:root { --section-gap: 64px; }
@media (max-width: 1024px) { :root { --section-gap: 56px; } }
@media (max-width: 720px)  { :root { --section-gap: 48px; } }

/* The banner owns its top space but hands the bottom spacing to the
   first content section, so banner-to-content is the same as the rest. */
body main > section.hero,
body main > section.page-banner { padding-bottom: 0 !important; }
body main > section.hero .hero-grid { padding-bottom: 0 !important; }
body main > section.hero { min-height: 0 !important; }

/* Every content section contributes one shared gap after itself. Adjacent
   content sections do not add another top padding on top of it. */
body main > section.section,
body main > section.sm-group {
  padding-top: var(--section-gap) !important;
  padding-bottom: 0 !important;
}
body main > section.section + section,
body main > section.sm-group + section { padding-top: 0 !important; }
body main > section.section:not(:last-child):not(:has(+ section.cta-band)),
body main > section.sm-group:not(:last-child):not(:has(+ section.cta-band)) {
  padding-bottom: var(--section-gap) !important;
}

/* CTA bands are full-bleed: keep their own inner breathing room, but make
   the space before them follow the same shared gap. */
body main > section.cta-band {
  padding-bottom: var(--section-gap) !important;
}
body main > section.section + section.cta-band,
body main > section.sm-group + section.cta-band {
  padding-top: var(--section-gap) !important;
}

/* Section openers and closers carried their own margins on top of the
   padding. Fold those into the shared gap so every section starts and ends
   on the same visual line. The eyebrow is made block-level for the same
   reason: as an inline-flex it gains ~8px of leading above its box. */
body main > section.section > .wrap,
body main > section.sm-group > .wrap { display: flow-root; }
body main > section.section > .wrap > :first-child,
body main > section.sm-group > .wrap > :first-child { margin-top: 0 !important; }
body main > section.section > .wrap > :last-child,
body main > section.sm-group > .wrap > :last-child { margin-bottom: 0 !important; }
body main > section.section > .wrap > .text-center:first-child { display: flow-root; }
body main > section.section > .wrap > :last-child p:last-child,
body main > section.sm-group > .wrap > :last-child p:last-child { margin-bottom: 0 !important; }
body main > section.section > .wrap > .eyebrow:first-child {
  display: flex;
  width: max-content;
}
body main > section.section > .wrap > .eyebrow.center:first-child { width: 100%; }

/* ============================================================
   v22 — body-copy scale on the two remaining sector pages
   Advanced Manufacturing and AI used 18px / 17px opening copy
   against the 15.5px / 1.75 scale already agreed on biotech.
   Theme colours stay local to each page; only the type scale changes.
   ============================================================ */
body.pg-sector-advanced-manufacturing .capability-box p,
body.pg-sector-advanced-manufacturing .hub-prose p,
body.pg-sector-ai .capability-box p,
body.pg-sector-ai .sector-prose p,
body.pg-sector-ai .sector-prose p:first-child {
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: normal;
  color: var(--body);
}
body.pg-sector-advanced-manufacturing .hub-prose p:first-child,
body.pg-sector-ai .sector-prose p:first-child { color: var(--ink); }

/* AI's brown bullet was centred against the whole two-line heading and
   sat 14px below the first line; Industrial had the same drift. Align every
   item-card bullet to the heading's first line, as on biotech/robotics. */
body main .item-card .item-head { align-items: flex-start; }
body main .item-card .item-bullet { margin-top: 9px; }

/* ============================================================
   v22 — one line of air inside every coloured section
   The v21 gap (64/56/48px) is now split so a tinted block always keeps
   at least one text line (27px) between its own edge and the copy.
   The neighbouring section gives back the rest, so the visible gap
   between blocks stays exactly the same as before.
   ============================================================ */
:root { --section-inset: 27px; --section-inset-rest: calc(var(--section-gap) - var(--section-inset)); }

/* Tinted content blocks open with one line of air. Banners and CTA bands
   already have their own larger top padding, so they are left alone. */
body main > section.section.section-paper.section-paper,
body main > section.identity-band.identity-band { padding-top: var(--section-inset) !important; }

/* Every tinted block closes with at least one line of air. */
body main > section.page-banner.page-banner.page-banner,
body main > section.hero.hero.hero,
body main > section.section.section.section-paper.section-paper,
body main > section.identity-band.identity-band.identity-band,
body main > section.cta-band.cta-band.cta-band { padding-bottom: var(--section-inset) !important; }

/* When the next block is tinted, the previous block gives back the rest of
   the shared gap so the coloured block can keep its own top inset. */
body main > section.section.section:not(:last-child):has(+ section.section-paper),
body main > section.section.section:not(:last-child):has(+ section.identity-band),
body main > section.section.section:not(:last-child):has(+ section.cta-band),
body main > section.sm-group.sm-group:not(:last-child):has(+ section.section-paper),
body main > section.sm-group.sm-group:not(:last-child):has(+ section.identity-band),
body main > section.sm-group.sm-group:not(:last-child):has(+ section.cta-band),
body main > section.page-banner.page-banner:not(:last-child):has(+ section.section-paper),
body main > section.page-banner.page-banner:not(:last-child):has(+ section.identity-band),
body main > section.page-banner.page-banner:not(:last-child):has(+ section.cta-band),
body main > section.hero.hero:not(:last-child):has(+ section.section-paper),
body main > section.hero.hero:not(:last-child):has(+ section.identity-band),
body main > section.hero.hero:not(:last-child):has(+ section.cta-band) { padding-bottom: var(--section-inset-rest) !important; }

/* When the previous block is tinted, the next block starts after the rest
   of the shared gap; if the next block is itself tinted, it keeps its
   27px internal inset instead. */
body main > section.page-banner + section,
body main > section.hero + section,
body main > section.section-paper + section,
body main > section.identity-band + section,
body main > section.cta-band + section { padding-top: var(--section-inset-rest) !important; }
body main > section.page-banner + section.section-paper,
body main > section.page-banner + section.identity-band,
body main > section.hero + section.section-paper,
body main > section.hero + section.identity-band,
body main > section.section-paper + section.section-paper,
body main > section.section-paper + section.identity-band,
body main > section.identity-band + section.section-paper,
body main > section.identity-band + section.identity-band,
body main > section.section-paper + section.cta-band,
body main > section.identity-band + section.cta-band,
body main > section.page-banner + section.cta-band,
body main > section.hero + section.cta-band,
body main > section.section + section.cta-band,
body main > section.sm-group + section.cta-band { padding-top: var(--section-inset) !important; }

/* About's identity band carries three classes and kept the old 64px bottom;
   pin it explicitly so the light band also keeps its one-line inset. */
body main > section.section.identity-band.about-identity.identity-band {
  padding-bottom: var(--section-inset) !important;
}
