/* sticky pill nav + studio system */
:root {
  --ink: #1B1D16;
  --ink-deep: #141610;
  --panel: #282B20;
  --panel-edge: #3A3E2E;
  --paper: #EFEFE6;
  --brass: #B9A227;
  --sage: #8A8B7C;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

html:focus-within {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.72;
}

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

a {
  color: var(--brass);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: Barlow, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-transform: none;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.15;
  font-weight: 600;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin: 0 0 1em;
}

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

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.skip-jump {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 80;
  background: var(--brass);
  color: #1F2937;
  font-family: Barlow, sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 18px;
  border-radius: 999px;
}

.skip-jump:focus {
  left: 16px;
}

.rail {
  max-width: 700px;
  margin-inline: auto;
  padding-inline: 20px;
}

.rail--wide {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 20px;
}

.triad {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.6fr;
  gap: 28px;
  align-items: start;
}

.hero .figure-frame {
  grid-column: 2 / -1;
}

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

  .hero .figure-frame {
    grid-column: auto;
  }
}

.rail + .rail--wide,
.rail--wide + .rail {
  margin-top: 28px;
}

.cta-row {
  margin-top: 18px;
}

.strip {
  padding: 72px 0;
}

.strip--panel {
  background: var(--panel);
  border-radius: 18px;
  padding: 36px;
}

.kicker {
  font-family: Barlow, sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brass);
  margin: 0 0 10px;
}

.lede {
  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 300;
  font-size: 19.5px;
  line-height: 1.65;
  color: #DCDCD0;
  margin-bottom: 1.2em;
}

.sage {
  color: var(--sage);
  font-size: 15.5px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 18px;
}

.hero-trust {
  font-family: Barlow, sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--sage);
  margin: 0;
}

/* buttons */
.cta-solid,
.cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Barlow, sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}

.cta-solid {
  background: var(--brass);
  color: #1F2937;
}

.cta-solid:hover {
  background: #CDB531;
  color: #1F2937;
  text-decoration: none;
}

.cta-solid--sm {
  padding: 10px 18px;
  font-size: 12.5px;
}

.cta-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--sage);
}

.cta-ghost:hover {
  background: var(--paper);
  color: #1B1D16;
  text-decoration: none;
}

button.cta-solid,
button.cta-ghost {
  font: inherit;
  font-family: Barlow, sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

button.cta-solid--sm,
.cta-ghost.cta-solid--sm {
  font-size: 12.5px;
  padding: 10px 18px;
}

.link-arrow {
  color: var(--brass);
  font-family: Barlow, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* pill dock */
.pill-dock {
  position: sticky;
  top: 14px;
  z-index: 40;
  padding: 0 12px;
}

.pill-dock__capsule {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(40, 43, 32, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid #3A3E2E;
  border-radius: 999px;
  padding: 10px 14px 10px 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.pill-dock__mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  text-decoration: none;
  flex-shrink: 0;
}

.pill-dock__mark svg {
  display: block;
  flex-shrink: 0;
}

.pill-dock__mark:hover {
  text-decoration: none;
  color: var(--brass);
}

.pill-dock__name {
  font-family: Barlow, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
}

.pill-dock__links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex-wrap: wrap;
}

.pill-dock__link {
  font-family: Barlow, sans-serif;
  font-weight: 500;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #EFEFE6;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.pill-dock__link:hover {
  color: #B9A227;
  text-decoration: none;
}

.pill-dock__link[aria-current="page"] {
  color: #B9A227;
  border-bottom-color: #B9A227;
}

.pill-dock__toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  padding: 10px 11px;
}

.pill-dock__toggle span {
  display: block;
  height: 2px;
  background: var(--paper);
  margin: 5px 0;
  border-radius: 2px;
}

.pill-dock__drawer {
  display: none;
  max-width: 1040px;
  margin: 10px auto 0;
  background: rgba(40, 43, 32, 0.96);
  border: 1px solid var(--panel-edge);
  border-radius: 22px;
  padding: 18px 22px;
}

.pill-dock__drawer a {
  display: block;
  font-family: Barlow, sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #EFEFE6;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--panel-edge);
}

.pill-dock__drawer a:last-child {
  border-bottom: 0;
}

.pill-dock__drawer a[aria-current="page"] {
  color: var(--brass);
}

.pill-dock__drawer.is-open {
  display: block;
}

@media (max-width: 879px) {
  .pill-dock__links,
  .pill-dock__capsule > .cta-solid {
    display: none;
  }

  .pill-dock__toggle {
    display: block;
  }
}

/* cards and lists */
.card-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-stack__item {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 14px;
  padding: 26px;
}

.card-stack__meta {
  color: var(--sage);
  font-size: 13.5px;
  font-family: Barlow, sans-serif;
  letter-spacing: 0.04em;
  margin: 12px 0 10px;
}

.step-ladder {
  border-left: 2px solid var(--panel-edge);
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.step-ladder__tag {
  font-family: Barlow, sans-serif;
  font-weight: 600;
  color: var(--brass);
  margin: 0 0 8px;
}

.fact-row .fact {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 14px;
  padding: 22px;
}

.fact__num {
  font-family: Barlow, sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--brass);
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.figure-frame img {
  display: block;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--panel-edge);
  object-fit: cover;
}

.figure-frame--tall img {
  min-height: 280px;
  max-height: 460px;
  object-fit: cover;
}

.figure-frame__note {
  color: var(--sage);
  font-size: 13px;
  margin-top: 8px;
  font-family: Barlow, sans-serif;
  letter-spacing: 0.04em;
}

.table-wrap {
  overflow-x: auto;
}

.table-plain {
  width: 100%;
  background: var(--panel);
  border-collapse: collapse;
  font-size: 15.5px;
}

.table-plain th {
  font-family: Barlow, sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage);
  text-align: left;
}

