/* Tommy Ung & Partners PLT — site stylesheet (v2)
   Layout: navy hero with a "lens" graphic (rings over rising bars), colour-blocked
   service panels, and a quarter-circle corner as the recurring brand shape. Single theme by design. */

:root {
  --navy: #071a33;
  --navy-2: #0d2a52;
  --blue: #2463eb;
  --teal: #14c8b4;
  --teal-ink: #0a7d74;
  --teal-wash: #e3f8f5;
  --ink: #17202b;
  --slate: #4b5768;
  --paper: #ffffff;
  --mist: #f1f5fa;
  --line: #d8dfe9;
  --warn-bg: #fff6dc;
  --warn-line: #c98a00;
  --warn-ink: #5c4300;
  --error: #b3261e;

  --font-display: "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.875rem, 1.3rem + 2vw, 2.75rem);
  --step-4: clamp(2.5rem, 1.2rem + 5.4vw, 4.75rem);

  --gutter: 20px;
  --max: 1180px;
  --corner: 44px;
  --grad: linear-gradient(120deg, var(--teal) 0%, #4aa8ff 100%);
  --rings: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' fill='none' stroke='%2314c8b4'%3E%3Ccircle cx='300' cy='300' r='290' stroke-opacity='.18'/%3E%3Ccircle cx='300' cy='300' r='230' stroke-opacity='.26'/%3E%3Ccircle cx='300' cy='300' r='170' stroke-opacity='.34'/%3E%3Ccircle cx='300' cy='300' r='110' stroke-opacity='.45' stroke-width='2'/%3E%3Ccircle cx='300' cy='300' r='50' stroke-opacity='.6' stroke-width='2'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; max-width: 66ch; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.on-navy :focus-visible { outline-color: var(--teal); }
.on-navy h2, .on-navy h3 { color: var(--paper); }
.on-navy p { color: #c3cfdf; }
.on-navy a { color: var(--teal); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--paper); color: var(--navy); padding: 12px 16px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

.eyebrow { font-family: var(--font-display); font-size: var(--step--1); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-ink); margin: 0; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--grad); flex: none; }
.on-navy .eyebrow { color: var(--teal); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.lead { font-size: var(--step-1); color: var(--slate); line-height: 1.55; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ico { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico-badge { display: inline-grid; place-items: center; width: 54px; height: 54px; flex: none; background: var(--teal-wash); color: var(--teal-ink); border-radius: 0 0 18px 0; }
.on-navy .ico-badge { background: rgba(20, 200, 180, 0.14); color: var(--teal); }

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,0.1); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; background: var(--grad); color: var(--navy); font-family: var(--font-display); font-weight: 800; font-size: 0.8125rem; border-radius: 0 0 16px 0; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; line-height: 1.2; color: var(--paper); }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.6875rem; color: #9db0c8; letter-spacing: 0.12em; }
.nav-toggle { display: none; font: inherit; font-family: var(--font-display); font-weight: 700; font-size: var(--step--1); background: none; border: 1px solid rgba(255,255,255,0.5); color: var(--paper); padding: 9px 14px; cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; }
.site-nav a { display: block; padding: 9px 0; text-decoration: none; color: #dbe4f0; font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.site-nav a:hover { color: var(--paper); border-bottom-color: rgba(255,255,255,0.4); }
.site-nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--teal); }
.site-nav li:last-child a { background: var(--teal); color: var(--navy); padding: 9px 18px; border: 0; border-radius: 0 0 14px 0; font-weight: 800; }
.site-nav li:last-child a:hover { background: var(--paper); }
@media (max-width: 900px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.open { display: block; }
  .site-nav { width: 100%; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .site-nav li:last-child a { margin-top: 12px; text-align: center; }
}

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 0.9375rem; padding: 14px 24px; text-decoration: none; border: 2px solid var(--navy); cursor: pointer; background: var(--navy); color: var(--paper); line-height: 1.2; border-radius: 0 0 18px 0; transition: background .15s, color .15s, transform .15s, border-color .15s; }
.btn .ico { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .15s; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); color: var(--paper); }
.btn:hover .ico { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--mist); color: var(--navy); }
.on-navy .btn { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.on-navy .btn:hover { background: var(--paper); border-color: var(--paper); color: var(--navy); }
.on-navy .btn.ghost { background: transparent; border-color: rgba(255,255,255,0.6); color: var(--paper); }
.on-navy .btn.ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--paper); color: var(--paper); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; text-decoration: none; }
.more .ico { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .15s; }
.more:hover .ico { transform: translateX(4px); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #dfe7f2; background: radial-gradient(1100px 600px at 85% 10%, #123a78 0%, rgba(18,58,120,0) 60%), linear-gradient(160deg, #071a33 0%, #0a2244 60%, #071a33 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px 48px; align-items: center; padding-block: clamp(44px, 6vw, 84px) clamp(36px, 5vw, 64px); }
.hero h1 { color: var(--paper); }
.hero .lead { color: #c6d2e3; max-width: 54ch; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: var(--step--1); color: var(--paper); border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.06); padding: 7px 14px 7px 10px; border-radius: 999px; margin: 0; }
.pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(20,200,180,0.25); }
.hero-visual { position: relative; min-width: 0; max-width: 560px; width: 100%; justify-self: center; }
.hero-art { display: block; width: 100%; height: auto; }
.spin { transform-origin: 300px 290px; animation: spin 60s linear infinite; }
.spin.rev { animation-duration: 90s; animation-direction: reverse; }
.bar { transform-origin: 0 470px; animation: grow 1s cubic-bezier(.2,.8,.2,1) both; }
.bar.b2 { animation-delay: .08s; } .bar.b3 { animation-delay: .16s; } .bar.b4 { animation-delay: .24s; } .bar.b5 { animation-delay: .32s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes grow { from { transform: scaleY(0.1); } to { transform: scaleY(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.chip { position: absolute; display: flex; align-items: center; gap: 12px; background: var(--paper); color: var(--navy); padding: 12px 16px; border-radius: 0 0 20px 0; box-shadow: 0 18px 40px rgba(2,10,24,0.45); font-family: var(--font-display); font-weight: 800; font-size: 0.9375rem; line-height: 1.25; animation: float 7s ease-in-out infinite; }
.chip small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.75rem; color: var(--slate); letter-spacing: 0.02em; }
.chip .ico { color: var(--teal-ink); }
.chip.c1 { left: 0; top: 14%; }
.chip.c2 { right: 0; bottom: 12%; animation-delay: -3.5s; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 420px; }
}
@media (max-width: 480px) { .chip { font-size: 0.8125rem; padding: 9px 12px; } }

.factband { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,0.16); }
.factband > div { padding: 22px 20px 26px 0; display: flex; flex-direction: column-reverse; gap: 2px; }
.factband > div + div { padding-left: 20px; border-left: 1px solid rgba(255,255,255,0.16); }
.factband dt { font-size: var(--step--1); color: #9db0c8; }
.factband dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); color: var(--paper); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .factband { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .factband > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .factband > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.16); }
}

