/* =========================================================
   PULSE — Performance marketing agency
   Dark mode + electric lime + Space Grotesk
   ========================================================= */

:root {
  --bg: #0a0a0a;
  --surface: #141416;
  --surface-2: #1c1c20;
  --bg-light: #f5f5f0;

  --ink: #f5f5f0;
  --ink-soft: #a8a8a3;
  --ink-mute: #6f6f6a;

  --line: rgba(245, 245, 240, 0.08);
  --line-strong: rgba(245, 245, 240, 0.16);

  --lime: #d9f24c;
  --lime-deep: #b8d72e;
  --lime-dim: rgba(217, 242, 76, 0.12);

  --radius: 4px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --max: 1320px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16.5px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--lime); color: #0a0a0a; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.mono { font-family: 'JetBrains Mono', monospace; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } body { font-size: 15.5px; } }

/* ======== HEADER ======== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.6) 60%, transparent 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 26px;
  height: 26px;
  color: var(--lime);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--lime);
  color: #0a0a0a !important;
  padding: 11px 20px;
  border-radius: 100px;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-cta:hover { background: var(--ink); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle svg { width: 24px; height: 24px; color: var(--ink); }

@media (max-width: 820px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); padding: 20px; flex-direction: column; align-items: stretch; gap: 4px; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { padding: 12px 16px; display: block; border-radius: 8px; }
  .nav-links a:hover { background: var(--surface-2); }
  .nav-cta { justify-content: center; }
  .menu-toggle { display: block; }
}

/* ======== TYPOGRAPHY ======== */
h1, h2, h3, h4, h5 {
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--ink);
}

.h-display {
  font-size: clamp(56px, 9vw, 130px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.h-section {
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.h-sub {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--lime);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--lime);
  border-radius: 100px;
  margin-bottom: 32px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(217, 242, 76, 0.18);
}

.lede {
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 56ch;
  font-weight: 400;
}

/* ======== SECTIONS ======== */
.section { padding: 140px 0; }
.section-sm { padding: 80px 0; }
@media (max-width: 720px) { .section { padding: 80px 0; } .section-sm { padding: 50px 0; } }

.section-head { margin-bottom: 80px; }
@media (max-width: 720px) { .section-head { margin-bottom: 48px; } }

.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 500;
  margin-bottom: 18px;
}

/* ======== BUTTONS ======== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 26px;
  border-radius: 100px;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.btn-primary { background: var(--lime); color: #0a0a0a; }
.btn-primary:hover { background: #fff; transform: translateY(-2px); }

.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); background: var(--surface); }

.btn-ghost { color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--ink); border-radius: 0; }
.btn-ghost:hover { color: var(--lime); border-color: var(--lime); }

.btn .arrow { transition: transform 0.2s; font-size: 16px; }
.btn:hover .arrow { transform: translateX(4px); }

/* ======== HERO ======== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 120px 0 0;
  overflow: hidden;
}

.hero-body {
  flex: 1;
  display: flex;
  align-items: center;
  padding-bottom: 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: grayscale(0.4) contrast(1.1);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(217, 242, 76, 0.18) 0%, transparent 50%),
    linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.95) 80%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero h1 {
  margin-bottom: 32px;
}

.hero h1 .accent {
  font-style: italic;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

.hero-sub {
  font-size: clamp(18px, 1.9vw, 24px);
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 48px;
  max-width: 52ch;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-meta {
  position: relative;
  z-index: 2;
  padding-bottom: 50px;
}

.hero-meta-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line-strong);
}

.hero-meta-stat .val {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.hero-meta-stat .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 6px;
}

@media (max-width: 720px) {
  .hero { min-height: 88vh; padding-top: 110px; }
  .hero-meta { margin-top: 0; }
}

/* ======== MARQUEE ======== */
.marquee {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 80px;
  animation: scroll 35s linear infinite;
  width: max-content;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  align-items: center;
  white-space: nowrap;
}

.marquee-track .dot {
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  display: inline-block;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ======== BENTO SERVICES ======== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
}

.bento-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}

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

.bento-card-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bento-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.6s;
  filter: grayscale(0.3);
}

.bento-card:hover .bento-card-img img { opacity: 0.7; transform: scale(1.04); }

.bento-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,22,0.2) 0%, rgba(20,20,22,0.92) 100%);
}

.bento-card-content {
  position: relative;
  z-index: 2;
}

.bento-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lime);
  padding: 4px 10px;
  background: rgba(217, 242, 76, 0.12);
  border-radius: 100px;
  margin-bottom: 14px;
  font-weight: 500;
}

.bento-card h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.03em;
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 10px;
}

