/* ============================================================
   AURION — Premium Electric Golf Vehicles
   Visual language: Luxury Automotive · Minimal · High-end Mfg
   ============================================================ */

:root {
  --bg: #f2f2f0;
  --bg-soft: #eaeae6;
  --surface: #ffffff;
  --ink: #121212;
  --ink-2: #2a2a2a;
  --muted: #6a6a66;
  --line: #d8d8d2;
  --line-soft: rgba(18, 18, 18, 0.08);
  --steel: #5a5d62;
  --forest: #1f2d24;
  --forest-soft: #2d4034;
  --hero-veil: linear-gradient(
    105deg,
    rgba(10, 12, 11, 0.62) 0%,
    rgba(10, 12, 11, 0.28) 42%,
    rgba(10, 12, 11, 0.08) 100%
  );
  --radius: 2px;
  --nav-h: 80px;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --section-y: clamp(5rem, 10vw, 8.5rem);
  --max: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Syne", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(31, 45, 36, 0.06), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(90, 93, 98, 0.07), transparent 50%),
    var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */

.container {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.section__head {
  max-width: 36rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  overflow: visible;
}

.section__eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: var(--ink);
  overflow: visible;
  padding-block: 0.12em;
}

.section__lead {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 32rem;
  line-height: 1.65;
  overflow: visible;
  padding-bottom: 0.15em;
}

/* ------------------------------------------------------------
   Typography utilities
   ------------------------------------------------------------ */

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--ink);
  color: #fff;
}

.btn--primary:hover {
  background: var(--forest);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn--outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ------------------------------------------------------------
   Header / Nav
   ------------------------------------------------------------ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
  pointer-events: none;
}

.site-header .nav-bar,
.site-header .nav-bar__left,
.site-header .brand,
.site-header .nav,
.site-header .nav-toggle,
.site-header .nav a,
.site-header .nav-cta,
.site-header .page-back {
  pointer-events: auto;
}

.site-header.is-scrolled {
  background: rgba(242, 242, 240, 0.88);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line-soft);
}

.site-header.is-scrolled .brand,
.site-header.is-scrolled .nav a,
.site-header.is-scrolled .nav-toggle {
  color: var(--ink);
}

.nav-bar {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.nav-bar__left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.45rem 0.15rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0.72;
  transition: opacity 0.25s var(--ease);
  position: relative;
  z-index: 3;
}

.page-back:hover {
  opacity: 1;
}

.page-back__arrow {
  font-size: 0.95rem;
  line-height: 1;
  transform: translateY(-0.5px);
}

.page-back[hidden] {
  display: none !important;
}

.site-header.is-transparent:not(.is-scrolled) .page-back {
  color: #fff;
}

.site-header.is-scrolled .page-back,
.site-header:not(.is-transparent) .page-back {
  color: var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  color: #fff;
  transition: opacity 0.3s var(--ease);
  position: relative;
  z-index: 3;
  padding: 0.35rem 0;
  min-height: 2.75rem;
}

.brand:hover {
  opacity: 0.88;
}

.brand__logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.brand span {
  font-weight: 500;
  opacity: 0.55;
  letter-spacing: 0.08em;
  font-size: 0.7em;
  margin-left: 0.35rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav a,
.nav .nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  transition:
    color 0.25s var(--ease),
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 0.95rem;
  position: relative;
  z-index: 3;
  cursor: pointer;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
}

.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Current page — Inquiry-like chip, lower opacity */
.nav a.is-active {
  color: #121212;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.45);
}

.site-header.is-scrolled .nav a,
.site-header:not(.is-transparent) .nav a {
  color: rgba(18, 18, 18, 0.55);
}

.site-header.is-scrolled .nav a:hover,
.site-header:not(.is-transparent) .nav a:hover {
  color: var(--ink);
  background: rgba(18, 18, 18, 0.06);
}

.site-header.is-scrolled .nav a.is-active,
.site-header:not(.is-transparent) .nav a.is-active {
  color: #fff;
  background: rgba(18, 18, 18, 0.72);
  border-color: rgba(18, 18, 18, 0.2);
}

.nav-cta {
  min-height: 2.5rem;
  padding: 0.55rem 1.15rem;
  background: #fff;
  color: var(--ink) !important;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
}

