/* ============================================================
   D&A MEKİK MOTOR — styles
   Warm-minimal light theme, copper accent, dark feature bands.
   v2: 3D motor scene, word-split headlines, tilt cards, parallax.
   ============================================================ */

:root {
  --bg: #f7f5f2;
  --surface: #ffffff;
  --ink: #16181d;
  --muted: #676c73;
  --line: #e6e2db;
  --copper: #b06a35;
  --copper-bright: #c9803f;
  --dark: #101216;
  --dark-2: #181b21;
  --dark-line: #262a31;
  --radius: 20px;
  --wrap: 1160px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* registered so hover zoom can animate a custom property */
@property --ps {
  syntax: "<number>";
  inherits: false;
  initial-value: 1.15;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: #c9c3ba transparent; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cfc9c0; border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--copper); }

/* dark theme (toggle in nav; js/theme.js sets the attribute pre-paint) */
html[data-theme="dark"] {
  --bg: #101216;
  --surface: #181b21;
  --ink: #eef0f3;
  --muted: #9aa1a9;
  --line: #262a31;
  scrollbar-color: #3a4046 transparent;
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #3a4046; border-color: var(--bg); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(201, 128, 63, 0.28); }

:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }

section[id] { scroll-margin-top: 76px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.028em; font-weight: 650; }
h1 { font-size: clamp(2.7rem, 6.4vw, 4.8rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }

.accent { color: var(--copper); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1.5px;
  background: currentColor;
  margin-right: 12px;
  vertical-align: 0.28em;
  opacity: 0.85;
}
.eyebrow--dark { color: var(--copper-bright); }

.lead { font-size: 1.18rem; color: var(--muted); max-width: 34em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s cubic-bezier(.2,.7,.3,1.2), background 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); background: #2a2e35; box-shadow: 0 14px 30px rgba(176, 106, 53, 0.2); }
html[data-theme="dark"] .btn:hover { background: #ffffff; }
.btn--ghost {
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.85); box-shadow: inset 0 0 0 1.5px var(--ink); }
html[data-theme="dark"] .btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
html[data-theme="dark"] .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--sm { padding: 10px 20px; font-size: 0.88rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(247, 245, 242, 0.72);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
  animation: navIn 0.8s 0.1s var(--ease-out) both;
}
html[data-theme="dark"] .nav { background: rgba(16, 18, 22, 0.72); }
html[data-theme="dark"] .nav.scrolled { background: rgba(16, 18, 22, 0.88); }
@keyframes navIn {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.nav.scrolled { border-color: var(--line); background: rgba(247, 245, 242, 0.88); }
/* reading progress */
.nav::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--copper), var(--copper-bright));
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}
.nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav__brand { display: flex; align-items: center; gap: 11px; font-size: 0.95rem; letter-spacing: 0.06em; }
.nav__brand em { font-style: normal; color: var(--copper); }
.nav__brand b { font-weight: 700; }
.nav__mark { width: 30px; height: 30px; color: var(--ink); transition: transform 0.6s var(--ease-out); }
.nav__brand:hover .nav__mark { transform: rotate(120deg); }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1.5px;
  background: var(--copper);
  transition: right 0.28s var(--ease-out);
}
.nav__links a:hover, .nav__links a.active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.active::after { right: 0; }
.nav__cta { white-space: nowrap; }
.nav__theme {
  width: 38px;
  height: 38px;
  padding: 8px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, background 0.25s;
}
.nav__theme:hover { color: var(--ink); background: rgba(127, 127, 127, 0.12); }
.nav__theme svg { width: 100%; height: 100%; display: block; }
.nav__theme .ic-sun { display: none; }
html[data-theme="dark"] .nav__theme .ic-sun { display: block; }
html[data-theme="dark"] .nav__theme .ic-moon { display: none; }

/* language switch: two plain flag buttons, active one glows */
.nav__lang {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.nav__lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.nav__lang-btn:hover { color: var(--ink); }
.nav__lang-flag { font-size: 13px; line-height: 1; filter: grayscale(0.55); transition: filter 0.2s; }
.nav__lang-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--copper-bright), var(--copper));
  color: #fff;
  box-shadow: 0 0 10px rgba(201, 128, 63, 0.5);
}
.nav__lang-btn[aria-pressed="true"] .nav__lang-flag { filter: none; }
.nav__burger { display: none; }
.nav__burger { display: none; }