.bento-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 38ch;
}

/* Bento layout — different sized cards for visual interest */
.bento-card:nth-child(1) { grid-column: span 4; grid-row: span 1; }
.bento-card:nth-child(2) { grid-column: span 2; grid-row: span 1; }
.bento-card:nth-child(3) { grid-column: span 2; grid-row: span 1; }
.bento-card:nth-child(4) { grid-column: span 2; grid-row: span 1; }
.bento-card:nth-child(5) { grid-column: span 2; grid-row: span 1; }
.bento-card:nth-child(6) { grid-column: span 3; grid-row: span 1; }
.bento-card:nth-child(7) { grid-column: span 3; grid-row: span 1; }

@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .bento-card:nth-child(n) { grid-column: span 1; }
  .bento-card:nth-child(1) { grid-column: span 2; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card:nth-child(n) { grid-column: span 1; }
}

/* ======== BIG STAT BLOCK ======== */
.stat-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.stat-feature-img {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.stat-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.05);
}

.stat-feature-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(10,10,10,0.3) 100%);
}

.big-stat {
  font-size: clamp(80px, 14vw, 220px);
  line-height: 0.88;
  font-weight: 600;
  letter-spacing: -0.055em;
  color: var(--lime);
  margin-bottom: 24px;
}

@media (max-width: 880px) {
  .stat-feature { grid-template-columns: 1fr; gap: 40px; }
}

/* ======== PROCESS / MANIFESTO ======== */
.manifesto {
  background: var(--bg-light);
  color: #0a0a0a;
  position: relative;
}

.manifesto h2, .manifesto .h-section { color: #0a0a0a; }
.manifesto .lede { color: rgba(10,10,10,0.65); }
.manifesto .section-tag { color: #0a0a0a; }
.manifesto .accent { color: #5a7113; }
.manifesto .eyebrow { color: #5a7113; border-color: #5a7113; }
.manifesto .eyebrow::before { background: #5a7113; box-shadow: 0 0 0 4px rgba(90, 113, 19, 0.18); }

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 60px;
  border-top: 1px solid rgba(10,10,10,0.12);
}

.manifesto-step {
  padding: 40px 30px;
  border-right: 1px solid rgba(10,10,10,0.12);
}
.manifesto-step:last-child { border-right: none; }

.manifesto-step .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: rgba(10,10,10,0.5);
  margin-bottom: 50px;
  font-weight: 500;
}

.manifesto-step h3 {
  font-size: 22px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: #0a0a0a;
}

.manifesto-step p { font-size: 14.5px; color: rgba(10,10,10,0.65); line-height: 1.5; }

@media (max-width: 980px) {
  .manifesto-grid { grid-template-columns: 1fr 1fr; }
  .manifesto-step:nth-child(2) { border-right: none; }
  .manifesto-step:nth-child(1), .manifesto-step:nth-child(2) { border-bottom: 1px solid rgba(10,10,10,0.12); }
  .manifesto-step .num { margin-bottom: 24px; }
}
@media (max-width: 520px) {
  .manifesto-grid { grid-template-columns: 1fr; }
  .manifesto-step { border-right: none; border-bottom: 1px solid rgba(10,10,10,0.12); }
  .manifesto-step:last-child { border-bottom: none; }
}

/* ======== CASE STUDIES ======== */
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.case-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.3s;
}

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

.case-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.case-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
  filter: grayscale(0.2);
}

.case-card:hover .case-card-img img { transform: scale(1.06); }

.case-card-body { padding: 32px; }

.case-card .case-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
  display: block;
}

.case-card h3 {
  font-size: 26px;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  line-height: 1.05;
}

.case-card .results {
  display: flex;
  gap: 32px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.case-card .result-val {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--lime);
  line-height: 1;
}

.case-card .result-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 6px;
}

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

