@import url('https://fonts.googleapis.com/css2?family=Cormorant+Unicase:wght@400;600;700&family=Atkinson+Hyperlegible:wght@400;700&family=Kode+Mono:wght@400;500&display=swap');

:root {
  --cave-black: #0a0806;
  --charcoal-brown: #2a1f18;
  --ochre-clay: #c4772a;
  --hematite-red: #8b2e2e;
  --bone-dust: #e8e2d6;
  --ash-taupe: #9a9185;
  --malachite: #3d6b5a;
  --lapis: #1e3a5f;
  --torch-amber: #d4a053;
  --font-display: 'Cormorant Unicase', Georgia, serif;
  --font-body: 'Atkinson Hyperlegible', sans-serif;
  --font-mono: 'Kode Mono', monospace;
  --header-h: 72px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden !important;
  max-width: 100vw;
  position: relative;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal-brown);
  background-color: var(--cave-black);
  overflow-x: hidden !important;
  max-width: 100vw;
  position: relative;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

.mineral-bg {
  position: relative;
  background-color: var(--cave-black);
}

.mineral-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-wall.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  pointer-events: none;
}

.mineral-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 30% 20%, rgba(212, 160, 83, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(196, 119, 42, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.noise-overlay {
  position: relative;
}

.noise-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.chamber-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(10, 8, 6, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(196, 119, 42, 0.15);
  transition: background var(--transition);
}

.chamber-header.is-scrolled {
  background: rgba(10, 8, 6, 0.98);
}

.chamber-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.chamber-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.chamber-header__logo {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(196, 119, 42, 0.3);
}

.chamber-header__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bone-dust);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.chamber-header__layer {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ash-taupe);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chamber-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.chamber-nav__link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ash-taupe);
  padding: 0.5rem 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition);
}

.chamber-nav__link::before {
  content: '◆';
  font-size: 0.45rem;
  margin-right: 0.35rem;
  color: var(--ochre-clay);
  opacity: 0;
  transition: opacity var(--transition);
}

.chamber-nav__link:hover,
.chamber-nav__link.is-active {
  color: var(--bone-dust);
}

.chamber-nav__link:hover::before,
.chamber-nav__link.is-active::before {
  opacity: 1;
}

.chamber-header__cta {
  flex-shrink: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  background: var(--ochre-clay);
  color: var(--cave-black);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  clip-path: polygon(2% 0%, 98% 0%, 100% 15%, 100% 85%, 98% 100%, 2% 100%, 0% 85%, 0% 15%);
}

.btn-primary::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cave-black);
  transition: width 0.4s ease;
}

.btn-primary:hover {
  box-shadow: 0 4px 24px rgba(212, 160, 83, 0.35);
  transform: translateY(-1px);
}

.btn-primary:hover::before {
  width: 100%;
}

.btn-secondary {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone-dust);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(232, 226, 214, 0.3);
  position: relative;
  transition: border-color var(--transition), color var(--transition);
}

.btn-secondary:hover {
  color: var(--ochre-clay);
  border-bottom-color: var(--ochre-clay);
}

.btn-secondary:hover::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--ochre-clay);
  opacity: 0.5;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 1001;
}

.burger__line {
  width: 24px;
  height: 2px;
  background: var(--bone-dust);
  transition: transform var(--transition), opacity var(--transition);
}

.burger.is-open .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open .burger__line:nth-child(2) {
  opacity: 0;
}

.burger.is-open .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--cave-black);
  padding: calc(var(--header-h) + 2rem) 2rem 2rem;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav__link {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--bone-dust);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(196, 119, 42, 0.15);
}

body.menu-open {
  overflow: hidden !important;
}

.first-mark-chamber {
  min-height: 100vh;
  padding: calc(var(--header-h) + 3rem) 1.5rem 4rem;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.first-mark-chamber__wall {
  position: absolute;
  inset: 0;
  background: var(--cave-black);
}

.first-mark-chamber__wall::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-wall.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.35;
}

.first-mark-chamber__wall::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 45% 35% at 55% 45%, rgba(212, 160, 83, 0.18) 0%, transparent 65%),
    linear-gradient(180deg, rgba(10, 8, 6, 0.4) 0%, rgba(10, 8, 6, 0.85) 100%);
}

.torch-glow {
  animation: torch-breathe 4s ease-in-out infinite;
}

