:root {
  --ink: #16211f;
  --muted: #53615e;
  --paper: #fbfaf6;
  --soft: #ece8de;
  --line: #d7d0c2;
  --moss: #5d765f;
  --teal: #1f6f78;
  --coral: #c86b4a;
  --plum: #4b365f;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(22, 33, 31, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(31, 111, 120, 0.08), transparent 32rem),
    linear-gradient(315deg, rgba(200, 107, 74, 0.11), transparent 30rem),
    var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 82vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 64px;
  padding: 70px 0 54px;
}

.eyebrow,
.section-label,
.panel-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(3rem, 7vw, 6.4rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.lede {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--teal);
  background: var(--white);
  outline: none;
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.signal-panel {
  position: relative;
  align-self: stretch;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(22, 33, 31, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(236, 232, 222, 0.58)),
    repeating-linear-gradient(90deg, rgba(22, 33, 31, 0.08) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(0deg, rgba(22, 33, 31, 0.06) 0 1px, transparent 1px 42px);
  box-shadow: var(--shadow);
}

.signal-panel::before {
  content: "";
  position: absolute;
  inset: 32px 28px auto;
  height: 190px;
  background:
    linear-gradient(135deg, transparent 48%, rgba(31, 111, 120, 0.38) 48% 52%, transparent 52%),
    radial-gradient(circle at 16% 70%, var(--coral) 0 5px, transparent 6px),
    radial-gradient(circle at 44% 36%, var(--teal) 0 5px, transparent 6px),
    radial-gradient(circle at 72% 58%, var(--plum) 0 5px, transparent 6px),
    radial-gradient(circle at 88% 22%, var(--moss) 0 5px, transparent 6px);
  opacity: 0.95;
}

.panel-mark {
  position: absolute;
  top: 26px;
  right: 26px;
  display: grid;
  gap: 8px;
}

.panel-mark span {
  width: 44px;
  height: 7px;
  border-radius: 99px;
  background: var(--ink);
}

.panel-mark span:nth-child(2) {
  width: 30px;
  background: var(--coral);
}

.panel-mark span:nth-child(3) {
  width: 18px;
  background: var(--teal);
}

.panel-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.06;
}

.panel-body {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  color: var(--muted);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-bottom: 54px;
}

.section-block {
  min-height: 285px;
  padding: 28px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
}

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

.section-block > p:not(.section-label) {
  color: var(--muted);
  font-size: 1.02rem;
}

.section-block.compact {
  min-height: auto;
}

.work-list {
  display: grid;
  gap: 12px;
}

.work-item {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.work-item span {
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.work-item strong {
  font-size: 1.05rem;
  line-height: 1.35;
}

.work-item:hover strong,
.work-item:focus-visible strong {
  color: var(--coral);
}

.link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.link-list a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  text-decoration: none;
}

.link-list a:hover,
.link-list a:focus-visible {
  border-color: var(--coral);
  outline: none;
}

.also-section {
  max-width: 820px;
  padding: 4px 0 58px;
  border-top: 1px solid var(--line);
}

.also-section h2 {
  max-width: 720px;
}

.also-section p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.04rem;
}

.also-section a {
  color: var(--teal);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.also-section a:hover,
.also-section a:focus-visible {
  color: var(--coral);
  outline: none;
}

.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 32px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 44px;
  }

  .signal-panel {
    min-height: 340px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-shell,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4.3rem);
  }

  .hero-actions,
  .link-list {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .section-block,
  .signal-panel {
    padding: 22px;
  }
}

.test-page .page-shell {
  min-height: auto;
}

.test-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.test-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.test-header h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
}

.test-header p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--coral);
  outline: none;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.panel-option {
  display: grid;
  gap: 10px;
}

.option-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-option .signal-panel {
  align-self: auto;
}

.variant-lattice {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(236, 232, 222, 0.56)),
    radial-gradient(circle at 50% 34%, rgba(31, 111, 120, 0.12), transparent 38%),
    repeating-linear-gradient(90deg, rgba(22, 33, 31, 0.07) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(22, 33, 31, 0.06) 0 1px, transparent 1px 34px);
}

