/* =========================================================
   glasz — Creative Production Studio
   Stylesheet
   ========================================================= */

@font-face {
  font-family: 'Onest';
  src: url('../fonts/Onest-var.woff2') format('woff2-variations'),
       url('../fonts/Onest-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Benzin';
  src: url('../fonts/Benzin-Bold.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --white: #ffffff;
  --grey: #f5f5f5;
  --grey-2: #e7e5e2;
  --ink: #55545a;
  --ink-soft: #8a8990;
  --black: #0a0a0d;
  --black-soft: #131217;
  --black-elev: #1b1a20;
  --red: #ff0a3d;
  --red-dim: #c40830;
  --red-deep: #3d0313;
  --red-ghost: rgba(255, 10, 61, 0.12);

  --font-display: 'Benzin', 'Arial Black', sans-serif;
  --font-body: 'Onest', 'Helvetica Neue', Arial, sans-serif;

  --container: 1320px;
  --pad: clamp(20px, 5vw, 64px);
  --gap: clamp(16px, 2.4vw, 32px);
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
  --radius: 3px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
/* Components below set explicit display values, which would otherwise beat the
   UA rule for [hidden] and leave "hidden" elements on screen. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.no-scroll { overflow: hidden; }

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

section { position: relative; }

.section { padding-block: clamp(64px, 11vw, 150px); }
.section-tight { padding-block: clamp(48px, 7vw, 96px); }
.bg-black { background: var(--black); color: var(--white); }
.bg-white { background: var(--white); color: var(--black); }
.bg-grey { background: var(--grey); color: var(--black); }
.bg-red { background: var(--red); color: var(--black); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 1px;
  flex-shrink: 0;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.72); }
.eyebrow--on-red { color: rgba(10, 10, 13, 0.6); }
.eyebrow--on-red::before { background: var(--black); }
.eyebrow--center { justify-content: center; }

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

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

.h-display {
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  font-weight: 800;
}

.h-section {
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  font-weight: 700;
}

.lead {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--ink);
  max-width: 46ch;
}
.lead--light { color: rgba(255, 255, 255, 0.68); }

.statement {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.1vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: -0.005em;
}

/* Giant wordmark */
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.5rem, 19vw, 15rem);
  line-height: 0.78;
  letter-spacing: -0.03em;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.wordmark--ghost { color: rgba(255, 255, 255, 0.06); }
.wordmark--on-red { color: rgba(10, 10, 13, 0.14); }
.wordmark--white { color: var(--white); }
.wordmark--black { color: var(--black); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.95em 1.8em;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.45s var(--ease), background-color 0.3s ease, color 0.3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: var(--red); color: var(--white); }

.btn-outline {
  background: transparent;
  color: currentColor;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn-outline:hover { background: var(--black); color: var(--white); box-shadow: inset 0 0 0 1.5px var(--black); }

.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--red); color: var(--white); }

.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1.5px currentColor;
  flex-shrink: 0;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.icon-btn:hover { background: currentColor; }
.icon-btn:hover svg { color: var(--black); }
.icon-btn svg { width: 16px; height: 16px; }

.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1.5px currentColor;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.social-row a:hover { background: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); color: var(--white); }
.social-row svg { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding-block: clamp(18px, 2.6vw, 28px);
  color: var(--white);
  transition: background-color 0.4s ease, padding 0.4s ease, box-shadow .4s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 13, 0.86);
  backdrop-filter: blur(14px);
  padding-block: 16px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.site-header.is-dark-page { color: var(--black); }
.site-header.is-dark-page.is-scrolled { color: var(--white); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo .mark { width: 22px; height: 22px; }

.nav-desktop { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav-desktop a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  padding-block: 4px;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1.5px;
  background: currentColor;
  transition: right 0.35s var(--ease);
}
.nav-desktop a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-actions .btn { padding: 0.8em 1.5em; }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1.5px currentColor;
  flex-shrink: 0;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  display: block;
  width: 16px; height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform 0.3s ease, opacity .3s ease;
}
.menu-toggle span::before { position: absolute; top: -5px; }
.menu-toggle span::after { position: absolute; top: 5px; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--red);
  color: var(--black);
  display: flex;
  flex-direction: column;
  padding: 22px var(--pad) 40px;
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease);
}
.mobile-menu.is-open { transform: translateY(0); }

