:root {
  --ash: #121417;
  --panel: #1c2026;
  --ledge: #262b33;
  --ember: #e23b2c;
  --ember-dim: #7a241c;
  --river: #8fb4c4;
  --paper: #ece8e1;
  --mute: #9aa3ad;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--ash);
  color: var(--paper);
  font-family: Karla, "Segoe UI", sans-serif;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--river);
}

h1,
h2,
h3,
.mark,
.btn,
.status-strip b,
.kicker {
  font-family: Rajdhani, "Arial Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.92;
  margin: 0.15em 0 0.4em;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}

.kicker {
  color: var(--ember);
  font-size: 0.92rem;
  margin: 0 0 0.35rem;
}

.panel-edge {
  height: 6px;
  background: linear-gradient(90deg, var(--ember) 0 18%, var(--river) 18% 22%, var(--ember-dim) 22% 100%);
}

.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.3rem;
  background: rgba(18, 20, 23, 0.94);
  border-bottom: 1px solid rgba(143, 180, 196, 0.2);
  backdrop-filter: blur(10px);
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--paper);
  text-decoration: none;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.led {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 10px var(--ember);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.95rem;
  margin-left: auto;
}

nav a {
  color: var(--paper);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.bar-mail {
  font-size: 0.78rem;
  white-space: nowrap;
}

.menu {
  display: none;
  background: var(--ember);
  color: #fff;
  border: 0;
  padding: 0.45rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.5rem;
  padding: 2rem 1.3rem 1.2rem;
  align-items: stretch;
}

.lede {
  font-size: 1.08rem;
  max-width: 40rem;
  color: #d5d0c8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.2rem 0 0.9rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border: 0;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  font-size: 1rem;
}

.btn.ember {
  background: var(--ember);
  color: #fff;
}

.btn.ghost {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 1px var(--river);
}

.where {
  color: var(--mute);
  font-size: 0.92rem;
}

.hero figure {
  margin: 0;
  background: var(--panel);
  border: 1px solid rgba(143, 180, 196, 0.25);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hero img {
  width: 100%;
  flex: 1 1 auto;
  min-height: 320px;
  height: 320px;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.hero figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  color: var(--river);
  flex-shrink: 0;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 0;
  margin: 1.2rem 1.3rem 0;
  background: var(--panel);
  border: 1px solid rgba(143, 180, 196, 0.25);
}

.status-strip article {
  padding: 0.85rem 1rem;
  border-right: 1px solid rgba(143, 180, 196, 0.18);
}

.status-strip b {
  display: block;
  font-size: 1.15rem;
}

.status-strip span {
  color: var(--mute);
  font-size: 0.78rem;
}

.status-strip article.on b {
  color: var(--ember);
}

.status-strip button {
  background: var(--ledge);
  color: var(--river);
  border: 0;
  padding: 0 1.1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: Rajdhani, sans-serif;
}

.status-strip.test article b {
  color: var(--ember);
  text-shadow: 0 0 12px var(--ember);
}

#valley,
.kit,
.work,
.zones,
.notes,
.faq,
.desk {
  padding: 4.2rem 1.3rem;
}

section[id] {
  scroll-margin-top: 4.6rem;
}

.split {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 1.6rem;
}

aside {
  background: var(--panel);
  padding: 1.3rem 1.2rem;
  border-top: 4px solid var(--ember);
}

.intro {
  max-width: 44rem;
  color: #d5d0c8;
}

.kit-switch,
.zone-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
}

.kit-switch button,
.zone-btns button {
  background: var(--panel);
  color: var(--paper);
  border: 1px solid rgba(143, 180, 196, 0.3);
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.kit-switch button.on,
.zone-btns button.on {
  background: var(--ember);
  border-color: var(--ember);
}

.kit-card {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  background: var(--panel);
  border: 1px solid rgba(143, 180, 196, 0.2);
}

.kit-card.show {
  display: grid;
}

.kit-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.kit-card div {
  padding: 1.3rem 1.2rem 1.4rem;
}

.work-grid,
.note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.work-grid article,
.note-grid article {
  background: var(--panel);
  padding: 1.1rem 1rem 1.2rem;
  border-left: 3px solid var(--river);
}

.visit {
  list-style: none;
  padding: 1.4rem 0 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.visit li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  background: var(--ledge);
  padding: 0.85rem 1rem;
}

.tick {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.25rem;
  border: 2px solid var(--river);
  background: transparent;
  cursor: pointer;
}

.visit li.done .tick {
  background: var(--ember);
  border-color: var(--ember);
}

.visit li.done h3 {
  text-decoration: line-through;
  opacity: 0.55;
}

.zone-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 1.2rem;
  align-items: start;
}

.zone-btns {
  flex-direction: column;
  align-items: stretch;
}

#zoneCopy {
  background: var(--panel);
  padding: 1.4rem 1.3rem;
  min-height: 180px;
  border-bottom: 4px solid var(--river);
}

.note-grid time {
  display: block;
  color: var(--ember);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.faq article {
  border-bottom: 1px solid rgba(143, 180, 196, 0.22);
}

.faq button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: inherit;
  padding: 1rem 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.faq p {
  display: none;
  margin: 0 0 1rem;
  max-width: 44rem;
  color: #d5d0c8;
}

.faq article.open p {
  display: block;
}

.desk {
  background: var(--panel);
}

.desk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

address {
  font-style: normal;
  margin: 1rem 0;
}

form {
  display: grid;
  gap: 0.7rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

input,
select,
textarea {
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(143, 180, 196, 0.35);
  background: var(--ash);
  color: var(--paper);
}

.fine,
.tiny {
  font-size: 0.8rem;
  color: var(--mute);
}

.status {
  min-height: 1.2em;
  font-weight: 700;
}

footer {
  padding: 2.2rem 1.3rem 2.5rem;
  background: #0c0e10;
  color: var(--mute);
}

footer .mark,
footer a {
  color: var(--paper);
}

@media (max-width: 1180px) {
  .bar-mail { display: none; }
}

@media (max-width: 980px) {
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--river);
    flex-direction: column;
    padding: 0.85rem 1.2rem 1.1rem;
    z-index: 32;
  }

  nav.open { display: flex; }

  .menu {
    display: block;
    margin-left: auto;
  }

  .hero,
  .split,
  .kit-card,
  .kit-card.show,
  .zone-layout,
  .desk-grid,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .status-strip button {
    padding: 0.8rem 1rem;
  }

  .tilt-left,
  .tilt-right { transform: none; }

  .hero img,
  .kit-card img {
    min-height: 220px;
    height: 220px;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }
}
