/* AH Global Enterprises: public site styles. Colours and fonts are injected per request from the theme settings. */

:root {
  --bg: var(--c-bg);
  --surface: var(--c-surface);
  --text: var(--c-text);
  --muted: color-mix(in srgb, var(--text) 68%, transparent);
  --line: color-mix(in srgb, var(--c-primary) 14%, transparent);
  --shadow: 0 1px 2px rgb(16 36 58 / .06), 0 12px 32px -12px rgb(16 36 58 / .18);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: 0 0 0 3px color-mix(in srgb, var(--c-accent) 55%, transparent);
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: var(--c-dark-bg);
  --surface: var(--c-dark-surface);
  --text: var(--c-dark-text);
  --line: color-mix(in srgb, var(--c-dark-text) 14%, transparent);
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 16px 40px -16px rgb(0 0 0 / .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
img { object-fit: cover; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; color: inherit; }
h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 1.1rem + 2vw, 2.7rem); font-weight: 800; }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: none; box-shadow: var(--focus); border-radius: 6px;
}
ul, ol { margin: 0; padding: 0; }
.list-plain { list-style: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--c-primary); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { top: 12px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.small { font-size: .875rem; }
.center { text-align: center; }
.span-2 { grid-column: span 2; }

/* Layout */
.wrap { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 860px; }
.section { padding: clamp(3.5rem, 2.5rem + 4vw, 7rem) 0; position: relative; }
.section--tint { background: color-mix(in srgb, var(--c-primary) 4%, var(--bg)); }
html[data-theme="dark"] .section--tint { background: color-mix(in srgb, var(--c-dark-text) 3%, var(--bg)); }
.section--dark { background: var(--c-primary); color: #EEF3F8; }
.section--dark .section-intro, .section--dark .muted { color: rgb(238 243 248 / .78); }
.section--dark .card { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .12); color: inherit; }
.section--dark .eyebrow { color: var(--c-accent); }
.section--quote { background: linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--c-accent) 8%, var(--bg))); }
.section--empty { padding: 6rem 0; }
.page-head { padding-top: 4rem; padding-bottom: 1rem; }
.page-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); font-weight: 800; }