.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; }
.menu-close {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.menu-close svg { width: 16px; height: 16px; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: auto 0;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2rem, 9vw, 3rem);
  padding-block: 8px;
  letter-spacing: -0.01em;
}

.mobile-menu-foot { display: flex; flex-direction: column; gap: 22px; }
.mobile-menu-foot p { max-width: 30ch; font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: linear-gradient(178deg, #8f0c20 0%, #7c0a1c 48%, #5e0715 100%);
  color: var(--white);
  padding-top: clamp(108px, 13vh, 156px);
}

/* Centered portrait, sitting behind the copy and behind the wordmark */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(178deg, rgba(90, 8, 22, 0.55) 0%, rgba(90, 8, 22, 0.18) 30%, rgba(60, 5, 13, 0.55) 72%, rgba(30, 2, 6, 0.94) 100%),
    radial-gradient(58% 52% at 50% 30%, rgba(255, 90, 110, 0.18), transparent 70%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.28;
  mix-blend-mode: overlay;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 22%;
}
/* Illustrated silhouette — still used on team.html's hero */
.hero-figure {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(58%, 760px);
  filter: drop-shadow(0 30px 80px rgba(40, 0, 8, 0.5));
}
.hero-figure .fig-body { fill: url(#figFill); }
.hero-figure .fig-rim { fill: none; stroke: url(#figRim); stroke-width: 1.6; }

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
  flex: 1;
}

.hero-left { display: flex; flex-direction: column; gap: clamp(18px, 3.2vh, 36px); min-width: 0; }
.hero-title {
  font-size: clamp(1.5rem, 3.1vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}
.hero-note {
  max-width: 26ch;
  font-size: clamp(0.6rem, 0.68vw, 0.7rem);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: end;
  gap: clamp(22px, 3.6vh, 40px);
  min-width: 0;
  margin-left: auto;
  max-width: 30ch;
  padding-bottom: clamp(24px, 6vh, 72px);
}
.hero-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(0.78rem, 0.98vw, 0.95rem);
  line-height: 1.45;
}
.hero-right .btn { padding: 1.15em 2.6em; }

/* Bottom block: the giant wordmark alone */
.hero-foot { position: relative; z-index: 3; }

/* The wordmark bleeds edge to edge and is cropped by the bottom of the hero */
.hero-wordmark-wrap {
  overflow: hidden;
  line-height: 0;
  padding-inline: clamp(10px, 1.6vw, 22px);
}
/* --wm-size is tuned per page so the word spans the full width whatever its length */
.hero-wordmark-wrap .wordmark {
  display: block;
  color: var(--white);
  text-transform: uppercase;
  font-size: var(--wm-size, 23.1vw);
  line-height: 0.9;
  letter-spacing: -0.035em;
  margin-bottom: -0.2em;
}

/* ---------- Portrait visual system (illustrated, no photography) ---------- */
.portrait {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(255, 40, 80, 0.55), transparent 55%),
    radial-gradient(90% 70% at 50% 100%, rgba(0,0,0,0.9), transparent 60%),
    linear-gradient(155deg, #7a0018 0%, #3d0313 46%, #0a0a0d 100%);
}
.portrait__figure {
  position: absolute;
  bottom: -4%;
  left: 50%;
  transform: translateX(-50%);
  width: min(64%, 620px);
  opacity: 0.9;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.55));
}
.portrait__figure path { fill: #050506; }
.portrait__figure .rim { fill: none; stroke: rgba(255,255,255,0.14); stroke-width: 0.6; }
.portrait::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: 0.5;
  mix-blend-mode: overlay;
}
.portrait::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 100%, transparent 30%, rgba(0,0,0,0.55) 100%);
}
.portrait--card .portrait__figure { width: 74%; bottom: -8%; }