/* ---------- hero ---------- */
.hero { padding: 176px 0 100px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -180px;
  width: 680px;
  height: 680px;
  background: radial-gradient(closest-side, rgba(201, 128, 63, 0.14), transparent 72%);
  pointer-events: none;
  animation: aurora 16s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -320px;
  left: -260px;
  width: 640px;
  height: 640px;
  background: radial-gradient(closest-side, rgba(176, 106, 53, 0.05), transparent 70%);
  pointer-events: none;
  animation: aurora 20s ease-in-out infinite alternate-reverse;
}
@keyframes aurora {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-70px, 50px, 0) scale(1.18); }
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.hero__actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero h1 { margin-bottom: 24px; }
.hero__note { margin-top: 26px; font-size: 0.92rem; color: var(--muted); }
.hero__note b { color: var(--copper); }
.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(22, 24, 29, 0.35);
  filter: saturate(0.85) contrast(1.03);
  transform: translateY(var(--py, 0));
  will-change: transform;
}
.hero__badge {
  position: absolute;
  left: -22px;
  bottom: 26px;
  background: rgba(255, 255, 255, 0.58);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 16px;
  padding: 14px 22px;
  box-shadow: 0 18px 44px -18px rgba(22, 24, 29, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  animation: badgeFloat 8s ease-in-out 1.6s infinite;
}
html[data-theme="dark"] .hero__badge {
  background: rgba(24, 27, 33, 0.6);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hero__badge b { font-size: 1.5rem; letter-spacing: -0.02em; color: var(--copper); }
.hero__badge span { font-size: 0.82rem; color: var(--muted); }

/* ---------- stats ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 44px 12px; text-align: center; transition: background 0.35s; }
.stat:hover { background: rgba(201, 128, 63, 0.04); }
html[data-theme="dark"] .stat:hover { background: rgba(201, 128, 63, 0.07); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-size: 2.3rem; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; transition: color 0.3s; }
.stat:hover b { color: var(--copper); }
.stat > span:last-child { font-size: 0.88rem; color: var(--muted); }

/* ---------- anatomy (pinned scroll scene, 3D) ---------- */
.anatomy { height: 460vh; background: var(--dark); }
.anatomy__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #eef0f3;
  background:
    radial-gradient(900px 500px at 50% 42%, rgba(201, 128, 63, 0.055), transparent 70%),
    radial-gradient(1500px 850px at 50% 30%, #171a20, var(--dark) 78%);
}
/* fine blueprint dot grid, masked to the stage */
.anatomy__sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(238, 240, 243, 0.055) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(760px 440px at 50% 46%, #000 25%, transparent 75%);
  mask-image: radial-gradient(760px 440px at 50% 46%, #000 25%, transparent 75%);
  pointer-events: none;
}
.anatomy__head { text-align: center; padding: 84px 24px 0; position: relative; }
.anatomy__head h2 { color: #f4f5f7; }
.anatomy__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 12px;
  perspective: 1500px;
  position: relative;
}
.anatomy__tilt {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
}
#motorSvg { width: min(1180px, 96vw); height: 100%; max-height: 62vh; }

/* depth shadows fade in while exploded */
#motorSvg .part { transition: filter 0.7s ease; }
#motorSvg.exploded .part { filter: drop-shadow(0 30px 22px rgba(0, 0, 0, 0.5)); }

.lbl { opacity: 0; }
.lbl line { stroke: rgba(238, 240, 243, 0.35); stroke-width: 1.2; }
.lbl text {
  fill: rgba(238, 240, 243, 0.82);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-anchor: middle;
}
.lbl__n { fill: var(--copper-bright); letter-spacing: 0.05em; }

.anatomy__foot { position: relative; text-align: center; padding: 0 24px 56px; min-height: 92px; }
.anatomy__caption {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 48px);
  padding: 11px 26px;
  border-radius: 999px;
  background: rgba(24, 27, 33, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(238, 240, 243, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0;
  font-size: 1.04rem;
  line-height: 1.5;
  color: rgba(238, 240, 243, 0.78);
}
.anatomy__caption b { color: var(--copper-bright); }
.anatomy__hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 1.5px solid rgba(238, 240, 243, 0.4);
  border-radius: 14px;
  transition: opacity 0.4s;
}
.anatomy__hint span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--copper-bright);
  animation: hintDrop 1.6s ease-in-out infinite;
}
@keyframes hintDrop {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- services ---------- */
.services { padding: 130px 0; }
.services h2 { margin-bottom: 60px; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 26px;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform 0.18s ease-out, box-shadow 0.35s, border-color 0.35s;
}
.card:hover {
  --lift: -4px;
  box-shadow: 0 20px 44px -22px rgba(22, 24, 29, 0.22);
  border-color: rgba(176, 106, 53, 0.35);
}
html[data-theme="dark"] .card:hover { box-shadow: 0 20px 44px -22px rgba(0, 0, 0, 0.55); }
/* pointer-tracked glare */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%),
    rgba(201, 128, 63, 0.06), rgba(255, 255, 255, 0.06) 40%, transparent 65%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }
