/* =====================================================================
   Majid Traders — public website design system + layout + home page
   One file, built on CSS custom properties. Mobile-first.
   Contrast (WCAG AA): text on light 15:1, muted 5.9:1, orange-ink 5:1,
   charcoal on orange buttons 5.3:1, orange on charcoal 5.3:1.
   ===================================================================== */

/* ---------- Fonts (self-hosted, variable, swap) ---------- */
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2-variations"), url("../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ---------- Design tokens ---------- */
:root {
  /* Colour */
  --orange: #F26B1D;          /* MT logo orange — accents, buttons, numbers on dark */
  --orange-hover: #FF7F33;
  --orange-ink: #B5490C;      /* orange for TEXT on light backgrounds (AA) */
  --orange-soft: #FDE9DC;
  --charcoal: #1E2124;        /* dark sections */
  --charcoal-2: #2A2E33;
  --charcoal-3: #353A40;
  --bg: #FAF7F2;              /* warm off-white */
  --surface: #FFFFFF;
  --surface-2: #F3EEE6;
  --text: #1E2124;
  --muted: #5B6067;
  --line: #E7E1D8;
  --on-dark: #F4F1EC;
  --on-dark-muted: #B4B8BE;
  --line-dark: rgba(255, 255, 255, .12);

  /* Type */
  --font-display: "Bricolage Grotesque", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --step--1: clamp(.83rem, .8rem + .15vw, .9rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.125rem);
  --step-1: clamp(1.15rem, 1.06rem + .45vw, 1.4rem);
  --step-2: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  --step-3: clamp(1.85rem, 1.45rem + 2vw, 3rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.5vw, 4.4rem);
  --step-5: clamp(2.6rem, 1.6rem + 5.4vw, 6.6rem);

  /* Space */
  --space-2xs: .25rem; --space-xs: .5rem; --space-s: .75rem; --space-m: 1rem; --space-l: 1.5rem;
  --space-xl: clamp(2rem, 1.6rem + 2vw, 3rem);
  --space-2xl: clamp(3rem, 2.2rem + 4vw, 5rem);
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --gutter: clamp(1rem, .5rem + 3vw, 2.5rem);
  --container: 80rem;

  /* Shape */
  --radius-s: .5rem; --radius: 1rem; --radius-l: 1.5rem; --radius-xl: 2rem; --radius-pill: 999px;
  --shadow-s: 0 1px 2px rgba(30, 33, 36, .06), 0 2px 8px rgba(30, 33, 36, .05);
  --shadow: 0 10px 30px -10px rgba(30, 33, 36, .18);
  --shadow-l: 0 30px 60px -20px rgba(30, 33, 36, .3);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 4.5rem;
  --preview-h: 0px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
::selection { background: var(--orange); color: var(--charcoal); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--space-m); top: -10rem; z-index: 200; padding: .75rem 1.25rem; border-radius: var(--radius-s); background: var(--orange); color: var(--charcoal); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: var(--space-m); }
.icon { flex: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-l); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--dark { background: var(--charcoal); color: var(--on-dark); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: var(--space-m);
  color: var(--orange-ink); font-size: var(--step--1); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light, .section--dark .eyebrow { color: var(--orange); }
.section-title { font-size: var(--step-4); max-width: 18ch; }
.section-head { margin-bottom: var(--space-xl); }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-m) var(--space-xl); margin-bottom: var(--space-xl); }
.section-head-row .section-head { margin-bottom: 0; }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--charcoal); --btn-fg: #fff; --btn-border: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .8rem 1.5rem; border: 2px solid var(--btn-border); border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg); font: 700 var(--step--1)/1.2 var(--font-body); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { --btn-bg: var(--orange); --btn-fg: var(--charcoal); }
.btn--primary:hover { --btn-bg: var(--orange-hover); }
.btn--secondary { --btn-bg: var(--charcoal); --btn-fg: #fff; }
.btn--secondary:hover { --btn-bg: #000; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-border: var(--line); }
.btn--ghost:hover { --btn-border: var(--charcoal); }
.btn--ghost-light { --btn-bg: rgba(255, 255, 255, .06); --btn-fg: #fff; --btn-border: rgba(255, 255, 255, .45); }
.btn--ghost-light:hover { --btn-bg: #fff; --btn-fg: var(--charcoal); --btn-border: #fff; }
.btn--sm { min-height: 2.5rem; padding: .55rem 1.1rem; }
.btn--lg { min-height: 3.5rem; padding: 1rem 1.9rem; font-size: var(--step-0); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; color: var(--orange-ink); font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.round-btn { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: background-color .25s, border-color .25s, transform .3s var(--ease); }
.round-btn:hover { background: var(--charcoal); border-color: var(--charcoal); color: #fff; transform: scale(1.05); }

/* ---------- Cards & badges ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-s); }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .65rem; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text); font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
.badge--accent { background: var(--orange); color: var(--charcoal); }
.badge--dark { background: var(--charcoal); color: #fff; }

/* =====================================================================
   Preview bar
   ===================================================================== */
.is-preview { --preview-h: 2.75rem; }
.preview-bar {
  position: relative; z-index: 120; display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 1rem;
  height: var(--preview-h); padding: 0 var(--gutter); background: var(--orange); color: var(--charcoal); font-size: .85rem; white-space: nowrap; overflow: hidden;
}
.preview-bar__long { display: none; }
@media (min-width: 900px) { .preview-bar__long { display: inline; } }
.preview-bar a { color: var(--charcoal); font-weight: 700; }

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  position: absolute; top: var(--preview-h); left: 0; right: 0; z-index: 100;
  color: var(--text); background: var(--bg); border-bottom: 1px solid var(--line);
  transition: transform .45s var(--ease), background-color .35s, color .35s, box-shadow .35s, border-color .35s;
}
.js .site-header { position: fixed; }
.has-hero .site-header { background: transparent; color: #fff; border-color: transparent; }
.js .site-header.is-scrolled { top: 0; background: rgba(250, 247, 242, .92); color: var(--text); border-color: var(--line); box-shadow: var(--shadow-s); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.js .site-header.is-hidden { transform: translateY(calc(-100% - var(--preview-h))); }
.site-header__inner { display: flex; align-items: center; gap: var(--space-l); min-height: var(--header-h); }
body:not(.has-hero) main { padding-top: calc(var(--header-h) + 1px); }

.logo { display: inline-flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; margin-right: auto; }
.logo__badge { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .7rem; background: var(--orange); color: var(--charcoal); font: 800 1.05rem/1 var(--font-display); letter-spacing: -.04em; }
.logo__text { display: grid; font: 800 1.15rem/1.05 var(--font-display); letter-spacing: -.02em; }
.logo__text small { font: 500 .7rem/1.3 var(--font-body); letter-spacing: .03em; opacity: .8; }
.logo__img { width: auto; max-height: 2.75rem; }

.site-nav { display: none; }
.site-nav ul { display: flex; gap: .25rem; list-style: none; }
.site-nav a { position: relative; display: block; padding: .5rem .8rem; border-radius: var(--radius-pill); font-weight: 600; font-size: .95rem; text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; background: var(--orange); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header__actions { display: flex; align-items: center; gap: var(--space-s); }
.staff-link { display: none; font-size: .85rem; font-weight: 600; opacity: .85; text-decoration: none; }
.staff-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.site-header__cta { display: none; }
.menu-toggle { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 1.5px solid currentColor; color: inherit; }
.menu-toggle__bars { display: grid; gap: 6px; width: 1.2rem; }
.menu-toggle__bars span { height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease); }
.menu-open .menu-toggle__bars span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle__bars span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (min-width: 640px) { .site-header__cta { display: inline-flex; } }
@media (min-width: 1100px) {
  .site-nav { display: block; }
  .staff-link { display: inline; }
  .menu-toggle { display: none; }
}

/* Mobile menu (full screen) */
.mobile-menu { position: fixed; inset: 0; z-index: 90; background: var(--charcoal); color: var(--on-dark); overflow-y: auto; opacity: 0; transition: opacity .4s var(--ease); }
.mobile-menu.is-open { opacity: 1; }
.menu-open .site-header { color: #fff; background: transparent !important; border-color: transparent !important; box-shadow: none !important; transform: none !important; backdrop-filter: none !important; }
.mobile-menu__inner { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-xl); min-height: 100%; padding-top: calc(var(--header-h) + var(--preview-h) + var(--space-xl)); padding-bottom: var(--space-xl); }
.mobile-menu__links { list-style: none; display: grid; gap: .2rem; }
.mobile-menu__links a { display: inline-block; padding: .2rem 0; font: 700 clamp(2rem, 1.4rem + 4vw, 3.2rem)/1.1 var(--font-display); letter-spacing: -.03em; text-decoration: none; }
.mobile-menu__links a[aria-current="page"], .mobile-menu__links a:hover { color: var(--orange); }
.mobile-menu__links li, .mobile-menu__foot > * { transform: translateY(24px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.mobile-menu.is-open .mobile-menu__links li, .mobile-menu.is-open .mobile-menu__foot > * { transform: none; opacity: 1; }
.mobile-menu.is-open li:nth-child(2) { transition-delay: .04s; } .mobile-menu.is-open li:nth-child(3) { transition-delay: .08s; }
.mobile-menu.is-open li:nth-child(4) { transition-delay: .12s; } .mobile-menu.is-open li:nth-child(5) { transition-delay: .16s; }
.mobile-menu.is-open li:nth-child(6) { transition-delay: .2s; } .mobile-menu.is-open li:nth-child(7) { transition-delay: .24s; }
.mobile-menu.is-open .mobile-menu__foot > * { transition-delay: .3s; }
.mobile-menu__foot { display: grid; gap: var(--space-m); justify-items: start; color: var(--on-dark-muted); }
.mobile-menu__foot a:not(.btn) { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.mobile-menu__foot a:not(.btn):hover { color: #fff; }
.menu-open, .menu-open body { overflow: hidden; }

/* =====================================================================
   Footer — premium 4-column layout on charcoal
   Desktop 4 columns · tablet 2 · mobile 1. Content never depends on JS.
   ===================================================================== */
.site-footer { position: relative; overflow: hidden; isolation: isolate; background: var(--charcoal); color: var(--on-dark-muted); padding-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); font-size: .95rem; line-height: 1.6; }
.site-footer::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(242, 107, 29, .6), transparent); }
.site-footer a { color: var(--on-dark); text-decoration: none; transition: color .2s; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--orange); }
.site-footer__grid { display: grid; gap: var(--space-xl) var(--space-l); grid-template-columns: 1fr; }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .site-footer__grid { grid-template-columns: 1.35fr 1.15fr .9fr 1.25fr; gap: var(--space-xl) clamp(2rem, 1rem + 3vw, 4rem); } }
.site-footer .logo { color: #fff; margin: 0; }
.site-footer .logo__badge { width: 2.75rem; height: 2.75rem; }
.site-footer .logo__img { max-height: 3rem; }
.site-footer__tagline { margin: .7rem 0 0; color: var(--on-dark-muted); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.site-footer__tagline::before { content: ""; display: inline-block; width: 1.25rem; height: 2px; margin-right: .6rem; vertical-align: middle; background: var(--orange); border-radius: 2px; }
.site-footer__intro { margin-top: var(--space-m); max-width: 38ch; color: var(--on-dark-muted); font-size: .95rem; }
.site-footer__title { margin-bottom: var(--space-m); color: #fff; font: 700 .8rem/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.site-footer__links { list-style: none; display: grid; gap: .15rem; }
.site-footer__links--two { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.site-footer__links a { display: inline-block; padding: .3rem 0; color: var(--on-dark-muted); }
.site-footer__links a:hover, .site-footer__links a:focus-visible { color: #fff; transform: translateX(3px); }
.site-footer__links a { transition: color .2s, transform .25s var(--ease); }
.site-footer__col .btn { margin-top: var(--space-m); }

/* Contact lines: icon column + text column, perfectly aligned */
.ft-contact { list-style: none; display: grid; gap: .85rem; }
.ft-contact li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: .75rem; align-items: start; }
.ft-contact__icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .6rem; background: rgba(242, 107, 29, .12); color: var(--orange); }
.ft-contact li > a, .ft-contact li > span:not(.ft-contact__icon) { padding-top: .2rem; color: var(--on-dark); }
.ft-contact__email { overflow-wrap: anywhere; }

/* Social icons */
.social { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--space-l); }
.social a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line-dark); color: var(--on-dark); transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease); }
.social a:hover, .social a:focus-visible { background: var(--orange); color: var(--charcoal); border-color: var(--orange); transform: translateY(-2px); }

/* Big faint wordmark (decoration only) */
.site-footer__wordmark { margin: clamp(1.75rem, 1rem + 2vw, 3rem) 0 -.1em; padding: 0 var(--gutter); text-align: center; white-space: nowrap; font: 800 clamp(1.9rem, 5.2vw, 5.5rem)/.85 var(--font-display); letter-spacing: -.04em; color: rgba(255, 255, 255, .045); user-select: none; pointer-events: none; overflow: hidden; }

/* Bottom bar */
.site-footer__bottom { border-top: 1px solid var(--line-dark); font-size: .85rem; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem var(--space-l); padding-block: var(--space-l); padding-right: calc(var(--gutter) + 4.5rem); /* room for the floating buttons */ }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem var(--space-l); }
.site-footer__bottom a { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem 0; color: var(--on-dark-muted); }
.site-footer__bottom a:hover { color: #fff; }
@media (max-width: 699px) {
  .site-footer__links a, .ft-contact li > a { padding-block: .45rem; } /* easier to tap */
  .site-footer__bottom-inner { flex-direction: column; align-items: flex-start; padding-bottom: calc(var(--space-l) + env(safe-area-inset-bottom)); }
}

.contact-list { list-style: none; display: grid; gap: .8rem; }
.contact-list li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; }
.contact-list .icon { color: var(--orange); margin-top: .2rem; }

/* Floating buttons */
.fab-whatsapp, .to-top { position: fixed; z-index: 80; display: grid; place-items: center; border-radius: 50%; box-shadow: var(--shadow); text-decoration: none; }
.fab-whatsapp { right: var(--space-m); bottom: var(--space-m); width: 3.5rem; height: 3.5rem; background: #1FA855; color: #fff; transition: transform .35s var(--ease); }
.fab-whatsapp:hover { transform: scale(1.08); }
.to-top { right: calc(var(--space-m) + .25rem); bottom: calc(var(--space-m) + 4.25rem); width: 3rem; height: 3rem; background: var(--surface); color: var(--charcoal); }
.js .to-top { opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .35s, transform .35s var(--ease); }
.js .to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke-width: 3; }
.to-top__track { stroke: var(--line); }
.to-top__bar { stroke: var(--orange); stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }
body:not(:has(.fab-whatsapp)) .to-top { bottom: var(--space-m); }

/* =====================================================================
   HOME — 1. Hero
   ===================================================================== */
.hero { position: relative; display: flex; align-items: flex-end; min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + var(--preview-h) + var(--space-2xl)) 0 clamp(5rem, 4rem + 6vw, 8rem); color: #fff; background: var(--charcoal); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: -6% 0; z-index: -2; will-change: transform; }
.hero__img { width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 18s var(--ease) both; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 22, 24, .55) 0%, rgba(20, 22, 24, .35) 35%, rgba(20, 22, 24, .82) 100%), linear-gradient(90deg, rgba(20, 22, 24, .65) 0%, rgba(20, 22, 24, 0) 70%); }
.hero--plain { background: radial-gradient(60rem 40rem at 85% 10%, rgba(242, 107, 29, .28), transparent 60%), radial-gradient(40rem 30rem at -10% 110%, rgba(242, 107, 29, .16), transparent 60%), var(--charcoal); }
.hero--plain .hero__shade { background: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 64px 64px, linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 64px 64px; }
.hero__content { position: relative; }
.hero__eyebrow { animation: fade-up .9s var(--ease) .1s both; }
.hero__title { font-size: var(--step-5); font-weight: 800; line-height: .98; letter-spacing: -.04em; max-width: 14ch; margin-bottom: var(--space-l); }
.hero__word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__word > span { display: inline-block; animation: word-up 1s var(--ease) both; }
.hero__word:nth-child(1) > span { animation-delay: .15s; } .hero__word:nth-child(2) > span { animation-delay: .23s; }
.hero__word:nth-child(3) > span { animation-delay: .31s; } .hero__word:nth-child(4) > span { animation-delay: .39s; }
.hero__word:nth-child(5) > span { animation-delay: .47s; } .hero__word:nth-child(6) > span { animation-delay: .55s; }
.hero__word:nth-child(7) > span { animation-delay: .63s; } .hero__word:nth-child(8) > span { animation-delay: .71s; }
.hero__word:nth-child(9) > span { animation-delay: .79s; } .hero__word:nth-child(n+10) > span { animation-delay: .87s; }
.hero__word:last-child > span { color: var(--orange); }
.hero__lead { max-width: 52ch; font-size: var(--step-1); color: rgba(255, 255, 255, .88); margin-bottom: var(--space-xl); animation: fade-up 1s var(--ease) .7s both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-s); animation: fade-up 1s var(--ease) .85s both; }
.scroll-hint { position: absolute; left: 50%; bottom: var(--space-l); display: grid; justify-items: center; gap: .5rem; color: rgba(255, 255, 255, .8); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; transform: translateX(-50%); animation: fade-up 1s var(--ease) 1.2s both; }
.scroll-hint__line { position: relative; width: 2px; height: 3rem; background: rgba(255, 255, 255, .25); overflow: hidden; border-radius: 2px; }
.scroll-hint__line::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform: translateY(-100%); animation: scroll-line 2.2s var(--ease) infinite; }
@keyframes hero-zoom { from { transform: scale(1.15); } to { transform: scale(1); } }
@keyframes word-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes scroll-line { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.scroll-hint { transform: none; left: calc(50% - 1.5rem); }

/* =====================================================================
   2. Client logo marquee
   ===================================================================== */
.marquee-section { padding-block: var(--space-2xl); border-bottom: 1px solid var(--line); }
.marquee-section__title { font: 600 var(--step--1)/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: var(--space-l); }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; flex: none; align-items: center; gap: clamp(2.5rem, 1.5rem + 4vw, 5rem); padding-right: clamp(2.5rem, 1.5rem + 4vw, 5rem); list-style: none; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__item { flex: none; display: grid; place-items: center; height: 4rem; }
.marquee__item img { width: auto; max-width: 10rem; max-height: 3.5rem; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .4s, opacity .4s; }
.marquee__item:hover img { filter: none; opacity: 1; }
.marquee__name { font: 700 var(--step-1)/1.1 var(--font-display); color: var(--muted); white-space: nowrap; transition: color .3s; }
.marquee__item:hover .marquee__name { color: var(--orange-ink); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* =====================================================================
   3. About
   ===================================================================== */
.about__grid { display: grid; gap: var(--space-2xl); align-items: center; }
@media (min-width: 1024px) { .about__grid { grid-template-columns: 1.15fr .85fr; } }
.about__intro { font-size: var(--step-2); font-family: var(--font-display); font-weight: 500; line-height: 1.3; letter-spacing: -.015em; color: var(--text); margin-bottom: var(--space-xl); max-width: 32ch; }
.about__media { margin: 0; }
.about__mask { overflow: hidden; border-radius: var(--radius-xl); box-shadow: var(--shadow-l); }
.about__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__badge { display: grid; place-items: center; aspect-ratio: 1; max-width: 26rem; width: 100%; justify-self: center; border-radius: var(--radius-xl); background: var(--charcoal); background-image: radial-gradient(20rem 16rem at 80% 10%, rgba(242, 107, 29, .45), transparent 60%); }
.about__badge span { font: 800 clamp(5rem, 3rem + 10vw, 10rem)/1 var(--font-display); color: var(--orange); letter-spacing: -.06em; }

/* =====================================================================
   4. Counters
   ===================================================================== */
.counters { background: var(--charcoal); color: var(--on-dark); padding-block: var(--space-2xl); }
.counters__grid { list-style: none; display: grid; gap: var(--space-xl) var(--space-l); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .counters__grid--3 { grid-template-columns: repeat(3, 1fr); } .counters__grid--4 { grid-template-columns: repeat(4, 1fr); } }
.counters__grid--1 { grid-template-columns: 1fr; }
.counter { display: grid; gap: .35rem; padding-left: var(--space-l); border-left: 2px solid var(--line-dark); }
.counter__value { font: 800 var(--step-4)/1 var(--font-display); color: var(--orange); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.counter__label { color: var(--on-dark-muted); font-weight: 500; }

/* =====================================================================
   5. Services — bento grid
   ===================================================================== */
.bento { list-style: none; display: grid; gap: var(--space-m); grid-template-columns: 1fr; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento--feature, .bento--full { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(15rem, auto); }
  .bento--feature { grid-column: span 7; grid-row: span 2; }
  .bento--side { grid-column: span 5; }
  .bento--third { grid-column: span 4; }
  .bento--half { grid-column: span 6; }
  .bento--full { grid-column: 1 / -1; }
}
.service-card { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); border-color: transparent; }
.service-card__body { display: flex; flex-direction: column; gap: var(--space-s); padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); flex: 1; }
.service-card__icon { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: var(--radius); background: var(--orange-soft); color: var(--orange-ink); margin-bottom: var(--space-s); transition: transform .5s var(--ease); }
.service-card:hover .service-card__icon { transform: rotate(-8deg) scale(1.06); }
.service-card__title { font-size: var(--step-2); }
.service-card__text { color: var(--muted); }
.service-card__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: var(--space-s); color: var(--orange-ink); font-weight: 700; font-size: var(--step--1); }
.service-card__more .icon { transition: transform .4s var(--ease); }
.service-card:hover .service-card__more .icon { transform: translateX(4px); }
.service-card__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.service-card__thumb img, .service-card__bg img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card:hover .service-card__thumb img, .service-card:hover .service-card__bg img { transform: scale(1.05); }
.service-card--image { min-height: 26rem; color: #fff; background: var(--charcoal); border: 0; }
.service-card--image .service-card__bg { position: absolute; inset: 0; z-index: -2; }
.service-card--image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 22, 24, .1) 20%, rgba(20, 22, 24, .9) 100%); }
.service-card--image .service-card__body { justify-content: flex-end; }
.service-card--image .service-card__text { color: rgba(255, 255, 255, .85); }
.service-card--image .service-card__more { color: var(--orange); }
.service-card--image .service-card__icon { background: var(--orange); color: var(--charcoal); }
.service-card--image .service-card__title { font-size: var(--step-3); }

