/*
 * Ezzogenics.com UI layer, 4 Dec 2026. Style only: loaded last on every page.
 * 60 white / 30 navy / 10 teal. Geist + Geist Mono. Pills, hairlines, notched photo cards.
 *  1 tokens + type   2 header   3 language pill   4 menu   5 buttons + eyebrows
 *  6 hero   7 specialisation cards   8 how we work   9 hub wheel
 * 10 sticky buttons   11 other page templates   12 phone overflow fixes
 */

/* ---------- 1. Tokens, one background, type ---------- */
:root {
  --max: 1180px;
  --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #FFFFFF; --line: #E5E8EC;
  --primary: #0F2A44; --soft: #FFFFFF;
  --ezz-ink: #0F2A44; --ezz-ink-2: #2B4460; --ezz-muted: #5C6B80;
  --ezz-accent: #01696F; --ezz-accent-hover: #0C4E54; --ezz-leaf: #8DC63F;
  --ezz-line: #E5E8EC; --ezz-tint: #F1F4F7;
  --ezz-font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', Roboto, Arial, sans-serif;
  /* three roles: text and headings / the wide caps wordmark face / small technical labels */
  --ezz-display: var(--ezz-font); --ezz-body: var(--ezz-font);
  --ezz-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ezz-arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.8' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3'/%3E%3C/svg%3E");
  --ezz-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418'/%3E%3C/svg%3E");
  --ezz-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.8' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  --ezz-wa-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z'/%3E%3C/svg%3E");
  --ezz-arrow-ur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%230F2A44'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m4.5 19.5 15-15m0 0H8.25m11.25 0v11.25'/%3E%3C/svg%3E");
  --ezz-arrow-ur-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m4.5 19.5 15-15m0 0H8.25m11.25 0v11.25'/%3E%3C/svg%3E");
  --ezz-hero-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 500' preserveAspectRatio='none'%3E%3Crect width='342' height='305' rx='28'/%3E%3Crect x='354' width='246' height='184.5' rx='28'/%3E%3Crect x='354' y='196.5' width='246' height='303.5' rx='28'/%3E%3Crect y='317' width='342' height='183' rx='28'/%3E%3C/svg%3E");
}

html, body { background: #FFFFFF; font-family: var(--ezz-font); font-size: 16px; line-height: 1.65; }
.hero, .page-hero, .section--alt { background: #FFFFFF; }
.site-footer { margin-top: 0; }

h1, h2, h3, h4 { font-family: var(--ezz-font); font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.05rem, 4.2vw, 3.3rem); line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.18; letter-spacing: -0.025em; }
h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; }
h4 { font-size: 1rem; }
.lead { font-size: 1.0625rem; line-height: 1.7; color: #44546A; }
.footer-brand { font-family: var(--ezz-font); font-weight: 600; }
.site-footer h2.footer-heading { font-weight: 600; letter-spacing: 0.12em; }
.tag { font-weight: 500; }
strong, b { font-weight: 600; }

/* ---------- 2. Header (main template) ---------- */
.site-header { background: transparent; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(150%) blur(10px); backdrop-filter: saturate(150%) blur(10px);
}
.site-header .nav-row { min-height: 72px; padding-top: 0; padding-bottom: 0; gap: 20px; }
.site-header .brand { gap: 0.85rem; min-width: 0; flex: 0 0 auto; text-decoration: none; }
.site-header .brand:hover { text-decoration: none; }
.site-header .brand img { height: 40px; width: auto; }
.site-header .brand-text {
  padding-left: 0.85rem; border-left: 1px solid var(--ezz-line);
  line-height: 1; gap: 0.36rem; justify-content: center; min-height: 34px;
}
.site-header .brand-text strong { font-family: var(--ezz-font); font-weight: 700; font-size: 0.98rem; letter-spacing: 0.1em; color: var(--ezz-ink); line-height: 1; }
.site-header .brand-text span { font-family: var(--ezz-font); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ezz-accent); line-height: 1; }
.site-header .primary-nav a { font-family: var(--ezz-font); font-weight: 500; font-size: 14px; }
.site-header .primary-nav .nav-cta {
  display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border: 1px solid transparent; border-radius: 999px;
  background: var(--ezz-accent); color: #FFFFFF !important; font: 600 14px/20px var(--ezz-font); white-space: nowrap; text-decoration: none;
  transition: background-color 0.2s ease;
}
.site-header .primary-nav .nav-cta:hover { background: var(--ezz-accent-hover); text-decoration: none; }

