@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --bg: #f7f4f4;
  --ink: #0c0c0d;
  --ink-soft: #2a2a2e;
  --muted: #6a6a72;
  --line: rgba(12, 12, 13, 0.09);
  --line-strong: rgba(196, 16, 46, 0.28);
  --surface: rgba(255, 255, 255, 0.78);
  --accent: #e10600;
  --accent-hot: #b00500;
  --accent-soft: rgba(225, 6, 0, 0.09);
  --radius: 0;
  --pad: clamp(1.2rem, 4vw, 3.25rem);
  --max: 1180px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--accent);
  color: #fff;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 100% -5%, rgba(225, 6, 0, 0.16), transparent 58%),
    radial-gradient(ellipse 50% 45% at -8% 40%, rgba(225, 6, 0, 0.07), transparent 52%),
    repeating-linear-gradient(
      -18deg,
      transparent 0,
      transparent 11px,
      rgba(225, 6, 0, 0.025) 11px,
      rgba(225, 6, 0, 0.025) 12px
    ),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, auto, auto, 52px 52px, 52px 52px;
  background-attachment: fixed;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

.wrap {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

/* ——— Nav ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(1.25) blur(18px);
  background: rgba(247, 244, 244, 0.82);
  border-bottom: 1px solid var(--line);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 12%, transparent 42%);
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  position: relative;
}

.brand span {
  background: linear-gradient(105deg, var(--accent) 0%, #ff3b30 55%, var(--accent-hot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* ——— Hero ——— */
.hero-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(94vh, 900px);
  display: grid;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.hero-shell--home {
  align-items: start;
  min-height: 0;
  padding: clamp(1.25rem, 3vh, 2rem) 0 clamp(1.75rem, 4vh, 2.75rem);
}

.hero-shell--home::after {
  display: none;
}

.hero-home {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1rem, 2.5vh, 1.5rem);
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

.hero-shell--home .hero {
  padding: 0;
  max-width: 36rem;
  gap: 0.45rem;
}

.hero-shell--home .hero-brand {
  font-size: clamp(3.25rem, 10vw, 6rem);
}

.hero-shell--home .hero-visual {
  opacity: 0.55;
}

.hero-shell--home .hero-plane {
  width: min(48vw, 420px);
  height: min(42vh, 320px);
  top: -5%;
  right: -8%;
}

.hero-shell--home .hero-plane-b {
  width: min(28vw, 220px);
  height: min(28vh, 200px);
  top: 8%;
  right: 2%;
}

.home-catalog {
  display: grid;
  gap: 0.75rem;
  max-width: 42rem;
}

.section-head--home {
  margin-bottom: 0;
  gap: 0.3rem;
}

.section-head--home h2 {
  font-size: clamp(1.55rem, 3.8vw, 2.25rem);
}

.gateway-list--home {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  max-width: none;
}

.gateway-list--home .gateway {
  padding: 1.05rem 1rem 1.05rem 0.85rem;
}

.gateway-list--home .gateway-title {
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
}

.gateway-list--home .gateway-desc {
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

.gateway-list--home .gateway-num {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
}

@media (max-width: 720px) {
  .hero-shell--home {
    align-items: start;
    min-height: 0;
    padding: 0.75rem 0 1.25rem;
  }

  .hero-shell--home .hero {
    padding: 0;
  }

  .hero-shell--home .hero-brand {
    font-size: clamp(2.75rem, 18vw, 4rem);
  }

  .hero-shell--home .hero-visual {
    display: none;
  }

  .hero-home {
    gap: 0.85rem;
  }

  .gateway-list--home .gateway {
    grid-template-columns: 2.75rem 1fr;
  }
}

.hero-shell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent) 28%,
    #ff3b30 28%,
    #ff3b30 34%,
    transparent 34%
  );
  z-index: 2;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-plane {
  position: absolute;
  top: -12%;
  right: -18%;
  width: min(78vw, 820px);
  height: min(88vh, 760px);
  background:
    linear-gradient(152deg, #ff2a22 0%, #e10600 38%, #8a0400 100%);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 72%);
  animation: planePulse 11s var(--ease) infinite alternate;
  box-shadow: inset -50px -70px 140px rgba(0, 0, 0, 0.28);
}

.hero-plane-b {
  position: absolute;
  top: 18%;
  right: -6%;
  width: min(42vw, 420px);
  height: min(52vh, 420px);
  background: linear-gradient(200deg, rgba(12, 12, 13, 0.92) 0%, #2a0808 100%);
  clip-path: polygon(28% 0, 100% 8%, 88% 100%, 0 86%);
  animation: planePulseAlt 14s var(--ease) infinite alternate;
  opacity: 0.92;
}

.hero-plane-c {
  position: absolute;
  bottom: 8%;
  right: 22%;
  width: min(28vw, 260px);
  height: min(22vh, 180px);
  background: rgba(255, 255, 255, 0.14);
  clip-path: polygon(0 18%, 100% 0, 100% 100%, 12% 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  animation: planePulse 9s var(--ease) infinite alternate-reverse;
}

.hero-ink {
  position: absolute;
  left: max(var(--pad), calc(50% - var(--max) / 2));
  bottom: 18%;
  width: min(38vw, 320px);
  height: 3px;
  background: var(--accent);
  transform-origin: left center;
  animation: inkDraw 1.4s var(--ease) 0.35s both;
}

.hero-plane::before {
  content: "";
  position: absolute;
  inset: 14% 16% auto auto;
  width: 38%;
  height: 38%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  transform: rotate(18deg);
  animation: frameSpin 26s linear infinite;
}

.hero-plane::after {
  content: "BAA";
  position: absolute;
  bottom: 10%;
  right: 6%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 18vw, 11rem);
  letter-spacing: -0.09em;
  color: rgba(255, 255, 255, 0.14);
  line-height: 1;
  animation: ghostDrift 12s var(--ease) infinite alternate;
}

@keyframes planePulse {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-28px, 20px) scale(1.04);
  }
}