@keyframes torch-breathe {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.first-mark-chamber__content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 2rem;
  min-height: calc(100vh - var(--header-h) - 7rem);
}

.hero-fragments {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  position: relative;
  padding-top: 2rem;
}

.hero-fragment {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--bone-dust);
  line-height: 1.05;
  opacity: 0;
  transform: translateY(20px);
}

.hero-fragment.is-visible {
  animation: scratch-reveal 0.8s ease forwards;
}

.hero-fragment--1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-left: 0;
  margin-bottom: 1.5rem;
}

.hero-fragment--2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-left: 15%;
  margin-bottom: 1.5rem;
  color: var(--ochre-clay);
  position: relative;
}

.hero-fragment--2::before {
  content: '';
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(ellipse, rgba(212, 160, 83, 0.15) 0%, transparent 70%);
  z-index: -1;
  animation: torch-breathe 4s ease-in-out infinite;
}

.hero-fragment--3 {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  margin-left: 5%;
}

@keyframes scratch-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-wall-mark {
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  opacity: 0;
}

.hero-wall-mark.is-visible {
  animation: pigment-uncover 1.2s ease 0.6s forwards;
}

@keyframes pigment-uncover {
  to { opacity: 0.7; }
}

.hero-wall-mark svg {
  width: 100%;
  height: 100%;
}

.wall-reading {
  background: rgba(232, 226, 214, 0.92);
  padding: 2rem 2.25rem;
  max-width: 420px;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  box-shadow: 4px 8px 32px rgba(0, 0, 0, 0.4);
}

.wall-reading__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ochre-clay);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.wall-reading p {
  color: var(--charcoal-brown);
  font-size: 0.95rem;
  line-height: 1.7;
}

.hero-visual {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  position: relative;
  align-self: start;
  margin-top: 1rem;
}

.hero-visual__img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  clip-path: polygon(0 8%, 8% 0, 100% 0, 100% 92%, 92% 100%, 0 100%);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.hero-visual__caption {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ash-taupe);
  margin-top: 0.5rem;
  letter-spacing: 0.06em;
}

.hero-signals {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-content: start;
}

.signal-chip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--bone-dust);
  background: rgba(42, 31, 24, 0.8);
  border: 1px solid rgba(196, 119, 42, 0.35);
  padding: 0.5rem 1rem;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(10px);
}

.signal-chip.is-visible {
  animation: chip-appear 0.5s ease forwards;
}

@keyframes chip-appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-actions {
  grid-column: 1 / 3;
  grid-row: 3 / 4;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1rem;
}

.mark-strip {
  background: var(--charcoal-brown);
  padding: 2rem 1.5rem;
  overflow-x: hidden;
  max-width: 100%;
}

.mark-strip__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
}

.mark-strip__item {
  flex: 1 1 160px;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.mark-strip__glyph {
  width: 8px;
  height: 8px;
  background: var(--ochre-clay);
  flex-shrink: 0;
  margin-top: 0.4rem;
  transform: rotate(45deg);
}

.mark-strip__text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--bone-dust);
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.section {
  padding: 5rem 1.5rem;
  position: relative;
  overflow-x: hidden;
  max-width: 100%;
}

.section--dark {
  background: var(--cave-black);
  color: var(--bone-dust);
}

.section--warm {
  background: var(--charcoal-brown);
  color: var(--bone-dust);
}

.section--light {
  background: var(--bone-dust);
  color: var(--charcoal-brown);
}

