/* AutoAscend — homepage
   Brand indigo #2B328C. Dark, photography-forward. System + Google fonts. */

:root {
  --indigo: #2b328c;
  --indigo-deep: #1c2270;
  --indigo-bright: #4a54c4;
  --ice: #8ec5ff;
  --ice-dim: #6ba6ff;
  --bg: #05060a;
  --bg-2: #090b12;
  --bg-card: #0d1018;
  --bg-card-hover: #12162a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f1ea;
  --text-muted: #a7a8b4;
  --text-faint: #7c7e8c;
  --white: #ffffff;
  --font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 1180px;
  --header-h: 4.25rem;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

html:focus-within { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}

::selection {
  background: var(--indigo);
  color: var(--white);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--indigo);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ice);
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--ice);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
}
.site-header.is-scrolled {
  background: rgba(5, 6, 10, 0.88);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
}
.brand img {
  width: 34px;
  height: 34px;
}
.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand-name span { color: var(--ice-dim); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }
.nav .nav-cta {
  color: var(--white);
  background: var(--indigo);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.nav .nav-cta:hover { background: var(--indigo-bright); color: var(--white); }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-btn svg { width: 22px; height: 22px; }

section[id] { scroll-margin-top: calc(var(--header-h) + 0.4rem); }

/* Hero */
.hero {
  position: relative;
  min-height: min(56rem, calc(100svh - var(--header-h)));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 58%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 10, 0.94) 0%, rgba(5, 6, 10, 0.72) 38%, rgba(5, 6, 10, 0.28) 70%, rgba(5, 6, 10, 0.45) 100%),
    linear-gradient(180deg, rgba(5, 6, 10, 0.35) 0%, transparent 28%, rgba(5, 6, 10, 0.75) 100%);
}
.hero-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  padding: 5rem 0 4.5rem;
  max-width: 42rem;
  margin-left: max(calc((100% - var(--max)) / 2), 1.25rem);
  margin-right: auto;
}
.hero h1 {
  margin: 0 0 1.1rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 4.85rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
}
.hero-lede {
  margin: 0 0 2rem;
  max-width: 34rem;
  font-size: 1.12rem;
  color: var(--text-muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.75rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--indigo);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(43, 50, 140, 0.38);
}
.btn-primary:hover { background: var(--indigo-bright); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--ice);
  color: var(--white);
}

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  border-top: 1px solid var(--line);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1.5rem 2.5rem;
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 38rem;
}

/* Services */
.services { background: var(--bg-2); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 16.5rem;
  padding: 1.4rem 1.35rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.service-card:hover {
  border-color: rgba(107, 166, 255, 0.35);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}
.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--indigo), var(--ice));
  opacity: 0;
  transition: opacity 0.25s;
}
.service-card:hover::after { opacity: 1; }

.service-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.6rem;
}
.service-icon {
  width: 42px;
  height: 42px;
  color: var(--ice);
}
.service-icon svg {
  width: 42px;
  height: 42px;
}
.service-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}
.service-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Product lines: tint + PPF */
.lines { background: var(--bg); }
.line-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.line-card {
  position: relative;
  min-height: 28rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  isolation: isolate;
  display: flex;
  align-items: flex-end;
}
.line-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.line-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5,6,10,0.15) 0%, rgba(5,6,10,0.55) 45%, rgba(5,6,10,0.94) 100%);
}
.line-body { padding: 2rem 1.6rem 1.7rem; }
.line-body h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.line-body p {
  margin: 0;
  color: var(--text-muted);
  max-width: 36rem;
}
.line-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.1rem;
}
.tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice);
  border: 1px solid rgba(142, 197, 255, 0.28);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(43, 50, 140, 0.28);
}