/* ======== TESTIMONIALS ======== */
.testimonial-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.t-card {
  background: var(--surface);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.t-quote {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.t-quote::before {
  content: '"';
  display: block;
  font-size: 40px;
  font-weight: 600;
  color: var(--lime);
  line-height: 0.5;
  margin-bottom: 14px;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.t-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lime-dim);
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.t-name { font-size: 14.5px; font-weight: 600; }
.t-role { font-size: 13px; color: var(--ink-mute); }

@media (max-width: 880px) { .testimonial-row { grid-template-columns: 1fr; } }

/* ======== CTA SECTION ======== */
.cta-mega {
  background: var(--lime);
  color: #0a0a0a;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta-mega h2 {
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 600;
  color: #0a0a0a;
  margin-bottom: 40px;
  max-width: 14ch;
}

.cta-mega p {
  font-size: clamp(18px, 1.7vw, 22px);
  color: rgba(10,10,10,0.75);
  max-width: 50ch;
  margin-bottom: 48px;
  line-height: 1.5;
}

.cta-mega .btn-primary {
  background: #0a0a0a;
  color: var(--lime);
}
.cta-mega .btn-primary:hover { background: var(--ink); color: #0a0a0a; }

/* ======== FOOTER ======== */
footer {
  background: var(--bg);
  padding: 100px 0 36px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--line);
}

.footer-brand h3 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 24px;
  font-weight: 600;
}

.footer-brand h3 .accent { color: var(--lime); }

.footer-brand p {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 36ch;
  line-height: 1.5;
}

.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: 14.5px; transition: color 0.2s; }
.footer-col a:hover { color: var(--lime); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-mute);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--ink-mute); text-decoration: none; }
.footer-bottom-links a:hover { color: var(--ink); }

@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ======== PAGE HEADER (inner pages) ======== */
.page-header {
  padding: 180px 0 100px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: relative;
}

.page-header h1 {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 20ch;
}

.page-header h1 .accent { color: var(--lime); }
.page-header .lede { margin-top: 32px; }

/* ======== LEGAL PAGES ======== */
.legal-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  padding: 70px 0 100px;
}

.legal-nav { position: sticky; top: 120px; align-self: start; }
.legal-nav h5 { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 18px; font-weight: 500; }
.legal-nav ul { list-style: none; }
.legal-nav li { margin-bottom: 4px; }
.legal-nav a { display: block; padding: 10px 14px; text-decoration: none; color: var(--ink-soft); font-size: 14.5px; border-radius: 8px; transition: all 0.2s; }
.legal-nav a:hover { background: var(--surface); color: var(--ink); }
.legal-nav a.active { background: var(--lime-dim); color: var(--lime); font-weight: 500; }

.legal-content { max-width: 760px; }
.legal-content .updated { font-family: 'JetBrains Mono', monospace; font-size: 12px; padding: 8px 14px; background: var(--lime-dim); color: var(--lime); border-radius: 100px; display: inline-block; margin-bottom: 28px; letter-spacing: 0.03em; }
.legal-content h2 { font-size: 26px; margin: 56px 0 16px; letter-spacing: -0.03em; font-weight: 600; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { font-size: 18px; margin: 32px 0 12px; font-weight: 600; }
.legal-content p { color: var(--ink-soft); margin-bottom: 14px; line-height: 1.65; }
.legal-content ul, .legal-content ol { padding-left: 20px; margin-bottom: 18px; color: var(--ink-soft); }
.legal-content li { margin-bottom: 8px; line-height: 1.6; }
.legal-content a { color: var(--lime); text-decoration: underline; }
.legal-content a:hover { color: var(--ink); }
.legal-content strong { color: var(--ink); font-weight: 600; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14.5px; }
.legal-content th, .legal-content td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.legal-content th { background: var(--surface); font-weight: 600; font-size: 13px; color: var(--ink); }
.legal-content td { color: var(--ink-soft); }

@media (max-width: 880px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 30px; }
  .legal-nav { position: static; }
  .legal-nav ul { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 6px; }
  .legal-nav li { margin-bottom: 0; flex-shrink: 0; }
}

/* ======== CONTACT ======== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  padding: 70px 0 100px;
}

.contact-info { display: grid; gap: 28px; align-content: start; }

.contact-block h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
  font-weight: 500;
}

.contact-block p, .contact-block a {
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.4;
}

.contact-block a:hover { color: var(--lime); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11.5px; color: var(--ink-mute); font-weight: 500; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; text-transform: uppercase; }
.field input, .field textarea, .field select { padding: 14px 16px; border: 1px solid var(--line-strong); background: var(--bg); font-family: inherit; font-size: 15px; border-radius: var(--radius); color: var(--ink); width: 100%; font-weight: 400; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--lime); background: var(--surface-2); }
.field textarea { min-height: 130px; resize: vertical; }
.form-footer { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-consent { font-size: 12.5px; color: var(--ink-mute); line-height: 1.5; max-width: 38ch; }
.form-consent a { color: var(--lime); text-decoration: underline; }
.form-success { display: none; background: var(--lime-dim); border: 1px solid var(--lime); border-radius: var(--radius); padding: 16px; color: var(--lime); font-size: 14.5px; margin-top: 18px; }
.form-success.show { display: block; }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; padding: 50px 0 70px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
}

/* ======== UTILITIES ======== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.reveal.in { opacity: 1; transform: translateY(0); }
.divider { height: 1px; background: var(--line); border: none; }
