/* Lightweight public shell: coming-soon + topbar + login/waitlist forms only.
   Full workspace and live landing pages load styles.css dynamically. */
:root {
  color-scheme: light;
  --ss-navy: #0b2c56;
  --ss-ocean: #1e6fd6;
  --ss-ocean-dark: #1658ad;
  --ss-border: #c5d4e8;
  --ss-text-secondary: #5b6b82;
  --ink: var(--ss-navy);
  --muted: var(--ss-text-secondary);
  --line: var(--ss-border);
  --paper: #ffffff;
  --panel: #ffffff;
  --teal-soft: #eaf9f8;
  --teal: #58c7c2;
  --coral: #ff8a8a;
  --shadow-hover: 0 18px 42px rgba(20, 33, 61, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

h2, p { margin: 0; }

button, input, textarea { font: inherit; }

button {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--ss-ocean);
  color: #ffffff;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
}

button.secondary {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}

input, textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fbfcff;
  color: var(--ink);
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
}

.muted { color: var(--muted); }

.app-shell { min-height: 100vh; max-width: 100%; overflow-x: clip; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-logo {
  display: block;
  width: min(280px, 58vw);
  height: 96px;
  object-fit: contain;
  object-position: left center;
}

/* Compact chrome once workspace boots (before deferred features.css). */
body.internal-dashboard .topbar {
  height: 72px;
  min-height: 72px;
  max-height: 72px;
  overflow: hidden;
  flex-direction: row;
  align-items: center;
}

body.internal-dashboard .site-logo {
  width: auto;
  max-width: 220px;
  height: 56px;
  max-height: 56px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-button { display: none; }

.logout-button,
.workspace-search { display: none; }

.main-panel { min-width: 0; max-width: 100%; }

.public-mode {
  background: linear-gradient(180deg, #f7fafc 0%, #ffffff 45%, #f4f8fb 100%);
  color: #0b2c56;
}

.public-mode .topbar {
  height: 76px;
  border-bottom: 1px solid rgba(11, 44, 86, 0.08);
  box-shadow: 0 10px 30px rgba(11, 44, 86, 0.05);
  background: rgba(255, 255, 255, 0.94);
}

body.public-mode.coming-soon-mode .topbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 104px;
  min-height: 104px;
  max-height: 104px;
  overflow: hidden;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid rgba(11, 44, 86, 0.08);
  box-shadow: 0 10px 30px rgba(11, 44, 86, 0.05);
  z-index: 20;
}

body.public-mode.coming-soon-mode .site-logo {
  width: min(280px, 58vw);
  height: 96px;
  max-height: 96px;
  object-fit: contain;
  object-position: left center;
}

body.public-mode.coming-soon-mode .login-button {
  background: #0b2c56;
  border: 1px solid #0b2c56;
  color: #ffffff;
}

body.public-mode.coming-soon-mode .app-shell {
  position: relative;
  background: #071726;
}

body.public-mode.coming-soon-mode .workspace,
body.public-mode.coming-soon-mode .main-panel {
  margin: 0;
  padding: 0;
  min-height: calc(100svh - 104px);
  background: transparent;
}

body.public-mode.coming-soon-mode .coming-soon-cinema-media {
  background-color: #0b2c56;
  background-image: url("/assets/coming-soon-hero-harbor-wide.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

@media (max-width: 720px) {
  body.public-mode.coming-soon-mode .topbar {
    height: 84px;
    min-height: 84px;
    max-height: 84px;
  }

  body.public-mode.coming-soon-mode .site-logo {
    width: min(200px, 52vw);
    height: 64px;
    max-height: 64px;
  }

  body.public-mode.coming-soon-mode .workspace,
  body.public-mode.coming-soon-mode .main-panel {
    min-height: calc(100svh - 84px);
    background: transparent;
  }

  body.public-mode.coming-soon-mode .coming-soon-cinema-media {
    background-image: url("/assets/coming-soon-hero-harbor-mobile.jpg");
    background-position: center top;
    background-size: cover;
  }
}

.public-mode .login-button {
  display: inline-flex;
  align-items: center;
  background: #0b2c56;
  border-color: #0b2c56;
  border-radius: 999px;
  color: #ffffff;
  min-height: 42px;
  padding: 0 18px;
  font-weight: 700;
}

.public-mode .workspace { display: block; min-height: auto; }
.public-mode .sidebar { display: none; }
.public-mode .main-panel { padding: 0; }

.coming-soon-hero {
  align-items: center;
  background:
    radial-gradient(circle at 18% 14%, rgba(211, 179, 109, 0.24), transparent 28%),
    radial-gradient(circle at 80% 8%, rgba(11, 53, 91, 0.18), transparent 30%),
    linear-gradient(135deg, #fffaf0, #f8fbff);
  display: grid;
  min-height: calc(100vh - 104px);
  padding: 48px 22px;
}

.coming-soon-hero.ss-m-hero--overlay {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  min-height: min(92vh, 920px);
  padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 48px);
  background: #dfe7ef;
  overflow: hidden;
}

.coming-soon-hero.ss-m-hero--overlay .ss-m-hero-media--full {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.coming-soon-hero.ss-m-hero--overlay .ss-m-hero-photo {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center 38%;
}

.coming-soon-hero.ss-m-hero--overlay .coming-soon-hero-shade,
.coming-soon-hero.ss-m-hero--overlay .ss-m-hero-shade {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.58) 45%, rgba(255, 255, 255, 0.72) 100%),
    linear-gradient(105deg, rgba(255, 255, 255, 0.35) 0%, transparent 55%);
}

.coming-soon-hero.ss-m-hero--overlay .coming-soon-card {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(11, 44, 86, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.coming-soon-card {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(11, 44, 86, 0.12);
  margin: 0 auto;
  max-width: 920px;
  padding: clamp(24px, 5vw, 56px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Keep dialog chrome out of the page flow until opened (full styles may load later). */
.modal.hidden {
  display: none !important;
}

.modal:not(.hidden) {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11, 24, 44, 0.5);
}

.modal:not(.hidden) .modal-panel {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 28px 68px rgba(11, 44, 86, 0.22);
}

.modal:not(.hidden) .modal-header,
.modal:not(.hidden) .modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
}

.modal:not(.hidden) .modal-actions {
  justify-content: flex-end;
  border-top: 1px solid rgba(11, 44, 86, 0.1);
}

.modal:not(.hidden) .modal-body {
  padding: 16px 20px;
}

.coming-soon-card h2 {
  color: #0b355b;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(2.6rem, 7vw, 5.7rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.coming-soon-card p {
  color: #49647f;
  font-size: 1.14rem;
  line-height: 1.62;
  margin-top: 18px;
  max-width: 720px;
}

.eyebrow {
  color: #8a6321;
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.waitlist-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 0.65fr) minmax(220px, 1fr) auto;
  margin-top: 28px;
}

.waitlist-form button { border-radius: 999px; min-height: 44px; }

.coming-soon-waitlist,
.coming-soon-waitlist.waitlist-form {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 32px 0 0;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
  color: #f7fafc;
}

.coming-soon-waitlist-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.coming-soon-waitlist label {
  color: rgba(245, 250, 255, 0.92);
}

.coming-soon-waitlist .coming-soon-submit,
.coming-soon-waitlist.waitlist-form .coming-soon-submit {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: #1e6fd6;
  color: #ffffff;
}

.coming-soon-waitlist-status {
  margin: 0;
  color: #f7fafc;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.coming-soon-page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: #071726;
}

.coming-soon-atelier {
  position: relative;
  isolation: isolate;
  padding: clamp(72px, 10vw, 128px) clamp(20px, 5vw, 72px) clamp(80px, 9vw, 120px);
  background:
    radial-gradient(900px 420px at 8% 0%, rgba(200, 169, 110, 0.16), transparent 58%),
    radial-gradient(720px 380px at 96% 18%, rgba(11, 44, 86, 0.06), transparent 52%),
    #f3eee6;
  color: #0b2c56;
}

.coming-soon-atelier-veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

.coming-soon-atelier-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.coming-soon-atelier-head {
  max-width: none;
  margin: 0 0 clamp(40px, 6vw, 64px);
}

.coming-soon-atelier-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px 64px;
  align-items: end;
}

.coming-soon-atelier-kicker {
  margin: 0 0 14px;
  font-family: Sora, Manrope, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a6a32;
}

.coming-soon-atelier h2,
.coming-soon-atelier h3,
.coming-soon-atelier p,
.coming-soon-atelier li,
.coming-soon-atelier strong,
.coming-soon-atelier figcaption {
  color: #0b2c56;
}

.coming-soon-atelier-head h2 {
  margin: 0 0 18px;
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.6vw, 3.45rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #0b2c56;
}

.coming-soon-atelier-lede {
  margin: 0;
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  font-weight: 500;
  line-height: 1.65;
  color: #3d4f66;
}

.coming-soon-atelier-abilities {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 22px;
  margin: 0 0 clamp(48px, 7vw, 72px);
  padding: 28px 0 0;
  border-top: 1px solid rgba(168, 135, 74, 0.28);
}

.coming-soon-atelier-abilities li {
  margin: 0;
  padding: 0;
  color: #0b2c56;
}

.coming-soon-atelier-index {
  display: block;
  margin-bottom: 10px;
  font-family: Sora, Manrope, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #8a6a32;
}

.coming-soon-atelier-abilities strong {
  display: block;
  margin-bottom: 8px;
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0b2c56;
}

.coming-soon-atelier-abilities p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #3d4f66;
}

.coming-soon-atelier-gallery-head {
  margin: 0 0 22px;
}

.coming-soon-atelier-gallery-head h3 {
  margin: 0;
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0b2c56;
}

.coming-soon-atelier-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px 26px;
  margin: 0 0 clamp(48px, 7vw, 80px);
}

.coming-soon-atelier-frame {
  margin: 0;
  overflow: hidden;
  background: #fffdf9;
  border: 1px solid rgba(138, 106, 50, 0.22);
  border-radius: 22px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 18px 28px rgba(11, 44, 86, 0.05),
    0 40px 90px rgba(11, 44, 86, 0.14);
  color: #0b2c56;
}

.coming-soon-atelier-frame.is-hero {
  grid-column: 1 / -1;
}

.coming-soon-atelier-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  background: #122033;
}