/* Typography helpers */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-accent); margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.lede { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-intro { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.meta-line { font-size: .9rem; color: var(--muted); margin: .25rem 0 .75rem; }
.text-link { font-weight: 600; color: var(--c-secondary); }
html[data-theme="dark"] .text-link { color: var(--c-accent); }
.section--dark .text-link { color: #fff; }
.check-list { list-style: none; }
.check-list li { padding-left: 1.6rem; position: relative; margin-bottom: .45rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .4rem; border-left: 2px solid var(--c-accent); border-bottom: 2px solid var(--c-accent); transform: rotate(-45deg); }

/* Buttons */
.btn {
  --btn-bg: var(--c-primary); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.3rem; border-radius: var(--radius);
  font: 600 .98rem/1 var(--font-body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg);
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px var(--btn-bg); }
.btn--primary { --btn-bg: var(--c-primary); --btn-fg: #fff; }
.btn--accent { --btn-bg: var(--c-accent); --btn-fg: #10243A; }
.btn--outline { --btn-bg: var(--c-primary); background: transparent; color: var(--c-primary); }
html[data-theme="dark"] .btn--outline { color: var(--c-dark-text); --btn-bg: var(--c-accent); }
.btn--ghost { background: transparent; color: inherit; border-color: transparent; }
.btn--block { width: 100%; }
.btn--danger { --btn-bg: #9B2C2C; }
body.btn-pill .btn { border-radius: 999px; }
body.btn-soft .btn { background: color-mix(in srgb, var(--btn-bg) 14%, transparent); color: var(--btn-bg); }
body.btn-soft .btn--accent { color: var(--c-primary); }
body.btn-outline .btn--primary, body.btn-outline .btn--accent { background: transparent; color: var(--btn-bg); }
body.btn-outline .btn--accent { color: var(--c-accent); }
body.btn-outline .section--dark .btn--primary { color: #fff; border-color: #fff; }

/* Top bar and header */
.topbar { background: var(--c-footer); color: rgb(238 243 248 / .85); font-size: .85rem; }
.topbar__inner { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between; align-items: center; min-height: 40px; padding-block: .4rem; }
.topbar ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--c-accent); }

.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-family: var(--font-head); font-weight: 800; }
.brand__mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: calc(var(--radius) * .6); background: var(--c-primary); color: #fff; letter-spacing: .02em; }
.brand__text { font-size: 1.05rem; }
.brand__logo { height: 44px; width: auto; max-width: 220px; }
.brand__logo--dark { display: none; }
html[data-theme="dark"] .brand__logo--light { display: none; }
html[data-theme="dark"] .brand__logo--dark { display: block; }
.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: clamp(.9rem, .5rem + 1vw, 1.8rem); align-items: center; }
.nav__list a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: .4rem 0; background: linear-gradient(var(--c-accent), var(--c-accent)) left bottom / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.nav__list a:hover { background-size: 100% 2px; }
.header__actions { display: flex; align-items: center; gap: .6rem; }
.header__quote { min-height: 44px; padding: .6rem 1rem; }
.theme-toggle, .menu-toggle {
  width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center;
}
.menu-toggle { display: none; flex-direction: column; gap: 5px; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #EEF3F8; background: var(--c-primary);
  padding: clamp(3.5rem, 2rem + 5vw, 7.5rem) 0 clamp(4rem, 2rem + 5vw, 8rem);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -35% auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c-accent) 35%, transparent), transparent 62%);
}
.hero__grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; grid-template-columns: 1.1fr .9fr; }
.hero .eyebrow { color: var(--c-accent); }
.hero__title { color: #fff; max-width: 16ch; margin-bottom: .6em; }
.hero__lede { font-size: clamp(1.05rem, .98rem + .35vw, 1.22rem); color: rgb(238 243 248 / .82); max-width: 56ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero .btn--primary { --btn-bg: #fff; --btn-fg: var(--c-primary); }
.hero .btn--accent { --btn-bg: var(--c-accent); }
.hero__visual { margin: 0; position: relative; }
.hero__visual img { width: 100%; border-radius: calc(var(--radius) * 1.4); box-shadow: 0 30px 60px -25px rgb(0 0 0 / .6); aspect-ratio: 4 / 3; }
.hero__art { width: 100%; height: auto; color: #DDE7F1; }
.hero__art .crane { transform-origin: 250px 250px; animation: sway 6s ease-in-out infinite alternate; }
.hero__art .route { stroke-dashoffset: 0; animation: flow 14s linear infinite; }
@keyframes sway { from { transform: rotate(-1.2deg); } to { transform: rotate(1.2deg); } }
@keyframes flow { to { stroke-dashoffset: -280; } }

/* Cards and grids */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.1); padding: clamp(1.25rem, 1rem + .8vw, 2rem);
  box-shadow: var(--shadow); color: var(--text); position: relative;
}
.card__icon, .industry__icon, .division__icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: calc(var(--radius) * .8);
  background: color-mix(in srgb, var(--c-accent) 14%, transparent); color: var(--c-accent); margin-bottom: 1rem;
}
.icon { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.about-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.1fr .9fr; align-items: start; }
.about-cards { display: grid; gap: 1rem; }
.about-copy .lede { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); color: var(--text); }
.division-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.division { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.2); padding: clamp(1.4rem, 1.1rem + .8vw, 2.2rem); box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .35s var(--ease), border-color .3s; }
.division::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--c-accent), transparent); transform: scaleX(.25); transform-origin: left; transition: transform .45s var(--ease); }
.division:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c-accent) 50%, transparent); }
.division:hover::after { transform: scaleX(1); }
.division__head { display: flex; justify-content: space-between; align-items: start; }
.division__index { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: color-mix(in srgb, var(--c-primary) 12%, transparent); line-height: 1; }
html[data-theme="dark"] .division__index { color: color-mix(in srgb, var(--c-dark-text) 14%, transparent); }
.division__title { margin-top: .25rem; }
.division__tagline { color: var(--c-accent); font-weight: 600; margin-bottom: .5rem; }
.division__toggle { margin-top: .6rem; display: flex; justify-content: space-between; width: 100%; background: none; border: 0; border-top: 1px solid var(--line); padding: .8rem 0 0; font: 600 .95rem var(--font-body); color: inherit; cursor: pointer; min-height: 44px; }
.division__points { margin: .6rem 0 1rem; padding-left: 1.1rem; }
.division__points li { margin-bottom: .35rem; }
.division__points[hidden] { display: none; }
.division .text-link { display: inline-block; margin-top: .6rem; }

