@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@700;800&family=Inter:wght@400;600&display=swap');

:root {
  --ink: #14131A;
  --charcoal: #22212B;
  --paper: #F4F1EA;
  --magenta: #E5397D;
  --stone: #8B8792;
  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;
  --section-pad: clamp(4rem, 8vw, 8rem);
  --max-width: 1200px;
  --hairline: 1px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { opacity: 0.8; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 800;
}

h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; }

p + p { margin-top: 1rem; }

ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.4rem; }

/* Surfaces */
.surface-ink { background-color: var(--ink); color: var(--paper); }
.surface-paper { background-color: var(--paper); color: var(--ink); }
.surface-charcoal { background-color: var(--charcoal); color: var(--paper); }
.surface-magenta { background-color: var(--magenta); color: var(--paper); }

/* Eyebrow */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--magenta);
}

.surface-ink .eyebrow,
.surface-charcoal .eyebrow { color: var(--magenta); }

/* Layout */
.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-pad);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}

body.home .site-header {
  background-color: transparent;
}

body.home .site-header.is-scrolled,
.site-header.is-scrolled {
  background-color: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(20, 19, 26, 0.08);
}

body:not(.home) .site-header {
  background-color: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(20, 19, 26, 0.08);
}

body:not(.home) .site-header .nav-link {
  color: var(--ink);
}

.site-header.is-scrolled .nav-link { color: var(--ink); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem;
  max-width: calc(var(--max-width) + 2.5rem);
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list li {
  margin: 0;
}

.nav-link {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid currentColor;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Hero Viewfinder */
.hero-viewfinder {
  position: relative;
  min-height: 96vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-viewfinder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/images/campaignscope-01-hero-studio.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-viewfinder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,19,26,0.55) 0%, rgba(20,19,26,0.75) 50%, rgba(20,19,26,0.92) 100%);
  z-index: 1;
}

.hero-frame {
  position: absolute;
  inset: 1.5rem;
  pointer-events: none;
  z-index: 3;
}

.hero-bracket-tl,
.hero-bracket-tr,
.hero-bracket-bl,
.hero-bracket-br {
  position: absolute;
  width: 48px;
  height: 48px;
  border-color: var(--magenta);
  border-style: solid;
  opacity: 0.7;
}

.hero-bracket-tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.hero-bracket-tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.hero-bracket-bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.hero-bracket-br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.hero-reticle {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  z-index: 3;
  opacity: 0.35;
}

.hero-reticle::before,
.hero-reticle::after {
  content: '';
  position: absolute;
  background: var(--magenta);
}

.hero-reticle::before {
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  transform: translateY(-50%);
}

.hero-reticle::after {
  left: 50%;
  top: 10%;
  bottom: 10%;
  width: 1px;
  transform: translateX(-50%);
}

.hero-aperture {
  position: absolute;
  top: 2.5rem;
  right: 3.5rem;
  width: 40px;
  height: 40px;
  border: 1px solid var(--magenta);
  border-radius: 50%;
  opacity: 0.25;
  z-index: 3;
}

.hero-aperture::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--magenta);
  border-radius: 50%;
  opacity: 0.5;
}

.hero-topbar {
  position: relative;
  z-index: 4;
  padding: 6rem 2.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: var(--hairline) solid rgba(229, 57, 125, 0.4);
  max-width: calc(var(--max-width) + 5rem);
  margin-inline: auto;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 4;
  padding: 3rem 2.5rem 2rem;
  max-width: calc(var(--max-width) + 5rem);
  margin-inline: auto;
  width: 100%;
}

.hero-content h1 {
  max-width: 14ch;
  margin-top: 1rem;
}

.hero-sub {
  margin-top: 1.5rem;
  max-width: 540px;
  font-size: 1.05rem;
  opacity: 0.85;
  line-height: 1.7;
}

.focus-underline {
  position: relative;
  display: inline;
}

.focus-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.05em;
  width: 100%;
  height: 2px;
  background: var(--magenta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s ease;
}

.js .focus-underline.is-drawn::after,
.no-js .focus-underline::after {
  transform: scaleX(1);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-trust {
  position: relative;
  z-index: 4;
  padding: 1rem 2.5rem 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--stone);
  max-width: calc(var(--max-width) + 5rem);
  margin-inline: auto;
  width: 100%;
  border-top: var(--hairline) solid rgba(139, 135, 146, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
  background-color: var(--magenta);
  color: var(--paper);
  border-color: var(--magenta);
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 20px rgba(229, 57, 125, 0.3);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}

.btn-outline:hover {
  filter: brightness(1.15);
  opacity: 1;
}

/* Stats */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-block: 3rem;
  border-bottom: var(--hairline) solid rgba(20, 19, 26, 0.1);
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--magenta);
  line-height: 1;
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--stone);
}

/* Pillars */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.pillar-card {
  position: relative;
  padding: 2rem 1.5rem;
  border: var(--hairline) solid rgba(20, 19, 26, 0.12);
}

.pillar-card::before,
.pillar-card::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--magenta);
  border-style: solid;
  opacity: 0.5;
}

.pillar-card::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.pillar-card::after { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }

/* Service cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  position: relative;
  padding: 2.5rem 2rem;
  border: var(--hairline) solid rgba(244, 241, 234, 0.15);
  overflow: hidden;
}

.service-serial {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4rem;
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
}

/* Two column */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-reverse .split-image { order: 2; }

