/* =====================================================================
   Shaman Performance Center – website styles
   Colours --primary / --secondary / --dark come from the admin panel.
   ===================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-wdth.woff2") format("woff2-variations"), url("../fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #15191E;
  --ink-2: #47515C;
  --ink-3: #6B7682;
  --paper: #FFFFFF;
  --steel: #EEF0F2;
  --steel-2: #DDE1E5;
  --line: rgba(21, 25, 30, .12);
  --de-black: #000000;
  --de-red: #DD0000;
  --de-gold: #FFCE00;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wide: "wdth" 125;
  --narrow: "wdth" 100;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --header-h: 76px;
  --radius-s: 4px;
  --radius-m: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-variation-settings: var(--narrow);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
figure { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-s); font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--primary); --fg: var(--on-primary);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7em 1.4em;
  background: var(--bg); color: var(--fg);
  border: 1.5px solid var(--bg); border-radius: var(--radius-s);
  font-weight: 600; font-size: .95rem; letter-spacing: .01em; text-decoration: none;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn--secondary { --bg: var(--secondary); --fg: var(--on-secondary); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; filter: none; }
.btn--lg { min-height: 54px; padding: .85em 1.7em; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: #fff;
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.is-solid { background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.stripe { display: flex; height: 3px; opacity: 0; transition: opacity .3s; }
.stripe span { flex: 1; }
.stripe span:nth-child(1) { background: var(--de-black); }
.stripe span:nth-child(2) { background: var(--de-red); }
.stripe span:nth-child(3) { background: var(--de-gold); }
.site-header.is-solid .stripe { opacity: 1; }

.brand { display: flex; align-items: center; text-decoration: none; color: inherit; flex-shrink: 0; }
.brand img.logo { height: var(--logo-h, 60px); width: auto; max-width: min(320px, 55vw); object-fit: contain; }
.brand .logo--solid { display: none; }
.site-header.is-solid .brand .logo--on-hero { display: none; }
.site-header.is-solid .brand .logo--solid { display: flex; }
/* If only one logo is uploaded, the text wordmark is used for the other state */

.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark-main { font-variation-settings: var(--wide); font-weight: 800; font-size: calc(var(--logo-h, 84px) * .38); letter-spacing: .02em; text-transform: uppercase; }
.wordmark-sub { font-size: calc(var(--logo-h, 84px) * .19); font-weight: 600; letter-spacing: .08em; margin-top: 4px; opacity: .9; }
.footer-brand .wordmark-main { font-size: calc(var(--logo-h-f, 110px) * .3); }
.footer-brand .wordmark-sub { font-size: calc(var(--logo-h-f, 110px) * .14); }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav > ul { display: flex; gap: 32px; }
.main-nav > ul > li { position: relative; display: flex; align-items: center; }
.main-nav > ul > li > a { text-decoration: none; font-weight: 500; font-size: .98rem; padding: 6px 0; position: relative; }
.main-nav > ul > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--secondary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.main-nav > ul > li > a:hover::after, .main-nav > ul > li > a.is-active::after { transform: scaleX(1); }