/* small varied tints for repeated cards */
.portrait[data-tint="1"] { background: radial-gradient(120% 90% at 20% 0%, rgba(255,60,90,0.5), transparent 55%), radial-gradient(100% 80% at 50% 100%, rgba(0,0,0,0.92), transparent 60%), linear-gradient(160deg,#69051c 0%, #33020f 50%, #0a0a0d 100%); }
.portrait[data-tint="2"] { background: radial-gradient(120% 90% at 85% 10%, rgba(255,25,70,0.5), transparent 55%), radial-gradient(100% 80% at 50% 100%, rgba(0,0,0,0.92), transparent 60%), linear-gradient(160deg,#5c0417 0%, #2c0410 50%, #0a0a0d 100%); }
.portrait[data-tint="3"] { background: radial-gradient(120% 90% at 50% 0%, rgba(255,60,60,0.45), transparent 55%), radial-gradient(100% 80% at 50% 100%, rgba(0,0,0,0.92), transparent 60%), linear-gradient(165deg,#4c0512 0%, #26030d 50%, #0a0a0d 100%); }

/* Abstract light-streak panels for services / work */
.streak {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0308 0%, #0a0a0d 70%);
}
.streak::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: conic-gradient(from var(--angle, 200deg) at 30% 50%, transparent 0deg, rgba(255,10,61,0.85) 40deg, transparent 90deg, transparent 300deg, rgba(255,80,90,0.5) 340deg, transparent 360deg);
  filter: blur(18px);
  opacity: 0.9;
}
.streak::after {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: 0.35;
  mix-blend-mode: overlay;
}
.streak[data-angle="1"]::before { --angle: 160deg; }
.streak[data-angle="2"]::before { --angle: 240deg; }
.streak[data-angle="3"]::before { --angle: 20deg; }

/* ---------- Marquee-ish tag strip is reused as .hero-tags above ---------- */

/* ---------- About / stats ---------- */
.about-inner { max-width: 920px; margin-inline: auto; text-align: center; }
.about-statement { margin-top: 22px; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: clamp(48px, 7vw, 84px);
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  color: var(--red);
}
.stat-label {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Services ---------- */
.services-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.carousel-controls { display: flex; gap: 10px; flex-shrink: 0; }
.carousel-controls .icon-btn svg { width: 15px; height: 15px; }

.services-track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.services-track::-webkit-scrollbar { display: none; }

.service-card {
  position: relative;
  flex: 0 0 auto;
  width: min(360px, 78vw);
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  isolation: isolate;
}
.service-card__label {
  position: absolute;
  left: 18px; bottom: 18px;
  z-index: 2;
  padding: 0.7em 1.3em;
  border-radius: 100px;
  background: rgba(10,10,13,0.55);
  backdrop-filter: blur(6px);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
}

/* ---------- Concept split ---------- */
.split {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.split-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
}
.split-body h2 { margin-bottom: 20px; }
.split-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}
.split-brand .mark { width: 18px; height: 18px; }
.split-brand span small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Work grid ---------- */
.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.work-item { display: flex; flex-direction: column; gap: 16px; }
.work-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
}
.work-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.work-caption strong { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; text-transform: uppercase; }
.work-caption span { font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Statement (red) ---------- */
.statement-section { overflow: hidden; padding-bottom: 0; }
.statement-media {
  position: relative;
  aspect-ratio: 16/8;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(28px, 5vw, 56px);
}
.statement-section .statement { max-width: 18ch; }
.statement-section .wordmark {
  margin-top: clamp(20px, 5vw, 48px);
  color: rgba(10,10,13,0.16);
}

/* ---------- Team teaser / core team shared card ---------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.person-card { display: flex; flex-direction: column; gap: 14px; }
.person-visual {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
}
.person-social {
  position: absolute;
  right: 10px; bottom: 10px;
  display: flex; gap: 6px;
  z-index: 2;
}
.person-social a {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(10,10,13,0.5);
  backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}
.person-social svg { width: 11px; height: 11px; color: var(--white); }
.person-name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 0.95rem; }
.person-role { font-size: 0.76rem; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; margin-top: 2px; }

.stat-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 8px 4px;
}
.stat-cell b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
}
.stat-cell span {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Testimonial ---------- */
.testimonial-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(28px,4vw,48px); }
.testimonial-wrap { overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.6s var(--ease); }
.testimonial-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  line-height: 1.28;
}
.testimonial-who { margin-top: 22px; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.testimonial-who strong { color: var(--black); font-weight: 700; }
.testimonial-visual { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; }

/* ---------- Leadership quote (team page) ---------- */
.leader {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.leader-visual { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; }
.leader-name { color: var(--red); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.leader-quote { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.3rem, 2.9vw, 2.3rem); line-height: 1.26; }
.leader-role { margin-top: 20px; font-size: 0.85rem; color: rgba(255,255,255,0.55); max-width: 48ch; }

/* ---------- Philosophy / values cards ---------- */
.philosophy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: clamp(32px,5vw,56px); }
.philosophy-card { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; padding: 18px; }
.philosophy-card span { position: relative; z-index: 2; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 0.92rem; line-height: 1.25; color: var(--white); }

.values-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px,5vw,64px); align-items: center; }
.values-visual { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; }
.value-row { padding-block: 20px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.value-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.value-row h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.value-row p { color: rgba(255,255,255,0.5); font-size: 0.85rem; max-width: 34ch; }

/* ---------- CTA ---------- */
.cta-section { overflow: hidden; }
.cta-inner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 480px;
}
.cta-visual { position: relative; }
.cta-body {
  position: relative;
  background: linear-gradient(150deg, var(--red) 0%, #b8072f 100%);
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  color: var(--black);
}
.cta-body h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); max-width: 14ch; }
.cta-body p { max-width: 42ch; color: rgba(10,10,13,0.68); font-weight: 500; }
.cta-body .social-row { margin-top: 8px; color: var(--black); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); overflow: hidden; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 0.9fr);
  gap: var(--gap);
  padding-block: clamp(48px, 7vw, 84px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { font-size: 1.3rem; margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,0.5); max-width: 26ch; font-size: 0.88rem; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col address { font-size: 0.9rem; font-style: normal; color: rgba(255,255,255,0.78); }
.footer-col a:hover { color: var(--red); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom .social-row { color: rgba(255,255,255,0.7); }

.footer-wordmark { padding-bottom: clamp(10px, 3vw, 28px); }
.footer-wordmark .wordmark { color: var(--white); }

/* ---------- Header icon extras (account / cart) ---------- */
.icon-btn { position: relative; }
.badge-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--black);
}
.site-header:not(.is-scrolled):not(.is-dark-page) .badge-count { box-shadow: 0 0 0 2px var(--red-deep); }
.badge-count[hidden] { display: none; }

