/* =========================================================
   Site Sections
   ========================================================= */

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition:
    background-color var(--dur-base) var(--ease-out),
    backdrop-filter var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(6, 7, 12, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--border);
}

.nav {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background:
    radial-gradient(120% 120% at 20% 10%, #4f83ff, var(--brand-700) 60%, var(--ink-900));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 6px 14px rgba(37, 99, 235, 0.4);
}

.brand__name {
  font-size: 16px;
}

.brand__name b {
  font-weight: 600;
}

.brand__logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
@media (max-width: 540px) {
  .brand__logo { height: 32px; }
}

.footer__brand-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  margin-top: 12px;
  margin-bottom: 16px;
}

.product-card__logo-img {
  display: block;
  height: 38px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.product-card--jom .product-card__logo-img {
  height: 84px;
  max-width: 260px;
}
.product-card--tiq .product-card__logo-img {
  height: 64px;
  max-width: 220px;
}

/* =========================================================
   WhatsApp Floating Button
   ========================================================= */
.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow:
    0 10px 30px rgba(37, 211, 102, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: whatsapp-pulse 2.4s ease-out infinite;
}
.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 16px 40px rgba(37, 211, 102, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.whatsapp-fab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
@keyframes whatsapp-pulse {
  0%   { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
  70%  { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45), 0 0 0 18px rgba(37, 211, 102, 0), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
  100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
}
@media (max-width: 540px) {
  .whatsapp-fab {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
  .whatsapp-fab svg { width: 22px; height: 22px; }
}

/* =========================================================
   Cookie Consent Banner (ProsperSites standard component)
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 90;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 18, 32, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
}
.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__body {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.cookie-banner__icon {
  flex-shrink: 0;
  color: var(--brand-400);
  margin-top: 2px;
}
.cookie-banner__title {
  margin: 0 0 4px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
}
.cookie-banner__desc {
  margin: 0;
  font-size: 12.5px;
}
.cookie-banner__desc a {
  color: var(--brand-300);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-banner__btn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.cookie-banner__btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-secondary);
}
.cookie-banner__btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text-primary);
}
.cookie-banner__btn--primary {
  background: var(--brand-600);
  color: #fff;
}
.cookie-banner__btn--primary:hover {
  background: var(--brand-500);
}
@media (max-width: 540px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    padding: 16px;
  }
  .cookie-banner__actions { flex-direction: column-reverse; }
  .cookie-banner__btn { width: 100%; padding: 11px; }
}

/* =========================================================
   Back to Top Floating Button
   ========================================================= */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 84px;
  z-index: 79;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease, border-color 0.25s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--brand-600);
  border-color: var(--brand-500);
  transform: translateY(-3px);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 3px;
}
@media (max-width: 540px) {
  .back-to-top {
    right: 16px;
    bottom: 72px;
    width: 44px;
    height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab { animation: none; }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(10, 12, 20, 0.5);
  backdrop-filter: blur(8px);
}

.nav__links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 14px;
  color: var(--text-secondary);
  transition:
    color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}

.nav__links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav__links a.is-active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- Nav flyout (hover menu) ---------- */
.nav__item { position: relative; list-style: none; }
.nav__item--has-menu > a {
  gap: 4px;
}
.nav__caret {
  transition: transform var(--dur-fast) var(--ease-out);
  opacity: 0.7;
}
.nav__item--has-menu:hover > a .nav__caret,
.nav__item--has-menu:focus-within > a .nav__caret {
  transform: rotate(180deg);
}

.nav__flyout {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, -6px);
  width: 360px;
  padding: 18px;
  background: rgba(14, 18, 32, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 64px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(59,130,246,0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              visibility var(--dur-fast) var(--ease-out);
  z-index: 50;
}
/* hover bridge so pointer can travel from trigger to flyout without dropping */
.nav__flyout::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav__item--has-menu:hover .nav__flyout,
.nav__item--has-menu:focus-within .nav__flyout {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav__flyout-header {
  padding: 4px 12px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.nav__flyout-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-300);
  margin-bottom: 6px;
}
.nav__flyout-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.nav__flyout-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav__flyout-link {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 4px;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.nav__flyout-link:hover {
  background: rgba(59, 130, 246, 0.1) !important;
}
.nav__flyout-link-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}
.nav__flyout-link-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.nav__flyout-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-400));
  color: #fff;
  line-height: 1;
}