/* Services dropdown under "Our Services" */
.sub-toggle { width: 24px; height: 28px; margin-left: 2px; border: 0; background: none; color: inherit; cursor: pointer; padding: 0; position: relative; }
.sub-toggle::before { content: ""; position: absolute; left: 8px; top: 9px; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.has-sub.is-open .sub-toggle::before { transform: rotate(-135deg); top: 13px; }
.sub-menu {
  position: absolute; top: calc(100% + 14px); left: -24px; width: 380px; padding: 10px;
  background: var(--paper); color: var(--ink); border-radius: var(--radius-m);
  box-shadow: 0 24px 48px -16px rgba(0,0,0,.35), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility 0s .2s; z-index: 5;
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.is-open .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
.sub-menu a { display: block; padding: 12px 14px; border-radius: 6px; text-decoration: none; border-left: 3px solid transparent; }
.sub-menu a:hover, .sub-menu a:focus-visible { background: var(--steel); border-left-color: var(--secondary); }
.sub-menu strong { display: block; font-size: .96rem; line-height: 1.3; }
.sub-menu span { display: block; font-size: .85rem; color: var(--ink-3); line-height: 1.4; margin-top: 2px; }
.nav-cta { min-height: 42px; padding: .55em 1.2em; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0; position: relative; z-index: 2; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 11px; width: 24px; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease), opacity .2s; content: ""; }
.nav-toggle-bars { top: 22px; }
.nav-toggle-bars::before { left: 0; top: -7px; }
.nav-toggle-bars::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: var(--dark); overflow: hidden; isolation: isolate;
}
.hero-media, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; pointer-events: none; }
.hero-content, .hero-services { position: relative; z-index: 1; }
.hero-img { object-fit: cover; object-position: 70% 50%; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(20deg, rgba(0,0,0,calc(var(--hero-overlay) + .15)) 0%, rgba(0,0,0,var(--hero-overlay)) 45%, rgba(0,0,0,calc(var(--hero-overlay) * .25)) 100%);
}
.hero-content { padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(40px, 7vh, 80px); }
.hero-sub { font-size: clamp(.95rem, 1.4vw, 1.15rem); font-weight: 500; letter-spacing: .01em; margin-bottom: 18px; color: rgba(255,255,255,.88); max-width: 40ch; }
.hero-title {
  font-variation-settings: var(--wide);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.02em;
  max-width: 16ch;
  text-wrap: balance;
  margin-bottom: clamp(28px, 4vh, 44px);
}
.hero-title--small { font-size: clamp(1.8rem, 3.4vw, 3.2rem); max-width: 18ch; }
.hero-title--large { font-size: clamp(2.6rem, 7vw, 6.5rem); line-height: .95; max-width: 13ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-services {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  grid-auto-flow: column;
  border-top: 1px solid rgba(255,255,255,.22);
  padding-top: 0; padding-bottom: 0;
}
.hero-services li + li { border-left: 1px solid rgba(255,255,255,.22); }
.hero-services a {
  display: block; padding: 20px 20px 24px; text-decoration: none; font-weight: 600; font-size: .95rem;
  color: rgba(255,255,255,.86); transition: color .2s, background-color .2s;
}
.hero-services li:first-child a { padding-left: 0; }
.hero-services a:hover { color: #fff; background: rgba(255,255,255,.06); }
.hero-services a::before { content: ""; display: block; width: 18px; height: 2px; background: var(--secondary); margin-bottom: 12px; transition: width .25s var(--ease); }
.hero-services a:hover::before { width: 36px; }

/* ---------- Section basics ---------- */
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--split { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 24px 48px; align-items: end; }
.section-title {
  font-variation-settings: var(--wide);
  font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 3.9rem); letter-spacing: -.02em; line-height: 1;
}
.section-intro { margin: 0; font-size: 1.05rem; color: var(--ink-2); max-width: 46ch; }

/* ---------- Expertise ---------- */
.expertise { background: var(--dark); color: var(--on-dark); padding-block: clamp(72px, 10vw, 128px); }
.expertise .section-intro { color: inherit; opacity: .75; }

.panels { display: flex; gap: 10px; height: clamp(520px, 66vh, 640px); }
.panel {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--radius-m);
  background: #2A3038; color: #fff; isolation: isolate;
  transition: flex-grow .6s var(--ease);
}
.panel.is-open { flex-grow: 3.4; }
.panel { cursor: pointer; }
.panel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); transition: transform .9s var(--ease); }
.panel.is-open .panel-img { transform: scale(1); }
.panel-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 55%, rgba(0,0,0,.12) 100%); }
.panel-content { position: absolute; inset: auto 0 0 0; padding: 24px; display: flex; flex-direction: column; }
.panel-toggle {
  display: block; width: 100%; text-align: left; background: none; border: 0; color: inherit; cursor: pointer; padding: 0;
  font-variation-settings: var(--wide); font-weight: 700; font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.08; letter-spacing: -.01em;
}
.panel-toggle::before { content: ""; display: block; width: 48px; height: 3px; background: var(--secondary); margin-bottom: 16px; }
.panel-body { display: grid; grid-template-rows: 1fr; }
.panel-body-inner { overflow: hidden; min-height: 0; padding-top: 14px; }
.panel-summary { font-weight: 600; font-size: 1.05rem; margin-bottom: .6em; max-width: 46ch; }
.panel-desc { color: rgba(255,255,255,.8); font-size: .98rem; max-width: 52ch; }
.panel-link { display: inline-block; margin-top: 4px; color: var(--secondary); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.panel-link:hover { color: #fff; }

/* Desktop: expanding panels. Closed panels show a vertical label. */
@media (min-width: 961px) {
  .panel-content { width: min(600px, 100%); }
  .panel-body { grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
  .panel-body-inner { opacity: 0; transition: opacity .25s ease; }
  .panel.is-open .panel-body { grid-template-rows: 1fr; }
  .panel.is-open .panel-body-inner { opacity: 1; transition: opacity .4s ease .3s; }
  .panel:not(.is-open) .panel-content { inset: 0; width: auto; justify-content: flex-end; }
  .panel:not(.is-open) .panel-title { flex: 1; display: flex; align-items: flex-end; }
  .panel:not(.is-open) .panel-toggle { writing-mode: vertical-rl; transform: rotate(180deg); width: auto; max-height: 100%; white-space: normal; font-size: 1.12rem; line-height: 1.15; display: flex; align-items: center; gap: 14px; text-wrap: balance; }
  .panel:not(.is-open) .panel-toggle::before { width: 3px; height: 28px; margin: 0; }
  .panel:not(.is-open):hover { filter: brightness(1.15); }
  .panel:not(.is-open) .panel-body { visibility: hidden; }
}

/* ---------- About ---------- */
.about { background: var(--paper); padding-block: clamp(72px, 10vw, 136px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.about-title {
  display: flex; flex-direction: column; gap: .3em;
  font-variation-settings: var(--wide); font-weight: 800;
  font-size: clamp(2rem, 3.8vw, 3.4rem); letter-spacing: -.02em; line-height: 1;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.about-title span + span { color: var(--primary); }
.about-figure { border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 4 / 5; max-height: min(62vh, 560px); background: var(--steel); }
.about-img { width: 100%; height: 100%; object-fit: cover; }
.about-copy { max-width: 64ch; padding-top: .4em; }
.about-copy .lead { font-size: clamp(1.25rem, 1.9vw, 1.55rem); line-height: 1.45; font-weight: 500; color: var(--ink); margin-bottom: 1.4em; }
.prose p { color: var(--ink-2); line-height: 1.75; }
.closing { margin: 2.2em 0 2.4em; padding: 0 0 0 24px; border-left: 4px solid var(--secondary); }
.closing p { margin: 0; font-variation-settings: var(--wide); font-weight: 700; font-size: clamp(1.35rem, 2.3vw, 1.9rem); line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }

/* Timeline */
.timeline-wrap { margin-top: clamp(72px, 9vw, 120px); scroll-margin-top: calc(var(--header-h) + 32px); }
.timeline-wrap.is-revealed { animation: story-in .5s var(--ease); }
@keyframes story-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.timeline-title { font-variation-settings: var(--wide); font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 36px; }
.timeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; position: relative; counter-reset: none; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--steel-2); }
.timeline-item { position: relative; padding: 36px 20px 0 0; }
.timeline-item::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--steel); border: 3px solid var(--primary); }
.timeline-item:last-child::before { background: var(--secondary); border-color: var(--secondary); box-shadow: 0 0 0 6px color-mix(in srgb, var(--secondary) 25%, transparent); }
.timeline-label { display: block; font-variation-settings: var(--wide); font-weight: 800; font-size: 1.35rem; color: var(--primary); margin-bottom: 6px; line-height: 1.1; }
.timeline-heading { display: block; font-size: 1rem; margin-bottom: 6px; line-height: 1.3; }
.timeline-item p { font-size: .92rem; color: var(--ink-3); margin: 0; line-height: 1.5; }

/* ---------- Leader ---------- */
.leader { padding-block: clamp(72px, 10vw, 136px); background: var(--steel); }
.leader-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.leader-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-m); overflow: hidden; background: var(--steel-2); }
.leader-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--de-black) 0 33.33%, var(--de-red) 33.33% 66.66%, var(--de-gold) 66.66%); }
.leader-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.section-kicker { font-size: 1rem; font-weight: 600; color: var(--ink-3); margin-bottom: 18px; line-height: 1.4; }
.leader-heading { margin-bottom: clamp(24px, 3vw, 36px); }
.leader-name { font-variation-settings: var(--wide); font-weight: 800; font-size: clamp(1.7rem, 2.8vw, 2.4rem); letter-spacing: -.015em; line-height: 1.05; margin-bottom: 6px; }
.leader-role { font-weight: 600; color: var(--primary); margin-bottom: 28px; }
.leader-copy .prose { max-width: 60ch; }
.leader-quote { margin: 28px 0; padding: 0 0 0 24px; border-left: 4px solid var(--secondary); }
.leader-quote p { margin: 0; font-variation-settings: var(--wide); font-weight: 700; font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.3; letter-spacing: -.01em; }
.text-link { font-weight: 600; color: var(--primary); text-decoration: none; border-bottom: 1.5px solid currentColor; }

