/* A2C Automotive website, v3.
   Direction: photography-led, dark header and banners, clean white content sections,
   brand yellow used for signals and calls to action. Committed single look. */

:root {
  --ink: #1b1a1a;
  --ink-soft: #57524f;
  --bg: #ffffff;
  --bg-alt: #f3f2f0;
  --rule: #e3e0dd;
  --night: #0e0e0f;
  --night-2: #19191b;
  --night-3: #242427;
  --night-fg: #f4f2f1;
  --night-soft: #b7b1ae;
  --night-rule: #2f2f33;
  --brand: #f0b70f;
  --brand-ink: #8a6500;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 56px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 700; font-stretch: 110%; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 700; font-stretch: 106%; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--brand); color: var(--ink); padding: .5rem .8rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.35rem; font: 600 1rem var(--f-body);
  text-decoration: none; border: 1px solid transparent; border-radius: 2px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-brand { background: var(--brand); color: #141414; border-color: var(--brand); }
.btn-brand:hover { background: #fff; border-color: #fff; color: #141414; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ink:hover { background: var(--brand); border-color: var(--brand); color: #141414; }
.link-arrow { font-weight: 600; color: var(--brand-ink); text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.link-arrow::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
a:hover > .link-arrow::after, .link-arrow:hover::after { transform: translateX(3px) rotate(45deg); }
.on-dark .link-arrow, .link-arrow.light { color: var(--brand); }

/* Header and menus */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--night); border-bottom: 1px solid var(--night-rule); }
.site-header > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); position: relative; }
.brand { display: block; flex: none; }
.logo { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(.4rem, 1.4vw, 1.4rem); }
.nav-item > a { display: flex; align-items: center; gap: .4rem; padding-block: 25px; color: #d9d4d1; text-decoration: none; font-weight: 500; white-space: nowrap; }
.nav-item > a:hover, .nav-item > a[aria-current="page"] { color: #fff; }
.nav-item > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--brand); }
.has-menu > a::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.mega { position: absolute; left: var(--gutter); right: var(--gutter); top: 100%; display: none; background: var(--night-2); border: 1px solid var(--night-rule);
  border-top: 3px solid var(--brand); box-shadow: 0 30px 60px rgba(0,0,0,.5); color: var(--night-fg); }
