@import url('./assets/roman-button.css');
@import url('./assets/pricing-ladder-9d08ed385538.css');

html,
body {
  height: 100%;
  max-width: 100%;
  overflow: hidden;
}

:root {
  --ink: #30231d;
  --paper: #f3efe5;
  --white: #faf5eb;
  --muted: #76685c;
  --line: rgba(76, 52, 37, 0.24);
  --line-strong: rgba(76, 52, 37, 0.46);
  --acid: #b57d47;
  --oxblood: #71363b;
  --oxblood-deep: #4c272a;
  --terracotta: #9a5c45;
  --bronze: #9a6b3f;
  --paper-deep: #e5d6c1;
  --paper-light: rgba(250, 245, 235, 0.78);
}

body {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 9%, rgba(151, 104, 69, 0.055), transparent 30%),
    radial-gradient(circle at 86% 62%, rgba(113, 54, 59, 0.035), transparent 34%),
    url('./assets/paper-texture.svg?v=grain-2');
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: 900px 900px, 760px 760px, 420px 420px;
  color: var(--ink);
}

.page-scroll-viewport {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.page-scroll-viewport::-webkit-scrollbar {
  display: none;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.brand-logo {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 0 !important;
  box-shadow: none;
  filter: sepia(0.7) saturate(0.62) contrast(0.96);
}

nav a {
  color: var(--muted);
  font-family: var(--display);
  letter-spacing: 0.01em;
  transition: color 160ms ease;
}

nav a:hover {
  color: var(--oxblood);
}

.header-cta {
  padding: 7px 11px;
  border: 3px double var(--oxblood-deep);
  border-radius: 0;
  background: rgba(250, 245, 235, 0.46);
  color: var(--oxblood-deep);
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.035em;
}

.header-cta:hover {
  background: rgba(229, 214, 193, 0.62);
}

.hero {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 40px;
  min-height: clamp(480px, 36vw, 600px);
  padding: clamp(28px, 2.6vw, 40px) max(24px, calc((100vw - 1200px) / 2)) clamp(44px, 4vw, 64px);
  border-bottom: 3px double var(--line-strong);
}

.hero h1 {
  font-size: clamp(42px, 4.35vw, 68px);
}

.hero-description {
  font-size: clamp(15px, 1.1vw, 17px);
}

.hero > div:first-child {
  position: relative;
  z-index: 2;
}

.hero-art {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: 100%;
}

.hero::after {
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  content: '';
  transform: translateX(-50%) rotate(45deg);
}

.hero::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: min(72vw, 1100px);
  height: 60vh;
  background: url('./assets/nomenclator-background-roman-architecture-alpha.png') top right / contain no-repeat;
  content: '';
  opacity: 0.3;
  pointer-events: none;
}

h1,
h2,
h3 {
  color: var(--ink);
}

em {
  color: var(--oxblood);
}

.hero-description,
.feature-intro > p,
.pathway-step div > p:last-child,
.pricing-copy {
  color: var(--muted);
}

.hero-art img {
  width: auto;
  height: clamp(400px, 42vw, 560px);
  max-width: 132%;
  filter:
    drop-shadow(0 18px 22px rgba(68, 44, 30, 0.11))
    sepia(0.035);
}

.hero-glossary {
  position: absolute;
  z-index: 3;
  bottom: 30px;
  left: -14%;
  display: grid;
  width: 272px;
  padding: 12px 16px 13px 18px;
  border-left: 2px solid var(--oxblood);
  background: linear-gradient(90deg, rgba(243, 239, 229, 0.94) 0%, rgba(243, 239, 229, 0.78) 72%, transparent 100%);
  color: var(--ink);
  line-height: 1;
}

.hero-glossary-word {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 0.035em;
}

.hero-glossary-pronunciation {
  margin-top: 6px;
  color: var(--terracotta);
  font: 12px/1.3 var(--mono);
  letter-spacing: 0.045em;
}

.hero-glossary-definition {
  margin-top: 9px;
  color: var(--muted);
  font: italic 17px/1.25 var(--serif);
}

.header-cta:focus-visible {
  outline: 1px solid var(--oxblood);
  outline-offset: 4px;
}

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

.fine-print {
  color: #8a7a6b;
}

.proof-strip {
  border-top: 3px double var(--line-strong);
  border-bottom: 3px double var(--line-strong);
  color: #55473c;
  font-family: var(--serif);
}

.proof-strip b {
  color: var(--oxblood);
}

.features {
  position: relative;
  overflow: clip;
  padding: 0;
  scroll-margin-top: 0;
}

.feature-page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(32px, 7vw, 108px);
  align-items: center;
  min-height: 100svh;
  padding: clamp(56px, 8vh, 104px) clamp(0px, 2vw, 24px);
  border-bottom: 3px double var(--line-strong);
  isolation: isolate;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.feature-page::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -12%;
  width: min(62vw, 760px);
  aspect-ratio: 1;
  border: 1px solid rgba(113, 54, 59, 0.08);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 125, 71, 0.08), transparent 64%);
  content: '';
  transform: translateY(-50%);
}

.feature-page::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  width: 7px;
  height: 7px;
  margin: auto;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  content: '';
  transform: rotate(45deg);
}

.feature-page-copy {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 620px;
  flex-direction: column;
  align-items: flex-start;
}

.feature-page-number {
  margin: 0 0 clamp(22px, 4vh, 42px);
  color: var(--oxblood);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.12em;
}

.feature-page-number span {
  color: #9a8b7d;
}