/* ---------- Enquiry ---------- */
.enquire { background: var(--primary); color: var(--on-primary); padding-top: clamp(72px, 10vw, 128px); }
.enquire-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; padding-bottom: clamp(72px, 10vw, 128px); }
.enquire-text { font-size: 1.1rem; opacity: .88; max-width: 44ch; margin: 22px 0 36px; }
.contact-list { margin: 0; display: grid; gap: 0; }
.contact-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.contact-list dt { font-weight: 600; opacity: .7; font-size: .92rem; }
.contact-list dd { margin: 0; }
.contact-list a { text-decoration: none; border-bottom: 1px solid color-mix(in srgb, currentColor 45%, transparent); }
.contact-list a:hover { border-bottom-color: currentColor; }

.form-card { background: var(--paper); color: var(--ink); border-radius: var(--radius-m); padding: clamp(24px, 3.5vw, 44px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--steel); border: 1.5px solid transparent; border-radius: var(--radius-s);
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); background-color: var(--paper); }
.field [aria-invalid="true"] { border-color: #C0262D; background-color: #FFF5F5; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-errors { background: #FFF1F0; border: 1px solid #F2B8B5; color: #A3161D; border-radius: var(--radius-s); padding: 12px 14px; margin-bottom: 18px; font-size: .95rem; }
.form-errors p { margin: 0; }
.form-errors p + p { margin-top: 4px; }
.form-note { font-size: .85rem; color: var(--ink-3); margin: 14px 0 0; text-align: center; }
.form-success { padding: 20px 0; }
.form-success p { font-variation-settings: var(--wide); font-weight: 700; font-size: 1.4rem; line-height: 1.3; margin: 0; }
.form-success p::before { content: ""; display: block; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 50%; background: var(--secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.5'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 22px no-repeat; }
[hidden] { display: none !important; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }



/* ---------- Section call-to-action ---------- */
.section-cta { margin-top: clamp(32px, 4vw, 48px); }

/* ---------- The Shaman Advantage ---------- */
.advantage { background: var(--paper); padding-block: clamp(72px, 10vw, 136px); }
.advantage-figure { border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 16 / 7; background: var(--steel); margin-bottom: clamp(36px, 5vw, 64px); }
.advantage-img { width: 100%; height: 100%; object-fit: cover; }
.advantage-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.advantage-item { border-top: 3px solid var(--ink); padding-top: 22px; }
.advantage-item:hover { border-top-color: var(--secondary); }
.advantage-name { font-variation-settings: var(--wide); font-weight: 700; font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.2; letter-spacing: -.01em; margin-bottom: 12px; }
.advantage-item p { color: var(--ink-2); font-size: .98rem; margin: 0; }

/* ---------- Work showcase ---------- */
.showcase { background: var(--dark); color: var(--on-dark); padding-block: clamp(72px, 10vw, 128px); }
.showcase .section-intro { color: inherit; opacity: .75; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 20vw, 280px); gap: 10px; }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-link { position: relative; display: block; height: 100%; border-radius: var(--radius-m); overflow: hidden; background: #2A3038; color: #fff; text-decoration: none; }
.gallery-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-link:hover .gallery-img, .gallery-link:focus-visible .gallery-img { transform: scale(1.04); }
.gallery-meta { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); display: flex; flex-direction: column; gap: 2px; }
.gallery-cat { font-size: .8rem; font-weight: 600; color: var(--secondary); }
.gallery-cap { font-weight: 600; font-size: .98rem; line-height: 1.3; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; color: #fff; }
.lightbox::backdrop { background: rgba(8, 10, 12, .92); }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 56px 0 24px; max-height: 100vh; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: var(--radius-s); }
.lb-figure figcaption { font-size: .98rem; opacity: .85; text-align: center; padding-inline: 16px; }
.lb-close, .lb-nav { background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer; border-radius: 50%; display: grid; place-items: center; line-height: 1; }
.lb-close { position: fixed; top: 16px; right: 16px; width: 46px; height: 46px; font-size: 1.8rem; z-index: 2; }
.lb-nav { width: 48px; height: 48px; font-size: 2rem; justify-self: center; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.22); }

/* ---------- Location (Google map) ---------- */
.location { background: var(--paper); padding-top: clamp(56px, 7vw, 88px); }
.location-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-bottom: 28px; }
.location-title { font-variation-settings: var(--wide); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.02em; }
.location-address { margin: 0; color: var(--ink-2); flex: 1 1 280px; }
.map iframe { display: block; width: 100%; height: 440px; border: 0; }