.has-menu:hover > .mega, .has-menu:focus-within > .mega { display: grid; }
.mega { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
.mega-main { padding: 1.6rem; }
.mega-title { font-family: var(--f-display); font-size: 1.05rem; color: #fff; margin-bottom: 1rem; }
.mega-prods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.mega-prod { display: grid; gap: .5rem; padding: .6rem; text-decoration: none; border-radius: 2px; }
.mega-prod:hover { background: var(--night-3); }
.mega-prod .thumb { position: relative; display: block; aspect-ratio: 16 / 10; background: radial-gradient(ellipse at 50% 45%, #3c3a3b, #18181a 75%); overflow: hidden; }
.mega-prod .thumb img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.6)); }
.mega-prod strong { font-size: .95rem; color: #f1ecea; font-weight: 600; }
.mega-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem 1.5rem; }
.mega-links a { display: grid; gap: .1rem; padding: .7rem .6rem; text-decoration: none; border-radius: 2px; }
.mega-links a:hover { background: var(--night-3); }
.mega-links strong { color: #fff; font-weight: 600; }
.mega-links span { color: var(--night-soft); font-size: .9rem; }
.mega-side { position: relative; overflow: hidden; min-height: 260px; display: flex; align-items: flex-end; padding: 1.4rem; text-decoration: none; }
.mega-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mega-side::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,11,.95) 10%, rgba(10,10,11,.15) 70%); z-index: 1; }
.mega-side span { position: relative; z-index: 2; display: grid; gap: .3rem; }
.mega-side strong { font-family: var(--f-display); color: #fff; font-size: 1.15rem; }
.mega-side em { font-style: normal; color: var(--brand); font-weight: 600; }
.mega-footer { grid-column: 1 / -1; border-top: 1px solid var(--night-rule); padding: .9rem 1.6rem; }
.mega-footer a { color: var(--brand); text-decoration: none; font-weight: 600; }
.menu-toggle { display: none; background: none; color: #fff; border: 1px solid var(--night-rule); padding: .5rem .8rem; font: inherit; border-radius: 2px; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--night);
    border-bottom: 1px solid var(--night-rule); padding: .4rem var(--gutter) 1.2rem; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav[data-open="false"] { display: none; }
  .nav-item > a { padding-block: .85rem; border-bottom: 1px solid var(--night-rule); }
  .has-menu > a::after { display: none; }
  .mega, .has-menu:hover > .mega, .has-menu:focus-within > .mega { position: static; display: block; border: 0; box-shadow: none; background: transparent; }
  .mega-main { padding: .3rem 0 .6rem .9rem; }
  .mega-title, .mega-side, .mega-prod .thumb, .mega-links span { display: none; }
  .mega-prods, .mega-links { grid-template-columns: 1fr; gap: 0; }
  .mega-prod, .mega-links a { padding: .45rem .4rem; }
  .mega-footer { border: 0; padding: .2rem 0 .6rem .9rem; }
  .nav .btn { margin-top: 1rem; }
}
@media (max-width: 480px) { .logo { height: 42px; } }

/* Home hero slider */
.hero { position: relative; height: clamp(600px, 88vh, 860px); background: var(--night); color: #fff; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 70% 50%); }
.slide::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8,8,9,.92) 0%, rgba(8,8,9,.72) 34%, rgba(8,8,9,.15) 68%, rgba(8,8,9,0) 100%),
              linear-gradient(0deg, rgba(8,8,9,.85) 0%, rgba(8,8,9,0) 32%); }
