/* =========================================================
   Apex Auto Works — Design system + sections
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink: #16181D;
  --ink-soft: #2B2E36;
  --bg: #FAFAF7;
  --bg-alt: #F1F0EA;
  --surface: #FFFFFF;
  --muted: #5C6066;
  --muted-2: #8B8F98;
  --border: #E7E5DD;
  --border-strong: #D7D4C9;

  --accent: #EF4E1F;
  --accent-600: #D63E12;
  --accent-700: #B53310;
  --amber: #F97316;
  --red: #DC2626;
  --warm: #F4C9B8;

  --heat: linear-gradient(120deg, #F97316 0%, #EF4E1F 55%, #DC2626 100%);
  --heat-soft: linear-gradient(120deg, rgba(249,115,22,.14), rgba(239,78,31,.12), rgba(220,38,38,.14));
  --ring: 0 0 0 4px rgba(239, 78, 31, .32);

  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Anton", "Archivo", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(22, 24, 29, .06), 0 2px 8px rgba(22, 24, 29, .05);
  --sh-md: 0 6px 16px rgba(22, 24, 29, .09), 0 2px 6px rgba(22, 24, 29, .05);
  --sh-lg: 0 22px 50px -16px rgba(28, 22, 14, .26);
  --sh-glow: 0 18px 44px -16px rgba(239, 78, 31, .55);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --container: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }

::selection { background: rgba(239, 78, 31, .2); color: var(--ink); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Eyebrow / section head ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-700); margin-bottom: 1rem;
}
.eyebrow__spectrum { width: 26px; height: 8px; border-radius: 2px; background: var(--heat); }

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--alt { background: var(--bg-alt); }

.section-head { max-width: 660px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-title { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.section-lead { margin-top: 1rem; font-size: clamp(1.02rem, 2vw, 1.18rem); color: var(--muted); line-height: 1.65; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.4rem;
  font-family: var(--font-head); font-weight: 600; font-size: .96rem; line-height: 1;
  color: var(--btn-fg); background: var(--btn-bg);
  border-radius: var(--r-pill); border: 1.5px solid transparent;
  transition: transform .16s var(--ease-out), background-color .2s ease, box-shadow .25s var(--ease-out), color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { transition: transform .25s var(--ease-out); }
.btn:active { transform: scale(0.97); }

.btn--primary { --btn-bg: var(--accent); --btn-fg: #fff; box-shadow: 0 8px 22px -10px rgba(239, 78, 31, .85); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--border-strong); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--outline { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, .38); }
.btn--sm { padding: .55rem .95rem; font-size: .88rem; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.02rem; }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--accent-600); box-shadow: var(--sh-glow); transform: translateY(-1px); }
  .btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
  .btn--light:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .5); }
  .btn--outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
  .btn:hover svg { transform: translateX(3px); }
}

/* ---------- Announcement ---------- */
.announce { background: var(--ink); color: #EDEAE3; font-size: .86rem; text-align: center; padding: .55rem 1rem; }
.announce p { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.announce strong { color: #fff; }
.announce__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--heat); animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 78, 31, .55); }
  70% { box-shadow: 0 0 0 8px rgba(239, 78, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 78, 31, 0); }
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 247, .8);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.header.is-scrolled { border-color: var(--border); box-shadow: var(--sh-sm); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand__mark { border-radius: 9px; box-shadow: var(--sh-sm); }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.32rem; color: var(--ink); letter-spacing: -0.01em; line-height: 1; display: flex; flex-direction: column; }
.brand__name-sub { font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-top: 2px; }
.brand--light .brand__name { color: #fff; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav__link {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink-soft);
  padding: .5rem .8rem; border-radius: var(--r-pill); position: relative;
  transition: color .2s ease;
}
.nav__link:not(.nav__link--cta).is-active { color: var(--accent-700); }
.nav__link:not(.nav__link--cta)::after {
  content: ""; position: absolute; left: 50%; bottom: .25rem; width: 0; height: 2px; border-radius: 2px;
  background: var(--heat); transform: translateX(-50%); transition: width .25s var(--ease-out);
}
.nav__link:not(.nav__link--cta).is-active::after { width: 18px; }
@media (hover: hover) and (pointer: fine) {
  .nav__link:not(.nav__link--cta):hover { color: var(--ink); }
  .nav__link:not(.nav__link--cta):hover::after { width: 18px; }
}
.nav__link--cta { color: #fff; margin-left: .5rem; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease-out), opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: clamp(580px, 90vh, 880px);
  background: var(--bg);
  overflow: hidden;
  border-bottom: 1.5px solid var(--ink);
}
.hero__reel { position: absolute; top: 0; right: 0; bottom: 0; width: clamp(300px, 52%, 760px); z-index: 0; }
.hero__reel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0, rgba(250,250,247,0) 24%);
}
.hero__video { width: 100%; height: 100%; object-fit: cover; display: block; background: #1B1E26; }

.hero__inner {
  position: relative; z-index: 1; width: 100%;
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
}
.hero__meta, .hero__display, .hero__sub, .hero__cta { max-width: min(740px, 64%); }

.hero__meta {
  display: flex; align-items: center; gap: .85rem; margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft);
}
.hero__meta i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }

.hero__display {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(3rem, 9vw, 7rem); line-height: .9; letter-spacing: .005em;
  color: var(--ink); margin: 0 0 clamp(1.3rem, 2.6vw, 1.9rem);
}
.hero__line { display: block; }
.hero__line--out { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.hero__dot { color: var(--accent); }

.hero__sub { font-size: clamp(1.02rem, 1.6vw, 1.18rem); line-height: 1.6; color: var(--muted); }

.hero__cta { display: flex; align-items: center; gap: 1.6rem; margin-top: clamp(1.6rem, 3vw, 2.3rem); flex-wrap: wrap; }
.hero__link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
  border-bottom: 2px solid var(--ink); padding-bottom: 3px;
  transition: gap .25s var(--ease-out), color .2s ease, border-color .2s ease;
}
.hero__link svg { transition: transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .hero__link:hover { color: var(--accent); border-color: var(--accent); gap: .7rem; }
  .hero__link:hover svg { transform: translateY(3px); }
}

.stars { color: #F5A623; letter-spacing: 2px; font-size: .95rem; }

/* ---------- Marquee ---------- */
.marquee-wrap { padding: 2.5rem 0 1rem; border-bottom: 1px solid var(--border); }
.marquee-label { text-align: center; font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 1.4rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: clamp(2rem, 5vw, 4rem); width: max-content; animation: marquee 34s linear infinite; }
.logo-word { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.05rem, 2.4vw, 1.5rem); color: var(--muted-2); opacity: .85; white-space: nowrap; text-transform: uppercase; letter-spacing: .02em; transition: color .2s ease, opacity .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee__track { animation-play-state: paused; }
  .logo-word:hover { color: var(--ink); opacity: 1; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Services: expanding card strip ---------- */
.svc { padding: clamp(4rem, 9vw, 7.5rem) 0; background: var(--bg); }
.svc__head { max-width: 740px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.kicker { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem; }
.svc__title { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: clamp(2.1rem, 6vw, 4rem); line-height: .94; letter-spacing: -.01em; color: var(--ink); }
.svc__intro { margin-top: 1.2rem; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 56ch; }

.svc__cards {
  display: flex;
  gap: 10px;
  height: clamp(340px, 48vw, 480px);
}
.svc__card {
  flex: 1;
  min-width: 0;
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  transition: flex .5s var(--ease-out);
}
.svc__card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.svc__card-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.4rem 1.2rem;
  background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 40%, transparent 70%);
  color: #fff;
  transition: padding .5s var(--ease-out);
}
.svc__card-no {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: .35rem;
}
.svc__card-name {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1rem, 1.8vw, 1.4rem); line-height: 1.1; color: #fff; letter-spacing: .02em;
  transition: font-size .5s var(--ease-out);
}
.svc__card-desc {
  font-size: .88rem; color: rgba(255,255,255,.7); line-height: 1.45;
  max-height: 0; opacity: 0; margin-top: 0;
  transition: max-height .5s var(--ease-out), opacity .35s ease, margin-top .5s var(--ease-out);
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .svc__card:hover { flex: 3.5; }
  .svc__card:hover img { transform: scale(1.08); }
  .svc__card:hover .svc__card-name { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
  .svc__card:hover .svc__card-desc { max-height: 4em; opacity: 1; margin-top: .5rem; }
  .svc__card:hover .svc__card-overlay { padding: 1.8rem 1.5rem; }
}
.svc__card:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--accent); }