.card__media {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #eceae5;
  margin-bottom: 20px;
}
html[data-theme="dark"] .card__media { background: #20242a; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.65s var(--ease-out), filter 0.5s; }
.card:hover .card__media img { transform: scale(1.06); filter: saturate(1.06); }
.card h3 { font-size: 1.12rem; margin: 0 6px 8px; }
.card p { font-size: 0.94rem; color: var(--muted); margin: 0 6px; }

/* clickable service cards — hint appears on hover/focus only, resting look unchanged */
.card[data-service] { cursor: pointer; }
/* chip overlays the image corner — absolute, so the card's resting layout is unchanged */
.card__more {
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(16, 18, 22, 0.74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
  pointer-events: none;
}
.card:hover .card__more,
.card[data-service]:focus-visible .card__more { opacity: 1; transform: none; }
.card__more svg { width: 14px; height: 14px; }

/* ---------- service detail modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 18, 22, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.modal.open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  max-height: min(88vh, 900px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out);
}
.modal.open .modal__panel { opacity: 1; transform: none; }
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.modal__close:hover { background: var(--copper); color: #fff; border-color: var(--copper); }
.modal__close svg { width: 20px; height: 20px; }
.modal__body { overflow-y: auto; padding: 44px 40px 44px; }
.modal__body .eyebrow { margin-bottom: 14px; }
.modal__body h3 { font-size: clamp(1.55rem, 3.4vw, 2.15rem); margin-bottom: 16px; }
.modal__text { color: var(--muted); max-width: 60ch; margin-bottom: 30px; white-space: pre-line; }
.modal__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.modal__gallery figure { margin: 0; }
.modal__gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #eceae5;
}
html[data-theme="dark"] .modal__gallery img { background: #20242a; }
.modal__gallery figcaption { margin-top: 7px; font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
body.modal-open { overflow: hidden; }

/* video lightbox — a compact ~60%-of-viewport player, not the browser's native fullscreen */
.modal__panel--video {
  width: auto;
  height: 60vh;
  max-width: 92vw;
  max-height: 60vh;
  aspect-ratio: 9 / 16;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}
.modal__panel--video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
}
.modal__panel--video .modal__close {
  background: rgba(16, 18, 22, 0.55);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.modal__panel--video .modal__close:hover { background: var(--copper); border-color: var(--copper); }

@media (max-width: 620px) {
  .modal { padding: 0; }
  .modal__panel { width: 100%; max-height: 100vh; max-height: 100svh; border-radius: 0; border: none; }
  .modal__body { padding: 30px 22px 34px; }
  .modal__gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .modal__panel.modal__panel--video {
    width: auto;
    height: 62vh;
    max-height: 62vh;
    max-width: 88vw;
    border-radius: var(--radius);
    border: none;
  }
}

/* ---------- gallery strip (parallax) ---------- */
.strip { overflow: hidden; padding-bottom: 0; }
.strip__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.strip__item { overflow: hidden; height: 320px; }
.strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transform: translateY(var(--py, 0)) scale(var(--ps));
  transition: filter 0.4s, --ps 0.6s var(--ease-out);
  will-change: transform;
}
.strip__item:hover img { filter: saturate(1.06); --ps: 1.19; }

/* ---------- process ---------- */
.process { padding: 130px 0; }
.process h2 { margin-bottom: 60px; }
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; counter-reset: step; }
.step {
  border-top: 1.5px solid var(--line);
  padding-top: 22px;
  position: relative;
  transition: transform 0.35s var(--ease-out);
}
.step:hover { transform: translateY(-4px); }
.step::before {
  content: "";
  position: absolute;
  top: -1.5px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--copper);
  transition: width 0.9s var(--ease-out) 0.25s;
}
.step.in::before { width: 44px; }
.step:hover::before { width: 100%; transition-delay: 0s; transition-duration: 0.5s; }
.step b { font-size: 0.82rem; letter-spacing: 0.14em; color: var(--copper); font-weight: 700; }
.step h3 { font-size: 1.08rem; margin: 10px 0 8px; }
.step p { font-size: 0.92rem; color: var(--muted); }

