:root {
  --ink: #16233f;
  --ink-soft: #3c4a68;
  --paper: #f5f2eb;
  --cream: #faf8f3;
  --line: rgba(22,35,63,.14);
  --accent: #e2772f;
  --accent-deep: #b5581c;
  --muted: #6b7690;
  --head: 'IBM Plex Sans', 'Inter', -apple-system, sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
body { margin: 0; background: var(--cream); font-family: var(--sans); color: var(--ink); }
a { color: inherit; }

/* ---------- Site-wide Geneva watermark ---------- */
.page-watermark {
  position: fixed; inset: 0; z-index: 5; pointer-events: none;
  background-image: url('images/geneva-jetdeau-montblanc.webp');
  background-size: cover; background-position: 50% 30%; background-repeat: no-repeat;
  filter: saturate(1.3) contrast(1.05);
  opacity: .28;
  mix-blend-mode: multiply;
}

.masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 40px;
  background: linear-gradient(180deg, rgba(245,242,235,.9), rgba(245,242,235,.5) 70%, transparent);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { height: 38px; width: auto; display: block; }
.brand-divider { width: 1px; height: 22px; background: var(--line); }
.brand-cn { font-family: var(--head); font-size: 15px; color: var(--ink-soft); letter-spacing: .04em; white-space: nowrap; }

.motto {
  flex: 1; min-width: 0; margin: 0; text-align: center;
  font-family: var(--head); font-style: italic; font-size: 13px;
  color: rgba(22,35,63,.45); letter-spacing: .01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 28px; flex-shrink: 0; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a[aria-current="page"] { color: var(--accent-deep); font-weight: 600; }
.nav-cta { border: 1px solid var(--ink); padding: 8px 18px; border-radius: 999px; }

@media (max-width: 1100px) { .motto { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 260px) minmax(0, 1fr) minmax(0, 230px);
  align-items: center; justify-content: space-between; gap: 20px;
  max-width: 1360px; margin: 0 auto; padding: 0 6vw;
}
.hero-copy { position: relative; z-index: 1; max-width: 560px; }
.hero-side {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 100px 0 32px; min-width: 0; position: relative; z-index: 6;
}
.hero-photo-frame {
  width: 100%; aspect-ratio: auto; overflow: hidden; border-radius: 8px;
  box-shadow: 0 24px 44px -20px rgba(22,35,63,.35);
}
.hero-photo-frame img { width: 100%; height: auto; object-fit: contain; display: block; }
.hero-side-caption {
  font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); text-align: center; margin: 0; line-height: 1.6; max-width: 220px;
}

@media (max-width: 1050px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-side { display: none; }
}
@media (max-width: 900px) {
  .hero { text-align: center; padding-bottom: 32px; }
  .hero-copy { width: 100%; margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
}

.geneva-strip { background: var(--paper); border-top: 1px solid var(--line); padding: 26px 6vw; }
.geneva-strip-inner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto;
}
.geneva-strip figure { margin: 0; display: flex; align-items: center; gap: 10px; }
.geneva-strip img {
  width: 54px; height: 54px; object-fit: cover; border-radius: 10px;
  box-shadow: 0 4px 14px rgba(22,35,63,.18);
}
.geneva-strip figcaption { font-family: var(--head); font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.geneva-strip .photo-credit {
  flex: 1 1 260px; margin: 0; font-family: var(--mono); font-size: 10.5px;
  color: var(--muted); line-height: 1.5;
}
.geneva-strip .photo-credit a { color: var(--muted); }

@media (max-width: 640px) {
  .geneva-strip-inner { gap: 14px; }
  .geneva-strip img { width: 44px; height: 44px; }
}

.hero-copy { display: flex; flex-direction: column; max-width: 560px; min-width: 0; padding: 110px 0 48px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-deep); margin: 0 0 18px;
}
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero h1 {
  font-family: var(--head); font-weight: 600; font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.02; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 22px;
}
.accent-text { color: var(--accent-deep); font-style: italic; }
.hero-lead {
  font-size: 18px; line-height: 1.55; color: var(--ink-soft); max-width: 480px; margin: 0 0 28px;
}

.hero-actions { display: flex; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 600;
  padding: 16px 28px; border-radius: 999px; font-size: 15px;
  transition: background .2s, transform .2s;
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 16px 8px; border-bottom: 1px solid var(--ink);
}

.hero-stats { display: flex; gap: 48px; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats dt { font-family: var(--head); font-size: 24px; font-weight: 600; color: var(--ink); margin: 0; }
.hero-stats dd { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0; }

/* ---------- Generic content band ---------- */
.band { padding: 100px 6vw; background: var(--paper); }
.band-inner { max-width: 640px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.band h2 { font-family: var(--head); font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 16px; }
.muted { color: #5c5547; font-size: 16px; line-height: 1.6; }
.band.on-cream { background: var(--cream); }
.band + .band { border-top: 1px solid var(--line); }

/* ---------- Sub-page intro (Solutions / Working Together / Contact) ---------- */
.page-intro { padding: 108px 6vw 44px; background: var(--paper); }
.page-intro-inner { max-width: 680px; }
.page-intro h1 {
  font-family: var(--head); font-weight: 600; font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.04; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 24px;
}
.page-intro .lead { font-size: 18px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 16px; }
.page-intro .lead:last-child { margin-bottom: 0; }
.page-intro-worldwide { padding-top: 72px; padding-bottom: 56px; }
.page-intro-worldwide-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: start; gap: 36px clamp(32px, 4vw, 64px);
  max-width: 1320px; margin: 0 auto;
}
.page-intro-title { min-width: 0; }
.page-intro-worldwide h1 { margin-bottom: 0; }
.page-intro-copy { grid-column: 1 / -1; max-width: 940px; }
.project-map figcaption {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: 16px; color: var(--ink-soft); font-size: 13px; line-height: 1.5;
}
.project-map figcaption::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.project-map-dots circle { fill: var(--accent); stroke: var(--paper); stroke-width: 3; }
@media (max-width: 760px) {
  .page-intro-worldwide { padding-top: 56px; padding-bottom: 44px; }
  .page-intro-worldwide-layout { grid-template-columns: 1fr; gap: 28px; }
  .page-intro-copy { grid-column: auto; }
}

/* ---------- Solutions grid ---------- */
.solutions-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.solutions-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.solution-card { background: var(--cream); padding: 36px 32px; }
.solutions-grid:not(.two-col):not(.three-col):not(.single-column) .solution-card:last-child { grid-column: span 2; }
.solutions-grid.two-col .solution-card:last-child { grid-column: auto; }
.solutions-grid.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.solutions-grid.three-col .solution-card:last-child { grid-column: auto; }
.solution-card .card-index {
  font-family: var(--mono); font-size: 12px; color: var(--accent-deep); letter-spacing: .08em;
}
.solution-card h3 {
  font-family: var(--head); font-size: 20px; font-weight: 600; color: var(--ink);
  margin: 14px 0 16px; line-height: 1.25;
}
.solution-card ul { margin: 0; padding: 0; list-style: none; }
.solution-card li {
  font-size: 14.5px; color: var(--ink-soft); line-height: 1.7;
  padding-left: 14px; position: relative;
}
.solution-card li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.solution-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; margin: 0; }
.solution-card .group-label {
  padding: 0; margin-bottom: 16px; font-size: 11px; color: var(--muted); line-height: 1.5;
}

@media (max-width: 900px) {
  .solutions-grid, .solutions-grid.three-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .solutions-grid.three-col .solution-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .solutions-grid, .solutions-grid.two-col, .solutions-grid.three-col { grid-template-columns: 1fr; }
}

/* ---------- Pillar header (Solutions page groupings) ---------- */
.pillar + .pillar { border-top: 1px solid var(--line); }
.pillar.on-cream { background: var(--cream); }
.pillar-header { padding: 64px 6vw 28px; max-width: 680px; }
.pillar-header h2 {
  font-family: var(--head); font-weight: 600; font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: var(--ink); margin: 0 0 12px; line-height: 1.15;
}
.pillar-header .pillar-title-detail {
  display: block; margin-top: 12px; font-size: .65em; font-weight: 500; line-height: 1.3;
}
.pillar-header .muted { margin: 0; }
.pillar-header.plant-engineering { max-width: 1000px; padding-bottom: 64px; }
.plant-engineering ul {
  margin: 14px 0 0; padding-left: 20px;
  color: var(--ink-soft); font-size: 16px; line-height: 1.7;
}
.plant-engineering li::marker { color: var(--accent); }
.solutions-grid.single-column .solution-card:last-child { grid-column: 1 / -1; }

.solution-group { margin-top: 28px; }
.solution-group:first-of-type { margin-top: 0; }
.group-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px; padding: 0 6vw;
}
.pillar-footer { padding: 28px 6vw 64px; }

/* ---------- Offer grid (Working Together) ---------- */
.offer-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.offer-card { background: var(--cream); padding: 44px 40px; display: flex; flex-direction: column; }
.offer-card .card-index {
  font-family: var(--mono); font-size: 12px; color: var(--accent-deep); letter-spacing: .08em;
}
.offer-card h3 {
  font-family: var(--head); font-size: 24px; font-weight: 600; color: var(--ink);
  margin: 16px 0 14px; line-height: 1.2;
}
.offer-card p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 14px; }
.offer-card .offer-meta { font-size: 13.5px; color: var(--muted); }
.offer-card .btn-ghost { margin-top: auto; align-self: flex-start; padding-left: 0; }