/* Service card actions */
.panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 6px; }
.panel-more { min-height: 42px; padding: .55em 1.1em; }
.panel-actions .panel-link { margin-top: 0; }

/* Service details window */
.service-dialog { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 14px; background: var(--paper); color: var(--ink); overflow: hidden; }
.service-dialog::backdrop { background: rgba(10, 12, 15, .72); backdrop-filter: blur(3px); }
.service-dialog[open] { animation: sd-in .3s var(--ease); }
@keyframes sd-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.sd-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); max-height: calc(100vh - 32px); }
.sd-media { background: var(--dark); min-height: 100%; }
.sd-img { width: 100%; height: 100%; object-fit: cover; }
.sd-body { padding: clamp(28px, 4vw, 52px); overflow-y: auto; }
.sd-title { font-variation-settings: var(--wide); font-weight: 800; font-size: clamp(1.6rem, 2.8vw, 2.4rem); letter-spacing: -.02em; line-height: 1.05; margin: 0 40px 14px 0; }
.sd-summary { font-weight: 600; font-size: 1.08rem; color: var(--primary); }
.sd-desc p { color: var(--ink-2); line-height: 1.7; }
.sd-points-title { font-size: 1rem; font-weight: 700; margin: 26px 0 12px; }
.sd-points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-bottom: 30px; }
.sd-points li { position: relative; padding-left: 22px; font-size: .97rem; line-height: 1.45; }
.sd-points li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 2px; background: var(--secondary); }
.sd-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--steel); color: var(--ink); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.sd-close:hover { background: var(--steel-2); }