@keyframes planePulseAlt {
  from {
    transform: translate(0, 0) rotate(0deg);
  }
  to {
    transform: translate(16px, -14px) rotate(-2deg);
  }
}

@keyframes frameSpin {
  to {
    transform: rotate(378deg);
  }
}

@keyframes inkDraw {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes ghostDrift {
  from {
    transform: translate(0, 0);
    opacity: 0.12;
  }
  to {
    transform: translate(-18px, -10px);
    opacity: 0.2;
  }
}

.hero {
  position: relative;
  z-index: 1;
  padding: clamp(4.5rem, 15vh, 9rem) 0 clamp(3.25rem, 10vh, 5.5rem);
  display: grid;
  gap: 1.45rem;
  max-width: 42rem;
}

.hero-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-kicker::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--accent);
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 18vw, 10.5rem);
  line-height: 0.86;
  letter-spacing: -0.06em;
  margin: 0;
}

.hero-brand em {
  font-style: normal;
  color: var(--ink);
  background: linear-gradient(180deg, var(--ink) 52%, var(--accent) 52%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(1.08rem, 2.2vw, 1.28rem);
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.95rem 1.45rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 36px rgba(225, 6, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s var(--ease);
}

.btn-primary:hover {
  background: var(--accent-hot);
  box-shadow: 0 18px 44px rgba(225, 6, 0, 0.38);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--line);
  color: var(--ink);
}

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

/* ——— Sections ——— */
.section {
  padding: clamp(3.5rem, 9vh, 6rem) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 0.7rem;
  margin-bottom: clamp(1.75rem, 4vh, 2.75rem);
  max-width: 42rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow::before {
  content: "";
  width: 1.25rem;
  height: 2px;
  background: var(--accent);
}

.section-head h2,
.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5.6vw, 3.75rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-head p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 1.02rem;
}

.page-hero {
  padding: clamp(2.75rem, 9vh, 5rem) 0 1.75rem;
  display: grid;
  gap: 0.85rem;
  max-width: 42rem;
  position: relative;
}

.page-hero::after {
  content: "";
  width: 4.5rem;
  height: 3px;
  background: var(--accent);
  margin-top: 0.35rem;
}

/* ——— Category gateways ——— */
.gateway-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.gateway {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 1rem 1.75rem;
  align-items: center;
  padding: 1.55rem 0.35rem 1.55rem 0;
  text-decoration: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: padding 0.4s var(--ease), color 0.35s var(--ease);
}

.gateway::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--accent);
  transition: width 0.45s var(--ease);
  z-index: 0;
}