.split-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Work cards */
.work-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.work-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: var(--hairline) solid rgba(20, 19, 26, 0.1);
}

.work-card:last-child { border-bottom: none; }

.work-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.work-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 0.75rem;
}

/* FAQ */
.faq-list { margin-top: 2rem; }

.faq-item {
  border-bottom: var(--hairline) solid rgba(20, 19, 26, 0.1);
  padding-block: 1.5rem;
}

.faq-item summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--magenta);
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: '−'; }

.faq-answer {
  margin-top: 1rem;
  padding-right: 2rem;
  color: var(--stone);
}

.surface-paper .faq-answer { color: #55545C; }

/* CTA band */
.cta-band {
  text-align: center;
  padding-block: 5rem;
}

.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { max-width: 520px; margin-inline: auto; opacity: 0.85; }
.cta-band .btn { margin-top: 2rem; }

/* Page hero (inner pages) */
.page-hero {
  padding-top: 8rem;
  padding-bottom: 3rem;
  border-bottom: var(--hairline) solid rgba(20, 19, 26, 0.08);
}

.page-hero h1 { margin-top: 0.75rem; max-width: 20ch; }
.page-hero p { margin-top: 1.25rem; max-width: 600px; opacity: 0.8; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }

.form-group > label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(20, 19, 26, 0.2);
  background: var(--paper);
  color: var(--ink);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-check {
  display: grid;
  grid-template-columns: 1.125rem 1fr;
  gap: 0.65rem;
  align-items: start;
  width: 100%;
}

.form-check input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
}

.form-check label {
  display: block;
  margin: 0;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.6;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Disclaimer */
.disclaimer {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--stone);
  padding: 1.25rem;
  border-left: 2px solid var(--magenta);
  margin-top: 2rem;
}

.surface-ink .disclaimer,
.surface-charcoal .disclaimer { color: rgba(244, 241, 234, 0.65); }

/* Footer */
.site-footer {
  padding: 4rem 0 2rem;
  border-top: var(--hairline) solid rgba(244, 241, 234, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.footer-tagline { margin-top: 0.5rem; font-size: 0.875rem; opacity: 0.7; }

.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col li + li { margin-top: 0.5rem; }
.footer-col a { text-decoration: none; font-size: 0.9rem; }

.footer-bottom {
  padding-top: 2rem;
  border-top: var(--hairline) solid rgba(244, 241, 234, 0.1);
  font-size: 0.75rem;
  opacity: 0.55;
  line-height: 1.7;
}

/* Legal prose */
.legal-prose h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.35rem; }
.legal-prose h3 { margin-top: 1.75rem; margin-bottom: 0.75rem; font-size: 1.1rem; }
.legal-prose p, .legal-prose li { font-size: 0.95rem; }
.legal-prose > * + * { margin-top: 1rem; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1.5rem;
  box-shadow: 0 -4px 30px rgba(20, 19, 26, 0.15);
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.cookie-banner.is-hidden { transform: translateY(100%); }

.cookie-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-text { flex: 1; min-width: 260px; font-size: 0.875rem; }
.cookie-text a { text-decoration: underline; }

.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.cookie-actions .btn { padding: 0.6rem 1.2rem; font-size: 0.8rem; }

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(20, 19, 26, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

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

.cookie-modal-panel {
  width: min(100%, 480px);
  padding: 2rem;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: var(--hairline) solid rgba(20, 19, 26, 0.1);
}

.cookie-option label { font-weight: 600; font-size: 0.9rem; }

/* Reveal */
.js .reveal {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 1;
    transform: translateY(16px);
  }
  .js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Aperture section marker */
.section-marker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.aperture-ring {
  width: 24px;
  height: 24px;
  border: 1px solid var(--magenta);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.aperture-ring::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid var(--magenta);
  border-radius: 50%;
  opacity: 0.5;
}

.hairline-rule {
  flex: 1;
  height: 1px;
  background: var(--magenta);
  opacity: 0.3;
}

/* Contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-form-col {
  width: 100%;
}

.contact-form-col form {
  width: 100%;
}

.contact-info-block {
  padding: 2rem;
  border: var(--hairline) solid rgba(20, 19, 26, 0.1);
}

.contact-info-block p { font-size: 0.95rem; }
.contact-info-block p + p { margin-top: 0.75rem; }

/* 404 */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 6rem;
}

.error-page h1 { margin-top: 1rem; }
.error-page p { margin-top: 1rem; opacity: 0.7; max-width: 400px; margin-inline: auto; }

/* Thanks */
.thanks-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 6rem;
}

/* Responsive */
@media (max-width: 900px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .split, .work-card, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .split-reverse .split-image { order: 0; }
  .stat-row { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 768px) {
  .hero-viewfinder { min-height: 80vh; }
  .nav-list { display: none; }
  .nav-list.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1.5rem;
    gap: 1rem;
  }
  .site-header.is-scrolled .nav-list.is-open,
  .nav-list.is-open {
    background: var(--paper);
    color: var(--ink);
  }
  .nav-toggle { display: block; }
  .pillar-grid { grid-template-columns: 1fr; }
  .hero-topbar { flex-direction: column; gap: 0.5rem; align-items: flex-start; padding-top: 5rem; }
}