/* ---------- Billing toggle ---------- */
.billing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--grey);
  border-radius: 100px;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.billing-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7em 1.3em;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.billing-option.active { background: var(--black); color: var(--white); }
.billing-save {
  background: var(--red);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.billing-option.active .billing-save { background: var(--white); color: var(--red); }

/* ---------- Pricing ---------- */
.price-was { font-size: 0.55em; font-weight: 600; opacity: 0.5; text-decoration: line-through; margin-right: 6px; }
.price-note { font-size: 0.78rem; opacity: 0.7; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: stretch;
}
.pricing-grid.setup-grid { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin-inline: auto; }
.pricing-card {
  position: relative;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pricing-card--featured { background: var(--red); color: var(--black); }
.pricing-badge {
  position: absolute;
  top: 22px; right: 22px;
  background: var(--black);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
}
.pricing-top { display: flex; flex-direction: column; gap: 6px; }
.pricing-name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.1rem; }
.pricing-price { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3vw, 2.5rem); }
.pricing-price .price-unit { font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; text-transform: lowercase; opacity: 0.6; margin-left: 4px; }
.pricing-desc { font-size: 0.9rem; line-height: 1.55; opacity: 0.78; }
.pricing-features { display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.pricing-features li { font-size: 0.85rem; font-weight: 500; padding-left: 22px; position: relative; }
.pricing-features li::before { content: '✓'; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--red); }
.pricing-card--featured .pricing-features li::before { color: var(--black); }
.pricing-card .btn { margin-top: auto; }
.pricing-card .btn.is-added { background: var(--red); color: var(--white); }
.pricing-card--featured .btn.is-added { background: var(--black); color: var(--white); }
.pricing-card--current { outline: 2px solid var(--red); outline-offset: 3px; }
.pricing-current-badge {
  align-self: flex-start;
  background: #128b48;
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
}
.pricing-card .btn:disabled { opacity: 0.6; cursor: default; }

/* ---------- Work item cart button ---------- */
.work-item .btn { align-self: flex-start; margin-top: 4px; }

/* ---------- Form fields (auth) ---------- */
.field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.field-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-soft); }
.field-input {
  width: 100%;
  padding: 0.85em 1em;
  border-radius: var(--radius);
  border: 1.5px solid var(--grey-2);
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.25s ease;
}
.field-input:focus { outline: none; border-color: var(--red); }
.field-note { font-size: 0.78rem; color: var(--ink-soft); }
.field-error { font-size: 0.78rem; color: var(--red); min-height: 1.1em; }

