/* =========================================================
   Motorkinet — Automotive Journal
   Global stylesheet
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #0b0c0e;
  --ink-2: #15171a;
  --paper: #f3f1ec;
  --paper-2: #e8e4db;
  --white: #fbfaf7;
  --orange: #ff4a1c;
  --orange-soft: #ff7a52;
  --steel: #71767d;
  --line: rgba(11, 12, 14, 0.14);
  --line-soft: rgba(11, 12, 14, 0.08);
  --line-dark: rgba(243, 241, 236, 0.16);

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Archivo", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
  --radius: 0px;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; }

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

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

[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}
.container--narrow { max-width: 920px; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 999;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
}
.eyebrow--light { color: rgba(243, 241, 236, 0.62); }

.display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-top: 16px;
  text-wrap: balance;
}
.section-title em {
  font-style: normal;
  color: var(--orange);
}

.section-lead {
  max-width: 46ch;
  color: var(--steel);
  font-size: 0.96rem;
  line-height: 1.8;
}

.mono {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.btn:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
.btn:hover svg { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn--accent { background: var(--orange); border-color: var(--orange); color: var(--white); }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); }

.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }

.btn--sm { padding: 11px 20px; font-size: 0.62rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 5px;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.link-arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.link-arrow:hover { gap: 14px; color: var(--orange); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(243, 241, 236, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
  flex: none;
}
.logo__mark {
  width: 40px;
  height: 40px;
  flex: none;
  --mark-ink: #f3f1ec;
}
.logo__mark .ring { stroke: var(--mark-ink); stroke-opacity: 0.4; }
.logo__mark .tick { stroke: var(--mark-ink); stroke-opacity: 0.5; }
.logo--light .logo__mark { --mark-ink: #0b0c0e; }
.logo__mark circle, .logo__mark path, .logo__mark line { vector-effect: non-scaling-stroke; }
.logo__text { display: grid; gap: 5px; }
.logo__name {
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo__sub {
  font-family: var(--mono);
  font-size: 0.46rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--steel);
}
.logo--light { color: var(--paper); }
.logo--light .logo__sub { color: rgba(243, 241, 236, 0.5); }

/* ---------- 6. Navigation ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__chevron {
  width: 9px;
  height: 9px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 0.3s var(--ease);
}

.dropdown { position: relative; }
.dropdown__menu {
  position: absolute;
  top: calc(100% + 16px);
  right: -18px;
  min-width: 250px;
  padding: 8px;
  background: var(--ink);
  color: var(--paper);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  box-shadow: 0 30px 60px -30px rgba(11, 12, 14, 0.6);
}
.dropdown__menu::before {
  content: "";
  position: absolute;
  top: -17px;
  left: 0;
  width: 100%;
  height: 17px;
}
.dropdown.is-open .dropdown__menu,
.dropdown:hover .dropdown__menu,
.dropdown:focus-within .dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown.is-open .nav__chevron { transform: rotate(180deg); }
.dropdown__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  font-size: 0.84rem;
  color: rgba(243, 241, 236, 0.8);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.dropdown__link::after {
  content: "↗";
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--orange);
  opacity: 0;
  transition: opacity 0.2s;
}
.dropdown__link:hover { background: rgba(243, 241, 236, 0.08); color: var(--paper); }
.dropdown__link:hover::after { opacity: 1; }

.nav__cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  z-index: 96;
  flex: none;
}
.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease), background 0.3s;
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span { background: var(--paper); }
.nav-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: translateX(-50%) rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero {
  padding-block: clamp(34px, 4.6vw, 62px) clamp(40px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: end;
}
.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin: 22px 0 24px;
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--orange); }
.hero__lead {
  max-width: 44ch;
  color: var(--steel);
  font-size: clamp(0.96rem, 1.2vw, 1.05rem);
  line-height: 1.8;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}
.hero__note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}
.hero__note strong { color: var(--ink); font-weight: 500; }

.hero__media { position: relative; }
.hero__figure {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 4 / 3.4;
}
.hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.hero__media:hover .hero__figure img { transform: scale(1.03); }
.hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(243, 241, 236, 0.28);
  margin: 12px;
  pointer-events: none;
}

.hero__plate {
  position: absolute;
  left: -1px;
  bottom: -1px;
  display: flex;
  gap: 22px;
  padding: 14px 18px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero__plate span { display: grid; gap: 2px; }
.hero__plate b { font-family: var(--display); font-size: 1rem; letter-spacing: 0; }

/* ---------- 8. Spec strip ---------- */
.specs {
  background: var(--ink);
  color: var(--paper);
}
.specs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.spec {
  padding: clamp(22px, 2.6vw, 34px) clamp(16px, 2vw, 28px);
  border-left: 1px solid var(--line-dark);
}
.spec:first-child { border-left: 0; padding-left: 0; }
.spec__num {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.spec__num sup { color: var(--orange); font-size: 0.5em; vertical-align: super; }
.spec__label {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 241, 236, 0.55);
}

