:root {
  --paper: #f2f5f1;
  --paper-deep: #d7e0d8;
  --ink: #171d1c;
  --ink-soft: rgba(23, 29, 28, 0.72);
  --charcoal: #111615;
  --charcoal-soft: #17211f;
  --teal: #2c6d6f;
  --coral: #d46a4f;
  --gold: #b8872f;
  --line: rgba(23, 29, 28, 0.14);
  --light-line: rgba(248, 244, 239, 0.18);
  --shadow: 0 22px 60px rgba(17, 22, 21, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: #f5f1eb;
  background: linear-gradient(
    to bottom,
    rgba(17, 22, 21, 0.82),
    rgba(17, 22, 21, 0.02)
  );
  animation: rise 700ms ease-out both;
}

.brand {
  flex: 0 0 auto;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 750;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.94rem;
  color: rgba(245, 241, 235, 0.84);
}

.site-nav a {
  position: relative;
  padding-bottom: 0.15rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: rgba(245, 241, 235, 0.8);
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav .nav-cta {
  color: #fffaf3;
  font-weight: 700;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  color: #f8f4ef;
  background: var(--charcoal);
}

.hero {
  min-height: 92svh;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      120deg,
      rgba(17, 22, 21, 0.92) 0%,
      rgba(17, 22, 21, 0.74) 43%,
      rgba(17, 22, 21, 0.34) 100%
    ),
    linear-gradient(180deg, rgba(17, 22, 21, 0.22), rgba(17, 22, 21, 0.54));
}

.hero-image,
.page-hero-image {
  position: absolute;
  inset: 0;
  background-image: url("./assets/manuscript-spread.png");
  background-position: center;
  background-size: cover;
  filter: grayscale(0.08) contrast(1.02);
  transform: scale(1.04);
  animation: drift 16s ease-in-out infinite alternate;
}

.hero-inner,
.page-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  max-width: 53rem;
  padding: 7rem 1.5rem 2rem;
}

.hero-inner {
  min-height: 92svh;
}

.page-hero {
  min-height: 74svh;
}

.page-hero-inner {
  min-height: 74svh;
  padding-bottom: 4rem;
}

.page-hero-graph {
  background:
    radial-gradient(circle at 76% 18%, rgba(44, 109, 111, 0.32), transparent 36rem),
    linear-gradient(120deg, rgba(17, 22, 21, 0.98), rgba(17, 22, 21, 0.86)),
    var(--charcoal);
}

.page-hero-graph::after,
.contact-hero::after {
  background:
    linear-gradient(
      120deg,
      rgba(17, 22, 21, 0.93) 0%,
      rgba(17, 22, 21, 0.72) 55%,
      rgba(17, 22, 21, 0.52) 100%
    );
}

.contact-hero {
  min-height: 58svh;
  background:
    linear-gradient(
      120deg,
      rgba(17, 22, 21, 0.94) 0%,
      rgba(17, 22, 21, 0.78) 54%,
      rgba(17, 22, 21, 0.46) 100%
    ),
    radial-gradient(circle at 78% 24%, rgba(212, 106, 79, 0.18), transparent 28rem),
    var(--charcoal);
}

.contact-hero .page-hero-inner {
  min-height: 58svh;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--coral);
  font-size: 0.86rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: #f0b09d;
}

.hero h1,
.page-hero h1,
.hero-copy,
.hero-actions,
.hero-note,
.page-hero p:not(.eyebrow),
.page-hero .button {
  animation: rise 800ms ease-out both;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: #f8f4ef;
  font-size: clamp(2.9rem, 8vw, 6.2rem);
  line-height: 0.94;
  max-width: 13ch;
}

.page-hero h1 {
  max-width: 12ch;
}

.hero-copy,
.page-hero p:not(.eyebrow) {
  margin: 1.2rem 0 0;
  color: rgba(248, 244, 239, 0.84);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.6;
  max-width: 40rem;
}

.page-hero .button {
  margin-top: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
  animation-delay: 220ms;
}

.hero-note {
  margin: 1rem 0 0;
  color: rgba(248, 244, 239, 0.66);
  font-size: 0.94rem;
  animation-delay: 320ms;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  width: fit-content;
  padding: 0.85rem 1.2rem;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fffaf3;
  background: var(--coral);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #c75d42;
}

.button-secondary {
  color: #f8f4ef;
  border: 1px solid rgba(248, 244, 239, 0.34);
  background: rgba(248, 244, 239, 0.08);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(248, 244, 239, 0.14);
}

.inline-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 1rem;
  color: var(--teal);
  font-weight: 800;
  border-bottom: 1px solid currentColor;
}

.statement,
.intro,
.principles,
.cta,
.process,
.evidence-rules,
.split-section,
.form-section {
  padding: 5rem 1.5rem;
}

.statement {
  display: grid;
  gap: 1.5rem;
  max-width: 74rem;
}

.statement h2 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(2.35rem, 5vw, 5.1rem);
  line-height: 0.94;
}

.statement p:last-child {
  max-width: 48rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1.7;
}

.intro {
  position: relative;
  z-index: 2;
  padding-top: 4.25rem;
}

.section-heading {
  max-width: 46rem;
}