/* ---------- inner-page masthead ---------- */
.masthead { position: relative; overflow: hidden; color: #dfe7f2; background: var(--rings) no-repeat right -160px center / 620px, linear-gradient(160deg, #071a33 0%, #0d2a52 100%); }
.masthead .wrap { padding-block: clamp(52px, 7vw, 96px); }
.masthead h1 { color: var(--paper); font-size: clamp(2.25rem, 1.3rem + 4vw, 3.75rem); max-width: 18ch; }
.masthead .lead { color: #c6d2e3; }
.masthead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--grad); }
@media (max-width: 760px) { .masthead { background-position: right -320px center, 0 0; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section.tint { background: var(--mist); }
.section.dark { background: var(--rings) no-repeat left -220px bottom -260px / 640px, var(--navy); }
.sec-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 28px 72px; }
.split > * { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* two feature panels */
.features { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 900px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { position: relative; overflow: hidden; padding: clamp(26px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 20px; border-radius: 0 0 var(--corner) 0; min-width: 0; }
.feature.audit { background: var(--rings) no-repeat right -200px top -200px / 520px, linear-gradient(150deg, #071a33, #123a78); }
.feature.tax { background: var(--teal-wash); border: 1px solid #bfeee7; }
.feature h3 { font-size: var(--step-2); font-weight: 800; }
.linklist { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.linklist li { border-top: 1px solid rgba(255,255,255,0.16); }
.feature.tax .linklist li { border-top-color: #bfeee7; }
.linklist a, .linklist span.item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; text-decoration: none; font-family: var(--font-display); font-weight: 700; color: var(--paper); transition: padding .15s, color .15s; }
.feature.tax .linklist .item { color: var(--navy); }
.linklist a:hover { padding-left: 8px; color: var(--teal); }
.linklist small { font-family: var(--font-body); font-weight: 400; font-size: 0.8125rem; color: #9db0c8; white-space: nowrap; }
.linklist .ico { width: 18px; height: 18px; stroke-width: 2.2; }
.feature .more { margin-top: auto; padding-top: 6px; }

/* assurance meter */
.meter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .meter { grid-template-columns: minmax(0, 1fr); } }
.gauge { background: var(--paper); border: 1px solid var(--line); border-radius: 0 0 var(--corner) 0; padding: 26px; display: flex; flex-direction: column; gap: 12px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.gauge:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(7,26,51,0.12); border-color: var(--teal); }
.gauge p { color: var(--slate); font-size: 1rem; }
.gauge .level { font-family: var(--font-display); font-weight: 800; font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-ink); }
.track { height: 12px; background: var(--mist); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.track i { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.fill-0 { width: 0; } .fill-50 { width: 50%; } .fill-90 { width: 90%; }

/* process timeline */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 28px; right: 28px; top: 28px; height: 2px; background: linear-gradient(90deg, var(--teal), var(--blue)); }
.timeline li { counter-increment: step; position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 76px; }
.timeline li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 56px; height: 56px; display: grid; place-items: center; background: var(--navy); color: var(--paper); border: 3px solid var(--teal); border-radius: 50%; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.timeline p { color: var(--slate); font-size: 1rem; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .timeline::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; background: linear-gradient(180deg, var(--teal), var(--blue)); }
  .timeline li { padding: 4px 0 0 80px; min-height: 56px; }
}

/* card grids */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .cards.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards, .cards.c4 { grid-template-columns: minmax(0, 1fr); } }
.cards > li { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 0 0 var(--corner) 0; padding: 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cards > li:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(7,26,51,0.12); border-top-color: var(--teal); }
.cards p { color: var(--slate); font-size: 1rem; }
.dark .cards > li { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); border-top-color: var(--teal); }
.dark .cards > li:hover { background: rgba(255,255,255,0.09); box-shadow: none; }
.dark .cards p { color: #c3cfdf; }

.sectors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .sectors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sectors li { display: flex; flex-direction: column; gap: 12px; padding: 20px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 0 0 22px 0; font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; color: var(--navy); line-height: 1.3; transition: background .2s, color .2s, border-color .2s; }
.sectors .ico { color: var(--teal-ink); width: 30px; height: 30px; transition: color .2s; }
.sectors li:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.sectors li:hover .ico { color: var(--teal); }

.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 48px; }
.pairs > div { display: flex; flex-direction: column; gap: 6px; border-top: 3px solid var(--teal); padding-top: 14px; }
.pairs p { color: var(--slate); font-size: 1rem; }
@media (max-width: 640px) { .pairs { grid-template-columns: minmax(0, 1fr); } }
.note { border-left: 4px solid var(--teal); background: var(--teal-wash); padding: 16px 20px; color: var(--ink); border-radius: 0 0 22px 0; }
.small { font-size: var(--step--1); color: var(--slate); }

/* people */
.profiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.profile { display: flex; flex-direction: column; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 0 0 var(--corner) 0; padding: 28px; }
.avatar { width: 96px; height: 96px; display: grid; place-items: center; background: linear-gradient(140deg, var(--navy), #1b4fa8); color: var(--paper); font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; letter-spacing: 0.02em; border-radius: 50%; box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--teal); margin: 6px; }
.profile .role { font-family: var(--font-display); font-weight: 700; color: var(--teal-ink); font-size: 0.9375rem; }
.profile p { color: var(--slate); font-size: 1rem; }

/* CTA */
.cta { position: relative; overflow: hidden; color: #dfe7f2; background: var(--rings) no-repeat right -140px center / 560px, linear-gradient(120deg, #0d2a52, #071a33); }
.cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px 48px; padding-block: clamp(52px, 7vw, 88px); }
.cta h2 { max-width: 18ch; }

/* ---------- service detail ---------- */
.service { padding-block: 48px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.service:first-of-type { padding-top: 0; }
.service > h2 { font-size: var(--step-2); margin-bottom: 10px; display: flex; align-items: center; gap: 16px; }
.service > .lead { margin-bottom: 24px; font-size: 1.125rem; }
.facts { margin: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); border-top: 2px solid var(--navy); }
.facts dt, .facts dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { font-family: var(--font-display); font-weight: 800; font-size: var(--step--1); color: var(--navy); letter-spacing: 0.05em; text-transform: uppercase; padding-right: 24px; padding-top: 17px; }
.facts dd { color: var(--slate); }
.facts dd p + p { margin-top: 10px; }
@media (max-width: 640px) { .facts { grid-template-columns: minmax(0, 1fr); } .facts dt { border-bottom: 0; padding-bottom: 0; } .facts dd { padding-top: 6px; } }
.table-scroll { overflow-x: auto; }
table.compare { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 1rem; background: var(--paper); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-display); font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper); background: var(--navy); }
.compare tbody th { font-family: var(--font-display); color: var(--navy); font-weight: 800; }
.compare td { color: var(--slate); }
.anchor-nav { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.anchor-nav a { display: block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; transition: background .15s, color .15s, border-color .15s; }
.anchor-nav a:hover { background: var(--navy); border-color: var(--navy); color: var(--paper); }

/* ---------- placeholders awaiting confirmation ---------- */
.tbc { background: var(--warn-bg); color: var(--warn-ink); border: 1px dashed var(--warn-line); padding: 1px 7px; font-size: 0.9em; border-radius: 2px; font-family: var(--font-body); font-weight: 400; }
.on-navy .tbc, .site-footer .tbc { background: transparent; color: #f2d58a; border-color: #b9973f; }
.draft-banner { background: var(--warn-bg); border: 1px dashed var(--warn-line); color: var(--warn-ink); padding: 14px 16px; max-width: none; }

/* ---------- forms ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px 64px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-card { background: var(--rings) no-repeat right -220px bottom -220px / 480px, var(--navy); color: #dfe7f2; padding: 32px; border-radius: 0 0 var(--corner) 0; }
.details { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.details > div { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 14px; }
.details .ico { color: var(--teal); grid-row: span 2; margin-top: 2px; }
.details dt { font-family: var(--font-display); font-weight: 800; font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: #9db0c8; }
.details dd { margin: 0; color: var(--paper); overflow-wrap: anywhere; grid-column: 2; }
form.enquiry { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 520px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
label { font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; color: var(--navy); }
.opt { font-weight: 400; color: var(--slate); font-family: var(--font-body); }
input[type="text"], input[type="email"], input[type="tel"], textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid #8792a3; padding: 12px 13px; width: 100%; border-radius: 3px; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 150px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36,99,235,0.3); }
[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.err { color: var(--error); font-size: var(--step--1); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--teal); background: var(--mist); }
.status.bad { border-left-color: var(--error); }
.status:empty { display: none; }

/* ---------- legal pages ---------- */
.prose { display: flex; flex-direction: column; gap: 16px; max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin-top: 20px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose p, .prose li { color: var(--slate); }

/* ---------- footer ---------- */
.site-footer { background: #04101f; color: #b3c0d2; font-size: 0.9375rem; border-top: 5px solid transparent; border-image: var(--grad) 1; }
.site-footer .wrap { padding-block: 52px 28px; display: flex; flex-direction: column; gap: 32px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px 48px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer h2 { font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper); margin-bottom: 12px; font-weight: 800; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: #dfe7f2; text-decoration: none; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }
.site-footer p { max-width: 52ch; overflow-wrap: anywhere; }
.foot-legal { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: var(--step--1); }

/* ---------- motion ---------- */
.hero-copy > * { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; } .hero-copy > :nth-child(4) { animation-delay: .24s; }
.in { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.in.d1 { animation-delay: .08s; } .in.d2 { animation-delay: .16s; } .in.d3 { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ================= v3 layer: immersive hero, editorial type, pills, marquee ================= */
:root { --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif; --r: 22px; --amber: #ffb84d; }
h1 em, h2 em, .statement em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
h2 em { color: var(--teal-ink); font-size: 1.12em; }
.on-navy h2 em { color: var(--teal); }

.btn, .site-nav li:last-child a { border-radius: 999px; }
.brand-mark { border-radius: 12px; }
.ico-badge { border-radius: 14px; }
.feature, .gauge, .cards > li, .profile, .contact-card, .note { border-radius: var(--r); }
.cards > li { border-top-width: 1px; }
.cards > li:hover { border-color: var(--teal); }
.site-header { background: rgba(7, 26, 51, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* hero */
.hero { background: #050f20; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #050f20 0%, rgba(5,15,32,0.92) 34%, rgba(5,15,32,0.25) 70%, rgba(5,15,32,0) 100%), linear-gradient(0deg, #050f20 0%, rgba(5,15,32,0) 30%); }
.no-canvas .hero { background: radial-gradient(900px 520px at 82% 30%, #1a4fb0 0%, rgba(26,79,176,0) 62%), radial-gradient(600px 400px at 60% 90%, rgba(20,200,180,.35) 0%, rgba(20,200,180,0) 60%), #050f20; }
.hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: clamp(64px, 10vw, 140px) clamp(48px, 7vw, 96px); }
.hero-copy { max-width: 780px; gap: 30px; }
.hero h1 { font-size: clamp(2.875rem, 1rem + 7.6vw, 6.5rem); line-height: 0.98; }
.hero h1 em { display: block; font-size: 1.08em; color: var(--teal); line-height: 1.05; padding-bottom: 0.08em; }
.hero .lead { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); }
.factband { border-top: 0; gap: 14px; padding-bottom: clamp(28px, 4vw, 48px); }
.factband > div, .factband > div + div, .factband > div:nth-child(n+3) { border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 18px; padding: 18px 20px; }

/* marquee */
.marquee { background: var(--teal); color: var(--navy); overflow: hidden; border-block: 1px solid rgba(7,26,51,0.15); }
.marquee-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { list-style: none; margin: 0; padding: 14px 0; display: flex; flex: none; }
.marquee li { font-family: var(--font-display); font-weight: 800; font-size: 0.9375rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; padding-inline: 22px; display: flex; align-items: center; gap: 44px; }
.marquee li::after { content: ""; width: 8px; height: 8px; background: var(--navy); border-radius: 50%; }
@keyframes slide { to { transform: translateX(-50%); } }

/* statement */
.statement { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: clamp(1.75rem, 1rem + 3.2vw, 3.5rem); line-height: 1.14; letter-spacing: -0.03em; max-width: 22ch; margin: 0; text-wrap: balance; }
.statement em { color: var(--teal-ink); font-size: 1.1em; }
.statement-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px 72px; align-items: end; }
@media (max-width: 900px) { .statement-grid { grid-template-columns: minmax(0, 1fr); } }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.bento > * { min-width: 0; }
.bento .feature.audit { grid-column: span 4; grid-row: span 2; }
.bento .feature.tax { grid-column: span 2; }
.tile { grid-column: span 2; border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 12px; justify-content: space-between; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(7,26,51,0.16); }
.tile.amber { background: var(--amber); color: var(--navy); }
.tile.amber h3 { font-size: var(--step-2); font-weight: 800; }
.tile.amber .ico { width: 34px; height: 34px; align-self: flex-end; stroke-width: 2; transition: transform .2s; }
.tile.amber:hover .ico { transform: translate(4px, -4px); }
@media (max-width: 900px) { .bento { grid-template-columns: minmax(0, 1fr); } .bento .feature.audit, .bento .feature.tax, .tile { grid-column: auto; grid-row: auto; } }

/* ================= v4 layer: Big 4 homepage conventions ================= */
.util { background: var(--navy); font-size: 0.8125rem; }
.util .wrap { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px 24px; padding-block: 7px; }
.util a, .util span { color: #c6d2e3; text-decoration: none; font-family: var(--font-display); font-weight: 600; }
.util a:hover { color: var(--paper); text-decoration: underline; }
.site-header { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--line); box-shadow: 0 2px 14px rgba(7,26,51,0.06); }
.site-header > .wrap { padding-block: 14px; }
.brand, .brand-name { color: var(--navy); }
.brand-name small { color: var(--slate); }
.brand-mark { background: var(--navy); color: var(--paper); border-radius: 0; }
.nav-toggle { border-color: var(--navy); color: var(--navy); }
.site-nav a { color: var(--ink); }
.site-nav a:hover { color: var(--navy); border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--teal-ink); }
.site-nav li:last-child a { background: var(--navy); color: var(--paper); }
.site-nav li:last-child a:hover { background: var(--teal-ink); color: var(--paper); }
@media (max-width: 900px) { .site-nav a { border-bottom-color: var(--line); } }

.hero-grid { padding-block: clamp(72px, 10vw, 150px) clamp(120px, 14vw, 200px); }
.hero h1 { font-size: clamp(2.75rem, 1rem + 6.4vw, 5.5rem); }
.hero h1 em { font-family: var(--font-display); font-style: normal; font-weight: 800; letter-spacing: -0.035em; font-size: 1em; }
h2 em { font-family: inherit; font-style: normal; font-weight: inherit; font-size: 1em; color: inherit; }

.quick { position: relative; z-index: 2; margin-top: clamp(-120px, -9vw, -72px); }
.quick ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; box-shadow: 0 24px 50px rgba(4,12,26,0.35); }
.quick a { display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 210px; padding: 28px 24px 24px; background: #0a2350; color: var(--paper); text-decoration: none; transition: background .2s; }
.quick a:hover { background: #123a78; color: var(--paper); }
.quick h3 { color: var(--paper); font-size: 1.1875rem; border-left: 3px solid var(--teal); padding-left: 12px; }
.quick p { color: #b9c7da; font-size: 0.9375rem; padding-left: 15px; }
.quick .more { margin-top: auto; color: var(--paper); font-size: 0.9375rem; padding-left: 15px; }
@media (max-width: 900px) { .quick ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .quick a { min-height: 170px; } }
@media (max-width: 520px) { .quick ul { grid-template-columns: minmax(0, 1fr); } .quick a { min-height: 0; } }

.art { position: relative; overflow: hidden; background-color: #071a33; }
.art::after { content: ""; position: absolute; width: 38%; height: 46%; background: radial-gradient(rgba(255,255,255,0.42) 1.2px, transparent 1.7px) 0 0 / 12px 12px; }
.art.a { background-image: linear-gradient(rgba(20,200,180,.9), rgba(20,200,180,.06)), linear-gradient(rgba(36,99,235,.95), rgba(36,99,235,.1)), linear-gradient(rgba(74,168,255,.85), rgba(74,168,255,.06)), linear-gradient(rgba(20,200,180,.7), rgba(20,200,180,.04)), linear-gradient(rgba(255,184,77,.9), rgba(255,184,77,.08)), radial-gradient(120% 120% at 80% 0%, #1a4fb0, #071a33 70%); background-repeat: no-repeat; background-size: 11% 52%, 14% 78%, 10% 40%, 13% 64%, 7% 30%, auto; background-position: 46% 100%, 60% 100%, 73% 100%, 86% 100%, 96% 100%, 0 0; }
.art.a::after { left: 6%; top: 12%; }
.art.b { background-image: linear-gradient(rgba(36,99,235,.95), rgba(36,99,235,.08)), linear-gradient(rgba(20,200,180,.9), rgba(20,200,180,.06)), linear-gradient(rgba(74,168,255,.8), rgba(74,168,255,.05)), linear-gradient(rgba(255,184,77,.9), rgba(255,184,77,.08)), linear-gradient(rgba(20,200,180,.75), rgba(20,200,180,.05)), radial-gradient(120% 120% at 10% 0%, #0f6a7a, #071a33 70%); background-repeat: no-repeat; background-size: 13% 70%, 10% 44%, 15% 86%, 8% 34%, 12% 58%, auto; background-position: 6% 100%, 20% 100%, 34% 100%, 47% 100%, 58% 100%, 0 0; }
.art.b::after { right: 5%; top: 14%; }
.art.c { background-image: linear-gradient(rgba(74,168,255,.9), rgba(74,168,255,.06)), linear-gradient(rgba(20,200,180,.9), rgba(20,200,180,.06)), linear-gradient(rgba(36,99,235,.95), rgba(36,99,235,.1)), linear-gradient(rgba(255,184,77,.85), rgba(255,184,77,.06)), radial-gradient(120% 120% at 50% 0%, #123a78, #071a33 70%); background-repeat: no-repeat; background-size: 12% 36%, 12% 54%, 12% 72%, 12% 90%, auto; background-position: 30% 100%, 46% 100%, 62% 100%, 78% 100%, 0 0; }
.art.c::after { left: 4%; top: 10%; width: 22%; }

.svc2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 760px) { .svc2 { grid-template-columns: minmax(0, 1fr); } }
.icard { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: inherit; min-width: 0; transition: box-shadow .2s, transform .2s; }
.icard:hover { box-shadow: 0 20px 44px rgba(7,26,51,0.14); transform: translateY(-4px); color: inherit; }
.icard .art { height: 230px; transition: filter .3s; }
.icard:hover .art { filter: brightness(1.15) saturate(1.1); }
.icard-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.icard-body p { color: var(--slate); }
.icard h3 { font-size: var(--step-2); font-weight: 800; }
.icard ul { margin: 0; padding-left: 20px; color: var(--slate); display: flex; flex-direction: column; gap: 4px; }
.icard .more { margin-top: auto; padding-top: 8px; color: var(--teal-ink); }
.tag { font-family: var(--font-display); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-ink); }
.hl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 900px) { .hl { grid-template-columns: minmax(0, 1fr); } }
.hl .icard .art { height: 170px; }
.hl .icard h3 { font-size: var(--step-1); }
.promo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
@media (max-width: 760px) { .promo { grid-template-columns: minmax(0, 1fr); } }
.promo > div { border-top: 3px solid var(--navy); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.promo p { color: var(--slate); }
.promo .more { color: var(--teal-ink); margin-top: auto; }
.sec-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }

/* logo */
.brand-logo { height: 46px; width: auto; display: block; }
.foot-logo { height: 54px; width: auto; display: block; margin-bottom: 4px; }

/* ================= v5 layer: services menu, hub, pillar pages ================= */
.head-row { position: relative; }
.site-nav > ul > li.nav-cta > a { background: var(--navy); color: var(--paper); padding: 9px 18px; border: 0; border-radius: 999px; font-weight: 800; }
.site-nav > ul > li.nav-cta > a:hover { background: var(--teal-ink); color: var(--paper); }
.menu-row { display: flex; align-items: center; gap: 2px; }
.menu-btn { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--navy); display: grid; place-items: center; border-radius: 4px; }
.menu-btn .ico { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .2s; }
.has-menu.open .menu-btn .ico { transform: rotate(180deg); }
.mega { display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: 100%; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--teal); box-shadow: 0 30px 60px rgba(7,26,51,0.2); padding: 30px 32px 22px; z-index: 40; }
.has-menu.open .mega { display: block; animation: rise .25s ease both; }
@media (hover: hover) and (min-width: 901px) { .has-menu:hover .mega { display: block; } }
.has-menu.shut .mega { display: none !important; }
.mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 32px; }
.site-nav .mega ul { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
.site-nav .mega li a, .site-nav .mega li:last-child a { background: none; color: var(--slate); font-family: var(--font-body); font-weight: 400; font-size: 0.9375rem; padding: 7px 0; margin: 0; border: 0; border-radius: 0; text-align: left; }
.site-nav .mega li a:hover, .site-nav .mega li:last-child a:hover { background: none; color: var(--teal-ink); text-decoration: underline; }
.site-nav .mega .mega-head { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; color: var(--navy); padding: 0 0 10px; margin-bottom: 6px; border-bottom: 2px solid var(--navy); }
.site-nav .mega .mega-head:hover { color: var(--teal-ink); border-bottom-color: var(--teal-ink); }
.mega-head .ico { width: 22px; height: 22px; color: var(--teal-ink); }
.site-nav .mega .mega-all { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); width: 100%; font-weight: 800; color: var(--teal-ink); }
.mega-all .ico { width: 18px; height: 18px; stroke-width: 2.2; }
@media (max-width: 900px) {
  .mega { position: static; box-shadow: none; border: 0; border-left: 3px solid var(--teal); padding: 6px 0 12px 16px; }
  .mega-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .menu-row { justify-content: space-between; border-bottom: 1px solid var(--line); }
  .menu-row a { flex: 1; border-bottom: 0 !important; }
  .menu-btn { padding: 12px; }
  .site-nav > ul > li.nav-cta > a { margin-top: 12px; text-align: center; }
  .site-nav .mega .mega-head { border-bottom-width: 1px; }
}

.crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--step--1); color: #9db0c8; }
.crumb a { color: #c6d2e3; }

/* services hub */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1000px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pillars { grid-template-columns: minmax(0, 1fr); } }
.pillar { display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--navy); text-decoration: none; color: inherit; min-width: 0; transition: transform .2s, box-shadow .2s, border-color .2s; }
.pillar:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(7,26,51,0.14); border-top-color: var(--teal); color: inherit; }
.pillar h2 { font-size: var(--step-2); }
.pillar p { color: var(--slate); font-size: 1rem; }
.pillar ul { margin: 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; font-size: 0.9375rem; color: var(--ink); }
.pillar .more { margin-top: auto; padding-top: 10px; color: var(--teal-ink); }

.needs { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.needs li { border-bottom: 1px solid var(--line); }
.needs a { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 6px 32px; align-items: center; padding: 18px 12px; text-decoration: none; color: inherit; transition: background .15s, padding .15s; }
.needs a:hover { background: var(--paper); padding-left: 20px; color: inherit; box-shadow: inset 4px 0 0 var(--teal); }
.section:not(.tint) .needs a:hover { background: var(--mist); }
.needs .need { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--navy); }
.needs .ans { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; color: var(--teal-ink); }
.needs .ans .ico { width: 18px; height: 18px; stroke-width: 2.2; margin-left: auto; flex: none; }
.needs .tag { background: var(--navy); color: var(--paper); padding: 3px 9px; flex: none; }
@media (max-width: 700px) { .needs a { grid-template-columns: minmax(0, 1fr); } }

/* pillar pages */
.with-side { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 130px); display: flex; flex-direction: column; gap: 14px; border-left: 3px solid var(--navy); padding-left: 20px; }
.side-title { font-family: var(--font-display); font-weight: 800; font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); }
.side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.side ul a { display: block; padding: 7px 0; text-decoration: none; color: var(--slate); font-size: 0.9375rem; }
.side ul a:hover { color: var(--teal-ink); text-decoration: underline; }
.side .btn { align-self: flex-start; padding: 11px 20px; }
.side-main { min-width: 0; display: flex; flex-direction: column; gap: 44px; }
.side-main .service { padding-block: 0 44px; scroll-margin-top: 140px; }
.side-main .service:last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 900px) { .with-side { grid-template-columns: minmax(0, 1fr); } .side { position: static; } .side ul { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; } }
.insight { background: var(--mist); border-left: 5px solid var(--teal); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px; }
.insight h2 { font-size: var(--step-2); }
.insight p { color: var(--slate); max-width: 70ch; }
.insight .gauge { box-shadow: none; }
.flow { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; counter-reset: f; }
.flow li { counter-increment: f; background: var(--navy); color: #c6d2e3; padding: 16px; font-size: 0.9375rem; display: flex; flex-direction: column; gap: 4px; }
.flow strong { color: var(--paper); font-family: var(--font-display); font-size: 1.0625rem; }
.flow strong::before { content: counter(f) ". "; color: var(--teal); }
@media (max-width: 700px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chip-links { display: flex; flex-wrap: wrap; gap: 12px; }
.chip-link { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; background: var(--paper); border: 1px solid var(--navy); border-radius: 999px; color: var(--navy); text-decoration: none; font-family: var(--font-display); font-weight: 800; transition: background .15s, color .15s; }
.chip-link:hover { background: var(--navy); color: var(--paper); }
.chip-link .ico { width: 18px; height: 18px; stroke-width: 2.2; }
.foot-logo { align-self: flex-start; height: 54px; width: 90px; object-fit: contain; }

/* partner portraits */
.profiles { grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); }
.profile { padding: 0; overflow: hidden; border-radius: 0; gap: 0; }
.profile .portrait { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(0.92); transition: transform .5s ease; }
.profile:hover .portrait { transform: scale(1.03); }
.profile h3 { padding: 22px 24px 0; font-size: var(--step-2); background: var(--paper); position: relative; }
.profile .role { padding: 4px 24px 0; }
.profile p:not(.role) { padding: 12px 24px 0; }
.profile > :last-child { padding-bottom: 26px; }
.profile .quals { font-size: 0.875rem; color: var(--navy); font-family: var(--font-display); font-weight: 600; border-top: 1px solid var(--line); margin: 14px 24px 0; padding: 12px 0 0 !important; }

/* ================= v6 layer: design review refinements (Oct 2026) ================= */
/* header: one row on phones, no utility bar */
.site-header > .wrap { padding-block: 12px; }
.brand-name { white-space: nowrap; }
@media (max-width: 900px) {
  .site-header > .wrap { padding-block: 10px; flex-wrap: wrap; }
  .brand { gap: 10px; min-width: 0; }
  .brand-logo { height: 34px; }
  .brand-name { font-size: 0.9375rem; }
  .nav-toggle { padding: 8px 12px; font-size: 0.875rem; flex: none; }
}
@media (max-width: 560px) { .brand-name small { display: none; } }
@media (max-width: 340px) { .brand-name { font-size: 0.8125rem; } }

/* hero: shorter */
.hero-grid { padding-block: clamp(56px, 7vw, 104px) clamp(104px, 11vw, 150px); }
.hero-copy { gap: 22px; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
@media (max-width: 520px) { .hero-grid { padding-block: 44px 96px; } }

/* inner mastheads: shorter; compact variant for contact and legal pages */
.masthead .wrap { padding-block: clamp(36px, 4.5vw, 64px); }
.masthead h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.25rem); }
.masthead.compact .wrap { padding-block: clamp(24px, 3vw, 40px); gap: 10px; }
.masthead.compact h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
.masthead.compact .lead { font-size: 1.0625rem; }
.masthead.compact .eyebrow { display: none; }

/* highlight cards: photography when supplied, a clean accent otherwise */
.icard .photo { display: block; width: 100%; height: 190px; object-fit: cover; }
.hl .icard { border-top: 4px solid var(--navy); }
.hl .icard:nth-child(2) { border-top-color: var(--teal-ink); }
.hl .icard:nth-child(3) { border-top-color: #2463eb; }
.hl .icard:has(.photo) { border-top: 1px solid var(--line); }

/* homepage partner strip */
.partners-strip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px 56px; align-items: center; }
.partners-strip .more { color: var(--teal-ink); }
.mini-partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mini-partners li { display: flex; gap: 16px; align-items: center; background: var(--paper); border: 1px solid var(--line); padding: 14px; min-width: 0; }
.mini-partners img { width: 84px; height: 105px; object-fit: cover; flex: none; }
.mini-partners h3 { font-size: 1.0625rem; }
.mini-partners .role { font-family: var(--font-display); font-weight: 700; color: var(--teal-ink); font-size: 0.875rem; }
.mini-partners p { color: var(--slate); font-size: 0.9375rem; margin-top: 2px; }
@media (max-width: 900px) { .partners-strip { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .mini-partners { grid-template-columns: minmax(0, 1fr); } .mini-partners img { width: 72px; height: 90px; } }

/* service blocks: two short facts, basis as a footnote */
.side-main .service { padding-block: 0 36px; margin-bottom: 36px; }
.service > .lead { margin-bottom: 18px; font-size: 1.0625rem; }
.svc-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.svc-facts > div { background: var(--mist, #f3f6fa); padding: 18px 20px; border-left: 3px solid var(--teal-ink); }
.svc-facts h3 { font-family: var(--font-display); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.svc-facts p { color: var(--ink); font-size: 0.9875rem; }
.basis { margin-top: 12px; font-size: 0.8125rem; color: var(--slate); }
.basis span { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.6875rem; color: var(--slate); margin-right: 10px; }
@media (max-width: 640px) { .svc-facts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .hero::before { background: linear-gradient(0deg, #050f20 0%, rgba(5,15,32,0.55) 45%, rgba(5,15,32,0.88) 100%), linear-gradient(90deg, rgba(5,15,32,0.9) 0%, rgba(5,15,32,0.5) 100%); }
}
@media (max-width: 520px) {
  .quick a { padding: 18px 20px; gap: 6px; }
  .quick p { font-size: 0.875rem; }
}
.section.cta { padding-block: clamp(44px, 5vw, 72px); }
/* v17: content review */
.svc-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .svc-facts { grid-template-columns: minmax(0, 1fr); } .svc-facts > div { padding: 14px 18px; } }
.pl-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pl-points li { position: relative; padding-left: 26px; color: var(--ink); }
.pl-points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 2px; background: var(--teal-ink); }
.client-types { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.client-types li { border-top: 3px solid var(--navy); padding-top: 14px; color: var(--slate); }
.client-types strong { display: block; color: var(--navy); font-family: var(--font-display); font-weight: 800; margin-bottom: 4px; }
@media (max-width: 640px) { .client-types { grid-template-columns: minmax(0, 1fr); } }
.pairs.three { grid-template-columns: minmax(0, 1fr); gap: 22px; }

/* ================= v18 layer: art direction (logo-derived motif, quieter sections) ================= */
:root { --rings: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Ccircle cx='330' cy='250' r='210' fill='%2314c8b4' fill-opacity='.09'/%3E%3Ccircle cx='330' cy='250' r='210' fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1.5'/%3E%3Crect x='252' y='150' width='14' height='450' fill='%2314c8b4' fill-opacity='.55'/%3E%3C/svg%3E"); --heromark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'%3E%3Ccircle cx='470' cy='330' r='300' fill='%231a4fb0' fill-opacity='.22'/%3E%3Ccircle cx='470' cy='330' r='300' fill='none' stroke='%23ffffff' stroke-opacity='.12' stroke-width='1.5'/%3E%3Ccircle cx='470' cy='330' r='372' fill='none' stroke='%2314c8b4' stroke-opacity='.18' stroke-width='1'/%3E%3Crect x='352' y='190' width='18' height='610' fill='%2314c8b4'/%3E%3C/svg%3E"); }
/* hero: static mark from the logo, kept clear of the text column */
.hero { background: linear-gradient(160deg, #061630 0%, #0a2244 55%, #071a33 100%); }
.hero-mark { position: absolute; inset: 0; z-index: -2; background: var(--heromark) no-repeat right -6% center / auto 128%; }
.hero::before { background: linear-gradient(90deg, #061630 0%, rgba(6,22,48,0.85) 38%, rgba(6,22,48,0) 70%); }
@media (max-width: 760px) { .hero-mark { background-position: right -55% top -10%; background-size: auto 92%; opacity: .7; } }
/* one motif on banners and the contact band, smaller and cropped */
.masthead { background: var(--rings) no-repeat right -40px center / auto 150%, linear-gradient(160deg, #071a33 0%, #0d2a52 100%); }
.cta { background: var(--rings) no-repeat right 4% center / auto 160%, linear-gradient(120deg, #0d2a52, #071a33); }
.contact-card { background: var(--rings) no-repeat right -120px bottom -160px / 420px, var(--navy); }
@media (max-width: 760px) { .masthead { background-position: right -140px center, 0 0; } .cta { background-position: right -160px center, 0 0; } }
/* quieter: no lift-on-hover, lighter shadows */
.pillar:hover, .icard:hover, .gauge:hover, .cards > li:hover, .tile:hover { transform: none; box-shadow: none; }
.pillar:hover, .icard:hover { border-color: var(--navy); }
.quick ul { box-shadow: 0 10px 24px rgba(4,12,26,0.18); }
.site-header { box-shadow: none; }
/* type: the hero headline is the only loud element */
h2 { font-size: clamp(1.625rem, 1.25rem + 1.4vw, 2.25rem); font-weight: 700; letter-spacing: -0.015em; }
.service > h2, .pillar h2, .insight h2, .prose h2 { font-size: 1.375rem; }
.icard h3, .hl .icard h3 { font-size: 1.1875rem; font-weight: 700; }
.cta h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem); }
/* partners on About: two balanced columns */
.profiles { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; gap: 28px; }
@media (max-width: 640px) { .profiles { grid-template-columns: minmax(0, 1fr); max-width: 420px; } }
.profile:hover .portrait { transform: none; }
.hero-mark { background-position: right -24% center; }
@media (max-width: 1100px) { .hero-mark { background-position: right -45% center; opacity: .8; } }
@media (max-width: 760px) { .hero-mark { background-position: right -55% top -10%; opacity: .7; } }
/* v18.1: service facts as label-and-text rows (comfortable reading width) */
.svc-facts { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
.svc-facts > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 24px; background: none; border-left: 0; border-bottom: 1px solid var(--line); padding: 14px 0; }
.svc-facts h3 { margin: 3px 0 0; color: var(--teal-ink); }
.svc-facts p { max-width: 64ch; }
@media (max-width: 640px) { .svc-facts > div { grid-template-columns: minmax(0, 1fr); padding: 12px 0; } }
.gauge .track { display: none; }
/* v18.2: partner profiles fill the grid as horizontal cards */
.profiles { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; gap: 28px; }
.profile { display: grid; grid-template-columns: minmax(150px, 38%) minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; align-content: start; }
.profile .portrait { grid-column: 1; grid-row: 1 / span 4; height: 100%; aspect-ratio: auto; min-height: 100%; object-fit: cover; object-position: center top; }
.profile > :not(.portrait) { grid-column: 2; }
.profile h3 { padding: 24px 24px 0; }
@media (max-width: 1000px) { .profiles { grid-template-columns: minmax(0, 1fr); max-width: 640px; } }
@media (max-width: 520px) { .profile { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; } .profile .portrait, .profile > :not(.portrait) { grid-column: 1; grid-row: auto; } .profile .portrait { aspect-ratio: 4 / 5; height: auto; } }
/* v18.5: in-page anchors clear the sticky header */
[id] { scroll-margin-top: 96px; }
@media (max-width: 900px) { [id] { scroll-margin-top: 80px; } }
/* v18.7: smooth services menu on desktop (no gap, fade, grace period in site.js) */
@media (hover: hover) and (min-width: 901px) {
  .mega { display: block; visibility: hidden; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; animation: none !important; }
  .has-menu.open .mega { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity .18s ease, transform .18s ease, visibility 0s; }
  .has-menu.shut .mega { display: block !important; visibility: hidden; opacity: 0; pointer-events: none; }
  .mega::before { content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 28px; }  /* invisible bridge across the header gap */
}
.menu-btn .ico { transition: transform .18s ease; }