.nav__cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  place-items: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nav__toggle:hover { background: rgba(255,255,255,0.04); }

.nav__toggle-icon {
  position: relative;
  width: 18px;
  height: 14px;
  display: block;
}
.nav__toggle-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.65, 0.05, 0.36, 1),
              opacity 0.25s ease,
              top 0.35s cubic-bezier(0.65, 0.05, 0.36, 1);
  transform-origin: center;
}
.nav__toggle-bar:nth-child(1) { top: 0; }
.nav__toggle-bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav__toggle-bar:nth-child(3) { top: 100%; transform: translateY(-100%); }

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__toggle { display: grid; }
  .nav__cta .btn:not(.nav__toggle) { display: none; }

  .nav__links.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: rgba(6, 7, 12, 0.97);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-height: calc(100svh - var(--header-h) - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .nav__links.is-open a {
    padding: 12px 16px;
    font-size: 15px;
    justify-content: flex-start;
  }
  body.nav-open { overflow: hidden; }

  /* Flyout: collapsed by default in mobile, expand when .is-sub-open on parent */
  .nav__links.is-open .nav__flyout {
    position: static;
    transform: none;
    width: auto;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    backdrop-filter: none;
    transition: opacity 200ms ease, max-height 280ms ease, padding 200ms ease;
  }
  .nav__links.is-open .nav__item--has-menu.is-sub-open .nav__flyout {
    opacity: 1;
    visibility: visible;
    max-height: 400px;
    pointer-events: auto;
    padding: 4px 0 4px 14px;
    margin-left: 6px;
    border-left: 1px solid var(--border);
  }
  .nav__links.is-open .nav__flyout-header { display: none; }
  .nav__links.is-open .nav__flyout::before { display: none; }

  /* Caret rotates in mobile when sub is open */
  .nav__item--has-menu > a .nav__caret { display: inline-block; }
  .nav__item--has-menu.is-sub-open > a .nav__caret { transform: rotate(180deg); }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: calc(var(--header-h) + clamp(48px, 7vw, 88px)) clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
  border-top: none;
  min-height: min(100vh, 760px);
  display: flex;
  align-items: center;
}
@media (min-width: 1400px) {
  .hero {
    min-height: auto;
    padding-block: calc(var(--header-h) + 64px) 72px;
  }
}
@media (max-width: 720px) {
  .hero {
    min-height: auto;
    padding-block: calc(var(--header-h) + 32px) 48px;
  }
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(90% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(90% 60% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  gap: clamp(36px, 6vw, 60px);
  position: relative;
}

.hero__title {
  font-size: clamp(38px, 6.5vw, 96px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
  max-width: 15ch;
  /* Reserve space for up to 2 lines so lead below doesn't jump while typing */
  min-height: calc(clamp(38px, 6.5vw, 96px) * 0.95 * 2);
}

.hero__title .line {
  display: block;
  overflow: visible;
}

.hero__title .line > span {
  display: inline-block;
}

/* =========================================================
   Typewriter — JS-driven
   ========================================================= */
.typewriter { display: inline; }
.tw-text { color: var(--text-primary); white-space: pre-wrap; }
.tw-text .accent {
  font-family: inherit;
  font-style: normal;
  color: var(--brand-400);
  font-weight: 700;
}
.tw-caret {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-left: 4px;
  vertical-align: -0.12em;
  background: var(--brand-400);
  animation: twCaret 0.85s step-end infinite;
}
@keyframes twCaret {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tw-caret { animation: none; opacity: 0; }
}

.hero__title .accent {
  font-family: inherit;
  font-style: normal;
  color: var(--brand-400);
  font-weight: 700;
}

.hero__mark {
  position: absolute;
  top: 50%;
  right: max(var(--gutter, 24px), calc((100vw - var(--container)) / 2 + var(--gutter, 24px)));
  transform: translateY(-50%);
  width: clamp(280px, 36vw, 520px);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  /* Paint the PNG alpha as solid blue — thin & clean, no jitter */
  background-color: var(--brand-500, #3b82f6);
  -webkit-mask-image: url("../assets/jonnpo-sombra.png");
          mask-image: url("../assets/jonnpo-sombra.png");
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
}
.hero__mark img { display: none; }
@media (max-width: 900px) {
  .hero__mark { display: none; }
}

.hero__lead {
  max-width: 56ch;
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--text-secondary);
  line-height: 1.55;
}

.hero__meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__scroll svg {
  animation: scroll-pulse 1.8s var(--ease-in-out) infinite;
}

@keyframes scroll-pulse {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(4px); opacity: 1; }
}

@media (max-width: 720px) {
  .hero__meta { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- Stats strip ---------- */
.stats {
  padding-block: clamp(60px, 7vw, 90px);
  border-top: 1px solid var(--border);
}

.stats__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: end;
}

.stats__intro {
  max-width: 32ch;
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--text-secondary);
  line-height: 1.55;
  padding-right: 24px;
  border-right: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat__value {
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-primary);
  font-feature-settings: 'ss01';
}
.stat__value .num { font-weight: 700; }

.stat__value .unit {
  color: var(--brand-400);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .stats__inner { grid-template-columns: 1fr 1fr; }
  .stats__intro {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 24px;
  }
}

/* ---------- Section heads ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.section-head__title {
  font-size: clamp(40px, 5.5vw, 88px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
  max-width: 14ch;
}

.section-head__lead {
  max-width: 44ch;
  color: var(--text-secondary);
  font-size: clamp(15px, 1.15vw, 17px);
}

@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; }
}

/* ---------- Portfolio ---------- */
.portfolio {
  padding-block: clamp(80px, 10vw, 140px);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.case {
  grid-column: span 6;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition:
    border-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
  cursor: pointer;
}

.case:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.case:hover .case__visual-inner { transform: scale(1.02); }
.case:hover .case__arrow { transform: translate(4px, -4px); color: var(--brand-300); }

.case--wide { grid-column: span 12; }
.case--tall { grid-column: span 6; }

.case__visual {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: var(--ink-800);
}

.case--wide .case__visual { aspect-ratio: 21 / 9; }

.case__visual-inner {
  position: absolute;
  inset: 0;
  transition: transform 800ms var(--ease-out);
}

.case__body {
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 24px;
  align-items: end;
}

.case__tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.case__title {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 18ch;
}

.case__desc {
  grid-column: 1 / -1;
  max-width: 58ch;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.case__arrow {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  transition:
    transform var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
  flex-shrink: 0;
  align-self: end;
}

@media (max-width: 840px) {
  .case, .case--wide, .case--tall { grid-column: span 12; }
}

/* ---------- Clients ---------- */
.clients {
  padding-block: clamp(72px, 8vw, 120px);
  border-top: 1px solid var(--border);
}
.clients__head {
  max-width: 760px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  text-align: center;
}
.clients__head .eyebrow { margin-bottom: 16px; justify-content: center; }
.clients__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--text-primary);
}
.clients__lead {
  color: var(--text-secondary);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 580px;
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-card);
}
.client-logo {
  display: grid;
  place-items: center;
  padding: clamp(18px, 2vw, 24px) 20px;
  height: clamp(120px, 13vw, 140px);
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  text-align: center;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, opacity 0.3s ease;
  opacity: 0.85;
}
.client-logo img {
  display: block;
  max-width: 100%;
  max-height: 54px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.client-logo--tall img {
  max-height: 72px;
}
.client-logo--small img {
  max-height: 38px;
}
.client-logo--color img {
  filter: none;
}
.client-logo--invert-smart img {
  filter: invert(1) hue-rotate(180deg);
}
.client-logo:hover {
  background: var(--bg-elev);
  opacity: 1;
}
.client-logo:hover img {
  transform: scale(1.04);
}
.client-logo:nth-child(3n) { border-right: 0; }
.client-logo:nth-last-child(-n+3) { border-bottom: 0; }

.clients__footnote {
  margin-top: clamp(24px, 3vw, 36px);
  text-align: center;
  color: var(--text-tertiary);
  font-size: 14px;
}

@media (max-width: 720px) {
  .clients__grid { grid-template-columns: repeat(2, 1fr); }
  .client-logo { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .client-logo:nth-child(3n) { border-right: 1px solid var(--border); }
  .client-logo:nth-child(2n) { border-right: 0; }
  .client-logo:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .client-logo:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- Methodology ---------- */
.methodology {
  padding-block: clamp(80px, 10vw, 140px);
  background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.04) 30%, transparent);
}

.method__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.method {
  padding: clamp(28px, 3vw, 40px);
  background: var(--bg-card);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 16px;
  min-height: 280px;
  position: relative;
  transition: background-color var(--dur-base) var(--ease-out);
}

.method:hover { background: var(--bg-elev); }

.method__icon {
  position: absolute;
  top: clamp(20px, 2vw, 28px);
  right: clamp(20px, 2vw, 28px);
  width: clamp(56px, 5vw, 72px);
  height: clamp(56px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.14);
  pointer-events: none;
  transition: color var(--dur-base) var(--ease-out);
}
.method:hover .method__icon {
  color: rgba(255, 255, 255, 0.22);
}

.method__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.method__title {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.method__desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
  max-width: 44ch;
}

.method__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-400);
}

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

