/* Hood Estates — voxel design language in CSS.
   The whole system is four moves:
     - the palette of the artwork itself (cream, navy, gold, meadow)
     - BLOCKS: solid borders + hard offset shadows, the extruded-box look
     - the white keyline on anything that sits on dark, matching the renders
     - hover = the block lifts (translate up-left, shadow grows), like picking
       a piece off the board */

:root {
  --cream: #f4f2ec;
  --paper: #faf8f3;
  --navy: #2a3154;
  --navy-deep: #232b4d;
  --gold: #c9a24a;
  --gold-soft: #ecd9a0;
  --ink: #3a3a44;
  --ink-soft: #6b6a75;
  --meadow: #7d9463;
  --shadow: rgba(42, 49, 84, .92);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

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

/* ---------------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 28px;
  background: var(--cream);
  border-bottom: 3px solid var(--navy);
}

.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; letter-spacing: .14em; color: var(--navy);
  text-decoration: none; font-size: 17px;
}
.nav-brand img { border: 2px solid var(--navy); }

.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.nav-links a:hover { border-color: var(--gold); color: var(--navy); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-block; padding: 13px 26px;
  font-family: inherit; font-weight: 700; font-size: 15px;
  letter-spacing: .06em; text-decoration: none; text-transform: uppercase;
  border: 3px solid var(--navy); color: var(--navy);
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-line { background: transparent; }

.nav-cta { padding: 9px 18px; box-shadow: 4px 4px 0 var(--shadow); }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-start;
        overflow: hidden; border-bottom: 3px solid var(--navy); }

.hero-scene {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 78%;
}

/* The scene is busy where text must live; the scrim buys contrast without
   flattening the artwork (same trick the banners settled on). */
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(244, 242, 236, .96) 0%, rgba(244, 242, 236, .82) 26%,
    rgba(244, 242, 236, .25) 55%, rgba(244, 242, 236, 0) 75%);
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto; padding: 9vh 28px 0;
  width: 100%;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 84px); line-height: 1.02;
  color: var(--navy); letter-spacing: .01em;
}

.hero-sub {
  max-width: 560px; margin-top: 18px;
  font-size: clamp(16px, 2vw, 19px); color: var(--ink);
}