.section__inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ochre-clay);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.section-title--lg {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-title--xl {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.section-title--ochre {
  background: var(--ochre-clay);
  color: var(--cave-black);
  display: inline-block;
  padding: 0.5rem 1.25rem;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.raw-problem {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.raw-problem__stone {
  background: var(--charcoal-brown);
  padding: 3rem;
  position: relative;
  min-height: 320px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.raw-problem__stone h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--bone-dust);
  margin-bottom: 1.25rem;
}

.raw-problem__stone p {
  color: var(--ash-taupe);
  font-size: 1.05rem;
  line-height: 1.75;
}

.raw-problem__cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.reading-card {
  background: var(--bone-dust);
  padding: 1.5rem 1.75rem;
  color: var(--charcoal-brown);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.reading-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.reading-card__mark {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--hematite-red);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.reading-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.reading-card p {
  font-size: 0.9rem;
  line-height: 1.65;
}

.scratch-connector {
  position: absolute;
  pointer-events: none;
  opacity: 0.3;
}

.marked-results {
  position: relative;
}

.marked-results__featured {
  position: relative;
  margin-bottom: 2.5rem;
}

.wall-record {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--charcoal-brown);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.wall-record--large {
  grid-template-columns: 1.3fr 1fr;
}

.wall-record__img {
  min-height: 360px;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.wall-record__body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wall-record__ref {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ochre-clay);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.wall-record__body h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--bone-dust);
  margin-bottom: 1rem;
}

.wall-record__layers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wall-record__layer {
  font-size: 0.85rem;
  color: var(--ash-taupe);
  padding-left: 1rem;
  border-left: 2px solid rgba(196, 119, 42, 0.4);
}

.wall-record__layer strong {
  color: var(--bone-dust);
  font-weight: 700;
}

.marked-results__cluster {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.signal-outcome {
  background: rgba(232, 226, 214, 0.08);
  border: 1px solid rgba(196, 119, 42, 0.2);
  padding: 1.75rem;
  position: relative;
  transition: transform var(--transition);
}

.signal-outcome:nth-child(odd) {
  margin-top: 2rem;
}

.signal-outcome:hover {
  transform: translateY(-3px);
}

.signal-outcome__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  margin-bottom: 1rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.signal-outcome__ref {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--malachite);
  letter-spacing: 0.08em;
}

.signal-outcome h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--bone-dust);
  margin: 0.5rem 0;
}

.signal-outcome p {
  font-size: 0.8rem;
  color: var(--ash-taupe);
  line-height: 1.6;
}

.ground-truth {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.ground-truth__statement {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 700;
  color: var(--bone-dust);
  line-height: 1.08;
  text-align: left;
}

.ground-truth__annotation {
  position: absolute;
  right: 5%;
  top: 10%;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ochre-clay);
  letter-spacing: 0.06em;
  transform: rotate(-3deg);
  opacity: 0.7;
}

.service-marks {
  position: relative;
  min-height: 600px;
  padding: 3rem 0;
}

.service-marks__field {
  position: relative;
  width: 100%;
  min-height: 550px;
}

.service-mark {
  position: absolute;
  background: rgba(42, 31, 24, 0.9);
  border: 1px solid rgba(196, 119, 42, 0.25);
  padding: 1.5rem;
  max-width: 280px;
  transition: transform var(--transition), border-color var(--transition);
}

.service-mark:hover {
  transform: translateY(-4px);
  border-color: var(--ochre-clay);
}

.service-mark--dominant {
  max-width: 340px;
  padding: 2rem;
  background: rgba(196, 119, 42, 0.12);
  border-color: var(--ochre-clay);
}

.service-mark__id {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--ochre-clay);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.service-mark h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--bone-dust);
  margin-bottom: 0.75rem;
}

.service-mark--dominant h3 {
  font-size: 1.5rem;
}

.service-mark__detail {
  font-size: 0.8rem;
  color: var(--ash-taupe);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.service-mark__detail span {
  color: var(--hematite-red);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

.service-mark:nth-child(1) { top: 5%; left: 5%; }
.service-mark:nth-child(2) { top: 15%; right: 8%; }
.service-mark:nth-child(3) { top: 45%; left: 15%; }
.service-mark:nth-child(4) { top: 55%; right: 20%; }
.service-mark:nth-child(5) { bottom: 8%; left: 35%; }
.service-mark:nth-child(6) { bottom: 15%; right: 5%; }

.stone-proof {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
}

.proof-block {
  padding: 2.5rem;
  position: relative;
}

.proof-block--complex {
  background: rgba(139, 46, 46, 0.15);
  border: 1px solid rgba(139, 46, 46, 0.3);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.proof-block--marked {
  background: rgba(61, 107, 90, 0.12);
  border: 1px solid rgba(61, 107, 90, 0.3);
  margin-top: 3rem;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
}

.proof-block__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.proof-block--complex .proof-block__label { color: var(--hematite-red); }
.proof-block--marked .proof-block__label { color: var(--malachite); }

.proof-block h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--bone-dust);
  margin-bottom: 1rem;
}

.proof-block ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.proof-block li {
  font-size: 0.9rem;
  color: var(--ash-taupe);
  padding-left: 1.25rem;
  position: relative;
}

.proof-block li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ochre-clay);
}

