/* ==========================================================================
   PAMSCO design system
   Dark industrial palette · brand red from the logo · steel greys
   Mobile-first. Every layout rule starts at 380px and scales up.
   ========================================================================== */
@import url("../fonts/fonts.css");

:root {
  --ink-950: #07090b;
  --ink-900: #0c0f12;
  --ink-800: #12161a;
  --ink-700: #1a1f25;
  --ink-600: #242b32;
  --ink-500: #313a43;
  --steel-400: #6f7c89;
  --steel-300: #9aa6b2;
  --steel-200: #c3ccd5;
  --steel-100: #e6ebef;
  --text: #f1f3f5;
  --muted: #a1abb6;
  --red: #e30b0c;
  --red-deep: #b30809;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.1rem, 4vw, 3rem);
  --measure: 62ch;
  --nav-h: 68px;
  --radius: 4px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 700ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ink-900); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--ink-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* ---------- typography ---------- */
.display, .h1, .h2, .h3, .eyebrow, .stat {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  font-weight: 700;
}
.display { font-size: clamp(2.9rem, 10.5vw, 7.5rem); font-weight: 800; letter-spacing: -0.005em; }
.h1 { font-size: clamp(2.4rem, 7.5vw, 5.25rem); font-weight: 800; }
.h2 { font-size: clamp(2rem, 5.5vw, 3.9rem); }
.h3 { font-size: clamp(1.4rem, 3.2vw, 2rem); line-height: 1.02; }
.eyebrow {
  font-size: clamp(0.82rem, 1.6vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--steel-300);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before { content: ""; width: 2.25rem; height: 2px; background: var(--red); flex: none; }
.lead { font-size: clamp(1.1rem, 2.1vw, 1.4rem); line-height: 1.5; color: var(--steel-200); max-width: var(--measure); font-weight: 400; }
.body-copy { color: var(--steel-200); max-width: var(--measure); }
.muted { color: var(--muted); }
.accent { color: var(--red); }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; }
.wrap--wide { width: min(100% - 2 * var(--gutter), 1480px); margin-inline: auto; }

