/* =========================================================================
   R.C.A.R Manufacturing — shared stylesheet
   Plain CSS. No frameworks, no build step.
   Design: FDF-raceshop-style catalog layout — orange brand bar with
   centred logo, deep navy body, uppercase letterspaced Inter headings,
   square corners, slanted buttons. Palette from racecarsarered.com.
   ========================================================================= */

/* ---- Design tokens ---------------------------------------------------- */
:root {
  /* Surfaces — dark slate grey (darkened from the #2e323c swatch) */
  --bg:        #24272f;   /* page background                     */
  --bg-deep:   #1a1d24;   /* footer, dark bands, inputs          */
  --bg-panel:  #31353f;   /* cards / raised panels               */
  --bg-panel-2:#2b2f38;   /* deeper panel / media placeholders   */
  --line:      rgba(255, 255, 255, 0.12);
  --line-2:    rgba(255, 255, 255, 0.28);

  /* Text */
  --text:      #ffffff;
  --muted:     #b9c0cd;
  --faint:     #868e9e;

  /* Brand accent — rust red (from supplied swatch #b8452a) */
  --accent:       #b8452a;  /* surfaces: header bar, buttons, borders */
  --accent-hover: #d25639;
  --accent-deep:  #8e3521;
  --accent-text:  #e27156;  /* lighter tint for small text/icons on dark */
  --on-accent:    #111144;  /* text placed on rust surfaces */

  /* Brand deep blue — logo colour, secondary buttons, marquee band */
  --navy:   #111144;
  --navy-2: #1b1b5e;

  /* Shape & motion — square everything, FDF style */
  --shadow: 0 16px 36px -18px rgba(0, 0, 20, 0.65);
  --ease:   0.18s ease;

  /* Layout */
  --container: 1200px;
  --pad:       clamp(1rem, 4vw, 2rem);
}

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

* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 0.95rem;          /* FDF runs 15px base            */
  font-weight: 500;            /* and a medium body weight      */
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* FDF heading treatment: heavy, uppercase, wide tracking */
h1, h2, h3, h4 {
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ---- Layout helpers --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }

.section--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }

main { flex: 1 0 auto; }

/* Accessibility: skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1rem;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---- Section headers -------------------------------------------------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-text);
  display: inline-block;
}

.section-head { max-width: 72ch; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head h2 {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  margin-top: 0.8rem;
}
.section-head p {
  color: var(--muted);
  margin-top: 1rem;
  font-size: 1rem;
}
.section-head--center { margin-inline: auto; text-align: center; }

/* ---- Buttons — slanted parallelogram, FDF style ----------------------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 2rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  border: 0;
  background: none;
  color: var(--text);
  transition: color var(--ease);
  white-space: nowrap;
}
/* the slanted face lives on ::before so the label stays upright */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: skewX(-12deg);
  transition: background var(--ease), border-color var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { color: #fff; }
.btn--primary::before { background: var(--accent); }
.btn--primary:hover::before { background: var(--accent-hover); }

/* deep blue secondary button — matches the logo colour */
.btn--navy { color: #fff; }
.btn--navy::before { background: var(--navy); }
.btn--navy:hover::before { background: var(--navy-2); }

.btn--small { padding: 0.6rem 1.3rem; font-size: 0.72rem; }

.btn__arrow { transition: transform var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---- Header: single orange brand bar ----------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* orange bar: logo left, nav links + CTA right */
.brandbar {
  background: var(--accent);
  border-bottom: 1px solid rgba(0, 0, 20, 0.18);
}
.brandbar__inner {
  /* span the full bar width so logo and CTA hug the screen edges */
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  padding-block: 0.9rem;
  padding-inline: clamp(1rem, 2vw, 1.5rem);
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand__img {
  height: 56px;
  width: auto;
  display: block;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}
.brand:hover .brand__img,
.brand:focus-visible .brand__img { transform: scale(1.06); }
.footer-brand .brand__img { height: 44px; }

.nav__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  padding: 0;
  margin-left: auto;   /* keeps links + CTA against the right edge */
}
.nav__links a {
  display: inline-block;
  padding-block: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 17, 68, 0.82);
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}
.nav__links a:hover { color: var(--on-accent); }
.nav__links a.active {
  color: var(--on-accent);
  border-bottom-color: var(--on-accent);
}

/* ---- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(26, 29, 36, 0.72), rgba(36, 39, 47, 0.88)),
    url("images/hero.jpg") center / cover no-repeat,
    var(--bg-deep);
  /* parallax: pin the photo to the viewport so the page scrolls over it */
  background-attachment: scroll, fixed, scroll;
}
/* fixed backgrounds are broken on touch devices (iOS) — scroll normally there */
@media (pointer: coarse), (max-width: 720px) {
  .hero { background-attachment: scroll; }
}
.hero__inner {
  position: relative;
  padding-block: clamp(4.5rem, 12vw, 9rem);
  max-width: 72ch;
  margin-inline: auto;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  margin-top: 1.2rem;
  letter-spacing: 0.12em;
}
.hero h1 .accent { color: var(--accent-text); }
.hero__lede {
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  margin: 1.4rem auto 0;
  max-width: 58ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 2.4rem;
}

/* Capability strip — thin dark band, uppercase items */
.capstrip {
  background: var(--bg-deep);
  border-block: 1px solid var(--line);
}
.capstrip ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2.5rem;
  padding-block: 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.capstrip li { display: inline-flex; align-items: center; gap: 0.6rem; }
.capstrip li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent-text);
}

