/* ABOUTME: Styling for Kansa's QUIET landing page — warm monochrome, typographic, calm. */
/* ABOUTME: One orange accent, generous whitespace, hairline rules, slow reveal motion. */

:root {
  --paper: #faf9f6;
  --paper-soft: #f4f3f1;
  --white: #ffffff;
  --ink: #14161b;
  --grey: #585b64;
  --grey-soft: #66696f;
  --hairline: #e3e0da;
  --accent: #ff6500;

  --measure: 62ch;
  --gutter: clamp(1.5rem, 6vw, 9rem);

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

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

/* ---------- Accessibility helpers ---------- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: 2px;
  font-size: 0.9rem;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 1px;
}

/* ---------- Shared mark / accent ---------- */

.mark {
  position: relative;
  white-space: nowrap;
}

.mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.045em;
  background: var(--accent);
  border-radius: 1px;
}

/* ---------- Masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.masthead.is-scrolled {
  border-bottom-color: var(--hairline);
}

.masthead__inner {
  max-width: 78rem;
  margin: 0 auto;
  padding: 1.2rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}

.masthead__nav {
  margin-left: auto;
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.masthead__nav a {
  font-size: 0.9rem;
  color: var(--grey);
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: color 0.25s var(--ease);
}

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

.masthead__action {
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity 0.25s var(--ease);
}

.masthead__action:hover {
  opacity: 0.6;
}

/* ---------- Layout primitives ---------- */

main {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  max-width: 100%;
}

/* ---------- Opening statement ---------- */

.opening {
  padding-top: clamp(5rem, 16vh, 11rem);
  padding-bottom: clamp(3rem, 9vh, 7rem);
  max-width: 30ch;
}

.overline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 1.6rem;
}

.thesis {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7.5vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

.opening__support {
  max-width: 46ch;
  margin: 2.4rem 0 0;
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--grey);
}

.opening__cta {
  margin: 2.6rem 0 0;
}

.text-action {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.005em;
}

.text-action__arrow {
  transition: transform 0.3s var(--ease);
}

.text-action:hover .text-action__arrow {
  transform: translateX(5px);
}

.text-action {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 3px;
  transition: border-color 0.25s var(--ease);
}

.text-action:hover {
  border-color: var(--ink);
}

/* ---------- Still image moment ---------- */

.still {
  padding: clamp(3rem, 8vh, 6rem) 0;
  display: flex;
  justify-content: flex-end;
}

.still__figure {
  margin: 0;
  width: clamp(15rem, 38vw, 22rem);
}

.still__figure img {
  width: 100%;
  border-radius: 2px;
}

/* ---------- Movements (large typographic statements) ---------- */

.movement {
  padding: clamp(5rem, 13vh, 9rem) 0;
  border-top: 1px solid var(--hairline);
  position: relative;
}

.movement__index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--grey-soft);
  margin: 0 0 2.2rem;
}

.movement__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 18ch;
  color: var(--ink);
  text-wrap: balance;
}

.movement__body {
  margin-top: 2.4rem;
  max-width: var(--measure);
}

.movement__body p {
  margin: 0 0 1.4rem;
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--grey);
}

.movement__body p:last-child {
  margin-bottom: 0;
}

.movement__body em {
  font-style: italic;
  color: var(--ink);
}

/* ---------- Beats (Upload / Understand / Act) ---------- */

.beats {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  counter-reset: none;
}

.beat {
  max-width: 28ch;
}

.beat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--grey-soft);
  margin-bottom: 1.1rem;
}

.beat__head {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  margin: 0 0 0.8rem;
  color: var(--ink);
}

.beat__text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--grey);
}

/* ---------- Proof (one big quiet line) ---------- */

.proof {
  padding: clamp(7rem, 18vh, 13rem) 0;
  border-top: 1px solid var(--hairline);
  text-align: left;
}

.proof__lead {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 2rem;
}

.proof__line {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 10vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--ink);
}

.proof__support {
  margin: 2.6rem 0 0;
  max-width: 44ch;
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--grey);
}

/* ---------- Finding (quiet product moment) ---------- */

.finding {
  margin-top: 3rem;
  max-width: 38rem;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
}

.finding__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 2rem;
  align-items: baseline;
  padding: 0.55rem 0;
}

.finding__label {
  flex: 0 0 8.5rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-soft);
}

.finding__value {
  margin: 0;
  flex: 1 1 14rem;
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.finding__rule {
  height: 1px;
  background: var(--hairline);
}

.verdict-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.55rem;
  vertical-align: middle;
}

.finding__caption {
  margin: 1.4rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--grey-soft);
}

/* ---------- Band (abstract image with overlaid line) ---------- */

.band {
  margin: clamp(4rem, 10vh, 8rem) calc(-1 * var(--gutter)) 0;
  border-top: 1px solid var(--hairline);
}

.band__media {
  position: relative;
}

.band__media img {
  width: 100%;
  height: clamp(20rem, 46vw, 34rem);
  object-fit: cover;
  object-position: right center;
}

.band__line {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  max-width: 12ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---------- Assurances ---------- */

.assurances {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  max-width: 44ch;
}

.assurances li {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.35;
  color: var(--ink);
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--hairline);
}

.assurances li:first-child {
  padding-top: 0;
}

.assurances li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* ---------- Closing CTA ---------- */

.closing {
  padding: clamp(7rem, 18vh, 13rem) 0 clamp(5rem, 12vh, 9rem);
  border-top: 1px solid var(--hairline);
  max-width: 22ch;
}

.closing__line {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

.closing__cta {
  margin: 2.8rem 0 0;
}

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: -0.005em;
  padding: 0.95rem 2rem;
  border-radius: 2px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.button:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.closing__aside {
  margin: 1.6rem 0 0;
  font-size: 1rem;
  color: var(--grey);
}

.text-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease);
}

.text-link:hover {
  border-color: var(--ink);
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--hairline);
  background: var(--paper-soft);
}

.footer__inner {
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vh, 6rem) var(--gutter) 3rem;
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 0 0 2.8rem;
  color: var(--ink);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer__col p {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--grey);
}

.footer__col a {
  color: var(--grey);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

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

.footer__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-soft) !important;
  margin-bottom: 0.9rem !important;
}

.footer__base {
  margin-top: 3.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

.footer__base p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--grey-soft);
}

.footer__legal a {
  color: var(--grey-soft);
  text-decoration: none;
}

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

/* ---------- Reveal motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  body {
    font-size: 1rem;
  }

  .masthead__inner {
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .masthead__nav {
    margin-left: 0;
    order: 3;
    flex-basis: 100%;
    gap: 1.5rem;
  }

  .masthead__action {
    margin-left: auto;
  }

  .opening {
    max-width: none;
  }

  .still {
    justify-content: center;
  }

  .still__figure {
    width: clamp(13rem, 62vw, 18rem);
  }

  .beats {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .beat {
    max-width: none;
  }

  .band__media img {
    height: clamp(24rem, 96vw, 30rem);
  }

  .band__line {
    color: var(--ink);
    max-width: 9ch;
  }

  .footer__cols {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }
}

@media (max-width: 400px) {
  .finding__label {
    flex-basis: 100%;
  }
}

/* ---------- Reduced motion ---------- */

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

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

  .text-action__arrow,
  .button {
    transition: none;
  }
}