.section {
  position: relative;
  padding: clamp(4rem, 10vh, 7rem) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section--vh { min-height: 100vh; min-height: 100svh; }
.section--tight { padding: clamp(3rem, 6vh, 5rem) 0; }
.section--alt { background: var(--ink-800); }
.section--rule { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.section-head .lead { margin-top: 0.4rem; }
.section-head--row { align-items: end; }
@media (min-width: 900px) {
  .section-head--row { grid-template-columns: 1fr auto; }
}

/* Full-bleed photo backgrounds */
.bleed { position: relative; isolation: isolate; overflow: hidden; }
.bleed__img { position: absolute; inset: 0; z-index: -2; }
.bleed__img picture { width: 100%; height: 100%; }
.bleed__img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); }
.bleed__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12,15,18,0.55) 0%, rgba(12,15,18,0.35) 40%, rgba(12,15,18,0.92) 100%);
}
.bleed--side .bleed__shade {
  background:
    linear-gradient(90deg, rgba(12,15,18,0.94) 0%, rgba(12,15,18,0.78) 45%, rgba(12,15,18,0.35) 100%);
}
@media (max-width: 767px) {
  .bleed--side .bleed__shade { background: linear-gradient(180deg, rgba(12,15,18,0.55), rgba(12,15,18,0.92) 70%); }
}
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color 300ms, border-color 300ms, backdrop-filter 300ms;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(12, 15, 18, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__brand img { height: 42px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.nav__links { display: none; }
.nav__links a {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 600; font-size: 1.05rem; padding: 0.5rem 0.9rem;
  color: var(--steel-100); position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.15rem; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease-out);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { display: none; }
.nav__toggle {
  width: 44px; height: 44px; display: grid; place-items: center; margin-right: -8px;
}
.nav__toggle span {
  display: block; width: 24px; height: 2px; background: var(--text); position: relative;
  transition: transform 250ms, background 250ms;
}
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--text); transition: transform 250ms, top 250ms;
}
.nav__toggle span::before { top: -8px; } .nav__toggle span::after { top: 8px; }
body.menu-open .nav__toggle span { background: transparent; }
body.menu-open .nav__toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav__toggle span::after { top: 0; transform: rotate(-45deg); }
body.menu-open { overflow: hidden; }
.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--ink-950);
  display: flex; flex-direction: column; justify-content: center; padding: var(--nav-h) var(--gutter) 2rem;
  transform: translateY(-6%); opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 250ms, transform 300ms var(--ease-out), visibility 0s 300ms;
}
body.menu-open .menu { transform: none; opacity: 1; pointer-events: auto; visibility: visible; transition: opacity 250ms, transform 300ms var(--ease-out); }
.menu a.menu__link {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 800;
  font-size: clamp(2.6rem, 12vw, 4.5rem); line-height: 1.05; padding: 0.2rem 0; display: block;
  border-bottom: 1px solid var(--line);
}
.menu a.menu__link[aria-current="page"] { color: var(--red); }
.menu__contact { margin-top: 2rem; display: grid; gap: 0.5rem; color: var(--steel-200); font-size: 1.1rem; }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle, .menu { display: none; }
  .nav__brand img { height: 48px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700;
  font-size: 1.05rem; padding: 0.95rem 1.5rem; border-radius: var(--radius);
  border: 2px solid transparent; transition: transform 200ms var(--ease-out), background 200ms, border-color 200ms, color 200ms;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn--primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: rgba(12,15,18,0.35); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { font-size: 0.95rem; padding: 0.6rem 1rem; min-height: 40px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn-row .btn { flex: 1 1 auto; }
@media (min-width: 600px) { .btn-row .btn { flex: 0 0 auto; } }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 3rem) 0 clamp(3rem, 9vh, 6rem); }
.hero__content { display: grid; gap: 1.5rem; max-width: 1100px; position: relative; z-index: 1; }
.hero .display { max-width: 12ch; text-wrap: balance; }
.hero .lead { max-width: 52ch; }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 1.4rem; display: none;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.8rem; color: var(--steel-300);
  writing-mode: vertical-rl; align-items: center; gap: 0.6rem;
}
.hero__scroll::after { content: ""; width: 1px; height: 56px; background: var(--steel-300); animation: drop 1.8s var(--ease-out) infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 60% { transform: scaleY(1); transform-origin: top; } 61% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (min-width: 900px) { .hero__scroll { display: flex; } }

/* Contained hero (used when no photo is ≥1200px wide) */
.hero--contained { align-items: center; }
.hero--contained .hero__frame { border: 1px solid var(--line); background: var(--ink-800); max-width: 900px; margin-top: 1.5rem; }
.hero--contained .hero__frame img { width: 100%; height: auto; }

/* ---------- ticker strip (sectors) ---------- */
.strip {
  border-block: 1px solid var(--line); background: var(--ink-950);
  padding: 0.9rem 0; overflow: hidden; white-space: nowrap;
}
.strip__track { display: inline-flex; gap: 3rem; padding-right: 3rem; animation: marquee 40s linear infinite; }
.strip__track span { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600; color: var(--steel-300); display: inline-flex; align-items: center; gap: 3rem; }
.strip__track span::after { content: ""; width: 6px; height: 6px; background: var(--red); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip__track { animation: none; } }

/* ---------- sectors ---------- */
.sectors { display: grid; gap: 0; border-top: 1px solid var(--line); }
.sector { display: grid; gap: 0.4rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); position: relative; transition: padding-left 250ms var(--ease-out); }
.sector::before { content: ""; position: absolute; left: 0; top: 0; bottom: -1px; width: 0; background: var(--red); transition: width 250ms var(--ease-out); }
.sector:hover { padding-left: 1rem; }
.sector:hover::before { width: 4px; }
.sector .h2 { font-size: clamp(1.9rem, 6vw, 3.4rem); display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.sector .h2 svg { width: 1.1em; height: 1.1em; flex: none; color: var(--steel-400); }
.sector:hover .h2 svg { color: var(--red); }
.sector__ex { color: var(--muted); font-size: 1rem; }
.sector__ex b { color: var(--steel-200); font-weight: 500; }
@media (min-width: 900px) {
  .sector { grid-template-columns: 1fr 1.2fr; align-items: center; padding: 1.8rem 0; }
}

/* ---------- project cards ---------- */
.cards { display: grid; gap: 1.1rem; }
.card {
  position: relative; display: block; overflow: hidden; background: var(--ink-700);
  aspect-ratio: 4 / 3; border-radius: var(--radius); isolation: isolate;
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out), filter 500ms; }
.card:hover img { transform: scale(1.05); }
.card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,15,18,0.05) 30%, rgba(12,15,18,0.92) 100%);
}
.card__body { position: absolute; inset: auto 0 0 0; padding: 1.2rem; z-index: 1; display: grid; gap: 0.35rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.3rem; }
.tag {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; font-size: 0.78rem;
  padding: 0.28rem 0.55rem; border: 1px solid var(--line-strong); background: rgba(12,15,18,0.55); color: var(--steel-100);
  border-radius: 2px; backdrop-filter: blur(4px);
}
.tag--red { border-color: var(--red); color: #fff; background: rgba(227,11,12,0.75); }
.card__title { font-family: var(--font-display); text-transform: uppercase; font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1; }
.card__meta { color: var(--steel-200); font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }
.card__meta span + span::before { content: "·"; margin-right: 1rem; color: var(--steel-400); }
.card__bullets { display: none; color: var(--steel-200); font-size: 0.95rem; margin-top: 0.4rem; }
.card__bullets li { padding-left: 1rem; position: relative; }
.card__bullets li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 5px; height: 5px; background: var(--red); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .cards--feature { grid-template-columns: repeat(12, 1fr); }
  .cards--feature .card:nth-child(1) { grid-column: span 7; aspect-ratio: 16 / 10; }
  .cards--feature .card:nth-child(2) { grid-column: span 5; aspect-ratio: auto; }
  .cards--feature .card:nth-child(3) { grid-column: span 5; aspect-ratio: auto; }
  .cards--feature .card:nth-child(4) { grid-column: span 7; aspect-ratio: 16 / 10; }
  .card__bullets { display: grid; gap: 0.15rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 450ms var(--ease-out), opacity 300ms; }
  .card:hover .card__bullets, .card:focus-visible .card__bullets { max-height: 8rem; opacity: 1; }
  .card__body { padding: 1.6rem; }
}