.proof-markers {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.proof-marker {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--bone-dust);
  background: rgba(10, 8, 6, 0.6);
  padding: 0.5rem 1rem;
  border: 1px solid rgba(196, 119, 42, 0.2);
  letter-spacing: 0.04em;
}

.about-mark {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.about-mark__visual {
  position: relative;
}

.about-mark__img {
  width: 100%;
  clip-path: polygon(0 6%, 6% 0, 100% 0, 100% 94%, 94% 100%, 0 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.about-mark__caption {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ochre-clay);
  margin-top: 0.75rem;
  letter-spacing: 0.06em;
}

.marking-sequence {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  position: relative;
}

.sequence-step {
  flex: 1 1 140px;
  max-width: 180px;
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(42, 31, 24, 0.6);
  border: 1px solid rgba(196, 119, 42, 0.2);
  position: relative;
  transition: transform var(--transition), background var(--transition);
}

.sequence-step:hover {
  transform: translateY(-6px);
  background: rgba(196, 119, 42, 0.1);
}

.sequence-step__num {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--ochre-clay);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.sequence-step__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--bone-dust);
  margin-bottom: 0.5rem;
}

.sequence-step p {
  font-size: 0.75rem;
  color: var(--ash-taupe);
  line-height: 1.5;
}

.pigment-marquee {
  overflow: hidden;
  max-width: 100vw;
  background: var(--charcoal-brown);
  padding: 1.25rem 0;
  position: relative;
}

.pigment-marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-left 40s linear infinite;
}

.pigment-marquee__track--reverse {
  animation: marquee-right 35s linear infinite;
  margin-top: 0.5rem;
}

@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.pigment-marquee__item {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ash-taupe);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 2.5rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pigment-marquee__item::before {
  content: '◈';
  color: var(--ochre-clay);
  font-size: 0.5rem;
}

.direction-cta {
  text-align: left;
  padding: 5rem 1.5rem;
  position: relative;
}

.direction-cta__field {
  background: var(--ochre-clay);
  display: inline-block;
  padding: 2.5rem 3rem;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  max-width: 700px;
}

.direction-cta__field h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--cave-black);
  margin-bottom: 1.25rem;
}

.direction-cta__field .btn-primary {
  background: var(--cave-black);
  color: var(--bone-dust);
}

.direction-cta__note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ash-taupe);
  margin-top: 1.5rem;
  letter-spacing: 0.04em;
}

.contact-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-preview__data {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-preview__item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(196, 119, 42, 0.15);
}

.contact-preview__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ochre-clay);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.contact-preview__value {
  font-size: 1rem;
  color: var(--bone-dust);
}

.contact-preview__map {
  width: 100%;
  height: 280px;
  border: 1px solid rgba(196, 119, 42, 0.2);
  filter: grayscale(30%) contrast(1.1);
}

.stone-footer {
  background: var(--cave-black);
  padding: 4rem 1.5rem 2rem;
  border-top: 1px solid rgba(196, 119, 42, 0.15);
}

.stone-footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.stone-footer__brand p {
  font-size: 0.85rem;
  color: var(--ash-taupe);
  margin-top: 1rem;
  line-height: 1.6;
}

.stone-footer__heading {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ochre-clay);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.stone-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.stone-footer__links a {
  font-size: 0.85rem;
  color: var(--ash-taupe);
  transition: color var(--transition);
}

.stone-footer__links a:hover {
  color: var(--bone-dust);
}

.stone-footer__bottom {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(196, 119, 42, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.stone-footer__copy {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ash-taupe);
  letter-spacing: 0.04em;
}

.page-hero {
  padding: calc(var(--header-h) + 4rem) 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero--dark {
  background: var(--cave-black);
  color: var(--bone-dust);
}

.page-hero__inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.page-hero__desc {
  max-width: 640px;
  font-size: 1.05rem;
  color: var(--ash-taupe);
  line-height: 1.7;
}

.content-block {
  padding: 4rem 1.5rem;
}

.content-block__inner {
  max-width: 900px;
  margin: 0 auto;
}

.content-block h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--bone-dust);
  margin: 2.5rem 0 1rem;
}