.product-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.2); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product__media img { width: 100%; aspect-ratio: 16 / 10; }
.product__body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.product__body .btn { margin-top: auto; align-self: flex-start; }
.spec-list { display: grid; grid-template-columns: 1fr; gap: .4rem .8rem; margin: .6rem 0 1rem; font-size: .92rem; }
.spec-list > div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: .3rem; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 600; text-align: right; }
.spec-list .span-2 { display: block; text-align: left; }

.capability-list { list-style: none; display: grid; gap: 1rem; counter-reset: none; }
.capability { display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: start; padding: 1.5rem; border-radius: calc(var(--radius) * 1.1); border: 1px solid rgb(255 255 255 / .12); background: rgb(255 255 255 / .04); }
.capability__num { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--c-accent); line-height: 1; }
.capability__img { width: 180px; aspect-ratio: 4 / 3; border-radius: var(--radius); }
.capability p:last-child { margin-bottom: 0; }

.industry-grid { list-style: none; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.industry h3 { font-size: 1.1rem; }
.industry p { font-size: .95rem; color: var(--muted); margin: 0; }

.world-map { margin: 0 0 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.2); padding: clamp(.75rem, .5rem + 1vw, 1.5rem); box-shadow: var(--shadow); overflow: hidden; }
.world-map svg { width: 100%; height: auto; color: var(--c-primary); }
html[data-theme="dark"] .world-map svg { color: var(--c-dark-text); }
.graticule line { stroke: currentColor; stroke-opacity: .09; stroke-width: 1; }
.market-dot { cursor: default; }
.market-dot__halo { fill: var(--c-accent); fill-opacity: .18; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
.market-dot__core { fill: var(--c-accent); stroke: #fff; stroke-width: 1.5; }
.market-dot:focus-visible { outline: none; }
.market-dot:focus-visible .market-dot__core { stroke: var(--c-primary); stroke-width: 3; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.market-list { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; }
.market-list li { padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .92rem; }
.market-list span { color: var(--muted); }

.process { list-style: none; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); position: relative; counter-reset: step; }
.process::before { content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 2px; background: linear-gradient(90deg, var(--c-accent), color-mix(in srgb, var(--c-accent) 20%, transparent)); }
.process__step { position: relative; padding-top: 0; }
.process__num { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-primary); color: #fff; font-family: var(--font-head); font-weight: 800; box-shadow: 0 0 0 6px var(--bg); margin-bottom: 1rem; }
html[data-theme="dark"] .process__num { background: var(--c-accent); color: var(--c-primary); }
.process__step p { color: var(--muted); font-size: .96rem; }
.process__step .eyebrow { margin-bottom: .4rem; font-size: .7rem; }
.process__step .eyebrow::before { display: none; }

.reason-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.reason-grid .card p { color: var(--muted); margin: 0; }

.stat-grid { list-style: none; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { border-top: 2px solid var(--c-accent); padding-top: 1.2rem; }
.stat__value { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 2rem + 2.5vw, 4rem); line-height: 1; margin-bottom: .6rem; color: #fff; }
.stat__suffix { color: var(--c-accent); }
.stat__label { font-weight: 600; margin: 0; }
.stat__note { color: rgb(238 243 248 / .7); font-size: .9rem; margin: .2rem 0 0; }

.cert-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cert__img { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid var(--line); background: #fff; object-fit: contain; }
.cert p { color: var(--muted); font-size: .95rem; }
.cert .meta-line { margin-top: auto; }

.leader-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.leader { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.2); overflow: hidden; box-shadow: var(--shadow); padding-bottom: 1.4rem; }
.leader__photo { aspect-ratio: 4 / 4.2; background: linear-gradient(160deg, var(--c-secondary), var(--c-primary)); display: grid; place-items: center; }
.leader__photo img { width: 100%; height: 100%; object-fit: cover; }
.leader__initials { font-family: var(--font-head); font-size: 4rem; font-weight: 800; color: rgb(255 255 255 / .85); }
.leader h3, .leader p, .leader .text-link { margin-left: 1.4rem; margin-right: 1.4rem; }
.leader h3 { margin-top: 1.1rem; font-size: 1.15rem; }
.leader p { color: var(--muted); font-size: .95rem; }

.partner-grid { list-style: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.partner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-height: 110px; display: grid; place-items: center; padding: 1rem; }
.partner img { max-height: 64px; width: auto; filter: grayscale(1); opacity: .85; transition: filter .3s, opacity .3s; }
.partner:hover img { filter: none; opacity: 1; }
.partner a { display: grid; place-items: center; width: 100%; height: 100%; }
.partner__name { font-weight: 700; text-align: center; }

.slider { position: relative; max-width: 820px; margin: 0 auto; }
.slider__track { list-style: none; position: relative; min-height: 200px; }
.slide { display: none; }
.slide.is-active, html:not(.js) .slide { display: block; animation: fade .6s var(--ease); }
html:not(.js) .slide + .slide { margin-top: 1.5rem; }
@keyframes fade { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.slide__quote { margin: 0; font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); line-height: 1.5; }
.slide__quote p { font-family: var(--font-head); font-weight: 600; }
.slide__quote footer { margin-top: 1.2rem; font-size: .95rem; display: flex; flex-wrap: wrap; gap: .2rem .8rem; color: rgb(238 243 248 / .75); font-style: normal; }
.slide__quote cite { font-style: normal; font-weight: 700; color: #fff; }
.slider__controls { display: flex; justify-content: center; gap: .8rem; margin-top: 1.5rem; }
.section--dark .btn--ghost { color: #fff; border: 1px solid rgb(255 255 255 / .3); }

.accordion { max-width: 860px; margin: 0 auto; display: grid; gap: .8rem; }
.accordion__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.accordion__item summary { list-style: none; cursor: pointer; padding: 1.1rem 3.2rem 1.1rem 1.3rem; font-family: var(--font-head); font-weight: 700; position: relative; min-height: 56px; display: flex; align-items: center; }
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary::after { content: "+"; position: absolute; right: 1.3rem; font-size: 1.5rem; line-height: 1; color: var(--c-accent); transition: transform .3s var(--ease); }
.accordion__item[open] summary::after { transform: rotate(45deg); }
.accordion__body { padding: 0 1.3rem 1.3rem; color: var(--muted); }
.accordion__body p { margin: 0; }

.post-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post img { width: 100%; aspect-ratio: 16 / 9; }
.post > *:not(img) { margin-left: 1.4rem; margin-right: 1.4rem; }
.post .meta-line { margin-top: 1.1rem; }
.post h2, .post h3 { font-size: 1.2rem; }
.post p:last-child { color: var(--muted); }
.post a { text-decoration: none; }
.post a:hover { text-decoration: underline; }
.article__img { width: 100%; border-radius: calc(var(--radius) * 1.2); margin: 1.5rem 0 2rem; aspect-ratio: 16 / 9; }
.prose p { font-size: 1.08rem; }

/* Quote form and contact */
.quote-grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); grid-template-columns: .9fr 1.1fr; align-items: start; }
.quote-form { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3); padding: clamp(1.25rem, 1rem + 1.6vw, 2.5rem); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 1rem 1.1rem; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-grid .field { margin-bottom: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.req { color: #B42318; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-body); color: var(--text); background: var(--bg);
  border: 1.5px solid color-mix(in srgb, var(--text) 18%, transparent); border-radius: calc(var(--radius) * .7);
  padding: .78rem .9rem; min-height: 48px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-accent); outline: none; box-shadow: var(--focus); }
.field input[type="file"] { padding: .6rem; background: transparent; }
.field--check label { display: flex; gap: .6rem; font-weight: 400; font-size: .94rem; align-items: flex-start; }
.field--check input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--c-primary); flex: none; }
.field--error input, .field--error select, .field--error textarea { border-color: #B42318; }
.field__error { color: #B42318; font-size: .88rem; margin: 0; font-weight: 600; }
.form-summary { border: 1px solid #B42318; background: color-mix(in srgb, #B42318 8%, var(--surface)); color: var(--text); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.form-summary ul { margin: .4rem 0 0 1.2rem; }
.form-summary[hidden] { display: none; }
.form-status { min-height: 1.4em; margin: .8rem 0 0; font-weight: 600; }
.form-status.is-error { color: #B42318; }
.form-status.is-ok { color: #067647; }
.quote-form .btn { margin-top: .6rem; }
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3); padding: clamp(1.4rem, 1rem + 1.4vw, 2.6rem); box-shadow: var(--shadow); }
.contact-list { list-style: none; display: grid; gap: 1.2rem; margin-top: 1.5rem; }
.contact-list h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--c-accent); margin: 0 0 .25rem; font-family: var(--font-body); }
.contact-list p { margin: 0; font-size: 1.05rem; }
.map-frame { border-radius: calc(var(--radius) * 1.3); overflow: hidden; border: 1px solid var(--line); min-height: 380px; box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Footer */
.site-footer { background: var(--c-footer); color: rgb(238 243 248 / .82); padding-top: clamp(3rem, 2rem + 3vw, 5rem); font-size: .95rem; }
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr 1fr; padding-bottom: 2.5rem; }
.footer__brand { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; color: #fff; }
.footer__title { font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--c-accent); margin-bottom: 1rem; font-weight: 700; }
.site-footer ul { list-style: none; display: grid; gap: .5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); }
.footer__social { display: flex !important; flex-wrap: wrap; gap: .4rem 1rem !important; margin-top: 1rem; }
.footer__small { font-size: .85rem; color: rgb(238 243 248 / .6); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; border-top: 1px solid rgb(255 255 255 / .12); padding-block: 1.4rem 1.8rem; font-size: .88rem; }
.footer__bottom p { margin: 0; }
.footer__legal { display: flex !important; flex-wrap: wrap; gap: .4rem 1.2rem !important; }
.footer__dev a { color: var(--c-accent); font-weight: 600; }

.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; font-weight: 800; display: grid; place-items: center; text-decoration: none; box-shadow: 0 12px 26px -8px rgb(37 211 102 / .6); }
.whatsapp-float:hover { transform: scale(1.06); }
.preview-bar { background: var(--c-accent); color: #10243A; text-align: center; padding: .5rem; font-weight: 600; font-size: .9rem; position: sticky; top: 0; z-index: 300; }
.preview-bar a { color: inherit; }

/* Motion: content is visible by default; motion is an enhancement. */
.reveal { opacity: 1; transform: none; }
html.js[data-motion="on"] .reveal:not(.is-visible) { opacity: 0; transform: translateY(18px); }
html.js[data-motion="on"] .reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0ms); }
html[data-motion="off"] .hero__art *, html[data-motion="off"] .market-dot__halo { animation: none !important; }

