:root {
  --ink: #152238;
  --blue: #377cc4;
  --blue-dark: #245b93;
  --pale: #eef5fb;
  --line: #dce7f0;
  --muted: #718096;
  --white: #fff;
  --shadow: 0 18px 60px rgba(26, 63, 102, .12);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #fff 0, #fff 60%, #f7fbff 100%); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.site-header { height: 96px; padding: 0 clamp(24px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(220,231,240,.7); }
.brand { color: var(--blue); font-size: clamp(23px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.05em; }
.year-nav { display: flex; align-items: center; gap: clamp(15px, 2vw, 29px); color: var(--blue-dark); font-size: 13px; font-weight: 750; }
.year-nav a { padding: 12px 0; border-bottom: 2px solid transparent; }
.year-nav a:hover { border-color: var(--blue); }
.year-nav .admin-link { color: var(--muted); }
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; color: var(--blue-dark); border-radius: 999px; padding: 10px 16px; font-weight: 700; }
.home, .playlist-page, .admin-wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.home-hero { min-height: 520px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding: 70px 0 50px; }
.eyebrow { color: var(--blue); text-transform: uppercase; letter-spacing: .15em; font-size: 12px; font-weight: 800; }
h1 { margin: 0; color: var(--blue); letter-spacing: -.055em; line-height: .94; font-size: clamp(60px, 9vw, 126px); }
.lead { max-width: 540px; color: var(--muted); font-size: clamp(17px, 2vw, 22px); line-height: 1.6; }
.vinyl { justify-self: center; width: min(39vw, 430px); aspect-ratio: 1; border-radius: 50%; position: relative; background: repeating-radial-gradient(circle, #17324b 0 2px, #10263a 3px 7px); box-shadow: var(--shadow); animation: spin 18s linear infinite; }
.vinyl:before { content: ""; position: absolute; inset: 31%; border-radius: 50%; background: radial-gradient(circle, #fff 0 9%, var(--blue) 10% 100%); }
.vinyl span { position: absolute; inset: 47%; border-radius: 50%; background: #fff; z-index: 2; }
@keyframes spin { to { transform: rotate(360deg); } }
.year-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; padding: 30px 0 100px; }
.year-card { min-height: 180px; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.86); display: grid; grid-template-columns: 1fr auto; align-content: space-between; transition: .22s ease; }
.year-card:hover { transform: translateY(-5px); border-color: #accbe6; box-shadow: var(--shadow); }
.year-number { color: var(--blue); font-size: 42px; font-weight: 800; letter-spacing: -.05em; }
.year-meta { align-self: end; color: var(--muted); font-size: 14px; }
.card-arrow { justify-self: end; color: var(--blue); font-size: 25px; }
.playlist-page { padding-bottom: 100px; }
.playlist-heading { padding: 70px 0 40px; display: flex; align-items: end; gap: 28px; border-bottom: 1px solid var(--line); }
.playlist-heading h1 { font-size: clamp(78px, 14vw, 170px); }
.playlist-heading p:last-child { color: var(--muted); margin: 0 0 16px auto; }
.playlist-shell { margin-top: 42px; }
.now-playing { position: sticky; top: 14px; z-index: 10; display: grid; grid-template-columns: 72px 1fr 64px; gap: 18px; align-items: center; padding: 18px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, var(--blue-dark), var(--blue)); box-shadow: var(--shadow); }
.now-art { width: 72px; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, #17324b 0 2px, #10263a 3px 6px); position: relative; }
.now-art:after { content: ""; position: absolute; inset: 38%; border-radius: 50%; background: #fff; }
.now-copy { display: flex; flex-direction: column; min-width: 0; }
.now-copy strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 18px; }
.now-copy span:last-child { opacity: .72; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-label { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; opacity: .7; margin-bottom: 7px; }
.big-play { width: 58px; aspect-ratio: 1; border: 0; border-radius: 50%; color: var(--blue-dark); background: #fff; font-weight: 900; font-size: 19px; }
.transport { display: grid; grid-template-columns: 36px 42px 1fr 42px 36px; align-items: center; gap: 8px; padding: 18px 10px; color: var(--muted); font-size: 12px; }
.transport button { border: 0; background: transparent; color: var(--blue); font-size: 28px; }
.transport input { accent-color: var(--blue); width: 100%; }
.track-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.track-list li { border-bottom: 1px solid var(--line); }
.track { width: 100%; display: grid; grid-template-columns: 42px minmax(0,1fr) 56px 28px; align-items: center; gap: 12px; padding: 17px 8px; border: 0; background: transparent; text-align: left; color: var(--ink); }
.track:hover, .track.active { background: var(--pale); }
.track-index, .track-duration { color: var(--muted); font-size: 13px; }
.track-copy { display: flex; flex-direction: column; min-width: 0; }
.track-copy strong, .track-copy small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-copy small { color: var(--muted); margin-top: 4px; }
.track-icon { color: var(--blue); opacity: 0; }
.track:hover .track-icon, .track.active .track-icon { opacity: 1; }
.video-section { margin-top: 90px; }
.section-title { display: flex; justify-content: space-between; color: var(--blue); border-bottom: 1px solid var(--line); padding-bottom: 15px; font-size: 18px; font-weight: 800; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 30px; }
.video-card { margin: 0; }
.video-card video, .video-card img, .video-frame { width: 100%; aspect-ratio: 16/9; border-radius: 18px; background: #eaf1f7; object-fit: cover; overflow: hidden; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-card p { color: var(--muted); }
.external-media { min-height: 120px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 18px; color: var(--blue); }
.site-footer { width: min(1160px, calc(100% - 40px)); margin: 0 auto; min-height: 120px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }
.flash { width: min(760px, calc(100% - 40px)); margin: 18px auto; padding: 14px 18px; border-radius: 12px; background: #e8f8ef; color: #237548; }
.flash.error { background: #fff0f0; color: #a23535; }
.admin-wrap { padding: 60px 0 110px; }
.admin-wrap.narrow { max-width: 680px; }
.admin-wrap h1 { font-size: clamp(54px, 8vw, 94px); }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 42px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 750; }
.button.secondary { background: var(--pale); color: var(--blue-dark); }
.back { display: inline-block; color: var(--muted); margin-bottom: 35px; }
.admin-pages { display: grid; gap: 12px; }
.admin-pages a { display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.admin-pages strong { color: var(--blue); font-size: 30px; }
.admin-pages span { color: var(--muted); }
.admin-pages b { color: var(--blue); }
.admin-add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.panel h2 { margin-top: 0; color: var(--blue); }
label { display: grid; gap: 7px; margin: 15px 0; color: var(--muted); font-size: 13px; font-weight: 650; }
input { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; }
input:focus { outline: 3px solid rgba(55,124,196,.16); border-color: var(--blue); }
.admin-items { margin-top: 45px; }
.admin-items h2 { display: flex; justify-content: space-between; color: var(--blue); }
.admin-item { display: grid; grid-template-columns: 76px minmax(0,1fr) auto; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding: 12px 0; }
.item-kind { color: var(--muted); font-size: 12px; }
.item-edit { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.item-edit button, .item-actions button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; color: var(--blue); }
.item-actions { display: flex; gap: 5px; }
.item-actions form { margin: 0; }
.item-actions .danger { color: #b43b3b; }
.item-actions button:disabled { opacity: .25; }
.not-found { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 20px; }
@media (max-width: 800px) {
  .site-header { height: 76px; padding: 0 20px; }
  .nav-toggle { display: block; }
  .year-nav { display: none; position: absolute; top: 68px; right: 18px; width: 180px; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
  .year-nav.open { display: flex; }
  .year-nav a { padding: 9px 0; }
  .home, .playlist-page, .admin-wrap { width: min(100% - 28px, 680px); }
  .home-hero { min-height: auto; grid-template-columns: 1fr; padding: 55px 0; }
  .vinyl { width: min(76vw, 360px); grid-row: 1; }
  .year-grid { grid-template-columns: 1fr 1fr; }
  .year-card { min-height: 140px; padding: 20px; }
  .playlist-heading { align-items: start; flex-direction: column; gap: 10px; }
  .playlist-heading p:last-child { margin: 0; }
  .now-playing { top: 7px; grid-template-columns: 54px minmax(0,1fr) 50px; padding: 12px; border-radius: 17px; }
  .now-art { width: 54px; }
  .big-play { width: 46px; }
  .video-grid, .admin-add-grid { grid-template-columns: 1fr; }
  .admin-heading { align-items: start; flex-direction: column; }
  .admin-pages a { grid-template-columns: 76px 1fr; }
  .admin-pages b { grid-column: 2; }
  .admin-item { grid-template-columns: 1fr auto; }
  .item-kind { grid-column: 1 / -1; }
  .item-edit { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .year-grid { grid-template-columns: 1fr; }
  .home-hero h1 { font-size: 54px; }
  .playlist-heading h1 { font-size: 82px; }
  .track { grid-template-columns: 28px minmax(0,1fr) auto 28px; gap: 8px; }
  .track-duration { display: block; font-size: 12px; }
  .site-footer { flex-direction: column; justify-content: center; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .vinyl { animation: none; } * { scroll-behavior: auto !important; } }


.login-document { min-height: 100%; background: #eaf4ff; }
.login-page {
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  color: #10233b;
  background:
    radial-gradient(circle at 12% 8%, rgba(255,255,255,.98) 0, rgba(255,255,255,.58) 20rem, transparent 38rem),
    radial-gradient(circle at 72% 18%, rgba(84,168,255,.28), transparent 34rem),
    linear-gradient(145deg, #f9fcff 0%, #e8f4ff 48%, #d8ecff 100%);
}
.login-page::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: -22%;
  pointer-events: none;
  opacity: .72;
  background:
    conic-gradient(from 205deg at 58% 48%, transparent 0 26%, rgba(255,255,255,.8) 31%, transparent 38% 67%, rgba(63,143,224,.13) 72%, transparent 79%);
  animation: gate-drift 22s ease-in-out infinite alternate;
}
.login-page::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(39,98,155,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39,98,155,.13) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 76%);
}
.gate-shell {
  width: min(1480px, 100%);
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 64px) clamp(22px, 5vw, 82px) clamp(32px, 4vw, 58px);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .72fr);
  gap: clamp(42px, 7vw, 118px);
  align-items: stretch;
}
.gate-story {
  min-height: 620px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.gate-brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  position: relative;
  z-index: 5;
  color: #153c67;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .19em;
}
.gate-brand-mark {
  width: 31px;
  aspect-ratio: 1;
  position: relative;
  display: inline-block;
  border-radius: 50%;
  background: #246fb9;
  box-shadow: 0 8px 24px rgba(20,87,153,.25);
}
.gate-brand-mark::after {
  content: "";
  position: absolute;
  inset: 39%;
  border-radius: inherit;
  background: #fff;
}
.gate-visual {
  width: min(37vw, 520px);
  aspect-ratio: 1;
  position: absolute;
  top: 5%;
  right: 2%;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 42px 54px rgba(24,80,133,.2));
}
.gate-orbit {
  position: absolute;
  inset: -8%;
  border: 1px solid rgba(35,105,175,.2);
  border-radius: 50%;
}
.gate-orbit::before,
.gate-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 25px rgba(24,87,150,.18);
}
.gate-orbit::before { width: 15px; aspect-ratio: 1; top: 13%; left: 15%; }
.gate-orbit::after { width: 9px; aspect-ratio: 1; right: 4%; bottom: 27%; background: #2f82d0; }
.gate-record {
  width: 84%;
  aspect-ratio: 1;
  position: relative;
  border-radius: 50%;
  background:
    radial-gradient(circle, #eef8ff 0 2.5%, #1f69ad 2.8% 16%, #d9eeff 16.4% 17.7%, transparent 18%),
    repeating-radial-gradient(circle, #1c3550 0 2px, #0f253a 3px 6px, #213c57 7px 8px);
  box-shadow:
    0 0 0 12px rgba(255,255,255,.52),
    0 34px 80px rgba(11,55,98,.28),
    inset 14px 10px 30px rgba(255,255,255,.08);
  animation: gate-spin 24s linear infinite;
}
.gate-record::before {
  content: "FAMINSKIS  •  PRIVATE ARCHIVE  •";
  position: absolute;
  inset: 25%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255,255,255,.83);
  font-size: clamp(7px, .65vw, 10px);
  font-weight: 800;
  letter-spacing: .14em;
  text-align: center;
  background: radial-gradient(circle at 32% 25%, #64b1f2, #2369aa 65%, #174d80);
}
.gate-record span {
  position: absolute;
  z-index: 2;
  inset: 47.5%;
  border-radius: 50%;
  background: #f8fcff;
  box-shadow: 0 0 0 4px rgba(9,45,76,.24);
}
.gate-wave {
  position: absolute;
  right: -2%;
  bottom: 10%;
  height: 64px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  box-shadow: 0 18px 45px rgba(31,93,151,.16);
  backdrop-filter: blur(14px);
}
.gate-wave i {
  width: 3px;
  height: var(--wave, 18px);
  display: block;
  border-radius: 99px;
  background: #2678c4;
  animation: gate-wave 1.5s ease-in-out infinite alternate;
}
.gate-wave i:nth-child(2), .gate-wave i:nth-child(11) { --wave: 27px; animation-delay: -.2s; }
.gate-wave i:nth-child(3), .gate-wave i:nth-child(9) { --wave: 38px; animation-delay: -.8s; }
.gate-wave i:nth-child(4), .gate-wave i:nth-child(8) { --wave: 22px; animation-delay: -.4s; }
.gate-wave i:nth-child(5), .gate-wave i:nth-child(10) { --wave: 34px; animation-delay: -1.1s; }
.gate-wave i:nth-child(6) { --wave: 44px; animation-delay: -.6s; }
.gate-wave i:nth-child(7) { --wave: 30px; animation-delay: -.9s; }
.gate-copy {
  max-width: 760px;
  position: relative;
  z-index: 4;
  padding-top: 390px;
}
.gate-kicker,
.gate-step {
  margin: 0 0 17px;
  color: #256aa9;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.gate-copy h1 {
  margin: 0;
  color: #102f50;
  font-size: clamp(70px, 7.8vw, 126px);
  font-weight: 770;
  line-height: .78;
  letter-spacing: -.075em;
}
.gate-copy h1 em {
  color: #2d80c8;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
.gate-copy > p:last-child {
  max-width: 510px;
  margin: 30px 0 0;
  color: #526f8c;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.65;
}
.gate-panel {
  display: grid;
  align-items: center;
}
.gate-panel-inner {
  width: 100%;
  padding: clamp(34px, 4.3vw, 64px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 38px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 34px 100px rgba(27,81,133,.17), inset 0 1px 0 #fff;
  backdrop-filter: blur(28px) saturate(125%);
}
.gate-panel-inner::before {
  content: "";
  position: absolute;
  width: 180px;
  aspect-ratio: 1;
  top: -92px;
  right: -76px;
  border-radius: 50%;
  border: 34px solid rgba(66,147,222,.1);
}
.gate-panel h2 {
  max-width: 350px;
  margin: 0;
  color: #102f50;
  font-size: clamp(40px, 4vw, 61px);
  line-height: .98;
  letter-spacing: -.055em;
}
.gate-panel-copy {
  margin: 18px 0 32px;
  color: #6b8299;
  line-height: 1.55;
}
.gate-form { display: grid; gap: 12px; }
.gate-form label {
  margin: 0 0 1px;
  color: #1b4e7b;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.gate-form input {
  width: 100%;
  min-height: 64px;
  padding: 0 20px;
  border: 1px solid rgba(96,145,190,.26);
  border-radius: 18px;
  color: #102f50;
  background: rgba(255,255,255,.78);
  font-size: 23px;
  letter-spacing: .16em;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.gate-form input::placeholder { color: #a3b7ca; letter-spacing: .22em; }
.gate-form input:focus {
  border-color: #2d7dc5;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(45,125,197,.12), 0 12px 32px rgba(29,91,149,.1);
}
.gate-form button {
  min-height: 64px;
  margin-top: 4px;
  padding: 0 20px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #143f6b, #2579c5);
  box-shadow: 0 16px 35px rgba(27,92,153,.24);
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.gate-form button:hover { transform: translateY(-2px); box-shadow: 0 20px 42px rgba(27,92,153,.3); }
.gate-form button:active { transform: translateY(0); }
.gate-form button span:last-child {
  width: 36px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #174a78;
  background: #fff;
  font-size: 18px;
}
.gate-error {
  margin: -10px 0 18px;
  padding: 13px 15px;
  border: 1px solid rgba(185,64,64,.13);
  border-radius: 14px;
  color: #9b3434;
  background: rgba(255,238,238,.86);
  font-size: 13px;
  line-height: 1.45;
}
.gate-meta {
  margin-top: 28px;
  padding-top: 19px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(81,126,169,.16);
  color: #7b92a7;
  font-size: 11px;
}
.gate-meta span { display: inline-flex; align-items: center; gap: 8px; }
.gate-meta span::before {
  content: "";
  width: 6px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #3f91d8;
  box-shadow: 0 0 0 4px rgba(63,145,216,.12);
}
.gate-footer {
  width: min(1480px, calc(100% - clamp(44px, 10vw, 164px)));
  min-height: 72px;
  margin: 0 auto;
  padding: 18px 0 max(18px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid rgba(62,114,164,.16);
  color: #738ca4;
  font-size: 11px;
}
.gate-footer a {
  color: #245f98;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(36,95,152,.3);
  text-underline-offset: 3px;
}
.gate-footer a:hover { text-decoration-color: currentColor; }
@keyframes gate-spin { to { transform: rotate(360deg); } }
@keyframes gate-wave { to { height: calc(var(--wave, 18px) * .45); opacity: .52; } }
@keyframes gate-drift { to { transform: translate3d(4%, -2%, 0) rotate(4deg); } }

@media (max-width: 980px) {
  .gate-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    padding: max(26px, env(safe-area-inset-top)) clamp(18px, 5vw, 46px) 38px;
  }
  .gate-story { min-height: 600px; }
  .gate-visual { width: min(62vw, 460px); top: 4%; right: 2%; }
  .gate-copy { padding-top: 360px; }
  .gate-panel { width: min(100%, 620px); margin: 0 auto; }
  .gate-footer { width: calc(100% - clamp(36px, 10vw, 92px)); }
}
@media (max-width: 580px) {
  .login-page::after { background-size: 44px 44px; }
  .gate-shell { gap: 22px; padding-bottom: 26px; }
  .gate-story { min-height: 520px; }
  .gate-brand { font-size: 10px; }
  .gate-brand-mark { width: 27px; }
  .gate-visual { width: min(78vw, 340px); top: 9%; right: -15%; }
  .gate-wave { right: 0; bottom: 7%; height: 52px; padding: 11px 14px; gap: 4px; }
  .gate-copy { padding-top: 322px; }
  .gate-kicker { margin-bottom: 12px; }
  .gate-copy h1 { font-size: clamp(52px, 17vw, 76px); line-height: .82; }
  .gate-copy > p:last-child { margin-top: 22px; font-size: 14px; }
  .gate-panel-inner { padding: 32px 22px 25px; border-radius: 27px; }
  .gate-panel h2 { font-size: clamp(38px, 12vw, 50px); }
  .gate-panel-copy { margin: 15px 0 26px; }
  .gate-form input, .gate-form button { min-height: 58px; border-radius: 16px; }
  .gate-meta { align-items: flex-start; flex-direction: column; gap: 10px; }
  .gate-footer {
    width: calc(100% - 36px);
    min-height: 92px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}
@media (max-width: 370px) {
  .gate-story { min-height: 495px; }
  .gate-visual { right: -25%; }
  .gate-copy { padding-top: 300px; }
  .gate-copy h1 { font-size: 50px; }
  .gate-panel-inner { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .gate-record, .gate-wave i, .login-page::before { animation: none; }
  .gate-form button { transition: none; }
}
