:root {
  --accent: #CCFF00;
  --ink: #0a0a0a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
  background: #ffffff;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { text-decoration: none; }

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

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

@keyframes fl-spin {
  to { transform: rotate(360deg); }
}

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

/* ---------- NAV ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 72px);
  position: relative;
  z-index: 20;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.nav-brand-mark {
  width: 13px;
  height: 13px;
  background: var(--accent);
  display: inline-block;
  transform: rotate(45deg);
}

.nav-brand-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

a.nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 11px 18px;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% 64%, calc(100% - 11px) 100%, 0 100%);
  transition: background 0.2s ease, color 0.2s ease;
}

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

@media (max-width: 640px) {
  .nav {
    flex-wrap: wrap;
    row-gap: 14px;
    padding: 18px 20px;
  }

  .nav-brand-name {
    font-size: 18px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
  }

  a.nav-cta {
    padding: 9px 14px;
  }
}

@media (max-width: 380px) {
  .nav-links {
    flex-wrap: wrap;
    row-gap: 10px;
    font-size: 11px;
  }

  a.nav-cta {
    padding: 8px 12px;
  }
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) clamp(20px, 5vw, 72px) clamp(70px, 9vw, 150px);
  overflow: hidden;
}

.hero-grain {
  display: block;
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.38;
  pointer-events: none;
  z-index: 1;
}

.hero-asterisk {
  position: absolute;
  top: clamp(-150px, -9vw, -70px);
  right: clamp(-130px, -6vw, -40px);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(200px, 28vw, 470px);
  line-height: 0.7;
  color: var(--accent);
  opacity: 0.9;
  z-index: 0;
  animation: fl-spin 26s linear infinite;
  transform-origin: center;
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 1400px;
}

.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: clamp(20px, 3vw, 40px);
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  display: inline-block;
}

.hero-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(46px, 9vw, 158px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0;
  max-width: 16ch;
  padding-bottom: 0.08em;
}

.hero-title-highlight {
  display: inline-block;
  background: var(--accent);
  padding: 0 0.12em 0.04em;
  transform: rotate(-2.5deg);
  margin: 0 0.05em;
}

.hero-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 90px);
  margin-top: clamp(48px, 6vw, 80px);
  align-items: flex-end;
  justify-content: space-between;
}

.hero-copy {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: #3a3a3a;
  max-width: 44ch;
  margin: 0;
  margin-left: auto;
  order: 2;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  order: 1;
}

.btn-primary {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 17px;
  background: var(--ink);
  color: #fff;
  padding: 18px 30px;
  clip-path: polygon(0 0, 100% 0, 100% 68%, calc(100% - 16px) 100%, 0 100%);
  display: inline-block;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--ink);
}

.link-underline {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 3px;
  transition: border-bottom-color 0.2s ease;
}

.link-underline:hover {
  border-bottom-color: var(--accent);
}

/* ---------- WHAT WE DO ---------- */

.work-section {
  padding: clamp(50px, 8vw, 120px) clamp(20px, 5vw, 72px);
  border-top: 2px solid var(--ink);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.eyebrow--plain {
  margin-bottom: 0;
  font-size: 12px;
}

.section-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 14ch;
}

.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 2vw, 30px);
  align-items: flex-start;
}

.tile {
  flex: 1 1 280px;
  padding: 32px 30px 38px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tile-number {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.tile-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-top: auto;
}

.tile-copy {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  margin: 16px 0 0;
}

.tile--dark {
  background: var(--ink);
  color: #fff;
  transform: rotate(-1.6deg);
}

.tile--dark .tile-copy { color: #bdbdbd; }

.tile--dark:hover {
  transform: rotate(-1.6deg) translateY(-10px);
  box-shadow: 14px 14px 0 var(--accent);
}

.tile--accent {
  background: var(--accent);
  color: var(--ink);
  transform: rotate(1.4deg) translateY(22px);
}

.tile--accent .tile-copy { color: #1f2a00; }

.tile--accent:hover {
  transform: rotate(1.4deg) translateY(12px);
  box-shadow: 14px 14px 0 var(--ink);
}

.tile--outline {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
  transform: rotate(-0.8deg) translateY(6px);
}

.tile--outline .tile-copy { color: #555; }

.tile--outline:hover {
  transform: rotate(-0.8deg) translateY(-10px);
  box-shadow: 14px 14px 0 var(--ink);
}

/* ---------- WHY ---------- */

.why-section {
  padding: clamp(50px, 8vw, 120px) clamp(20px, 5vw, 72px);
  background: var(--ink);
  color: #fff;
}

.eyebrow--accent {
  color: var(--accent);
  margin-bottom: clamp(40px, 6vw, 80px);
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: clamp(34px, 5vw, 72px);
}

.why-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 18px 28px;
}

.why-row--reverse {
  margin-left: auto;
  flex-direction: row-reverse;
  text-align: right;
  justify-content: flex-start;
}

.why-stat {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.why-caption {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7d7d7d;
  max-width: 24ch;
}

/* ---------- MARQUEE ---------- */

.marquee {
  overflow: hidden;
  white-space: nowrap;
  background: var(--accent);
  color: var(--ink);
  padding: 16px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.marquee-track {
  display: inline-block;
  animation: fl-marquee 22s linear infinite;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.marquee-chunk {
  padding: 0 28px;
}

/* ---------- FOOTER ---------- */

.footer {
  background: var(--ink);
  color: #fff;
  padding: clamp(50px, 7vw, 96px) clamp(20px, 5vw, 72px) clamp(28px, 3vw, 48px);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(40px, 6vw, 80px);
}

.footer-cta {
  max-width: 34ch;
}

.footer-heading {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.footer-email {
  display: inline-block;
  margin-top: 22px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 17px;
  background: var(--accent);
  color: var(--ink);
  padding: 16px 28px;
  clip-path: polygon(0 0, 100% 0, 100% 68%, calc(100% - 14px) 100%, 0 100%);
  transition: background 0.2s ease;
}

.footer-email:hover {
  background: #fff;
}

.footer-links {
  display: flex;
  gap: clamp(36px, 6vw, 80px);
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-title {
  color: #7d7d7d;
}

.footer-col a {
  color: #fff;
  transition: color 0.2s ease;
}

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

.footer-wordmark {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(64px, 19vw, 320px);
  line-height: 0.8;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 48px);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7d7d7d;
}

.footer-email {
  font: inherit;
  border: none;
  cursor: pointer;
  appearance: none;
}

/* ---------- LEAD-CAPTURE MODAL ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 14px 14px 0 var(--accent);
  padding: clamp(32px, 5vw, 48px);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  font-size: 16px;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: var(--accent);
  color: var(--ink);
}

.modal-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  max-width: 22ch;
}

.modal-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #555;
  margin: 0 0 30px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
}

.form-label input,
.form-label select,
.form-label textarea {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  padding: 13px 14px;
  outline: none;
  transition: box-shadow 0.2s ease;
}

.form-label textarea {
  resize: vertical;
  min-height: 96px;
}

.form-label input:focus,
.form-label select:focus,
.form-label textarea:focus {
  box-shadow: 5px 5px 0 var(--accent);
}

.modal-submit {
  margin-top: 6px;
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

.modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-status {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  padding: 14px 16px;
}

.modal-status--success {
  background: var(--accent);
  color: var(--ink);
}

.modal-status--error {
  background: #fff;
  border: 2px solid var(--ink);
  color: #b00020;
}
