/* --- fonts ---------------------------------------------------------------
   Self-hosted rather than pulled from fonts.googleapis.com: loading them from
   Google sends every visitor's IP address to a third party on page load, which
   needs a legal basis we do not have and would have to appear in the privacy
   policy. Latin subsets only, 96 KB for the set. */

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-condensed-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-condensed-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/barlow-condensed-800.woff2') format('woff2');
}

/* Variable: one file covers every weight the pages ask for. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-variable.woff2') format('woff2');
}

/* =============================================================
   Prime Entity — Premium Design System
   ============================================================= */

:root {
  --bg:        #07080F;
  --bg-2:      #0C0E1A;
  --surface:   #111420;
  --text:      #E6EAF0;
  --muted:     #7B8FA8;
  --muted-2:   #A2B4C6;
  --accent:    #009fe3;
  --accent-dim: rgba(0, 159, 227, 0.10);
  --line:      rgba(255, 255, 255, 0.065);
  --line-2:    rgba(255, 255, 255, 0.04);

  --font-d: 'Barlow Condensed', sans-serif;
  --font-b: 'Inter', sans-serif;

  --header-h: 74px;
  --max-w: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

/* ── Light mode ──────────────────────────────────────────────── */

html.light {
  --bg:        #F4F6FB;
  --bg-2:      #EBEDF4;
  --surface:   #E2E5EE;
  --text:      #0C0E1A;
  --muted:     #798094;
  --muted-2:   #484F65;
  --line:      rgba(0, 0, 0, 0.09);
  --line-2:    rgba(0, 0, 0, 0.04);
}

html.light .site-header {
  background: rgba(244, 246, 251, 0.92);
}

html.light .brand-logo { filter: brightness(0); }

html.light .hero-bg-blob:nth-child(1) {
  background: radial-gradient(circle, rgba(0, 159, 227, 0.18), transparent 65%);
}
html.light .hero-bg-blob:nth-child(2) {
  background: radial-gradient(circle, rgba(0, 100, 160, 0.10), transparent 65%);
}

/* hero stays dark in both modes */

html.light .page-hero::after {
  background: radial-gradient(circle, rgba(0, 159, 227, 0.18), transparent 65%);
}
html.light .page-hero,
html.light .page-hero .eyebrow,
html.light .page-hero h1,
html.light .page-hero .lead { color: #ffffff; }

html.light .hero,
html.light .hero .eyebrow,
html.light .hero h1,
html.light .hero .lead { color: #ffffff; }
html.light .hero .btn-text { color: rgba(255,255,255,0.65); }
html.light .hero .btn-text:hover { color: #ffffff; }

html.light .cta-band::before {
  background: radial-gradient(circle, rgba(0, 159, 227, 0.15), transparent 65%);
}

html.light .marquee-logo {
  filter: brightness(0);
  opacity: 0.3;
}

html.light .marquee-item:hover .marquee-logo {
  filter: brightness(0) sepia(1) hue-rotate(168deg) saturate(5);
  opacity: 0.9;
}

html.light .split-visual.has-photo img { opacity: 0.65; }

html.light body::before { opacity: 0.022; }

/* ── Reset ─────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; background: #07080F; }
html.light { background: #F4F6FB; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

/* Film grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.038;
  pointer-events: none;
  z-index: 9997;
}

/* ── Typography ─────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-d);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h3 { text-transform: none; }

h1 { font-size: clamp(3.6rem, 8.5vw, 8rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 4rem); }
h3 { font-size: clamp(1rem, 1.8vw, 1.4rem); font-weight: 700; letter-spacing: 0.02em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-b);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hero .eyebrow { color: rgba(255,255,255,0.6); }

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

.lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--muted-2);
  max-width: 42rem;
  line-height: 1.8;
}

/* ── Layout ──────────────────────────────────────────────────── */

.container {
  width: min(var(--max-w), 92%);
  margin-inline: auto;
}

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { margin-top: 1.1rem; color: var(--muted-2); max-width: 44rem; }
.section-head.center p { margin-inline: auto; }
.section-head h2 { margin-top: 0.7rem; }

/* ── Header / Navigation ─────────────────────────────────────── */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(7, 7, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s;
}

.nav {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.brand {
  font-family: var(--font-d);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  flex-shrink: 0;
}

.brand strong { color: var(--accent); font-weight: inherit; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-links > li { position: relative; }

.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  font-family: var(--font-b);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-radius: 0;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* Dropdown */
.has-dropdown > a::after {
  content: "↓";
  margin-left: 0.5rem;
  font-size: 0.65em;
  opacity: 0.5;
}

.dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  min-width: 230px;
  list-style: none;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6);
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
  border-radius: 2px;
}
.dropdown a:hover { background: rgba(255,255,255,0.04); }

.nav-cta {
  margin-left: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  font-family: var(--font-b);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--muted-2);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color 0.2s;
}
.theme-toggle:hover { color: var(--accent); }
.theme-toggle svg { width: 17px; height: 17px; display: block; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html.light .theme-toggle .icon-sun { display: block; }
html.light .theme-toggle .icon-moon { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

/* ── Buttons ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.4rem;
  font-family: var(--font-b);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: #005579;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 85, 121, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  padding: calc(1rem - 1px) calc(2.4rem - 1px);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-text {
  background: transparent;
  color: var(--muted-2);
  padding: 0;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.btn-text:hover { color: var(--text); }
.btn-text::after { content: ' →'; transition: margin 0.2s; }
.btn-text:hover::after { margin-left: 4px; }

/* ── Logo image ─────────────────────────────────────────────── */

.brand-logo {
  height: 28px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

/* ── Hero photo panel ────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--header-h);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  background: #07080F;
}

/* Carousel slides */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  display: block;
}
.hero-slide.active { opacity: 0.75; }

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg-photo {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 100%;
  overflow: hidden;
}

@media (max-width: 740px) {
  .hero-bg-photo { width: 100%; }
  .hero-slide.active { opacity: 0.45; }
}

.hero-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.3;
}

.hero-bg-blob:nth-child(1) {
  width: 640px; height: 640px;
  background: radial-gradient(circle, #004d7a, transparent 65%);
  top: -200px; right: -120px;
}

.hero-bg-blob:nth-child(2) {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #002240, transparent 65%);
  bottom: -120px; left: -80px;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-b);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.5rem;
}

.hero h1 { margin-bottom: 2.5rem; }

.hero-foot {
  display: flex;
  align-items: flex-end;
  gap: clamp(2rem, 5vw, 6rem);
  flex-wrap: wrap;
}
.hero-foot .lead { flex: 1 1 20rem; margin-bottom: 0; }
.hero-foot .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Page hero (sub-pages) */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(4rem, 9vw, 7rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, #004d7a, transparent 65%);
  filter: blur(140px);
  opacity: 0.28;
  top: -260px; right: -160px;
  pointer-events: none;
}

.page-hero h1 { margin-top: 0.8rem; }
.page-hero .lead { margin-top: 1.4rem; }

.page-hero.has-img { background: #07080F; }

.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0.25;
  z-index: 0;
  display: block;
}

.page-hero > .container { position: relative; z-index: 1; }

/* ── Stats strip ─────────────────────────────────────────────── */

.stats-strip {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}

.stats-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat { text-align: left; }

.stat-n {
  display: block;
  font-family: var(--font-d);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-n sup {
  font-size: 0.45em;
  vertical-align: super;
  color: var(--accent);
}

.stat-l {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ── Service rows ────────────────────────────────────────────── */

.service-list { border-top: 1px solid var(--line); }

.service-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left 0.35s var(--ease);
  overflow: hidden;
  cursor: pointer;
}

.service-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease);
}

.service-row:hover { padding-left: 1.5rem; }
.service-row:hover::before { transform: scaleY(1); }

.service-idx {
  font-family: var(--font-d);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  opacity: 0.5;
  transition: opacity 0.2s;
}
.service-row:hover .service-idx { opacity: 1; }

.service-body h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.65rem);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.service-row:hover .service-body h3 { color: var(--accent); }

.service-body p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.3rem;
  line-height: 1.5;
}

.service-arr {
  font-size: 1rem;
  color: var(--muted);
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.3s var(--ease), color 0.2s;
  white-space: nowrap;
  font-family: var(--font-b);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.service-row:hover .service-arr {
  opacity: 1;
  transform: translateX(6px);
  color: var(--accent);
}

/* ── Cards (pricing page, minor use) ────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
}

.card {
  padding: 2.4rem 2rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: background 0.25s;
}
.card:hover { background: var(--bg-2); }

.card .num-icon {
  font-family: var(--font-d);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted-2); font-size: 0.92rem; flex: 1; }

.card .card-link {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  transition: letter-spacing 0.2s;
}
.card:hover .card-link { letter-spacing: 0.2em; }

/* ── Pricing ─────────────────────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 3rem 2.4rem;
  background: var(--surface);
  transition: background 0.25s;
}
.price-card:hover { background: var(--bg-2); }

.price-card.featured {
  background: linear-gradient(160deg, rgba(139, 110, 255, 0.1) 0%, var(--surface) 50%);
  border-inline: 1px solid rgba(139, 110, 255, 0.3);
}

.price-card .badge {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.2rem 0.85rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.price-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.price-desc { color: var(--muted); font-size: 0.88rem; margin-top: 0.4rem; }

.price {
  font-family: var(--font-d);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 1.8rem 0 0.4rem;
  color: var(--text);
}
.price small {
  font-size: 0.8rem;
  font-weight: 400;
  font-family: var(--font-b);
  color: var(--muted);
  letter-spacing: 0;
}

.price-card ul {
  list-style: none;
  margin: 1.8rem 0 2.5rem;
  flex: 1;
  display: grid;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
}

.price-card li {
  font-size: 0.9rem;
  color: var(--muted-2);
  padding-left: 1.2rem;
  position: relative;
}

.price-card li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
  top: 0.2em;
}

/* ── Split layout ────────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.split-visual {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-visual::before {
  content: attr(data-glyph);
  font-family: var(--font-d);
  font-size: clamp(6rem, 14vw, 14rem);
  font-weight: 800;
  color: rgba(139, 110, 255, 0.06);
  line-height: 1;
  position: absolute;
  right: -0.1em;
  bottom: -0.1em;
  user-select: none;
}

.split-visual-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.split-visual-line {
  display: block;
  font-family: var(--font-d);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 800;
  color: var(--accent);
  opacity: 0.7;
  letter-spacing: -0.02em;
}

.visual-rule {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin: 1.2rem auto;
  opacity: 0.5;
}

.split h2 { margin-top: 0.8rem; }
.split p { color: var(--muted-2); margin-top: 1rem; }
.split .eyebrow { margin-bottom: 0; }

.checklist { list-style: none; margin-top: 2rem; display: grid; gap: 0.9rem; }

.checklist li {
  position: relative;
  padding-left: 2rem;
  color: var(--muted-2);
  font-size: 0.95rem;
}
.checklist li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.checklist li strong { color: var(--text); font-weight: 600; }

/* ── Photo split visual ──────────────────────────────────────── */

.split-visual.has-photo {
  background: var(--bg-2);
  padding: 0;
  overflow: hidden;
}

.split-visual.has-photo::before { display: none; }

.split-visual.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.85;
  transition: transform 0.6s var(--ease), opacity 0.4s;
}

.split-visual.has-photo:hover img {
  transform: scale(1.03);
  opacity: 1;
}

/* ── Team ────────────────────────────────────────────────────── */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  max-width: 820px;
  margin-inline: auto;
}