.hero-ctas { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

.stats {
  display: flex; gap: 14px; list-style: none; margin-top: 38px; flex-wrap: wrap;
}
.stats li {
  background: var(--navy-deep); color: var(--cream);
  border: 2px solid #fff; box-shadow: 4px 4px 0 var(--shadow);
  padding: 10px 18px; text-align: center; min-width: 96px;
}
.stats b { display: block; font-size: 22px; color: var(--gold-soft); }
.stats span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------------------------------------------------------------- sections */

.wrap { max-width: 1100px; margin: 0 auto; padding: 90px 28px; }

.wrap h2 {
  font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12;
  color: var(--navy);
}
.wrap h2 em { font-style: normal; color: var(--gold); }
.dark .wrap h2 em, .dark h2 em { color: var(--gold-soft); }

.lede { max-width: 640px; margin-top: 16px; font-size: 17px; }

.dark {
  background: var(--navy-deep); color: var(--cream);
  border-top: 3px solid var(--navy); border-bottom: 3px solid var(--navy);
  max-width: none;
}
.dark h2 { color: var(--cream); }
section.dark { padding: 0; }
section.dark > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
section.dark { padding: 90px 28px; }

/* ---------------------------------------------------------------- blocks */

.block {
  background: var(--paper); border: 3px solid var(--navy);
  box-shadow: 8px 8px 0 var(--shadow);
  transition: transform .14s ease, box-shadow .14s ease;
}
.block:hover { transform: translate(-3px, -3px); box-shadow: 12px 12px 0 var(--shadow); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.steps .block { padding: 26px; }
.steps i {
  font-style: normal; font-weight: 700; color: var(--gold);
  font-size: 15px; letter-spacing: .2em;
}
.steps h3 { color: var(--navy); font-size: 22px; margin: 6px 0 8px; }
.steps p { font-size: 15px; }

/* ---------------------------------------------------------------- tier table */

.tier-table { margin-top: 44px; overflow-x: auto; }
.tier-table table {
  width: 100%; border-collapse: collapse; background: var(--paper);
  border: 3px solid var(--navy); box-shadow: 8px 8px 0 var(--shadow);
  min-width: 560px;
}
.tier-table th, .tier-table td {
  padding: 13px 18px; text-align: left; border-bottom: 2px solid #e4e0d4;
  font-size: 15px;
}
.tier-table th {
  background: var(--navy); color: var(--cream);
  letter-spacing: .1em; text-transform: uppercase; font-size: 13px;
}
.tier-table td:nth-child(n+2) { font-variant-numeric: tabular-nums; }
.tier-table tr:last-child td { border-bottom: 0; }
.t-grail td { background: var(--gold-soft); font-weight: 700; color: var(--navy-deep); }
.t-leg td { background: #efe8d2; font-weight: 500; }

.fine { font-size: 13px; color: var(--ink-soft); margin-top: 16px; max-width: 720px; }
.dark .fine { color: #b9b6c9; }

/* ---------------------------------------------------------------- legendary */

.legends {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; margin-top: 44px;
}
.legends .block { border-color: #fff; box-shadow: 8px 8px 0 rgba(0, 0, 0, .45); }
.legends figcaption {
  padding: 12px 14px; border-top: 3px solid var(--navy);
  display: flex; flex-direction: column; gap: 2px;
  color: var(--navy);
}
.legends figcaption b { font-size: 16px; }
.legends figcaption span { font-size: 13px; color: var(--ink-soft); }

/* ---------------------------------------------------------------- gallery */

.grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px;
}
.grid img {
  border: 3px solid var(--navy); box-shadow: 6px 6px 0 var(--shadow);
  transition: transform .14s ease, box-shadow .14s ease;
  width: 100%; height: auto;
}
.grid img:hover { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 var(--shadow); }

/* ---------------------------------------------------------------- faq */

.faq { margin-top: 36px; max-width: 760px; }
.faq details {
  background: var(--paper); border: 3px solid var(--navy);
  box-shadow: 6px 6px 0 var(--shadow); margin-bottom: 16px;
}
.faq summary {
  cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--navy);
  list-style: none; position: relative; padding-right: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%); color: var(--gold); font-size: 24px; font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; font-size: 15px; }

/* ---------------------------------------------------------------- footer */

.footer { position: relative; border-top: 3px solid var(--navy); overflow: hidden; }
.footer-street {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 40% 30%; opacity: .16;
}
.footer-inner {
  position: relative; text-align: center; padding: 60px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.footer-inner img { border: 2px solid var(--navy); }
.footer-inner b { letter-spacing: .12em; color: var(--navy); }
.footer nav { display: flex; gap: 20px; margin-top: 6px; }
.footer nav a { color: var(--navy); font-weight: 700; text-decoration: none;
                border-bottom: 2px solid var(--gold); }

/* ---------------------------------------------------------------- reveal */

.reveal { opacity: 0; transform: translateY(18px);
          transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .block, .grid img { transition: none; }
}

/* ---------------------------------------------------------------- mobile */

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .legends { grid-template-columns: repeat(2, 1fr); }
  .legends figure:first-child { grid-column: 1 / -1; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* Below 640px the tier table restructures into stacked cards — a table that scrolls
   sideways on a phone is a desktop pattern jammed into the wrong container. The
   data-label attributes carry the hidden column headers. */
@media (max-width: 640px) {
  .tier-table { overflow-x: visible; }
  .tier-table table { min-width: 0; display: block; border: 0; box-shadow: none;
                      background: none; }
  .tier-table thead { display: none; }
  .tier-table tbody { display: block; }
  .tier-table tr {
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: var(--paper); border: 3px solid var(--navy);
    box-shadow: 6px 6px 0 var(--shadow); margin-bottom: 14px;
  }
  .tier-table td { border-bottom: 0; padding: 10px 14px; }
  .tier-table td:first-child {
    grid-column: 1 / -1; font-weight: 700; color: var(--navy); font-size: 16px;
    border-bottom: 2px solid #e4e0d4; padding: 12px 14px;
  }
  .tier-table td[data-label]::before {
    content: attr(data-label);
    display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--ink-soft); margin-bottom: 2px;
  }
  .t-grail td, .t-leg td { background: none; }
  .tier-table tr.t-grail { background: var(--gold-soft); }
  .tier-table tr.t-leg { background: #efe8d2; }

  .nav { padding: 12px 16px; gap: 12px; }
  .nav-links { display: none; }        /* anchors are one scroll away on a phone */
  .nav-brand span { font-size: 15px; }
  .hero { min-height: 86vh; }
  .hero-inner { padding-top: 7vh; }
  .hero-scene { object-position: 58% 82%; }
  .stats { gap: 10px; }
  .stats li { min-width: 74px; padding: 8px 12px; }
  .stats b { font-size: 18px; }
  .wrap, section.dark { padding: 64px 18px; }
}


/* ------------------------------------------------ claim */
.claim-card { max-width: 720px; margin: 0 auto; padding: 28px; }
.claim-status { font-weight: 600; margin-bottom: 18px; }
.claim-status.is-ok { color: #2e7d4f; }
.claim-status.is-warn { color: #b3423a; }
.claim-status.is-wait { color: var(--gold-deep, #a8842c); }
.claim-row { margin-bottom: 6px; }
.claim-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 8px; }
.claim-grid > div { background: var(--paper); border: 3px solid var(--navy);
  box-shadow: 5px 5px 0 var(--shadow); padding: 12px 14px; }
.claim-grid i { display: block; font-style: normal; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; opacity: .65; margin-bottom: 4px; }
.claim-grid b { font-size: 20px; }
.claim-act { display: flex; align-items: center; justify-content: center;
  grid-column: 1 / -1; border: 0 !important; box-shadow: none !important; background: none !important; }
.mono { font-family: ui-monospace, Consolas, monospace; }
@media (max-width: 640px) {
  .claim-grid { grid-template-columns: 1fr; }
  .claim-card { padding: 18px; }
}


/* display:grid on .claim-grid was overriding the hidden attribute — the "empty white
   boxes" bug. hidden always wins, everywhere. */
[hidden] { display: none !important; }