/* ---- Cards / grids ---------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--bg-panel);
  padding: 1.75rem;
  transition: transform var(--ease), box-shadow var(--ease);
}
.card:hover { transform: translateY(-3px); }
.card h3 { font-size: 0.95rem; margin-bottom: 0.7rem; letter-spacing: 0.1em; }
.card p { color: var(--muted); font-size: 0.93rem; }

/* icon chip used in cards / services */
.icon-chip {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
  background: rgba(184, 69, 42, 0.16);
  border: 1px solid rgba(184, 69, 42, 0.5);
  color: var(--accent-text);
}
.icon-chip svg { width: 25px; height: 25px; }

/* Collection tiles — borderless product-card style (FDF grid) */
.collection {
  position: relative;
  display: flex;
  flex-direction: column;
}
.collection:hover img { transform: scale(1.05); }
.collection__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-panel-2);
}
.collection__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.collection__body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.25rem 0;
}
.collection__body h3 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-align: center;
  transition: color var(--ease);
}
.collection:hover .collection__body h3 { color: var(--accent-text); }
.collection__arrow { display: none; }
.collection > a::after { content: ""; position: absolute; inset: 0; }

/* ---- Services list ---------------------------------------------------- */
.service { display: flex; flex-direction: column; }
.service:hover .service__media img { transform: scale(1.05); }
.service__media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--bg-panel-2);
  overflow: hidden;
}
.service__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.service .icon-chip {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  margin: 0;
  background: rgba(26, 29, 36, 0.78);
  backdrop-filter: blur(4px);
  border-color: rgba(184, 69, 42, 0.6);
}
.service__body { padding: 1.4rem 0 0; }
.service__num {
  color: var(--accent-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-bottom: 0.4rem;
}
.service h3 { font-size: 1rem; margin-bottom: 0.6rem; letter-spacing: 0.12em; }
.service p { color: var(--muted); font-size: 0.95rem; }

/* Pricing table — centred box below the process grid */
.pricing {
  max-width: 680px;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  text-align: center;
}
.pricing__title { font-size: 1.1rem; margin-bottom: 1.4rem; }
.pricing__table { width: 100%; border-collapse: collapse; }
.pricing__table th,
.pricing__table td {
  padding: 0.9rem 0.25rem;
  border-top: 1px solid var(--line);
  vertical-align: baseline;
}
.pricing__table tr:first-child th,
.pricing__table tr:first-child td { border-top: 0; }
.pricing__table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.pricing__table td {
  text-align: right;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.pricing__table td b {
  font-weight: 800;
  color: var(--accent-text);
}
.pricing__table td i { font-style: normal; color: var(--faint); margin: 0 0.15rem; }
.pricing__note { margin-top: 1.5rem; font-size: 0.85rem; color: var(--faint); }

/* Work-request flow chart */
.flow { margin-top: clamp(3rem, 7vw, 5rem); }
.flow__head { max-width: 62ch; margin: 0 auto clamp(1.5rem, 4vw, 2.25rem); text-align: center; }
.flow__title { font-size: clamp(1.2rem, 3vw, 1.6rem); margin-top: 0.9rem; }
.flow__sub { color: var(--muted); margin-top: 0.85rem; }
.flow__canvas {
  border: 1px solid var(--line);
  background-color: var(--bg-deep);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.10) 1.3px, transparent 1.4px);
  background-size: 24px 24px;
  background-position: -12px -12px;
  padding: clamp(1rem, 3vw, 1.75rem);
  overflow-x: auto;
  box-shadow: var(--shadow);
}
.flow__canvas svg { display: block; min-width: 900px; width: 100%; height: auto; }

