/* ==========================================================================
   SIGNAL / MEDIA — Design System
   Dark editorial-tech aesthetic for a media buying agency
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* Color */
  --bg: #0a0a0a;
  --bg-2: #0f0f0f;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --border: #1f1f1f;
  --border-strong: #2c2c2c;
  --text: #f2f2ed;
  --text-muted: #9a9a94;
  --text-dim: #555550;
  --accent: #d4ff3a;
  --accent-dim: #a3c42c;
  --danger: #ff5a3a;

  /* Type */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Layout */
  --max-w: 1360px;
  --gutter: clamp(1.25rem, 3.5vw, 2.5rem);
  --nav-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Subtle grid overlay to give the page a tech-dashboard texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, nav, footer { position: relative; z-index: 3; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--bg); }

/* ============================== Utilities ============================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.serif { font-family: var(--font-serif); font-weight: 400; }
.italic { font-style: italic; }

.divider { border: 0; border-top: 1px solid var(--border); }

/* Section labels like [01_HERO] */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.section-label::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(212, 255, 58, 0.12);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 100px;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--text);
  transform: translateY(-1px);
}
.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn .arrow {
  transition: transform 0.3s var(--ease);
}
.btn:hover .arrow {
  transform: translateX(3px);
}

/* ============================== NAV ============================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.nav-logo .dot {
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 0;
}
.nav-logo .slash { color: var(--text-dim); font-weight: 300; }
.nav-logo .sub { color: var(--text-muted); font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
  padding: 0.4rem 0;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 16px; height: 1px;
  background: var(--text);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0; width: 100%; height: 1px;
  background: var(--text);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after  { top: 5px; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem var(--gutter) 2rem;
  }
  .nav-links.open a { font-size: 1rem; }
}

/* ============================== HERO ============================== */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-status .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.hero-status .pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3.5rem, 12vw, 10.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
}
.hero-headline .italic {
  font-style: italic;
  color: var(--accent);
}
.hero-headline .block { display: block; }

.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  align-items: end;
}
.hero-desc {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 46ch;
}
.hero-desc strong { color: var(--text); font-weight: 500; }
.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-self: end;
  flex-wrap: wrap;
}

@media (max-width: 680px) {
  .hero-meta { grid-template-columns: 1fr; }
  .hero-actions { justify-self: start; }
}

/* ============================== STATS ============================== */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(2rem, 4vw, 3rem) 0;
  background: var(--bg-2);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat {
  padding: 0 1.5rem;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-value {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.stat-value .unit {
  color: var(--accent);
  font-style: italic;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 820px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 0; }
  .stat { padding: 0 1rem; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
  .stat:nth-child(n+3) { padding-top: 1.5rem; }
}

/* ============================== SECTIONS ============================== */
section { padding: clamp(4rem, 10vw, 7rem) 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 1.5rem; }
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.section-title .italic { color: var(--accent); }

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 50ch;
}

/* ============================== SERVICES (bento) ============================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.service {
  background: var(--bg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: background 0.3s var(--ease);
  overflow: hidden;
}
.service:hover { background: var(--surface); }
.service::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.6s var(--ease);
}
.service:hover::before { width: 100%; }

.service-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}
.service-body h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
}
.service-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
}
.service-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--text-muted);
}

/* Bento sizing */
.service.wide { grid-column: span 3; }
.service.third { grid-column: span 2; }
.service.half { grid-column: span 3; }
.service.tall { grid-row: span 2; grid-column: span 2; }
.service.feature {
  grid-column: span 4;
  background: var(--surface);
}
.service.feature h3 {
  font-size: clamp(2rem, 3vw, 2.6rem);
}
.service.feature .accent {
  color: var(--accent);
  font-style: italic;
}

@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service.wide, .service.third, .service.half, .service.tall, .service.feature {
    grid-column: span 2;
    grid-row: auto;
  }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .service.wide, .service.third, .service.half, .service.tall, .service.feature {
    grid-column: span 1;
  }
}

