/* ============ TOKENS ============ */
:root {
  --yellow:  #FFD600;
  --coral:   #F37A6A;
  --magenta: #EB008B;
  --cobalt:  #00509D;
  --teal:    #00B6C5;

  --ink:   #000000;
  --paper: #FFFFFF;
  --cream: #F7F2E7;

  --rail: 110px;
  --gap: 12px;
  --r: 24px;

  --display: 'Poppins', sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;
}

/* ============ RESET ============ */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,p,ul,figure,form { margin: 0; }
ul { padding: 0; list-style: none; }
button, input { font-family: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ============ BUTTONS + PILLS ============ */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -.01em;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .2s ease-in-out, opacity .2s ease-in-out;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(0) scale(.99); }
.btn--dark  { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--block { display: block; width: 100%; text-align: center; }

.pill {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .01em;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.pill--dark   { background: var(--ink); color: var(--paper); }
.pill--yellow { background: var(--yellow); color: var(--ink); }

/* ============ AGE GATE ============ */
.gate {
  position: fixed; inset: 0; z-index: 999;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.gate[hidden] { display: none; }
.gate__card {
  background: var(--paper);
  border-radius: var(--r);
  max-width: 420px; width: 100%;
  padding: 44px 34px;
  text-align: center;
}
.gate__logo { width: 96px; margin: 0 auto 22px; }
.gate__eyebrow {
  font-family: var(--display); font-weight: 700;
  font-size: .72rem; color: var(--magenta);
  margin-bottom: 12px;
}
.gate__title {
  font-family: var(--display); font-weight: 800;
  font-size: 2rem; line-height: 1.02; letter-spacing: -.03em;
  margin-bottom: 14px;
}
.gate__sub { font-size: .88rem; line-height: 1.5; color: #555; margin-bottom: 28px; }
.gate__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gate__actions[hidden] { display: none; }
.gate__denied { font-size: .88rem; line-height: 1.5; }

/* ============ LEFT RAIL ============ */
.rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--rail);
  background: var(--yellow);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0 20px;
}
.rail__burger {
  background: none; border: none; cursor: pointer;
  padding: 6px; display: flex; flex-direction: column; gap: 5px;
  flex-shrink: 0;
}
.rail__burger span {
  display: block; width: 26px; height: 3px;
  background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.rail__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.rail__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rail__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.rail__wordmark {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  overflow: hidden;
}
/* rotate -90deg so the wordmark reads bottom-to-top, like Starface */
.rail__wordmark span {
  display: block;
  transform: rotate(-90deg);
  transform-origin: center;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 900;
  font-size: 3.2rem;
  line-height: 1;
  letter-spacing: -.035em;
}

/* rail flyout menu */
.rail-menu {
  position: fixed;
  top: 0; bottom: 0; left: var(--rail);
  width: 260px;
  background: var(--ink);
  z-index: 99;
  padding: 28px 26px;
  transform: translateX(-110%);
  transition: transform .25s ease;
  display: flex; flex-direction: column; gap: 4px;
}
.rail-menu.is-open { transform: translateX(0); }
.rail-menu a {
  font-family: var(--display); font-weight: 700;
  font-size: 1.25rem; color: var(--paper);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.rail-menu a:hover { color: var(--yellow); }

/* ============ SHELL ============ */
.shell { margin-left: var(--rail); background: var(--ink); }

/* ============ TICKER ============ */
.ticker {
  background: var(--ink); color: var(--paper);
  overflow: hidden; white-space: nowrap;
  padding: 9px 0;
  font-size: .72rem; letter-spacing: .02em;
}
.ticker__track {
  display: inline-flex; align-items: center; gap: 12px;
  width: max-content;
  animation: ticker 34s linear infinite;
}
.ticker__track b { color: var(--yellow); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ============ MOSAIC ============ */
.mosaic {
  columns: 3;
  column-gap: var(--gap);
  padding: var(--gap);
  background: var(--ink);
}
.tile {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: var(--gap);
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  background: var(--paper);
  transition: transform .3s ease;
}
.tile:hover { transform: translateY(-6px); }

/* images breathe inside their frame on hover */
.tile--can .tile__img img,
.tile--photo img,
.note__img {
  transition: transform .5s ease;
}
.tile--can:hover .tile__img img,
.tile--photo:hover img,
.tile--note:hover .note__img {
  transform: scale(1.05);
}

/* the "coming soon" pill kicks over slightly */
.tile--can .pill { transition: transform .3s ease; }
.tile--can:hover .pill { transform: rotate(-3deg) scale(1.04); }

/* scroll reveal */
.tile[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .4s cubic-bezier(.25,.46,.45,.94),
              transform .4s cubic-bezier(.25,.46,.45,.94);
}
.tile[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}
/* once revealed, hover lift takes over again */
.tile[data-reveal].is-in:hover { transform: translateY(-6px); }

/* -- nav tile -- */
.tile--nav { background: var(--teal); padding: 8px 22px; }
.tile--nav a {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: -.01em;
  border-bottom: 2px solid rgba(0,0,0,.13);
}
.tile--nav a:last-child { border-bottom: none; }
.tile--nav img {
  width: 46px; height: 46px; border-radius: 10px; object-fit: cover;
  flex-shrink: 0;
  transition: transform .3s ease;
}
.tile--nav a span { transition: transform .3s ease; }
.tile--nav a:hover span { transform: translateX(6px); }
.tile--nav a:hover img { transform: scale(1.1) rotate(-4deg); }

/* -- intro tile -- */
.tile--intro { background: var(--yellow); padding: 28px 26px 30px; }
.tile--intro h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
  line-height: .96; letter-spacing: -.035em;
  margin-bottom: 18px;
}
.tile--intro p { font-size: .84rem; line-height: 1.6; margin-bottom: 24px; }

/* -- can tiles -- */
.tile--can .tile__img { aspect-ratio: 1; }
.tile--can .tile__img img { width: 100%; height: 100%; object-fit: cover; }
.tile--can .tile__body { padding: 20px 22px 24px; }
.tile--can h2 {
  font-family: var(--display); font-weight: 800;
  font-size: 1.3rem; line-height: 1.05; letter-spacing: -.025em;
  margin-bottom: 9px;
}
.tile--can p { font-size: .8rem; line-height: 1.55; }
.tile--can .spec { margin-top: 12px; font-size: .68rem; opacity: .72; }

.can--magenta .tile__body { background: var(--magenta); color: var(--paper); }
.can--yellow  .tile__body { background: var(--yellow); }
.can--teal    .tile__body { background: var(--teal); }
.can--coral   .tile__body { background: var(--coral); }
.can--cobalt  .tile__body { background: var(--cobalt); color: var(--paper); }

.tile--can .pill { position: absolute; top: 16px; left: 16px; margin: 0; z-index: 2; }

/* -- photo tiles -- */
.tile--photo img { width: 100%; height: auto; }

/* -- oregon tile -- */
.tile--oregon { background: var(--cobalt); color: var(--paper); }
.tile--oregon .tile__trees {
  position: absolute; inset: 0; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='%23fff'%3E%3Cpath d='M32 10 L42 28 L37 28 L47 45 L17 45 L27 28 L22 28 Z'/%3E%3Crect x='29' y='45' width='6' height='6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 64px 64px;
}
.tile--oregon .tile__inner { position: relative; padding: 28px 26px 30px; }
.tile--oregon h2 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
  line-height: .98; letter-spacing: -.03em;
  margin-bottom: 16px;
}
.tile--oregon p { font-size: .82rem; line-height: 1.62; margin-bottom: 12px; }
.tile--oregon .stamp {
  margin-top: 18px; margin-bottom: 0;
  font-size: .68rem; color: var(--yellow); line-height: 1.5;
}

/* -- note tile -- */
.tile--note { background: var(--yellow); padding: 0 24px 26px; }
.note__img {
  /* full-bleed out past the tile's 24px side padding; max-width must be
     cleared or the global img reset clamps it back to the content box */
  width: calc(100% + 48px);
  max-width: none;
  margin: 0 -24px 20px;
  aspect-ratio: 1.5; object-fit: cover;
}
.tile--note p { font-size: .82rem; line-height: 1.68; margin-bottom: 13px; }
.tile--note p:last-child { margin-bottom: 0; }
.tile--note b { font-family: var(--display); font-weight: 800; font-size: 1rem; }

/* -- we are / we're not -- */
.tile--vs { background: var(--cream); padding: 26px 24px; display: flex; gap: 22px; }
.vs__col { flex: 1; }
.vs__col h3 {
  font-family: var(--display); font-weight: 800;
  font-size: 1.05rem; letter-spacing: -.02em; margin-bottom: 12px;
}
.vs__col li { font-size: .78rem; line-height: 1.45; padding: 5px 0; }
.vs__col li::before { content: "+ "; font-weight: 500; }
.vs__col--no { opacity: .45; }
.vs__col--no li::before { content: "– "; }

/* -- promise -- */
.tile--promise { background: var(--magenta); color: var(--paper); padding: 34px 26px; }
.tile--promise p {
  font-family: var(--display); font-weight: 800;
  font-size: 1.35rem; line-height: 1.16; letter-spacing: -.025em;
}

/* -- facts -- */
.tile--facts { background: var(--cream); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.tile--facts > div { display: flex; flex-direction: column; }
.tile--facts b {
  font-family: var(--display); font-weight: 900;
  font-size: 2.4rem; line-height: 1; letter-spacing: -.04em;
}
.tile--facts b span { font-size: 1.1rem; letter-spacing: -.02em; }
.facts__label { font-size: .72rem; margin-top: 5px; opacity: .68; }

/* -- signup -- */
.tile--signup { background: var(--coral); padding: 28px 26px 30px; }
.tile--signup h2 {
  font-family: var(--display); font-weight: 900;
  font-size: 1.9rem; line-height: 1; letter-spacing: -.035em; margin-bottom: 12px;
}
.tile--signup p { font-size: .8rem; line-height: 1.55; margin-bottom: 18px; }
.tile--signup input {
  width: 100%; padding: 13px 18px; margin-bottom: 10px;
  border: none; border-radius: 999px;
  font-size: .85rem; background: var(--paper);
}
.tile--signup input:focus { outline: 3px solid var(--ink); outline-offset: 1px; }
.signup-msg { margin-top: 14px; margin-bottom: 0; font-size: .8rem; font-weight: 500; }

/* -- say hi -- */
.tile--hello { background: var(--cream); padding: 28px 26px 30px; }
.tile--hello h2 {
  font-family: var(--display); font-weight: 900;
  font-size: 1.9rem; line-height: 1; letter-spacing: -.035em; margin-bottom: 12px;
}
.tile--hello p { font-size: .8rem; line-height: 1.55; margin-bottom: 20px; opacity: .75; }
.hello__link {
  display: block; font-size: .85rem; padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,.15);
}
.hello__link:hover { color: var(--magenta); }

/* ============ FOOTER ============ */
.foot { background: var(--ink); color: var(--paper); padding: 46px 24px 26px; }
.foot__cols { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 46px; }
.foot__col--wide { flex: 1 1 300px; }
.foot__col { flex: 0 1 170px; display: flex; flex-direction: column; }
.foot__col h3 {
  font-family: var(--display); font-weight: 900;
  font-size: 1.9rem; line-height: .98; letter-spacing: -.035em;
  margin-bottom: 12px;
}
.foot__col--wide p { font-size: .8rem; opacity: .65; line-height: 1.5; }
.foot__col h4 {
  font-family: var(--display); font-weight: 700;
  font-size: .78rem; color: var(--yellow); margin-bottom: 12px;
}
.foot__col a { font-size: .8rem; padding: 5px 0; opacity: .7; }
.foot__col a:hover { opacity: 1; color: var(--yellow); }

.foot__logo {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 0 auto 40px;
}

.foot__legal { border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; }
.foot__enjoy { font-size: .78rem; margin-bottom: 12px; }
.foot__warning { font-size: .64rem; line-height: 1.55; opacity: .42; max-width: 760px; margin-bottom: 14px; }
.foot__copy { font-size: .7rem; opacity: .42; }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .tile,
  .tile--can .tile__img img,
  .tile--photo img,
  .note__img,
  .tile--can .pill,
  .tile--nav img,
  .tile--nav a span,
  .btn { transition: none !important; }

  .tile:hover,
  .tile[data-reveal].is-in:hover,
  .tile--can:hover .tile__img img,
  .tile--photo:hover img,
  .tile--note:hover .note__img,
  .tile--can:hover .pill,
  .tile--nav a:hover img,
  .tile--nav a:hover span,
  .btn:hover { transform: none; }

  /* never leave content hidden if the observer is skipped */
  .tile[data-reveal] { opacity: 1; transform: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .mosaic { columns: 2; }
}
@media (max-width: 640px) {
  :root { --rail: 74px; --r: 20px; }
  .mosaic { columns: 1; }
  .rail__wordmark span { font-size: 2.1rem; }
  .rail__burger span { width: 22px; }
  .tile--vs { flex-direction: column; gap: 16px; }
  .foot { padding: 36px 18px 22px; }
  .foot__cols { gap: 28px; margin-bottom: 34px; }
}