.slide-body { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; padding-bottom: 90px; }
.slide-copy { max-width: 640px; display: grid; gap: 1.3rem; }
.kicker { display: inline-flex; align-items: center; gap: .7rem; color: var(--brand); font-weight: 600; font-size: 1rem; }
.kicker::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.slide h1, .slide h2 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 700; font-stretch: 112%; line-height: 1.04; color: #fff; }
.slide p { color: #d4cecb; font-size: 1.2rem; max-width: 50ch; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .3rem; }
.slide.is-active > img { animation: zoom 9s ease-out both; }
.slide.is-active .slide-copy > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.slide.is-active .slide-copy > *:nth-child(2) { animation-delay: .1s; }
.slide.is-active .slide-copy > *:nth-child(3) { animation-delay: .2s; }
.slide.is-active .slide-copy > *:nth-child(4) { animation-delay: .3s; }
@keyframes zoom { from { transform: scale(1.07); } to { transform: none; } }
@keyframes rise { from { transform: translateY(18px); opacity: .001; } to { transform: none; opacity: 1; } }
.hero-tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; }
.tabs-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.tab { all: unset; cursor: pointer; display: grid; gap: .7rem; padding-bottom: 1.6rem; color: #a7a19e; font-weight: 500; }
.tab:hover, .tab.is-active { color: #fff; }
.tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.tab .bar { height: 3px; background: rgba(255,255,255,.2); }
.tab .bar i { display: block; height: 100%; width: 0; background: var(--brand); }
.tab.is-active .bar i { width: 100%; }
.hero.autoplay .tab.is-active .bar i { width: 0; animation: prog 7s linear forwards; }
.hero.paused .tab.is-active .bar i { animation-play-state: paused; }
@keyframes prog { to { width: 100%; } }
@media (max-width: 760px) {
  .hero { height: 680px; }
  .slide::before { background: linear-gradient(0deg, rgba(8,8,9,.96) 0%, rgba(8,8,9,.75) 50%, rgba(8,8,9,.2) 100%); }
  .slide-body { align-items: flex-end; padding-bottom: 110px; }
  .slide p { font-size: 1.05rem; }
  .tabs-row { gap: .5rem; }
  .tab { font-size: .78rem; padding-bottom: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-active > img, .slide.is-active .slide-copy > * { animation: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* Inner page banner */
.banner { position: relative; background: var(--night); color: #fff; overflow: hidden; min-height: clamp(380px, 52vh, 520px); display: flex; align-items: flex-end; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 70% 50%); }
.banner::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8,8,9,.92) 0%, rgba(8,8,9,.65) 42%, rgba(8,8,9,.1) 85%), linear-gradient(0deg, rgba(8,8,9,.75), rgba(8,8,9,0) 45%); }
.banner .wrap { position: relative; z-index: 2; width: 100%; padding-block: clamp(48px, 7vw, 88px); display: grid; gap: 1.1rem; }
.banner h1 { max-width: 18ch; color: #fff; }
.banner .lead { color: #d4cecb; font-size: 1.2rem; max-width: 56ch; }
.crumb { font-size: .92rem; color: #a7a19e; }
.crumb a { color: #e3dedb; text-decoration: none; }
.crumb a:hover { color: var(--brand); }

/* In-page sub navigation */
.subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 40; background: #fff; border-bottom: 1px solid var(--rule); }
.subnav .wrap { display: flex; gap: 2rem; overflow-x: auto; scrollbar-width: none; }
.subnav a { flex: none; padding-block: 1rem; text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .95rem; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--ink); border-bottom-color: var(--brand); }

/* Sections */
.sec { padding-block: clamp(64px, 9vw, 120px); }
.sec-alt { background: var(--bg-alt); }
.sec-dark { background: var(--night); color: var(--night-fg); }
.sec-dark h2, .sec-dark h3 { color: #fff; }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 4vw, 64px); align-items: end; margin-bottom: clamp(32px, 4.5vw, 56px); }
.head .kicker { margin-bottom: .9rem; }
.head-text { color: var(--ink-soft); font-size: 1.15rem; }
.sec-dark .head-text { color: var(--night-soft); }
.head-solo { max-width: 760px; margin-bottom: clamp(32px, 4.5vw, 56px); display: grid; gap: 1rem; }
@media (max-width: 820px) { .head { grid-template-columns: 1fr; } }

/* Intro statement + stats */
.statement { font-family: var(--f-display); font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.3; font-weight: 500; max-width: 30ch; font-stretch: 104%; }
.statement b { font-weight: 700; color: var(--ink); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.intro-grid .copy { display: grid; gap: 1.2rem; color: var(--ink-soft); font-size: 1.1rem; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--rule); }
.stat { padding: 1.6rem 1.4rem 0 0; display: grid; gap: .3rem; }
.stat + .stat { padding-left: 1.4rem; border-left: 1px solid var(--rule); }
.stat strong { font-family: var(--f-display); font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 700; font-stretch: 115%; line-height: 1; font-variant-numeric: tabular-nums; }
.stat strong i { font-style: normal; color: var(--brand); }
.stat span { color: var(--ink-soft); }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { padding-left: 0; border-left: 0; } }

/* Big image cards (What we do) */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pillar { position: relative; min-height: 460px; overflow: hidden; color: #fff; text-decoration: none; display: flex; align-items: flex-end; background: var(--night); }
.pillar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.pillar::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(8,8,9,.95) 0%, rgba(8,8,9,.35) 55%, rgba(8,8,9,.05) 100%); }
.pillar-body { position: relative; z-index: 2; padding: 1.8rem; display: grid; gap: .7rem; }
.pillar h3 { font-size: 1.7rem; color: #fff; }
.pillar p { color: #d4cecb; }
.pillar:hover img { transform: scale(1.05); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } .pillar { min-height: 340px; } }

/* Feature (dark split with product cutout) */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.feature-media { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; justify-self: center; }
.feature-media .hex { position: absolute; inset: 0; width: 100%; height: 100%; }
.hex polygon { fill: rgba(240,183,15,.06); stroke: var(--brand); stroke-width: .6; stroke-linejoin: round; }
.feature-media img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 30px 34px rgba(0,0,0,.65)); }
.feature-copy { display: grid; gap: 1.2rem; }
.feature-copy p { color: var(--night-soft); font-size: 1.12rem; }
.badge { justify-self: start; display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--brand); color: var(--brand); font-weight: 600; font-size: .9rem; padding: .3rem .7rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.sec-dark .ticks li { color: #e3dedb; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature-media { max-width: 400px; } }

/* Product cards */
.prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.prod-card { display: grid; grid-template-rows: auto 1fr; text-decoration: none; background: #fff; border: 1px solid var(--rule); transition: border-color .2s, box-shadow .2s; }
.prod-card:hover { border-color: var(--brand); box-shadow: 0 18px 40px rgba(20,20,20,.08); }
.prod-stage { aspect-ratio: 4 / 3; position: relative; background: radial-gradient(ellipse at 50% 42%, #403d3d 0%, #151516 78%); overflow: hidden; }
.prod-stage img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0,0,0,.6)); transition: transform .5s ease; }
.prod-card:hover .prod-stage img { transform: scale(1.05); }
.prod-body { padding: 1.4rem 1.4rem 1.6rem; display: grid; gap: .5rem; align-content: start; }
.prod-body em { font-style: normal; color: var(--brand-ink); font-weight: 600; font-size: .9rem; }
.prod-body h3 { font-size: 1.3rem; }
.prod-body p { color: var(--ink-soft); font-size: 1rem; }
.prod-body .link-arrow { margin-top: .4rem; }
@media (max-width: 960px) { .prod-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .prod-grid { grid-template-columns: 1fr; } }

/* Full-bleed image band */
.bleed { position: relative; color: #fff; background: var(--night); overflow: hidden; }
.bleed > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 60% 50%); }
.bleed::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8,8,9,.93) 0%, rgba(8,8,9,.7) 38%, rgba(8,8,9,.05) 75%); }
.bleed .wrap { position: relative; z-index: 2; padding-block: clamp(80px, 12vw, 160px); }
.bleed-copy { max-width: 560px; display: grid; gap: 1.2rem; }
.bleed-copy p { color: #d4cecb; font-size: 1.15rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.chip { display: inline-block; padding: .45rem .85rem; border: 1px solid rgba(255,255,255,.3); color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; background: rgba(8,8,9,.35); }
a.chip:hover { border-color: var(--brand); color: var(--brand); }
.chips.light .chip { border-color: var(--rule); color: var(--ink); background: #fff; }
@media (max-width: 760px) { .bleed::before { background: rgba(8,8,9,.78); } }

/* Service cards with image */
.svc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.svc-card { grid-column: span 2; display: grid; grid-template-rows: auto 1fr; text-decoration: none; background: #fff; border: 1px solid var(--rule); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.svc-card:nth-child(4), .svc-card:nth-child(5) { grid-column: span 3; }
.svc-card .img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--night); }
.svc-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.svc-card:hover { border-color: var(--brand); box-shadow: 0 18px 40px rgba(20,20,20,.08); }
.svc-card:hover .img img { transform: scale(1.05); }
.svc-card .body { padding: 1.5rem; display: grid; gap: .6rem; align-content: start; }
.svc-card p { color: var(--ink-soft); }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr 1fr; } .svc-card, .svc-card:nth-child(4), .svc-card:nth-child(5) { grid-column: span 1; } .svc-card:nth-child(5) { grid-column: 1 / -1; } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } .svc-card:nth-child(5) { grid-column: auto; } }