/* ============================== PROCESS ============================== */
.process { background: var(--bg-2); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-strong) 10%, var(--border-strong) 90%, transparent);
}
.step {
  position: relative;
  padding-top: 3rem;
}
.step-num {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.step:first-child .step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.step h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.step p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (max-width: 820px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
}
@media (max-width: 520px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ============================== PLATFORMS ============================== */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.platform {
  background: var(--bg);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  aspect-ratio: 1.3;
  transition: background 0.3s var(--ease);
}
.platform:hover { background: var(--surface); }
.platform-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.platform-icon {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  color: var(--text);
  opacity: 0.7;
  transition: color 0.3s, opacity 0.3s;
}
.platform:hover .platform-icon { color: var(--accent); opacity: 1; }
.platform:hover .platform-name { color: var(--text); }

@media (max-width: 820px) { .platforms-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .platforms-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================== TESTIMONIAL / CTA ============================== */
.testimonial {
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}
.testimonial blockquote {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 2.5rem;
}
.testimonial blockquote .quote-mark {
  color: var(--accent);
  font-style: italic;
}
.testimonial-attr {
  display: inline-flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.testimonial-attr strong { color: var(--text); font-weight: 500; }

/* Closing CTA */
.cta-section {
  border-top: 1px solid var(--border);
  padding: clamp(4rem, 8vw, 6rem) 0;
  position: relative;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: end;
}
.cta-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.cta-title .italic { color: var(--accent); }
.cta-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}
.cta-right p {
  color: var(--text-muted);
  max-width: 38ch;
}
@media (max-width: 820px) {
  .cta-inner { grid-template-columns: 1fr; }
}

/* ============================== ABOUT page ============================== */
.about-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(3rem, 5vw, 4rem);
}
.about-hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
  max-width: 14ch;
}
.about-hero h1 .italic { color: var(--accent); }
.about-hero-desc {
  max-width: 58ch;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-muted);
}

.approach {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 820px) { .approach { grid-template-columns: 1fr; } }
.approach-label { position: sticky; top: calc(var(--nav-h) + 2rem); }
.approach h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}
.approach p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.approach p strong { color: var(--text); font-weight: 500; }

/* Principles */
.principles { background: var(--bg-2); }
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.principle {
  background: var(--bg-2);
  padding: 2.5rem 2rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.principle-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}
.principle h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.principle p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
@media (max-width: 820px) { .principles-grid { grid-template-columns: 1fr; } }

/* Leadership simple */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.person {
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.3s;
}
.person:hover { border-color: var(--border-strong); }
.person-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--bg);
  margin-bottom: 1.5rem;
}
.person h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}
.person-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.person-bio {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
@media (max-width: 820px) { .leadership-grid { grid-template-columns: 1fr; } }

/* ============================== CONTACT page ============================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-left h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.contact-left h1 .italic { color: var(--accent); }
.contact-left > p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 46ch;
  margin-bottom: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}
.contact-item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: 1px solid var(--border); }
.contact-item-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.contact-item-value {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text);
}
.contact-item-value a:hover { color: var(--accent); }

/* Form */
.form {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row { display: grid; gap: 1.25rem; }
.form-row.split { grid-template-columns: 1fr 1fr; }
@media (max-width: 540px) { .form-row.split { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field label .req { color: var(--accent); }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-2);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239a9a94' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-submit {
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  transition: all 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.form-submit:hover { background: var(--text); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.6; cursor: wait; }

.form-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  display: none;
}
.form-status.success {
  display: block;
  color: var(--accent);
  background: rgba(212, 255, 58, 0.08);
  border: 1px solid rgba(212, 255, 58, 0.3);
}
.form-status.error {
  display: block;
  color: var(--danger);
  background: rgba(255, 90, 58, 0.08);
  border: 1px solid rgba(255, 90, 58, 0.3);
}

/* ============================== FOOTER ============================== */
.footer {
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 5vw, 4rem) 0 2rem;
  background: var(--bg-2);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand .nav-logo {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 32ch;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-col a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p,
.footer-bottom a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.footer-socials { display: flex; gap: 1.25rem; }
.footer-socials a:hover { color: var(--accent); }

@media (max-width: 820px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ============================== Reveal animation ============================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