.site-header.is-scrolled .nav-cta {
  background: var(--ink);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
  transition: transform 0.3s var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: visible;
  background: #141816;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(70, 90, 75, 0.35), transparent 55%),
    linear-gradient(160deg, #1a221c 0%, #0e100f 55%, #171a18 100%);
}

.hero__media picture,
.hero__media img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__media img {
  object-fit: cover;
  /* Keep cart/subject in frame; avoid extra zoom that softens a mid-res source */
  object-position: 78% 52%;
  transform: scale(1);
  animation: none;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: var(--hero-veil);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: clamp(3.5rem, 9vw, 6.5rem);
  max-width: 40rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  padding-bottom: 0.08em;
  overflow: visible;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.28s forwards;
}

.hero__text {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 28rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  padding-bottom: 0.12em;
  overflow: visible;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.42s forwards;
}

.hero .btn-group {
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.55s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-drift {
  to {
    transform: scale(1);
  }
}

/* ------------------------------------------------------------
   Reveal on scroll
   ------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ------------------------------------------------------------
   Categories — editorial lineup (premium OEM)
   ------------------------------------------------------------ */

.categories {
  background: var(--bg);
}

.section__head--wide {
  max-width: 42rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.75rem, 1.4vw, 1.15rem);
  background: transparent;
  border: 0;
  overflow: visible;
}

.category-card {
  position: relative;
  grid-column: span 2;
  min-height: clamp(20rem, 32vw, 26rem);
  overflow: hidden;
  display: block;
  padding: 0;
  color: #fff;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  isolation: isolate;
  background: #141816;
}

.category-card:nth-child(4),
.category-card:nth-child(5) {
  grid-column: span 3;
  min-height: clamp(18rem, 28vw, 22rem);
}

.category-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #1a1a1a;
}

.category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transform: scale(1.02);
  transition: transform 1.1s var(--ease);
  filter: none;
}

.category-card__veil {
  position: absolute;
  inset: 0;
  /* Keep photo bright — no full-card darken */
  background: transparent;
  pointer-events: none;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
  transition: border-color 0.45s var(--ease);
}

.category-card:hover .category-card__media img,
.category-card:focus-visible .category-card__media img {
  transform: scale(1.08);
}

.category-card:hover::after,
.category-card:focus-visible::after {
  border-color: rgba(255, 255, 255, 0.28);
}

.category-card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.category-card__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.2rem;
  min-height: inherit;
  height: 100%;
  padding: clamp(1.2rem, 2.2vw, 1.75rem);
  box-sizing: border-box;
  pointer-events: none;
}

/* Local text scrim: only under copy, photo stays bright above */
.category-card__copy::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44%;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(10, 12, 11, 0.88) 0%,
    rgba(10, 12, 11, 0.55) 40%,
    rgba(10, 12, 11, 0.18) 72%,
    rgba(10, 12, 11, 0) 100%
  );
  pointer-events: none;
}

.category-card__index {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.35rem;
  line-height: 1.4;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.category-card__meta {
  position: relative;
  z-index: 2;
  display: block;
  margin: 0;
  padding: 0.06em 0;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88) !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow: visible;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.category-card__label {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 13rem;
  margin: 0.1rem 0 0;
  padding: 0.08em 0 0.12em;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.85vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.28;
  color: #ffffff !important;
  overflow: visible;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
  -webkit-font-smoothing: antialiased;
}

.category-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.8rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  padding-bottom: 0.08em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
  transform: translateY(4px);
  opacity: 0.78;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}

.category-card__cta span {
  display: inline-block;
  transition: transform 0.45s var(--ease);
}

.category-card:hover .category-card__cta,
.category-card:focus-visible .category-card__cta {
  opacity: 1;
  transform: translateY(0);
}

.category-card:hover .category-card__cta span,
.category-card:focus-visible .category-card__cta span {
  transform: translateX(4px);
}

/* ------------------------------------------------------------
   Featured vehicles
   ------------------------------------------------------------ */

.featured {
  background: var(--bg);
}

.featured-list {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
}

.featured-item {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.featured-item:nth-child(even) {
  grid-template-columns: 0.85fr 1.15fr;
}

.featured-item:nth-child(even) .featured-item__media {
  order: 2;
}

.featured-item__media {
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 16 / 10;
}

.featured-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.featured-item:hover .featured-item__media img {
  transform: scale(1.03);
}

.featured-item__body {
  max-width: 28rem;
}

.featured-item__series {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.85rem;
}

.featured-item__name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 1rem;
  padding-bottom: 0.06em;
  overflow: visible;
}