@media (max-width: 1000px) {
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .offer-grid { grid-template-columns: 1fr; }
}

/* ---------- Values strip (Working Together) ---------- */
.values-band { max-width: none; display: flex; flex-direction: column; align-items: flex-start; }
.values-strip {
  display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none;
  font-family: var(--head); font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--ink);
}
.values-strip li { padding: 0 28px 0 0; margin-right: 28px; border-right: 1px solid var(--line); }
.values-strip li:last-child { border-right: none; margin-right: 0; padding-right: 0; }

@media (max-width: 640px) {
  .values-strip li { border-right: none; padding: 0; margin: 0 0 10px; width: 100%; }
}

/* ---------- Contact grid ---------- */
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.contact-card { background: var(--cream); padding: 36px 32px; }
.contact-card-wide { grid-column: span 3; }
.contact-card .card-index {
  font-family: var(--mono); font-size: 12px; color: var(--accent-deep); letter-spacing: .08em;
}
.contact-card h3 {
  font-family: var(--head); font-size: 18px; font-weight: 600; color: var(--ink);
  margin: 14px 0 12px;
}
.contact-link { font-family: var(--head); font-size: 20px; color: var(--ink); text-decoration: none; }
.contact-link:hover { color: var(--accent-deep); }
.contact-address { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin: 0; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-card-wide { grid-column: span 2; }
}
@media (max-width: 600px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card-wide { grid-column: span 1; }
}

