/* efeone — dark design system (cleaned).
   Colour comes from the tokens below. Sections share ONE system:
   .shell (width) + .sec (vertical rhythm) + .sec-head (heading row). */

/* ================================================================ tokens */
:root {
  color-scheme: dark;

  --bg: #0b0b0b;
  --surface: #141414;
  --card: #101010;

  --fg: #f4f4f4;
  --fg-body: #c9c9c9;
  --fg-muted: #9a9a9a;
  --fg-faint: #8a8a8a;

  --rule: #272727;
  --rule-soft: #343434;
  --rule-strong: #f4f4f4;

  --panel-bg: #181818;
  --panel-fg: #f4f4f4;
  --panel-fg-muted: #9a9a9a;
  --panel-rule: #323232;

  --btn-bg: #f4f4f4;
  --btn-fg: #0b0b0b;
  --btn-bg-hover: #d8d8d8;

  --focus: #f4f4f4;

  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  --shell: 1200px;
  --gutter: clamp(16px, 5vw, 60px);
  --band-y: clamp(48px, 8vw, 96px);
  --head-gap: clamp(32px, 4vw, 48px);
  --radius: 4px;
  --header-h: 84px;
}

/* ================================================================= reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 600px at 10% 6%,  rgba(239,232,218,.075), transparent 60%),
    radial-gradient(800px 560px at 92% 28%, rgba(239,232,218,.055), transparent 60%),
    radial-gradient(900px 700px at 18% 82%, rgba(239,232,218,.045), transparent 60%),
    radial-gradient(700px 500px at 88% 96%, rgba(239,232,218,.04),  transparent 60%);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

/* fine grain over the whole page */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--fg-body); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--panel-bg); color: var(--panel-fg); padding: 12px 20px; font-weight: 600; }
.skip-link:focus { left: 0; color: var(--panel-fg); }

/* ============================================================ typography */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  text-wrap: balance;
  color: var(--fg);
}
h1 { font-size: clamp(32px, 5.2vw, 62px); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(26px, 3.4vw, 42px); line-height: 1.12; }
h3 { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.25; margin-bottom: 10px; }

p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

.h-display { font-size: clamp(28px, 4.2vw, 50px); line-height: 1.05; letter-spacing: -0.03em; }

.lede { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: var(--fg-body); max-width: 62ch; text-align: center; }
.lede--inverse { color: var(--panel-fg-muted); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 20px;
}
.eyebrow--inverse { color: var(--panel-fg-muted); }

.prose { max-width: 70ch; }
.prose p { font-size: 17px; line-height: 1.72; color: var(--fg-body); margin-bottom: 20px; }
.prose--narrow { max-width: 68ch; }
@media (min-width: 720px) { .prose p { font-size: 18px; } }

/* =============================================================== layout */
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding-inline: var(--gutter); }
.shell--narrow { max-width: 760px; }

/* Legacy band (still used by the CTA band and inner pages) */
.band { padding-block: var(--band-y); border-bottom: 1px solid var(--rule); }
.band--ground { background: var(--surface); }
.band--ink { background: var(--panel-bg); color: var(--panel-fg); border-bottom: none; }
.band--ink h1, .band--ink h2, .band--ink h3 { color: var(--panel-fg); }

/* ---- SECTION SYSTEM: use on every home-page section ---- */
.sec { padding-block: var(--band-y); border-top: 1px solid var(--rule-soft); }
.sec--first { border-top: 0; }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 48px;
  align-items: end;
  margin-bottom: var(--head-gap);
}
.sec-head__text { max-width: 46rem; text-align: left; }
.sec-title { font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.1; margin: 0 0 14px; color: #f4f1ea; }
.sec-intro { margin: 0; color: #a9a9a4; line-height: 1.7; }

.regions { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.regions li { padding: .4rem .9rem; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: #111; color: #d9d7d2; font-size: .85rem; white-space: nowrap; }

@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; align-items: start; } }

.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.split__aside h2 { margin-bottom: 12px; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* =============================================================== header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo__img { display: block; height: clamp(52px, 5.4vw, 72px); width: auto; mix-blend-mode: lighten; }
.site-footer .logo { margin-bottom: 22px; }
.site-footer .logo__img { height: 56px; }

.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px); font-size: 15px; font-weight: 500; margin-left: auto; }
.site-nav a[aria-current='page'] { box-shadow: inset 0 -2px 0 var(--fg); padding-bottom: 3px; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; flex-shrink: 0; background: var(--bg); color: var(--fg); border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer; }
.icon-btn:hover { border-color: var(--fg); color: var(--fg); }
.nav-toggle { display: none; flex-direction: column; gap: 4px; }
.nav-toggle__bar { display: block; width: 18px; height: 2px; background: var(--fg); border-radius: 1px; }

/* ================================================================ crumbs */
.crumbs { border-bottom: 1px solid var(--rule); font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted); padding-block: 16px; }
.crumbs .shell { display: flex; flex-wrap: wrap; align-items: center; }
.crumbs__sep { padding-inline: 10px; color: var(--rule-soft); }
.crumbs [aria-current='page'] { color: var(--fg); }

/* =============================================================== buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: var(--radius); border: 1px solid transparent; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; text-align: center; }
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.btn--primary:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); color: var(--btn-fg); }
.btn--outline { color: var(--fg); border-color: var(--fg); background: transparent; }
.btn--outline:hover { background: var(--fg); color: var(--bg); }
.btn--inverse { background: var(--panel-fg); color: var(--panel-bg); border-color: var(--panel-fg); }
.btn--inverse:hover { background: var(--panel-fg-muted); color: var(--panel-bg); }
.btn--outline-inverse { color: var(--panel-fg); border-color: var(--panel-fg); background: transparent; }
.btn--outline-inverse:hover { background: var(--panel-fg); color: var(--panel-bg); }

.link-arrow { font-size: 15px; font-weight: 600; box-shadow: inset 0 -1px 0 currentColor; padding-bottom: 2px; white-space: nowrap; }

/* ======================================================= inner-page hero */
.hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.hero h1 { margin-bottom: 20px; }