.gateway::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent-soft), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.gateway:hover {
  border-color: var(--line);
  transform: none;
  box-shadow: none;
  padding-left: 1rem;
}

.gateway:hover::before {
  width: 5px;
}

.gateway:hover::after {
  opacity: 1;
}

.gateway-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  color: var(--accent);
  letter-spacing: -0.06em;
  position: relative;
  line-height: 1;
  z-index: 1;
}

.gateway-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.8vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  position: relative;
  z-index: 1;
}

.gateway-desc {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 40rem;
  position: relative;
  z-index: 1;
}

.gateway > div {
  position: relative;
  z-index: 1;
}

.gateway-arrow {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  transition: transform 0.45s var(--ease);
  position: relative;
  z-index: 1;
}

.gateway:hover .gateway-arrow {
  transform: translateX(10px);
}

@media (max-width: 720px) {
  .gateway {
    grid-template-columns: 3.25rem 1fr;
  }
  .gateway-arrow {
    display: none;
  }
}

/* ——— Project case studies ——— */
.project {
  display: grid;
  gap: 1.75rem;
  padding: clamp(2.5rem, 6vh, 4rem) 0;
  border-top: 1px solid var(--line);
}

.project:first-of-type {
  border-top: none;
  padding-top: 0.5rem;
}

.project-top {
  display: grid;
  gap: 0.75rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.project-index {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.15rem;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  box-shadow: 0 12px 32px rgba(225, 6, 0, 0.28);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.project-link:hover {
  background: var(--accent-hot);
  border-color: var(--accent-hot);
  text-decoration: none;
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 16px 40px rgba(225, 6, 0, 0.36);
}

.project h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5.2vw, 3.35rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
  font-weight: 800;
}

.project-accent {
  height: 4px;
  width: 6.5rem;
  background: var(--project-accent, var(--accent));
  position: relative;
}

.project-accent::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 0;
  width: 1.25rem;
  height: 4px;
  margin-left: 0.35rem;
  background: var(--ink);
  opacity: 0.18;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

@media (max-width: 860px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.project-concept {
  margin: 0;
  font-size: 1.06rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.project-concept + .project-concept {
  margin-top: 0.85rem;
}

.facts {
  display: grid;
  gap: 1.15rem;
  padding: 1.45rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-left: 3px solid var(--project-accent, var(--accent));
}

.fact h3 {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.fact p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack li {
  padding: 0.34rem 0.65rem;
  border: 1px solid var(--line);
  border-bottom-color: var(--line-strong);
  background: var(--bg);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.feature-callout {
  margin-top: 1.1rem;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.4));
  border-left: 4px solid var(--project-accent, var(--accent));
}

.feature-callout strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
}

.feature-callout p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.project-features {
  margin: 1rem 0 0;
  padding: 0 0 0 1.1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.project-features li {
  margin-bottom: 0.32rem;
}

.project-features li::marker {
  color: var(--project-accent, var(--accent));
}

.coming {
  padding: 2.5rem 0 4rem;
  max-width: 32rem;
}

.coming p {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), #fff 40%);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: min(28%, 220px);
  height: 3px;
  background: var(--accent);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.footer-inner a {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

/* ——— Motion ——— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-plane,
  .hero-plane-b,
  .hero-plane-c,
  .hero-plane::before,
  .hero-plane::after,
  .hero-ink,
  .reveal {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: var(--pad);
    right: var(--pad);
    top: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    background: rgba(247, 244, 244, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.7rem 0.5rem;
  }

  .hero-plane {
    opacity: 0.88;
    width: min(92vw, 460px);
    height: min(52vh, 380px);
  }

  .hero-plane-b {
    width: min(48vw, 220px);
    height: min(32vh, 220px);
    opacity: 0.75;
  }

  .hero-plane-c {
    display: none;
  }

  .hero-ink {
    width: min(55vw, 200px);
    bottom: 14%;
  }

  /* Home: no tall empty hero on mobile */
  .page-home .hero-shell--home {
    min-height: 0;
    align-items: start;
    padding: 0.65rem 0 1.15rem;
  }

  .page-home .hero-shell--home .hero {
    padding: 0;
  }

  .page-home .hero-shell--home .hero-visual {
    display: none;
  }

  .page-home .hero-home {
    gap: 0.75rem;
  }
}

/* ——— Services catalog ——— */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.filter-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(225, 6, 0, 0.22);
}

.svc-group {
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}

.svc-group .section-head {
  margin-bottom: 1rem;
}

.svc-group .section-head h2 {
  font-size: clamp(1.4rem, 3.1vw, 1.85rem);
}

.svc {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.75rem, 4vh, 2.75rem) 0;
  border-top: 1px solid var(--line);
}

.svc-top {
  display: grid;
  gap: 0.55rem;
}

.svc-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  font-weight: 800;
}