.section-heading h2,
.detail h2,
.cta h2,
.split-section h2,
.form-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.workflow-grid,
.principles-list,
.evidence-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.text-panel,
.principles-list article {
  display: block;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.text-panel:hover,
.text-panel:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(212, 106, 79, 0.7);
}

.workflow-step,
.feature-row span,
.process span,
.evidence-rules span {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 800;
}

.workflow-grid h3,
.principles-list h3,
.feature-row h3,
.evidence-list h3 {
  margin: 0;
  font-size: 1.3rem;
}

.workflow-grid p:last-child,
.principles-list p,
.detail-copy p,
.cta p:last-of-type,
.feature-row p,
.evidence-list p,
.process p,
.evidence-rules p,
.form-copy p {
  color: var(--ink-soft);
  line-height: 1.7;
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 2rem;
  padding: 1.5rem;
  background: linear-gradient(
    180deg,
    rgba(44, 109, 111, 0.08),
    rgba(242, 245, 241, 0)
  );
}

.detail-copy {
  padding: 2rem 0;
}

.detail-visual,
.wide-visual,
.asset-showcase figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-visual {
  min-height: 28rem;
}

.detail-visual img,
.wide-visual img,
.asset-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  transition: transform 300ms ease;
}

.detail-visual:hover img,
.wide-visual:hover img,
.asset-showcase:hover img {
  transform: scale(1.025);
}

.asset-showcase {
  padding: 0 1.5rem 5rem;
}

.asset-showcase-tight {
  padding-bottom: 3rem;
}

.asset-showcase figure {
  max-height: 42rem;
  background: var(--charcoal);
}

.asset-showcase img {
  display: block;
  aspect-ratio: 16 / 9;
  object-position: center;
}

.wide-visual {
  margin: -2rem 1.5rem 0;
  max-height: 34rem;
  background: var(--charcoal);
}

.wide-visual img {
  max-height: 34rem;
}

.feature-list {
  display: grid;
  gap: 0;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.feature-row,
.process article,
.evidence-rules article {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.feature-row h3,
.process h2,
.evidence-rules h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  line-height: 1;
}

.feature-row p,
.process p,
.evidence-rules p {
  grid-column: 2;
  max-width: 47rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
  background: rgba(215, 224, 216, 0.52);
}

.split-section .evidence-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.evidence-list article {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.process,
.evidence-rules {
  padding-top: 3rem;
}

.cta {
  color: #f8f4ef;
  background:
    linear-gradient(135deg, rgba(44, 109, 111, 0.95), rgba(17, 22, 21, 0.98)),
    var(--charcoal);
}

.cta .eyebrow {
  color: #f7d7b3;
}

.cta p:last-of-type {
  max-width: 38rem;
  color: rgba(248, 244, 239, 0.76);
}

.form-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  gap: 3rem;
  align-items: start;
}

.form-copy {
  position: sticky;
  top: 6rem;
}

.access-form {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.36);
  box-shadow: 0 16px 44px rgba(17, 22, 21, 0.08);
}

.hidden-field {
  display: none;
}

.access-form label {
  display: grid;
  gap: 0.45rem;
  color: rgba(23, 29, 28, 0.82);
  font-size: 0.9rem;
  font-weight: 750;
}

.access-form input,
.access-form textarea,
.access-form select {
  width: 100%;
  border: 1px solid rgba(23, 29, 28, 0.18);
  border-radius: 8px;
  padding: 0.9rem 0.95rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
}

.access-form textarea {
  resize: vertical;
}

.access-form input:focus,
.access-form textarea:focus,
.access-form select:focus {
  outline: 2px solid rgba(44, 109, 111, 0.38);
  border-color: rgba(44, 109, 111, 0.62);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  color: rgba(248, 244, 239, 0.78);
  background: var(--charcoal);
  border-top: 1px solid var(--light-line);
}

.site-footer p {
  max-width: 32rem;
  margin: 0;
  line-height: 1.5;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  font-weight: 700;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.08) translate3d(-1.2%, 0.8%, 0);
  }
}

@media (max-width: 960px) {
  .workflow-grid,
  .principles-list,
  .detail,
  .split-section,
  .form-section {
    grid-template-columns: 1fr;
  }

  .split-section .evidence-list {
    grid-template-columns: 1fr 1fr;
  }

  .detail-visual {
    min-height: 22rem;
  }

  .form-copy {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    font-size: 0.88rem;
  }

  .hero-inner,
  .page-hero-inner,
  .statement,
  .intro,
  .principles,
  .cta,
  .detail,
  .process,
  .evidence-rules,
  .split-section,
  .form-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .asset-showcase {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .hero-inner {
    padding-top: 8rem;
  }

  .page-hero-inner {
    padding-top: 9rem;
  }

  .intro {
    padding-top: 3.75rem;
  }

  .feature-row,
  .process article,
  .evidence-rules article {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .feature-row p,
  .process p,
  .evidence-rules p {
    grid-column: auto;
  }

  .split-section .evidence-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 540px) {
  .hero,
  .hero-inner {
    min-height: 88svh;
  }

  .page-hero,
  .page-hero-inner,
  .contact-hero,
  .contact-hero .page-hero-inner {
    min-height: 64svh;
  }
}
