:root {
  --navy: #0b2744;
  --navy-deep: #07182c;
  --steel: #1c4d78;
  --sky: #d7e4f2;
  --paper: #f3efe6;
  --cream: #faf7f1;
  --ink: #12202e;
  --muted: #5b6b7a;
  --line: #c9d3de;
  --lock: #8a6a2f;
  --ok: #1f6b4a;
  --danger: #8b2e2e;
  --shadow: 0 18px 50px rgba(7, 24, 44, 0.18);
  --radius: 18px;
  --header: 76px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
a { color: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { left: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  background: var(--navy-deep);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-mark {
  display: block;
  height: 34px;
  width: auto;
}

.tabs {
  display: flex;
  gap: 6px;
}
.tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.72);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}
.tab:hover, .tab:focus-visible { color: #fff; background: rgba(255,255,255,0.08); outline: none; }
.tab.is-active { color: #fff; background: var(--steel); }
.tab-quiet {
  color: rgba(255,255,255,0.22);
  padding: 8px 9px;
  margin-left: 4px;
}
.tab-quiet:hover,
.tab-quiet:focus-visible {
  color: rgba(255,255,255,0.7);
  background: transparent;
}
.tab-quiet.is-active {
  color: rgba(255,255,255,0.4);
  background: transparent;
}
.tab .lock {
  width: 11px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 3px 3px 2px 2px;
  position: relative;
}
.tab .lock::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 5px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  left: 0.5px;
  top: -5px;
}

.view { min-height: calc(100vh - var(--header)); }
.hidden { display: none !important; }

.hero {
  min-height: 58vh;
  background:
    linear-gradient(180deg, rgba(7,24,44,0.28), rgba(7,24,44,0.72)),
    var(--hero) center/cover no-repeat;
  color: #fff;
  display: grid;
  align-items: end;
  padding: 48px 8vw 56px;
}
.hero.home { --hero: url("../assets/hero-home.jpg"); }
.hero.auto { --hero: url("../assets/hero-auto.jpg"); }
.hero.creations { --hero: url("../assets/hero-creations.jpg"); }

.hero-logo,
.portal-logo {
  display: block;
  height: 70px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 16px 22px;
  border-radius: 12px;
  margin-bottom: 18px;
}
.hero.creations .hero-logo,
.portal.creations .portal-logo {
  height: 85px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.hero h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.92;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.hero p { margin: 0; max-width: 42ch; font-size: 18px; color: rgba(255,255,255,0.86); }

.wrap { width: min(1100px, calc(100% - 48px)); margin: 0 auto; padding: 56px 0 80px; }
.kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 800;
  margin: 0 0 8px;
}
h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.03em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
}
.card h3 {
  margin: 0 0 8px;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 22px;
}
.card p { margin: 0; color: var(--muted); }
.card-link {
  appearance: none;
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  width: 100%;
  font: inherit;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card-link:hover, .card-link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--steel);
  outline: none;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--navy);
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: 999px;
}
.back:hover, .back:focus-visible {
  background: var(--navy);
  color: #fff;
  outline: none;
}
.seg { display: flex; gap: 6px; }
.seg-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--muted);
}
.seg-btn.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.listing {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.listing-card {
  padding: 0;
  overflow: hidden;
}
.listing-card .shot {
  width: 100%;
  height: 168px;
  object-fit: cover;
  background: var(--sky);
  display: block;
}
.listing-card .shot.empty {
  display: grid;
  place-items: center;
  color: var(--steel);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.listing-body { padding: 14px 16px 16px; }
.listing-body h3 { margin-bottom: 4px; }
.price { font-weight: 800; color: var(--navy); margin: 6px 0 0; }
.listing-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.account-table { display: grid; gap: 8px; margin-top: 14px; }
.account-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  background: var(--cream);
  border-radius: 12px;
  padding: 12px 14px;
}
.account-row .role {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}
.badge-sold {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.portals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header) - 88px);
}
.portal {
  appearance: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: left;
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(7,24,44,0.15), rgba(7,24,44,0.78)),
    var(--bg) center/cover no-repeat;
}
.portal.home { --bg: url("../assets/hero-home.jpg"); }
.portal.auto { --bg: url("../assets/hero-auto.jpg"); }
.portal.creations { --bg: url("../assets/hero-creations.jpg"); }
.contact-bar {
  appearance: none;
  border: 0;
  width: 100%;
  min-height: 88px;
  padding: 18px 24px;
  background: var(--navy-deep);
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}
.contact-bar:hover, .contact-bar:focus-visible {
  background: var(--navy);
  color: #fff;
  outline: none;
}
.portal:focus-visible { outline: 4px solid #fff; outline-offset: -4px; }
.portal:hover .portal-logo, .portal:focus-visible .portal-logo { transform: translateY(-4px); }
.portal-inner {
  position: absolute;
  inset: auto 36px 44px 36px;
  max-width: 520px;
}
.portal-logo {
  margin-bottom: 18px;
  border-radius: 10px;
  transition: transform 0.2s ease;
}
.portal-home-mark {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.portal h2 {
  color: #fff;
  margin: 0 0 6px;
  font-size: clamp(32px, 3.4vw, 48px);
}
.portal p { margin: 0; color: rgba(255,255,255,0.82); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 10px;
  opacity: 0.9;
}

.auth-shell {
  min-height: calc(100vh - var(--header));
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}
.auth-visual {
  background:
    linear-gradient(180deg, rgba(7,24,44,0.25), rgba(7,24,44,0.7)),
    url("../assets/hero-home.jpg") center/cover no-repeat;
  color: #fff;
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.auth-visual h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 64px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.auth-panel {
  padding: 56px 48px;
  background: var(--cream);
  display: flex;
  align-items: center;
}
.auth-card { width: min(420px, 100%); }
label { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--steel); border-color: var(--steel); }
.row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
}
.btn.primary { background: var(--navy); color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn:hover { filter: brightness(1.08); }
.drop { position: relative; }
.drop[open] { flex: 1 1 100%; width: 100%; }
.drop > summary {
  list-style: none;
  cursor: pointer;
}
.drop > summary::-webkit-details-marker { display: none; }
.drop > summary::after { content: " ▾"; }
.drop-body {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  width: 100%;
}
.note { color: var(--muted); font-size: 14px; }
.error { color: var(--danger); font-size: 14px; min-height: 1.2em; }

.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
}
.pill {
  background: var(--sky);
  color: var(--navy);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list li {
  display: flex;
  gap: 10px;
  align-items: start;
  background: var(--cream);
  border-radius: 12px;
  padding: 10px 12px;
}
.list button.x {
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
}
.check { width: 16px; height: 16px; margin-top: 3px; }

.contact {
  background: var(--navy);
  color: #fff;
  border-radius: 24px;
  padding: 32px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}
.contact h2, .contact p { color: #fff; }
.contact .muted { color: rgba(255,255,255,0.72); }
.site-footer {
  padding: 22px 28px 36px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal.hidden { display: none !important; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 24, 44, 0.62);
}
.modal-card {
  position: relative;
  width: min(480px, 100%);
  background: var(--cream);
  border-radius: 20px;
  padding: 28px 26px 24px;
  box-shadow: var(--shadow);
  z-index: 1;
  max-height: calc(100vh - 48px);
  overflow: auto;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

@media (max-width: 900px) {
  .portals, .auth-shell, .grid.three, .grid.two, .contact { grid-template-columns: 1fr; }
  .site-header { padding: 0 14px; height: auto; min-height: var(--header); flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .tabs { width: 100%; justify-content: space-between; }
  .tab { padding: 8px 10px; font-size: 11px; }
  .auth-visual, .auth-panel { padding: 32px 22px; }
  .wrap { width: min(1100px, calc(100% - 28px)); }
}