/* ---------- 9. Sections ---------- */
.section { padding-block: clamp(62px, 8vw, 112px); }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .section-lead { color: rgba(243, 241, 236, 0.6); }
.section--ink .eyebrow { color: rgba(243, 241, 236, 0.6); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 70px);
  margin-bottom: clamp(34px, 4vw, 54px);
}
.section-head__side {
  max-width: 36ch;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--steel);
  padding-bottom: 4px;
}
.section-head--center { display: block; text-align: center; }
.section-head--center .section-lead { margin: 16px auto 0; }

/* ---------- 10. Intro ---------- */
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}
.intro__statement {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.03em;
}
.intro__statement em { font-style: normal; color: var(--orange); }
.intro__copy p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--steel);
}
.intro__copy p:first-child { color: var(--ink); font-size: 1.02rem; }
.intro__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.intro__facts dt {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}
.intro__facts dd {
  margin-top: 5px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
}

/* ---------- 11. Services ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.service {
  padding: clamp(24px, 2.8vw, 38px) clamp(18px, 2.2vw, 30px);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 240px;
  transition: background 0.35s var(--ease);
}
.service:first-child { border-left: 0; padding-left: 0; }
.service:hover { background: rgba(232, 228, 219, 0.6); }
.service__num {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--orange);
}
.service__title {
  margin-top: 18px;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.service__text {
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--steel);
}
.service__link {
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.service__link:hover { color: var(--orange); }

/* ---------- 12. Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
}
.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.card:hover .card__media img { transform: scale(1.04); }
.card__tag {
  position: absolute;
  top: 0;
  left: 0;
  padding: 7px 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.card__body { padding-top: 16px; }
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}
.card__title {
  margin-top: 9px;
  font-family: var(--display);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  transition: color 0.25s;
}
.card:hover .card__title { color: var(--orange); }
.card__text {
  margin-top: 9px;
  font-size: 0.87rem;
  line-height: 1.7;
  color: var(--steel);
}
.card__more {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.card__more::after {
  content: "→";
  color: var(--orange);
  transition: transform 0.3s var(--ease);
}
.card:hover .card__more::after { transform: translateX(4px); }

/* ---------- 13. Index list ---------- */
.index { border-top: 1px solid var(--line); }
.index__row {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.3s var(--ease), color 0.3s;
}
.index__row:hover { padding-left: 10px; color: var(--orange); }
.index__num {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--orange);
  letter-spacing: 0.1em;
}
.index__title {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.8vw, 1.42rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.index__meta {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
}

/* ---------- 14. Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(140px, 14vw, 200px);
  gap: 10px;
}
.gallery__item {
  overflow: hidden;
  background: var(--paper-2);
  position: relative;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:nth-child(1) { grid-column: span 6; grid-row: span 2; }
.gallery__item:nth-child(2) { grid-column: span 3; grid-row: span 1; }
.gallery__item:nth-child(3) { grid-column: span 3; grid-row: span 2; }
.gallery__item:nth-child(4) { grid-column: span 3; grid-row: span 1; }
.gallery__item:nth-child(5) { grid-column: span 6; grid-row: span 1; }
.gallery__item:nth-child(6) { grid-column: span 3; grid-row: span 1; }

/* ---------- 15. CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 10vw, 130px);
  color: var(--paper);
}
.cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 14, 0.55), rgba(11, 12, 14, 0.9));
}
.cta__inner { position: relative; z-index: 1; }
.cta__title {
  margin: 16px 0 28px;
  max-width: 22ch;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.cta__title em { font-style: normal; color: var(--orange); }

/* ---------- 16. Page hero ---------- */
.page-hero {
  padding-block: clamp(46px, 6vw, 84px) clamp(32px, 4vw, 50px);
  border-bottom: 1px solid var(--line);
}
.page-hero__title {
  margin: 18px 0 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.page-hero__title em { font-style: normal; color: var(--orange); }
.page-hero__lead {
  max-width: 58ch;
  color: var(--steel);
  font-size: 0.98rem;
  line-height: 1.8;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}
.breadcrumb a { text-decoration: none; color: var(--steel); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span[aria-current] { color: var(--ink); }

/* ---------- 17. Prose ---------- */
.prose {
  max-width: 74ch;
  font-size: 0.98rem;
  line-height: 1.85;
  color: rgba(11, 12, 14, 0.78);
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  margin-top: 2em;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.prose h3 {
  margin-top: 1.6em;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 1.1em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 2px;
  background: var(--orange);
}
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45em; }
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--orange); }
.prose strong { color: var(--ink); }
.prose .updated {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ---------- 18. Article ---------- */
.article-hero__media {
  margin-top: clamp(22px, 3vw, 36px);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--paper-2);
  border-bottom: 3px solid var(--orange);
}
.article-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta span + span::before {
  content: "";
  width: 10px;
  height: 1px;
  background: var(--orange);
}

.article-body {
  max-width: 70ch;
  margin: 0 auto;
  padding-block: clamp(40px, 5.5vw, 66px);
  font-size: 1.01rem;
  line-height: 1.9;
  color: rgba(11, 12, 14, 0.78);
}
.article-body > * + * { margin-top: 1.1em; }
.article-body > p:first-of-type {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--ink);
}
.article-body > p:first-of-type::before {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  background: var(--orange);
  margin-bottom: 18px;
}
.article-body h2 {
  margin-top: 1.9em;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.article-body h2::before {
  content: "//";
  color: var(--orange);
  margin-right: 10px;
  font-weight: 700;
}
.article-body h3 {
  margin-top: 1.5em;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}
.article-body ul { list-style: none; padding-left: 0; }
.article-body ul li {
  position: relative;
  padding-left: 1.5em;
  margin-top: 0.5em;
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 8px;
  height: 2px;
  background: var(--orange);
}
.article-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.article-body a:hover { color: var(--orange); }
.article-body strong { color: var(--ink); }

.article-figure { margin-block: 1.7em; }
.article-figure img { width: 100%; }
.article-figure figcaption {
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  color: var(--steel);
}

.pullquote {
  margin-block: 1.7em;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--orange);
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.callout {
  margin-block: 1.7em;
  padding: 20px 22px;
  background: var(--paper-2);
  font-size: 0.93rem;
  line-height: 1.75;
}
.callout strong {
  display: block;
  margin-bottom: 5px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.article-end {
  max-width: 70ch;
  margin: 0 auto;
  padding-bottom: clamp(50px, 6vw, 84px);
}
.author-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-block: 1px solid var(--line);
}
.author-box__avatar {
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  flex: none;
}
.author-box__name { font-weight: 600; font-size: 0.9rem; }
.author-box__role {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.next-read {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 16px;
  background: var(--paper-2);
  text-decoration: none;
  transition: background 0.25s;
}
.next-read:hover { background: var(--orange); color: var(--white); }
.next-read img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.next-read small {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.next-read:hover small { color: rgba(251, 250, 247, 0.8); }
.next-read strong {
  display: block;
  margin-top: 4px;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.25;
}

/* ---------- 19. Blog listing ---------- */
.blog-intro {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(26px, 5vw, 64px);
  align-items: end;
  padding-block: clamp(42px, 5.5vw, 72px) clamp(30px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
}
.archive {
  margin-top: clamp(42px, 5vw, 70px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.archive h2 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.archive__list { list-style: none; margin-top: 16px; }
.archive__list li { border-top: 1px solid var(--line-soft); }
.archive__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  text-decoration: none;
  color: rgba(11, 12, 14, 0.82);
  transition: color 0.25s, padding-left 0.25s;
}
.archive__list a:hover { color: var(--orange); padding-left: 8px; }
.archive__list .t {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.3;
}
.archive__list .d {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
}

/* ---------- 20. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contact-info p { color: var(--steel); line-height: 1.8; font-size: 0.95rem; }
.contact-list { margin-top: 30px; display: grid; gap: 18px; }
.contact-list dt {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 4px;
}
.contact-list dd { font-size: 0.95rem; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.contact-list a:hover { border-color: var(--orange); color: var(--orange); }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-size: 0.96rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s;
}
.field textarea { resize: vertical; min-height: 104px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2371767d' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(113, 118, 125, 0.55); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--orange); }
.form .btn { justify-self: start; margin-top: 4px; }
.form-note { min-height: 1.4em; font-size: 0.82rem; color: var(--ink); }
.form-note.is-error { color: #b02a10; }

.newsletter { display: flex; gap: 8px; margin-top: 18px; }
.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  background: transparent;
  border: 1px solid var(--line-dark);
  color: var(--paper);
  font-size: 0.82rem;
  font-family: var(--mono);
}
.newsletter input::placeholder { color: rgba(243, 241, 236, 0.4); }
.newsletter input:focus { outline: none; border-color: var(--orange); }
.newsletter .btn { padding: 11px 18px; }

/* ---------- 21. Sitemap ---------- */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(26px, 4vw, 44px);
}
.sitemap-col h2 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  letter-spacing: -0.02em;
}
.sitemap-col ul { list-style: none; margin-top: 12px; }
.sitemap-col li { margin-bottom: 8px; }
.sitemap-col a {
  font-size: 0.88rem;
  color: rgba(11, 12, 14, 0.8);
  text-decoration: none;
}
.sitemap-col a:hover { color: var(--orange); }

/* ---------- 22. Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(48px, 6vw, 74px) 24px;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.1fr 1.7fr;
  gap: clamp(32px, 6vw, 80px);
}
.site-footer__blurb {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(243, 241, 236, 0.55);
}
.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.site-footer__nav h3 {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 241, 236, 0.45);
}
.site-footer__nav a {
  display: block;
  margin-bottom: 7px;
  font-size: 0.83rem;
  color: rgba(243, 241, 236, 0.76);
  text-decoration: none;
  transition: color 0.25s;
}
.site-footer__nav a:hover { color: var(--orange); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 0.62rem;
  color: rgba(243, 241, 236, 0.45);
}
.site-footer__bottom a { color: rgba(243, 241, 236, 0.65); text-decoration: none; }
.site-footer__bottom a:hover { color: var(--orange); }

/* ---------- 23. Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 24. Responsive ---------- */
@media (max-width: 1080px) {
  .services__grid { grid-template-columns: 1fr; border-top: 0; }
  .service { border-left: 0; border-top: 1px solid var(--line); padding-inline: 0; min-height: 0; }
  .service__link { padding-top: 16px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .sitemap-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 95;
    width: min(88vw, 400px);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 92px 28px 32px;
    background: var(--ink);
    color: var(--paper);
    transform: translateX(102%);
    transition: transform 0.45s var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 16px 2px;
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--paper);
    border-bottom: 1px solid var(--line-dark);
  }
  .nav__link::after { display: none; }
  .nav__chevron { width: 14px; height: 14px; }
  .nav__cta { margin: 22px 0 0; }
  body.nav-open { overflow: hidden; }

  .dropdown { width: 100%; }
  .dropdown__menu {
    position: static;
    transform: none;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    display: none;
    padding: 6px 0 12px 12px;
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid var(--line-dark);
  }
  .dropdown.is-open .dropdown__menu { display: block; }
  .dropdown:hover .dropdown__menu { display: none; }
  .dropdown.is-open:hover .dropdown__menu { display: block; }
  .dropdown__link { padding: 10px 0; font-size: 0.92rem; }
  .dropdown__link:hover { background: transparent; }

  .hero__inner { grid-template-columns: 1fr; gap: 38px; align-items: start; }
  .hero__figure { aspect-ratio: 16 / 10; }
  .specs__grid { grid-template-columns: 1fr 1fr; }
  .spec:nth-child(3) { border-left: 0; padding-left: 0; }
  .intro__grid { grid-template-columns: 1fr; gap: 28px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .site-footer__top { grid-template-columns: 1fr; gap: 36px; }
  .blog-intro { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 680px) {
  .hero { padding-top: 22px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__plate { gap: 14px; padding: 10px 12px; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery__item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery__item:nth-child(1) { grid-column: span 2; }
  .sitemap-grid { grid-template-columns: 1fr; }
  .site-footer__nav { grid-template-columns: 1fr 1fr; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .next-read { grid-template-columns: 84px 1fr; }
  .index__row { grid-template-columns: 34px 1fr; }
  .index__meta { display: none; }
  .archive__list a { flex-direction: column; gap: 4px; }
  .logo__name { font-size: 0.94rem; letter-spacing: 0.12em; }
}

/* ---------- 25. Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