/* =====================================================================
   6. Featured projects — horizontal showcase
   ===================================================================== */
.projects-showcase { background: var(--surface-2); overflow: hidden; }
.projects-showcase__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-m); margin-bottom: var(--space-xl); }
.projects-showcase__head .section-head { margin-bottom: 0; }
.projects-track { list-style: none; display: grid; gap: var(--space-l); padding-inline: var(--gutter); max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; }
@media (min-width: 640px) { .projects-track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .projects-track { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Desktop + motion allowed: JavaScript turns the grid into one sideways-moving row */
.projects-showcase.is-horizontal .projects-track { display: flex; width: max-content; max-width: none; margin: 0; padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); will-change: transform; }
.projects-showcase.is-horizontal .project-card { width: clamp(22rem, 30vw, 28rem); flex: none; }
.project-card > a { display: flex; flex-direction: column; height: 100%; color: var(--text); text-decoration: none; }
.project-card__media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-l); overflow: hidden; background: var(--charcoal); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.06); }
.project-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--orange); }
.project-card__badge { position: absolute; top: var(--space-m); left: var(--space-m); }
.project-card__body { display: grid; gap: .35rem; padding: var(--space-m) var(--space-2xs) 0; }
.project-card__meta { color: var(--orange-ink); font-size: var(--step--1); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.project-card__title { font-size: var(--step-1); transition: color .3s; }
.project-card:hover .project-card__title { color: var(--orange-ink); }
.project-card__client { color: var(--muted); font-size: .95rem; }
.project-card--more > a { display: grid; place-items: center; align-content: center; gap: var(--space-m); min-height: 14rem; aspect-ratio: auto; border-radius: var(--radius-l); background: var(--charcoal); color: #fff; font: 700 var(--step-2)/1.1 var(--font-display); text-align: center; padding: var(--space-xl); transition: background-color .3s; }
.project-card--more > a:hover { background: var(--orange); color: var(--charcoal); }
.projects-showcase.is-horizontal .project-card--more > a { aspect-ratio: 4 / 3; }

/* =====================================================================
   7. How we work — timeline
   ===================================================================== */
.process { background: var(--charcoal); color: var(--on-dark); }
.process .eyebrow { color: var(--orange); }
.process__grid { display: grid; gap: var(--space-2xl); }
@media (min-width: 1024px) { .process__grid { grid-template-columns: .8fr 1.2fr; } .process__intro { position: sticky; top: calc(var(--header-h) + var(--space-xl)); align-self: start; } }
.timeline { position: relative; list-style: none; display: grid; gap: var(--space-xl); padding-left: 4.25rem; }
.timeline__line { position: absolute; left: 1.4rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--line-dark); border-radius: 2px; }
.timeline__progress { position: absolute; inset: 0; background: var(--orange); border-radius: 2px; transform-origin: top; }
.timeline__step { position: relative; }
.timeline__num { position: absolute; left: -4.25rem; top: -.2rem; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--charcoal-2); border: 2px solid var(--orange); color: var(--orange); font: 800 .9rem/1 var(--font-display); }
.timeline__title { font-size: var(--step-2); color: #fff; margin-bottom: .4rem; }
.timeline__text { color: var(--on-dark-muted); max-width: 52ch; }

/* =====================================================================
   8. Certifications strip
   ===================================================================== */
.certs__list { list-style: none; display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.cert { display: flex; gap: var(--space-m); align-items: center; padding: var(--space-l); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.cert:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cert__badge { flex: none; display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: var(--radius); background: var(--orange-soft); color: var(--orange-ink); overflow: hidden; }
.cert__badge img { width: 100%; height: 100%; object-fit: cover; }
.cert__body { display: grid; gap: .3rem; justify-items: start; }
.cert__name { font: 700 var(--step-1)/1.2 var(--font-display); }
.cert__meta { color: var(--muted); font-size: .88rem; }

/* =====================================================================
   9. Testimonials slider
   ===================================================================== */
.testimonials { background: var(--surface-2); }
.slider-buttons { display: flex; gap: var(--space-xs); }
.slider { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: var(--space-l); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: var(--space-2xs); overscroll-behavior-x: contain; }
.slider::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .slider { grid-auto-columns: calc((100% - var(--space-l)) / 2); } }
.testimonial { scroll-snap-align: start; display: flex; flex-direction: column; gap: var(--space-l); margin: 0; padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.testimonial__mark { color: var(--orange); }
.testimonial__quote { margin: 0; flex: 1; }
.testimonial__quote p { font: 500 var(--step-1)/1.45 var(--font-display); letter-spacing: -.01em; }
.testimonial__by { display: flex; align-items: center; gap: var(--space-s); color: var(--muted); font-size: .92rem; }
.testimonial__by strong { display: block; color: var(--text); font-size: 1rem; }
.testimonial__photo { width: 3.25rem; height: 3.25rem; border-radius: 50%; object-fit: cover; }

/* =====================================================================
   10. Latest blog posts
   ===================================================================== */
.post-grid { list-style: none; display: grid; gap: var(--space-l); grid-template-columns: 1fr; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card, .post-card__link { height: 100%; }
.post-card__link { display: flex; flex-direction: column; color: var(--text); text-decoration: none; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.post-card__link:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--charcoal); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card__link:hover .post-card__media img { transform: scale(1.05); }
.post-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--orange); }
.post-card__body { display: grid; gap: var(--space-s); padding: var(--space-l); align-content: start; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; color: var(--muted); font-size: .82rem; }
.post-card__title { font-size: var(--step-1); }
.post-card__text { color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* =====================================================================
   11. Call to action band
   ===================================================================== */
.cta-band { padding: 0 0 clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.cta-band__inner { position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: start; gap: var(--space-l); padding: clamp(2.5rem, 1.5rem + 5vw, 6rem) clamp(1.5rem, 1rem + 4vw, 5rem); border-radius: var(--radius-xl); background: var(--charcoal); color: #fff; max-width: calc(var(--container)); }
.cta-band__glow { position: absolute; z-index: -1; right: -10rem; top: -12rem; width: 34rem; height: 34rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 107, 29, .55), rgba(242, 107, 29, 0)); }
.cta-band__inner::before { content: ""; position: absolute; z-index: -1; left: 0; top: 0; bottom: 0; width: 6px; background: var(--orange); }
.cta-band__title { font-size: var(--step-4); max-width: 20ch; }
.cta-band__text { color: var(--on-dark-muted); font-size: var(--step-1); max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-s); margin-top: var(--space-s); }
@media (max-width: 639px) { .cta-band .container.cta-band__inner { padding-inline: var(--gutter); border-radius: 0; } .cta-band__inner::before { width: 4px; } }

/* =====================================================================
   Reveal helpers (JavaScript adds motion; content is visible without it)
   ===================================================================== */
.split-line { overflow: hidden; }

/* =====================================================================
   Reduced motion: no zoom, no marquee movement, no pinning, quick fades
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero__img { animation: none; }
  .scroll-hint__line::after { animation: none; transform: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; padding-right: 0; row-gap: var(--space-l); }
  .marquee__track[aria-hidden="true"] { display: none; }
  .slider { scroll-behavior: auto; }
}

/* Print */
@media print {
  .site-header, .mobile-menu, .fab-whatsapp, .to-top, .scroll-hint, .preview-bar { display: none !important; }
  .hero { min-height: 0; color: #000; background: none; }
  .hero__media, .hero__shade { display: none; }
}

/* Lenis smooth scroll (recommended base styles) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
/* About image mask needs a clipping frame */
.about__media { overflow: hidden; border-radius: var(--radius-xl); }

/* =====================================================================
   STEP 6 — Inner pages
   ===================================================================== */
.btn--block { width: 100%; }
.badge--light { background: rgba(255, 255, 255, .14); color: #fff; }
.preview-bar--draft { background: var(--charcoal); color: var(--on-dark); border-bottom: 3px solid var(--orange); }
.preview-bar--draft a { color: var(--orange); }

/* ---------- Page header ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(26rem, 55vh, 38rem); padding: calc(var(--header-h) + var(--preview-h) + var(--space-2xl)) 0 var(--space-2xl); color: #fff; background: var(--charcoal); }
.page-hero__media { position: absolute; inset: -8% 0; z-index: -2; will-change: transform; }
.page-hero__img { width: 100%; height: 100%; object-fit: cover; opacity: .45; animation: hero-zoom 14s var(--ease) both; }
.page-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 22, 24, .45) 0%, rgba(20, 22, 24, .7) 60%, rgba(20, 22, 24, .92) 100%), radial-gradient(40rem 26rem at 90% 0%, rgba(242, 107, 29, .3), transparent 65%); }
.page-hero--plain .page-hero__shade { background: radial-gradient(46rem 30rem at 88% -10%, rgba(242, 107, 29, .32), transparent 62%), linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 64px 64px, linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 64px 64px; }
.page-hero__content { position: relative; }
.page-hero__title { font-size: var(--step-4); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; max-width: 20ch; margin-bottom: var(--space-m); }
.page-hero__lead { max-width: 58ch; font-size: var(--step-1); color: rgba(255, 255, 255, .86); animation: fade-up 1s var(--ease) .55s both; }
.page-hero__eyebrow { animation: fade-up .9s var(--ease) .1s both; }
.page-hero__extra { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-m); margin-top: var(--space-l); animation: fade-up 1s var(--ease) .7s both; }
.page-hero__meta { color: rgba(255, 255, 255, .8); font-weight: 600; }

/* Breadcrumbs */
.breadcrumbs { margin-bottom: var(--space-l); font-size: .85rem; animation: fade-up .8s var(--ease) both; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem .5rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255, 255, 255, .7); }
.breadcrumbs li + li::before { content: "/"; color: var(--orange); }
.breadcrumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current] { color: #fff; font-weight: 600; }

/* ---------- Grids ---------- */
.card-grid, .projects-grid { list-style: none; display: grid; gap: var(--space-l); grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid, .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .card-grid, .projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid-card { display: flex; }
.grid-card .service-card { width: 100%; }
.projects-grid .project-card > a { height: 100%; }

/* ---------- Empty state ---------- */
.empty-state { display: grid; justify-items: center; gap: var(--space-s); max-width: 36rem; margin: 0 auto; padding: var(--space-2xl) var(--space-l); text-align: center; border: 2px dashed var(--line); border-radius: var(--radius-xl); background: var(--surface); }
.empty-state__icon { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--orange-soft); color: var(--orange-ink); margin-bottom: var(--space-s); }
.empty-state__title { font-size: var(--step-2); }
.empty-state p { color: var(--muted); margin-bottom: var(--space-s); }

/* ---------- Filters + results ---------- */
.section--list { padding-top: var(--space-2xl); }
.filters { display: grid; gap: var(--space-m); grid-template-columns: 1fr; align-items: end; margin-bottom: var(--space-xl); padding: var(--space-l); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
@media (min-width: 640px) { .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .filters { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; } }
.filters__field { display: grid; gap: .35rem; }
.filters__field label { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.filters select { width: 100%; min-height: 3rem; padding: .6rem 2.4rem .6rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231E2124' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center; font: inherit; font-size: .95rem; color: var(--text); appearance: none; -webkit-appearance: none; cursor: pointer; }
.filters select:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(242, 107, 29, .25); }
.filters__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-m); }
.filters__clear { color: var(--orange-ink); font-weight: 700; font-size: .9rem; }
.js .filters [data-filters-submit] { display: none; }
.results { transition: opacity .3s; }
.results.is-loading { opacity: .35; pointer-events: none; }
.results__count { margin-bottom: var(--space-l); color: var(--muted); font-weight: 600; }

/* ---------- Pagination ---------- */
.pager { margin-top: var(--space-2xl); }
.pager ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; }
.pager__num, .pager__step, .pager__gap { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-width: 2.9rem; height: 2.9rem; padding: 0 .9rem; border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; text-decoration: none; transition: background-color .25s, border-color .25s, color .25s; }
.pager a:hover { border-color: var(--charcoal); }
.pager .is-current { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.pager .is-disabled { opacity: .4; }
.pager__gap { border: 0; background: none; min-width: auto; padding: 0 .2rem; }

/* ---------- Detail layout ---------- */
.detail__grid { display: grid; gap: var(--space-2xl); }
@media (min-width: 1024px) { .detail__grid { grid-template-columns: minmax(0, 1fr) 22rem; } .detail__aside > * { position: sticky; top: calc(var(--header-h) + var(--space-l)); } }
.detail__icon { display: inline-grid; place-items: center; width: 4rem; height: 4rem; border-radius: var(--radius); background: var(--orange-soft); color: var(--orange-ink); margin-bottom: var(--space-l); }
.detail__subtitle { font-size: var(--step-2); margin: var(--space-2xl) 0 var(--space-l); }
.quote-card { display: grid; gap: var(--space-s); padding: var(--space-xl); border-radius: var(--radius-l); background: var(--charcoal); color: var(--on-dark-muted); }
.quote-card__title { color: #fff; font-size: var(--step-2); }
.quote-card .btn { margin-top: var(--space-2xs); }
.quote-card__phone { display: inline-flex; align-items: center; gap: .5rem; justify-content: center; margin-top: var(--space-xs); color: #fff; font-weight: 700; text-decoration: none; }
.facts { padding: var(--space-xl); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.facts__title { font-size: var(--step-1); margin-bottom: var(--space-m); }
.facts__list { display: grid; margin: 0 0 var(--space-l); }
.facts__list > div { display: grid; grid-template-columns: 7rem 1fr; gap: var(--space-s); padding: .7rem 0; border-top: 1px solid var(--line); }
.facts__list dt { color: var(--muted); font-size: .85rem; font-weight: 600; }
.facts__list dd { margin: 0; font-weight: 600; }
.facts__list a { color: var(--orange-ink); text-decoration: none; }
.facts__list a:hover { text-decoration: underline; }
.facts__tags { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; }
.facts__tags a { display: inline-block; padding: .15rem .6rem; border-radius: var(--radius-pill); background: var(--orange-soft); font-size: .85rem; }

/* ---------- Prose (rich text from the admin) ---------- */
.prose { max-width: 70ch; font-size: var(--step-0); line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-3); margin-top: 1.6em; }
.prose h3 { font-size: var(--step-2); margin-top: 1.4em; }
.prose h4 { font-size: var(--step-1); margin-top: 1.2em; }
.prose a { color: var(--orange-ink); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--orange); }
.prose blockquote { margin-left: 0; padding: var(--space-m) var(--space-l); border-left: 4px solid var(--orange); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-display); font-size: var(--step-1); }
.prose img { border-radius: var(--radius-l); width: 100%; height: auto; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.prose strong { font-weight: 700; }

/* ---------- Gallery + lightbox ---------- */
.gallery { list-style: none; display: grid; gap: var(--space-m); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery__link { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); cursor: zoom-in; }
.gallery__link img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__link:hover img { transform: scale(1.06); }
.gallery__link::after { content: ""; position: absolute; inset: 0; background: rgba(20, 22, 24, 0); transition: background-color .3s; }
.gallery__link:hover::after { background: rgba(20, 22, 24, .15); }
.gallery__caption { margin-top: .45rem; color: var(--muted); font-size: .85rem; }
.lightbox { position: fixed; inset: 0; z-index: 300; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(15, 17, 19, .96); color: #fff; overscroll-behavior: contain; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox::backdrop { background: rgba(15, 17, 19, .96); }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: var(--space-m) var(--gutter); font-weight: 600; color: var(--on-dark-muted); }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(.5rem, 4vw, 5rem); touch-action: pan-y; }
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--radius-s); user-select: none; -webkit-user-drag: none; transition: opacity .25s, transform .35s var(--ease); }
.lightbox__img.is-loading { opacity: 0; transform: scale(.98); }
.lightbox__caption { min-height: 3.5rem; padding: var(--space-m) var(--gutter) var(--space-l); text-align: center; color: var(--on-dark); }
.lightbox__btn { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(30, 33, 36, .7); color: #fff; cursor: pointer; transition: background-color .25s, border-color .25s; }
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: var(--orange); border-color: var(--orange); color: var(--charcoal); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: var(--space-s); }
.lightbox__nav--next { right: var(--space-s); }
.lightbox-open, .lightbox-open body { overflow: hidden; }

/* ---------- Previous / next ---------- */
.prevnext { display: grid; grid-template-columns: 1fr; gap: var(--space-m); padding-bottom: var(--section); }
@media (min-width: 700px) { .prevnext { grid-template-columns: 1fr 1fr; } }
.prevnext__link { display: grid; gap: .35rem; padding: var(--space-l); border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease); }
.prevnext__link:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.prevnext__link--next { text-align: right; justify-items: end; }
.prevnext__label { display: inline-flex; align-items: center; gap: .4rem; color: var(--orange-ink); font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.prevnext__link--prev .prevnext__label .icon { transform: rotate(180deg); }
.prevnext__title { font: 700 var(--step-1)/1.2 var(--font-display); }
.related { background: var(--surface-2); }

/* ---------- About page ---------- */
.story__grid { display: grid; gap: var(--space-2xl); }
@media (min-width: 1024px) { .story__grid { grid-template-columns: .9fr 1.1fr; } .story__intro { position: sticky; top: calc(var(--header-h) + var(--space-xl)); align-self: start; } }
.story__lead { font: 500 var(--step-2)/1.3 var(--font-display); letter-spacing: -.015em; }
.mv__grid { display: grid; gap: var(--space-l); }
@media (min-width: 900px) { .mv__grid { grid-template-columns: 1fr 1fr; } }
.mv__card { display: grid; gap: var(--space-m); align-content: start; padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); border-radius: var(--radius-xl); }
.mv__card p { font-size: var(--step-1); line-height: 1.5; }
.mv__card--dark { background: var(--charcoal); color: var(--on-dark); }
.mv__card--dark .mv__icon { background: var(--orange); color: var(--charcoal); }
.mv__card--accent { background: var(--orange); color: var(--charcoal); }
.mv__card--accent .mv__icon { background: var(--charcoal); color: var(--orange); }
.mv__icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: var(--radius); }
.mv__title { font-size: var(--step-3); }
.values__grid { list-style: none; display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.value { padding: var(--space-xl); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.value:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.value__num { display: block; font: 800 var(--step-3)/1 var(--font-display); color: var(--orange); margin-bottom: var(--space-m); }
.value__title { font-size: var(--step-1); margin-bottom: .4rem; }
.value__text { color: var(--muted); }
.owner { background: var(--surface-2); }
.owner__grid { display: grid; gap: var(--space-2xl); align-items: center; }
@media (min-width: 1024px) { .owner__grid { grid-template-columns: .8fr 1.2fr; } }
.owner__media { margin: 0; overflow: hidden; border-radius: var(--radius-xl); max-width: 30rem; }
.owner__quote { margin: 0 0 var(--space-l); padding-left: var(--space-l); border-left: 4px solid var(--orange); font: 500 var(--step-1)/1.55 var(--font-display); }
.owner__quote p + p { margin-top: .9em; }
.owner__sign { display: grid; gap: .1rem; }
.owner__sign span { color: var(--muted); }
.team-grid { list-style: none; display: grid; gap: var(--space-l); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.person a { display: grid; gap: .3rem; color: var(--text); text-decoration: none; }
.person__photo { display: block; aspect-ratio: 4 / 5; border-radius: var(--radius-l); overflow: hidden; background: var(--charcoal); margin-bottom: var(--space-s); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.person a:hover img { transform: scale(1.05); }
.person__initials { display: grid; place-items: center; height: 100%; font: 800 var(--step-4)/1 var(--font-display); color: var(--orange); }
.person__name { font: 700 var(--step-1)/1.2 var(--font-display); }
.person__role { color: var(--muted); font-size: .92rem; }

/* ---------- Clients page ---------- */
.chip-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--space-2xl); }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; transition: border-color .25s, background-color .25s; }
.chip span { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .35rem; border-radius: var(--radius-pill); background: var(--orange-soft); color: var(--orange-ink); font-size: .8rem; }
.chip:hover { border-color: var(--charcoal); }
.client-group { scroll-margin-top: calc(var(--header-h) + var(--space-l)); }
.client-group + .client-group { margin-top: var(--space-2xl); }
.client-group__title { display: flex; align-items: center; gap: .75rem; font-size: var(--step-2); margin-bottom: var(--space-l); padding-bottom: var(--space-s); border-bottom: 2px solid var(--line); }
.client-group__count { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .5rem; border-radius: var(--radius-pill); background: var(--charcoal); color: #fff; font: 700 .85rem/1 var(--font-body); }
.client-grid { list-style: none; display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.client-card { display: flex; flex-direction: column; gap: .5rem; padding: var(--space-l); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + var(--space-l)); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.client-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.client-card:target { outline: 3px solid var(--orange); outline-offset: 3px; }
.client-card__logo { display: grid; place-items: center start; height: 4.5rem; margin-bottom: var(--space-xs); }
.client-card__logo img { width: auto; max-width: 11rem; max-height: 4rem; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .4s, opacity .4s; }
.client-card:hover .client-card__logo img { filter: none; opacity: 1; }
.client-card__initials { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: var(--radius); background: var(--charcoal); color: var(--orange); font: 800 1.2rem/1 var(--font-display); }
.client-card__name { font-size: var(--step-1); }
.client-card__text { color: var(--muted); font-size: .92rem; }
.client-card__meta { margin-top: auto; padding-top: var(--space-s); font-size: .9rem; font-weight: 700; color: var(--muted); }
.client-card__meta a { display: inline-flex; align-items: center; gap: .35rem; color: var(--orange-ink); text-decoration: none; }
.client-card__meta a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .page-hero__img { animation: none; }
  .lightbox__img { transition: none; }
}

/* =====================================================================
   STEP 6b — Team, Blog, Certifications, Legal, 404
   ===================================================================== */
.chip.is-active { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.chip.is-active span { background: var(--orange); color: var(--charcoal); }

/* ---------- Team ---------- */
.team-group + .team-group { margin-top: var(--space-2xl); }
.team-grid--full { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-l) var(--space-m); }
@media (min-width: 700px) { .team-grid--full { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .team-grid--full { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.member { display: flex; flex-direction: column; gap: .25rem; scroll-margin-top: calc(var(--header-h) + var(--space-l)); }
.member:target .person__photo { outline: 3px solid var(--orange); outline-offset: 3px; }
.member__head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.member__in { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1.5px solid var(--line); color: var(--text); transition: background-color .25s, color .25s, border-color .25s; }
.member__in:hover { background: #0A66C2; border-color: #0A66C2; color: #fff; }
.member__bio { margin-top: .4rem; color: var(--muted); font-size: .92rem; }
.js .member__bio.is-clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.member__more { align-self: flex-start; margin-top: .3rem; padding: 0; border: 0; background: none; color: var(--orange-ink); font: 700 .88rem/1.4 var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Blog list ---------- */
.featured-post { margin-bottom: var(--space-2xl); }
.post-card--featured .post-card__link { display: grid; }
@media (min-width: 900px) {
  .post-card--featured .post-card__link { grid-template-columns: 1.2fr 1fr; }
  .post-card--featured .post-card__media { aspect-ratio: auto; min-height: 22rem; height: 100%; }
}
.post-card--featured .post-card__body { padding: clamp(1.5rem, 1rem + 2vw, 3rem); align-content: center; }
.post-card--featured .post-card__title { font-size: var(--step-3); }
.post-card--featured .post-card__text { -webkit-line-clamp: 4; font-size: var(--step-0); }
.post-card--featured .eyebrow { margin-bottom: 0; }
.post-card__author { color: var(--muted); font-size: .85rem; font-weight: 600; }

/* ---------- Blog post ---------- */
.post__grid { display: grid; gap: var(--space-2xl); }
@media (min-width: 1100px) {
  .post__grid { grid-template-columns: 15rem minmax(0, 46rem); justify-content: center; }
  .post__grid--single { grid-template-columns: minmax(0, 46rem); }
  .toc { position: sticky; top: calc(var(--header-h) + var(--space-l)); align-self: start; }
}
.post__main { min-width: 0; }
.post__cover { margin: 0 0 var(--space-xl); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); }
.post__cover img { width: 100%; }
.prose--post { max-width: none; font-size: clamp(1.05rem, 1rem + .25vw, 1.18rem); }
.prose--post h2, .prose--post h3 { scroll-margin-top: calc(var(--header-h) + var(--space-l)); }
.prose--post > p:first-child::first-letter { float: left; font: 800 3.6em/.8 var(--font-display); color: var(--orange); margin: .08em .1em 0 0; }
.toc__inner { padding: var(--space-l); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.toc__title { font: 700 .8rem/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-s); }
.toc ol { list-style: none; display: grid; gap: .1rem; }
.toc a { display: block; padding: .35rem .6rem; border-left: 2px solid var(--line); color: var(--muted); font-size: .9rem; line-height: 1.35; text-decoration: none; transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.is-active { color: var(--text); border-color: var(--orange); }
.toc__item--h3 a { padding-left: 1.3rem; font-size: .85rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: var(--space-xl); }
.tags a { display: inline-block; padding: .3rem .8rem; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text); font-size: .88rem; font-weight: 600; text-decoration: none; }
.tags a:hover { background: var(--orange-soft); color: var(--orange-ink); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-m); margin-top: var(--space-xl); padding-top: var(--space-l); border-top: 1px solid var(--line); }
.share__label { font-weight: 700; }
.share__list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.share__btn { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease); }
.share__btn:hover { background: var(--charcoal); border-color: var(--charcoal); color: #fff; transform: translateY(-2px); }
.share__done { color: var(--orange-ink); font-weight: 700; font-size: .9rem; }
.author { display: flex; align-items: center; gap: var(--space-m); margin-top: var(--space-xl); padding: var(--space-l); border-radius: var(--radius-l); background: var(--surface-2); }
.author__photo { flex: none; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; overflow: hidden; background: var(--charcoal); color: var(--orange); font: 800 1.5rem/1 var(--font-display); }
.author__photo img { width: 100%; height: 100%; object-fit: cover; }
.author__text { display: grid; gap: .1rem; }
.author__label { color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.author__text > span:last-child:not(.author__label) { color: var(--muted); font-size: .92rem; }

/* ---------- Certifications page ---------- */
.cert-grid { list-style: none; display: grid; gap: var(--space-l); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.cert-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); padding: var(--space-xl); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + var(--space-l)); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cert-card:target { outline: 3px solid var(--orange); outline-offset: 3px; }
.cert-card__top { display: flex; gap: var(--space-m); align-items: center; }
.cert-card__title { font-size: var(--step-1); }
.cert-card__by { color: var(--muted); font-size: .92rem; }
.cert-card__text { color: var(--muted); font-size: .92rem; }
.cert-card__facts { display: grid; width: 100%; margin: var(--space-2xs) 0 0; }
.cert-card__facts > div { display: flex; justify-content: space-between; gap: var(--space-m); padding: .55rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.cert-card__facts dt { color: var(--muted); }
.cert-card__facts dd { margin: 0; font-weight: 700; text-align: right; }
.cert-card__view { margin-top: auto; }

/* ---------- Legal ---------- */
.legal__grid { display: grid; gap: var(--space-2xl); }
@media (min-width: 1024px) { .legal__grid { grid-template-columns: minmax(0, 1fr) 21rem; } .legal__contact { position: sticky; top: calc(var(--header-h) + var(--space-l)); align-self: start; } }
.legal__contact .contact-list a, .legal__contact .contact-list span { color: var(--on-dark); }