/* ---------- Drawer (cart) ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 260;
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer-scrim {
  position: absolute; inset: 0;
  background: rgba(10, 10, 13, 0.6);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: var(--white);
  color: var(--black);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  box-shadow: -30px 0 60px rgba(0,0,0,0.3);
}
.drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer.is-confirmed .drawer-foot { display: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  border-bottom: 1px solid var(--grey-2);
}
.drawer-head h3 { font-size: 1.05rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px var(--pad); }
.drawer-foot { padding: 20px var(--pad) 26px; border-top: 1px solid var(--grey-2); display: flex; flex-direction: column; gap: 14px; }
.cart-total-row { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; }
.drawer-note { font-size: 0.76rem; color: var(--ink-soft); text-align: center; }

.cart-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--grey-2); }
.cart-item-name { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; }
.cart-item-period { display: block; margin-top: 2px; font-size: 0.76rem; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.cart-item-price { font-weight: 700; white-space: nowrap; }
.cart-item-remove { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1.5px var(--grey-2); flex-shrink: 0; transition: background-color 0.2s ease, color 0.2s ease; }
.cart-item-remove:hover { background: var(--red); color: var(--white); box-shadow: inset 0 0 0 1.5px var(--red); }
.cart-item-remove svg { width: 12px; height: 12px; }
.cart-empty { padding: 40px 0; text-align: center; color: var(--ink-soft); font-size: 0.9rem; }

.order-confirm { padding: 20px 0; text-align: center; }
.order-confirm svg { width: 44px; height: 44px; color: var(--red); margin: 0 auto 16px; }
.order-confirm h4 { font-size: 1.1rem; margin-bottom: 8px; }
.order-confirm p { font-size: 0.88rem; }

/* ---------- Modal (auth) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 270;
  visibility: hidden; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  padding: var(--pad);
}
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal-scrim { position: absolute; inset: 0; background: rgba(10,10,13,0.6); opacity: 0; transition: opacity 0.4s ease; }
.modal.is-open .modal-scrim { opacity: 1; }
.modal-panel {
  position: relative;
  width: min(420px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px);
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.modal.is-open .modal-panel { transform: translateY(0) scale(1); opacity: 1; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; }
.modal-close svg { width: 14px; height: 14px; }

.auth-title { font-size: 1.3rem; margin-bottom: 6px; padding-right: 30px; }
.auth-sub { font-size: 0.88rem; margin-bottom: 22px; }
.auth-tabs { display: flex; gap: 6px; padding: 4px; background: var(--grey); border-radius: 100px; margin-bottom: 24px; }
.auth-tab { flex: 1; padding: 0.65em 1em; border-radius: 100px; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink-soft); transition: background-color 0.3s ease, color 0.3s ease; }
.auth-tab.active { background: var(--black); color: var(--white); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form .btn { width: 100%; margin-top: 4px; }

.account-summary { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-top: 8px; }
.account-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
  margin-bottom: 10px;
}
.account-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; }
.account-email { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 20px; }
.account-summary .btn { width: 100%; }

/* ---------- Inner page head (compact hero) ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  background: linear-gradient(178deg, #8f0c20 0%, #7c0a1c 55%, #5e0715 100%);
  color: var(--white);
  padding-top: clamp(128px, 17vh, 190px);
  padding-bottom: clamp(48px, 8vh, 96px);
}
.page-head-bg {
  position: absolute;
  inset: 0;
}
.page-head-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 20% 0%, rgba(255, 90, 110, 0.4), transparent 70%);
}
.page-head-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.28;
  mix-blend-mode: overlay;
}
.page-head-inner { position: relative; z-index: 2; }
.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 4.2vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 16px 0 22px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.65em 1.2em;
  border-radius: 100px;
  background: rgba(10, 10, 13, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffb02e;
  box-shadow: 0 0 0 4px rgba(255, 176, 46, 0.22);
  flex-shrink: 0;
}

/* ---------- Empty / logged-out state ---------- */
.empty-state { max-width: 560px; margin-inline: auto; text-align: center; }
.empty-state > svg { width: 46px; height: 46px; color: var(--red); margin: 0 auto 22px; }
.empty-state h2 { margin-bottom: 14px; }
.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Account panel ---------- */
.account-split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.account-split > * { min-width: 0; }
.account-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.account-panel {
  background: var(--grey);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
}
.account-panel-title {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.account-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 26px; }
.account-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--grey-2);
}
.account-list > div:last-child { border-bottom: 0; }
.account-list dt {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.account-list dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}
.tag-off {
  display: inline-block;
  padding: 0.3em 0.75em;
  border-radius: 100px;
  background: var(--red-ghost);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.account-panel .btn { width: 100%; }

/* ---------- Locked modules ---------- */
.locked-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.locked-card {
  position: relative;
  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--black-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.locked-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(255, 255, 255, 0.022) 9px 18px);
  pointer-events: none;
}
.locked-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red-ghost);
  color: var(--red);
  margin-bottom: 18px;
}
.locked-icon svg { width: 17px; height: 17px; }
.locked-card h3 {
  font-size: 0.98rem;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.55);
}
.locked-card p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.38);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  list-style: none;
  margin: 0;
  padding: 0;
}
.step { padding-top: 22px; border-top: 2px solid var(--black); }
.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--red);
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 10px; }
.step p { font-size: 0.9rem; line-height: 1.6; color: var(--ink); }