/* ---- Workflow steps (about) ------------------------------------------- */
.steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.step {
  position: relative;
  background: var(--bg-panel);
  overflow: hidden;
}
.step__no {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--accent-text);
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.95rem; }
.step__media {
  aspect-ratio: 16 / 10;
  background: var(--bg-panel-2);
  overflow: hidden;
}
.step__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.step__body { padding: 1.6rem 1.75rem 1.85rem; }
.step__body .step__no { margin-top: 0.25rem; }

/* ---- Feature / prose blocks ------------------------------------------- */
.prose p { color: var(--muted); margin-top: 1rem; font-size: 1rem; }
.prose p:first-child { margin-top: 0; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--accent-text); font-weight: 600; }
.prose a:hover { text-decoration: underline; }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.1fr 0.9fr; }
}

.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.85rem; }
.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--muted);
}
.checklist li::before {
  content: "";
  flex: none;
  margin-top: 0.5rem;
  width: 8px; height: 8px;
  background: var(--accent-text);
}
.checklist strong { color: var(--text); }

/* ---- CTA band --------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(2.25rem, 6vw, 3.75rem);
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  text-align: center;
}
.cta h2 { font-size: clamp(1.3rem, 3.4vw, 1.9rem); }
.cta p { color: var(--muted); margin: 0.9rem auto 1.8rem; max-width: 48ch; }
.cta .hero__actions { justify-content: center; margin-top: 0; }

/* ---- Contact page ----------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; }
}

.info-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 1.75rem;
}
.info-card + .info-card { margin-top: 1.25rem; }
.info-card h3 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.info-card a { color: var(--text); font-weight: 600; word-break: break-word; }
.info-card a:hover { color: var(--accent-text); }
.info-card .info-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 700;
  color: var(--accent-text);
  margin-bottom: 0.9rem;
}

/* Form */
.form {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.form__note {
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg-panel-2);
  border: 1px dashed var(--line-2);
  padding: 0.7rem 0.9rem;
  margin-bottom: 1.5rem;
}
.form__note a { color: var(--accent-text); }
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.field .req { color: var(--accent-text); }
.field input,
.field textarea {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.8rem 1rem;
  font: inherit;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-text);
  box-shadow: 0 0 0 3px rgba(184, 69, 42, 0.3);
}
.field textarea { resize: vertical; min-height: 140px; }
/* File upload — style the picker button like a small navy button */
.field input[type="file"] { padding: 0.5rem; cursor: pointer; }
.field input[type="file"]::file-selector-button {
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--navy);
  border: 0;
  padding: 0.6rem 1.1rem;
  margin-right: 1rem;
  cursor: pointer;
  transition: background var(--ease);
}
.field input[type="file"]::file-selector-button:hover { background: var(--navy-2); }
.field__hint {
  font-size: 0.8rem;
  color: var(--faint);
  margin-top: 0.45rem;
}
.field__hint a { color: var(--accent-text); }
/* Honeypot (spam trap) — hidden from people */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
/* Submit status message */
.form__status { margin-top: 1rem; font-size: 0.95rem; min-height: 1.2em; }
.form__status:empty { margin: 0; min-height: 0; }
.form__status.is-sending { color: var(--muted); }
.form__status.is-ok { color: #5fe08a; }
.form__status.is-err { color: var(--accent-text); }

/* ---- Footer ----------------------------------------------------------- */
.site-footer {
  flex-shrink: 0;
  background: var(--bg-deep);
  border-top: 3px solid var(--accent);
  margin-top: auto;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand p {
  color: var(--muted);
  margin-top: 1rem;
  max-width: 34ch;
  font-size: 0.92rem;
}
.footer-brand .tagline {
  color: var(--accent-text);
  font-weight: 700;
  margin-top: 1rem;
}
.footer-brand .brand { grid-column: auto; }
.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--faint);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-col a { color: var(--muted); font-size: 0.92rem; transition: color var(--ease); }
.footer-col a:hover { color: var(--accent-text); }
.footer-bar {
  border-top: 1px solid var(--line);
  padding-block: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--faint);
}