/* ============================================================ row links */
.row-links { border-top: 1px solid var(--rule-strong); }
.row-link { display: grid; grid-template-columns: 56px 1fr 1.1fr 40px; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.row-link:hover { color: inherit; }
.row-link:hover .row-link__arrow { transform: translateX(6px); }
.row-link__index { font-family: var(--font-mono); font-size: 12px; color: var(--fg-faint); }
.row-link__title { font-family: var(--font-display); font-size: clamp(20px, 2.3vw, 29px); font-weight: 600; letter-spacing: -0.02em; }
.row-link__note { font-size: 15px; color: var(--fg-muted); }
.row-link__arrow { justify-self: end; font-size: 20px; transition: transform .15s ease; }

/* ================================================================ steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.step { border-top: 2px solid var(--rule-strong); padding-top: 20px; }
.step__index { display: block; font-family: var(--font-display); font-size: 36px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.step h3 { font-size: 18px; }
.step p { font-size: 15px; line-height: 1.6; color: var(--fg-muted); margin: 0; }

/* ============================================================== features */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--card); padding: 28px 24px; }
.feature h3 { font-size: 20px; }
.feature p { font-size: 15px; line-height: 1.6; color: var(--fg-muted); margin: 0; }

/* =============================================================== quotes */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.quote { margin: 0; border-left: 2px solid var(--rule-strong); padding: 4px 0 4px 20px; }
.quote__text { font-family: var(--font-display); font-size: 20px; line-height: 1.3; font-weight: 600; margin-bottom: 12px; }
.quote__note { font-size: 15px; line-height: 1.6; color: var(--fg-muted); margin: 0; }

/* ================================================================ table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); }
.table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 15px; }
.table thead th { background: var(--panel-bg); color: var(--panel-fg); text-align: left; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; padding: 16px 22px; }
.table tbody th, .table tbody td { padding: 18px 22px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: none; }
.table tbody th { font-weight: 600; width: 24%; color: var(--fg); }
.table tbody td { color: var(--fg-body); }
.table__muted { color: var(--fg-muted) !important; width: 22%; }

/* ================================================================ pills */
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 56px; padding: 12px 22px; border: 1px solid var(--rule); border-radius: var(--radius); font-family: var(--font-display); font-size: 17px; font-weight: 600; flex: 1 1 240px; }
.pill:hover { border-color: var(--fg); color: inherit; }

/* ================================================================== faq */
.faq-list { border-top: 1px solid var(--rule-strong); }
.faq { border-bottom: 1px solid var(--rule-soft); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-family: var(--font-body); font-size: 18px; font-weight: 600; letter-spacing: 0; }
.faq__icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; background: var(--fg); inset-inline: 0; top: 7px; height: 2px; }
.faq__icon::after { transform: rotate(90deg); transition: transform .15s ease; }
.faq[open] .faq__icon::after { transform: rotate(0deg); }
.faq__body { padding-bottom: 22px; max-width: 68ch; }
.faq__body p { font-size: 16px; line-height: 1.65; color: var(--fg-body); margin: 0; }

/* ============================================================== article */
.article h1 { margin-bottom: 16px; }
.article__meta { font-family: var(--font-mono); font-size: 13px; color: var(--fg-muted); display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.prose--article { max-width: none; }
.prose--article h2 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 40px; margin-bottom: 16px; }
.prose--article ul, .prose--article ol { margin: 0 0 20px; padding-left: 20px; color: var(--fg-body); font-size: 17px; line-height: 1.72; }
.prose--article li { margin-bottom: 10px; }
.prose--article a { box-shadow: inset 0 -1px 0 var(--rule-soft); }
.prose--article a:hover { box-shadow: inset 0 -1px 0 var(--fg); }
.prose--article .lede { font-size: clamp(18px, 2vw, 20px); color: var(--fg); margin-bottom: 30px; }
.article__related { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--rule); }
@media (min-width: 720px) { .prose--article ul, .prose--article ol { font-size: 18px; } }

/* ============================================================== cta band */
.cta-band__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; }
.cta-band__actions .btn { width: 100%; }

/* ============================================================== contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact-card { border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px 24px; }
.contact-card address { font-style: normal; line-height: 1.7; color: var(--fg-body); margin-bottom: 18px; }
.contact-card__big { font-family: var(--font-display); font-size: clamp(18px, 2vw, 22px); font-weight: 600; }
.contact-card__big a { box-shadow: inset 0 -1px 0 var(--rule-soft); overflow-wrap: anywhere; }
.contact-card__note { font-size: 14px; color: var(--fg-muted); }
.contact-card__links { display: flex; flex-direction: column; gap: 10px; font-weight: 500; }

.map-frame { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; line-height: 0; }
.map-frame iframe { width: 100%; height: clamp(260px, 50vw, 420px); border: 0; display: block; }

/* ================================================================= form */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form__row { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form__row--full { grid-column: 1 / -1; }
.form label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }
.form input, .form select, .form textarea { font: inherit; font-size: 16px; color: var(--fg); background: var(--bg); border: 1px solid var(--fg); border-radius: var(--radius); padding: 14px 16px; width: 100%; max-width: 100%; }
.form input, .form select { min-height: 52px; }
.form textarea { resize: vertical; }
.form__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form__note { font-size: 14px; color: var(--fg-muted); margin: 0; }
.form__note a, .form__status a { box-shadow: inset 0 -1px 0 var(--rule-soft); }
.form__status { grid-column: 1 / -1; margin: 0; font-size: 15px; }
.form__status:empty { display: none; }