.team-card {
  padding: 3rem 2.4rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.avatar {
  width: 56px; height: 56px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-d);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}

.team-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  margin-bottom: 1.4rem;
  border: 1px solid var(--line);
  display: block;
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.team-card:hover .team-photo { filter: grayscale(0%); }

.team-card h3 { font-size: 1.1rem; }

.team-role {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.team-card p { color: var(--muted-2); font-size: 0.9rem; }

/* ── Marquee ─────────────────────────────────────────────────── */

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  cursor: grab;
  user-select: none;
}
.marquee.is-dragging { cursor: grabbing; }

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 50s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  padding: 0 3rem;
  font-family: var(--font-b);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  border-right: 1px solid var(--line);
  height: 100%;
  transition: color 0.2s;
}

.marquee-item:hover { color: var(--text); }

.marquee-logo {
  height: 132px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.4;
  display: block;
  transition: filter 0.3s, opacity 0.3s;
}

.marquee-item:hover .marquee-logo {
  filter: brightness(0) invert(1) sepia(1) hue-rotate(168deg) saturate(5);
  opacity: 1;
}

.marquee-wrapper {
  border-block: 1px solid var(--line);
  padding-block: 2rem;
  background: var(--bg-2);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ── CTA band ────────────────────────────────────────────────── */

.cta-band {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0;
  text-align: center;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, #003d5c, transparent 65%);
  filter: blur(100px);
  opacity: 0.5;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-band h2 { margin: 0.8rem auto 1.2rem; max-width: 20ch; }
.cta-band p { color: var(--muted-2); margin: 0 auto 2.8rem; max-width: 36rem; }
.cta-band > div { position: relative; z-index: 1; }

/* ── Contact ─────────────────────────────────────────────────── */

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2.8rem;
  display: grid;
  gap: 1.4rem;
}

.field { display: grid; gap: 0.5rem; }

.field label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-b);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.field select option { background: var(--bg-2); }

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); }