/* ---------- Method badge (PROPRIETÁRIA) — lateral label ---------- */
.method-title-wrap {
  position: relative;
  display: inline-block;
  padding-right: 0;
}
.method-badge {
  position: absolute;
  top: 100%;
  left: calc(100% + 18px);
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.18em;
  font-weight: 600;
  letter-spacing: 0.22em;
  padding: 10px 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-400));
  color: #fff;
  box-shadow: 0 6px 24px -8px rgba(59,130,246,0.6);
  white-space: nowrap;
  line-height: 1;
}
@media (max-width: 720px) {
  .method-title-wrap {
    display: inline;
    padding-right: 0;
  }
  .method-badge {
    position: static;
    display: inline-block;
    transform: none;
    writing-mode: horizontal-tb;
    font-size: 10px;
    letter-spacing: 0.18em;
    padding: 4px 10px;
    border-radius: 999px;
    margin-left: 10px;
    vertical-align: middle;
    line-height: 1.2;
  }
}

/* ---------- Plans ---------- */
.plans {
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--border);
}

.plans__head {
  max-width: 780px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.plans__head .eyebrow { margin-bottom: 18px; }
.plans__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--text-primary);
}
.plans__lead {
  color: var(--text-secondary);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
  max-width: 620px;
  margin: 0;
}

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

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(26px, 2.6vw, 36px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.plan:hover {
  background: var(--bg-elev);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}
.plan { cursor: pointer; }
.plan .plan__cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.plan__ribbon { position: relative; z-index: 2; }

.plan--featured {
  background: linear-gradient(160deg, rgba(59,130,246,0.12), rgba(59,130,246,0.03) 60%, var(--bg-card));
  border-color: rgba(59,130,246,0.35);
  box-shadow: 0 30px 80px -40px rgba(59,130,246,0.6);
}
.plan--featured:hover {
  border-color: rgba(59,130,246,0.55);
  background: linear-gradient(160deg, rgba(59,130,246,0.16), rgba(59,130,246,0.04) 60%, var(--bg-elev));
}

.plan__ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand-500);
  color: #fff;
}

