:root {
  --bg: #0d1218;
  --bg-soft: #151c25;
  --ink: #e8eef5;
  --muted: #93a0b0;
  --line: rgba(232, 238, 245, 0.1);
  --accent: #2dd4bf;
  --accent-ink: #042f2e;
  --panel: #1a2330;
  --panel-2: #212b3a;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --font: "Figtree", sans-serif;
  --display: "Syne", sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 480px at 85% -10%, rgba(45, 212, 191, 0.16), transparent 55%),
    radial-gradient(700px 420px at 0% 20%, rgba(56, 120, 255, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg), #0a0e13 40%, var(--bg-soft));
  background-repeat: no-repeat;
  background-attachment: scroll;
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.65;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.container-full { width: calc(100% - 2.5rem); max-width: none; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(13, 18, 24, 0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 78px;
}
.brand { display: flex; align-items: center; gap: .85rem; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), #0f766e);
  color: var(--accent-ink); font-family: var(--display); font-weight: 800; letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--display); font-size: 1.2rem; font-weight: 700; }
.brand-text small { color: var(--muted); font-size: .8rem; }

.site-nav { display: flex; flex-wrap: wrap; gap: .35rem 1rem; align-items: center; }
.site-nav a {
  font-size: .94rem; color: var(--muted); padding: .35rem 0;
  border-bottom: 2px solid transparent; transition: .2s ease;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); border-color: var(--accent); }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--ink); font-size: 1.4rem; }

/* Hero — full-bleed slider */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(92vh, 820px);
  isolation: isolate;
  contain: paint;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  display: grid; align-items: end;
  padding: 5.5rem 0 5.5rem;
  opacity: 0; visibility: hidden;
  pointer-events: none;
  transition: opacity .7s ease, visibility .7s ease;
}
.hero-slide.is-active {
  opacity: 1; visibility: visible; pointer-events: auto; z-index: 1;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: brightness(.62) saturate(1.05);
}
.hero-slide.is-active .hero-media img {
  animation: heroKen 18s ease-in-out infinite alternate;
}
.hero-slide::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(105deg, rgba(6,10,16,.92) 0%, rgba(6,10,16,.72) 38%, rgba(6,10,16,.38) 68%, rgba(6,10,16,.22) 100%),
    linear-gradient(180deg, rgba(6,10,16,.28) 0%, rgba(6,10,16,.78) 100%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; right: 0; bottom: 0; z-index: 1;
  width: 48%; height: 55%;
  background: radial-gradient(closest-side, rgba(45,212,191,.22), transparent 72%);
  animation: floatOrb 9s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  text-shadow: 0 10px 28px rgba(0,0,0,.45);
}
@keyframes heroKen {
  from { transform: scale(1.03) translate3d(0,0,0); }
  to { transform: scale(1.08) translate3d(-1%, -0.5%, 0); }
}
@keyframes floatOrb {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-36px,-20px,0); }
}
.hero-inner { max-width: 760px; }
.hero-brand {
  font-family: var(--display);
  font-size: clamp(3.2rem, 9vw, 6rem);
  line-height: .9; margin: 0 0 1.1rem; letter-spacing: -.03em;
  color: #fff;
  animation: rise .75s ease both;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin: 0 0 1rem; max-width: 22ch; letter-spacing: -.02em;
  color: #fff;
  animation: rise .85s ease .05s both;
}
.hero p {
  margin: 0 0 1.7rem; color: rgba(255,255,255,.92); font-size: 1.05rem; max-width: 48ch;
  animation: rise .95s ease .1s both;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; animation: rise 1s ease .16s both; }
.hero-controls {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 1.35rem;
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  padding: 0 1.25rem;
}
.hero-arrow {
  width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid rgba(232,238,245,.28);
  background: rgba(13,18,24,.45); color: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  backdrop-filter: blur(8px);
}
.hero-arrow:hover { background: rgba(45,212,191,.28); border-color: var(--accent); }
.hero-dots { display: flex; gap: .45rem; align-items: center; }
.hero-dot {
  width: 10px; height: 10px; border-radius: 999px; padding: 0;
  border: 0; background: rgba(232,238,245,.35); cursor: pointer;
}
.hero-dot.is-active { background: var(--accent); width: 22px; }
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .9rem 1.3rem; border-radius: 999px;
  border: 1px solid transparent; font-weight: 700; cursor: pointer; transition: .2s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(45,212,191,.25); }
.btn-ghost { border-color: rgba(232,238,245,.28); color: var(--ink); backdrop-filter: blur(6px); background: rgba(255,255,255,.04); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-dark { background: var(--accent); color: var(--accent-ink); }

.section { padding: 4.5rem 0; }
.section-head { margin-bottom: 2rem; max-width: 42rem; }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700; margin: 0 0 .55rem; letter-spacing: -.03em; line-height: 1.1;
}
.section-head p { margin: 0; color: var(--muted); }