.field textarea { min-height: 150px; resize: vertical; }

.contact-sidebar h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}

.contact-list { margin-top: 2rem; display: grid; gap: 1px; border: 1px solid var(--line); }

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.1rem 1.4rem;
  background: var(--surface);
  transition: background 0.2s;
  cursor: pointer;
}
.contact-item:hover { background: var(--bg-2); }

.contact-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--accent);
}

.contact-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-value { font-size: 0.9rem; font-weight: 500; margin-top: 0.1rem; }

/* ── Footer ──────────────────────────────────────────────────── */

.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand .brand {
  font-size: 0.85rem;
  display: block;
  margin-bottom: 1.2rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 24rem;
}

.footer-col h4 {
  font-family: var(--font-b);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.footer-col ul { list-style: none; display: grid; gap: 0.8rem; }

.footer-col a {
  color: var(--muted-2);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.social-links { display: flex; gap: 1.2rem; }

.social-link {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}
.social-link:hover { color: var(--text); }

.social-link svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
}

/* ── Scroll reveal ───────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { 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; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .split-visual { order: -1; aspect-ratio: 3/2; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 740px) {
  .hero { height: 100svh; }
  .hero-inner { display: flex; flex-direction: column; justify-content: flex-end; }
  .hero .hero-foot .lead { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem 4%;
    background: rgba(7, 7, 15, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 0.9rem 0; font-size: 0.85rem; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: transparent; padding-left: 1rem;
    padding-bottom: 0.5rem; }
  .has-dropdown > a::after { content: ''; }
  .nav-cta { display: none; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .service-row { grid-template-columns: 3rem 1fr; }
  .service-arr { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { display: grid; grid-template-columns: 1fr 1fr; }
}

/* ── Block alignment — managed by CMS ───────────────────────── */
section[data-desktop-align="left"]   .container { text-align: left; }
section[data-desktop-align="center"] .container { text-align: center; }
section[data-desktop-align="right"]  .container { text-align: right; }
section[data-desktop-align="left"]   .container .eyebrow { justify-content: flex-start; }
section[data-desktop-align="center"] .container .eyebrow { justify-content: center; }
section[data-desktop-align="right"]  .container .eyebrow { justify-content: flex-end; }

@media (max-width: 767px) {
  section[data-mobile-align="left"]   .container { text-align: left; }
  section[data-mobile-align="center"] .container { text-align: center; }
  section[data-mobile-align="right"]  .container { text-align: right; }
  section[data-mobile-align="left"]   .container .eyebrow { justify-content: flex-start; }
  section[data-mobile-align="center"] .container .eyebrow { justify-content: center; }
  section[data-mobile-align="right"]  .container .eyebrow { justify-content: flex-end; }
}

/* --- account link ---------------------------------------------------------
   Sits next to the theme toggle in the header on every page, studio and shop
   alike, so it is defined in the shared sheet rather than in shop.css. */

.account-link {
  display: grid;
  place-items: center;
  padding: 0.4rem;
  color: var(--muted-2);
  transition: color 0.2s;
}

.account-link:hover,
.account-link.active { color: var(--text); }
.account-link svg { width: 19px; height: 19px; }

/* --- cart link (mirrors .account-link, with a count badge) -------------- */

.cart-link {
  display: grid;
  place-items: center;
  position: relative;
  padding: 0.4rem;
  color: var(--muted-2);
  transition: color 0.2s;
}

.cart-link:hover,
.cart-link.active { color: var(--text); }
.cart-link svg { width: 19px; height: 19px; }

.cart-count {
  position: absolute;
  top: 0;
  right: -1px;
  min-width: 15px;
  height: 15px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-b);
  font-size: 0.55rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  pointer-events: none;
  transition: transform 0.15s var(--ease);
}

/* Hide the badge when the cart is empty. JS sets data-count="0". */
.cart-count[data-count="0"] { display: none; }

/* --- header actions -------------------------------------------------------
   The account link, the theme toggle and the call to action are one group, so
   the 3rem gap that separates the brand from the menu does not also push them
   apart. Defined here rather than in shop.css: every page has this cluster,
   and when only half the pages had the wrapper the icons jumped as you moved
   between the studio and the shop. */

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* A fixed footprint for the call to action. The actions group is right-aligned,
   so without this the icons beside it shift by however much "Get in touch" and
   "Buy ReFolvk" differ in width, and the header appears to jump as you move
   between pages. */

.nav-cta {
  min-width: 11.5rem;
  justify-content: center;
  text-align: center;
}