/* ================================================================ people */
.people { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.person { margin: 0; }
.person__photo { aspect-ratio: 1; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__initials { font-family: var(--font-display); font-size: 36px; font-weight: 600; color: var(--fg-faint); }
.person__name { font-weight: 600; margin: 0 0 2px; font-size: 16px; }
.person__role { font-size: 14px; color: var(--fg-muted); margin: 0; }

/* ================================================================== jobs */
.jobs { display: flex; flex-direction: column; gap: 16px; }
.job { display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px 24px; flex-wrap: wrap; }
.job h3 { margin-bottom: 8px; }
.job p { font-size: 15px; color: var(--fg-muted); margin: 0; }
.job__meta { font-family: var(--font-mono); font-size: 12px; margin-top: 8px !important; }

.empty-state { border: 1px dashed var(--rule-soft); border-radius: var(--radius); padding: clamp(28px, 6vw, 64px); text-align: center; max-width: 760px; margin-inline: auto; }
.empty-state p { color: var(--fg-muted); max-width: 60ch; margin-inline: auto; }
.empty-state .actions { justify-content: center; }

/* =============================================================== footer */
.site-footer { background: var(--panel-bg); color: var(--panel-fg); }
.site-footer h2, .site-footer h3 { color: var(--panel-fg); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 48px); padding-block: clamp(40px, 7vw, 72px) 36px; }
.site-footer address { font-style: normal; font-size: 15px; line-height: 1.7; color: var(--panel-fg-muted); }
.site-footer address a { color: var(--panel-fg); box-shadow: inset 0 -1px 0 var(--panel-rule); overflow-wrap: anywhere; }
.site-footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.site-footer__links a:hover, .site-footer address a:hover { color: var(--panel-fg-muted); }
.site-footer__legal { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 22px 44px; border-top: 1px solid var(--panel-rule); font-size: 14px; color: var(--panel-fg-muted); }
.site-footer__meta { display: flex; gap: 20px; flex-wrap: wrap; }

/* ========================================================== responsive */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--rule);
    padding: 4px var(--gutter) 24px; margin-left: 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .site-nav[data-open] { display: flex; }
  .site-nav a { padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 17px; min-height: 44px; display: flex; align-items: center; }
  .site-nav a[aria-current='page'] { box-shadow: none; font-weight: 600; }
  .site-nav__cta { margin-top: 20px; border-bottom: none; justify-content: center; }

  .hero__grid, .split, .cta-band__grid { grid-template-columns: 1fr; }
  .feature-grid, .quotes, .contact-grid { grid-template-columns: 1fr; }

  .row-link { grid-template-columns: 1fr 28px; gap: 6px 16px; padding: 20px 0; }
  .row-link__index { display: none; }
  .row-link__arrow { grid-row: 1; grid-column: 2; align-self: start; }
  .row-link__note { grid-column: 1 / -1; }

  .form { grid-template-columns: 1fr; }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .cta-band__actions { flex-direction: row; flex-wrap: wrap; }
  .cta-band__actions .btn { width: auto; flex: 1 1 200px; }

  .section-head { margin-bottom: 32px; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1fr; }
  .job { flex-direction: column; align-items: flex-start; }
  .job__action, .job__action .btn { width: 100%; }
  .actions .btn, .cta-band__actions .btn { width: 100%; flex: 1 1 100%; }
  .pill { flex-basis: 100%; }
}