/* Service cards with photos */
.service-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}
.service-item.has-media {
  overflow: hidden;
  padding: 0;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .28s ease, border-color .28s ease;
}
.service-item.has-media:hover {
  transform: translateY(-6px);
  border-color: rgba(45,212,191,.4);
}
.service-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.service-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.service-item.has-media:hover .service-media img { transform: scale(1.08); }
.service-body { padding: 1.05rem 1.05rem 1.15rem; }
.service-body .icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: .75rem;
  background: rgba(45,212,191,.12); color: var(--accent);
}
.service-body .icon svg { width: 20px; height: 20px; }
.service-body h3 { margin: 0 0 .4rem; font-size: 1.02rem; line-height: 1.25; }
.service-body p { margin: 0; color: var(--muted); }
.more { display: inline-block; margin-top: .85rem; color: var(--accent); font-weight: 700; }

/* About band */
.about-band {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  min-height: 520px;
  margin: 0 0 1rem;
  border-block: 1px solid var(--line);
}
.about-media { position: relative; overflow: hidden; min-height: 360px; }
.about-media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: aboutDrift 16s ease-in-out infinite alternate;
}
@keyframes aboutDrift {
  from { transform: scale(1.02); }
  to { transform: scale(1.08) translateY(-2%); }
}
.about-copy {
  display: flex; flex-direction: column; justify-content: center;
  gap: 1rem; padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(160deg, #121925, #182231);
}
.about-copy h2 {
  font-family: var(--display); font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0; letter-spacing: -.03em; line-height: 1.1;
}
.about-copy > p {
  margin: 0; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem;
}
.stats.compact {
  grid-template-columns: repeat(3, 1fr);
  margin: .4rem 0 1rem;
}
.stat {
  padding: 1rem;
  text-align: center;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.stat strong {
  display: block; font-family: var(--display); font-size: 2rem;
  color: var(--accent); line-height: 1;
}
.stat span { color: var(--muted); font-size: .88rem; }

/* Reference & post visual cards */
.ref-grid.visual, .post-grid.visual {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.ref-card, .post-card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform .28s ease, border-color .28s ease;
}
.ref-card:hover, .post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(45,212,191,.35);
}
.ref-media, .post-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.ref-media img, .post-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.ref-card:hover .ref-media img,
.post-card:hover .post-media img { transform: scale(1.07); }
.ref-body, .post-body { padding: 1.15rem 1.2rem 1.3rem; }
.ref-body h3, .post-body h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.ref-body p, .post-body p { margin: 0; color: var(--muted); }

/* CTA band */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 340px;
  display: grid;
  align-items: center;
  margin-top: 1rem;
}
.cta-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(8,12,18,.9), rgba(15,118,110,.55) 55%, rgba(8,12,18,.75));
}
.cta-inner { padding: 3.5rem 0; max-width: 640px; }
.cta-inner h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0 0 .7rem; letter-spacing: -.03em;
}
.cta-inner p { margin: 0 0 1.3rem; color: rgba(232,238,245,.85); }

/* Inner page hero */
.page-hero { padding: 3.4rem 0 1.4rem; }
.page-hero.has-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 280px;
  display: grid;
  align-items: end;
  padding: 5rem 0 2.2rem;
  margin-bottom: 1.5rem;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.page-hero.has-bg::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,12,18,.35), rgba(8,12,18,.88));
}
.page-hero h1, .page-hero-inner h1 {
  font-family: var(--display); font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700; margin: 0 0 .55rem; letter-spacing: -.03em;
}
.page-hero p, .page-hero-inner p { margin: 0; color: rgba(232,238,245,.82); max-width: 52ch; }

.content-panel, .form-panel, .flash {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.content-panel, .form-panel { padding: 1.5rem; }
.prose h2, .prose h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; }
.prose p, .prose li { color: #c9d3df; }
.prose a { color: var(--accent); }
.prose a.btn,
.prose a.btn-primary,
.prose a.btn-dark {
  color: var(--accent-ink);
  text-decoration: none;
}
.seo-pillar-copy .btn { margin-top: .25rem; }

.detail-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 1.2rem;
  align-items: start;
}
.detail-media {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  min-height: 280px;
}
.detail-media img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }

.split {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.2rem; align-items: start;
}
.contact-meta p { margin: .35rem 0; color: var(--muted); }
.contact-meta strong { color: var(--ink); }

label { display: block; font-size: .88rem; margin-bottom: .35rem; color: var(--muted); }
input, textarea, select {
  width: 100%; border: 1px solid var(--line); background: #101722;
  border-radius: 12px; padding: .85rem .95rem; font: inherit; color: var(--ink);
  margin-bottom: .9rem;
}
textarea { min-height: 140px; resize: vertical; }
.flash { padding: .9rem 1rem; margin-bottom: 1rem; }
.flash.ok { border-color: rgba(45,212,191,.35); background: rgba(45,212,191,.08); }
.flash.err { border-color: rgba(248,113,113,.35); background: rgba(248,113,113,.08); }

