:root {
  --coal: #0a0d14;
  --steel: #141a24;
  --lift: #1c2433;
  --line: #2d384c;
  --brass: #f2c14e;
  --brass-2: #ffd67a;
  --signal: #e23a2b;
  --signal-2: #ff5a4a;
  --ticket: #efe6d2;
  --ink: #16140f;
  --mute: #8d9aab;
  --soft: #d5dbe6;
  --shadow: 0 20px 44px rgba(0, 0, 0, 0.38);
  --ui: "Sora", system-ui, sans-serif;
  --display: "Big Shoulders Display", Impact, sans-serif;
  --read: "Petrona", Georgia, serif;
  --mono: "Share Tech Mono", ui-monospace, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(226, 58, 43, 0.08), transparent 18%),
    radial-gradient(900px 420px at 8% -8%, rgba(242, 193, 78, 0.16), transparent 52%),
    var(--coal);
  color: var(--ticket);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  background:
    repeating-linear-gradient(
      -28deg,
      transparent 0 14px,
      rgba(242, 193, 78, 0.55) 14px 16px
    );
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.hat-skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--brass);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 80;
}
.hat-skip:focus { left: 8px; }

.hat-wrap {
  width: min(1140px, calc(100% - 32px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.hat-rails {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 92px;
  height: 10px;
  pointer-events: none;
  z-index: 2;
  background:
    repeating-linear-gradient(
      90deg,
      #2a1a12 0 18px,
      #0a0d14 18px 28px
    );
  box-shadow: 0 -1px 0 rgba(242, 193, 78, 0.25);
}
.hat-rails::after {
  content: "";
  position: absolute;
  inset: 3px 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  animation: hat-train 7s linear infinite;
}

@keyframes hat-train {
  from { transform: translateX(-40%); }
  to { transform: translateX(40%); }
}

.hat-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(10, 13, 20, 0.92);
  backdrop-filter: blur(14px);
  border-top: 2px solid var(--brass);
}

.hat-ticket {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 16px;
  border: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  box-shadow: var(--shadow);
}
.hat-ticket::before,
.hat-ticket::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--coal);
  top: 50%;
  transform: translateY(-50%);
}
.hat-ticket::before { left: -7px; }
.hat-ticket::after { right: -7px; }
.hat-ticket--in { background: var(--signal); color: #fff; }
.hat-ticket--up { background: var(--brass); color: var(--ink); }
.hat-ticket:hover { filter: brightness(1.08); }

.hat-ticker {
  position: relative;
  z-index: 3;
  overflow: hidden;
  background: var(--brass);
  color: var(--ink);
  border-bottom: 3px solid var(--signal);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hat-ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  padding: 10px 0;
  animation: hat-marquee 28s linear infinite;
}
.hat-ticker span { white-space: nowrap; }

@keyframes hat-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hat-mast {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(10, 13, 20, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(242, 193, 78, 0.22);
  flex-wrap: wrap;
}

.hat-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.hat-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--steel);
  border-left: 5px solid var(--signal);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ticket);
}
.hat-brand small {
  display: block;
  color: var(--brass);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.hat-brand strong {
  display: block;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.hat-nav,
.hat-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hat-nav a:hover,
.hat-langs a:hover { color: var(--brass); }
.hat-langs a[aria-current="page"] {
  color: var(--brass);
  border-bottom: 2px solid var(--brass);
}

.hat-clock {
  font-family: var(--mono);
  color: var(--brass);
  font-size: 13px;
  min-width: 64px;
  text-align: right;
}

.hat-crumbs {
  padding: 14px 0 0;
  color: var(--mute);
  font-size: 14px;
}
.hat-crumbs a { color: var(--brass); }

.hat-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 28px;
  padding: 28px 0 12px;
  align-items: start;
}

.hat-kicker {
  margin: 0 0 8px;
  font-family: var(--mono);
  color: var(--brass);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}

h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0 0 12px;
}
h1 { font-size: clamp(36px, 5.4vw, 62px); }
h2 { font-size: clamp(30px, 5vw, 48px); }
h3 { font-size: 28px; }

.hat-lede {
  font-family: var(--read);
  font-size: 1.12rem;
  color: var(--soft);
  max-width: 62ch;
}

.hat-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.hat-hero-actions .hat-ticket { min-width: 168px; }

