:root {
  --bg: #f7f4ef;
  --bg-deep: #ebe4d8;
  --ink: #1a1814;
  --muted: #5c574e;
  --line: #d4ccc0;
  --accent: #0f4c3a;
  --accent-soft: #dceee7;
  --accent-deep: #0a3a2c;
  --card: #fffcf7;
  --max: 720px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --hero-ink: #f7f4ef;
  --hero-muted: rgba(247, 244, 239, 0.8);
  --ig-grad: linear-gradient(135deg, #9b2def 0%, #e1306c 52%, #f77737 82%, #fcaf45 100%);
  --tt-grad: linear-gradient(135deg, #25f4ee 0%, #162238 48%, #fe2c55 100%);
  --yt-grad: linear-gradient(135deg, #ff1a1a 0%, #cc0000 65%, #8f0000 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #e8f0ea 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #f0e6d8 0%, transparent 50%),
    var(--bg);
}

a {
  color: var(--accent);
}

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

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  padding: 2rem 0 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 5;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.logo-avatar {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(26, 24, 20, 0.12);
  box-shadow: 0 2px 8px rgba(26, 24, 20, 0.08);
}

.nav-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 1.05rem;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(0.34rem) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-0.34rem) rotate(-45deg);
}

.nav {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
}

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

@media (max-width: 720px) {
  .site-header {
    flex-wrap: nowrap;
    padding: 1.55rem 0 0.75rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header .nav {
    display: none;
    position: absolute;
    top: calc(100% - 0.15rem);
    right: 0;
    left: auto;
    min-width: 11.5rem;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.55rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    box-shadow: 0 14px 36px rgba(26, 24, 20, 0.12);
    z-index: 20;
  }

  .site-header.is-nav-open .nav {
    display: flex;
  }

  .site-header .nav a {
    padding: 0.55rem 0.7rem;
    border-radius: 0.45rem;
  }

  .site-header .nav a:hover,
  .site-header .nav a.active {
    background: var(--accent-soft);
  }

  .site-header .nav a.active {
    border-bottom: none;
    padding-bottom: 0.55rem;
  }
}

.hero {
  padding: 2.5rem 0 2rem;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.5rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}

.pill strong {
  color: var(--ink);
  font-weight: 600;
  margin-right: 0.25rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 0.45rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent);
  color: #f7f4ef;
}

.btn-ghost--on-dark,
button.btn-ghost--on-dark {
  border-color: rgba(243, 247, 250, 0.35);
  color: var(--hero-ink);
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.btn-ghost--on-dark:hover,
button.btn-ghost--on-dark:hover {
  background: rgba(243, 247, 250, 0.1);
  color: var(--hero-ink);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--card);
}

section {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}

.section-intro {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (max-width: 560px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1rem 0.9rem;
}

.stat .value {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.stat .label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.kit-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 2rem;
}

.kit-metric {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.15rem 1rem 1.05rem;
  text-align: left;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.55rem;
  min-height: 7.25rem;
}

.kit-metric--lead {
  background:
    linear-gradient(160deg, rgba(15, 76, 58, 0.08), transparent 55%),
    var(--card);
}

.kit-metric--action {
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.kit-metric--action:hover,
.kit-metric--action:focus-visible {
  border-color: rgba(15, 76, 58, 0.45);
  box-shadow: 0 8px 22px rgba(12, 40, 28, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.kit-metric__title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.kit-metric__lead-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.45rem;
  margin-top: 0.15rem;
}

.kit-metric__lead-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--accent);
  white-space: nowrap;
}

.kit-metric__lead-unit {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.kit-metric__stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.98rem;
  line-height: 1.25;
  color: var(--muted);
}

.kit-metric__stack strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-right: 0.2rem;
}

.kit-metric__stack--sub {
  gap: 0.15rem;
  margin-top: 0.15rem;
  font-size: 0.84rem;
}

.kit-metric__stack--sub strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.kit-metric__post-name {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.kit-metric__value {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--accent);
}

.kit-metric__row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.kit-metric__thumb {
  width: 3.15rem;
  height: 4.05rem;
  object-fit: cover;
  border-radius: 0.45rem;
  flex: 0 0 auto;
  border: 1px solid rgba(15, 76, 58, 0.18);
  background: #1a3329;
}

.kit-metric__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.kit-metric__ico {
  display: inline-flex;
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  color: var(--accent);
}

.kit-metric__ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

.kit-metric__ico--trail {
  width: 0.85em;
  height: 0.85em;
  opacity: 0.85;
}

.kit-metric__label {
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--muted);
}

@media (max-width: 820px) {
  .kit-metrics {
    grid-template-columns: 1fr;
  }
}

.proof-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.proof-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.85rem 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  align-items: baseline;
}

.proof-list .title {
  font-weight: 600;
}

.proof-list .views {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.proof-list .note {
  grid-column: 1 / -1;
  font-size: 0.88rem;
  color: var(--muted);
}

.card-stack {
  display: grid;
  gap: 0.85rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 1.1rem 1.15rem;
}

.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.55rem;
}

.card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.rates {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.rates th,
.rates td {
  text-align: left;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid var(--line);
}

.rates th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

.fineprint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.contact-box {
  background: linear-gradient(145deg, var(--accent-deep) 0%, var(--accent) 70%, #128a82 100%);
  color: #f2f7f4;
  border-radius: 0.75rem;
  padding: 1.5rem 1.35rem;
}

.contact-box h2 {
  color: inherit;
  margin-bottom: 0.4rem;
}

.contact-box p {
  margin: 0 0 1rem;
  opacity: 0.9;
}

.contact-box a.btn-primary {
  background: #f3f7fa;
  color: var(--accent-deep);
}

.contact-box .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
  font-size: 0.92rem;
}

.contact-box .links a {
  color: #dceee7;
}

.site-footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   Media Kit redesign (index)
   ========================================================================== */

.page-kit .site-header--kit {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding-top: 2rem;
}

.page-kit .site-header--kit .logo,
.page-kit .site-header--kit .nav a {
  color: var(--hero-muted);
}

.page-kit .site-header--kit .logo {
  color: var(--hero-ink);
}

.page-kit .site-header--kit .logo-avatar {
  border-color: rgba(247, 244, 239, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.page-kit .site-header--kit .nav-toggle {
  border-color: rgba(247, 244, 239, 0.28);
  background: rgba(26, 24, 20, 0.28);
}

.page-kit .site-header--kit .nav-toggle-bar {
  background: var(--hero-ink);
}

.page-kit .site-header--kit .nav a:hover,
.page-kit .site-header--kit .nav a.active {
  color: var(--hero-ink);
}

.page-kit .site-header--kit .nav a.active {
  border-bottom-color: rgba(243, 247, 250, 0.65);
}

.kit-hero {
  position: relative;
  min-height: min(100vh, 820px);
  display: flex;
  align-items: flex-end;
  padding: 6.5rem 0 3.25rem;
  color: var(--hero-ink);
  overflow: hidden;
  isolation: isolate;
}

.kit-hero__cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.kit-hero__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.04);
  animation: kit-cover-drift 22s ease-in-out infinite alternate;
}

.kit-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(6, 18, 14, 0.55) 0%,
      rgba(8, 28, 22, 0.42) 28%,
      rgba(10, 36, 28, 0.72) 62%,
      rgba(8, 24, 18, 0.92) 100%
    ),
    linear-gradient(
      105deg,
      rgba(8, 30, 22, 0.55) 0%,
      rgba(8, 30, 22, 0.15) 48%,
      rgba(12, 40, 32, 0.35) 100%
    );
}