.site-footer {
  margin-top: 0; border-top: 1px solid var(--line);
  background: #080b10; color: var(--muted); padding: 3rem 0 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; }
.footer-brand {
  font-family: var(--display); font-size: 1.7rem; display: block;
  margin-bottom: .5rem; color: var(--ink); font-weight: 700;
}
.site-footer h3 { margin: 0 0 .6rem; font-size: 1rem; color: var(--ink); }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-size: .88rem;
}

@media (max-width: 900px) {
  .about-band, .detail-layout { grid-template-columns: 1fr; }
  .about-media { min-height: 280px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 1rem; right: 1rem; top: 78px;
    flex-direction: column; align-items: flex-start; padding: 1rem;
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  }
  .site-nav.is-open { display: flex; }
  .stats, .footer-grid, .split { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .stats, .stats.compact, .footer-grid, .split { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
  .service-grid { grid-template-columns: 1fr; }
}

/* Blog enrichment */
.blog-intro { margin-bottom: 1.4rem; }
.blog-topics {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: 1.1rem; padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.blog-topics span {
  display: inline-block;
  padding: .35rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .82rem;
  background: rgba(255,255,255,.03);
}
.post-meta {
  display: flex; align-items: center; gap: .65rem;
  margin-bottom: .55rem;
  color: var(--muted);
  font-size: .82rem;
}
.post-meta.hero-meta { color: rgba(232,238,245,.78); }
.post-topic {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .02em;
}
.post-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  margin-bottom: 1.6rem;
}
.post-featured-media {
  display: block;
  min-height: 280px;
  overflow: hidden;
}
.post-featured-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.post-featured:hover .post-featured-media img { transform: scale(1.05); }
.post-featured-body {
  padding: 1.6rem 1.5rem 1.7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-featured-body h2 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin: 0 0 .6rem;
  letter-spacing: -.02em;
}
.post-featured-body p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}
.blog-list-head { margin-top: .4rem; }
.blog-cta {
  margin-top: 1.8rem;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(45,212,191,.28);
  background: linear-gradient(120deg, rgba(15,118,110,.18), rgba(8,12,18,.55));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.blog-cta h2 {
  font-family: var(--display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin: 0 0 .35rem;
}
.blog-cta p { margin: 0; color: var(--muted); }
.related-posts { padding-top: .5rem; }
.related-all { margin-top: 1.1rem; }

@media (max-width: 900px) {
  .post-featured { grid-template-columns: 1fr; }
  .post-featured-media { min-height: 220px; aspect-ratio: 16 / 10; }
}


.ref-category {
  display: inline-block;
  margin-bottom: .45rem;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
}


/* SEO / content enhancements */
.hero-slide-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin: 0 0 1rem;
  max-width: 22ch;
  letter-spacing: -.02em;
  color: #fff;
}
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: .35rem .55rem;
  align-items: center;
  font-size: .86rem;
  color: rgba(232,238,245,.72);
  margin: 0 0 1rem;
}
.breadcrumbs a:hover { color: var(--accent); }
.seo-pillar { padding-top: 1rem; }
.seo-pillar-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 1.4rem;
  align-items: start;
}
.seo-pillar-copy {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}
.seo-pillar-copy h2 {
  font-family: var(--display);
  margin: 0 0 .8rem;
  letter-spacing: -.02em;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}
.seo-pillar-copy ul { margin: 1rem 0 1.3rem; padding-left: 1.1rem; color: #c9d3df; }
.seo-pillar-card {
  background: #101722;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  display: grid;
  gap: .65rem;
}
.seo-pillar-card h3 {
  margin: 0 0 .3rem;
  font-family: var(--display);
  font-size: 1.05rem;
}
.seo-pillar-card a {
  color: var(--accent);
  border-bottom: 1px solid rgba(45,212,191,.25);
  padding-bottom: .2rem;
}
.footer-seo-links {
  display: flex; flex-wrap: wrap; gap: .55rem .9rem;
  margin-top: 1rem;
}
.footer-seo-links a { color: var(--ink); font-size: .9rem; }
.footer-seo-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-note { color: var(--muted); }
@media (max-width: 900px) {
  .seo-pillar-grid { grid-template-columns: 1fr; }
}


/* Auto industry feed block */
.feed-card { gap: .85rem; }
.feed-card-head h3 { margin: 0 0 .25rem; }
.feed-card-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.feed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.feed-list a {
  display: grid; gap: .25rem;
  padding: .75rem .8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
  color: inherit;
  transition: .2s ease;
}
.feed-list a:hover { border-color: rgba(45,212,191,.45); background: rgba(45,212,191,.06); }
.feed-source {
  font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent);
}
.feed-list strong { font-size: .95rem; line-height: 1.35; color: var(--ink); }
.feed-summary { font-size: .84rem; color: var(--muted); }
.feed-note { margin: .2rem 0 0; font-size: .75rem; color: var(--muted); }
.feed-fallback { display: grid; gap: .65rem; }
.feed-fallback a { color: var(--accent); border-bottom: 1px solid rgba(45,212,191,.25); padding-bottom: .2rem; }