.hat-led {
  background: linear-gradient(#0c1018, #171e2b);
  border: 3px solid var(--brass);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(242, 193, 78, 0.08);
  padding: 18px 18px 14px;
}
.hat-led-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  color: var(--brass);
  font-size: 12px;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.hat-led-addr {
  font-family: var(--mono);
  font-size: clamp(16px, 2.4vw, 22px);
  color: var(--brass-2);
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.45);
  animation: hat-blink 2.8s steps(2, end) infinite;
  word-break: break-all;
}
@keyframes hat-blink {
  50% { opacity: 0.72; }
}
.hat-led-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.hat-led a.hat-ticket { min-height: 48px; font-size: 14px; }

.hat-section { padding: 42px 0; }

.hat-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}
.hat-muted { color: var(--mute); }

.hat-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hat-tile {
  background: var(--steel);
  border: 1px solid var(--line);
  padding: 18px 16px 16px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.hat-tile::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 90px;
  height: 90px;
  background: repeating-linear-gradient(
    45deg,
    var(--brass) 0 8px,
    #111 8px 16px
  );
  opacity: 0.18;
}
.hat-tile-code {
  font-family: var(--mono);
  color: var(--brass);
  font-size: 12px;
  letter-spacing: 0.14em;
}
.hat-tile strong {
  font-family: var(--display);
  font-size: 32px;
}
.hat-tile em {
  font-style: normal;
  color: var(--soft);
  font-size: 14px;
  flex: 1;
}
.hat-tile-go {
  color: var(--signal-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
}

.hat-slider {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--brass);
  background: var(--steel);
}
.hat-slides {
  display: flex;
  transition: transform 0.55s ease;
}
.hat-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 280px;
}
.hat-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}
.hat-slide-copy {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hat-slide-copy p { margin: 0 0 10px; color: var(--soft); font-family: var(--read); }
.hat-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 12px;
  background: #0c1018;
}
.hat-dots button {
  width: 34px;
  height: 28px;
  border: 1px solid var(--brass);
  background: transparent;
  color: var(--brass);
  font-family: var(--mono);
  cursor: pointer;
}
.hat-dots button.is-on { background: var(--brass); color: var(--ink); }

.hat-grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.hat-sheet {
  background: var(--ticket);
  color: var(--ink);
  padding: 28px 26px 30px;
  box-shadow: var(--shadow);
}
.hat-sheet h2,
.hat-sheet h3 { color: var(--ink); }
.hat-sheet .hat-kicker { color: var(--signal); }
.hat-sheet p,
.hat-sheet li { font-family: var(--read); font-size: 1.05rem; }
.hat-sheet .hat-muted { color: #5c5648; }
.hat-drop::first-letter {
  font-family: var(--display);
  font-size: 3.1rem;
  float: left;
  line-height: 0.8;
  padding: 6px 8px 0 0;
  color: var(--signal);
}

.hat-steps { padding-left: 18px; }
.hat-steps li { margin-bottom: 10px; }

.hat-card {
  background: var(--steel);
  border: 1px solid var(--line);
}
.hat-card-body { padding: 16px 16px 20px; }

.hat-reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hat-review {
  background: var(--steel);
  border-top: 4px solid var(--brass);
  padding: 18px;
}
.hat-stars { color: var(--brass); letter-spacing: 2px; margin-bottom: 8px; }
.hat-review p { font-family: var(--read); margin: 0 0 12px; }
.hat-review cite { color: var(--mute); font-style: normal; font-size: 13px; }

.hat-faq details {
  background: var(--steel);
  border: 1px solid var(--line);
  padding: 12px 16px;
  margin-bottom: 10px;
}
.hat-faq summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--brass-2);
}
.hat-faq p { font-family: var(--read); color: var(--soft); }

.hat-event {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  background: var(--lift);
  border: 1px solid var(--line);
}
.hat-event-copy { padding: 22px; }

.hat-foot {
  padding: 28px 0 120px;
  color: var(--mute);
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.hat-foot-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 920px) {
  .hat-hero,
  .hat-slide,
  .hat-grid-2,
  .hat-event,
  .hat-tiles,
  .hat-reviews { grid-template-columns: 1fr; }
  .hat-nav { display: none; }
  .hat-head { flex-direction: column; align-items: start; }
  .hat-rails { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hat-mast { padding: 10px 12px; }
  .hat-brand strong { font-size: 22px; }
  .hat-clock { display: none; }
  .hat-sheet { padding: 20px 16px; }
  .hat-hero-actions .hat-ticket,
  .hat-ticket { width: 100%; }
  h1 { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