.variant-lattice::before {
  inset: 34px 34px auto;
  height: 194px;
  background:
    linear-gradient(25deg, transparent 0 28%, rgba(31, 111, 120, 0.42) 28% 30%, transparent 30%),
    linear-gradient(152deg, transparent 0 39%, rgba(200, 107, 74, 0.36) 39% 41%, transparent 41%),
    linear-gradient(92deg, transparent 0 48%, rgba(75, 54, 95, 0.34) 48% 50%, transparent 50%),
    radial-gradient(circle at 18% 68%, var(--teal) 0 5px, transparent 6px),
    radial-gradient(circle at 38% 26%, var(--coral) 0 5px, transparent 6px),
    radial-gradient(circle at 62% 74%, var(--plum) 0 5px, transparent 6px),
    radial-gradient(circle at 84% 34%, var(--moss) 0 5px, transparent 6px);
}

.variant-lattice::after {
  content: "";
  position: absolute;
  top: 70px;
  left: 62px;
  width: 190px;
  height: 108px;
  border: 1px solid rgba(22, 33, 31, 0.18);
  transform: skew(-18deg);
}

.variant-trajectory {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(236, 232, 222, 0.6)),
    repeating-linear-gradient(0deg, rgba(22, 33, 31, 0.07) 0 1px, transparent 1px 30px);
}

.variant-trajectory::before {
  inset: 44px 30px auto;
  height: 178px;
  background:
    linear-gradient(164deg, transparent 0 16%, rgba(93, 118, 95, 0.22) 16% 18%, transparent 18%),
    linear-gradient(142deg, transparent 0 32%, rgba(31, 111, 120, 0.42) 32% 35%, transparent 35%),
    linear-gradient(118deg, transparent 0 49%, rgba(200, 107, 74, 0.4) 49% 52%, transparent 52%),
    linear-gradient(98deg, transparent 0 66%, rgba(75, 54, 95, 0.34) 66% 68%, transparent 68%),
    radial-gradient(circle at 12% 78%, var(--moss) 0 5px, transparent 6px),
    radial-gradient(circle at 32% 54%, var(--teal) 0 5px, transparent 6px),
    radial-gradient(circle at 56% 38%, var(--coral) 0 5px, transparent 6px),
    radial-gradient(circle at 82% 22%, var(--plum) 0 5px, transparent 6px);
}

.variant-trajectory::after {
  content: "";
  position: absolute;
  top: 45px;
  right: 34px;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(31, 111, 120, 0.32);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
}

.variant-layers {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(236, 232, 222, 0.6)),
    repeating-linear-gradient(90deg, rgba(22, 33, 31, 0.05) 0 1px, transparent 1px 28px);
}

.variant-layers::before {
  inset: 34px 30px auto;
  height: 196px;
  background:
    linear-gradient(175deg, transparent 0 19%, rgba(93, 118, 95, 0.2) 19% 31%, transparent 31%),
    linear-gradient(171deg, transparent 0 36%, rgba(31, 111, 120, 0.24) 36% 48%, transparent 48%),
    linear-gradient(167deg, transparent 0 53%, rgba(200, 107, 74, 0.24) 53% 65%, transparent 65%),
    radial-gradient(circle at 30% 26%, var(--teal) 0 4px, transparent 5px),
    radial-gradient(circle at 62% 48%, var(--coral) 0 4px, transparent 5px),
    radial-gradient(circle at 76% 72%, var(--plum) 0 4px, transparent 5px);
}

.variant-layers::after {
  content: "";
  position: absolute;
  top: 84px;
  left: 46px;
  width: 224px;
  height: 74px;
  border-top: 1px solid rgba(22, 33, 31, 0.22);
  border-bottom: 1px solid rgba(22, 33, 31, 0.14);
  transform: rotate(-5deg);
}

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