/* Gallery — AutoAscend photography */
.gallery { background: var(--bg); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
  isolation: isolate;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.4s var(--ease);
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item-vdp img { object-position: 50% 42%; }
.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 2.4rem 1rem 0.85rem;
  background: linear-gradient(180deg, transparent, rgba(5, 6, 10, 0.92));
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.line-card:first-child img { object-position: 70% 45%; }
.line-card:last-child img { object-position: 50% 16%; }

/* Why */
.why { background: var(--bg-2); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.why-card {
  padding: 1.6rem 1.4rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.why-card .why-index {
  display: block;
  margin-bottom: 1.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ice);
}
.why-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.why-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Bio */
.bio {
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(43, 50, 140, 0.22), transparent 55%),
    var(--bg);
}
.bio-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem 3.5rem;
  align-items: center;
}
.bio-portrait {
  position: relative;
  min-height: 22rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.bio-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 22rem;
  filter: saturate(0.85) contrast(1.05);
}
.bio-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.bio-copy p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  max-width: 36rem;
}
.bio-copy p:last-child { margin-bottom: 0; }

/* Contact */
.contact { background: var(--bg-2); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem 3rem;
  align-items: start;
}
.contact-copy h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.contact-copy p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}
.contact-email {
  color: var(--ice);
  font-weight: 700;
  text-decoration: none;
}
.contact-email:hover { text-decoration: underline; }
.contact-note {
  font-size: 0.85rem;
  color: var(--text-faint);
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  padding: 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #080910;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:hover,
.field textarea:hover { border-color: rgba(142, 197, 255, 0.35); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ice-dim);
  box-shadow: 0 0 0 3px rgba(43, 50, 140, 0.4);
}
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.form-status {
  font-size: 0.9rem;
  color: var(--ice);
  min-height: 1.2em;
}
.form.is-sent .form-fields-hide { display: none; }


.line-note {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--text-faint);
}
.line-link {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--ice);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}
.line-link:hover { text-decoration: underline; }

/* 360 merchandising */
.spin { background: var(--bg-2); }
.spin-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: start;
}
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.video-card video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
  vertical-align: top;
}
.video-body { padding: 1.25rem 1.35rem 1.45rem; }
.video-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.video-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Inner pages */
.page-hero {
  position: relative;
  min-height: min(28rem, 68svh);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero-media-ppf img { object-position: 50% 16%; }
.page-hero-media-tint img { object-position: 72% 45%; }
.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 10, 0.92) 0%, rgba(5, 6, 10, 0.62) 42%, rgba(5, 6, 10, 0.35) 100%),
    linear-gradient(180deg, rgba(5, 6, 10, 0.3) 0%, transparent 30%, rgba(5, 6, 10, 0.82) 100%);
}
.page-hero-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  padding: 4.5rem 0 3.25rem;
  max-width: 40rem;
  margin-left: max(calc((100% - var(--max)) / 2), 1.25rem);
}
.page-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.page-hero-inner p:last-child {
  margin: 0;
  color: var(--text-muted);
  max-width: 34rem;
}

.page-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.page-figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
  position: relative;
}
.page-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  min-height: 16rem;
}
.page-figure figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.8rem;
  color: var(--text-faint);
  line-height: 1.45;
}
.page-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.page-copy p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  max-width: 38rem;
}
.page-copy p:last-child { margin-bottom: 0; }

body.is-page .site-header {
  background: rgba(5, 6, 10, 0.88);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Footer */
.site-footer {
  padding: 1.75rem 0 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: center;
  color: var(--text-faint);
  font-size: 0.88rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
}
.footer-brand img { width: 22px; height: 22px; }
.footer-links {
  display: flex;
  gap: 1.25rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--text); }
.footer-domain { color: var(--text-faint); }

/* Mobile nav */
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: rgba(5, 6, 10, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.9rem 0.2rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
    color: var(--text);
  }
  .nav .nav-cta {
    margin-top: 0.85rem;
    text-align: center;
    border-radius: 999px;
    border-bottom: 0;
  }
  .section-head,
  .bio-grid,
  .contact-grid,
  .line-grid,
  .why-grid,
  .spin-grid,
  .page-split {
    grid-template-columns: 1fr;
  }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { padding-top: 3.5rem; }
  .line-card { min-height: 22rem; }
}

@media (max-width: 560px) {
  .wrap,
  .header-inner,
  .hero-inner,
  .page-hero-inner,
  .footer-inner {
    width: min(var(--max), calc(100% - 1.5rem));
  }
  .service-grid,
  .gallery-grid,
  .form { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .hero { min-height: min(40rem, 92svh); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