.kit-hero__reels {
  position: relative;
  width: calc(100% + 2rem);
  margin: 0 -1rem 1.1rem;
  height: clamp(8.75rem, 20vw, 12.5rem);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  transition: opacity 0.6s ease;
}

.kit-hero__reels.is-ready {
  opacity: 1;
}

.kit-hero__reels-track {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  width: max-content;
  height: 100%;
  padding-inline: 0.5rem;
  will-change: transform;
  animation: none;
}

.kit-hero__reels.is-ready .kit-hero__reels-track {
  animation: kit-reels-scroll 28s linear infinite;
}

.kit-hero__reel {
  position: relative;
  flex: 0 0 auto;
  width: clamp(4.1rem, 8.5vw, 5.6rem);
  aspect-ratio: 9 / 16;
  border-radius: 0.7rem;
  overflow: hidden;
  border: 1px solid rgba(247, 244, 239, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  opacity: 0.88;
  transform: rotate(-3deg) translateY(0.2rem);
  filter: saturate(1.02) brightness(0.98);
}

.kit-hero__reel:nth-child(even) {
  transform: rotate(2.75deg) translateY(-0.35rem);
  opacity: 0.92;
}

.kit-hero__reel:nth-child(3n) {
  transform: rotate(-1.25deg) translateY(0.1rem);
  opacity: 0.86;
}

.kit-hero__reel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kit-hero__reel-meta {
  position: absolute;
  left: 0.3rem;
  right: 0.3rem;
  bottom: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.35rem;
  align-items: center;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #f7f4ef;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  line-height: 1;
}

.kit-hero__reel-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  max-width: 100%;
}

.kit-hero__reel-ico {
  width: 0.7rem;
  height: 0.7rem;
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
}

@keyframes kit-cover-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, 0.8%, 0);
  }
}

@keyframes kit-reels-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.kit-hero__inner {
  position: relative;
  z-index: 3;
  padding-bottom: 0.5rem;
  animation: kit-hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes kit-hero-rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kit-hero__identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.15rem;
  position: relative;
}

.kit-hero__avatar {
  width: clamp(4.5rem, 12vw, 6.5rem);
  height: clamp(4.5rem, 12vw, 6.5rem);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid rgba(247, 244, 239, 0.92);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 12px 28px rgba(0, 0, 0, 0.35);
  flex: 0 0 auto;
  background: #1a3329;
}

.kit-hero__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.35rem, 8.5vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
  min-width: 0;
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.4);
}

.kit-hero__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.6vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 0 1rem;
  color: var(--hero-ink);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.kit-hero__lede {
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--hero-muted);
  max-width: 36rem;
  margin: 0 0 1.6rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.kit-hero__cta {
  margin-bottom: 0.35rem;
}

.kit-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.kit-section--contact {
  border-top: none;
  padding-top: 1.5rem;
}

.kit-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.kit-platforms {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-bottom: 1rem;
}

.kit-platform {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1fr 1.3fr;
  gap: 0.5rem 0.75rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.kit-platform:hover {
  background: rgba(10, 107, 102, 0.05);
  padding-left: 0.35rem;
}

.kit-platform__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.kit-platform__handle {
  color: var(--muted);
  font-size: 0.9rem;
}

.kit-platform__stat {
  font-size: 0.88rem;
  color: var(--muted);
}

.kit-platform__stat strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 640px) {
  .kit-platform {
    grid-template-columns: 1fr 1fr;
  }

  .kit-platform__handle {
    text-align: right;
  }
}

.kit-standout-heading {
  margin: 1.75rem 0 0.4rem;
  font-size: 1.25rem;
}

.kit-standout-intro {
  margin-bottom: 0.85rem;
}

.kit-expand-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.kit-expand-list--pitch {
  margin-top: 0;
}