.plan__head { display: flex; flex-direction: column; gap: 10px; }
.plan__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.plan__name {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}
.plan--featured .plan__name { color: var(--brand-300); }

.plan__audience {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.plan__audience strong { color: var(--text-primary); font-weight: 500; }

.plan__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan__list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 2px;
  background: var(--brand-400);
  border-radius: 2px;
}

.plan__cta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 500;
}

.plans__lead-accent {
  display: inline-block;
  color: #fff;
  font-weight: 600;
  font-size: 1.08em;
  letter-spacing: -0.005em;
  background: linear-gradient(120deg, rgba(59,130,246,0.45), rgba(37,99,235,0.22) 70%);
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid rgba(96,165,250,0.4);
  box-shadow: 0 4px 20px -6px rgba(59,130,246,0.5);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Plans callout (Fale Conosco) ---------- */
.plans__callout {
  position: relative;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(28px, 3.5vw, 44px) clamp(28px, 3.5vw, 48px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 2.6vw, 36px);
  background:
    radial-gradient(120% 200% at 0% 0%, rgba(59,130,246,0.22), transparent 55%),
    linear-gradient(135deg, #0f1a36 0%, #0a1124 60%, #0e1220 100%);
  border: 1px solid rgba(59,130,246,0.35);
  border-radius: 22px;
  box-shadow:
    0 30px 80px -40px rgba(59,130,246,0.55),
    inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
}
.plans__callout::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(80% 120% at 100% 50%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(80% 120% at 100% 50%, #000 20%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}

.plans__callout-mark {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-400));
  color: #fff;
  box-shadow: 0 12px 32px -12px rgba(59,130,246,0.7);
}

.plans__callout-body {
  position: relative;
  min-width: 0;
}
.plans__callout-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-300);
  margin-bottom: 8px;
}
.plans__callout-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 6px;
  color: var(--text-primary);
}
.plans__callout-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 56ch;
}