/* ---------- 3. Language pill: same component as facadeinspection.com.sg ---------- */
.ezzo-lang-switcher .ezzo-lang-trigger.ezzo-lang-trigger {
  display: inline-flex; align-items: center; gap: 8px; min-height: 0; padding: 6px 12px;
  border: 1px solid #E5E5E5; border-radius: 999px; background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); color: #262626; cursor: pointer;
  font: 500 14px/20px var(--ezz-font); letter-spacing: 0; white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.ezzo-lang-switcher .ezzo-lang-trigger.ezzo-lang-trigger:hover { background: #FAFAFA; border-color: #D4D4D4; }
.ezzo-lang-switcher .ezzo-lang-trigger.ezzo-lang-trigger:focus-visible { outline: 2px solid var(--ezz-accent); outline-offset: 2px; }
.ezzo-lang-switcher .ezzo-lang-trigger .ezzo-lang-mark { display: none; }
.ezzo-lang-switcher .ezzo-lang-trigger::before,
.ezzo-lang-switcher .ezzo-lang-trigger::after {
  content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
}
.ezzo-lang-switcher .ezzo-lang-trigger::before { -webkit-mask: var(--ezz-globe) center / contain no-repeat; mask: var(--ezz-globe) center / contain no-repeat; }
.ezzo-lang-switcher .ezzo-lang-trigger::after { -webkit-mask: var(--ezz-chevron) center / contain no-repeat; mask: var(--ezz-chevron) center / contain no-repeat; transition: transform 0.2s ease; }
.ezzo-lang-switcher .ezzo-lang-trigger[aria-expanded="true"]::after { transform: rotate(180deg); }
/* The stored label is "EN / 中文"; the pill shows the current language like the facade one. */
.ezzo-lang-switcher .ezzo-lang-trigger [data-ezzo-lang-trigger-label] { font-size: 0; line-height: 0; }
.ezzo-lang-switcher .ezzo-lang-trigger [data-ezzo-lang-trigger-label]::before { content: "English"; font-size: 14px; line-height: 20px; }
html[lang^="zh"] .ezzo-lang-switcher .ezzo-lang-trigger [data-ezzo-lang-trigger-label]::before { content: "中文"; }
@media (max-width: 560px) {
  .ezzo-lang-switcher .ezzo-lang-trigger.ezzo-lang-trigger { padding: 6px 10px; gap: 6px; }
  .ezzo-lang-switcher .ezzo-lang-trigger [data-ezzo-lang-trigger-label]::before { content: "EN"; }
}
/* Its menu */
.ezzo-lang-switcher .ezzo-lang-modal {
  width: min(280px, calc(100vw - 32px)); padding: 4px; border: 1px solid #E5E5E5; border-radius: 12px;
  background: rgba(255, 255, 255, 0.985); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.18); font-family: var(--ezz-font);
  animation: ezz-fade-in 0.16s ease-out;
}
@keyframes ezz-fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ezzo-lang-switcher .ezzo-lang-modal__head { padding: 8px 10px 6px; border: 0; }
.ezzo-lang-switcher .ezzo-lang-modal__title { font-size: 12px; font-weight: 500; color: #737373; }
.ezzo-lang-switcher .ezzo-lang-close { width: 26px; height: 26px; background: none; color: #737373; }
.ezzo-lang-switcher .ezzo-lang-options { gap: 0; margin: 0; }
.ezzo-lang-switcher .ezzo-lang-option { min-height: 0; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: #262626; transition: background-color 0.15s ease; }
.ezzo-lang-switcher .ezzo-lang-option:hover, .ezzo-lang-switcher .ezzo-lang-option:focus-visible { background: #F5F5F5; border: 0; outline: none; }
.ezzo-lang-switcher .ezzo-lang-option strong { font-size: 14px; font-weight: 500; color: inherit; }
.ezzo-lang-switcher .ezzo-lang-option small { font-size: 12px; color: #737373; }
.ezzo-lang-switcher .ezzo-lang-status { min-width: 0; min-height: 20px; padding: 0 8px; background: none; border: 1px solid #E5E5E5; color: #737373; font-size: 10px; font-weight: 600; }
.ezzo-lang-switcher .ezzo-lang-option[aria-current="page"] { background: none; color: var(--ezz-accent); }
.ezzo-lang-switcher .ezzo-lang-option[aria-current="page"] strong { color: var(--ezz-accent); font-weight: 600; }
.ezzo-lang-switcher .ezzo-lang-option[aria-current="page"] small { color: #737373; }
.ezzo-lang-switcher .ezzo-lang-option[aria-current="page"] .ezzo-lang-status { background: none; border-color: var(--ezz-accent); color: var(--ezz-accent); }
.site-header .nav-row .ezzo-lang-switcher { margin: 0; flex: 0 0 auto; }

/* ---------- 4. Navbar layout, burger and the phone/tablet menu ---------- */
/* Wide screens: logo, links beside it, language and Contact on the right. No rule under the bar.
   Below 1024px: logo and a two-line burger; the menu is a full-screen sheet that slides down from the top,
   big links, language and Contact pinned to the bottom. All CSS (the page's own checkbox), no script. */
.site-header { border-bottom: 0; }
.site-header .nav-toggle {
  position: relative; z-index: 3; flex: 0 0 auto; width: 44px; height: 44px; margin-right: -10px; padding: 0; align-items: center; justify-content: center;
  border: 0; border-radius: 10px; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.site-header .nav-toggle > span { font-size: 0; line-height: 0; }
.site-header .nav-toggle::before,
.site-header .nav-toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 1.6px; margin: -0.8px 0 0 -11px; border-radius: 2px; background: var(--ezz-ink);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}
.site-header .nav-toggle::before { transform: translateY(-3.5px); }
.site-header .nav-toggle::after { transform: translateY(3.5px); }
.site-header #navt:checked ~ .nav-toggle::before { transform: rotate(45deg); }
.site-header #navt:checked ~ .nav-toggle::after { transform: rotate(-45deg); }
.site-header #navt:focus-visible ~ .nav-toggle { outline: 2px solid var(--ezz-accent); outline-offset: 2px; }

@media (min-width: 1024px) {
  .site-header .nav-row { justify-content: flex-start; gap: clamp(1.75rem, 3.6vw, 3.5rem); }
  .site-header .primary-nav { --ezz-nav-gap: clamp(1.1rem, 2.1vw, 2rem); flex: 1 1 auto; gap: var(--ezz-nav-gap); }
  .site-header .primary-nav > a:not(.nav-cta) { padding: 0.45rem 0; border-bottom: 0; font-size: 15px; transition: color 0.2s ease; }
  .site-header .primary-nav > .ezzo-lang-switcher { order: 1; margin-left: auto; }
  .site-header .primary-nav > .nav-cta { order: 2; margin-left: calc(12px - var(--ezz-nav-gap)); }
  .site-header .nav-toggle { display: none; }
}

@media (max-width: 1023px) {
  .site-header { z-index: 10000; }
  .site-header .nav-row { flex-wrap: nowrap; justify-content: space-between; min-height: 64px; }
  .site-header .brand { position: relative; z-index: 3; }
  .site-header .nav-toggle { display: inline-flex; }
  .site-header .primary-nav {
    position: fixed; inset: 0; z-index: 2; box-sizing: border-box; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(6, max-content) minmax(max-content, 1fr); align-content: stretch; gap: 0 12px;
    padding: calc(64px + clamp(1.25rem, 6vh, 4rem)) 20px 20px; border: 0; background: #FFFFFF;
    visibility: hidden; transform: translateY(-100%);
    transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s linear 0.7s;
  }
  .site-header #navt:checked ~ .primary-nav { visibility: visible; transform: none; transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s; }
  .site-header .primary-nav > a:not(.nav-cta) {
    grid-column: 1 / -1; display: block; padding: clamp(9px, 2.1vh, 20px) 0; border: 0;
    font-family: var(--ezz-font); font-size: clamp(1.45rem, 4vh, 1.9rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.025em; color: var(--ezz-ink); text-decoration: none;
  }
  .site-header .primary-nav > a:not(.nav-cta):hover, .site-header .primary-nav > a:not(.nav-cta).active { color: var(--ezz-accent); }
  /* the language script also drops a copy of the pill into the bar on small screens; the menu carries the pill instead */
  .site-header .nav-row > .ezzo-lang-switcher { display: none; }
  /* bottom row: language on the left, Contact on the right */
  .site-header .primary-nav > .ezzo-lang-switcher { grid-column: 1; grid-row: 7; align-self: end; display: flex; margin: 24px 0 0; }
  .site-header .primary-nav > .ezzo-lang-switcher .ezzo-lang-trigger.ezzo-lang-trigger { width: 100%; min-height: 52px; justify-content: center; padding: 0 16px; background: #FFFFFF; box-shadow: none; font-size: 16px; }
  .site-header .primary-nav > .ezzo-lang-switcher .ezzo-lang-trigger [data-ezzo-lang-trigger-label]::before { content: "English"; font-size: 16px; line-height: 24px; }
  html[lang^="zh"] .site-header .primary-nav > .ezzo-lang-switcher .ezzo-lang-trigger [data-ezzo-lang-trigger-label]::before { content: "\4E2D\6587"; }
  .site-header .primary-nav > .ezzo-lang-switcher .ezzo-lang-modal { position: absolute; top: auto; bottom: calc(100% + 10px); left: 0; right: auto; width: min(280px, calc(100vw - 40px)); }
  .site-header .primary-nav > .nav-cta { grid-column: 2; grid-row: 7; align-self: end; min-height: 52px; margin: 24px 0 0; padding: 0 16px; font-size: 16px; line-height: 24px; }
  /* the page under the open menu does not scroll */
  html:has(.site-header #navt:checked) { overflow: hidden; }
}
@media (max-width: 419px) {
  .site-header .brand-text { position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap; }
}
@media (max-width: 560px) {
  .site-header .nav-row { padding-left: 16px; padding-right: 16px; }
  .site-header .brand img { height: 36px; }
  .site-header .brand-text { padding-left: 0.7rem; }
  .site-header .brand { gap: 0.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .primary-nav, .site-header #navt:checked ~ .primary-nav, .site-header .nav-toggle::before, .site-header .nav-toggle::after { transition: none; }
}

/* ---------- 5. Buttons and eyebrows ---------- */
.btn { max-width: 100%; overflow-wrap: anywhere; font-family: var(--ezz-font); font-weight: 600; font-size: 15px; line-height: 20px; padding: 13px 24px; border-width: 1px; }
.btn-primary { display: inline-flex; align-items: center; gap: 10px; }
.btn-primary::after {
  content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: var(--ezz-arrow-right) center / contain no-repeat; mask: var(--ezz-arrow-right) center / contain no-repeat; transition: transform 0.2s ease;
}
.btn-primary:hover::after { transform: translateX(3px); }
.btn-outline { border-color: #C9D2DC; }
.btn-outline:hover { background: var(--ezz-ink); border-color: var(--ezz-ink); }
.pillar-strip__btn { background: #FFFFFF; border-color: var(--ezz-line); color: var(--ezz-ink); font-weight: 500; font-size: 14px; padding: 8px 16px; }
.pillar-strip__btn:hover, .pillar-strip__btn:focus-visible { background: var(--ezz-ink); border-color: var(--ezz-ink); color: #FFFFFF; }

/* Eyebrow = the small label above a heading. Section eyebrows: a short rule + caps. */
.eyebrow, html .ezzo-projects .pr-kicker {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-family: var(--ezz-font); font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ezz-accent);
}
.eyebrow::before, html .ezzo-projects .pr-kicker::before { content: ""; flex: none; width: 24px; height: 2px; border-radius: 2px; background: currentColor; }
/* Hero eyebrow: a status chip with the logo's green dot. */
.hero .eyebrow, header.top .eyebrow {
  display: inline-flex; gap: 9px; margin: 0 0 22px; padding: 6px 14px 6px 11px;
  border: 1px solid var(--ezz-line); border-radius: 999px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(15, 42, 68, 0.05);
  font-size: 13px; font-weight: 500; line-height: 20px; letter-spacing: 0; text-transform: none; color: var(--ezz-ink-2);
}
.hero .eyebrow::before, header.top .eyebrow::before {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ezz-leaf); box-shadow: 0 0 0 4px rgba(141, 198, 63, 0.22);
}

/* ---------- 6. Hero: four specialisations, four tiles ---------- */
.hero { padding: clamp(2.25rem, 5.5vw, 4.75rem) 0 clamp(2rem, 4.5vw, 4rem); }
.hero .hero-grid { grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr); gap: clamp(2rem, 4.5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.5vw, 3.85rem); font-weight: 600; line-height: 1.06; letter-spacing: -0.035em; margin-bottom: 0.5em; }
.hero .lead { max-width: 54ch; }
.hero .hero-ctas { align-items: center; gap: 12px 22px; margin-top: 30px; }
/* Second action: text + outlined circle arrow */
.hero .hero-ctas .btn-outline {
  display: inline-flex; align-items: center; gap: 12px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ezz-ink);
}
.hero .hero-ctas .btn-outline::after {
  content: ""; flex: none; width: 44px; height: 44px; border: 1.5px solid #AAB6C3; border-radius: 50%;
  background: var(--ezz-arrow-right) center / 18px 18px no-repeat; transition: border-color 0.2s ease, transform 0.2s ease;
}
.hero .hero-ctas .btn-outline:hover { background: none; color: var(--ezz-accent); }
.hero .hero-ctas .btn-outline:hover::after { border-color: var(--ezz-accent); transform: translateX(3px); }

.hero .hero-media {
  position: relative; aspect-ratio: 6 / 5;
  background: #E9EEF2 url("/assets/images/cat-work-at-height.jpg") 100% 0 / 41% 36.9% no-repeat;
  -webkit-mask: var(--ezz-hero-mask) 0 0 / 100% 100% no-repeat; mask: var(--ezz-hero-mask) 0 0 / 100% 100% no-repeat;
}
.hero .hero-media img {
  position: absolute; left: 0; top: 0; width: 57%; height: 61%; aspect-ratio: auto; object-fit: cover; border-radius: 0; box-shadow: none;
}
.hero .hero-media::before, .hero .hero-media::after { content: ""; position: absolute; background-color: #E9EEF2; background-position: center; background-size: cover; background-repeat: no-repeat; }
.hero .hero-media::before { left: 0; top: 63.4%; width: 57%; height: 36.6%; background-image: url("/assets/images/cat-flooring.jpg"); }
.hero .hero-media::after { left: 59%; top: 39.3%; width: 41%; height: 60.7%; background-image: url("/assets/images/cat-commercial-renovation.webp"); }
html[lang^="zh"] .hero .hero-media::before { background-image: url("/assets/images/cat-glass-and-metal.webp"); }
@media (prefers-reduced-motion: no-preference) {
  .hero .hero-media::before, .hero .hero-media::after { animation: ezz-tile-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero .hero-media::after { animation-delay: 0.12s; }
}
@keyframes ezz-tile-in { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: none; } }
@media (max-width: 880px) {
  .hero .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.1rem, 8.6vw, 3rem); }
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.crumbs { font-size: 13px; }

/* ---------- 7. Specialisation cards: notched cover + arrow ---------- */
.hub-grid { gap: 44px 26px; }
.hub-card, .hub-card:hover { background: none; border: 0; border-radius: 28px; box-shadow: none; overflow: visible; transform: none; }
.hub-card:focus-visible { outline: 2px solid var(--ezz-accent); outline-offset: 6px; }
.hub-card__media { position: relative; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; background: var(--ezz-tint); }
.hub-card .hub-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; transition: transform 0.5s ease; }
.hub-card:hover .hub-card__media img { transform: scale(1.04); }
/* fillets where the cut meets the cover's right and bottom edges */
.hub-card__media::before {
  content: ""; position: absolute; right: 0; bottom: 0; width: 108px; height: 108px; pointer-events: none; z-index: 1;
  background:
    radial-gradient(circle at top left, transparent 27.5px, #FFFFFF 28px) right 0 bottom 80px / 28px 28px no-repeat,
    radial-gradient(circle at top left, transparent 27.5px, #FFFFFF 28px) right 80px bottom 0 / 28px 28px no-repeat;
}
/* the notch block, with the arrow disc nested in it */
.hub-card__media::after {
  content: ""; position: absolute; inset: auto 0 0 auto; width: 80px; height: 80px; border-top-left-radius: 48px; pointer-events: none; z-index: 1;
  background:
    var(--ezz-arrow-ur) right 22px bottom 22px / 20px 20px no-repeat,
    radial-gradient(circle at 48px 48px, var(--ezz-tint) 31.5px, transparent 32px),
    #FFFFFF;
}
.hub-card:hover .hub-card__media::after, .hub-card:focus-visible .hub-card__media::after {
  background:
    var(--ezz-arrow-ur-w) right 20px bottom 24px / 20px 20px no-repeat,
    radial-gradient(circle at 48px 48px, var(--ezz-accent) 31.5px, transparent 32px),
    #FFFFFF;
}
/* the pill at the top of the cover */
.hub-card__label {
  left: 50%; right: auto; top: 16px; bottom: auto; transform: translateX(-50%); padding: 4px 10px; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 11px; font-weight: 500; line-height: 16px; letter-spacing: 0; text-shadow: none;
}
.hub-card__body { padding: 0; }
.hub-card h3 { margin: 20px 0 0; font-size: 1.4rem; font-weight: 500; line-height: 1.25; letter-spacing: -0.025em; }
.hub-card p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--ezz-muted); }
.hub-card__more {
  align-self: flex-start; margin-top: 16px; padding: 4px 8px; border-radius: 6px; background: var(--ezz-tint);
  font-size: 10px; font-weight: 600; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ezz-ink-2);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.hub-card:hover .hub-card__more { background: var(--ezz-ink); color: #FFFFFF; }

/* ---------- 8. How we work: picture, title, one line ---------- */
.section-head:has(+ .kpi-row) { max-width: 44rem; margin: 0 auto 2.75rem; text-align: center; }
.section-head:has(+ .kpi-row) .eyebrow { justify-content: center; }
.kpi-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; margin: 0; }
.kpi { min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; transition: transform 0.3s ease; }
.kpi:hover { transform: translateY(-2px); }
.kpi::before { content: ""; display: block; aspect-ratio: 4 / 3; margin-bottom: 16px; border-radius: 14px; background: #F1F6F7 center / cover no-repeat; }
.kpi:nth-child(1)::before { background-image: url("/assets/images/ui/how-site-visit.svg"); }
.kpi:nth-child(2)::before { background-image: url("/assets/images/ui/how-itemised-quote.svg"); }
.kpi:nth-child(3)::before { background-image: url("/assets/images/ui/how-method-statement.svg"); }
.kpi:nth-child(4)::before { background-image: url("/assets/images/ui/how-defect-walk.svg"); }
.kpi-num { font-family: var(--ezz-font); font-size: 16px; font-weight: 600; line-height: 24px; letter-spacing: -0.01em; color: var(--ezz-ink); }
.kpi-lbl { margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--ezz-muted); }
@media (max-width: 880px) { .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 18px; } }
@media (max-width: 359px) { .kpi-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 9. Hub diagram: a top-down tree (hub, four pillars, their sites) ---------- */
.hub-diagram { padding: 0; border: 0; border-radius: 0; background: none; }
.hub-diagram__svgwrap { max-width: none; }
.hub-diagram svg { max-height: none; overflow: visible; }
.hub-diagram svg text { font-family: var(--ezz-font); }
.hub-diagram .hd-hub__name { font-family: var(--ezz-display); }
.hub-diagram .hd-hub__place { font-family: var(--ezz-mono); }
.hub-diagram .hd-link { cursor: pointer; }
.hub-diagram .hd-link > g { transition: transform 0.2s ease; transform-box: fill-box; transform-origin: center; }
.hub-diagram .hd-link:hover > g, .hub-diagram .hd-link:focus-visible > g { transform: translateY(-2px); }
.hub-diagram .hd-ball, .hub-diagram .hd-chip, .hub-diagram .hd-ext { transition: fill 0.2s ease, stroke 0.2s ease; }
.hub-diagram .hd-link--pillar:hover .hd-ball, .hub-diagram .hd-link--pillar:focus .hd-ball { fill: #0C4E54; stroke: none; }
.hub-diagram .hd-link--pillar:hover text, .hub-diagram .hd-link--pillar:focus text { fill: #FFFFFF; }
.hub-diagram .hd-link:not(.hd-link--pillar):hover .hd-chip, .hub-diagram .hd-link:not(.hd-link--pillar):focus .hd-chip { fill: #FFFFFF; stroke: #0F2A44; }
.hub-diagram .hd-link:not(.hd-link--pillar):hover text, .hub-diagram .hd-link:not(.hd-link--pillar):focus text { fill: #0F2A44; }
.hub-diagram .hd-link:hover .hd-ext, .hub-diagram .hd-link:focus .hd-ext { stroke: #0F2A44; }
.hub-diagram .hd-link:focus-visible .hd-chip, .hub-diagram .hd-link:focus-visible .hd-ball { stroke: var(--ezz-leaf); stroke-width: 3; }
.hub-diagram .hd-link__cta { opacity: 0.85; }
.hub-legend { justify-content: center; margin: 28px 0 0; padding: 0; border-top: 0; list-style: none; font-size: 13px; color: var(--ezz-muted); }
.hub-legend .swatch { width: 10px; height: 10px; border-radius: 3px; }
/* below 1000px the drawing would be too small to read: use the stacked list instead */
@media (max-width: 999px) {
  .hub-diagram__svgwrap { display: none; }
  .hub-stack { display: block; }
  .hub-legend { display: none; }
  .hub-diagram { padding: clamp(1rem, 2.5vw, 1.5rem); border: 1px solid var(--ezz-line); border-radius: 28px; }
}
.hub-stack__core { border-radius: 20px; }
.hub-stack__items li a { border-radius: 14px; }
.backlink { border-radius: 14px; }

/* ---------- 10. Sticky buttons ---------- */
body a.ezzo-call-sticky, body a.ezzo-wa-sticky {
  bottom: max(16px, env(safe-area-inset-bottom)); height: 56px; font-family: var(--ezz-font); line-height: 1; letter-spacing: 0;
  text-decoration: none; white-space: nowrap; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
body a.ezzo-call-sticky { left: 16px; padding: 0 22px 0 18px; gap: 10px; font-size: 15px; font-weight: 600; background: #0F2A44; box-shadow: 0 8px 24px rgba(15, 42, 68, 0.28); }
body a.ezzo-call-sticky svg { width: 20px; height: 20px; }
/* WhatsApp: the logo alone */
body a.ezzo-wa-sticky {
  right: 16px; width: 56px; padding: 0; justify-content: center; border-radius: 50%; font-size: 0;
  background: #25D366; color: #FFFFFF !important; box-shadow: 0 8px 24px rgba(20, 150, 72, 0.38);
}
body a.ezzo-wa-sticky::before {
  content: ""; flex: 0 0 auto; width: 31px; height: 31px; background: #FFFFFF;
  -webkit-mask: var(--ezz-wa-glyph) center / contain no-repeat; mask: var(--ezz-wa-glyph) center / contain no-repeat;
}
body a.ezzo-call-sticky:hover, body a.ezzo-wa-sticky:hover { transform: translateY(-2px); text-decoration: none; }
body a.ezzo-call-sticky:focus-visible, body a.ezzo-wa-sticky:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; box-shadow: 0 0 0 6px #0F2A44; }

/* ---------- 11. Other page templates: same bar, background and type ---------- */
/* 11a. About and Credentials (was a dark block) */
header.top { background: #FFFFFF; color: var(--ezz-ink); overflow-x: hidden; overflow-x: clip; }
header.top, header.top ~ main, header.top ~ footer { font-family: var(--ezz-font); }
header.top .nav { position: relative; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.35rem 1.4rem; min-height: 72px; padding: 0.75rem 0; }
header.top .nav::after { content: ""; position: absolute; left: -100vw; right: -100vw; bottom: 0; border-bottom: 1px solid var(--ezz-line); }
header.top .brand { display: inline-flex; align-items: center; gap: 0.85rem; margin-right: auto; font-family: var(--ezz-font); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; color: var(--ezz-ink); }
header.top .brand::before, html .ezzo-projects .pr-brand::before {
  content: ""; flex: 0 0 auto; width: 90px; height: 40px; background: url("/assets/images/ezz-logo.jpg") left center / contain no-repeat;
}
header.top .nav-links { align-items: center; gap: 0.25rem 1.4rem; font-size: 14px; }
header.top .nav-links a { color: var(--ezz-ink); font-weight: 500; padding: 0.45rem 0; }
header.top .nav-links a:hover { color: var(--ezz-accent); }
header.top .hero { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
header.top .hero h1 { color: var(--ezz-ink); font-family: var(--ezz-font); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-size: clamp(2rem, 4vw, 3.1rem); margin: 0 0 16px; }
header.top .hero p { color: #44546A; font-size: 1.0625rem; }
header.top ~ main { border-top: 1px solid var(--ezz-line); }
header.top ~ main h2, header.top ~ main h3 { font-family: var(--ezz-font); font-weight: 600; letter-spacing: -0.02em; }
header.top ~ main .about-card { border-radius: 20px; box-shadow: none; border-color: var(--ezz-line); }
header.top ~ main .related { border-radius: 24px; }
header.top ~ main .btn { background: var(--ezz-accent); }
@media (max-width: 760px) {
  header.top .nav-links { flex: 1 1 100%; flex-wrap: nowrap; }
  header.top .nav-links .ezzo-lang-switcher { margin-left: auto; }
}
@media (max-width: 439px) { header.top .nav-links { gap: 0 0.85rem; font-size: 13px; } }

/* 11b. Project pages (was green serif on off-white) */
body.ezzo-projects { background: #FFFFFF; font-family: var(--ezz-font); color: var(--ezz-ink); font-size: 16px; }
html .ezzo-projects h1, html .ezzo-projects h2, html .ezzo-projects h3 { font-family: var(--ezz-font); color: var(--ezz-ink); font-weight: 600; letter-spacing: -0.025em; }
html .ezzo-projects h1 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.1; letter-spacing: -0.03em; }
html .ezzo-projects .pr-header { border-bottom: 1px solid var(--ezz-line); }
html .ezzo-projects .pr-header > div { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.4rem; min-height: 72px; padding-top: 0.75rem; padding-bottom: 0.75rem; }
html .ezzo-projects .pr-brand { gap: 0.85rem; margin-right: auto; color: var(--ezz-ink); font-family: var(--ezz-font); font-weight: 700; font-size: 0.98rem; letter-spacing: 0.1em; text-transform: uppercase; }
html .ezzo-projects .pr-header nav { align-items: center; gap: 0.25rem 1.4rem; font-size: 14px; }
html .ezzo-projects .pr-header nav a { color: var(--ezz-ink); font-weight: 500; padding: 0.45rem 0; }
html .ezzo-projects .pr-header nav a:hover { color: var(--ezz-accent); }
html .ezzo-projects .pr-header nav a:last-child { display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 999px; background: var(--ezz-accent); color: #FFFFFF !important; font: 600 14px/20px var(--ezz-font); }
html .ezzo-projects .pr-header nav a:last-child:hover { background: var(--ezz-accent-hover); }
html .ezzo-projects .pr-hero img { border-radius: 28px; }
html .ezzo-projects .pr-gallery { background: #FFFFFF; border-top: 1px solid var(--ezz-line); border-bottom: 1px solid var(--ezz-line); }
html .ezzo-projects .pr-gallery figure { border-color: var(--ezz-line); border-radius: 20px; }
html .ezzo-projects .pr-gallery img { background: #FFFFFF; border-radius: 12px; }
html .ezzo-projects .pr-enquiry-box { background: #FFFFFF; border: 1px solid var(--ezz-line); border-radius: 24px; }
html .ezzo-projects .pr-button { border-radius: 999px; font-weight: 600; }
html .ezzo-projects .pr-card, html .ezzo-projects .pr-more-grid a { border-color: var(--ezz-line); border-radius: 20px; }
html .ezzo-projects .pr-more-grid strong { font-family: var(--ezz-font); font-weight: 600; }
html .ezzo-projects .pr-card > a { background: #FFFFFF; }
html .ezzo-projects .pr-facts { border-color: var(--ezz-line); }
html .ezzo-projects dd { font-weight: 600; }
@media (max-width: 559px) {
  html .ezzo-projects .pr-brand, header.top .brand { font-size: 0; letter-spacing: 0; gap: 0; }
}
@media (max-width: 439px) {
  html .ezzo-projects .pr-header nav { gap: 0 0.8rem; font-size: 13px; }
  html .ezzo-projects .pr-header nav a:last-child { padding: 8px 16px; font-size: 13px; }
}

/* ---------- 12. Phone overflow fixes ---------- */
@media (max-width: 880px) {
  .container[style*="grid-template-columns:1.4fr"], [style*="grid-template-columns:1.4fr 1fr"] { grid-template-columns: minmax(0, 1fr) !important; gap: 1.5rem !important; }
}
@media (max-width: 720px) {
  main table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 359px) {
  body a.ezzo-call-sticky { left: 12px; height: 52px; padding: 0 18px 0 14px; }
  body a.ezzo-wa-sticky { right: 12px; width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .primary-nav > a, .site-header .primary-nav .nav-cta, .site-header .nav-toggle::before, .site-header .nav-toggle::after { transition: none !important; }
}

/* phone list under the wheel: let the two-line descriptions breathe */
.hub-stack__items li a { line-height: 1.5; padding: 14px 16px; border-radius: 14px; }
.hub-stack__items li a strong { margin-bottom: 2px; }
/* hero heading: balanced lines, never one orphan word */
.hero h1 { text-wrap: balance; }

/* =====================================================================
   Round 3 (4 Dec): type roles, centered heads and hero, news-style
   project cards, panels, clean footer.
   ===================================================================== */

/* ---------- 13. Type roles ---------- */
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.7rem); line-height: 1.12; }
strong, b { font-weight: 600; }
.btn { font-weight: 500; letter-spacing: -0.005em; }
.site-header .primary-nav a { font-weight: 450; }
.site-header .primary-nav .nav-cta { font-weight: 500; }
/* wordmark: the wide caps face */
.site-header .brand-text strong { font-family: var(--ezz-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.06em; }
.site-header .brand-text span { font-family: var(--ezz-mono); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.1em; }
/* small technical labels: mono caps */
.eyebrow, html .ezzo-projects .pr-kicker { font-family: var(--ezz-mono); font-weight: 500; letter-spacing: 0.08em; }
.hero .eyebrow, header.top .eyebrow { font-family: var(--ezz-font); letter-spacing: 0; }
.hub-card__more { font-family: var(--ezz-mono); font-weight: 500; letter-spacing: 0.05em; }
.kpi-num { font-weight: 500; font-size: 17px; }
.crumbs { font-family: var(--ezz-mono); font-size: 12px; letter-spacing: 0.02em; }

/* ---------- 14. Sections: centered heads, one line on desktop ---------- */
.section { position: relative; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--alt { border: 0; }
.section-head, .section-head:has(+ .kpi-row) { max-width: none; margin: 0 auto clamp(2rem, 4vw, 3.25rem); text-align: center; }
.section-head .eyebrow { justify-content: center; margin-bottom: 14px; }
.section-head .eyebrow::before { display: none; }
.section-head h2 { max-width: none; margin-left: auto; margin-right: auto; text-wrap: balance; }
.section-head > p:not(.eyebrow) { margin-left: auto; margin-right: auto; font-size: 1.0625rem; line-height: 1.65; text-wrap: pretty; }
.section-more { margin-top: clamp(2rem, 4vw, 3rem); text-align: center; }
.pillar-strip { justify-content: center; }

/* ---------- 15. Hero: centered, photos as a staggered band ---------- */
.hero .hero-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(2.25rem, 5vw, 4rem); }
.hero .hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 { max-width: 15ch; margin: 0 auto 0.45em; font-size: clamp(2.5rem, 6.2vw, 4.9rem); font-weight: 500; line-height: 1; letter-spacing: -0.045em; }
.hero .lead { max-width: 60ch; margin-left: auto; margin-right: auto; text-wrap: pretty; }
.hero .hero-ctas { justify-content: center; }
@media (min-width: 881px) {
  .hero { --ezz-hero-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1140 400' preserveAspectRatio='none'%3E%3Crect y='48' width='273' height='352' rx='28'/%3E%3Crect x='289' width='273' height='352' rx='28'/%3E%3Crect x='578' y='48' width='273' height='352' rx='28'/%3E%3Crect x='867' width='273' height='352' rx='28'/%3E%3C/svg%3E"); }
  .hero .hero-media { width: 100%; aspect-ratio: 1140 / 400; background-position: 28.45% 0; background-size: auto 88%; }
  .hero .hero-media img { left: 0; top: 12%; width: 23.947%; height: 88%; }
  .hero .hero-media::before { left: 50.702%; top: 12%; width: 23.947%; height: 88%; }
  .hero .hero-media::after { left: 76.053%; top: 0; width: 23.947%; height: 88%; }
}
@media (max-width: 880px) {
  .hero h1 { font-size: clamp(2.3rem, 10vw, 3.4rem); }
  .hero .hero-media { width: 100%; max-width: 560px; margin: 0 auto; }
}

/* ---------- 16. Recent projects: picture, small meta line, big title ---------- */
.project-grid { gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.25rem, 2.6vw, 2rem); }
.project-card { background: none; border: 0; border-radius: 0; overflow: visible; }
.project-card img { aspect-ratio: 3 / 2; border: 1px solid var(--ezz-line); border-radius: 28px; background: var(--ezz-tint); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.project-card:hover img { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(15, 42, 68, 0.35); }
.project-card__body { padding: 20px 2px 0; }
.project-card .muted { order: -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 10px; font-size: 12px; line-height: 18px; }
.project-card .tag { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; font-family: var(--ezz-mono); font-size: 12px; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ezz-muted); }
.project-card .tag:first-child { font-family: var(--ezz-display); font-weight: 600; letter-spacing: 0.06em; color: var(--ezz-ink-2); }
.project-card .tag--needs-confirm { color: #B45309; }
.project-card h3 { margin: 0 0 8px; font-size: 1.4rem; font-weight: 500; line-height: 1.22; letter-spacing: -0.025em; text-wrap: balance; }
.project-card p { font-size: 15px; line-height: 1.6; color: var(--ezz-muted); }

/* ---------- 17. Panels ---------- */
/* 17a. "Plan your project" and its siblings: one bordered panel, centered, two pills */
.section:has(> .container[style*="1.4fr 1fr;gap:2rem"]) { padding-top: clamp(1rem, 2vw, 1.5rem); padding-bottom: clamp(1rem, 2vw, 1.5rem); }
.section > .container[style*="1.4fr 1fr;gap:2rem"] {
  display: block !important; width: calc(100% - 2.5rem); max-width: calc(var(--max) - 2.5rem);
  padding: clamp(2.75rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4rem); border: 1px solid var(--ezz-line); border-radius: 32px; text-align: center;
  background: radial-gradient(70% 90% at 50% 0%, #F1F6F7 0%, #FFFFFF 72%);
}
.section > .container[style*="1.4fr 1fr;gap:2rem"] h2 { margin: 0 auto 14px; font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.06; letter-spacing: -0.04em; text-wrap: balance; }
.section > .container[style*="1.4fr 1fr;gap:2rem"] p { margin-left: auto; margin-right: auto; font-size: 1.0625rem; line-height: 1.65; text-wrap: pretty; }
.section > .container[style*="1.4fr 1fr;gap:2rem"] > div:last-child { justify-content: center !important; gap: 12px !important; margin-top: 30px; }
.section > .container[style*="1.4fr 1fr;gap:2rem"] .btn { padding: 14px 26px; font-size: 16px; }
.btn[href*="wa.me"] { display: inline-flex; align-items: center; gap: 10px; }
.btn[href*="wa.me"]::before { content: ""; flex: none; width: 18px; height: 18px; background: #25D366; -webkit-mask: var(--ezz-wa-glyph) center / contain no-repeat; mask: var(--ezz-wa-glyph) center / contain no-repeat; }
.btn[href*="wa.me"]:hover::before { background: currentColor; }
/* 17b. "Additional specialist services": a soft panel holding three white cards */
section[data-ezzo-portfolio-completion] { padding-top: clamp(1rem, 2vw, 1.5rem); padding-bottom: 0; }
section[data-ezzo-portfolio-completion] > .container {
  width: calc(100% - 2.5rem); max-width: calc(var(--max) - 2.5rem); padding: clamp(1.75rem, 4.5vw, 3.25rem); border-radius: 32px; background: var(--ezz-tint);
}
section[data-ezzo-portfolio-completion] h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
section[data-ezzo-portfolio-completion] h2 + p { max-width: 38ch; margin: 0 0 clamp(1.5rem, 3vw, 2.25rem); font-size: 1.0625rem; line-height: 1.55; color: var(--ezz-muted); }
.backlink-grid { gap: 14px; }
.backlink { padding: 20px 22px; border-radius: 20px; background: #FFFFFF; transition: border-color 0.2s ease, transform 0.2s ease; }
.backlink:hover { border-color: var(--ezz-ink); transform: translateY(-2px); }
.backlink strong { margin-bottom: 6px; font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.015em; color: var(--ezz-ink); }
.backlink span { display: block; font-size: 14px; line-height: 1.55; }

/* ---------- 18. Footer: same white page, hairline, quiet columns ---------- */
.site-footer { display: flex; flex-direction: column; margin-top: clamp(3.5rem, 8vw, 6rem); padding: 0 0 2.5rem; background: #FFFFFF; color: var(--ezz-muted); }
.site-footer > .container { width: 100%; }
.site-footer::before {
  content: ""; align-self: center; width: calc(100% - 2.5rem); max-width: calc(var(--max) - 2.5rem); height: 1px; margin-bottom: 2.75rem;
  background: linear-gradient(90deg, var(--ezz-ink) 0 10px, var(--ezz-line) 10px);
}
.site-footer .footer-grid { order: 1; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; padding-bottom: 2.75rem; }
.footer-brand { margin: 0; font-family: var(--ezz-display); font-size: 17px; font-weight: 600; line-height: 24px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ezz-ink); }
.footer-brand::before { content: ""; display: block; width: 127px; height: 38px; margin-bottom: 18px; background: url("/assets/images/ezz-logo.jpg") left center / contain no-repeat; }
.footer-tagline { max-width: 40ch; margin-top: 14px; font-size: 14px; line-height: 24px; color: var(--ezz-muted); }
.site-footer h2.footer-heading { margin: 0 0 12px; font-family: var(--ezz-font); font-size: 15px; font-weight: 500; line-height: 24px; letter-spacing: 0; text-transform: none; color: var(--ezz-ink); }
.site-footer .footer-links li { margin: 0; padding: 6px 0; font-size: 15px; line-height: 22px; color: var(--ezz-muted); overflow-wrap: anywhere; }
.site-footer .footer-links a { font-size: 15px; color: var(--ezz-muted); text-decoration: none; transition: color 0.15s ease; }
.site-footer .footer-links a:hover { color: var(--ezz-ink); text-decoration: none; }
/* the arrow is glued to the last word so it never wraps alone */
.site-footer .footer-links a[target="_blank"]::after { content: "\00A0\2197"; font-size: 0.86em; opacity: 0.75; }
.site-footer > .container:not(.footer-grid):not(.footer-legal) { order: 2; }
.site-footer .footer-links[style] { gap: 0 1.5rem !important; }
.site-footer > ul.footer-links { order: 3; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.site-footer .footer-legal { order: 4; gap: 10px; margin-top: 2.75rem; padding-top: 0; border-top: 0; font-size: 13px; line-height: 1.6; color: var(--ezz-muted); }
.site-footer .footer-legal::before { content: ""; height: 1px; margin-bottom: 1.75rem; background: var(--ezz-line); }
.site-footer .footer-legal p { margin: 0; max-width: 100ch; }
.site-footer .footer-legal p:first-child { font-size: 14px; color: var(--ezz-ink); }
.site-footer .ezzo-registered, footer > .ezzo-registered {
  order: 5; width: 100%; max-width: var(--max) !important; margin: 14px auto 0 !important; padding: 0 1.25rem !important; text-align: left !important; opacity: 1 !important;
  font-family: var(--ezz-mono); font-size: 12px !important; line-height: 1.6; letter-spacing: 0.02em; color: var(--ezz-muted);
}
@media (max-width: 880px) {
  .site-footer .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer .footer-grid > div:first-child { grid-column: 1 / -1; }
  .site-footer { padding-bottom: 6.5rem; } /* room for the Call and WhatsApp buttons */
}
@media (max-width: 560px) {
  .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.25rem; }
  .site-footer .footer-grid > div:last-child { grid-column: 1 / -1; }
  .site-footer .footer-links[style] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0 1.25rem !important; }
}
/* footer link lists share one column grid so the two lists line up */
.site-footer .footer-links[style] { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (max-width: 880px) { .site-footer .footer-links[style] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 560px) { .site-footer .footer-links[style] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.hero h1 { letter-spacing: -0.035em; }

/* =====================================================================
   Round 4 (4 Dec): no separators, centered page heads, posts section,
   contact page, About template, project templates, one footer everywhere.
   ===================================================================== */

/* ---------- 19. Page heads (inner pages): centered, no rule under them ---------- */
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(0.5rem, 1.5vw, 1rem); border-bottom: 0; text-align: center; }
.page-hero .crumbs { margin-bottom: 20px; }
.page-hero h1 { max-width: 24ch; margin: 0 auto 0.4em; font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.page-hero .lead, .page-hero p { margin-left: auto; margin-right: auto; text-wrap: pretty; }
.section { padding: clamp(2.75rem, 6vw, 5rem) 0; }
.prose h2, article h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.2; letter-spacing: -0.025em; }
.prose h3, article h3 { font-size: 1.2rem; }

/* ---------- 20. Posts section: small label, big title, text link on the right ---------- */
.container:has(> .service-grid):has(> .section-more) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; align-items: end; }
.container:has(> .service-grid):has(> .section-more) > .section-head { grid-column: 1; margin: 0 0 clamp(1.75rem, 3vw, 2.5rem); text-align: left; }
.container:has(> .service-grid):has(> .section-more) > .section-head .eyebrow {
  justify-content: flex-start; margin-bottom: 16px; font-family: var(--ezz-font); font-size: 13px; font-weight: 500; line-height: 20px; letter-spacing: 0; text-transform: none; color: var(--ezz-muted);
}
.container:has(> .service-grid):has(> .section-more) > .section-head h2 { margin: 0; font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
.container:has(> .service-grid):has(> .section-more) > .section-more { grid-column: 2; grid-row: 1; margin: 0 0 clamp(1.75rem, 3vw, 2.5rem); text-align: right; }
.container:has(> .service-grid):has(> .section-more) > .section-more .btn { padding: 4px 0; border: 0; border-radius: 0; background: none; font-size: 14px; font-weight: 500; color: var(--ezz-ink); }
.container:has(> .service-grid):has(> .section-more) > .section-more .btn:hover { background: none; color: var(--ezz-accent); }
.container:has(> .service-grid):has(> .section-more) > .service-grid { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .container:has(> .service-grid):has(> .section-more) { grid-template-columns: minmax(0, 1fr); }
  .container:has(> .service-grid):has(> .section-more) > .section-head { margin-bottom: 12px; }
  .container:has(> .service-grid):has(> .section-more) > .section-more { grid-column: 1; grid-row: 2; margin-bottom: 1.5rem; text-align: left; }
}
.service-grid { gap: 16px; }
.service-card { padding: 28px; border-color: var(--ezz-line); border-radius: 28px; transition: border-color 0.2s ease, transform 0.2s ease; }
.service-card:hover { border-color: var(--ezz-ink); transform: translateY(-2px); }
.service-card h3 { margin: 0 0 10px; font-size: 1.25rem; font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; }
.service-card p { margin: 0 0 22px; font-size: 15px; line-height: 1.6; }
.service-card__more { font-size: 14px; font-weight: 500; color: var(--ezz-ink); }
.service-card:hover .service-card__more { color: var(--ezz-accent); }

/* ---------- 21. Contact page ---------- */
.ezzo-contact-columns { gap: clamp(1rem, 2.5vw, 1.5rem); align-items: start; }
.ezzo-contact-columns > div, .ezzo-contact-columns > aside { padding: clamp(1.5rem, 3.5vw, 2.5rem); border-radius: 28px; }
.ezzo-contact-columns > div { border: 1px solid var(--ezz-line); }
.ezzo-contact-columns > aside { background: var(--ezz-tint); }
.ezzo-contact-columns h2 { margin: 0 0 22px; font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.ezzo-contact-columns aside h3 { margin: 24px 0 6px; font-family: var(--ezz-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ezz-accent); }
.ezzo-contact-columns aside strong { font-weight: 500; }
.form-grid { max-width: none; gap: 16px; }
.field { gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field textarea, .field select { padding: 12px 14px; border-color: #D5DCE4; border-radius: 12px; font-size: 16px; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--ezz-accent); box-shadow: 0 0 0 4px rgba(1, 105, 111, 0.13); }
.form-grid .btn-primary { justify-self: stretch !important; justify-content: center; padding: 15px 24px; font-size: 16px; }
.container:has(> div > iframe) { text-align: center; }
.container:has(> div > iframe) > p { margin-left: auto; margin-right: auto; }
.container:has(> div > iframe) > div { margin-top: 1.75rem; border-radius: 28px !important; }

/* ---------- 22. About and Credentials template ---------- */
header.top .hero { display: flex; flex-direction: column; align-items: center; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(0.5rem, 1.5vw, 1rem); text-align: center; }
header.top .eyebrow { font-family: var(--ezz-mono); font-size: 11px; letter-spacing: 0.08em; }
header.top .hero h1 { max-width: 20ch; margin: 0 auto 18px; font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
header.top .hero p { max-width: 68ch; margin: 0 auto 12px; font-size: 1.0625rem; line-height: 1.65; color: var(--ezz-muted); text-wrap: pretty; }
header.top ~ main { padding: clamp(2rem, 4vw, 3rem) 0 0; border-top: 0; }
header.top ~ main .grid { display: block; columns: 2; column-gap: 16px; }
header.top ~ main .about-card { break-inside: avoid; margin: 0 0 16px; padding: clamp(1.5rem, 3vw, 2.25rem); border-color: var(--ezz-line); border-radius: 28px; box-shadow: none; }
header.top ~ main .about-card h2 { margin: 0 0 12px; font-size: 1.5rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.025em; color: var(--ezz-ink); text-wrap: balance; }
/* this card's heading is a full sentence: set it as a statement, not a shout */
header.top ~ main .about-card:nth-child(2):not(.cred-card) h2 { font-size: 1.125rem; line-height: 1.5; letter-spacing: -0.01em; text-wrap: pretty; }
header.top ~ main .about-card p { font-size: 15px; line-height: 1.65; color: var(--ezz-muted); }
header.top ~ main .about-card p:last-child { margin-bottom: 0; }
header.top ~ main .about-card a { color: var(--ezz-accent); }
header.top ~ main .cred-issuer { font-family: var(--ezz-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ezz-accent); }
header.top ~ main .related {
  grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 2rem; margin-top: 0; padding: clamp(1.75rem, 5vw, 3.25rem); border: 1px solid var(--ezz-line); border-radius: 32px; color: var(--ezz-ink);
  background: radial-gradient(70% 90% at 50% 0%, #F1F6F7 0%, #FFFFFF 72%);
}
header.top ~ main .related h2 { margin: 0 0 16px; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 500; letter-spacing: -0.03em; color: var(--ezz-ink); }
header.top ~ main .related ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--ezz-ink-2); }
header.top ~ main .related li { padding: 6px 14px; border: 1px solid var(--ezz-line); border-radius: 999px; background: #FFFFFF; font-size: 14px; line-height: 20px; }
header.top ~ main .btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; background: var(--ezz-accent); font-size: 16px; font-weight: 500; }
header.top ~ main .btn:hover { background: var(--ezz-accent-hover); }
@media (max-width: 760px) {
  header.top ~ main .grid { columns: 1; }
  header.top ~ main .related { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 23. Project templates ---------- */
html .ezzo-projects { font-family: var(--ezz-font); color: var(--ezz-ink); }
html .ezzo-projects h1, html .ezzo-projects h2, html .ezzo-projects h3 { font-weight: 500; letter-spacing: -0.03em; }
html .ezzo-projects .pr-shell { max-width: var(--max); padding: 0 1.25rem; }
html .ezzo-projects .pr-cards { padding-top: clamp(2.75rem, 6vw, 5rem); padding-bottom: clamp(2.75rem, 6vw, 5rem); }
html .ezzo-projects .pr-cards > .pr-kicker { justify-content: center; margin-bottom: 14px; }
html .ezzo-projects .pr-cards > .pr-kicker::before { display: none; }
html .ezzo-projects .pr-cards > h2 { margin: 0 0 clamp(2rem, 4vw, 3.25rem); font-size: clamp(1.7rem, 3.3vw, 2.7rem); line-height: 1.12; text-align: center; text-wrap: balance; }
html .ezzo-projects .pr-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.25rem, 2.6vw, 2rem); }
html .ezzo-projects .pr-card { border: 0; border-radius: 0; background: none; overflow: visible; }
html .ezzo-projects .pr-card > a { overflow: hidden; border: 1px solid var(--ezz-line); border-radius: 28px; background: var(--ezz-tint); transition: transform 0.4s ease, box-shadow 0.4s ease; }
html .ezzo-projects .pr-card:hover > a { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(15, 42, 68, 0.35); }
html .ezzo-projects .pr-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
html .ezzo-projects .pr-card-body { padding: 20px 2px 0; }
html .ezzo-projects .pr-card-body .pr-kicker { margin: 0 0 10px; font-size: 12px; font-weight: 400; line-height: 18px; letter-spacing: 0.04em; color: var(--ezz-muted); }
html .ezzo-projects .pr-card-body .pr-kicker::before { display: none; }
html .ezzo-projects .pr-card-body h3 { margin: 0 0 8px; font-size: 1.4rem; line-height: 1.22; letter-spacing: -0.025em; text-wrap: balance; }
html .ezzo-projects .pr-card-body h3 a { color: var(--ezz-ink); }
html .ezzo-projects .pr-card-body p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--ezz-muted); }
html .ezzo-projects .pr-card .pr-button { display: inline-flex; align-items: center; gap: 8px; padding: 0; border-radius: 0; background: none; font-size: 14px; font-weight: 500; color: var(--ezz-ink) !important; }
html .ezzo-projects .pr-card .pr-button::after { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--ezz-arrow-right) center / contain no-repeat; mask: var(--ezz-arrow-right) center / contain no-repeat; transition: transform 0.2s ease; }
html .ezzo-projects .pr-card:hover .pr-button { color: var(--ezz-accent) !important; }
html .ezzo-projects .pr-card:hover .pr-button::after { transform: translateX(3px); }
html .ezzo-projects .pr-gallery { border: 0; }
html .ezzo-projects .pr-enquiry-box { border-radius: 32px; background: radial-gradient(70% 90% at 50% 0%, #F1F6F7 0%, #FFFFFF 72%); }
@media (max-width: 880px) { html .ezzo-projects .pr-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { html .ezzo-projects .pr-card-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 24. One footer on every template ---------- */
/* The shared columns sit inside the page's own <footer>; these templates do not load site.css, so set the basics here. */
.ezz-footer-shared { padding-bottom: 0 !important; font-family: var(--ezz-font); font-size: 16px; line-height: 1.65; text-align: left; }
.ezz-footer-shared .container { box-sizing: border-box; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.ezz-footer-shared .footer-grid { display: grid; }
.ezz-footer-shared .footer-links { margin: 0; padding: 0; list-style: none; }
.site-footer .footer-brand { margin: 0; }
.site-footer .footer-tagline { margin: 14px 0 0; }
header.top ~ footer, html .ezzo-projects .pr-footer { margin: 0; padding: 0 0 2.5rem; border-top: 0; background: #FFFFFF; color: var(--ezz-muted); font-family: var(--ezz-font); font-size: 13px; }
header.top ~ footer > .wrap, html .ezzo-projects .pr-footer > .pr-shell {
  box-sizing: border-box; width: 100%; max-width: var(--max); margin: 1.75rem auto 0; padding: 1.75rem 1.25rem 0; line-height: 1.6; color: var(--ezz-muted);
  background: linear-gradient(var(--ezz-line), var(--ezz-line)) 1.25rem 0 / calc(100% - 2.5rem) 1px no-repeat;
}
html .ezzo-projects .pr-footer > .pr-shell p { margin: 0 0 4px; font-size: 14px; color: var(--ezz-ink); }
html .ezzo-projects .pr-footer > .pr-shell a { color: var(--ezz-muted); }
@media (max-width: 880px) { header.top ~ footer, html .ezzo-projects .pr-footer { padding-bottom: 6.5rem; } }
@media (max-width: 359px) {
  header.top .nav-links { gap: 0 0.55rem; font-size: 12.5px; }
  header.top .nav-links .ezzo-lang-trigger { padding: 5px 9px; gap: 5px; }
}

/* ---------- 25. FAQ: big centred title, hairline rows, question left, plus on the right ---------- */
/* The page uses native <details>, so open and close work without script. Inline styles on the rows need !important. */
.section > .container:has(> details) { max-width: 1000px !important; }
.section:has(> .container > details) { padding-top: clamp(1.5rem, 4vw, 3rem); }
.container > details { padding: 0 !important; border-bottom: 0 !important; border-top: 1px solid var(--ezz-line); interpolate-size: allow-keywords; }
.container > details:last-of-type { border-bottom: 1px solid var(--ezz-line) !important; }
.container > details > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(1.25rem, 2.6vw, 1.9rem) 0; list-style: none !important; cursor: pointer;
  font-size: clamp(1.08rem, 1.9vw, 1.4rem); font-weight: 500 !important; line-height: 1.3; letter-spacing: -0.02em; color: var(--ezz-ink) !important;
  -webkit-tap-highlight-color: transparent;
}
.container > details > summary::-webkit-details-marker { display: none; }
.container > details > summary::marker { content: ""; }
.container > details > summary::after {
  content: ""; flex: none; width: 18px; height: 18px; margin-right: 4px; color: var(--ezz-muted);
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: background-size .3s ease, transform .3s ease, color .2s ease;
}
.container > details > summary:hover::after { color: var(--ezz-accent); }
.container > details[open] > summary::after { background-size: 100% 1.5px, 1.5px 0; transform: rotate(180deg); color: var(--ezz-ink); }
.container > details > summary:focus-visible { outline: 2px solid var(--ezz-accent); outline-offset: 4px; border-radius: 6px; }
.container > details > div { max-width: 68ch; margin: 0 !important; padding: 0 3rem clamp(1.4rem, 2.6vw, 2rem) 0; font-size: 1rem; line-height: 1.65; color: var(--ezz-muted) !important; text-wrap: pretty; }
@keyframes ezz-faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.container > details[open] > div { animation: ezz-faq-in .3s ease both; }
@supports (interpolate-size: allow-keywords) {
  .container > details::details-content { block-size: 0; overflow: clip; transition: block-size .35s ease, content-visibility .35s allow-discrete; }
  .container > details[open]::details-content { block-size: auto; }
}
@media (max-width: 560px) { .container > details > div { padding-right: 1.5rem; } }
@media (prefers-reduced-motion: reduce) {
  .container > details::details-content, .container > details > summary::after { transition: none; }
  .container > details[open] > div { animation: none; }
}

/* ---------- 26. One navbar on every template ---------- */
/* About, Credentials and the project pages now carry the home navbar (build.py). They do not load site.css,
   so its base rules are repeated here at the same low weight; sections 2 to 4 then style it as everywhere else. */
/* (z-index sits in the low-weight rule so section 4 can lift the bar above the sticky buttons on phones) */
:where(.ezz-header-shared) { z-index: 50; }
.ezz-header-shared { position: sticky; top: 0; font-family: var(--ezz-font); font-size: 16px; line-height: 1.65; text-align: left; color: var(--ezz-ink); }
:where(.ezz-header-shared), :where(.ezz-header-shared) * { box-sizing: border-box; }
:where(.ezz-header-shared) .container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
:where(.ezz-header-shared) .nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
:where(.ezz-header-shared) a { color: var(--ezz-accent); text-decoration: none; }
:where(.ezz-header-shared) img { display: block; max-width: 100%; height: auto; }
:where(.ezz-header-shared) .brand { display: flex; align-items: center; gap: 0.7rem; color: var(--ezz-ink); font-weight: 400; letter-spacing: 0; }
:where(.ezz-header-shared) .brand-text { display: flex; flex-direction: column; }
:where(.ezz-header-shared) .primary-nav { display: flex; align-items: center; gap: 1.1rem; }
:where(.ezz-header-shared) .primary-nav a { padding: 0.45rem 0.1rem; border-bottom: 2px solid transparent; color: var(--ezz-ink); text-decoration: none; }
:where(.ezz-header-shared) .primary-nav a:hover, :where(.ezz-header-shared) .primary-nav a.active { color: var(--ezz-accent); border-color: var(--ezz-accent); }
:where(.ezz-header-shared) .nav-toggle { display: none; color: var(--ezz-ink); }
:where(.ezz-header-shared) .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
@media (max-width: 880px) {
  :where(.ezz-header-shared) .primary-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.25rem; border-bottom: 1px solid var(--ezz-line); background: #FFFFFF; }
}
/* the project template colours every link and sizes every <nav>; keep those out of the navbar */
.ezzo-projects .ezz-header-shared .brand { color: var(--ezz-ink); }
.ezzo-projects .ezz-header-shared .primary-nav { flex-wrap: nowrap; font-size: 16px; }
.ezzo-projects .ezz-header-shared a:focus-visible { outline: 2px solid var(--ezz-accent); outline-offset: 2px; }
html .ezzo-projects .pr-header:empty { display: none; }
body:has(> header.top) { background: #FFFFFF; }

/* ---------- 27. About page (and the Credentials intro): big left-set statement, label-and-text row, one dark panel, soft cards ---------- */
header.top .wrap, header.top ~ main.wrap { width: min(1140px, calc(100% - 2.5rem)); }
header.top ~ main { --ezz-about-inset: clamp(0px, 18%, 205px); }
/* intro: centred pill, single-line title and opening lines inset from the left */
header.top .hero { display: block; padding: clamp(2rem, 5vw, 3.5rem) 0 0; text-align: center; }
header.top .hero > .eyebrow { margin: 0; }
header.top .hero > h1, header.top .hero > p { margin-left: clamp(0px, 18%, 205px); margin-right: 0; text-align: left; }
header.top .hero > h1 { max-width: none; margin-top: clamp(1.5rem, 3.5vw, 2.5rem); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); font-size: clamp(2.1rem, 4.8vw, 4rem); font-weight: 500; line-height: 1.08; letter-spacing: 0; text-wrap: pretty; }
header.top .hero > p { max-width: 62ch; margin-top: 0; margin-bottom: 0; font-size: 1.0625rem; line-height: 1.7; color: var(--ezz-muted); text-wrap: pretty; }
header.top .hero > p:first-of-type { max-width: 40ch; margin-bottom: clamp(1.25rem, 2.5vw, 2rem); font-size: clamp(1.3rem, 2.3vw, 1.85rem); font-weight: 400; line-height: 1.3; letter-spacing: -0.005em; color: var(--ezz-ink); }
header.top ~ main { padding-top: clamp(4rem, 9vw, 8rem); }

/* the four topics: a label-and-text row, the dark statement panel, then two soft cards */
header.top ~ main:not(:has(.cred-card)) .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; columns: auto; margin: 0; padding: 0; }
header.top ~ main:not(:has(.cred-card)) .about-card { margin: 0; border: 0; box-shadow: none; break-inside: auto; }
header.top ~ main:not(:has(.cred-card)) .about-card > h2 { margin: 0; font-weight: 500; letter-spacing: -0.025em; text-wrap: balance; }
header.top ~ main:not(:has(.cred-card)) .about-card > p { margin: 0 0 14px; font-size: 1rem; line-height: 1.7; color: var(--ezz-muted); }
header.top ~ main:not(:has(.cred-card)) .about-card > p:last-child { margin-bottom: 0; }
/* 1: label on the left, text on the right, a soft line above (it fades out at both ends) */
header.top ~ main:not(:has(.cred-card)) .about-card:first-child {
  grid-column: 1 / -1; display: grid; grid-template-columns: var(--ezz-about-inset) minmax(0, 4fr) minmax(0, 7fr); column-gap: 0; align-items: start;
  padding: clamp(2rem, 4vw, 3rem) 0 0; border-radius: 0;
  background: linear-gradient(90deg, transparent, var(--ezz-line) 12%, var(--ezz-line) 88%, transparent) 0 0 / 100% 1px no-repeat;
}
header.top ~ main:not(:has(.cred-card)) .about-card:first-child > h2 { grid-column: 2; grid-row: 1 / span 6; padding-right: 2rem; font-size: clamp(1.4rem, 2.3vw, 1.75rem); line-height: 1.15; color: var(--ezz-ink); }
header.top ~ main:not(:has(.cred-card)) .about-card:first-child > p { grid-column: 3; }
/* its loose closing line is the label of the dark panel under it */
header.top ~ main:not(:has(.cred-card)) .about-card:first-child > p:last-child {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: clamp(4rem, 9vw, 8rem);
  font-size: 14px; font-weight: 500; line-height: 16px; color: var(--ezz-ink-2);
}
header.top ~ main:not(:has(.cred-card)) .about-card:first-child > p:last-child::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 3px;
  background: var(--ezz-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4.4 8.3l2.3 2.3 4.9-5.2' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
/* 2: the licences statement on a dark panel, its two paragraphs side by side */
header.top ~ main:not(:has(.cred-card)) .about-card:nth-child(2) {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4.5rem);
  padding: clamp(1.75rem, 5vw, 4.5rem); border-radius: 24px; background: var(--ezz-ink);
}
header.top ~ main:not(:has(.cred-card)) .about-card:nth-child(2) > h2 { grid-column: 1 / -1; max-width: 34em; margin-bottom: clamp(2rem, 5vw, 4rem); font-size: clamp(1.12rem, 2.1vw, 1.7rem); font-weight: 400; line-height: 1.32; letter-spacing: -0.02em; color: #FFFFFF; text-wrap: pretty; }
header.top ~ main:not(:has(.cred-card)) .about-card:nth-child(2) > p { margin: 0; font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, 0.76); }
/* 3 and 4: soft cards, a small mark on top, title and text at the bottom */
header.top ~ main:not(:has(.cred-card)) .about-card:nth-child(n+3) {
  position: relative; display: flex; flex-direction: column; justify-content: flex-start; min-height: clamp(260px, 28vw, 340px);
  padding: calc(clamp(1.5rem, 3vw, 2.25rem) + 48px + clamp(2rem, 7vw, 5.5rem)) clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.25rem); border-radius: 24px; background: #F6F8FA;
}
header.top ~ main:not(:has(.cred-card)) .about-card:nth-child(n+3)::before {
  content: ""; position: absolute; left: clamp(1.5rem, 3vw, 2.25rem); top: clamp(1.5rem, 3vw, 2.25rem); width: 48px; height: 48px; border-radius: 14px;
  background: #FFFFFF center / 24px no-repeat; box-shadow: 0 1px 2px rgba(15, 42, 68, 0.06);
}
header.top ~ main:not(:has(.cred-card)) .about-card:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2301696F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7.5 2.8v5.6c0 4.5-3 8-7.5 9.6-4.5-1.6-7.5-5.1-7.5-9.6V5.8L12 3z'/%3E%3Cpath d='M8.8 12.2l2.3 2.3 4.2-4.6'/%3E%3C/svg%3E"); }
header.top ~ main:not(:has(.cred-card)) .about-card:nth-child(4)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2301696F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5c0 4.1-3.6 7.5-8 7.5-1.2 0-2.3-.2-3.3-.7L4 19.5l1.3-3.6c-.8-1.3-1.3-2.800-1.3-4.400C4 7.400 7.600 4 12 4s8 3.400 8 7.500z'/%3E%3Cpath d='M8.500 11.500h.01M12 11.500h.01M15.500 11.500h.01'/%3E%3C/svg%3E"); }
header.top ~ main:not(:has(.cred-card)) .about-card:nth-child(n+3) > h2 { margin-bottom: 10px; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; color: var(--ezz-ink); }
header.top ~ main:not(:has(.cred-card)) .about-card:nth-child(n+3) > p { max-width: 46ch; font-size: 15px; line-height: 1.65; }
/* "Related Specialist Services" is repeated as the heading right under it, so it is kept for readers only */
header.top ~ main:not(:has(.cred-card)) .about-card:last-child > p:last-child:not(:first-of-type) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* closing panel: heading and button on top, the list as hairline cells under it (also on Credentials) */
header.top ~ main .related {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0; margin-top: clamp(1.5rem, 4vw, 3rem); padding: 0; overflow: hidden;
  border: 1px solid var(--ezz-line); border-radius: 28px; background: radial-gradient(70% 120% at 50% 0%, #F1F6F7 0%, #FFFFFF 70%); color: var(--ezz-ink);
}
header.top ~ main .related > div:first-child { display: contents; }
header.top ~ main .related h2 { grid-column: 1; grid-row: 1; margin: 0; padding: clamp(1.5rem, 3vw, 2.25rem); font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.025em; color: var(--ezz-ink); }
header.top ~ main .related > div:last-child { grid-column: 2; grid-row: 1; padding: 0 clamp(1.5rem, 3vw, 2.25rem) 0 0; }
header.top ~ main .related ul { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0; columns: auto; margin: 0; padding: 0; overflow: hidden; list-style: none; border-top: 1px solid var(--ezz-line); background: #FFFFFF; }
header.top ~ main .related li { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: 1px 1px 0 var(--ezz-line); font-size: 16px; font-weight: 500; line-height: 24px; color: var(--ezz-ink); }
header.top ~ main .related li:not(:has(a)) { padding: 22px clamp(1.25rem, 3vw, 2.25rem); }
header.top ~ main .related li > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px clamp(1.25rem, 3vw, 2.25rem); color: var(--ezz-ink); text-decoration: none; transition: background-color 0.2s ease, color 0.2s ease; }
header.top ~ main .related li > a::after {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 4px;
  background: var(--ezz-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M7 13l6-6m0 0H8.2M13 7v4.8' stroke='%230F2A44' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
header.top ~ main .related li > a:hover { background-color: #F7F9FA; color: var(--ezz-accent); }
@media (max-width: 760px) {
  header.top ~ main { --ezz-about-inset: 0px; }
  header.top .hero > h1, header.top .hero > p { margin-left: 0; }
  header.top .hero > h1 { margin-top: clamp(1.75rem, 6vw, 2.5rem); font-size: clamp(2.2rem, 9vw, 3rem); }
  header.top ~ main:not(:has(.cred-card)) .grid { grid-template-columns: minmax(0, 1fr); }
  header.top ~ main:not(:has(.cred-card)) .about-card:first-child { grid-template-columns: minmax(0, 1fr); }
  header.top ~ main:not(:has(.cred-card)) .about-card:first-child > h2 { grid-column: 1; grid-row: auto; margin-bottom: 14px; padding-right: 0; }
  header.top ~ main:not(:has(.cred-card)) .about-card:first-child > p { grid-column: 1; }
  header.top ~ main:not(:has(.cred-card)) .about-card:nth-child(2) { grid-template-columns: minmax(0, 1fr); border-radius: 20px; }
  header.top ~ main:not(:has(.cred-card)) .about-card:nth-child(2) > p + p { margin-top: 14px; }
  header.top ~ main:not(:has(.cred-card)) .about-card:nth-child(n+3) { min-height: 0; border-radius: 20px; }
  header.top ~ main .related { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
  header.top ~ main .related h2 { padding-bottom: 0; }
  header.top ~ main .related > div:last-child { grid-column: 1; grid-row: 2; padding: 18px clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.25rem); }
  header.top ~ main .related ul { grid-row: 3; }
}
header.top ~ main .cred-company { margin-top: 16px; }
