/* ============================================================
   MKT Factory — static landing page
   Typography-led, black on white, fast. Cormorant Garamond
   reserved for three accent moments: the white-label manifesto,
   the firewall line, the contact close.
   ============================================================ */

:root {
  --ink: #111111;
  --ink-soft: #444444;
  --paper: #ffffff;
  --paper-dim: #f4f4f2;
  --rule: #e3e3e0;
  --max: 1080px;
  --step: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: var(--step);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 2.5rem);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.wordmark {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark span { font-weight: 400; }

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}

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

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - 62px); /* full screen minus sticky header */
  display: flex;
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) 0;
  overflow: hidden;
}

.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none; /* text stays clickable; mouse tracked on the section */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: none; /* full-bleed poster: hero escapes the content column */
  width: 100%;
}

.hero h1 {
  font-size: clamp(3.2rem, 11.5vw, 12rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.hero-sub {
  margin-top: 2.25rem;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 52ch;
}

.hero-cta {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.9rem 1.8rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  border-radius: 2px;
}

.hero-cta:hover { background: #000; }


/* ---------- sections ---------- */

section { padding: clamp(3rem, 8vw, 6rem) 0; }

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-lead {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  max-width: 55ch;
}

/* ---------- services ---------- */

.services { border-top: 1px solid var(--rule); }

.services-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-flow: dense;
  gap: 2rem;
}

@media (min-width: 620px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service.featured { grid-column: span 2; }
}

@media (min-width: 900px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  /* featured spans 2 of 3 → row 1: Websites + AI (wide), row 2: Branding + Content + Video. No ragged row. */
}

.service {
  padding: 1.75rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
}

.service.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.service.featured p { color: #cccccc; }

.service h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.service p {
  font-size: 0.98rem;
  color: var(--ink-soft);
}

/* ---------- white-label band (serif accent moment #1) ---------- */

.whitelabel {
  background: var(--paper-dim);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.whitelabel h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.2;
  max-width: 26ch;
}

.whitelabel h2 em { font-style: italic; font-weight: 400; }

.whitelabel p {
  margin-top: 1.25rem;
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* serif accent moment #2: the firewall line */
.whitelabel .firewall {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink);
}

/* ---------- work ---------- */

.work-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.work-item { margin: 0; }

.work-item img {
  width: 100%;
  height: auto; /* neutralize the height attribute; aspect-ratio below rules */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper-dim);
  transition: transform 0.35s ease;
}

.work-item:hover img { transform: scale(1.02); }

.work-item figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.work-item .tag {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a3a39e;
  white-space: nowrap;
}

/* ---------- contact (serif accent moment #3) ---------- */

.contact {
  border-top: 1px solid var(--rule);
  text-align: center;
}

.contact h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.contact p { margin-top: 0.75rem; color: var(--ink-soft); }

.contact-email {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.15rem;
}

.contact-email:hover { opacity: 0.7; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: 1.5rem;
}

.footer-nav a:first-child { margin-left: 0; }

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

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- small screens ---------- */

@media (max-width: 560px) {
  .site-nav a { margin-left: 1rem; font-size: 0.88rem; }
  .services-grid, .work-grid { gap: 1.25rem; }
  .service { padding: 1.4rem; }
}
