/* ============================================================
   СТИЛИ ЛЕНДИНГА-ПОРТФОЛИО
   Все данные (текст, цифры, ссылки) редактируются в js/data.js —
   этот файл отвечает только за внешний вид.
   ============================================================ */

:root {
  --bg: #EFEEE3;
  --bg-soft: #E6E1D2;
  --card: #FBF9F2;
  --ink: #2B2621;
  --ink-soft: #6E675C;
  --line: rgba(43, 38, 33, .14);
  --rose: #D98A88;
  --rose-deep: #BD6E6E;
  --sage: #7C8B6B;
  --sage-deep: #5C6A4E;
  --butter: #E7B84E;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-card: 0 20px 45px -24px rgba(43, 38, 33, .35);
  --shadow-soft: 0 10px 24px -16px rgba(43, 38, 33, .28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--rose-deep);
  outline-offset: 3px;
}

body.modal-open {
  overflow: hidden;
}

h1,
h2,
h3 {
  font-family: 'Fraunces', serif;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.legal-page {
  max-width: 820px;
  padding-top: 64px;
  padding-bottom: 72px;
}

.legal-page h1 {
  font-size: clamp(32px, 5vw, 50px);
  margin: 22px 0 10px;
}

.legal-page h2 {
  font-size: 22px;
  margin-top: 34px;
}

.legal-page p {
  color: var(--ink-soft);
  max-width: 760px;
}

.legal-page a {
  color: var(--rose-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-back {
  font-weight: 600;
}

section {
  position: relative;
}

.hidden {
  display: none !important;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--sage-deep);
  background: rgba(124, 139, 107, .13);
  padding: 6px 12px;
  border-radius: 100px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.icon {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- NAV ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(239, 238, 227, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 19px;
}

.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rose);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.nav-links a {
  transition: color .2s;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s, background .2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--rose-deep);
}

.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.burger .icon {
  width: 24px;
  height: 24px;
  color: var(--ink);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 28px 18px;
  border-top: 1px solid var(--line);
}

.mobile-menu a {
  padding: 12px 4px;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.mobile-menu.open {
  display: flex;
}

@media (max-width:860px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .burger {
    display: inline-flex;
  }
}

/* ---------- PROFILE HEADER (шапка профиля автора) ---------- */
.profile-header {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.profile-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(150deg, var(--rose), var(--rose-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

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

.profile-text {
  flex: 1;
  min-width: 240px;
}

.profile-name {
  font-family: 'Fraunces', serif;
  font-size: 21px;
  font-weight: 600;
}

.profile-role {
  font-size: 13.5px;
  color: var(--rose-deep);
  font-weight: 600;
  margin-top: 2px;
}

.profile-bio {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-top: 8px;
  max-width: 640px;
}

.profile-facts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.fact-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 13px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.fact-chip .icon {
  width: 13px;
  height: 13px;
  color: var(--sage-deep);
}

/* ---------- HERO ---------- */
.hero {
  padding: 30px 0px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.05;
  margin: 18px 0 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--rose-deep);
}

.hero p.lead {
  font-size: 17.5px;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 30px;
}

.hero p.lead a {
  color: var(--rose-deep);
  font-weight: bold;
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14.5px;
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--rose);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--rose-deep);
}

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

.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

.stack {
  position: relative;
  height: 380px;
}

.polaroid {
  position: absolute;
  width: 190px;
  background: #fff;
  padding: 10px 10px 34px;
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  transition: transform .35s ease;
}

.polaroid .ph {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.polaroid .ph .icon {
  width: 34px;
  height: 34px;
  opacity: .92;
}

.polaroid .cap {
  position: absolute;
  bottom: 8px;
  left: 12px;
  right: 12px;
  font-family: 'Fraunces', serif;
  font-size: 13px;
  color: var(--ink-soft);
}

.tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 64px;
  height: 22px;
  background: rgba(231, 184, 78, .55);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

/* Гармоничная раскладка из 3 карточек: одна крупная по центру, две меньше по бокам */
.p1 {
  top: 40px;
  left: 20%;
  width: 210px;
  transform: rotate(-6deg);
  z-index: 3;
}

.p2 {
  top: 0;
  left: 56%;
  width: 165px;
  transform: rotate(7deg);
  z-index: 2;
}

.p3 {
  top: 220px;
  left: 2%;
  width: 165px;
  transform: rotate(5deg);
  z-index: 1;
}

.p1:hover,
.p2:hover,
.p3:hover {
  transform: translateY(-6px) rotate(0deg) !important;
  z-index: 9;
}

@media (max-width:900px) {
  .p1 {
    left: 6%;
  }

  .p2 {
    left: 52%;
  }

  .p3 {
    left: 0;
  }
}

.stat-strip {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  text-align: center;
}

.stat-item {
  flex: 1;
  min-width: 150px;
  padding: 0 26px;
  border-left: 1px solid var(--line);
}

.stat-item:first-child {
  border-left: none;
  padding-left: 0;
}

.stat-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 26px;
  font-weight: 500;
  color: var(--rose-deep);
  text-align: center;
}

.stat-label {
  font-size: 12.5px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 4px;
  text-align: center;
}

/* ---------- SECTION HEADS ---------- */
.section-head {
  max-width: 620px;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-top: 14px;
}

.section-head p {
  color: var(--ink-soft);
  margin-top: 12px;
  font-size: 15.5px;
}

section.pad {
  padding: 30px 0;
}

.bg-soft {
  background: var(--bg-soft);
}

/* ---------- NICHES ---------- */
.niche-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.niche-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.niche-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.niche-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 16px;
}

.niche-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.niche-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- WORKFLOW ---------- */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.workflow-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
}

.workflow-number {
  display: inline-block;
  color: var(--rose-deep);
  font-size: 13px;
  margin-bottom: 22px;
}

.workflow-card h3 {
  font-size: 18px;
  margin-bottom: 7px;
}

.workflow-card p,
.workflow-note {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0;
}

.workflow-note {
  margin-top: 18px;
}

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

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

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

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

/* ---------- FILTERS (два независимых ряда: категория + формат) ---------- */
.filter-group {
  margin-bottom: 22px;
}

.filter-group-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .2s;
}