/* =========================================================
   Espace abonné (dashboard)
   ========================================================= */
.status-dot--on { background: #2fd07a; box-shadow: 0 0 0 4px rgba(47, 208, 122, 0.22); }

.tag-on {
  display: inline-block;
  padding: 0.3em 0.75em;
  border-radius: 100px;
  background: rgba(47, 208, 122, 0.14);
  color: #128b48;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Section nav */
.dash-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px;
  background: var(--grey);
  border-radius: 100px;
  scrollbar-width: none;
  margin-bottom: clamp(32px, 5vw, 52px);
}
.dash-nav::-webkit-scrollbar { display: none; }
.dash-nav a {
  flex-shrink: 0;
  padding: 0.7em 1.3em;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.dash-nav a:hover { background: var(--white); color: var(--black); }

/* Section heading inside dashboard */
.dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(22px, 3vw, 34px);
}
.dash-head h2 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
.dash-note { font-size: 0.78rem; color: var(--ink-soft); }

/* KPI cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.kpi-card {
  background: var(--grey);
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 28px);
}
.kpi-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.kpi-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1;
}
.kpi-trend { margin-top: 10px; font-size: 0.78rem; font-weight: 600; }
.kpi-trend--up { color: #128b48; }
.kpi-trend--flat { color: var(--ink-soft); }
.kpi-card--locked { opacity: 0.55; }
.kpi-card--locked .kpi-value { font-size: 1.4rem; }
.kpi-card--locked .kpi-trend { color: var(--ink-soft); }

/* Panels */
.panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--grey-2);
  padding: clamp(22px, 2.6vw, 32px);
}
.panel--grey { background: var(--grey); box-shadow: none; }
.panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.panel-sub { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 24px; }

.panel-duo {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: var(--gap);
}
.panel-duo > * { min-width: 0; }

/* Vertical bar chart */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: clamp(6px, 1.4vw, 16px);
  height: 190px;
}
.chart-bar {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}
.chart-bar i {
  display: block;
  height: calc(var(--v, 50) * 1%);
  border-radius: 3px;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dim) 100%);
  transition: height 0.6s var(--ease);
}
.chart-bar b {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}
.chart-bar--muted i { background: var(--grey-2); }

/* Horizontal usage bars */
.usage-list { display: flex; flex-direction: column; gap: 18px; }
.usage-row { display: flex; flex-direction: column; gap: 8px; }
.usage-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}
.usage-top b { font-weight: 600; }
.usage-top span { color: var(--ink-soft); font-weight: 600; font-size: 0.78rem; white-space: nowrap; }
.bar-track { height: 6px; border-radius: 100px; background: var(--grey-2); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 100px; background: var(--red); }