/* Why grid */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.why-grid > div { border-top: 3px solid var(--brand); padding-top: 1.3rem; display: grid; gap: .7rem; align-content: start; }
.why-grid p { color: var(--night-soft); }
.sec:not(.sec-dark) .why-grid p { color: var(--ink-soft); }
@media (max-width: 960px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .why-grid { grid-template-columns: 1fr; } }

/* Process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding: 1.3rem 1.2rem 0 0; display: grid; gap: .5rem; align-content: start; }
.steps li + li { padding-left: 1.2rem; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; color: var(--brand-ink); }
.steps li:last-child { border-top-color: var(--brand); }
.steps p { color: var(--ink-soft); font-size: .98rem; }
.sec-dark .steps li { border-top-color: #fff; }
.sec-dark .steps li::before { color: var(--brand); }
.sec-dark .steps p { color: var(--night-soft); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 2rem; } .steps li, .steps li + li { padding-left: 0; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* News cards */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.news-card { display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--rule); text-decoration: none; overflow: hidden; }
.news-card .img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--night); }
.news-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-card:hover .img img { transform: scale(1.05); }
.news-card .body { padding: 1.4rem; display: grid; gap: .6rem; align-content: start; }
.news-card .meta { color: var(--brand-ink); font-weight: 600; font-size: .9rem; }
.news-card p { color: var(--ink-soft); }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }

/* CTA band with image */
.cta { position: relative; overflow: hidden; background: var(--night); color: #fff; }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8,8,9,.94) 20%, rgba(8,8,9,.6) 100%); }
.cta .wrap { position: relative; z-index: 2; padding-block: clamp(64px, 9vw, 110px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem; }
.cta h2 { color: #fff; max-width: 20ch; }
.cta p { color: #d4cecb; margin-top: .8rem; max-width: 52ch; }

/* Detail pages */
.overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.overview .copy { display: grid; gap: 1.1rem; }
.overview .copy p { color: var(--ink-soft); font-size: 1.1rem; }
.overview .stage { position: relative; aspect-ratio: 1 / 1; background: radial-gradient(ellipse at 50% 42%, #403d3d 0%, #121213 75%); }
.overview .stage img { position: absolute; inset: 13%; width: 74%; height: 74%; object-fit: contain; filter: drop-shadow(0 26px 30px rgba(0,0,0,.65)); }
.overview .stage .hex { position: absolute; inset: 6%; width: 88%; height: 88%; }
.overview .photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--night); }
.overview .photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .overview { grid-template-columns: 1fr; } }

.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.feat { background: #fff; padding: 1.8rem 1.6rem; display: grid; gap: .7rem; align-content: start; }
.feat svg { width: 40px; height: 40px; fill: none; stroke: var(--brand-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feat p { color: var(--ink-soft); }
.sec-alt .feat-grid { background: var(--rule); }
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }

.scope { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 80px); }
.scope-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; counter-reset: sc; }
.scope-list li { counter-increment: sc; display: grid; grid-template-columns: 2.2rem 1fr; gap: .3rem; padding-block: 1rem; border-bottom: 1px solid var(--night-rule); color: #e3dedb; }
.scope-list li::before { content: counter(sc, decimal-leading-zero); color: var(--brand); font-family: var(--f-display); font-weight: 700; }
@media (max-width: 860px) { .scope { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .scope-list { grid-template-columns: 1fr; } }

.note { border-left: 3px solid var(--brand); padding: 1rem 1.2rem; background: var(--bg-alt); color: var(--ink-soft); }

/* Domains page rows */
.domain-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.domain-row + .domain-row { margin-top: clamp(56px, 8vw, 100px); }
.domain-row:nth-child(even) .domain-img { order: 2; }
.domain-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--night); }
.domain-img img { width: 100%; height: 100%; object-fit: cover; }
.domain-copy { display: grid; gap: 1rem; }
.domain-copy p { color: var(--ink-soft); font-size: 1.08rem; }
@media (max-width: 860px) { .domain-row { grid-template-columns: 1fr; } .domain-row:nth-child(even) .domain-img { order: 0; } }

/* About */
.values { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.value { background: #fff; border: 1px solid var(--rule); padding: 1.6rem; display: grid; gap: .6rem; align-content: start; }
.value svg { width: 38px; height: 38px; fill: none; stroke: var(--brand-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.value p { color: var(--ink-soft); }
@media (max-width: 1080px) { .values { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .values { grid-template-columns: 1fr; } }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mv > div { background: var(--night-2); padding: clamp(1.6rem, 3vw, 2.6rem); display: grid; gap: .8rem; align-content: start; border-top: 3px solid var(--brand); }
.mv p { color: var(--night-soft); font-size: 1.12rem; }
@media (max-width: 760px) { .mv { grid-template-columns: 1fr; } }

.people { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.person { display: grid; gap: .25rem; align-content: start; }
.person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top; filter: grayscale(.15); border-bottom: 3px solid var(--brand); margin-bottom: .8rem; background: var(--bg-alt); }
.person strong { font-family: var(--f-display); font-size: 1.1rem; }
.person span { color: var(--ink-soft); }
.person em { font-style: normal; color: var(--brand-ink); font-weight: 600; font-size: .92rem; }
@media (max-width: 960px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.office { background: #fff; border: 1px solid var(--rule); padding: 1.6rem; display: grid; gap: .5rem; align-content: start; }
.office .role { color: var(--brand-ink); font-weight: 600; font-size: .92rem; }
.office address { font-style: normal; color: var(--ink-soft); }
@media (max-width: 860px) { .offices { grid-template-columns: 1fr; } }

/* Standards strip */
.standards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.standards > div { padding: 1.3rem 1.2rem 1.3rem 0; display: grid; gap: .2rem; }
.standards > div + div { padding-left: 1.2rem; border-left: 1px solid var(--rule); }
.standards strong { font-family: var(--f-display); }
.standards span { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 760px) { .standards { grid-template-columns: 1fr 1fr; } .standards > div:nth-child(3) { padding-left: 0; border-left: 0; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 72px); }
.contact-cards { display: grid; gap: 12px; align-content: start; }
.contact-card { background: var(--bg-alt); padding: 1.3rem 1.4rem; display: grid; gap: .3rem; }
.contact-card .role { color: var(--brand-ink); font-weight: 600; font-size: .9rem; }
.contact-card a { font-weight: 600; text-decoration: none; }
.contact-card address { font-style: normal; color: var(--ink-soft); }
.form { display: grid; gap: 1rem; background: #fff; border: 1px solid var(--rule); padding: clamp(1.4rem, 3vw, 2.4rem); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid #cfcac6; border-radius: 2px; padding: .75rem .85rem; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form-status { font-weight: 600; }
.form-status[data-state="ok"] { color: #2b7a44; }
.form-status[data-state="err"] { color: #b3321f; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }

/* Software table */
.table-scroll { overflow-x: auto; }
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.facts th { width: 32%; font-weight: 600; }
.facts td { color: var(--ink-soft); }

/* Other portfolio list */
.more-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.more-list li { background: #fff; border: 1px solid var(--rule); padding: 1.3rem; display: grid; gap: .3rem; }
.more-list span { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 900px) { .more-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .more-list { grid-template-columns: 1fr; } }

/* Floating CTA */
.float-cta { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 45; background: var(--brand); color: #141414; font-weight: 600;
  text-decoration: none; padding: .8rem 1.2rem; border-radius: 999px; box-shadow: 0 12px 28px rgba(0,0,0,.35); }
.float-cta:hover { background: #fff; }
@media (max-width: 600px) { .float-cta { padding: .6rem .95rem; font-size: .9rem; } }

/* Footer */
.site-footer { background: var(--night); color: var(--night-soft); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 2rem; padding-block: clamp(48px, 7vw, 80px) 40px; }
.foot-brand { display: grid; gap: 1rem; align-content: start; }
.foot-brand img { height: 64px; width: auto; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--night-soft); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.foot-legal { border-top: 1px solid var(--night-rule); padding-block: 1.3rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; font-size: .9rem; }
@media (max-width: 960px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-top { grid-template-columns: 1fr; } }
.svc-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-grid.three .svc-card { grid-column: auto; }
@media (max-width: 960px) { .svc-grid.three { grid-template-columns: 1fr; } }
.news-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .news-grid.two { grid-template-columns: 1fr; } }
.stat strong span { color: inherit; font-size: inherit; }