.plans__callout-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  background: #fff;
  color: #0a1124;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 14px 40px -14px rgba(255,255,255,0.35);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.plans__callout-cta:hover {
  transform: translateY(-2px);
  background: #f4f7ff;
  box-shadow: 0 20px 48px -16px rgba(255,255,255,0.45);
}
.plans__callout-cta .arrow {
  font-size: 18px;
  transition: transform 180ms ease;
}
.plans__callout-cta:hover .arrow { transform: translate(2px, -2px); }

@media (max-width: 820px) {
  .plans__callout {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .plans__callout-cta { justify-self: start; }
}

@media (max-width: 1100px) {
  .plans__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .plans__grid { grid-template-columns: 1fr; }
  .plan--featured { order: -1; }
}

/* ---------- Ecosystem ---------- */
.ecosystem__manifesto {
  position: relative;
  margin-bottom: clamp(40px, 5vw, 64px);
  padding: clamp(28px, 3.2vw, 40px) clamp(28px, 3.2vw, 44px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 2.4vw, 32px);
  align-items: start;
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(59,130,246,0.02) 60%, transparent);
  border: 1px solid rgba(59,130,246,0.22);
  border-left: 3px solid var(--brand-500);
  border-radius: 18px;
}
.ecosystem__manifesto-mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-400));
  color: #fff;
  box-shadow: 0 12px 32px -14px rgba(59,130,246,0.6);
  flex-shrink: 0;
}
.ecosystem__manifesto-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-300);
  margin-bottom: 10px;
}
.ecosystem__manifesto-text {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 78ch;
}
.ecosystem__manifesto-text strong {
  color: var(--text-primary);
  font-weight: 500;
}
@media (max-width: 720px) {
  .ecosystem__manifesto { grid-template-columns: 1fr; }
}

.ecosystem__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
}

.product-card {
  padding: clamp(28px, 3vw, 40px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}

.product-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.product-card:has(> .link-arrow:not(.link-arrow--muted)) {
  cursor: pointer;
}
.product-card > .link-arrow:not(.link-arrow--muted)::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.product-card > .product-card__visual {
  pointer-events: none;
}

.product-card__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.product-card__headline {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 22ch;
}

.product-card__desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
  max-width: 42ch;
}

.product-card__visual {
  position: absolute;
  right: -10%;
  bottom: -20%;
  width: 65%;
  aspect-ratio: 1;
  opacity: 0.7;
  pointer-events: none;
  transition: transform var(--dur-slow) var(--ease-out);
}

.product-card:hover .product-card__visual {
  transform: translate(-8px, -8px) rotate(-4deg);
}