.coming-soon-atelier-chrome i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9a96e;
}

.coming-soon-atelier-chrome i:nth-child(2) {
  background: #e8d5a8;
}

.coming-soon-atelier-chrome i:nth-child(3) {
  background: #8a6a32;
}

.coming-soon-atelier-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
  background: #eef4fb;
}

.coming-soon-atelier-frame.is-hero img {
  max-height: 620px;
}

.coming-soon-atelier-frame figcaption {
  padding: 16px 20px 20px;
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 0.94rem;
  line-height: 1.5;
  color: #3d4f66;
}

.coming-soon-atelier-frame figcaption span {
  display: block;
  margin-bottom: 4px;
  font-family: Sora, Manrope, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a6a32;
}

.coming-soon-atelier-also {
  padding: 32px 0 0;
  border-top: 1px solid rgba(168, 135, 74, 0.28);
  color: #0b2c56;
}

.coming-soon-atelier-also h3 {
  margin: 0 0 18px;
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 600;
  color: #0b2c56;
}

.coming-soon-atelier-also ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.coming-soon-atelier-also li {
  position: relative;
  padding: 0 0 0 18px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #3d4f66;
}

.coming-soon-atelier-also li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 1px;
  background: #c9a96e;
}

@media (max-width: 960px) {
  .coming-soon-atelier-head-grid,
  .coming-soon-atelier-abilities,
  .coming-soon-atelier-also ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coming-soon-atelier-head-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .coming-soon-atelier-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .coming-soon-atelier-frame.is-hero img {
    max-height: 420px;
  }
}

@media (max-width: 720px) {
  .coming-soon-atelier-abilities,
  .coming-soon-atelier-also ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

.public-order-paused {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(211, 179, 109, 0.26);
  border-radius: 24px;
  color: #2d4f6d;
  display: grid;
  font-size: 1rem;
  gap: 8px;
  margin-top: 28px;
  padding: 22px;
}

.public-order-paused p {
  color: #60708b;
  line-height: 1.5;
  margin: 0;
}

.toast {
  position: fixed;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  width: min(720px, calc(100vw - 28px));
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--teal-soft);
  border: 1px solid rgba(13, 127, 120, 0.24);
  color: var(--teal);
}

.toast.error, .error {
  background: #fde7e3;
  border-color: rgba(187, 75, 59, 0.35);
  color: var(--coral);
}

@media (max-width: 760px) {
  .waitlist-form { grid-template-columns: 1fr; }
}