.featured-item__desc {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.featured-item__specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-block: 1.25rem;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.featured-item__specs dt {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.35rem;
}

.featured-item__specs dd {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

/* ------------------------------------------------------------
   Applications
   ------------------------------------------------------------ */

.applications {
  background: var(--forest);
  color: #fff;
}

.applications .section__eyebrow {
  color: rgba(255, 255, 255, 0.55);
}

.applications .section__title {
  color: #fff;
}

.applications .section__lead {
  color: rgba(255, 255, 255, 0.68);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.app-card {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
}

.app-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.app-card:hover img {
  transform: scale(1.05);
}

.app-card__label {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

/* ------------------------------------------------------------
   Factory strength — mosaic (1 hero + 2 panels)
   ------------------------------------------------------------ */

.factory {
  background: var(--bg);
}

.factory-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 1.4vw, 1.1rem);
}

.factory-tile {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #121412;
  min-width: 0;
  border-radius: 2px;
}

.factory-tile--hero {
  grid-column: 1 / -1;
  min-height: clamp(16rem, 34vw, 26rem);
  aspect-ratio: 21 / 9;
}

.factory-tile--third {
  min-height: clamp(14rem, 22vw, 18rem);
  aspect-ratio: 16 / 11;
}

.factory-tile__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.factory-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.001);
  transition: transform 0.9s var(--ease);
  will-change: transform;
  filter: none;
}

.factory-tile:hover .factory-tile__media img,
.factory-tile:focus-within .factory-tile__media img {
  transform: scale(1.06);
}

.factory-tile__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Light top wash only for text legibility — keeps the photo bright */
  background: linear-gradient(
    to bottom,
    rgba(8, 10, 9, 0.34) 0%,
    rgba(8, 10, 9, 0.08) 28%,
    rgba(8, 10, 9, 0) 55%
  );
}

.factory-tile__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  height: 100%;
  min-height: inherit;
  padding: clamp(1.75rem, 4vw, 2.75rem) 1.25rem 1.25rem;
  color: #fff;
  pointer-events: none;
}

.factory-tile__title {
  margin: 0;
  padding: 0.1em 0 0.12em;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  overflow: visible;
  color: #fff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.factory-tile--third .factory-tile__title {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
}

.factory-tile__text {
  margin: 0.45rem 0 0;
  padding: 0.08em 0 0.12em;
  max-width: 28ch;
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 1.25vw, 1rem);
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  overflow: visible;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.3);
}

.factory-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
}

.factory-stat {
  background: transparent;
  padding: 0.25rem 1rem 0.25rem 0;
  text-align: left;
  border-right: 1px solid var(--line);
}

.factory-stat:last-child {
  border-right: 0;
  padding-right: 0;
}

.factory-stat:first-child {
  padding-left: 0;
}

.factory-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin-bottom: 0.45rem;
  padding-bottom: 0.08em;
  overflow: visible;
  color: var(--ink);
}

.factory-stat span {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  line-height: 1.45;
}

/* ------------------------------------------------------------
   Cases
   ------------------------------------------------------------ */

.cases {
  background: var(--bg);
}

.case-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.25rem;
}

.case-card {
  position: relative;
  overflow: hidden;
  min-height: 22rem;
  background: var(--bg-soft);
}

.case-card--large {
  min-height: 28rem;
}

.case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.case-card:hover img {
  transform: scale(1.04);
}

.case-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(8, 10, 9, 0.85), transparent);
  color: #fff;
}

.case-card__loc {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.4rem;
}

.case-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ------------------------------------------------------------
   Inquiry
   ------------------------------------------------------------ */

.inquiry {
  background: var(--surface);
}

.inquiry-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.inquiry-aside p {
  color: var(--muted);
  margin-top: 1rem;
  max-width: 26rem;
}

.inquiry-contacts {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
}

.inquiry-contacts dt {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.3rem;
}

.inquiry-contacts dd {
  font-weight: 600;
}