/* ---------- Worldwide / stat band ---------- */
.worldwide { display: flex; align-items: center; gap: 64px; flex-wrap: wrap; }
.worldwide .band-inner { max-width: 560px; }
.worldwide .worldwide-stat {
  font-family: var(--head); font-size: clamp(4rem, 9vw, 7rem); font-weight: 600;
  color: var(--ink); line-height: 1; margin: 0;
}
.worldwide .worldwide-stat small {
  display: block; font-family: var(--mono); font-size: 12px; font-weight: 400;
  text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 10px;
}
.worldwide-band { padding: 80px 6vw; }
.worldwide-band .worldwide {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  max-width: 1100px; margin: 0 auto; gap: clamp(32px, 4vw, 64px);
}
.worldwide-copy { min-width: 0; }
.worldwide-copy .muted { margin: 0; }
.worldwide-map {
  min-width: 0; margin: 0;
}
.worldwide-map img, .worldwide-map svg { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
  .worldwide-band .worldwide { grid-template-columns: 1fr; gap: 36px; }
  .worldwide-band { padding: 64px 6vw; }
}

/* ---------- CTA band ---------- */
.cta-band { padding: 90px 6vw; background: var(--ink); text-align: center; }
.cta-band .eyebrow { color: var(--accent); }
.cta-band h2 {
  font-family: var(--head); font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: #fff; margin: 0 0 16px;
}
.cta-band p { color: rgba(255,255,255,.72); font-size: 16px; margin: 0 0 32px; }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }
.cta-band .btn-primary { background: var(--accent); }
.cta-band .btn-primary:hover { background: var(--accent-deep); }
.cta-band .btn-ghost { color: #fff; border-bottom-color: rgba(255,255,255,.5); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); }
.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px;
  max-width: 1200px; margin: 0 auto; padding: 72px 6vw 48px;
}
.footer-brand .brand-mark { height: 42px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.6); max-width: 360px; margin: 0; }
.footer-heading {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.45); margin: 0 0 16px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(255,255,255,.82); font-size: 14.5px; width: fit-content;
  max-width: 100%; text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 4px;
}
.footer-col a:hover, .footer-col a:focus-visible { color: #fff; text-decoration-color: currentColor; }
.footer-col a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.footer-col p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.6); margin: 6px 0 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 20px 6vw;
  max-width: 1200px; margin: 0 auto;
}
.footer-bottom p { margin: 0; font-family: var(--mono); font-size: 11.5px; color: rgba(255,255,255,.4); }

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 56px 24px 40px; }
  .worldwide { gap: 32px; }
}

@media (max-width: 860px) {
  .masthead { padding: 18px 20px; }
  .nav a:not(.nav-cta) { display: none; }
  .hero-copy { padding: 118px 24px 64px; }
  .hero-stats { flex-wrap: wrap; row-gap: 20px; }
}