.content-block h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ochre-clay);
  margin: 2rem 0 0.75rem;
}

.content-block p {
  color: var(--ash-taupe);
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.content-block ul,
.content-block ol {
  color: var(--ash-taupe);
  margin: 1rem 0 1.5rem 1.5rem;
  line-height: 1.75;
}

.content-block li {
  margin-bottom: 0.5rem;
}

.accordion {
  border: 1px solid rgba(196, 119, 42, 0.2);
  margin-bottom: 0.75rem;
  background: rgba(42, 31, 24, 0.5);
}

.accordion__trigger {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--bone-dust);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.accordion__trigger:hover {
  background: rgba(196, 119, 42, 0.08);
}

.accordion__icon {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--ochre-clay);
  transition: transform var(--transition);
}

.accordion.is-open .accordion__icon {
  transform: rotate(45deg);
}

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion.is-open .accordion__panel {
  max-height: 600px;
}

.accordion__content {
  padding: 0 1.5rem 1.5rem;
  color: var(--ash-taupe);
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-form {
  max-width: 640px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ochre-clay);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(232, 226, 214, 0.08);
  border: 1px solid rgba(196, 119, 42, 0.25);
  color: var(--bone-dust);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ochre-clay);
  box-shadow: 0 0 0 2px rgba(196, 119, 42, 0.15);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: var(--hematite-red);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.form-error {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--hematite-red);
  margin-top: 0.35rem;
  display: none;
}

.form-group.has-error .form-error {
  display: block;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info__block {
  padding: 1.5rem;
  background: rgba(42, 31, 24, 0.6);
  border: 1px solid rgba(196, 119, 42, 0.15);
}

.contact-map {
  width: 100%;
  height: 400px;
  border: 1px solid rgba(196, 119, 42, 0.2);
  margin-top: 2rem;
}

.thanks-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.thanks-page__inner {
  max-width: 560px;
}

.thanks-page__mark {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  opacity: 0.8;
}

.thanks-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--bone-dust);
  margin-bottom: 1rem;
}

.thanks-page p {
  color: var(--ash-taupe);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.legal-page {
  padding: calc(var(--header-h) + 3rem) 1.5rem 4rem;
  background: var(--bone-dust);
  color: var(--charcoal-brown);
}

.legal-page__inner {
  max-width: 860px;
  margin: 0 auto;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.legal-page__updated {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ash-taupe);
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: var(--charcoal-brown);
}

.legal-page h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--ochre-clay);
}

.legal-page p {
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 0.95rem;
}

.legal-page ul,
.legal-page ol {
  margin: 1rem 0 1.5rem 1.5rem;
  line-height: 1.8;
  font-size: 0.95rem;
}

.legal-page li {
  margin-bottom: 0.5rem;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(42, 31, 24, 0.15);
}

.legal-nav a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ochre-clay);
  letter-spacing: 0.04em;
}

.counter {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--ochre-clay);
  font-weight: 700;
}

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

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

.parallax-img {
  transition: transform 0.1s linear;
}

@media (min-width: 1025px) and (hover: hover) {
  .parallax-wrap {
    overflow: hidden;
  }
}

@media (max-width: 1024px) {
  .chamber-nav,
  .chamber-header__cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .first-mark-chamber__content {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .hero-fragments {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-visual {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-signals {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-actions {
    grid-column: 1;
  }

  .hero-wall-mark {
    display: none;
  }

  .raw-problem {
    grid-template-columns: 1fr;
  }

  .wall-record,
  .wall-record--large {
    grid-template-columns: 1fr;
  }

  .marked-results__cluster {
    grid-template-columns: 1fr;
  }

  .signal-outcome:nth-child(odd) {
    margin-top: 0;
  }

  .ground-truth {
    grid-template-columns: 1fr;
  }

  .service-marks__field {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .service-mark {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    max-width: 100%;
  }

  .stone-proof {
    grid-template-columns: 1fr;
  }

  .proof-block--marked {
    margin-top: 0;
  }

  .about-mark {
    grid-template-columns: 1fr;
  }

  .contact-preview {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .stone-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .stone-footer__inner {
    grid-template-columns: 1fr;
  }

  .mark-strip__inner {
    flex-direction: column;
  }

  .sequence-step {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .direction-cta__field {
    padding: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-primary {
    width: 100%;
    text-align: center;
  }
}