/* Responsive */
@media (max-width: 1080px) {
  /* backdrop-filter creates a containing block, which would stop the fixed mobile menu from covering the screen */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 1rem 1.25rem 1.5rem; transform: translateY(-120%); transition: transform .35s var(--ease); visibility: hidden; margin: 0; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav__list a { display: block; padding: .85rem .2rem; font-size: 1.05rem; min-height: 44px; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header__quote { display: none; }
}
@media (max-width: 960px) {
  .hero__grid, .about-grid, .quote-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero__title { max-width: 20ch; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .capability { grid-template-columns: auto 1fr; }
  .capability__img { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 720px) {
  .topbar__social { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; gap: 1.6rem; padding-left: 0; }
  .process::before { left: 23px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; background: linear-gradient(var(--c-accent), color-mix(in srgb, var(--c-accent) 20%, transparent)); }
  .process__step { padding-left: 4.2rem; min-height: 48px; }
  .process__num { position: absolute; left: 0; top: 0; margin: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .brand__text { font-size: .95rem; }
  .btn { width: auto; }
  .hero__ctas .btn { width: 100%; }
}
@media (max-width: 420px) {
  .wrap { width: min(100% - 1.5rem, var(--container)); }
  .brand__mark { width: 36px; height: 36px; }
  .header__actions .btn { display: none; }
  .spec-list > div { flex-direction: column; gap: 0; }
  .spec-list dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
@media print {
  .topbar, .site-header, .whatsapp-float, .theme-toggle, .menu-toggle, .site-footer, .hero__visual { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 1.2rem 0; }
}