.inquiry-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--bg);
  border: 1px solid var(--line);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.5rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 0.25s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-success {
  display: none;
  padding: 1rem;
  background: var(--forest);
  color: #fff;
  font-size: 0.95rem;
}

.form-success.is-visible {
  display: block;
}

/* ------------------------------------------------------------
   Page hero (inner pages)
   ------------------------------------------------------------ */

.page-hero {
  position: relative;
  min-height: 48vh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.page-hero__media {
  position: absolute;
  inset: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 12, 11, 0.75) 0%,
    rgba(10, 12, 11, 0.35) 55%,
    rgba(10, 12, 11, 0.2) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 3.5rem;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.page-hero__text {
  margin-top: 1rem;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.78);
}

.placeholder-block {
  padding-block: var(--section-y);
}

.placeholder-note {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding-block: 4rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand {
  margin-bottom: 1rem;
  line-height: 0;
}

.footer-brand__logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.footer-brand + p {
  max-width: 22rem;
  font-size: 0.95rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer-col a {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  transition: color 0.25s var(--ease);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 1100px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-card,
  .category-card:nth-child(4),
  .category-card:nth-child(5) {
    grid-column: span 1;
    min-height: clamp(17rem, 36vw, 21rem);
  }

  .app-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .app-card:nth-child(n + 4) {
    min-height: 16rem;
  }

  .case-grid {
    grid-template-columns: 1fr 1fr;
  }

  .case-card--large {
    grid-column: 1 / -1;
    min-height: 24rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .page-back span:not(.page-back__arrow) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  .page-back {
    padding: 0.5rem 0.35rem;
  }

  .nav-bar__left {
    gap: 0.45rem;
  }
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--space) 1.5rem;
    background: rgba(242, 242, 240, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    color: rgba(18, 18, 18, 0.55);
    padding: 0.75rem 0.95rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    justify-content: flex-start;
    background: transparent;
  }

  .nav a:hover,
  .site-header.is-scrolled .nav a:hover,
  .site-header:not(.is-transparent) .nav a:hover {
    background: rgba(18, 18, 18, 0.06);
    color: var(--ink);
  }

  .nav a.is-active,
  .site-header.is-scrolled .nav a.is-active,
  .site-header:not(.is-transparent) .nav a.is-active,
  .site-header.is-transparent:not(.is-scrolled) .nav a.is-active {
    background: rgba(18, 18, 18, 0.72);
    border-color: rgba(18, 18, 18, 0.15);
    color: #fff;
  }

  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    background: var(--ink) !important;
    color: #fff !important;
  }

  .site-header .brand {
    color: var(--ink);
  }

  .site-header:not(.is-scrolled) .brand {
    color: #fff;
  }

  .site-header:not(.is-scrolled) .nav-toggle {
    color: #fff;
  }

  .featured-item,
  .featured-item:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .featured-item:nth-child(even) .featured-item__media {
    order: 0;
  }

  .inquiry-layout {
    grid-template-columns: 1fr;
  }

  .factory-mosaic {
    grid-template-columns: 1fr;
  }

  .factory-tile--hero {
    aspect-ratio: 16 / 10;
    min-height: 16rem;
  }

  .factory-tile--third {
    aspect-ratio: 16 / 11;
    min-height: 14rem;
  }

  .factory-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 0;
  }

  .factory-stat:nth-child(2) {
    border-right: 0;
  }

  .factory-stat:nth-child(3),
  .factory-stat:nth-child(4) {
    padding-top: 0.25rem;
  }
}

@media (max-width: 700px) {
  :root {
    --nav-h: 68px;
  }

  .category-grid,
  .app-grid,
  .factory-stats,
  .case-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .factory-stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
  }

  .factory-stat:last-child {
    border-bottom: 0;
  }

  .category-card,
  .category-card:nth-child(4),
  .category-card:nth-child(5),
  .app-card {
    grid-column: auto;
    min-height: 16rem;
  }

  .category-card__label {
    max-width: none;
    font-size: 1.28rem;
  }

  .category-card__copy::before {
    height: 48%;
  }

  .category-card__cta {
    opacity: 1;
    transform: none;
  }

  .featured-item__specs {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding-bottom: 3rem;
  }
}

.article-body {
  display: grid;
  gap: 1rem;
  line-height: 1.75;
}

.article-body img {
  max-width: 100%;
  border-radius: 12px;
}
