/* DataDJ landing — Brand Guide v2.2 + light Morningside-inspired motion */

:root {
  --ink: #0a0a0a;
  --signal: #d21e3d;
  --white: #ffffff;
  --steel: #6b6e73;
  --mist: #f1f1f2;
  --font: Inter, Arial, Helvetica, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 40rem;
  --btn-radius: 12px;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--gutter);
  top: 0.5rem;
  z-index: 30;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.75rem;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 72rem);
  margin-inline: auto;
}

/* Header — sticky, like Morningside chrome */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--ink);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.75rem 0;
}

.logo-link {
  display: block;
  text-decoration: none;
}

.logo {
  width: min(160px, 40vw);
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-line {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--steel);
}

@media (max-width: 720px) {
  .brand-line {
    display: none;
  }
}

/* Buttons — solid Signal only for primary; header is ink outline (one red on screen) */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.95rem 1.5rem;
  background: var(--signal);
  color: var(--white);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 0;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.btn-header {
  min-height: 42px;
  padding: 0.55rem 1rem;
  font-size: 0.9375rem;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: var(--btn-radius);
}

.btn-header:hover {
  background: var(--ink);
  color: var(--white);
  transform: none;
}

.close .btn:focus-visible {
  outline-color: var(--white);
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(3.5rem, 12vw, 7.5rem) 0 clamp(4rem, 11vw, 6.5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  right: -8%;
  top: 10%;
  width: min(42vw, 28rem);
  height: min(42vw, 28rem);
  border-radius: 22%;
  background: var(--signal);
  opacity: 0.06;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 52rem;
}

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

.hero h1 {
  margin: 0 0 1.35rem;
  max-width: 16ch;
  font-weight: 900;
  font-size: clamp(2.75rem, 8vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero .sub {
  margin: 0 0 2.25rem;
  max-width: 34ch;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.4;
}

.hero-cta {
  margin: 0;
}

/* Story band — Morningside-style focus lines on ink */

.story {
  background: var(--ink);
  color: var(--white);
  padding: clamp(5rem, 16vh, 9rem) 0;
}

.story-track {
  max-width: 38rem;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 8vh, 4.5rem);
}

.story-line {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.22);
  filter: blur(0.6px);
  transition: color 0.45s ease, filter 0.45s ease, transform 0.45s ease;
  transform: translateY(6px);
}

.story-line.is-active {
  color: var(--white);
  filter: blur(0);
  transform: translateY(0);
}

.story-line.story-punch.is-active {
  color: var(--white);
}

.story-punch {
  font-weight: 900;
  font-size: clamp(1.6rem, 3.8vw, 2.5rem);
}

/* White blocks */

.block {
  padding: clamp(3.5rem, 9vw, 6rem) 0;
  border-top: 1px solid var(--ink);
}

.block h2,
.plan h2,
.proof h2 {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 0.75rem;
  max-width: var(--measure);
  font-size: clamp(1.125rem, 2vw, 1.4rem);
  line-height: 1.45;
}

.muted {
  color: var(--steel);
  max-width: var(--measure);
}

/* Plan grid — three columns like Identify / Develop / Adopt */

.plan {
  padding: clamp(3.5rem, 9vw, 6rem) 0;
  border-top: 1px solid var(--ink);
  background: var(--mist);
}

.plan-intro {
  margin: 0 0 2.5rem;
}

.plan-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
}

.plan-grid li {
  padding: 1.5rem 0 0;
  border-top: 2px solid var(--ink);
}

.plan-num {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--steel);
}

.plan-grid h3 {
  margin: 0 0 0.65rem;
  font-weight: 900;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.plan-grid p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--steel);
}

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

/* Proof */

.proof {
  padding: clamp(3.5rem, 9vw, 6rem) 0;
  border-top: 1px solid var(--ink);
}

.proof-quote {
  margin: 1.5rem 0 1.25rem;
  padding: 0 0 0 1.25rem;
  border-left: 3px solid var(--signal);
  max-width: var(--measure);
}

.proof-quote p {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

/* Close — ink punch */

.close {
  background: var(--ink);
  color: var(--white);
  padding: clamp(4rem, 12vw, 7rem) 0;
}

.close h2 {
  margin: 0 0 1rem;
  max-width: 12ch;
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.close .sub {
  margin: 0 0 2rem;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.65);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

/* Footer */

.site-footer {
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid var(--ink);
  font-size: 0.875rem;
  color: var(--steel);
  background: var(--white);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

.site-footer a {
  color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Scroll reveal for white sections */

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .story-line,
  .reveal,
  .btn {
    transition: none;
    filter: none;
    transform: none;
    opacity: 1;
    color: inherit;
  }

  .story-line {
    color: rgba(255, 255, 255, 0.85);
  }

  .btn:hover {
    transform: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .hero h1 {
    font-size: 2.65rem;
  }
}