.product-card--jom   { background: linear-gradient(135deg, #0a2318, var(--bg-card) 60%); }
.product-card--tiq   { background: linear-gradient(135deg, #0a1a3a, var(--bg-card) 60%); }
.product-card--pro   { background: linear-gradient(135deg, #1a0d2c, var(--bg-card) 60%); }

@media (max-width: 900px) {
  .ecosystem__grid { grid-template-columns: 1fr; }
  .product-card { min-height: unset; }
}

/* ---------- CTA ---------- */
.cta {
  padding-block: clamp(100px, 12vw, 160px);
}

.cta__inner {
  position: relative;
  padding: clamp(32px, 4.5vw, 56px) clamp(32px, 6vw, 80px);
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(60% 80% at 80% 20%, rgba(96, 165, 250, 0.25), transparent 70%),
    radial-gradient(80% 80% at 10% 100%, rgba(37, 99, 235, 0.25), transparent 70%),
    linear-gradient(180deg, #0d1530, #0a0f1d);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  text-align: left;
  display: grid;
  gap: 40px;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
}

.cta__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(80% 80% at 0% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(80% 80% at 0% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}

.cta__title {
  font-size: clamp(44px, 6vw, 96px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
  position: relative;
}

.cta__title .serif {
  color: var(--brand-300);
}

.cta__left {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.cta__perks--stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cta__perks--stack li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cta__perks--stack li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-400);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.cta__right {
  display: grid;
  gap: 28px;
  position: relative;
}

.cta__lead {
  color: var(--text-secondary);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.55;
  max-width: 42ch;
}

.cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cta__perks span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta__perks span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-400);
}

/* ---------- Contact form ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) {
  .contact-form__row { grid-template-columns: 1fr; }
}
.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-form__field input,
.contact-form__field textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}
.contact-form__field input:hover,
.contact-form__field textarea:hover {
  border-color: rgba(255, 255, 255, 0.18);
}
.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--brand-400);
  background: rgba(59, 130, 246, 0.05);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}
.contact-form__field textarea::placeholder,
.contact-form__field input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}
.contact-form__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.contact-form__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.contact-form__wa {
  display: inline-block;
}
.contact-form__status {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  min-height: 18px;
}
.contact-form__status[data-kind="error"]   { color: #f87171; }
.contact-form__status[data-kind="success"] { color: #4ade80; }

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

/* ---------- Footer ---------- */
.site-footer {
  padding-block: clamp(60px, 7vw, 90px) 40px;
  border-top: 1px solid var(--border);
  background: var(--ink-900);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer__brand { max-width: 38ch; }
.footer__brand p { color: var(--text-secondary); font-size: 14px; margin-top: 16px; }

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer__col a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer__col a:hover { color: var(--text-primary); }

.footer__col .contact-line {
  display: grid;
  gap: 2px;
}
.footer__col .contact-line small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer__col .contact-line a {
  color: var(--text-primary);
  font-size: 14px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.footer__bottom a { color: var(--text-secondary); }
.footer__bottom a:hover { color: var(--text-primary); }

.footer__legal { display: flex; gap: 24px; flex-wrap: wrap; }

.footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}
.footer__credit strong {
  color: var(--text-primary);
  font-weight: 600;
}
.footer__heart {
  display: inline-block;
  color: #ef4444;
  animation: heart-pulse 1.6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes heart-pulse {
  0%, 100% { transform: scale(1); }
  30%      { transform: scale(1.22); }
  60%      { transform: scale(0.96); }
}
@media (prefers-reduced-motion: reduce) {
  .footer__heart { animation: none; }
}

@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- Large wordmark ---------- */
.mega {
  padding-block: clamp(40px, 6vw, 80px) 0;
  overflow: hidden;
  text-align: center;
  position: relative;
}

.mega__logo {
  display: block;
  margin: 0 auto;
  height: auto;
  width: clamp(260px, 36vw, 520px);
  max-width: 80%;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.mega__text {
  font-family: var(--font-display);
  font-size: clamp(120px, 22vw, 320px);
  line-height: 0.85;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  text-align: center;
  white-space: nowrap;
  user-select: none;
  margin-top: clamp(-115px, -12vw, -75px);
  position: relative;
  z-index: 1;
}
