:root {
  color-scheme: dark;
  --ink: #f8f5ef;
  --muted: #b5b3ae;
  --brand: #e0362b;
  --line: rgba(255, 249, 236, .16);
  --page: #0e0e10;
  --glass: linear-gradient(115deg, rgba(32,32,35,.46), rgba(14,14,16,.30));
  --glass-small: rgba(20,20,23,.28);
  --glass-border: rgba(245,245,246,.22);
  --field: rgba(255,255,255,.065);
  --field-active: rgba(255,255,255,.11);
  --field-border: rgba(245,245,246,.25);
  --secondary: #d2d1ce;
  --placeholder: #b3b4b5;
  --accent-muted: #c4a681;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: Impact, "Arial Narrow", "Helvetica Neue", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --ink: #202023;
  --muted: #535357;
  --page: #f0efec;
  --glass: linear-gradient(115deg, rgba(255,255,255,.52), rgba(255,255,255,.28));
  --glass-small: rgba(255,255,255,.32);
  --glass-border: rgba(255,255,255,.56);
  --field: rgba(255,255,255,.34);
  --field-active: rgba(255,255,255,.56);
  --field-border: rgba(38,38,42,.24);
  --secondary: #444447;
  --placeholder: #5c5c60;
  --accent-muted: #745333;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); }
body { margin: 0; color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
a { color: inherit; }
.cinematic-shell { width: min(100% - 48px, 1440px); margin: 20px auto 28px; }

.review-bar { min-height: 46px; display: flex; align-items: center; gap: 20px; margin-bottom: 12px; font-size: 11px; color: #959ba0; }
.review-label { display: flex; align-items: center; gap: 9px; flex: 1; white-space: nowrap; }
.review-label strong { font-size: 11px; font-weight: 600; color: #d8dfda; }
.local-dot { width: 5px; height: 5px; background: #91b194; border-radius: 50%; }
.review-actions { display: flex; gap: 3px; background: #1a1e20; border: 1px solid #2c3134; padding: 3px; border-radius: 7px; }
.review-actions button { border: 0; background: transparent; color: #8e989e; font-size: 11px; padding: 7px 13px; border-radius: 4px; white-space: nowrap; }
.review-actions button[aria-pressed="true"] { color: #f3f3ed; background: #343a3d; }
.review-actions button:hover:not(:disabled) { color: #fff; }
.review-status { width: 130px; text-align: right; }

.login { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 780px; height: min(860px, calc(100vh - 105px)); overflow: hidden; border: 1px solid #42433e; background: #1b2427; }
.scene-backdrop, .crane, .scene-vignette { position: absolute; inset: 0; pointer-events: none; }
.scene-backdrop { z-index: 0; background-image: var(--miami-backdrop, linear-gradient(110deg, #172127 10%, #3b3e3b 56%, #67513b 100%)); background-size: cover; background-position: center; }
.scene-backdrop canvas { display: block; width: 100%; height: 100%; }
.crane { z-index: 1; overflow: hidden; }
.crane canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
.scene-vignette { z-index: 2; background: linear-gradient(90deg, rgba(6, 15, 21, .76), rgba(11, 18, 20, .22) 39%, transparent 61%), linear-gradient(0deg, rgba(5, 14, 20, .93), transparent 49%, rgba(10, 16, 19, .3)); }
.hd, .main { position: relative; z-index: 3; }
.hd { display: flex; align-items: center; padding: 27px 46px; gap: 20px; }
.hd__brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: -.015em; }
.hd__brand img { display: block; object-fit: contain; }
.hd__meta { display: flex; align-items: center; gap: 15px; margin-left: auto; font-size: 10px; color: #d4d0c7; }
.hd__dot { width: 3px; height: 3px; border-radius: 50%; background: #b99970; }
.hd__hub { display: grid; place-items: center; min-height: 30px; padding: 0 14px; border: 1px solid rgba(242, 231, 214, .23); border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: .15em; background: rgba(13, 21, 23, .3); }
.main { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-copy { position: absolute; left: 47px; top: 59px; max-width: 380px; }
.eyebrow { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 21px; color: #e0c9aa; text-transform: uppercase; font-size: 9px; line-height: 1.6; letter-spacing: .09em; }
.eyebrow > span[aria-hidden] { flex: 0 0 5px; height: 5px; margin-top: 5px; border-radius: 50%; background: #cf9e60; }
.hero-title { margin: 0; display: flex; flex-direction: column; align-items: flex-start; font-family: var(--font-display); font-size: clamp(65px, 6.6vw, 92px); font-weight: 400; line-height: .94; text-transform: uppercase; letter-spacing: -.01em; text-shadow: 0 2px 20px rgba(0, 0, 0, .08); }
.hero-title__brand { margin-bottom: 3px; }
.brand-amp { color: var(--brand); }
.ht-lock { cursor: default; }
.ht-lock .ht-ln { display: block; white-space: nowrap; }
.ht-lock .ht-c { display: inline-block; }
.ht-lock .ht-amp { color: var(--brand); }
.ht-lock.ht-live .ht-c { will-change: transform; }
.hero-tagline { margin: 25px 0 0; max-width: 260px; font-size: 23px; font-weight: 500; line-height: 1.21; letter-spacing: .012em; text-transform: uppercase; color: #f4ede2; }
.hero-tagline > span { display: block; }
.login-footer { padding: 0 46px 19px; }
.bar { position: relative; display: grid; grid-template-columns: 1.2fr 1.24fr 1.1fr .75fr 1.07fr; align-items: center; gap: 19px; min-height: 132px; margin: 0; padding: 23px 25px 28px; border: 1px solid rgba(233, 224, 208, .27); border-radius: 18px; background: linear-gradient(115deg, rgba(28, 38, 43, .87), rgba(12, 24, 30, .85)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255, 246, 226, .07), 0 15px 40px rgba(0, 0, 0, .2); }
.bar__intro h2 { margin: 0 0 7px; font-size: 22px; font-weight: 500; letter-spacing: -.035em; }
.bar__intro p { margin: 0; max-width: 150px; font-size: 11px; line-height: 1.55; color: #b7c0c1; }
.bar__field { min-width: 0; }
.bar__field label { display: block; margin: 0 0 8px; font-size: 11px; color: #dce2e1; }
.bar__field input { display: block; width: 100%; height: 42px; min-width: 0; padding: 0 13px; border: 1px solid rgba(230, 239, 239, .2); border-radius: 9px; background: rgba(247, 247, 235, .045); color: #fff; font-size: 12px; outline-offset: 2px; transition: border-color .16s ease, background .16s ease; }
.bar__field input::placeholder { color: #9aa5a9; }
.bar__field input:focus { border-color: #c9af8a; background: rgba(247, 247, 235, .065); }
.bar__btn { align-self: end; height: 42px; margin-bottom: 0; display: flex; justify-content: center; align-items: center; gap: 16px; border: 1px solid #e25247; border-radius: 999px; color: #fff; background: var(--brand); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13); font-size: 12px; font-weight: 600; }
.bar__btn:hover { background: #e0463b; }
.bar__btn > span { font-size: 15px; font-weight: 400; }
.bar__aside { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; padding-top: 20px; }
.bar__forgot { padding: 0; border: 0; background: transparent; color: #e1e7e5; text-align: left; font-size: 11px; }
.bar__forgot:hover { text-decoration: underline; text-underline-offset: 3px; }
.bar__aside > span { font-size: 10px; color: #a1aeb1; line-height: 1.4; }
.form-feedback { position: absolute; left: 25px; right: 25px; bottom: 7px; margin: 0; color: #ddc5a3; font-size: 9px; line-height: 1.25; }
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.service { display: flex; align-items: center; gap: 12px; min-height: 63px; padding: 0 17px; border: 1px solid var(--line); border-radius: 11px; background: rgba(16, 26, 31, .7); }
.service__index { color: #bc9c77; font-size: 10px; }
.service__name { font-size: 12px; font-weight: 500; color: #e0e3df; }
.service__arrow { margin-left: auto; font-size: 13px; color: #90999a; }
.service__detail { margin-left: auto; font-size: 9px; color: #959e9e; white-space: nowrap; }
.demo-note { margin: 12px 0 0; font-size: 9px; line-height: 1.4; color: #778489; text-align: right; }

@media (min-width: 1600px) {
  .login { min-height: 860px; }
  .hero-copy { top: 73px; }
}
@media (max-width: 1150px) {
  .cinematic-shell { width: calc(100% - 32px); }
  .hd { padding-inline: 30px; }
  .hero-copy { left: 31px; }
  .login-footer { padding-inline: 30px; }
  .bar { gap: 14px; padding-inline: 18px; grid-template-columns: 1.07fr 1.18fr 1.08fr .78fr; }
  .bar__aside { grid-column: 2 / -1; flex-direction: row; justify-content: space-between; padding-top: 0; margin-top: -3px; }
  .bar__intro { grid-row: 1 / 3; }
  .form-feedback { left: 18px; right: 18px; }
  .service { gap: 9px; padding-inline: 12px; }
  .service--heritage { flex-wrap: wrap; align-content: center; column-gap: 9px; row-gap: 4px; }
  .service__detail { flex-basis: 100%; padding-left: 21px; }
}
@media (max-width: 760px) {
  .cinematic-shell { width: calc(100% - 24px); margin-top: 10px; }
  .review-bar { gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
  .review-label { flex-basis: calc(100% - 140px); font-size: 10px; }
  .review-label > span:last-child { display: none; }
  .review-status { order: 2; width: auto; margin-left: auto; font-size: 10px; }
  .review-actions { order: 3; }
  .review-actions button { padding-inline: 13px; }
  .login { height: auto; min-height: 0; }
  .crane { height: 490px; bottom: auto; }
  .scene-backdrop { height: 520px; bottom: auto; }
  .hd { padding: 20px; gap: 14px; }
  .hd__brand { font-size: 11px; gap: 8px; }
  .hd__brand img { width: 40px; height: 28px; }
  .hd__meta { display: none; }
  .hd__hub { margin-left: auto; min-height: 26px; padding-inline: 10px; font-size: 9px; }
  .main { padding-top: 395px; }
  .hero-copy { top: 48px; left: 22px; max-width: 280px; }
  .eyebrow { font-size: 8px; max-width: 270px; margin-bottom: 18px; letter-spacing: .07em; }
  .hero-title { font-size: clamp(48px, 8.2vw, 62px); }
  .hero-tagline { font-size: 18px; margin-top: 21px; }
  .scene-vignette { background: linear-gradient(90deg, rgba(6, 15, 21, .73), rgba(11, 18, 20, .22) 58%, transparent), linear-gradient(0deg, #08131a 5%, rgba(5, 14, 20, .78) 35%, transparent 74%); }
  .login-footer { padding: 0 18px 17px; }
  .bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 17px 13px; padding: 21px 17px 30px; }
  .bar__intro { grid-column: 1 / -1; grid-row: auto; }
  .bar__intro h2 { font-size: 24px; }
  .bar__intro p { max-width: none; }
  .bar__field input { height: 43px; font-size: 16px; }
  .bar__field label { font-size: 11px; }
  .bar__btn { grid-column: 1 / -1; height: 44px; font-size: 12px; }
  .bar__aside { grid-column: 1 / -1; margin-top: 0; gap: 10px; }
  .bar__forgot { font-size: 10px; }
  .bar__aside > span { font-size: 9px; }
  .form-feedback { left: 17px; right: 17px; bottom: 8px; font-size: 9px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; gap: 9px; }
  .service { min-height: 59px; padding-inline: 12px; }
  .service__name { font-size: 11px; }
  .service--heritage { flex-wrap: nowrap; }
  .service__detail { display: none; }
  .demo-note { font-size: 8px; text-align: center; }
}
@media (max-width: 390px) {
  .hero-title { font-size: 44px; }
  .bar { grid-template-columns: minmax(0, 1fr); }
  .bar__aside { flex-direction: column; gap: 7px; }
  .bar__field input { font-size: 16px; }
  .services { gap: 7px; }
  .service { gap: 7px; padding-inline: 9px; }
  .service__name { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .ht-lock .ht-c { transform: none !important; }
}

/* The chosen scene now fills the viewport. Inspection controls belong to the
   optional review route, never to the normal login experience. */
.cinematic-shell { width: 100%; margin: 0; }
.review-bar { display: none; }
.login { border: 0; height: 100svh; min-height: 700px; background: var(--page); }
.scene-backdrop { background: #0e0e10; }
.scene-backdrop::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('./assets/miami-live-poster.jpg') 67% center / cover; transform: scale(1.05708); }
.scene-backdrop video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 67% center; transform: scale(1.05708); }
.scene-backdrop::before, .scene-backdrop video { filter: brightness(.78) saturate(.88); }
.crane canvas { opacity: 0; }
.crane[data-art-ready="true"] canvas { opacity: 1; }
.scene-vignette { background: linear-gradient(90deg, rgba(14,14,16,.80), rgba(14,14,16,.20) 39%, transparent 64%), linear-gradient(0deg, rgba(14,14,16,.95), transparent 48%, rgba(14,14,16,.23)); }
.bar { background: var(--glass); border-color: var(--glass-border); -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 12px 36px rgba(0,0,0,.13); }
.service, .hd__hub, .theme-toggle { background: var(--glass-small); border-color: var(--glass-border); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bar__intro p, .bar__aside > span, .service__arrow, .service__detail, .demo-note { color: var(--muted); }
.bar__field label, .bar__forgot, .hd__meta { color: var(--secondary); }
.bar__field input { color: var(--ink); background: var(--field); border-color: var(--field-border); }
.bar__field input::placeholder { color: var(--placeholder); }
.bar__field input:focus { background: var(--field-active); border-color: var(--accent-muted); }
.hero-tagline, .service__name { color: var(--ink); }
.service__index, .form-feedback { color: var(--accent-muted); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0; min-height: 34px; padding: 0 10px; border: 1px solid var(--glass-border); border-radius: 6px; color: var(--ink); font-size: 10px; font-weight: 500; }
.theme-toggle:hover { background: var(--field-active); }
.theme-toggle__moon { display: none; }
html[data-theme="light"] .theme-toggle__sun { display: none; }
html[data-theme="light"] .theme-toggle__moon { display: block; }
/* Keep the light UI's paper gradient behind the 3D subject. The crane's
   paint, steel and shadows retain their photographic contrast in both themes. */
html[data-theme="light"] .scene-vignette { z-index: 0; background: linear-gradient(90deg, rgba(240,239,236,.90), rgba(240,239,236,.72) 22%, rgba(240,239,236,.18) 40%, transparent 55%), linear-gradient(0deg, rgba(240,239,236,.92), rgba(240,239,236,.48) 15%, transparent 30%); }
html[data-theme="light"] .hd__meta { color: #eeece8; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
html[data-theme="light"] .eyebrow { color: #62472f; }
html[data-theme="light"] .hero-title { text-shadow: none; paint-order: stroke fill; -webkit-text-stroke: 1px rgba(240,239,236,.8); }
html[data-theme="light"] .hero-tagline, html[data-theme="light"] .eyebrow { text-shadow: 0 1px 2px rgba(240,239,236,.9); }
html[data-review] .review-bar { display: flex; padding: 8px 24px; margin: 0; }
html[data-review] .login { height: calc(100svh - 62px); }
@media (min-width: 1600px) { .login { min-height: 760px; } }
@media (max-width: 760px) {
  .login { height: auto; min-height: 100svh; }
  .scene-backdrop { height: 490px; }
  .scene-vignette { background: linear-gradient(90deg, rgba(14,14,16,.74), rgba(14,14,16,.16) 58%, transparent), linear-gradient(0deg, #0e0e10 5%, rgba(14,14,16,.79) 35%, transparent 74%); }
  html[data-theme="light"] .scene-vignette { background: linear-gradient(90deg, rgba(240,239,236,.92), rgba(240,239,236,.16) 75%, transparent), linear-gradient(to bottom, transparent 220px, rgba(240,239,236,.3) 360px, #f0efec 490px); }
  .theme-toggle { width: 34px; padding: 0; }
  .theme-toggle__label { display: none; }
  .hd { gap: 10px; }
  html[data-review] .login { height: auto; }
}

.login-footer { padding-bottom: 43.6px; }
.bar__forgot { text-decoration: none; }
.bar__error { grid-column: 1 / -1; margin: 0; color: #ffc5bd; font-size: 12px; line-height: 1.5; }
html[data-theme="light"] .bar__error { color: #8c211b; }
@media (max-width: 760px) { .login-footer { padding-bottom: 40.2px; } }