/* Data table */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.data-table th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--grey-2);
  white-space: nowrap;
}
.data-table td {
  padding-block: 16px;
  border-bottom: 1px solid var(--grey-2);
  font-size: 0.88rem;
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-person { display: flex; align-items: center; gap: 12px; }
.avatar-sm {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 0.78rem;
  flex-shrink: 0;
}
.cell-person b { font-weight: 600; }
.cell-person small { display: block; color: var(--ink-soft); font-size: 0.75rem; font-weight: 500; }

.pill-state {
  display: inline-block;
  padding: 0.28em 0.7em;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill-ok { background: rgba(47, 208, 122, 0.14); color: #128b48; }
.pill-warn { background: rgba(255, 176, 46, 0.16); color: #9a6200; }
.pill-off { background: var(--grey-2); color: var(--ink); }

/* Billing */
.billing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-bottom: var(--gap);
}
.plan-live {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
}
.plan-live .panel-title { color: rgba(255, 255, 255, 0.55); }
.plan-live-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1;
  margin-bottom: 6px;
}
.plan-live-price span { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; opacity: 0.55; }
.plan-live-meta { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 24px; }
.plan-live-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.plan-live .btn-outline:hover { background: var(--white); color: var(--black); box-shadow: inset 0 0 0 1.5px var(--white); }

.pay-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--grey);
  margin-bottom: 18px;
}
.pay-card-icon {
  width: 46px; height: 32px;
  border-radius: 5px;
  background: linear-gradient(135deg, #1a1f71, #2b3a9c);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 0.62rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.pay-method-info b { display: block; font-size: 0.9rem; font-weight: 600; }
.pay-method-info small { color: var(--ink-soft); font-size: 0.78rem; }

.demo-note {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--red-ghost);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink);
}
.demo-note svg { width: 16px; height: 16px; color: var(--red); flex-shrink: 0; margin-top: 2px; }

/* Settings */
.settings-list { display: flex; flex-direction: column; }
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
  border-bottom: 1px solid var(--grey-2);
  flex-wrap: wrap;
}
.settings-row:last-child { border-bottom: 0; }
.settings-row h4 { font-family: var(--font-body); font-size: 0.92rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
.settings-row p { font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; }
.settings-value { font-size: 0.9rem; font-weight: 600; text-align: right; }

/* Toggle switch (visual state only) */
.switch {
  position: relative;
  width: 46px; height: 26px;
  border-radius: 100px;
  background: var(--grey-2);
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform 0.3s var(--ease);
}
.switch[aria-pressed="true"] { background: var(--red); }
.switch[aria-pressed="true"]::after { transform: translateX(20px); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 280;
  background: var(--black);
  color: var(--white);
  padding: 0.9em 1.5em;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  white-space: nowrap;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-group .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-group .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.24s; }

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

/* =========================================================
   Responsive
   ========================================================= */
/* Grid/flex children shrink below their content's min-content size instead of
   overflowing — required wherever a big display heading sits in a grid cell. */
.hero-content > *,
.split > *,
.leader > *,
.values-wrap > *,
.cta-inner > *,
.testimonial-slide > * {
  min-width: 0;
}

@media (max-width: 1080px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-right { align-items: flex-start; margin-left: 0; }
  .split { grid-template-columns: 1fr; }
  .split-visual { max-width: 320px; }
  .leader { grid-template-columns: 1fr; }
  .leader-visual { max-width: 320px; }
  .values-wrap { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-visual { aspect-ratio: 16/9; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 12px; }
}

/* The account/cart icons crowd the header before the nav itself needs to go,
   so the CTA button steps out first, then the links. */
@media (max-width: 1080px) {
  .header-actions .btn { display: none; }
  .nav-desktop { gap: clamp(14px, 2vw, 24px); }
}

@media (max-width: 940px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 860px) {
  .nav-desktop, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .work-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .philosophy-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-slide { grid-template-columns: 1fr; }
  .testimonial-visual { order: -1; max-width: 260px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .pricing-grid, .pricing-grid.setup-grid { grid-template-columns: 1fr; }
  .drawer-panel { width: 100%; }
  .account-split { grid-template-columns: 1fr; }
  .locked-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding-block: 22px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-duo, .billing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { padding-top: 104px; }
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat-num { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .people-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .philosophy-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .locked-grid { grid-template-columns: 1fr; }
  .account-list > div { flex-direction: column; align-items: flex-start; gap: 4px; }
  .account-list dd { text-align: left; }
  .kpi-grid { grid-template-columns: 1fr; }
  .settings-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .settings-value { text-align: left; }
}