.svc-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

@media (max-width: 860px) {
  .svc-grid {
    grid-template-columns: 1fr;
  }
}

.svc-features {
  margin: 0.9rem 0 0;
  padding: 0 0 0 1.1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.svc-features li {
  margin-bottom: 0.28rem;
}

.svc .facts {
  padding: 1.15rem;
}

.svc-shot {
  margin: 0 0 0.25rem;
  max-width: 100%;
}

.svc-shot img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: top center;
}

/* ——— Mobile shots ——— */
.shot-gallery {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin-top: 0.5rem;
  margin-inline: calc(-1 * var(--pad));
  padding: 1.75rem var(--pad) 0.75rem;
  border-top: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.shot-gallery::-webkit-scrollbar {
  height: 6px;
}

.shot-gallery::-webkit-scrollbar-thumb {
  background: var(--accent);
}

.shot {
  margin: 0;
  flex: 0 0 200px;
  width: 200px;
  scroll-snap-align: start;
}

.shot img {
  width: 200px;
  height: 356px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--accent);
  background: #0a0a12;
  transition: transform 0.4s var(--ease);
  cursor: zoom-in;
}

@media (max-width: 520px) {
  .shot {
    flex-basis: 168px;
    width: 168px;
  }

  .shot img {
    width: 168px;
    height: 298px;
  }
}

.shot:hover img {
  transform: translateY(-4px);
}

/* Desktop / web screenshots (apps page) */
.shot-gallery--web .shot {
  flex: 0 0 min(88vw, 720px);
  width: min(88vw, 720px);
}

.shot-gallery--web .shot img {
  width: 100%;
  height: auto;
  max-height: min(70vh, 520px);
  aspect-ratio: auto;
  object-fit: contain;
  object-position: top center;
  background: #f0ecec;
  border-bottom: 2px solid var(--accent);
}

@media (max-width: 520px) {
  .shot-gallery--web .shot {
    flex-basis: min(92vw, 360px);
    width: min(92vw, 360px);
  }

  .shot-gallery--web .shot img {
    max-height: 52vh;
  }
}

.shot figcaption {
  margin-top: 0.55rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ——— Ads ——— */
.ad-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 900px) {
  .ad-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

.ad-shot {
  margin: 0;
}

.ad-shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #111;
  display: block;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: zoom-in;
}

.ad-shot:hover img {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(12, 12, 13, 0.1);
}

.ad-shot figcaption {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.ad-brand {
  font-weight: 700;
  color: var(--accent);
}

.video-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

@media (min-width: 700px) {
  .video-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .video-gallery {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.ad-video {
  margin: 0;
}

.ad-video video {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  background: #111;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.ad-video figcaption {
  margin-top: 0.45rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}

/* ——— Lightbox ——— */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(12, 12, 13, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: min(96vw, 100%);
  max-height: min(90vh, 100%);
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
}
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a0a12;
}

.lightbox-caption {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  margin: 0;
  max-width: min(90vw, 40rem);
  text-align: center;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s var(--ease);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.75rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.85rem;
}

.lightbox-prev {
  left: 0.75rem;
}

.lightbox-next {
  right: 0.75rem;
}

@media (max-width: 600px) {
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 3.5rem;
    transform: none;
  }

  .lightbox-caption {
    bottom: 0.65rem;
    font-size: 0.85rem;
  }
}