@media (max-width: 380px) {
  :root { --gutter: 14px; }
  .site-header__inner { gap: 8px; }
  .icon-btn { width: 40px; height: 40px; }
  .btn { padding: 0 18px; font-size: 15px; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .skip-link { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .band, .sec { padding-block: 16pt; border: none; }
  .band--ink { background: #fff !important; color: #000 !important; }
}

/* =====================================================================
   HOME PAGE — hero (.hx)
   Vertical padding now comes from .sec, so .hx has none of its own.
   ===================================================================== */
.hx {
  position: relative;
  overflow: hidden;
  --hx-text: #f4f1ea;
  --hx-muted: #a9a9a4;
  --hx-accent: #efe8da;
  --hx-accent-ink: #111111;
  --hx-border: rgba(255,255,255,.1);
  --hx-display: inherit;
}
.hx::before {
  content: "";
  position: absolute; top: -12%; left: 70%;
  width: min(92vw, 900px); height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(239,232,218,.09), transparent 72%);
  pointer-events: none;
}
.hx .shell { position: relative; }

.hx__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; text-align: left; }
.hx__left  { order: 1; }
.hx__right { order: 2; margin-top: 0; text-align: left; }

.hx__title { margin: 0 0 1.5rem; max-width: 14em; color: var(--hx-text); font-family: var(--hx-display); font-size: clamp(2.2rem, 4.2vw, 3.8rem); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.hx__lead { margin: 0 0 2rem; max-width: 34em; color: #d9d7d2; font-size: 1.1rem; line-height: 1.65; }
.hx__actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .85rem; }

.hx-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .85rem 1.6rem; border-radius: 10px; font-size: 1rem; font-weight: 600; text-decoration: none; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.hx-btn span { transition: transform .2s ease; }
.hx-btn:hover { transform: translateY(-2px); }
.hx-btn:hover span { transform: translateX(4px); }
.hx-btn--solid { background: var(--hx-accent); color: var(--hx-accent-ink); }
.hx-btn--solid:hover { background: #f7f1e5; color: var(--hx-accent-ink); }
.hx-btn--ghost { border: 1px solid var(--hx-border); color: var(--hx-text); }
.hx-btn--ghost:hover { border-color: rgba(255,255,255,.4); color: var(--hx-text); }
.hx-btn:focus-visible, .hx-row:focus-visible { outline: 2px solid var(--hx-accent); outline-offset: 3px; }

.hx__label { display: flex; align-items: center; gap: .8rem; margin: 0 0 1rem; text-align: left; color: var(--hx-muted); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.hx__label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(239,232,218,.4), transparent); transform-origin: left; animation: hx-line 1.1s .4s ease both; }
@keyframes hx-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hx-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; perspective: 1000px; }
.hx-row {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: .7rem;
  min-height: 168px; padding: 1.2rem;
  border: 1px solid var(--hx-border); border-radius: 14px;
  background: #111; color: inherit; text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.hx-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--hx-accent); transform: scaleY(0); transform-origin: top; transition: transform .35s ease; }
.hx-row::after { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(239,232,218,.12), transparent 65%); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.hx-row:hover { transform: translateY(-4px); border-color: rgba(239,232,218,.35); background: #161616; }
.hx-row:hover::before { transform: scaleY(1); }
.hx-row:hover::after { opacity: 1; }

.hx-row__icon { position: relative; z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #1e2024; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: transform .3s cubic-bezier(.2,.7,.2,1), background .3s ease, box-shadow .3s ease; }
.hx-row__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--hx-accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hx-row__icon svg path { stroke-dasharray: 80; stroke-dashoffset: 0; }
.hx-row:hover .hx-row__icon { transform: scale(1.1) rotate(-6deg); background: var(--hx-accent); box-shadow: 0 8px 24px -8px rgba(239,232,218,.5); }
.hx-row:hover .hx-row__icon svg { stroke: #111; }
.hx-row:hover .hx-row__icon svg path { animation: hx-draw .8s ease both; }
@keyframes hx-draw { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }

.hx-row__text { position: relative; z-index: 1; min-width: 0; }
.hx-row h3 { margin: 0 0 .35rem; color: var(--hx-text); font-family: var(--hx-display); font-size: 1.1rem; font-weight: 500; }
.hx-row p  { margin: 0; color: var(--hx-muted); font-size: .88rem; line-height: 1.5; }
.hx-row__go { position: absolute; right: 1rem; top: 1rem; z-index: 1; color: var(--hx-accent); font-size: 1rem; opacity: 0; transform: translateX(-6px); transition: opacity .25s ease, transform .25s ease; }
.hx-row:hover .hx-row__go { opacity: 1; transform: none; }

/* entrance animation */
@keyframes hx-rise  { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hx-slide { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.hx__left > *, .hx__label { animation: hx-rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hx-row { animation: hx-slide .7s cubic-bezier(.2,.7,.2,1) backwards; }
.hx__left > :nth-child(2) { animation-delay: .08s; }
.hx__left > :nth-child(3) { animation-delay: .16s; }
.hx__left > :nth-child(4) { animation-delay: .24s; }
.hx__label { animation-delay: .32s; }
.hx-row:nth-child(1) { animation-delay: .4s; }
.hx-row:nth-child(2) { animation-delay: .48s; }
.hx-row:nth-child(3) { animation-delay: .56s; }
.hx-row:nth-child(4) { animation-delay: .64s; }

/* hover pop-up (desktop only) */
@media (hover: hover) {
  .hx-row { --rx: 0deg; --ry: 0deg; }
  .hx-list .hx-row { transition-property: transform, box-shadow, border-color, background, opacity, filter; transition-duration: .3s; transition-timing-function: cubic-bezier(.2,.7,.2,1); }
  .hx-row:hover {
    z-index: 5;
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-10px) scale(1.06);
    background: linear-gradient(160deg, #1d1d1d, #0f0f0f);
    border-color: rgba(239,232,218,.45);
    box-shadow: 0 34px 60px -22px rgba(0,0,0,.95), 0 0 0 1px rgba(239,232,218,.12), 0 0 46px -12px rgba(239,232,218,.3);
  }
  .hx-row:hover h3 { color: var(--hx-accent); }
  .hx-list:hover .hx-row:not(:hover) { opacity: .55; filter: saturate(.7); transform: scale(.98); }
}

@media (max-width: 960px) { .hx__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .hx-list { grid-template-columns: 1fr; }
  .hx-row { min-height: 0; }
  .hx__actions .hx-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hx__left > *, .hx__label, .hx__label::after, .hx-row { animation: none; }
  .hx-btn, .hx-btn span, .hx-row, .hx-row::before, .hx-row__go { transition: none; }
  .hx-row:hover { transform: none; }
}

/* =====================================================================
   HOME PAGE — services (.svc)
   Heading row is the shared .sec-head; only the cards live here.
   ===================================================================== */
.svc {
  --svc-surface: var(--surface, #14161a);
  --svc-border: rgba(255,255,255,.10);
  --svc-text: #f4f4f2;
  --svc-muted: rgba(244,244,242,.68);
  --svc-accent: #ece7da;
  --svc-accent-ink: #111;
}

.svc__grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .svc__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .svc__grid { grid-template-columns: 1fr; } }

.svc-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 2rem 1.75rem 2.25rem;
  background: var(--svc-surface);
  border: 1px solid var(--svc-border);
  border-radius: 18px;
  color: var(--svc-text); text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.svc-card::before { content: ""; position: absolute; top: -48px; right: -48px; width: 120px; height: 120px; border-radius: 50%; background: var(--svc-accent); opacity: .08; transition: opacity .25s ease, transform .25s ease; }
.svc-card:hover, .svc-card:focus-visible { transform: translateY(-6px); border-color: var(--svc-accent); box-shadow: 0 18px 40px rgba(0,0,0,.4); color: var(--svc-text); }
.svc-card:hover::before { opacity: .16; transform: scale(1.15); }

.svc-card__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1.5rem; border-radius: 50%; background: var(--svc-accent); color: var(--svc-accent-ink); }
.svc-card__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-card h3 { margin: 0 0 .75rem; font-size: 1.2rem; line-height: 1.35; }
.svc-card p  { margin: 0; color: var(--svc-muted); line-height: 1.7; font-size: .97rem; }

/* =====================================================================
   HOME PAGE — industries (.ind), pure-CSS tabs
   Padding and top rule now come from .sec.
   ===================================================================== */
.ind__box { position: relative; }
.ind__radio { position: absolute; opacity: 0; pointer-events: none; }

.ind__tabs { display: flex; gap: .6rem; margin-bottom: 1.25rem; padding-bottom: .4rem; overflow-x: auto; scrollbar-width: none; }
.ind__tabs::-webkit-scrollbar { display: none; }
.ind-tab { flex: none; display: inline-flex; align-items: center; gap: .6rem; padding: .65rem 1.05rem; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: #111; color: #a9a9a4; font-size: .95rem; cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; }
.ind-tab:hover { color: #f4f1ea; border-color: rgba(239,232,218,.4); transform: translateY(-2px); }
.ind-tab__icon { display: grid; place-items: center; }
.ind-tab__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

#ind-1:checked ~ .ind__tabs label[for="ind-1"],
#ind-2:checked ~ .ind__tabs label[for="ind-2"],
#ind-3:checked ~ .ind__tabs label[for="ind-3"],
#ind-4:checked ~ .ind__tabs label[for="ind-4"],
#ind-5:checked ~ .ind__tabs label[for="ind-5"],
#ind-6:checked ~ .ind__tabs label[for="ind-6"] { background: #efe8da; color: #111; border-color: #efe8da; }

#ind-1:focus-visible ~ .ind__tabs label[for="ind-1"],
#ind-2:focus-visible ~ .ind__tabs label[for="ind-2"],
#ind-3:focus-visible ~ .ind__tabs label[for="ind-3"],
#ind-4:focus-visible ~ .ind__tabs label[for="ind-4"],
#ind-5:focus-visible ~ .ind__tabs label[for="ind-5"],
#ind-6:focus-visible ~ .ind__tabs label[for="ind-6"] { outline: 2px solid #efe8da; outline-offset: 3px; }

.ind-panel { display: none; position: relative; overflow: hidden; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; background: linear-gradient(160deg, #171717, #0e0e0e); }
#ind-1:checked ~ .ind__panels .ind-panel:nth-child(1),
#ind-2:checked ~ .ind__panels .ind-panel:nth-child(2),
#ind-3:checked ~ .ind__panels .ind-panel:nth-child(3),
#ind-4:checked ~ .ind__panels .ind-panel:nth-child(4),
#ind-5:checked ~ .ind__panels .ind-panel:nth-child(5),
#ind-6:checked ~ .ind__panels .ind-panel:nth-child(6) { display: grid; animation: ind-in .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes ind-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.ind-panel__text { position: relative; z-index: 1; text-align: left; }
.ind-panel__count { margin: 0 0 .8rem; color: #a9a9a4; font-size: .85rem; letter-spacing: .12em; }
.ind-panel h3 { margin: 0 0 .8rem; color: #f4f1ea; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -.03em; }
.ind-panel__lead { margin: 0 0 .7rem; color: #d9d7d2; font-size: 1.05rem; line-height: 1.6; }
.ind-panel__desc { margin: 0 0 1.6rem; color: #a9a9a4; line-height: 1.6; }
.ind-btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: .8rem 1.5rem; border-radius: 10px; background: #efe8da; color: #111; font-weight: 600; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.ind-btn span { transition: transform .2s ease; }
.ind-btn:hover { transform: translateY(-2px); background: #f7f1e5; color: #111; }
.ind-btn:hover span { transform: translateX(4px); }
.ind-btn:focus-visible { outline: 2px solid #efe8da; outline-offset: 3px; }

.ind-panel__media { position: relative; z-index: 1; aspect-ratio: 4 / 3; overflow: hidden; isolation: isolate; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: #0c0c0c; }
.ind-photo { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(.72) contrast(1.05) saturate(.85); transform: scale(1.02); transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .5s ease; animation: ind-art .8s .1s cubic-bezier(.2,.7,.2,1) both; }
.ind-panel__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg,  rgba(10,10,10,.75) 0%, rgba(10,10,10,0) 30%),
    linear-gradient(0deg,   rgba(10,10,10,.70) 0%, rgba(10,10,10,0) 38%),
    linear-gradient(180deg, rgba(10,10,10,.45) 0%, rgba(10,10,10,0) 25%),
    linear-gradient(270deg, rgba(10,10,10,.45) 0%, rgba(10,10,10,0) 20%),
    rgba(0,0,0,.12);
  box-shadow: inset 0 0 70px 14px rgba(0,0,0,.55);
}
.ind-panel:hover .ind-photo { transform: scale(1.06); filter: brightness(.82) contrast(1.05) saturate(.9); }
@keyframes ind-art { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1.02); } }

@media (max-width: 860px) {
  .ind-panel { grid-template-columns: 1fr; }
  .ind-panel__media { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
  .ind-panel, .ind-photo { animation: none !important; }
  .ind-tab, .ind-btn, .ind-btn span { transition: none; }
}

/* =====================================================================
   HOME PAGE — clients (.cl)
   Heading row is the shared .sec-head + .regions; logo grid lives here.
   ===================================================================== */
.cl {
  --cl-logo-h: clamp(80px, 8vw, 104px);
  --cl-col-gap: clamp(16px, 2.4vw, 36px);
  --cl-row-gap: clamp(20px, 3vw, 44px);
  /* grayscale + invert + screen blend: white logo ground vanishes on the dark page */
  --cl-logo-filter: grayscale(1) invert(1) contrast(1.1);
  overflow: hidden;
}

.cl__group { padding-top: clamp(1.75rem, 3vw, 2.5rem); border-top: 1px solid rgba(255,255,255,.08); }
.cl__group + .cl__group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

.cl__label { display: flex; align-items: center; gap: .8rem; margin: 0 0 clamp(1.75rem, 3vw, 2.5rem); color: #a9a9a4; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.cl__label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(239,232,218,.4), transparent); }

.cl-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--cl-row-gap) var(--cl-col-gap); margin: 0; padding: 0; list-style: none; }
.cl-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cl-tile { display: flex; align-items: center; justify-content: center; height: var(--cl-logo-h); min-width: 0; margin: 0; padding: 6px 10px; }
.cl-tile img { display: block; width: 100%; height: 100%; max-width: 190px; object-fit: contain; filter: var(--cl-logo-filter); mix-blend-mode: screen; opacity: .9; }

@media (max-width: 1024px) {
  .cl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cl-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .cl { --cl-logo-h: 76px; --cl-col-gap: 12px; --cl-row-gap: 18px; }
  .cl-grid, .cl-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-tile { padding: 4px 6px; }
}

/* rotating pages (only active when clients.js runs) */
.cl-grid[data-paged] { --cl-rows: 3; align-content: start; min-height: calc(var(--cl-rows) * var(--cl-logo-h) + (var(--cl-rows) - 1) * var(--cl-row-gap)); }
.cl-tile[hidden] { display: none; }
.cl-tile img { transition: opacity .3s ease; }
.cl-grid.is-fading .cl-tile img { opacity: 0; }

.cl-ctrl { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.cl-ctrl[hidden] { display: none; }
.cl-ctrl__btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; background: none; color: #efe8da; cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.cl-ctrl__btn:hover { border-color: rgba(239,232,218,.5); color: #fff; }
.cl-ctrl__btn:focus-visible, .cl-dot:focus-visible { outline: 2px solid #efe8da; outline-offset: 3px; }
.cl-ctrl__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cl-dots { display: flex; align-items: center; gap: .6rem; }
.cl-dot { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.25); cursor: pointer; transition: width .25s ease, background .25s ease; }
.cl-dot::after { content: ""; position: absolute; inset: -10px -4px; }
.cl-dot[aria-current="true"] { width: 24px; background: #efe8da; }

@media (max-width: 1024px) { .cl-grid[data-paged] { --cl-rows: 4; } }
@media (max-width: 560px)  { .cl-grid[data-paged] { --cl-rows: 5; } }
@media (prefers-reduced-motion: reduce) { .cl-tile img, .cl-dot, .cl-ctrl__btn { transition: none; } }

/* =====================================================================
   OTHER PAGES (kept in case about / industries / contact use them).
   Delete a block if you confirm no page uses it.
   ===================================================================== */

/* ---- About Us ---- */
.about { padding: 80px 0; overflow-x: hidden; }
.about .container { max-width: 1000px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.about .section-title { text-align: center; padding-bottom: 24px; }
.about .section-title h2 { text-align: center; margin: 0 auto; }
.about .section-title h2::after { left: 50%; transform: translateX(-50%); }
.about .row.content { margin-left: 0; margin-right: 0; display: block; }
.about .row.content > div { width: 100%; max-width: 100%; padding-left: 0; padding-right: 0; text-align: center; }
.about .row.content p { max-width: 900px; margin: 0 auto; text-align: center; line-height: 1.8; }

/* ---- Why us / features ---- */
.why-us, .why-us *, .why-us *::before, .why-us *::after { box-sizing: border-box; }
.why-us { width: 100%; padding: 80px 0; background: transparent; color: #fff; overflow: hidden; }
.why-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.why-title { margin: 0 0 48px; text-align: center; font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; color: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; width: 100%; margin: 0; padding: 0; }
.why-card { display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 22px 24px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; transition: border-color .25s ease, background .25s ease, transform .25s ease; }
.why-card:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.why-card svg { display: block; flex: 0 0 26px; width: 26px; height: 26px; opacity: .85; }
.why-label { font-size: 1rem; font-weight: 500; line-height: 1.3; color: #fff; text-align: left; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .why-grid { grid-template-columns: 1fr; } }

/* ---- Stats ---- */
#stats, #stats *, #stats *::before, #stats *::after { box-sizing: border-box; }
#stats { display: block; width: 100%; padding: 60px 0 80px; background: transparent; color: #fff; overflow: hidden; }
#stats .stats-wrap { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 48px; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
#stats .stats-art { display: flex; justify-content: center; align-items: center; width: 100%; margin: 0; padding: 0; }
#stats .stats-art img { display: block; width: 100%; max-width: 520px; height: auto; }
#stats .stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; width: 100%; max-width: 380px; margin: 0; padding: 0; }
#stats .stats-card { display: block; padding: 16px 18px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; transition: border-color .25s ease, background .25s ease, transform .25s ease; }
#stats .stats-card:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
#stats .stats-number { display: block; margin: 0 0 10px; font-size: 1.75rem; font-weight: 600; line-height: 1; letter-spacing: -0.01em; color: #fff; }
#stats .stats-row { display: flex; align-items: center; gap: 8px; }
#stats .stats-row svg { display: block; flex: 0 0 20px; width: 20px; height: 20px; opacity: .85; }
#stats .stats-label { font-size: .875rem; font-weight: 500; color: #fff; }
@media (max-width: 900px) { #stats .stats-wrap { grid-template-columns: 1fr; } #stats .stats-grid { max-width: 100%; } }
@media (max-width: 480px) { #stats .stats-grid { grid-template-columns: 1fr; } }

/* ---- Industries page: photo panels (.ixp) ---- */
.ixp-wrap .ixp-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 20px; }
@media (max-width: 860px) { .ixp-wrap .ixp-row { grid-template-columns: 1fr; } }

.ixp-panel { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; height: 300px; padding: 24px; text-align: left; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; background: #1a1a1a; color: inherit; text-decoration: none; transition: border-color .3s ease; }
.ixp-panel:hover, .ixp-panel:focus-visible { border-color: rgba(255,255,255,.5); }
.ixp-panel__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; background-repeat: no-repeat; transition: transform .5s ease; }
.ixp-panel__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.45) 0%, rgba(10,10,10,.88) 100%); }
.ixp-panel:hover .ixp-panel__bg, .ixp-panel:focus-visible .ixp-panel__bg { transform: scale(1.05); }
.ixp-panel__top { display: flex; justify-content: flex-end; width: 100%; }
.ixp-panel__icon { flex: 0 0 44px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; background: rgba(255,255,255,.12); transition: background .3s ease, border-color .3s ease; }
.ixp-panel__icon svg { display: block; width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s ease; }
.ixp-panel__num { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .08em; line-height: 44px; opacity: .6; }
.ixp-panel__body { width: 100%; }
.ixp-panel h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.25; }
.ixp-panel__body p { display: block; margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.85); }
.ixp-panel__go { display: block; margin-top: 8px; font-size: 14px; }
.ixp-panel:hover .ixp-panel__icon, .ixp-panel:focus-visible .ixp-panel__icon { background: #f2f2f2; border-color: #f2f2f2; }
.ixp-panel:hover .ixp-panel__icon svg, .ixp-panel:focus-visible .ixp-panel__icon svg { stroke: #0e0e0e; }

/* ---- Contact page (.ct-wrap) ---- */
.ct-wrap .ct-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: stretch; }
.ct-wrap .ct-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ct-wrap .ct-map { flex: 1; min-height: 320px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; overflow: hidden; background: #151515; }
.ct-wrap .ct-map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(1) invert(.92) contrast(.9); transition: filter .3s ease; }
.ct-wrap .ct-map:hover iframe { filter: none; }

.ct-wrap .ct-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ct-wrap .ct-info__item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.03); }
.ct-wrap .ct-info__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.ct-wrap .ct-info__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ct-wrap .ct-info__label { margin: 0 0 2px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.ct-wrap .ct-info__item p:not(.ct-info__label), .ct-wrap .ct-info__item a { margin: 0; font-size: 15px; line-height: 1.5; }

.ct-wrap .ct-card { padding: 32px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(255,255,255,.04); min-width: 0; }
.ct-wrap .ct-card__title { margin: 6px 0 10px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
.ct-wrap .ct-card__note { margin: 0 0 26px; opacity: .7; line-height: 1.55; }

.ct-wrap .ct-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ct-wrap .ct-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ct-wrap .ct-field--full { grid-column: 1 / -1; }
.ct-wrap .ct-field label { font-size: 13px; font-weight: 500; opacity: .85; }
.ct-wrap .ct-field input, .ct-wrap .ct-field select, .ct-wrap .ct-field textarea { width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; color: inherit; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; transition: border-color .2s ease, box-shadow .2s ease; }
.ct-wrap .ct-field textarea { resize: vertical; min-height: 130px; }
.ct-wrap .ct-field ::placeholder { color: rgba(255,255,255,.35); }
.ct-wrap .ct-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.ct-wrap .ct-field input:focus, .ct-wrap .ct-field select:focus, .ct-wrap .ct-field textarea:focus { outline: none; border-color: rgba(255,255,255,.6); box-shadow: 0 0 0 3px rgba(255,255,255,.12); }

.ct-wrap .ct-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 4px; }
.ct-wrap .ct-note { margin: 0; font-size: 14px; opacity: .7; }
.ct-wrap .ct-status { margin: 0; min-height: 1.2em; font-size: 14px; }

.ct-wrap .ct-steps { margin-top: 56px; }
.ct-wrap .ct-steps__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ct-wrap .ct-step { padding: 22px 24px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.03); }
.ct-wrap .ct-step__num { font-family: "IBM Plex Mono", monospace; font-size: 14px; opacity: .55; }
.ct-wrap .ct-step h3 { margin: 10px 0 6px; font-size: 19px; }
.ct-wrap .ct-step p { margin: 0; opacity: .72; line-height: 1.55; font-size: 15px; }

@media (max-width: 960px) {
  .ct-wrap .ct-grid { grid-template-columns: 1fr; }
  .ct-wrap .ct-card { order: -1; }
  .ct-wrap .ct-map, .ct-wrap .ct-map iframe { min-height: 280px; }
  .ct-wrap .ct-steps__list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ct-wrap .ct-card { padding: 22px 18px; }
  .ct-wrap .ct-form { grid-template-columns: 1fr; }
}

/* Centered inner-page hero (Services, Industries) */
.hero--center .hero__text {
  max-width: 62rem;
  margin-inline: auto;
  text-align: center;
}
.hero--center h1 {
  text-align: center;
  margin-inline: auto;
}
.hero--center .lede {
  margin-inline: auto;   /* centres the paragraph box itself */
  text-align: center;
}

/* ===== ERPNext implementation page additions =====
   Append to the END of assets/css/site.css.
   Uses the site's own tokens (--fg, --rule, --font-*, --shell ...). */

/* ---------- efx hero (needs class="efx-hero sec sec--first") ---------- */
.efx-hero { border-bottom: 1px solid var(--rule); }

.efx-hero__wrap {                       /* sits on .shell: width + gutters */
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.efx-hero__content { min-width: 0; }

.efx-hero__kicker {
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* h1 already styled globally; just tighten spacing */
.efx-hero__title { margin: 0 0 24px; max-width: 16em; }

.efx-hero__intro {
  margin: 0 0 32px;
  max-width: 58ch;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  color: var(--fg-body);
}

.efx-hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.efx-hero__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: 16px; font-weight: 600; text-align: center;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.efx-hero__btn:hover { transform: translateY(-2px); }
.efx-hero__btn--solid { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.efx-hero__btn--solid:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); color: var(--btn-fg); }
.efx-hero__btn--line { color: var(--fg); border-color: var(--rule-soft); background: transparent; }
.efx-hero__btn--line:hover { border-color: var(--fg); color: var(--fg); }

/* ---------- "At a glance" card ---------- */
.efx-hero__side { min-width: 0; }
.efx-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}
.efx-card__head { padding: 16px 24px; border-bottom: 1px solid var(--rule); }
.efx-card__title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-muted);
}
.efx-card__list { margin: 0; padding: 0; }
.efx-card__row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; padding: 16px 24px;
  border-bottom: 1px solid var(--rule);
}
.efx-card__row:last-child { border-bottom: 0; }
.efx-card__label { margin: 0; font-size: 14px; color: var(--fg-muted); }
.efx-card__value { margin: 0; font-size: 15px; font-weight: 500; text-align: right; color: var(--fg); }

@media (max-width: 860px) {
  .efx-hero__wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .efx-hero__btn { width: 100%; }
  .efx-card__row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .efx-card__value { text-align: left; }
}

/* ---------- "Related services" cards (.card-grid / .card were undefined) ---------- */
.card-grid { display: grid; gap: 20px; margin-top: 8px; }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  display: block;
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--fg-muted); color: inherit; }
.card h3 { font-size: 20px; }
.card p { font-size: 15px; line-height: 1.6; color: var(--fg-muted); margin: 0; }
@media (max-width: 900px) { .card-grid--3 { grid-template-columns: 1fr; } }

/* ---------- 5-step process: 5 across instead of 4 + 1 orphan ---------- */
@media (min-width: 1081px) {
  .steps:has(> .step:nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
}

/* ===== Inner-page hero (.hero + .glance) — ERP customisation etc. =====
   Append to the END of assets/css/site.css (after efx-hero.css).
   No HTML changes needed. */

/* left column: .lede is centred globally, so force left alignment here */
.hero:not(.hero--center) .lede {
  margin: 0 0 28px;
  max-width: 58ch;
  text-align: left;
}
.hero:not(.hero--center) h1 { max-width: 16em; }
.hero__grid { align-items: center; }
.hero__text, .hero__aside { min-width: 0; }

/* ---------- "At a glance" card ---------- */
.glance {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}
.glance__head { padding: 16px 24px; border-bottom: 1px solid var(--rule); }
.glance__head .eyebrow { margin: 0; }
.glance__list { margin: 0; padding: 0; }
.glance__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--rule);
}
.glance__row:last-child { border-bottom: 0; }
.glance__row dt { margin: 0; font-size: 14px; color: var(--fg-muted); }
.glance__row dd { margin: 0; font-size: 15px; font-weight: 500; text-align: right; color: var(--fg); }  /* removes dd indent */

@media (max-width: 560px) {
  .glance__row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .glance__row dd { text-align: left; }
}

/* ===== Blog cards (blog.html) =====
   Append to the END of assets/css/site.css.
   Scoped to .blog / .blog-* only; no HTML changes needed. */

.blog__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
  flex-wrap: wrap;
  margin-bottom: var(--head-gap);
}
.blog__head .eyebrow { margin-bottom: 14px; }
.blog__title {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.1;
}

.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.blog-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  color: var(--fg);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.blog-card::before {              /* soft corner glow, same feel as service cards */
  content: "";
  position: absolute;
  top: -48px; right: -48px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: #ece7da;
  opacity: .06;
  transition: opacity .25s ease, transform .25s ease;
}
.blog-card:hover,
.blog-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--fg-muted);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
  color: var(--fg);
}
.blog-card:hover::before { opacity: .12; transform: scale(1.15); }

.blog-card__meta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.blog-card__tag {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-body);
  white-space: nowrap;
}
.blog-card__time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-faint);
  white-space: nowrap;
}

.blog-card h3 {
  position: relative;
  margin: 0 0 12px;
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.3;
}
.blog-card p {
  position: relative;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-muted);
}

.blog-card__cta {
  position: relative;
  margin-top: auto;               /* pins "Read article" to the card bottom */
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
}
.blog-card__cta span { display: inline-block; transition: transform .2s ease; }
.blog-card:hover .blog-card__cta span { transform: translateX(5px); }

@media (max-width: 1080px) {
  .blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .blog__grid { grid-template-columns: 1fr; }
  .blog-card { padding: 24px 20px; }
}