/* ---- Images / media --------------------------------------------------- */
/* Framed single image (about workshop, etc.) */
.media-frame {
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-panel);
  box-shadow: var(--shadow);
}
.media-frame img { width: 100%; display: block; }
.media-frame figcaption {
  padding: 0.75rem 1.1rem;
  font-size: 0.85rem;
  color: var(--faint);
  border-top: 1px solid var(--line);
}

/* Sliding work photo strip */
.marquee {
  overflow: hidden;
  background: var(--bg);
  border-block: 1px solid var(--line);
  padding-block: 1.25rem;
}
.marquee__track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee__item {
  flex: 0 0 auto;
  width: 240px;
  height: 165px;
  background: var(--bg-panel);
  overflow: hidden;
}
.marquee__item img {
  width: 100%; height: 100%;
  object-fit: cover;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* Gallery + featured-work grid — borderless product cards */
.gallery {
  display: grid;
  gap: 1.5rem 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.gallery figure { margin: 0; }
.gallery a { display: block; }
.gallery figure > a,
.gallery figure > img { overflow: hidden; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--bg-panel-2);
  transition: transform 0.5s ease;
}
.gallery figure { overflow: hidden; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  padding: 0.9rem 0.25rem 0;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
  color: var(--text);
}
.center-cta { text-align: center; margin-top: 2.75rem; }

/* Projects gallery — image-forward tiles, overlaid captions, click to enlarge */
.projects {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.project {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  cursor: pointer;
}
.project img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.project:hover img,
.project:focus-visible img { transform: scale(1.06); }
.project figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2rem 1.05rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #fff;
  background: linear-gradient(to top, rgba(10, 11, 15, 0.9), rgba(10, 11, 15, 0));
  pointer-events: none;
}
.project--wide { grid-column: span 2; aspect-ratio: 16 / 10; }
@media (max-width: 680px) {
  .project--wide { grid-column: span 1; aspect-ratio: 4 / 3; }
}
.project:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 3rem);
  background: rgba(8, 9, 12, 0.93);
  backdrop-filter: blur(4px);
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}
.lightbox__cap {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(0.9rem, 4vw, 1.8rem);
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding-inline: 1rem;
}
.lightbox__close {
  position: absolute;
  top: clamp(0.9rem, 4vw, 1.5rem);
  right: clamp(0.9rem, 4vw, 1.5rem);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--line-2);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--ease), border-color var(--ease);
}
.lightbox__close:hover { color: var(--accent-text); border-color: var(--accent); }

/* ---- Focus visibility (a11y) ------------------------------------------ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}
.brandbar a:focus-visible { outline-color: var(--on-accent); }

/* ---- Motion preferences ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---- Small-screen refinements ----------------------------------------- */
@media (max-width: 720px) {
  .brandbar__inner { justify-content: center; }
  .brand { flex: 1 1 100%; justify-content: center; }
  .nav__links { margin-left: 0; justify-content: center; flex: 1 1 auto; }
  .brandbar .nav__cta { display: none; }
  .hero__actions .btn,
  .cta .btn { flex: 1 1 auto; justify-content: center; }
}