.filter-btn:hover {
  border-color: var(--rose);
}

.filter-btn.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ---------- GALLERY ----------
   Карточки одинакового размера: сетка с фиксированной пропорцией
   превью (4/5) — реальные фото/видео будут обрезаны по центру
   (object-fit: cover), поэтому карточки останутся ровными. */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

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

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.thumb {
  width: 100%;
  aspect-ratio: 4/5;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}

.thumb img,
.thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb .icon {
  width: 38px;
  height: 38px;
  opacity: .9;
}

.thumb .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 100px;
}

.thumb .fmt-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(43, 38, 33, .72);
  color: #fff;
  font-size: 10.5px;
  padding: 4px 9px;
  border-radius: 100px;
}

.thumb .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb .play span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb .play .icon {
  width: 16px;
  height: 16px;
  color: var(--ink);
  stroke: none;
  fill: currentColor;
}

.card-info {
  padding: 14px 15px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-info .brand {
  font-family: 'Fraunces', serif;
  font-size: 15.5px;
}

.card-sub {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.card-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 12px;
  color: var(--ink-soft);
}

.card-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-stats .icon {
  width: 13px;
  height: 13px;
  color: var(--rose-deep);
}

.card-stats .er {
  margin-left: auto;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--sage-deep);
  font-weight: 500;
}

.empty-note {
  color: var(--ink-soft);
  font-size: 14px;
  padding: 30px 0;
}

@media (max-width:480px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(43, 38, 33, .7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lb-panel {
  background: var(--card);
  border-radius: var(--radius-lg);
  max-width: 450px;
  width: 100%;
  max-height: 90vh;
  /* overflow: hidden; */
  position: relative;
}

/* ;overflow-y:auto */
.lb-media {
  width: 100%;
  aspect-ratio: var(--ar, 4/5);
  position: relative;
  background: #000;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.lb-media .lb-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.lb-media .lb-photo .icon {
  width: 56px;
  height: 56px;
  opacity: .9;
}

.lb-media .lb-video-poster {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  position: relative;
  border: 0;
  padding: 0;
}

.lightbox-note {
  color: #fff;
  padding: 40px 24px;
}

.lb-media .play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
}

.lb-media .lb-video-poster:hover .play-btn {
  transform: scale(1.06);
}

.lb-media .play-btn .icon {
  width: 22px;
  height: 22px;
  color: var(--ink);
  stroke: none;
  fill: currentColor;
}

.lb-media iframe,
.lb-media video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.lb-body {
  padding: 26px 28px 30px;
}

.lb-body .cat {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--sage-deep);
  font-family: 'IBM Plex Mono', monospace;
}

.lb-body h3 {
  font-size: 24px;
  margin: 8px 0 10px;
}