.feature-page h2 {
  max-width: 650px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(54px, 6.4vw, 92px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.feature-page-copy > p:last-of-type {
  max-width: 470px;
  margin: clamp(24px, 3.5vh, 38px) 0 0;
  color: var(--muted);
  font: 20px/1.45 var(--serif);
}

.feature-page-art {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 560px);
  height: min(74svh, 720px);
  place-items: center;
  justify-self: end;
  margin: 0;
  pointer-events: none;
}

.feature-page-art img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(68, 44, 30, 0.11)) sepia(0.035);
}

.feature-services {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(28px, 4vh, 44px);
}

.feature-services img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: sepia(1) saturate(0.5) contrast(1.08);
  opacity: 0.78;
}

.pathway {
  border-top: 3px double var(--line-strong);
}

.pathway-step {
  border-bottom-color: var(--line);
}

.number {
  color: var(--oxblood);
  font-family: var(--display);
  font-size: 12px;
}

.pathway-label {
  color: var(--terracotta);
}

.pathway-step li {
  color: #62554b;
}

.pathway-step li::before {
  color: var(--terracotta);
  content: '•';
  font-size: 14px;
}

.analysis-list li {
  border-bottom-color: rgba(76, 52, 37, 0.14);
}

.analysis-list li::before {
  color: var(--oxblood);
  content: '+';
}

.message-sample {
  border: 1px solid rgba(229, 214, 193, 0.14);
  border-radius: 1px;
  background: #392825;
  color: #f7eddf;
}

.message-sample span,
.message-sample b {
  color: #d8b58b;
}

.statement {
  border-top: 3px double var(--line-strong);
  border-bottom: 3px double var(--line-strong);
  background:
    linear-gradient(rgba(229, 214, 193, 0.82), rgba(229, 214, 193, 0.82)),
    url('./assets/paper-texture.svg?v=grain-2');
  color: var(--ink);
}

.statement em {
  color: var(--oxblood);
}

footer {
  border-top: 3px double var(--line-strong);
  color: #817266;
}

.campaign-demo {
  background: #30231d;
  box-shadow: 0 22px 50px rgba(65, 45, 32, 0.18);
}

.demo-topline,
.review-line,
.demo-steps p {
  color: #b8a99a;
}

.demo-topline span:last-child,
.active strong {
  color: #dfb17d;
}

.demo-steps span,
.demo-steps strong {
  color: #d5bda2;
}

.active {
  background: #593033;
}

.review-line {
  background: #3a2925;
}

.review-line span {
  color: #ddc4a8;
}

.source-list img {
  filter: sepia(1) saturate(0.5) contrast(1.08);
  opacity: 0.78;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: clamp(460px, 66vw, 560px);
  }

  .hero > div:first-child,
  .hero-art {
    grid-area: 1 / 1;
  }

  .hero > div:first-child {
    width: min(100%, 650px);
    padding-right: 12%;
    text-shadow:
      0 1px 0 var(--paper),
      0 0 18px var(--paper);
  }

  .hero-art {
    align-self: end;
    width: 78%;
    min-height: 0;
    pointer-events: none;
  }

  .hero-art img {
    width: 100%;
    height: auto;
    max-width: 650px;
    opacity: 0.76;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 28%, #000 56%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 28%, #000 56%);
  }

  .hero-glossary {
    bottom: 20px;
    left: -12%;
  }

  .feature-page {
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
    gap: 28px;
  }

  .feature-page h2 {
    font-size: clamp(48px, 7.3vw, 70px);
  }

  .feature-page-art {
    height: min(68svh, 640px);
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: clamp(430px, 128vw, 500px);
    padding-block: 32px 46px;
  }

  .hero h1 {
    font-size: clamp(40px, 11vw, 52px);
  }

  .hero > div:first-child {
    width: 100%;
    padding-right: 0;
  }

  .hero-art {
    right: -12%;
    width: 112%;
  }

  .hero-art img {
    opacity: 0.46;
  }

  .hero-glossary {
    left: -2%;
    width: 250px;
    padding: 10px 14px 11px 16px;
  }

  .hero-glossary-word {
    font-size: 22px;
  }

  .hero-glossary-definition {
    font-size: 16px;
  }

  .hero::after {
    left: 18px;
  }

  .feature-page {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 0.9fr) auto;
    align-content: center;
    gap: 8px;
    min-height: 100svh;
    padding: 48px 0 28px;
  }

  .feature-page::before {
    top: auto;
    right: -42%;
    bottom: 2%;
    width: 130vw;
    transform: none;
  }

  .feature-page-copy {
    align-self: end;
  }

  .feature-page-number {
    margin-bottom: 18px;
  }

  .feature-page h2 {
    font-size: clamp(45px, 13vw, 62px);
  }

  .feature-page-copy > p:last-of-type {
    max-width: 420px;
    margin-top: 20px;
    font-size: 18px;
  }

  .feature-page-art {
    width: min(82vw, 390px);
    height: min(46svh, 430px);
    justify-self: center;
  }

  .feature-page-art img {
    width: 100%;
    height: min(46svh, 430px);
    max-height: min(46svh, 430px);
  }

  .feature-services {
    gap: 14px;
    margin-top: 22px;
  }

  .feature-services img {
    width: 27px;
    height: 27px;
  }
}

/* Independent architectural layer for the hero composition. */
body {
  position: relative;
}

.site-architecture {
  display: none;
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: auto;
  height: 60vh;
  max-width: none;
  object-fit: contain;
  object-position: top right;
  opacity: 0.3;
  pointer-events: none;
  user-select: none;
}

main,
footer {
  position: relative;
  z-index: 1;
}

/* Each primary page section owns one viewport in the native snap flow. */
.hero,
.feature-page,
.statement,
.pricing {
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.pricing {
  overflow-y: auto;
}

@media (max-width: 600px) {
  .hero::before {
    right: -30%;
  }

  .site-architecture {
    right: -30%;
    opacity: 0.3;
  }
}