/* ---------- Stats ---------- */
.stats { background: var(--ink); color: #fff; padding: clamp(2.6rem, 5vw, 3.5rem) 0; position: relative; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 80% -20%, rgba(249, 115, 22, .32), transparent 70%),
              radial-gradient(500px 280px at 8% 120%, rgba(239, 78, 31, .28), transparent 70%);
}
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat__num { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; background: linear-gradient(120deg, #fff, #F4C9B8); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat__label { display: block; margin-top: .6rem; color: #C8C5BC; font-size: .92rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__media { position: relative; }
.about__photos { position: relative; margin-bottom: 1.6rem; }
.about__img { border-radius: var(--r-xl); object-fit: cover; box-shadow: var(--sh-lg); border: 1px solid var(--border); display: block; }
.about__img--main { width: 88%; aspect-ratio: 4 / 3; }
.about__img--sub { position: absolute; right: 0; bottom: -1.4rem; width: 44%; aspect-ratio: 1 / 1; border: 5px solid var(--bg); }
.about__badge {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: #fff;
  background: var(--ink); padding: .5rem .9rem; border-radius: var(--r-pill); box-shadow: var(--sh-lg);
}
.about__badge--ase { top: 1rem; left: -.8rem; }
.about__badge--ase::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--heat); }
.about__badge--rating { bottom: .8rem; left: -.8rem; background: #fff; color: var(--ink); }
.about__badge--rating .stars { font-size: .8rem; letter-spacing: 1px; }
.about__content .section-title { text-align: left; }
.about__content .section-lead { margin-left: 0; }
.ticks { display: grid; gap: .85rem; margin: 1.6rem 0 2rem; }
.ticks li { display: flex; align-items: flex-start; gap: .7rem; font-size: 1rem; color: var(--ink-soft); }
.ticks svg { flex: none; width: 24px; height: 24px; margin-top: 1px; padding: 3px; border-radius: 50%; color: #fff; background: var(--accent); }

/* ---------- Portfolio / work ---------- */
/* -- Carousel -- */
.carousel { position: relative; overflow: hidden; padding-bottom: 1rem; }
.carousel__track { display: flex; transition: transform .5s var(--ease-out); }
.project { flex: 0 0 28%; max-width: 28%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); margin: 0 clamp(.4rem, 1vw, .75rem); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), opacity .5s var(--ease-out), filter .5s var(--ease-out); transform: scale(.85); opacity: .45; filter: blur(1.5px); }
.project.is-active { transform: scale(1); opacity: 1; filter: blur(0); box-shadow: var(--sh-lg); z-index: 2; }
.project__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.project__body { padding: 1.3rem 1.4rem 1.5rem; }
.project__cat { font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-700); }
.project__title { font-size: 1.28rem; margin: .35rem 0 .4rem; }
.project__desc { color: var(--muted); font-size: .92rem; }
@media (hover: hover) and (pointer: fine) {
  .project.is-active:hover .project__img img { transform: scale(1.06); }
}

.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.8rem; }
.carousel__btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.carousel__btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.carousel__btn:active { transform: scale(.92); }
.carousel__dots { display: flex; gap: .45rem; }
.carousel__dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: var(--border-strong); cursor: pointer; transition: background .25s, transform .25s; padding: 0; }
.carousel__dot.is-active { background: var(--accent); transform: scale(1.3); }

/* ---------- Reviews marquee ---------- */
.reviews-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.reviews-marquee__track {
  display: flex; gap: clamp(1rem, 2vw, 1.5rem); width: max-content;
  animation: reviewsScroll 40s linear infinite;
}
@media (hover: hover) and (pointer: fine) {
  .reviews-marquee:hover .reviews-marquee__track { animation-play-state: paused; }
}
@keyframes reviewsScroll { to { transform: translateX(-50%); } }

