:root {
  /* Brand */
  --sage: #98B4A0;        /* Summer Green */
  --sage-deep: #7c9a86;
  --pine: #1C231A;        /* Pine Tree */
  --pine-2: #2b3527;
  --saffron: #F7CE5F;     /* accent — use sparingly */
  --orange: #F68C4A;      /* accent — use sparingly */
  /* Neutrals derived from brand greens */
  --paper: #f6f8f5;
  --sage-tint: #eef3ef;
  --sage-tint-2: #dde8e0;
  --ink: #1C231A;
  --muted: #5e6b60;
  --line: #e4e9e3;
  --white: #ffffff;
  /* System */
  --r-lg: 20px; --r: 14px; --r-sm: 10px; --r-pill: 999px;
  --sh-sm: 0 1px 2px rgba(28,35,26,0.06);
  --sh: 0 10px 30px -14px rgba(28,35,26,0.30);
  --sh-lg: 0 28px 70px -28px rgba(28,35,26,0.45);
  --display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Open Sans', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { font-family: var(--body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { display: block; }

.btn {
  font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .01em;
  color: #fff; background: var(--pine); border: none; border-radius: var(--r);
  padding: 14px 20px; cursor: pointer; transition: background .15s, transform .08s, box-shadow .15s;
}
.btn:hover { background: var(--pine-2); box-shadow: var(--sh); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }

.link-btn { background: none; border: none; color: var(--muted); font-family: var(--body); font-size: 14px; cursor: pointer; border-radius: var(--r-sm); padding: 6px 8px; }
.link-btn:hover { color: var(--ink); background: var(--sage-tint); }

/* ── Gate ─────────────────────────────────────────────────────────────── */
.gate {
  min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px;
  background:
    radial-gradient(1100px 560px at 82% -12%, rgba(152,180,160,0.40), transparent 60%),
    radial-gradient(900px 520px at -8% 112%, rgba(28,35,26,0.10), transparent 55%),
    var(--paper);
}
.gate-card {
  width: 100%; max-width: 430px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 46px 40px 40px; text-align: center;
}
.gate-logo { height: 46px; width: auto; margin: 0 auto 24px; }
.gate-title { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.025em; color: var(--pine); }
.gate-sub { color: var(--muted); font-size: 15px; margin: 10px 0 26px; }
.gate-note {
  background: #fef7e4; color: #7a5a12; border: 1px solid #f3e2b0;
  border-radius: var(--r-sm); padding: 11px 14px; font-size: 13.5px; text-align: left; margin-bottom: 18px;
}
.gate-input {
  width: 100%; font-family: var(--body); font-size: 16px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); outline: none; margin-bottom: 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.gate-input:focus { border-color: var(--sage); background: var(--white); box-shadow: 0 0 0 4px var(--sage-tint); }
.gate-card .btn { width: 100%; }
.gate-error { color: #b4452f; font-size: 14px; margin-top: 14px; }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  display: flex; align-items: center; gap: 16px; padding: 16px 30px;
  background: rgba(246,248,245,0.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
}
.header-logo { height: 30px; width: auto; }
.header-title { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--pine); letter-spacing: -0.01em; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.badge {
  font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--pine); background: var(--sage-tint-2); border-radius: var(--r-pill); padding: 6px 13px;
}

/* ── Toolbar ──────────────────────────────────────────────────────────── */
.toolbar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: 30px 30px 6px; }
.tabs { display: flex; gap: 6px; background: var(--sage-tint); padding: 5px; border-radius: var(--r-pill); }
.tab {
  font-family: var(--display); font-weight: 600; font-size: 14.5px; color: var(--muted);
  background: none; border: none; border-radius: var(--r-pill); padding: 9px 20px; cursor: pointer;
  transition: color .15s, background .15s, box-shadow .15s;
}
.tab:hover { color: var(--pine); }
.tab.active { background: var(--white); color: var(--pine); box-shadow: var(--sh-sm); }
.search {
  margin-left: auto; font-family: var(--body); font-size: 15px; padding: 11px 16px 11px 40px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white) no-repeat 14px center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235e6b60' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M21 21l-4.3-4.3'/></svg>");
  outline: none; min-width: 240px; transition: border-color .15s, box-shadow .15s;
}
.search:focus { border-color: var(--sage); box-shadow: 0 0 0 4px var(--sage-tint); }

/* ── Sections + cards ─────────────────────────────────────────────────── */
.sections { max-width: 1200px; margin: 0 auto; padding: 16px 30px 64px; }
.theme-block { margin-top: 38px; }
.theme-head {
  font-family: var(--display); font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.theme-head::before { content: ''; width: 16px; height: 3px; border-radius: 2px; background: var(--sage); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, 300px); gap: 24px; justify-content: start; }

.card {
  width: 300px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; cursor: pointer; transition: transform .14s ease, box-shadow .14s ease, border-color .14s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--sage-tint-2); }
.card.coming { cursor: default; }
.card.coming:hover { transform: none; box-shadow: var(--sh-sm); border-color: var(--line); }
.thumb {
  position: relative; aspect-ratio: 16 / 9;
  background: radial-gradient(120% 120% at 25% 15%, rgba(255,255,255,0.30), transparent 55%), linear-gradient(140deg, var(--sage) 0%, var(--sage-deep) 100%);
  display: flex; align-items: center; justify-content: center;
}
.play {
  width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,0.94); color: var(--pine);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(28,35,26,0.32);
  transition: transform .16s ease, color .16s, box-shadow .16s;
}
.play svg { margin-left: 3px; }
.card:not(.coming):hover .play { transform: scale(1.1); color: var(--orange); box-shadow: 0 0 0 6px rgba(246,140,74,0.18), 0 10px 26px rgba(28,35,26,0.34); }
.ribbon {
  position: absolute; top: 11px; right: 11px; font-family: var(--display); font-weight: 700;
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #fff;
  background: rgba(28,35,26,0.78); border-radius: var(--r-pill); padding: 5px 11px; backdrop-filter: blur(2px);
}
.card-body { padding: 16px 17px 18px; }
.card-title { font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.32; color: var(--pine); letter-spacing: -0.005em; }
.card-tag { margin-top: 10px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.card-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); flex: none; }

.empty { color: var(--muted); font-size: 15px; padding: 36px 0; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--pine); color: #b9c4b8; text-align: center; padding: 38px 24px; margin-top: 24px; }
.footer-logo { height: 30px; width: auto; margin: 0 auto 14px; }
.site-footer p { font-size: 13px; }

/* ── Modal ────────────────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(28,35,26,0.70); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-box { position: relative; width: 100%; max-width: 940px; background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.modal-title { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--pine); }
.modal-x { margin-left: auto; background: none; border: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: var(--r-sm); width: 34px; height: 34px; }
.modal-x:hover { color: var(--pine); background: var(--sage-tint); }
.modal-body { background: #000; }
.modal-body .ratio { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.modal-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-soon { background: var(--white); padding: 52px 24px; text-align: center; color: var(--muted); }
.modal-soon strong { display: block; font-family: var(--display); color: var(--pine); font-size: 19px; margin-bottom: 8px; }

@media (max-width: 560px) {
  .toolbar { gap: 12px; padding: 22px 18px 6px; }
  .sections { padding: 12px 18px 48px; }
  .search { margin-left: 0; width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .card, .thumb { width: 100%; }
}