.table-plain th,
.table-plain td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--panel-edge);
  vertical-align: top;
}

.table-plain tr:last-child td {
  border-bottom: 0;
}

.q-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.q-list__item {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 14px;
  padding: 6px 18px 6px;
}

.q-list__item summary {
  font-family: Barlow, sans-serif;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 14px 36px 14px 0;
}

.q-list__item summary::-webkit-details-marker {
  display: none;
}

.q-list__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  color: var(--brass);
  font-size: 22px;
  font-weight: 500;
}

.q-list__item[open] summary::after {
  content: "\2212";
}

.q-list__item .q-list__body {
  padding: 0 0 16px;
  color: #DCDCD0;
}

.note-slab {
  border-left: 3px solid var(--brass);
  background: rgba(185, 162, 39, 0.07);
  padding: 20px 24px;
  margin: 0 0 24px;
}

.zone-list {
  margin: 18px 0;
}

.zone-list li {
  margin-bottom: 6px;
}

.journal-toc {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 14px;
  padding: 22px 26px;
}

.journal-toc ol {
  margin: 0;
}

.journal-entry {
  padding-top: 48px;
  border-top: 1px solid var(--panel-edge);
  margin-top: 48px;
}

.journal-entry__date {
  color: var(--sage);
  font-size: 14px;
  font-family: Barlow, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* forms */
.form-stack .field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-family: Barlow, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--panel-edge);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 16px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field--check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.field--check input {
  width: auto;
  margin-top: 4px;
}

.field--check label {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 15.5px;
}

.hp-bin {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice-ok,
.notice-bad {
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
}

.notice-ok {
  background: rgba(185, 162, 39, 0.14);
  border: 1px solid var(--brass);
  color: var(--paper);
}

.notice-bad {
  background: rgba(180, 70, 50, 0.16);
  border: 1px solid #c46a52;
  color: var(--paper);
}

.map-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--panel-edge);
  min-height: 280px;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.contact-block h3 {
  margin-bottom: 10px;
}

.contact-block p {
  margin-bottom: 8px;
}

/* footer */
.foot-mega {
  background: #141610;
  border-top: 1px solid #3A3E2E;
  padding: 56px 0 28px;
  margin-top: 24px;
}

.foot-mega__intro p {
  color: #DCDCD0;
  font-size: 15.5px;
}

.foot-mega__mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-family: Barlow, sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  text-decoration: none;
}

.foot-mega__mark:hover {
  text-decoration: none;
  color: var(--brass);
}

.foot-mega__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--panel-edge);
}

.foot-mega__grid h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage);
  margin-bottom: 12px;
}

.foot-mega__grid a {
  display: block;
  color: var(--paper);
  text-decoration: none;
  font-size: 15px;
  margin-bottom: 8px;
}

.foot-mega__grid a:hover {
  color: var(--brass);
}

.foot-mega__base {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--panel-edge);
  color: var(--sage);
  font-size: 13.5px;
}

.foot-mega__base p {
  margin-bottom: 8px;
}

@media (max-width: 759px) {
  .foot-mega__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* cookie dock */
.cookie-dock {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 24px));
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  gap: 16px;
  align-items: center;
}

.cookie-dock.is-hidden {
  display: none;
}

.cookie-dock p {
  margin: 0;
  font-size: 14.5px;
  color: #DCDCD0;
  flex: 1;
}

.cookie-dock__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-dock {
    flex-direction: column;
    align-items: stretch;
  }
}

/* lift-in: visible without JS */
.lift-in {
  opacity: 1;
  transform: none;
}

html:not(.no-js) .lift-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html:not(.no-js) .lift-in.is-up {
  opacity: 1;
  transform: none;
}

.no-js .lift-in {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .lift-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