/* ---------- capability pillars ---------- */
.pillars { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar { background: var(--ink-800); padding: 1.6rem 1.4rem 1.8rem; display: grid; gap: 1rem; align-content: start; position: relative; }
.pillar__num { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.18em; color: var(--red); }
.pillar .h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.pillar ul { display: grid; gap: 0.55rem; color: var(--steel-200); }
.pillar li { padding-left: 1.2rem; position: relative; line-height: 1.4; }
.pillar li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 2px; background: var(--red); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } .pillar { padding: 2.2rem 2rem 2.4rem; } }

/* ---------- statement band ---------- */
.statement { min-height: 70vh; display: flex; align-items: center; padding: clamp(4rem, 10vh, 7rem) 0; }
.statement .wrap { position: relative; z-index: 1; }
.statement .h1 { max-width: 16ch; text-wrap: balance; }

/* ---------- contact CTA ---------- */
.cta { display: grid; gap: 1.6rem; }
.cta__contacts { display: grid; gap: 0.9rem; }
.contact-line {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03); border-radius: var(--radius); transition: border-color 200ms, background 200ms;
}
.contact-line:hover { border-color: var(--red); background: rgba(227,11,12,0.08); }
.contact-line svg { width: 26px; height: 26px; color: var(--red); flex: none; }
.contact-line b { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.contact-line span { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 500; word-break: break-all; }
@media (min-width: 900px) {
  .cta { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 4rem; }
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--ink-950); padding: 3rem 0 2rem; color: var(--muted); font-size: 0.95rem; }
.footer__grid { display: grid; gap: 2rem; }
.footer__brand img { height: 46px; width: auto; }
.footer__brand p { margin-top: 0.9rem; max-width: 34ch; }
.footer__col b { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.85rem; color: var(--steel-200); margin-bottom: 0.7rem; }
.footer__col ul { display: grid; gap: 0.45rem; }
.footer__col a:hover { color: var(--text); }
.footer__badge img { height: 74px; width: auto; }
.footer__bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.85rem; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr auto; } }

/* ---------- page header (interior pages) ---------- */
.page-head { padding: calc(var(--nav-h) + clamp(3rem, 8vh, 6rem)) 0 clamp(2rem, 5vh, 3.5rem); display: grid; gap: 1.1rem; }

/* ---------- projects index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; font-size: 0.95rem;
  padding: 0.55rem 0.95rem; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--steel-200); transition: all 200ms; min-height: 40px;
}
.filter[aria-pressed="true"], .filter:hover { background: var(--red); border-color: var(--red); color: #fff; }
.filter small { opacity: 0.7; margin-left: 0.35rem; letter-spacing: 0; }
.cards--index { gap: 1rem; }
.card.is-hidden { display: none; }
.results { color: var(--muted); font-size: 0.95rem; }

/* ---------- project detail ---------- */
.phero { min-height: 82vh; min-height: 82svh; display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 3rem) 0 clamp(2.5rem, 7vh, 4.5rem); }
.phero__content { display: grid; gap: 1.1rem; max-width: 1000px; }
.phero .h1 { max-width: 16ch; text-wrap: balance; }
.phero__loc { font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: var(--steel-200); }
.phero--contained { min-height: 0; align-items: start; }
.phero--contained .phero__frame { margin-top: 1.5rem; border: 1px solid var(--line); background: var(--ink-800); max-height: 70vh; overflow: hidden; }
.phero--contained .phero__frame img { width: 100%; height: 100%; object-fit: contain; }