.review-card {
  flex: none; width: clamp(300px, 30vw, 380px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.6rem 1.5rem; box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .review-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
}
.review-card blockquote { font-size: 1rem; line-height: 1.55; color: var(--ink); margin: .7rem 0 1.1rem; }
.review-card figcaption { display: flex; align-items: center; gap: .75rem; }
.review-card figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: var(--sh-sm); }
.review-card figcaption span { display: flex; flex-direction: column; font-size: .88rem; color: var(--muted); }
.review-card figcaption strong { color: var(--ink); font-family: var(--font-head); }

/* ---------- FAQ ---------- */
.faq { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: 1px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: box-shadow .25s var(--ease-out); }
.faq__item + .faq__item { margin-top: -1px; }
.faq__item[open] { box-shadow: var(--sh-sm); border-color: var(--border-strong); }
.faq__q { list-style: none; padding: 1.25rem 1.5rem; font-family: var(--font-head); font-weight: 600; font-size: clamp(.98rem, 1.8vw, 1.1rem); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; transition: color .2s; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; font-size: 1.4rem; font-weight: 700; color: var(--accent); transition: transform .3s var(--ease-out); flex-shrink: 0; }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__q:hover { color: var(--accent); }
.faq__a { padding: 0 1.5rem 1.25rem; color: var(--muted); line-height: 1.7; font-size: .98rem; }
.faq__a p { margin: 0; }

/* ---------- CTA band ---------- */
.cta { position: relative; background: var(--ink); color: #fff; padding: clamp(3.5rem, 7vw, 6rem) 0; overflow: hidden; }
.cta__glow {
  position: absolute; inset: 0;
  background: radial-gradient(620px 320px at 16% 0%, rgba(249, 115, 22, .38), transparent 65%),
              radial-gradient(560px 320px at 86% 110%, rgba(220, 38, 38, .32), transparent 62%),
              radial-gradient(500px 300px at 60% 30%, rgba(239, 78, 31, .26), transparent 70%);
}
.cta__inner { position: relative; text-align: center; max-width: 720px; margin-inline: auto; }
.cta__title { color: #fff; font-size: clamp(2rem, 5vw, 3.1rem); }
.cta__text { color: #D7D3CB; font-size: clamp(1.02rem, 2vw, 1.18rem); margin: 1rem auto 2rem; max-width: 48ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.contact__info .section-title { text-align: left; }
.contact__info .section-lead { margin-left: 0; }
.contact__list { display: grid; gap: 1rem; margin: 1.8rem 0; }
.contact__list li { display: flex; align-items: center; gap: .8rem; font-size: 1rem; }
.contact__ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; color: var(--accent); background: var(--heat-soft); }
.contact__ic svg { width: 22px; height: 22px; }
.contact__list a { font-weight: 500; transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .contact__list a:hover { color: var(--accent-700); } }

.hours { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.2rem 1.4rem; box-shadow: var(--sh-sm); margin-bottom: 1.4rem; }
.hours__title { font-size: 1rem; margin-bottom: .8rem; }
.hours ul { display: grid; gap: .55rem; }
.hours li { display: flex; justify-content: space-between; font-size: .92rem; color: var(--ink-soft); }
.hours li span:first-child { color: var(--muted); }
.hours__closed { color: var(--accent-700); font-weight: 600; }

.contact__cta-row { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0; }

.contact__aside { display: block; }
.contact__map { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--sh-sm); height: 240px; }
.contact__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.02); }
.contact__map--lg { position: relative; height: 100%; min-height: clamp(380px, 56vh, 560px); }
.contact__map-pin {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2; display: inline-flex; align-items: center; gap: .5rem;
  background: var(--surface); color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  padding: .55rem .9rem; border-radius: var(--r-pill); box-shadow: var(--sh-lg); border: 1px solid var(--border);
  transition: transform .16s var(--ease-out);
}
.contact__map-pin:active { transform: scale(.97); }
.contact__map-pin-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--heat); box-shadow: 0 0 0 4px rgba(239,78,31,.18); }
@media (hover: hover) and (pointer: fine) { .contact__map-pin:hover { transform: translateY(-2px); } }