/* 30 years highlight (Our story) */
.legacy-stat { display: flex; align-items: center; gap: 20px; margin: 0 0 clamp(28px, 4vw, 40px); padding: 22px 26px; border-radius: var(--radius-m); background: var(--dark); color: var(--on-dark); border-left: 6px solid var(--secondary); }
.legacy-number { margin: 0; font-variation-settings: var(--wide); font-weight: 800; font-size: clamp(4rem, 8vw, 6.5rem); line-height: .85; letter-spacing: -.04em; color: var(--secondary); }
.legacy-label { margin: 0; font-variation-settings: var(--wide); font-weight: 800; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.1; }
.legacy-note { margin: 6px 0 0; font-size: .92rem; opacity: .75; line-height: 1.4; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark); padding-top: clamp(56px, 7vw, 88px); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 40px; padding-bottom: 48px; }
.footer-brand img.logo { height: var(--logo-h-f, 72px); width: auto; max-width: 100%; object-fit: contain; object-position: left center; margin-bottom: 24px; }
.footer-brand .wordmark { margin-bottom: 20px; }
.footer-about { opacity: .72; max-width: 40ch; }
.footer-heading { font-size: .95rem; font-weight: 700; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; opacity: .78; transition: opacity .2s; }
.site-footer a:hover { opacity: 1; }
.footer-contact p { opacity: .78; margin-bottom: .6em; }
.footer-contact p a { opacity: 1; }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials li { margin: 0 !important; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 28%, transparent); opacity: .9; }
.socials a:hover { background: var(--secondary); color: var(--on-secondary); border-color: var(--secondary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); font-size: .87rem; }
.footer-bottom p { margin: 0; opacity: .6; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1100px) {
  .advantage-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .timeline::before { display: none; }
  .timeline-item { border-top: 2px solid var(--steel-2); }
  .timeline-item::before { top: -9px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  body { --header-h: var(--header-h-m, 66px); }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 36px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    background: var(--dark); color: var(--on-dark);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
  .main-nav { justify-content: flex-start; overflow-y: auto; }
  .main-nav > ul { flex-direction: column; gap: 6px; width: 100%; }
  .main-nav > ul > li { flex-wrap: wrap; }
  .main-nav > ul > li > a { font-variation-settings: var(--wide); font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
  .main-nav > ul > li > a::after { display: none; }
  .sub-toggle { width: 44px; height: 44px; margin-left: 6px; }
  .sub-toggle::before { left: 16px; top: 15px; width: 9px; height: 9px; }
  .has-sub.is-open .sub-toggle::before { top: 20px; }
  .sub-menu { position: static; width: 100%; flex-basis: 100%; padding: 4px 0 10px; background: transparent; color: inherit; box-shadow: none; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { display: none; }
  .has-sub.is-open .sub-menu { display: block; }
  .sub-menu a { padding: 8px 0 8px 14px; border-left: 2px solid color-mix(in srgb, currentColor 25%, transparent); border-radius: 0; }
  .sub-menu a:hover { background: none; }
  .sub-menu span { display: none; }
  .sub-menu strong { font-weight: 600; font-size: 1.05rem; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { color: var(--on-dark); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.nav-open .site-header .brand { position: relative; z-index: 2; }
  body.nav-open .site-header .brand .logo--on-hero { display: flex; }
  body.nav-open .site-header .brand .logo--solid { display: none; }
  .brand img.logo { height: var(--logo-h-m, 44px); }
  .wordmark-main { font-size: calc(var(--logo-h-m, 54px) * .38); }
  .wordmark-sub { font-size: calc(var(--logo-h-m, 54px) * .19); }

  .about-grid, .leader-grid, .enquire-grid { grid-template-columns: 1fr; }
  .about-aside { position: static; }
  .about-figure { max-height: none; aspect-ratio: 4 / 3; }
  .leader-photo { max-width: 460px; }
  .section-head--split { grid-template-columns: 1fr; }

  /* Services become a swipeable row of cards */
  .panels { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 8px; scrollbar-width: none; }
  .panels::-webkit-scrollbar { display: none; }
  .panel, .panel.is-open { flex: 0 0 min(84%, 420px); scroll-snap-align: start; min-height: 540px; }
  .panel-content { padding: 22px; }
  .panel-toggle { cursor: pointer; pointer-events: none; }
  .panel-img { transform: none; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .hero { min-height: 92svh; }
  .hero-img { object-position: 60% 50%; }
  .hero-services { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .timeline { grid-template-columns: 1fr; row-gap: 0; padding-left: 8px; }
  .timeline-item { border-top: 0; border-left: 2px solid var(--steel-2); padding: 0 0 30px 28px; }
  .timeline-item:last-child { padding-bottom: 0; }
  .timeline-item::before { top: 2px; left: -9px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-list > div { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .map iframe { height: 320px; }
  .advantage-list { grid-template-columns: 1fr; row-gap: 28px; }
  .service-dialog { overflow-y: auto; }
  .sd-grid { display: block; max-height: none; }
  .sd-media { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
  .sd-body { overflow: visible; }
  .sd-points { grid-template-columns: 1fr; }
  .sd-close { background: rgba(255,255,255,.9); }
  .legacy-stat { padding: 18px 20px; gap: 16px; }
  .advantage-figure { aspect-ratio: 4 / 3; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 8px; }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery-meta { padding: 28px 12px 10px; }
  .gallery-cap { font-size: .88rem; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lb-nav { position: fixed; bottom: 20px; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lb-figure { padding: 64px 12px 90px; }
  .lb-figure img { max-height: calc(100vh - 200px); }
  .location-head .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