.pbody { display: grid; gap: 3rem; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); align-content: start; }
.facts div { display: grid; gap: 0.2rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.facts dd { font-size: 1.05rem; color: var(--steel-100); font-weight: 500; }
.scope { display: grid; gap: 1.4rem; align-content: start; }
.scope ul { display: grid; gap: 0.9rem; }
.scope li {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 600; font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.05;
  padding-left: 1.6rem; position: relative; text-wrap: balance;
}
.scope li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.8rem; height: 3px; background: var(--red); }
@media (min-width: 900px) { .pbody { grid-template-columns: 1.3fr 1fr; gap: 4rem; } .facts div { grid-template-columns: 9rem 1fr; gap: 1rem; } }

/* gallery */
.gallery { display: grid; gap: 0.7rem; grid-template-columns: repeat(2, 1fr); }
.gallery a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-700); border-radius: var(--radius); }
.gallery a figure, .gallery a picture { height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out); }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.55rem 0.7rem; font-size: 0.85rem; color: var(--steel-100);
  background: linear-gradient(180deg, transparent, rgba(12,15,18,0.85)); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em;
}
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

/* prev / next */
.pn { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.pn a { background: var(--ink-900); padding: 1.6rem var(--gutter); display: grid; gap: 0.3rem; transition: background 200ms; }
.pn a:hover { background: var(--ink-800); }
.pn small { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.pn .h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
.pn a.pn--next { text-align: right; }
@media (min-width: 700px) { .pn { grid-template-columns: 1fr 1fr; } .pn a { padding: 2rem clamp(1.1rem, 4vw, 3rem); } }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(7,9,11,0.96); display: none; flex-direction: column; }
.lb.is-open { display: flex; }
.lb__stage { flex: 1; display: grid; place-items: center; padding: 3.5rem 0.75rem 0.5rem; min-height: 0; }
.lb__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb__cap { text-align: center; padding: 0.5rem 1rem 1.25rem; color: var(--steel-200); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; }
.lb__btn { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,0.08); border-radius: 50%; }
.lb__btn:hover { background: var(--red); }
.lb__btn svg { width: 22px; height: 22px; }
.lb__close { top: 0.75rem; right: 0.75rem; }
.lb__prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lb__next { right: 0.5rem; top: 50%; transform: translateY(-50%); }

/* ---------- capabilities ---------- */
.cap-block { display: grid; gap: 2rem; }
.cap-block__text { display: grid; gap: 1.2rem; align-content: center; }
.cap-block__text ul { display: grid; gap: 0.7rem; }
.cap-block__text li { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--steel-100); padding-left: 1.4rem; position: relative; line-height: 1.4; }
.cap-block__text li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 0.75rem; height: 2px; background: var(--red); }
.cap-media { display: grid; gap: 0.7rem; }
.cap-media figure { position: relative; overflow: hidden; background: var(--ink-700); border-radius: var(--radius); aspect-ratio: 4 / 3; }
.cap-media img { width: 100%; height: 100%; object-fit: cover; }
.cap-media figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.5rem 0.7rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; background: linear-gradient(180deg, transparent, rgba(12,15,18,0.85)); }
.cap-media--3 { grid-template-columns: repeat(3, 1fr); }
.cap-media--3 figure:first-child { grid-column: span 3; aspect-ratio: 16 / 9; }
.embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--ink-950); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed--tall { aspect-ratio: 4 / 3; }
.cap-jump { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.shop-grid figure { aspect-ratio: 3 / 4; }
@media (min-width: 900px) {
  .cap-block { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
  .cap-block--flip .cap-block__text { order: 2; }
  .cap-media--3 figure:first-child { aspect-ratio: 16 / 10; }
  .shop-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .embed--tall { aspect-ratio: 16 / 11; }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); transition-delay: var(--delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--left { transform: translateX(-28px); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- additions: index grid, nav cta, capability media as lightbox links ---------- */
.nav .nav__cta { display: inline-flex; }
@media (max-width: 379px) { .nav .nav__cta { display: none; } }
@media (min-width: 1100px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.cap-media > a { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-700); border-radius: var(--radius); }
.cap-media > a figure { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.cap-media > a picture { height: 100%; }
.cap-media > a img { transition: transform 800ms var(--ease-out); }
.cap-media > a:hover img { transform: scale(1.04); }
.cap-media--3 > a:first-child { aspect-ratio: 16 / 9; }
.shop-grid > a { aspect-ratio: 3 / 4; }
.gallery.cap-media { grid-template-columns: repeat(2, 1fr); }
.cap-media--3 > a:first-child { grid-column: span 2; }
.gallery.shop-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery.shop-grid { grid-template-columns: repeat(3, 1fr); } .cap-media--3 > a:first-child { aspect-ratio: 16 / 10; } }
.page-head .filters { margin-top: 0.5rem; }
.phero--contained .h1 { max-width: 20ch; }