/* ---------- Footer ---------- */
.footer { background: #101216; color: #C8C5BC; padding: clamp(3rem, 6vw, 4.5rem) 0 1.8rem; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 2.8rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__tagline { margin: 1rem 0 1.3rem; font-size: .92rem; color: #98958D; max-width: 32ch; }
.socials { display: flex; gap: .6rem; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #C8C5BC; background: rgba(255, 255, 255, .07); transition: transform .2s var(--ease-out), background-color .25s ease, color .25s ease; }
.socials a svg { width: 19px; height: 19px; }
.socials a:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .socials a:hover { background: var(--heat); color: #fff; transform: translateY(-2px); } }
.socials--contact { margin-top: 1.2rem; }
.socials--contact a { color: var(--muted); background: var(--bg-alt); border: 1px solid var(--border); }
.footer__col h3 { font-size: 1rem; color: #fff; margin-bottom: 1.1rem; }
.footer__col a { display: block; font-size: .92rem; color: #98958D; padding: .3rem 0; transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .footer__col a:hover { color: #fff; } }
.footer__line { font-size: .92rem; color: #98958D; line-height: 1.5; margin-bottom: .55rem; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; padding-top: 1.6rem; font-size: .85rem; color: #7e7b73; }
.footer__legal a { color: #98958D; }
@media (hover: hover) and (pointer: fine) { .footer__legal a:hover { color: #fff; } }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--ink); box-shadow: var(--sh-lg); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), background-color .2s ease; }
.to-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.to-top:active { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) { .to-top:hover { background: var(--accent); } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 1.6rem; z-index: 120; transform: translate(-50%, 130%); display: flex; align-items: center; gap: .6rem; max-width: min(92vw, 440px); background: var(--ink); color: #fff; padding: .9rem 1.2rem; border-radius: var(--r-pill); box-shadow: var(--sh-lg); font-size: .94rem; transition: transform .4s var(--ease-out), opacity .3s ease; opacity: 0; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: #22C55E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m5 13 4 4L19 7' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .project { flex: 0 0 38%; max-width: 38%; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
}

@media (max-width: 900px) {
  .hero { display: block; min-height: 0; }
  .hero__reel { position: relative; width: 100%; height: 42vh; min-height: 280px; }
  .hero__reel::after { background: linear-gradient(0deg, var(--bg) 0, rgba(250,250,247,0) 30%); }
  .hero__inner { padding-block: clamp(1.8rem, 5vw, 2.8rem) clamp(2rem, 6vw, 3rem); }
  .hero__meta, .hero__display, .hero__sub, .hero__cta { max-width: 100%; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .3rem;
    padding: calc(var(--header-h) + 1.5rem) 1.4rem 2rem; background: var(--surface);
    box-shadow: -20px 0 60px -20px rgba(22, 24, 29, .35);
    transform: translateX(100%); transition: transform .4s var(--ease-out); z-index: 99;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { padding: .85rem 1rem; font-size: 1.05rem; border-radius: var(--r-sm); }
  .nav__link:not(.nav__link--cta)::after { display: none; }
  .nav__link--cta { margin-left: 0; margin-top: .6rem; }
  .nav-toggle { display: flex; z-index: 100; }
  body.nav-open { overflow: hidden; }
  .nav-backdrop { position: fixed; inset: 0; z-index: 98; background: rgba(22, 24, 29, .45); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

  .about { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .svc__cards { flex-direction: column; height: auto; gap: 8px; }
  .svc__card { flex: none; height: 120px; border-radius: var(--r-md); }
  .svc__card:hover { flex: none; }
  .svc__card-desc { display: none; }
}

@media (max-width: 600px) {
  .project { flex: 0 0 65%; max-width: 65%; }
  .about__img--main { width: 100%; }
  .about__img--sub { width: 42%; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 380px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track, .reviews-marquee__track { animation: none !important; }
}