.kit-expand {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.kit-expand.is-open {
  box-shadow: 0 10px 28px rgba(26, 24, 20, 0.08);
}

.kit-expand__hit {
  width: 100%;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.85rem;
  align-items: center;
  min-height: 4.25rem;
  padding: 0.7rem 0.85rem;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.kit-expand__hit:hover {
  background: rgba(15, 76, 58, 0.04);
}

.kit-expand.is-open .kit-expand__hit {
  border-bottom: 1px solid var(--line);
  background: rgba(15, 76, 58, 0.03);
}

.kit-expand__peek {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 0.4rem;
  overflow: hidden;
  background: var(--bg-deep);
  flex-shrink: 0;
}

.kit-expand__peek img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.kit-expand__peek--plain {
  background: linear-gradient(160deg, var(--accent-soft), var(--bg-deep));
}

.kit-expand__body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.75rem;
  align-content: center;
  min-width: 0;
}

.kit-expand__status {
  grid-column: 1 / -1;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.kit-expand__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}

.kit-expand__views {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  align-self: start;
}

.kit-expand__note {
  grid-column: 1 / -1;
  font-size: 0.86rem;
  color: var(--muted);
}

.kit-expand__panel {
  padding: 1rem 0.95rem 1.1rem;
  animation: kit-panel-in 0.28s ease;
}

.kit-expand__panel[hidden] {
  display: none;
}

.kit-expand__panel > p {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.kit-expand__meta {
  font-size: 0.9rem !important;
  color: var(--ink) !important;
}

.kit-expand__focus {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr;
  gap: 1rem 1.15rem;
  align-items: start;
}

.kit-phone {
  position: relative;
  display: block;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #111;
  aspect-ratio: 9 / 16;
  max-height: 320px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(26, 24, 20, 0.16);
}

.kit-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.kit-phone__stats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  padding: 1.6rem 0.65rem 0.65rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
}

.kit-expand__copy h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.kit-expand__platform {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.kit-expand__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.kit-expand__metrics strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
}

.kit-expand__metrics--series {
  gap: 0.55rem;
}

.kit-expand__metric--hl {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.45rem;
  background: rgba(15, 76, 58, 0.1);
  border: 1px solid rgba(15, 76, 58, 0.22);
  color: var(--ink);
  font-size: 0.92rem;
}

.kit-expand__metric--hl strong {
  color: var(--accent);
  font-size: 1.05rem;
}

a.kit-expand__metric--link {
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

a.kit-expand__metric--link:hover,
a.kit-expand__metric--link:focus-visible {
  border-color: rgba(15, 76, 58, 0.45);
  box-shadow: 0 4px 14px rgba(12, 40, 28, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.kit-expand__series-note {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.kit-project__hl {
  color: var(--ink);
}

.kit-project__hl strong {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
}

.kit-expand__link {
  font-weight: 600;
  text-decoration: none;
}

.kit-project {
  margin-top: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}

.kit-project__from {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.kit-project__from strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
}

.kit-project__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.kit-project__stats strong {
  color: var(--accent);
  font-family: var(--font-display);
}

.kit-project__plats {
  width: 100%;
  font-size: 0.82rem;
}

.kit-project__note {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.kit-gallery {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.kit-gallery__item {
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  height: 96px;
  border-radius: 0.45rem;
  overflow: hidden;
  background: var(--bg-deep);
  scroll-snap-align: start;
  text-decoration: none;
}

.kit-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kit-gallery__views {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 0.25rem 0.25rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  text-align: center;
}

@keyframes kit-panel-in {
  from {
    opacity: 0;
    transform: translateY(-0.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 620px) {
  .kit-expand__focus {
    grid-template-columns: 120px 1fr;
  }

  .kit-phone {
    max-height: 240px;
  }
}

@media (max-width: 420px) {
  .kit-expand__focus {
    grid-template-columns: 1fr;
  }

  .kit-phone {
    max-width: 180px;
  }
}

.kit-future {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.kit-future li {
  position: relative;
  padding: 1rem 0 1rem 1.35rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.kit-future li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.kit-deliverables {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--muted);
}

.kit-deliverables li {
  margin: 0.35rem 0;
}

@media (prefers-reduced-motion: reduce) {
  .kit-hero__cover img,
  .kit-hero__reels-track,
  .kit-hero__inner {
    animation: none !important;
  }

  .kit-hero__reels {
    display: none;
  }
}

@media (max-width: 640px) {
  .kit-hero {
    min-height: min(100svh, 720px);
    padding-top: 5.5rem;
  }

  .kit-hero__reels {
    width: calc(100% + 1.5rem);
    margin: 0 -0.75rem 0.85rem;
    height: 7.75rem;
  }

  .kit-hero__identity {
    align-items: flex-end;
    gap: 0.75rem;
  }
}

/* ==========================================================================
   Multi-page Navigation, Wide Layout, Projects Timeline & Gear Page
   ========================================================================== */

.wrap-wide {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
}

/* Ultra-wide easter egg: faded clickable reel marquees in the gutters (sitewide) */
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-ambient {
  display: none;
  pointer-events: none;
}

.site-ambient[hidden] {
  display: none !important;
}

/* Only show on truly wide screens (easter egg), with 50% larger reel cards */
@media (min-width: 2400px) {
  .site-ambient:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .ambient-rail {
    position: absolute;
    top: 5.25rem;
    bottom: 0;
    width: min(321px, calc((100vw - 1220px) / 2 - 1.25rem));
    display: flex;
    gap: 0.65rem;
    padding: 0.5rem 0;
    mask-image: linear-gradient(
      180deg,
      transparent 0%,
      #000 7%,
      #000 93%,
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      180deg,
      transparent 0%,
      #000 7%,
      #000 93%,
      transparent 100%
    );
  }

  .ambient-rail-left {
    left: 0.65rem;
    justify-content: flex-end;
  }

  .ambient-rail-right {
    right: 0.65rem;
    justify-content: flex-start;
  }

  .ambient-lane {
    flex: 1;
    min-width: 0;
    max-width: 153px;
    overflow: hidden;
    height: 100%;
  }

  .ambient-track {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    will-change: transform;
  }

  .ambient-lane.is-up .ambient-track {
    animation: ambient-marquee-up 72s linear infinite;
  }

  .ambient-lane.is-down .ambient-track {
    animation: ambient-marquee-down 84s linear infinite;
  }

  .ambient-rail-left .ambient-lane.is-up .ambient-track {
    animation-duration: 78s;
  }

  .ambient-rail-right .ambient-lane.is-down .ambient-track {
    animation-duration: 90s;
  }

  .ambient-lane:hover .ambient-track {
    animation-play-state: paused;
  }

  @keyframes ambient-marquee-up {
    from {
      transform: translateY(0);
    }
    to {
      transform: translateY(-50%);
    }
  }

  @keyframes ambient-marquee-down {
    from {
      transform: translateY(-50%);
    }
    to {
      transform: translateY(0);
    }
  }

  .ambient-card {
    display: block;
    width: 100%;
    text-decoration: none;
    pointer-events: auto;
    opacity: 0.26;
    filter: saturate(0.8);
    transition: opacity 0.22s ease, filter 0.22s ease, transform 0.22s ease;
    transform: scale(0.98);
  }

  .ambient-card:hover,
  .ambient-card:focus-visible {
    opacity: 0.95;
    filter: saturate(1.08);
    transform: scale(1);
    outline: none;
    z-index: 1;
  }

  .ambient-card-frame {
    position: relative;
    display: block;
    aspect-ratio: 9 / 16;
    border-radius: 0.85rem;
    overflow: hidden;
    padding: 3px;
    box-shadow: 0 8px 22px rgba(26, 24, 20, 0.12);
  }

  .ambient-card.plat-ig .ambient-card-frame {
    background: var(--ig-grad);
  }

  .ambient-card.plat-tiktok .ambient-card-frame {
    background: var(--tt-grad);
  }

  .ambient-card.plat-youtube .ambient-card-frame {
    background: var(--yt-grad);
  }

  .ambient-card-frame > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.65rem;
    display: block;
    background: #2a2620;
  }

  .ambient-card-plat {
    position: absolute;
    top: 0.45rem;
    left: 0.45rem;
    width: 1.15rem;
    height: 1.15rem;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
    display: inline-flex;
  }

  .ambient-card-plat svg,
  .ambient-card-plat img {
    width: 100%;
    height: 100%;
  }

  .ambient-card-views {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  }
}

@media (min-width: 2400px) and (prefers-reduced-motion: reduce) {
  .ambient-lane.is-up .ambient-track,
  .ambient-lane.is-down .ambient-track {
    animation: none;
    transform: translateY(-12%);
  }
}

@media print {
  .site-ambient {
    display: none !important;
  }
}

.nav a.active {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.15rem;
}

/* Platform Brand Frames (Instagram Gradient, TikTok Teal/Slate, YouTube Red) */
:root {
  --ig-grad: linear-gradient(135deg, #9b2def 0%, #e1306c 52%, #f77737 82%, #fcaf45 100%);
  --tt-grad: linear-gradient(135deg, #25f4ee 0%, #162238 48%, #fe2c55 100%);
  --yt-grad: linear-gradient(135deg, #ff1a1a 0%, #cc0000 65%, #8f0000 100%);
}

.project-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1.35rem 1.35rem 1.5rem;
  margin-bottom: 1.75rem;
}

.project-block-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.project-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.project-title-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.project-title-btn:hover {
  color: var(--accent);
}

.project-title-static {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.project-sub {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0.25rem 0 0;
  max-width: 54rem;
}

.project-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.project-stat {
  background: #f7f2e9;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.project-stat .ps-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.project-stat .ps-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.peak-totals-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem 0.7rem;
  margin: 0.55rem 0 0.15rem;
  width: 100%;
}

.peak-totals-row .stat-metric {
  flex-shrink: 0;
}

.stat-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.stat-metric-icon {
  width: 0.95rem;
  height: 0.95rem;
  display: inline-flex;
  color: var(--muted);
  flex-shrink: 0;
}

.stat-metric-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.stats-per-plat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0.15rem 0 0.1rem;
}

.peak-platform-peaks {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.mini-peak {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  padding: 0.32rem 0.45rem;
  font-size: 0.8rem;
  min-width: 0;
}

.mini-peak-metrics {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.45rem 0.55rem;
  min-width: 0;
}

.mini-peak-metrics .stat-metric {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.mini-peak-metrics .stat-metric-icon {
  width: 0.78rem;
  height: 0.78rem;
}

.mini-peak:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.mini-peak.is-static {
  cursor: default;
}

.mini-peak.is-static:hover {
  border-color: var(--line);
  color: var(--ink);
}

.peak-card-link {
  text-decoration: none;
  display: block;
}

.clip-step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
  text-align: center;
  width: 100%;
}

.feed-filters {
  display: inline-flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.feed-filter {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  cursor: pointer;
}

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

.feed-filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Platform logo badges + views chips (Projects) */
.plat-logo-badge {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.plat-logo-badge svg {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

.plat-logo-badge.sm {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.35rem;
}

.plat-logo-badge.sm svg {
  width: 0.78rem;
  height: 0.78rem;
}

.plat-logo-badge.ig {
  background: linear-gradient(135deg, #833ab4, #e1306c 55%, #f77737);
}

.plat-logo-badge.tiktok,
.plat-logo-badge.youtube,
.plat-logo-badge.youtube-shorts {
  /* Same outer size + placement as IG gradient badge */
  width: 1.55rem;
  height: 1.55rem;
  background: transparent;
  border: none;
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  padding: 0;
}

.plat-logo-badge .plat-logo-img {
  /* Fill the badge like IG's colored plate (not inset/shrunk) */
  position: static;
  inset: auto;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 0.4rem;
  background: transparent;
  transform: none;
}

.plat-logo-badge.tiktok {
  border-radius: 50%;
}

.plat-logo-badge.tiktok .plat-logo-img {
  border-radius: 50%;
  object-fit: cover; /* black circle fills same footprint as IG plate */
}

.plat-logo-badge.youtube-shorts .plat-logo-img,
.plat-logo-badge.youtube .plat-logo-img {
  object-fit: contain;
  padding: 0.05rem;
  box-sizing: border-box;
}

.plat-logo-badge.sm.tiktok,
.plat-logo-badge.sm.youtube,
.plat-logo-badge.sm.youtube-shorts {
  width: 1.25rem;
  height: 1.25rem;
}

.plat-logo-badge.sm .plat-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 0.35rem;
}

.plat-logo-badge.sm.tiktok,
.plat-logo-badge.sm.tiktok .plat-logo-img {
  border-radius: 50%;
}

.phone-top-bar.is-views-only {
  justify-content: flex-end;
}

/* Platform mark top-left, views top-right — same bar padding as IG */
.phone-top-bar.is-plat-tl {
  justify-content: space-between;
  align-items: center;
}

.phone-top-bar.is-plat-tl .views-chip {
  margin-left: auto;
}

.feed-header-right {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  flex-shrink: 0;
}

.feed-header-right .plat-logo-badge {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0.3rem;
}

.feed-header-right .plat-logo-badge svg {
  width: 0.72rem;
  height: 0.72rem;
}

.feed-header-right .plat-logo-badge.ig {
  box-shadow: none;
}

.plat-logo-badge.muted {
  opacity: 0.55;
  margin-bottom: 0.35rem;
}

.views-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
}

.views-chip.solid {
  background: #f3ede2;
  color: var(--ink);
  border: 1px solid var(--line);
}

.views-icon {
  width: 0.85rem;
  height: 0.85rem;
  display: inline-flex;
}

.views-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.phone-card-btn {
  border: none;
  padding: 4px;
  font: inherit;
  text-align: left;
  width: 100%;
}

.phone-screen.is-compact {
  height: 220px;
}

.phone-screen.is-long-screen {
  height: 170px;
}

.peak-panel {
  width: 268px;
}

/* Highlight: same 9:16 as matrix Reels/Shorts (base .phone-screen is fixed 316px —
   on this wider column that read as stubby / short). */
.project-block .peak-panel .phone-card,
.project-block .peak-panel a.phone-card {
  height: auto;
  width: 100%;
  box-sizing: border-box;
}

.project-block .peak-panel .phone-screen.is-tall-screen,
.project-block .peak-panel .phone-screen:not(.is-wide-screen) {
  aspect-ratio: 9 / 16;
  height: auto !important;
  min-height: 0;
  width: 100%;
}

.project-block .peak-panel .feed-post-screen {
  aspect-ratio: 9 / 16;
  height: auto !important;
  min-height: 0;
  width: 100%;
}

.peak-stats-toggle {
  width: 100%;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}

.peak-stats-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.peak-stats-toggle .chevron {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
  display: inline-flex;
}

.peak-stats-toggle .chevron svg {
  width: 100%;
  height: 100%;
}

.peak-stats-toggle.is-open .chevron {
  transform: rotate(180deg);
}

.peak-stats-drawer {
  display: block;
  margin-top: 0.35rem;
}

.peak-stats-drawer.is-open {
  display: block;
}

.title-chevron {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  transition: transform 0.2s ease;
  color: var(--muted);
}

.title-chevron svg {
  width: 100%;
  height: 100%;
}

.title-chevron.is-open {
  transform: rotate(180deg);
  color: var(--accent);
}

.mode-pill {
  background: #efe8db;
}

.hint-pill {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
}

.mini-peak-plat {
  display: inline-flex;
  align-items: center;
}

.timeline-split.is-matrix .matrix-scroll-right {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.matrix-plat-gutter {
  display: none;
}

.matrix-plat-name {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.matrix-header-row,
.matrix-plat-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: max-content;
}

/*
 * Peak-matching matrix chrome.
 * Base .matrix-* rules further down set height:100% / 248px rows which
 * squashes the gradient phone-card frame into a thin top line — override hard.
 */
.project-block .matrix-header-row,
.project-block .matrix-plat-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: max-content;
  height: auto;
}

/* Episode labels: text only (no bordered pill = no “random line” above cards) */
.project-block .matrix-col-hdr {
  width: 186px;
  box-sizing: border-box;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 0.15rem 0.35rem;
  text-align: center;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-block .matrix-header-row {
  height: auto;
  min-height: 1.5rem;
  margin-bottom: 0.15rem;
}

.project-block .matrix-cell {
  width: 186px;
  flex-shrink: 0;
  height: auto;
  align-self: flex-start;
}

/* Match Peak Post phone-card exactly — gradient bezel via 4px padding */
.project-block .matrix-cell .phone-card,
.project-block .matrix-cell a.phone-card {
  height: auto !important;
  width: 100%;
  display: block;
  box-sizing: border-box;
  text-decoration: none;
  padding: 4px;
  border-radius: 0.85rem;
  overflow: visible;
  isolation: isolate;
}

.project-block .matrix-cell .phone-screen,
.project-block .matrix-cell .feed-post-screen {
  width: 100%;
  flex: none;
  border-radius: 0.65rem;
  overflow: hidden;
}

.project-block .matrix-cell .phone-card.is-feed-post,
.project-block .matrix-cell a.phone-card.is-feed-post {
  padding: 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 18px rgba(225, 48, 108, 0.16);
  text-decoration: none;
  color: inherit;
}

/* Shorts / Reels: true 9:16 tall frame */
.project-block .matrix-cell .phone-screen.is-tall-screen,
.project-block .matrix-cell .phone-screen:not(.is-wide-screen) {
  aspect-ratio: 9 / 16;
  height: auto !important;
  min-height: 316px;
}

/* IG feed posts (carousel / still): white chrome, slightly shorter than Reels */
.project-block .matrix-cell .feed-post-screen {
  aspect-ratio: 4 / 5;
  height: auto !important;
  min-height: 280px;
  border-radius: 0.85rem;
}

/* Landscape YouTube film at timeline end */
.project-block .matrix-cell.is-film-col,
.project-block .matrix-col-hdr.is-film-col {
  width: 340px;
}

.project-block .matrix-cell .phone-screen.is-wide-screen,
.project-block .matrix-cell .phone-screen.is-long-screen {
  aspect-ratio: 16 / 9;
  height: auto !important;
  min-height: 0;
}

.project-block .matrix-blank-slot {
  width: 186px;
  aspect-ratio: 9 / 16;
  min-height: 324px; /* tall blank matching Shorts frame */
  height: auto;
  box-sizing: border-box;
  align-self: flex-start;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0.85rem;
}

.project-block .matrix-cell.is-film-col .matrix-blank-slot {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
}

/* Collapsed = visual retract only. Full IG/TT/YT matrix stays in the DOM. */
.project-block.is-collapsed .matrix-plat-row[data-plat-row="tiktok"] {
  height: 78px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.95;
}

.project-block.is-collapsed .proj-yt-wrap {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}

.project-block.is-expanded .proj-yt-wrap {
  max-height: none;
  overflow: visible;
  opacity: 1;
  pointer-events: auto;
}

.project-block.is-collapsed .proj-expand-peek[hidden],
.project-block.is-expanded .proj-expand-peek,
.project-block.is-collapsed .proj-collapse-peek,
.project-block.is-expanded .proj-collapse-peek[hidden] {
  display: none !important;
}

.project-block.is-collapsed .proj-expand-peek:not([hidden]),
.project-block.is-expanded .proj-collapse-peek:not([hidden]) {
  display: flex;
}

.proj-matrix {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.proj-matrix-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.proj-expand-peek {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  margin-top: -2.1rem;
  min-height: 2.85rem;
  padding: 0 1rem 0.35rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  z-index: 4;
}

.proj-expand-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.75rem;
  background: linear-gradient(
    180deg,
    rgba(242, 237, 228, 0) 0%,
    rgba(242, 237, 228, 0.72) 42%,
    rgba(242, 237, 228, 0.97) 100%
  );
  pointer-events: none;
}

.proj-expand-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.proj-expand-peek:hover .proj-expand-cta,
.proj-expand-peek:focus-visible .proj-expand-cta {
  transform: translateY(-1px);
  color: var(--accent);
  background: transparent;
  border: none;
}

.proj-expand-cta .chevron.down {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  transform: rotate(0deg);
}

.proj-expand-cta .chevron.down svg {
  width: 100%;
  height: 100%;
}

/* Collapse: full-width fade outside horizontal scroll so it stays put */
.proj-collapse-peek {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  margin-top: -3.5rem;
  min-height: 4.75rem;
  padding: 0 1rem 0.95rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  z-index: 5;
}

.proj-collapse-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(242, 237, 228, 0) 0%,
    rgba(242, 237, 228, 0.7) 36%,
    rgba(242, 237, 228, 0.96) 72%,
    #f2ede4 100%
  );
  pointer-events: none;
}

.proj-collapse-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink);
  transition: color 0.15s ease, transform 0.15s ease;
}

.proj-collapse-peek:hover .proj-collapse-cta,
.proj-collapse-peek:focus-visible .proj-collapse-cta {
  color: var(--accent);
  transform: translateY(-1px);
}

.proj-collapse-cta .chevron.up {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  transform: rotate(180deg);
}

.proj-collapse-cta .chevron.up svg {
  width: 100%;
  height: 100%;
}

.collapse-btn {
  min-width: 8rem;
}

/* .btn { display:flex } otherwise wins over the HTML hidden attribute */
.project-block [hidden] {
  display: none !important;
}

/* Totals stay visible; per-platform breakdown only when expanded (kills the chin). */
.project-block .peak-stats-drawer {
  display: block !important;
}

/* Collapsed: tuck per-platform stats away so the matrix fade can sit flush. */
.project-block.is-collapsed .peak-platform-peaks {
  display: none;
}

.project-block.is-collapsed .timeline-pinned-left {
  padding-bottom: 0.4rem;
}

.project-block.is-collapsed .timeline-scroll-right {
  padding-bottom: 0.35rem;
}

.project-block.is-expanded .peak-platform-peaks {
  display: flex;
}

@media (max-width: 820px) {
  /* Stack highlight above matrix, but keep the page viewport-width so the
     matrix can scroll sideways (min-width:max-content rows otherwise blow out). */
  .project-block .timeline-split.is-matrix,
  .timeline-split {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .timeline-pinned-left,
  .peak-panel {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-right: none;
    border-bottom: 2px solid #bfb5a4;
    align-items: center;
  }

  /* Compact highlight: card + stats side-by-side so matrix stays above the fold */
  .project-block .peak-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "label label"
      "card stats";
    align-items: start;
    column-gap: 0.75rem;
    row-gap: 0.35rem;
    padding: 0.7rem 0.75rem 0.75rem;
  }

  .project-block .peak-panel > .timeline-col-label {
    grid-area: label;
  }

  .project-block .peak-panel > .phone-card,
  .project-block .peak-panel > a.phone-card {
    grid-area: card;
    width: min(140px, 36vw);
    max-width: 140px;
    margin: 0;
  }

  .project-block .peak-panel > .peak-stats-drawer {
    grid-area: stats;
    margin-top: 0;
    min-width: 0;
    align-self: center;
  }

  .timeline-pinned-left .timeline-track {
    width: 100% !important;
    max-width: 140px;
    margin: 0;
  }

  .project-block .peak-panel .peak-totals-row {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
  }

  .project-block .peak-panel .peak-platform-peaks {
    margin-top: 0.45rem;
  }

  .proj-matrix {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .project-block .timeline-scroll-right.matrix-scroll-right,
  .timeline-scroll-right,
  .matrix-scroll-right {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    padding: 0.7rem 0.75rem 0.85rem;
  }

  /* Collapsed phone: clip matrix height so expand CTA stays on-screen */
  .project-block.is-collapsed .matrix-scroll-right {
    max-height: 250px;
  }

  .project-block.is-expanded .matrix-scroll-right {
    max-height: none;
  }

  /* Match highlight size on narrow screens (+25% → 140px) */
  .project-block .matrix-cell {
    width: 140px;
  }

  .project-block .matrix-col-hdr {
    width: 140px;
  }

  .project-block .matrix-blank-slot {
    width: 140px;
    min-height: 240px;
  }

  .project-block .matrix-cell .phone-screen.is-tall-screen,
  .project-block .matrix-cell .phone-screen:not(.is-wide-screen) {
    min-height: 230px;
  }

  .project-block .matrix-cell .feed-post-screen {
    min-height: 210px;
  }

  .project-block.is-collapsed .matrix-plat-row[data-plat-row="tiktok"] {
    height: 72px;
  }

  .project-block.is-collapsed .matrix-plat-row.is-peek {
    height: 64px;
  }

  /* Keep expand / collapse CTAs centered in the visible matrix width */
  .proj-expand-peek,
  .proj-collapse-peek {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
  }

  .proj-expand-peek {
    margin-top: -1.6rem;
    min-height: 2.5rem;
  }

  .proj-collapse-peek {
    margin-top: -2.6rem;
    min-height: 3.6rem;
    padding-bottom: 0.7rem;
  }
}

.project-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 0.42rem 0.8rem;
  font-size: 0.82rem;
  border-radius: 0.4rem;
}

/* Split Horizontal Track: Fixed Left Peak + Scrollable Chronological Right */
.timeline-split {
  display: flex;
  align-items: flex-start;
  background: #f2ede4;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  overflow: hidden;
}

.timeline-pinned-left {
  flex-shrink: 0;
  padding: 0.9rem 1rem 1.1rem;
  background: linear-gradient(180deg, #faf6ef 0%, #f3ede2 100%);
  border-right: 2px solid #bfb5a4;
  box-shadow: 6px 0 18px rgba(26, 24, 20, 0.06);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-scroll-right {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding: 0.9rem 1.1rem 1.15rem;
  scroll-behavior: smooth;
}

.timeline-col-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.timeline-col-label .fixed-pill {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.timeline-track {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-top: 0.35rem;
  min-width: max-content;
}

/* Each Timeline Slot Column (Holds Primary Card + Animated Unroll Stack Underneath) */
.clip-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 186px;
  flex-shrink: 0;
  position: relative;
}

.clip-column.is-long {
  width: 268px;
}

.clip-column.is-post {
  width: 196px;
}

/* Platform-Colored Card Shell */
.phone-card {
  width: 100%;
  border-radius: 0.85rem;
  padding: 4px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  user-select: none;
}

.phone-card:hover {
  transform: translateY(-2px);
}

.phone-card.plat-ig {
  background: var(--ig-grad);
  box-shadow: 0 6px 18px rgba(225, 48, 108, 0.24);
}

.phone-card.plat-tiktok {
  background: var(--tt-grad);
  box-shadow: 0 6px 18px rgba(22, 34, 56, 0.26);
}

.phone-card.plat-youtube {
  background: var(--yt-grad);
  box-shadow: 0 6px 18px rgba(204, 0, 0, 0.24);
}

.phone-card.is-expanded {
  box-shadow: 0 10px 26px rgba(15, 76, 58, 0.32);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 316px;
  border-radius: 0.65rem;
  overflow: hidden;
  background: #141413;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.clip-column.is-long .phone-screen {
  height: 182px;
}

.clip-column.is-post .phone-screen {
  height: 245px;
}

/* Thumbnail only — not platform mark imgs inside .plat-logo-badge */
.phone-screen > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}

/* Wide films: fill 16:9. Slight overscale crops thin baked-in YT letterbox
   (maxres still leaves a 1–2px black strip + dark ceiling on some uploads). */
.phone-screen.is-wide-screen > img,
.phone-screen.is-long-screen > img {
  object-fit: cover;
  object-position: center 58%;
  width: 104%;
  height: 112%;
  left: -2%;
  top: -4%;
  right: auto;
  bottom: auto;
}

.phone-card:hover .phone-screen > img,
.phone-card:hover .feed-post-media > img {
  transform: scale(1.02);
}

.phone-card:hover .phone-screen.is-wide-screen > img,
.phone-card:hover .phone-screen.is-long-screen > img {
  transform: scale(1.04);
}

/* Instagram feed post (carousel / still) — white chrome vs Reel phone */
.phone-card.is-feed-post {
  background: #fff;
  box-shadow: 0 6px 18px rgba(225, 48, 108, 0.16);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0;
  text-decoration: none;
  color: inherit;
}

.phone-card.is-feed-post:hover,
.phone-card.is-feed-post:focus-visible {
  text-decoration: none;
}

.feed-post-screen {
  position: relative;
  width: 100%;
  height: 316px;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.feed-post-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.5rem;
  background: #fff;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.feed-post-avatar {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.feed-post-user {
  font-size: 0.7rem;
  font-weight: 700;
  color: #262626;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.feed-post-header .feed-post-user {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-post-header .views-chip {
  flex-shrink: 0;
  font-size: 0.62rem;
  padding: 0.12rem 0.35rem;
  background: rgba(0, 0, 0, 0.06);
  color: #262626;
  border: none;
}

.feed-post-header .views-chip .views-icon {
  color: #262626;
}

.feed-post-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: #141413;
  overflow: hidden;
}

.feed-post-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.feed-media-plat {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 2;
  pointer-events: none;
}

.feed-media-plat .plat-logo-badge {
  width: 1.15rem;
  height: 1.15rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.feed-carousel-icon {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 2;
  width: 1.15rem;
  height: 1.15rem;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.feed-carousel-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.feed-post-caption {
  flex-shrink: 0;
  padding: 0.4rem 0.5rem 0.48rem;
  background: #fff;
  color: #262626;
  font-size: 0.66rem;
  font-weight: 400;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.feed-post-caption .feed-post-user {
  margin-right: 0.28rem;
}

.phone-screen-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.48) 0%,
    rgba(0, 0, 0, 0.05) 35%,
    rgba(0, 0, 0, 0.12) 62%,
    rgba(0, 0, 0, 0.82) 100%
  );
  pointer-events: none;
}

/* Wide films: fill edge-to-edge — only a light bottom fade for title/metrics */
.phone-screen.is-wide-screen .phone-screen-scrim,
.phone-screen.is-long-screen .phone-screen-scrim {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 55%,
    rgba(0, 0, 0, 0.35) 78%,
    rgba(0, 0, 0, 0.78) 100%
  );
}

/* Top & Bottom Overlay Chrome Inside Phone Screen */
.phone-top-bar {
  position: relative;
  z-index: 2;
  padding: 0.5rem 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.plat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.48rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}

.plat-badge.ig {
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.92), rgba(225, 48, 108, 0.92), rgba(252, 175, 69, 0.92));
}

.plat-badge.tiktok {
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid rgba(37, 244, 238, 0.55);
}

.plat-badge.youtube {
  background: rgba(204, 0, 0, 0.92);
}

.step-badge {
  background: rgba(20, 20, 19, 0.72);
  color: #f7f4ef;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.18rem 0.45rem;
  border-radius: 0.3rem;
  backdrop-filter: blur(4px);
}

.phone-bottom-bar {
  position: relative;
  z-index: 2;
  padding: 0.6rem 0.6rem 0.55rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.phone-views-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.phone-eng-row .eng-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  color: #fff;
  line-height: 1;
}

.phone-eng-row .eng-icon {
  width: 0.82rem;
  height: 0.82rem;
  display: inline-flex;
  flex-shrink: 0;
  opacity: 0.95;
}

.phone-eng-row .eng-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.phone-views-pill {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  padding: 0.14rem 0.45rem;
  border-radius: 0.3rem;
  color: #fff;
}

.phone-direct-link {
  color: #fff;
  background: rgba(15, 76, 58, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.14rem 0.45rem;
  border-radius: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.phone-direct-link:hover {
  background: #146950;
}

/* Caption + "Click to unroll other platforms" cue under each card */
.clip-meta {
  width: 100%;
  padding: 0.5rem 0.2rem 0.15rem;
}

.clip-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clip-expand-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 0.28rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.clip-expand-btn:hover,
.clip-expand-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.mini-plat-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
}

.mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.mini-dot.ig {
  background: #e1306c;
}

.mini-dot.tiktok {
  background: #162238;
  border: 1px solid #25f4ee;
}

.mini-dot.youtube {
  background: #ff0000;
}

/* Animated Vertical Unroll Stack Underneath Clicked Card (Screenshot #2) */
.unroll-stack {
  width: 100%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-8px);
  transition:
    max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.unroll-stack.open {
  max-height: 920px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 2px dashed #bfb5a4;
  pointer-events: auto;
}

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

.unroll-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.unroll-card-link .phone-screen {
  height: 268px;
}

/* Sketch #3: Aligned 3-Row Cross-Platform Matrix */
.matrix-wrapper {
  display: flex;
  align-items: stretch;
  background: #f2ede4;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  overflow: hidden;
}

.matrix-pinned-left {
  flex-shrink: 0;
  background: linear-gradient(180deg, #faf6ef 0%, #f3ede2 100%);
  border-right: 2px solid #bfb5a4;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 2;
}

.matrix-scroll-right {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.matrix-header-row,
.matrix-plat-row {
  display: flex;
  align-items: stretch;
  gap: 0.85rem;
  min-width: max-content;
}

.matrix-header-row {
  height: 32px;
  align-items: center;
}

.matrix-plat-row {
  height: 248px;
}

.matrix-plat-label {
  width: 112px;
  flex-shrink: 0;
  border-radius: 0.6rem;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
}

.matrix-plat-label.ig {
  background: var(--ig-grad);
}

.matrix-plat-label.tiktok {
  background: var(--tt-grad);
}

.matrix-plat-label.youtube {
  background: var(--yt-grad);
}

.matrix-plat-label span {
  font-size: 0.72rem;
  opacity: 0.88;
  font-weight: 400;
  margin-top: 0.15rem;
}

.matrix-cell {
  width: 164px;
  flex-shrink: 0;
  height: 100%;
}

.matrix-cell .phone-card {
  height: 100%;
}

.matrix-cell .phone-screen {
  height: 100%;
}

.matrix-blank-slot {
  width: 164px;
  flex-shrink: 0;
  height: 100%;
  border: 1px dashed #c4b9a8;
  border-radius: 0.75rem;
  background: rgba(255, 252, 247, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.76rem;
}

.matrix-col-hdr {
  width: 164px;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Projects matrix: win over base .matrix-* height:100% squash (must follow those rules) */
.project-block .matrix-header-row,
.project-block .matrix-plat-row {
  align-items: flex-start;
  height: auto;
}

.project-block .matrix-col-hdr,
.project-block .matrix-cell,
.project-block .matrix-blank-slot {
  width: 186px;
}

.project-block .matrix-col-hdr {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.project-block .matrix-cell,
.project-block .matrix-blank-slot {
  height: auto;
  align-self: flex-start;
}

.project-block .matrix-cell .phone-card,
.project-block .matrix-cell a.phone-card {
  height: auto !important;
  padding: 4px !important;
  border-radius: 0.85rem !important;
  overflow: visible !important;
}

.project-block .matrix-cell .phone-screen {
  border-radius: 0.65rem !important;
}

.project-block .matrix-cell .phone-screen.is-tall-screen,
.project-block .matrix-cell .phone-screen:not(.is-wide-screen) {
  aspect-ratio: 9 / 16;
  height: auto !important;
  min-height: 316px;
}

.project-block .matrix-cell.is-film-col,
.project-block .matrix-col-hdr.is-film-col {
  width: 340px;
}

.project-block .matrix-cell .phone-screen.is-wide-screen,
.project-block .matrix-cell .phone-screen.is-long-screen {
  aspect-ratio: 16 / 9;
  height: auto !important;
  min-height: 0;
}

.project-block .matrix-blank-slot {
  aspect-ratio: 9 / 16;
  min-height: 324px;
  height: auto;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  /* visually empty — gap is the signal */
  color: transparent;
  font-size: 0;
}

.project-block .matrix-cell.is-film-col .matrix-blank-slot {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
}

/* Narrow: keep highlight + matrix cards matched (+25% vs prior compact size).
   Must follow the Projects matrix win-over block above. */
@media (max-width: 820px) {
  .project-block .matrix-col-hdr,
  .project-block .matrix-cell,
  .project-block .matrix-blank-slot {
    width: 140px;
  }

  .project-block .matrix-blank-slot {
    min-height: 240px;
  }

  .project-block .matrix-cell .phone-screen.is-tall-screen,
  .project-block .matrix-cell .phone-screen:not(.is-wide-screen) {
    min-height: 230px;
  }

  .project-block .matrix-cell .feed-post-screen {
    min-height: 210px;
  }

  .project-block .peak-panel > .phone-card,
  .project-block .peak-panel > a.phone-card {
    width: min(140px, 36vw);
    max-width: 140px;
  }
}

/* Gear Page Styles — kit cards → expand (RockPorch-inspired, owned surface) */
.gear-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.85rem 1rem;
}

.gear-toolbar-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 36rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-size: 0.84rem;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  color: #f7f4ef;
  border-color: var(--accent);
}

.gear-mount {
  margin-bottom: 1rem;
}

.gear-kit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

@media (max-width: 720px) {
  .gear-kit-grid {
    grid-template-columns: 1fr;
  }
}

.gear-kit-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.gear-kit-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: 0 10px 28px rgba(26, 24, 20, 0.08);
}

.gear-kit-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.gear-kit-card-hero {
  position: relative;
  min-height: 9.5rem;
  padding: 1.35rem 1.2rem 2.4rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #f7f4ef;
}

.gear-kit-card.tone-camera .gear-kit-card-hero {
  background:
    linear-gradient(160deg, rgba(15, 76, 58, 0.88), rgba(26, 24, 20, 0.72)),
    radial-gradient(circle at 20% 20%, #7eb8a4, transparent 55%),
    #1a4034;
}

.gear-kit-card.tone-trail .gear-kit-card-hero {
  background:
    linear-gradient(160deg, rgba(92, 70, 40, 0.9), rgba(26, 24, 20, 0.7)),
    radial-gradient(circle at 80% 10%, #c4a574, transparent 50%),
    #4a3a28;
}

.gear-kit-card.tone-bike .gear-kit-card-hero {
  background:
    linear-gradient(160deg, rgba(30, 58, 95, 0.9), rgba(26, 24, 20, 0.72)),
    radial-gradient(circle at 30% 80%, #6b8cae, transparent 55%),
    #1e3550;
}

.gear-kit-card.tone-apparel .gear-kit-card-hero {
  background:
    linear-gradient(160deg, rgba(120, 50, 45, 0.88), rgba(26, 24, 20, 0.7)),
    radial-gradient(circle at 70% 30%, #d4a090, transparent 50%),
    #5c2e2a;
}

.gear-kit-card.tone-travel .gear-kit-card-hero {
  background:
    linear-gradient(160deg, rgba(45, 70, 100, 0.9), rgba(26, 24, 20, 0.7)),
    radial-gradient(circle at 15% 60%, #8aa8c8, transparent 55%),
    #2a4060;
}

.gear-kit-card.tone-other .gear-kit-card-hero {
  background:
    linear-gradient(160deg, rgba(70, 70, 65, 0.9), rgba(26, 24, 20, 0.75)),
    #3a3834;
}

.gear-kit-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.gear-kit-count {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  background: color-mix(in srgb, #c45c26 92%, #fff);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

.gear-kit-card-peek {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.85rem;
  background: var(--card);
  border-top: 1px solid var(--line);
  min-height: 3.1rem;
}

.gear-peek-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.45rem;
  border-radius: 0.45rem;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  max-width: 4.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gear-peek-empty {
  font-size: 0.82rem;
  color: var(--muted);
}

.gear-kit-open-label {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.gear-kit {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1.25rem 1.15rem 1.4rem;
  animation: gearKitIn 0.28s ease;
}

@keyframes gearKitIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.gear-kit-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.gear-kit-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  margin: 0.15rem 0 0.35rem;
  letter-spacing: -0.02em;
}

.gear-kit-blurb {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
  font-size: 0.98rem;
}

.gear-kit-footer {
  display: flex;
  justify-content: center;
  margin-top: 1.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.gear-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.gear-item-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.gear-item-card:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}

.gear-item-visual {
  position: relative;
  aspect-ratio: 1.05 / 1;
  background:
    radial-gradient(circle at 30% 25%, #f0ebe3, transparent 55%),
    var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gear-item-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.85rem;
  background: #fff;
}

.gear-item-mono {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--accent) 55%, var(--muted));
  opacity: 0.85;
}

.gear-item-visual .gear-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
}

.gear-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 0.9rem 1rem;
  flex: 1;
}

.gear-item-brand {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c45c26;
}

.gear-item-name {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  font-family: var(--font-display);
  font-weight: 600;
}

.gear-item-used,
.gear-item-why,
.gear-item-how,
.gear-item-exact {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
}

.gear-item-used span,
.gear-item-why strong,
.gear-item-how strong,
.gear-item-exact strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 0.1rem;
}

.gear-item-cta {
  margin-top: auto;
  padding-top: 0.55rem;
}

.gear-item-shop {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.gear-item-no-link {
  display: block;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--muted);
}

.gear-badge {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.gear-badge.direct {
  background: var(--accent-soft);
  color: var(--accent);
}

.gear-badge.match {
  background: #fef3c7;
  color: #92400e;
}

.gear-badge.exact-only {
  background: #ebe4d8;
  color: var(--muted);
}

.gear-badge.partner {
  background: #e0e7ff;
  color: #3730a3;
}

.gear-aff-note {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.gear-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
}

.no-print {
  /* kept for print hiding */
}

@media print {
  body {
    background: white;
    color: black;
    font-size: 11pt;
  }

  .no-print,
  .nav,
  .cta-row .btn-ghost {
    display: none !important;
  }

  .wrap {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  section,
  .hero,
  .kit-hero {
    padding: 0.75rem 0;
    break-inside: avoid;
  }

  .page-kit .site-header--kit {
    position: static;
  }

  .page-kit .site-header--kit .logo,
  .page-kit .site-header--kit .nav a {
    color: black;
  }

  .kit-hero {
    min-height: 0;
    color: black;
    padding-top: 1rem;
  }

  .kit-hero__cover,
  .kit-hero__veil,
  .kit-hero__reels {
    display: none !important;
  }

  .kit-hero__avatar {
    border-color: #111;
    box-shadow: none;
  }

  .kit-hero__brand {
    text-shadow: none;
  }

  .kit-hero__brand,
  .kit-hero__headline,
  .kit-hero__lede {
    color: black;
  }

  .kit-metric--action {
    box-shadow: none;
    transform: none;
  }

  .card,
  .stat,
  .proof-list li,
  .contact-box,
  .kit-expand,
  .kit-future li,
  .kit-metric {
    break-inside: avoid;
    box-shadow: none;
  }

  .kit-expand__panel[hidden] {
    display: block !important;
  }

  .kit-expand__hit {
    cursor: default;
  }

  .contact-box {
    background: white;
    color: black;
    border: 1px solid #ccc;
  }

  .contact-box a {
    color: black;
  }

  a[href]::after {
    content: none;
  }
}

/* ==========================================================================
   All Posts Library
   ========================================================================== */

.lib-toolbar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem 1.1rem 0.85rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lib-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
}

.lib-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 9rem;
  flex: 1 1 9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.lib-field-narrow {
  flex: 0 1 7rem;
  min-width: 6.5rem;
}

.lib-field input,
.lib-field select {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  padding: 0.45rem 0.55rem;
  width: 100%;
}

.lib-fieldset {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  margin: 0;
  padding: 0.45rem 0.7rem 0.55rem;
  flex: 1 1 14rem;
}

.lib-fieldset legend {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0.25rem;
}

.lib-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.85;
}

.lib-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.lib-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.lib-check input {
  accent-color: var(--accent);
}

.lib-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.15rem;
  border-top: 1px dashed var(--line);
}

.lib-result-count {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.lib-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--card);
  margin-bottom: 1rem;
}

.lib-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 820px;
}

.lib-table th,
.lib-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.lib-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(15, 76, 58, 0.04);
  position: sticky;
  top: 0;
  z-index: 1;
}

.lib-table th.num,
.lib-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lib-table tbody tr:hover {
  background: rgba(15, 76, 58, 0.035);
}

.lib-table tbody tr:last-child td {
  border-bottom: none;
}

.lib-plat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.4rem;
  border-radius: 0.3rem;
  color: #fff;
  margin-right: 0.25rem;
}

.lib-plat.ig {
  background: linear-gradient(135deg, #9b2def, #e1306c);
}

.lib-plat.yt {
  background: #cc0000;
}

.lib-plat.tt {
  background: #162238;
}

.lib-type {
  font-size: 0.75rem;
  color: var(--muted);
}

.lib-date {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.lib-title {
  max-width: 28rem;
}

.lib-title-text {
  display: block;
  line-height: 1.35;
}

.lib-suggest {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--bg-deep);
  padding: 0.1rem 0.4rem;
  border-radius: 0.3rem;
}

.lib-project {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}

.lib-project.unassigned {
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-weight: 500;
}

.lib-open {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.lib-open:hover {
  text-decoration: underline;
}

.lib-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem !important;
}

.lib-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 0.5rem 0 1.5rem;
}

.lib-page-btn {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 0.4rem;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.lib-page-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.lib-page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #f7f4ef;
}

.lib-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.lib-page-ellipsis {
  align-self: center;
  color: var(--muted);
  padding: 0 0.2rem;
}

.lib-footnote {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 48rem;
}

.lib-footnote code {
  font-size: 0.8em;
  background: var(--bg-deep);
  padding: 0.05rem 0.3rem;
  border-radius: 0.25rem;
}

@media (max-width: 720px) {
  .lib-fieldset-projects {
    flex-basis: 100%;
  }
}

.lib-stats {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem 1.1rem 0.85rem;
  margin-bottom: 1rem;
}

.lib-stats-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.lib-stat {
  background: rgba(15, 76, 58, 0.04);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.lib-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}

.lib-stat-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lib-stats-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.lib-plat-card {
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.7rem 0.8rem;
  background: #fff;
}

.lib-plat-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.lib-plat-card dl {
  margin: 0;
  display: grid;
  gap: 0.25rem;
}

.lib-plat-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.lib-plat-card dt {
  color: var(--muted);
  font-weight: 500;
}

.lib-plat-card dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.lib-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.lib-chart {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.55rem 0.65rem 0.35rem;
  background: #fff;
}

.lib-chart figcaption {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.lib-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.lib-bar.ig {
  fill: #c13584;
}

.lib-bar.yt {
  fill: #cc0000;
}

.lib-bar.tt {
  fill: #162238;
}

.lib-bar-val,
.lib-bar-label {
  font-size: 11px;
  fill: var(--muted);
  font-family: var(--font-body);
}

.lib-bar-val {
  font-weight: 600;
  fill: var(--ink);
}

.lib-stats-note {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 800px) {
  .lib-stats-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lib-stats-breakdown {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   About page
   ========================================================================== */

.about-me {
  display: grid;
  grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr);
  gap: 1.75rem 2.25rem;
  align-items: center;
  padding: 1.75rem 0 2.25rem;
  animation: about-rise 0.75s ease-out both;
}

.about-me__portrait {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border-radius: 0.45rem;
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(12, 40, 28, 0.1);
  background: var(--bg-deep);
  display: block;
}

.about-me__copy .eyebrow {
  margin-bottom: 0.45rem;
}

.about-me__copy h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 0.85rem;
}

.about-me__copy p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 36rem;
  font-size: 1.08rem;
}

@media (max-width: 640px) {
  .about-me {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding-top: 1.1rem;
  }

  .about-me__portrait {
    width: min(12.5rem, 58vw);
  }

  .about-me__copy .cta-row {
    justify-content: center;
  }
}

@keyframes about-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-me {
    animation: none;
  }
}

.about-section {
  padding: 2.75rem 0 0.75rem;
}

.about-section--band {
  margin: 2rem calc(50% - 50vw) 0;
  width: 100vw;
  padding: 2.75rem 0 2.35rem;
  background:
    linear-gradient(180deg, rgba(15, 76, 58, 0.06), transparent 40%),
    linear-gradient(90deg, rgba(235, 228, 216, 0.65), transparent 70%),
    var(--bg-deep);
  border-block: 1px solid var(--line);
}

.about-band-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.about-section h2 {
  font-size: clamp(1.55rem, 3.4vw, 2rem);
}

.about-reel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0.25rem 0 0.5rem;
}

.about-reel {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.about-reel .phone-screen.is-tall-screen {
  aspect-ratio: 9 / 16;
  height: auto;
  min-height: 0;
}

.about-reel .phone-bottom-bar .clip-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.3;
}

@media (max-width: 720px) {
  .about-reel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }
}

.about-lang-bubbles {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.about-lang-bubble {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.95rem;
}

.about-lang-bubble strong {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.about-lang-bubble span {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.86rem;
}

.about-lang-story {
  max-width: 40rem;
}

.page-about .site-footer {
  margin-top: 2rem;
}