/* ---------- about ---------- */
.about { padding: 40px 0 140px; }
.about__grid { display: grid; grid-template-columns: 2.75fr 1fr; gap: 64px; align-items: start; }
.about__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -34px rgba(22, 24, 29, 0.4);
  filter: saturate(0.92);
  transform: translateY(var(--py, 0));
  will-change: transform;
}
.about__media figcaption { margin-top: 14px; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.04em; }
.about__copy h2 { margin-bottom: 24px; }
.about__copy p { color: var(--muted); margin-bottom: 18px; max-width: 36em; }
.about__copy p b { color: var(--ink); }
.about__copy blockquote {
  margin-top: 30px;
  padding-left: 22px;
  border-left: 2px solid var(--copper);
  font-size: 1.14rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.about__copy cite { display: block; margin-top: 10px; font-style: normal; font-size: 0.88rem; color: var(--muted); }

/* ---------- contact ---------- */
.contact {
  background: var(--dark);
  color: #eef0f3;
  padding: 120px 0 130px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(201, 128, 63, 0.10), transparent 72%);
  pointer-events: none;
}
/* same blueprint dot grid as the anatomy stage */
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(238, 240, 243, 0.05) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(720px 380px at 50% 26%, #000 20%, transparent 75%);
  mask-image: radial-gradient(720px 380px at 50% 26%, #000 20%, transparent 75%);
  pointer-events: none;
}
.contact h2 { color: #f4f5f7; }
.contact__lead { color: rgba(238, 240, 243, 0.65); margin: 18px 0 52px; }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: left;
  position: relative;
}
.ccard {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(238, 240, 243, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform 0.18s ease-out, border-color 0.3s;
}
.ccard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(201, 128, 63, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.ccard:hover { --lift: -4px; border-color: var(--copper); }
.ccard:hover::before { opacity: 1; }
.ccard__k { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper-bright); font-weight: 600; }
.ccard__v { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.01em; word-break: break-word; }

/* ---------- footer ---------- */
.footer { background: var(--dark); border-top: 1px solid var(--dark-line); color: rgba(238, 240, 243, 0.5); }
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 26px;
  padding-bottom: 30px;
  font-size: 0.85rem;
}
.footer a { transition: color 0.25s; }
.footer a:hover { color: #fff; }

/* ---------- scroll ball (spinning bearing progress) ---------- */
.scrollball {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 14px 34px -12px rgba(22, 24, 29, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out), box-shadow 0.3s;
}
.scrollball.show { opacity: 1; transform: none; pointer-events: auto; }
html[data-theme="dark"] .scrollball {
  background: rgba(24, 27, 33, 0.65);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
html[data-theme="dark"] .scrollball__track { stroke: rgba(238, 240, 243, 0.14); }
.scrollball:hover { transform: scale(1.08); box-shadow: 0 18px 40px -12px rgba(176, 106, 53, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.scrollball svg { width: 100%; height: 100%; display: block; }
.scrollball__track { fill: none; stroke: rgba(22, 24, 29, 0.10); stroke-width: 4; }
.scrollball__ring {
  fill: none;
  stroke: var(--copper);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 286;
  stroke-dashoffset: 286; /* JS drives this with scroll progress */
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(7px);
  transition: opacity 0.75s ease, transform 0.95s var(--ease-out), filter 0.85s ease;
}
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
.reveal--zoom { transform: translateY(24px) scale(0.95); }
.reveal--left { transform: translateX(-44px); }
.reveal--right { transform: translateX(44px); }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

/* word-by-word headline rise (spans injected by JS) */
.split .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.7em);
  filter: blur(7px);
  transition: opacity 0.6s ease, transform 0.85s var(--ease-out), filter 0.6s ease;
  transition-delay: calc(var(--i, 0) * 60ms);
}
.split.in .w { opacity: 1; transform: none; filter: blur(0); }

/* ---------- workshop ---------- */
.workshop { padding: 130px 0; }
.workshop h2 { margin-bottom: 20px; }
.workshop .lead { margin-bottom: 0; }
.workshop__videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
  gap: 32px;
  margin: 52px auto 0;
}
.workshop__video { display: flex; flex-direction: column; }
.workshop__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 20px 44px -26px rgba(22, 24, 29, 0.28);
  cursor: pointer;
  padding: 0;
}
html[data-theme="dark"] .workshop__thumb { box-shadow: 0 20px 44px -26px rgba(0, 0, 0, 0.6); }
.workshop__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.65s var(--ease-out), filter 0.5s; }
.workshop__thumb:hover img { transform: scale(1.06); filter: saturate(1.06); }
.workshop__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.workshop__play::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(16, 18, 22, 0.06), rgba(16, 18, 22, 0.28));
  transition: background 0.3s;
}
.workshop__thumb:hover .workshop__play::before { background: rgba(16, 18, 22, 0.34); }
.workshop__play-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s var(--ease-out);
}
.workshop__play-icon svg { width: 22px; height: 22px; margin-left: 3px; }
.workshop__thumb:hover .workshop__play-icon { transform: scale(1.08); }
.workshop__video figcaption { margin-top: 14px; font-size: 0.9rem; color: var(--muted); text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav__links {
    display: none; position: fixed; inset: 59px 0 auto 0;
    background: rgba(247, 245, 242, 0.85);
    -webkit-backdrop-filter: saturate(1.4) blur(20px);
    backdrop-filter: saturate(1.4) blur(20px);
    border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 10px 0 16px;
  }
  html[data-theme="dark"] .nav__links { background: rgba(16, 18, 22, 0.88); }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 13px 28px; font-size: 1.05rem; color: var(--ink); }
  .nav__links a::after { display: none; }
  .nav__theme { margin-left: auto; }
  .nav__burger {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 42px; height: 42px; padding: 0 9px;
    background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  }
  .nav__burger span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .hero { padding-top: 130px; }
  .hero__grid, .about__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__badge { left: 14px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
  .strip__row { grid-template-columns: repeat(2, 1fr); }
  .strip__item { height: 240px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .about__media { max-width: 420px; }
  .workshop__videos { grid-template-columns: repeat(2, minmax(0, 260px)); gap: 20px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav__brand span { font-size: 0.8rem; white-space: nowrap; }
  .anatomy__foot { min-height: 128px; }
  .anatomy__hint { bottom: 8px; }
  .anatomy { height: 420vh; }
  .anatomy__head { padding-top: 76px; }
  #motorSvg { max-height: 48vh; }
  .lbl text { font-size: 22px; }
  .services__grid, .contact__grid { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .stat b { font-size: 1.7rem; }
  .services, .process { padding: 84px 0; }
  .strip__item { height: 200px; }
  .workshop { padding: 84px 0; }
  .workshop__videos { grid-template-columns: minmax(0, 280px); gap: 22px; margin-top: 36px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal--zoom, .reveal--left, .reveal--right { opacity: 1; transform: none; filter: none; transition: none; }
  .split .w { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .anatomy { height: auto; }
  .anatomy__sticky { position: static; height: auto; min-height: 100vh; }
  .anatomy__hint { display: none; }
  .anatomy__caption { position: static; transform: none; margin: 0 auto 10px; opacity: 1 !important; }
  .lbl { opacity: 1 !important; }
  #motorSvg .part { filter: none !important; opacity: 1 !important; }
  #focusGlow { opacity: 0 !important; }
  .hero__media img, .about__media img, .strip__item img { transform: none; }
  .modal__panel, .modal__backdrop, .card__more { transition: none !important; }
  * { animation-duration: 0.001s !important; }
}

/* debug/preview mode (?p=…): skip entry transitions for screenshots */
html.dbg .reveal { transition: none !important; }
html.dbg .split .w { transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
html.dbg * { animation: none !important; }