.lb-body p {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0 0 18px;
}

.lb-stats {
  display: flex;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.lb-stats div span {
  display: block;
}

.lb-stats .n {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 17px;
  color: var(--rose-deep);
}

.lb-stats .l {
  font-size: 11.5px;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-top: 2px;
}

.lb-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, .85);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 0;
  z-index: 2;
}

/* ---------- REACH ---------- */
.reach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}

.platform-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 20px;
}

.platform-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.platform-ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.platform-name {
  font-weight: 600;
  font-size: 15px;
}

.platform-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 24px;
  color: var(--ink);
}

.platform-sub {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.platform-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 8px;
}

.platform-row b {
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
}

.platform-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rose-deep);
}

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

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

.audience {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}

.aud-block h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
}

.bar-row .lbl {
  width: 64px;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 9px;
  background: var(--bg-soft);
  border-radius: 100px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--rose);
  border-radius: 100px;
}

/* Цвета заливки по группам аудитории */
.bar-fill-age {
  background: var(--rose);
}

.bar-fill-gender {
  background: var(--sage);
}

.bar-fill-geo {
  background: var(--butter);
}

.bar-row .pct {
  width: 38px;
  text-align: right;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
}

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

/* ---------- BRANDS ----------
   Белый фон карточки нейтрален под любой логотип.
   Логотип строго ограничен по высоте — никогда не вылезет за блок.
   Имя бренда всегда видно под логотипом, обрезается многоточием. */
.brand-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.brand-link {
  display: block;
  transition: transform .2s, box-shadow .2s;
  border-radius: var(--radius-md);
}

.brand-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.brand-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  padding: 12px 10px 10px;
  text-align: center;
  min-height: 90px;
  overflow: hidden;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  flex-shrink: 0;
  overflow: hidden;
}

.brand-logo {
  display: block;
  max-width: 100%;
  max-height: 46px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-box-name {
  width: 100%;
  overflow: hidden;
}

.brand-name {
  display: block;
  font-size: 11px;
  color: var(--ink-soft);
  font-family: 'IBM Plex Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.brand-box:not(.has-logo) .brand-name {
  font-size: 13px;
}

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

/* ---------- TESTIMONIALS ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.testi-grid.is-single {
  grid-template-columns: minmax(280px, 540px);
}

.testi-grid.is-two {
  grid-template-columns: repeat(2, 1fr);
}

.testi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.testi p {
  font-size: 14.5px;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.6;
  flex: 1;
}

.testi .who {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.who-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  flex-shrink: 0;
}

.who-name {
  font-size: 13.5px;
  font-weight: 600;
}

.who-role {
  font-size: 12px;
  color: var(--ink-soft);
}

@media (max-width:860px) {

  .testi-grid,
  .testi-grid.is-two {
    grid-template-columns: 1fr;
  }

  .testi-grid.is-single {
    grid-template-columns: 1fr;
  }
}


/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 44px;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-soft);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-soft);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--rose);
  outline-offset: 1px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 2px 0 18px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.consent input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  flex: 0 0 auto;
}

.consent a {
  color: var(--rose-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  border: 0;
  border-radius: 100px;
  background: var(--rose);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.submit-btn:hover {
  background: var(--rose-deep);
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: .6;
  cursor: progress;
}

.form-note {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 12px;
  text-align: center;
}

.form-status {
  font-size: 13px;
  text-align: center;
  margin-top: 10px;
  min-height: 18px;
}

.form-status.ok {
  color: var(--sage-deep);
}

.form-status.err {
  color: var(--rose-deep);
}

.quick-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: transform .2s, box-shadow .2s;
}

.qc-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.qc-ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qc-title {
  font-weight: 600;
  font-size: 14.5px;
}

.qc-sub {
  font-size: 12.5px;
  color: var(--ink-soft);
}

.mediakit-box {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-top: 4px;
}

.mediakit-box h4 {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  margin-bottom: 6px;
}

.mediakit-box p {
  font-size: 13px;
  opacity: .75;
  margin: 0 0 16px;
}

.mediakit-box a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg);
  color: var(--ink);
  padding: 11px 18px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
}

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

  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.foot-links {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--ink-soft);
}

.foot-copy {
  font-size: 12.5px;
  color: var(--ink-soft);
}

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

  .stack {
    height: 340px;
    margin-top: 20px;
  }

  .niche-grid,
  .reach-grid {
    gap: 14px;
  }

  .profile-inner {
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}