/* ======================================================
   CAPITOL BAGEL — STYLE 2
   Global Realignment · Cultural Object Interface
   Elegance (Apple) × Stoicism (RAD Global)
   ====================================================== */

/* ---------- Root ---------- */

:root {
  --bg: #171717;
  --field: #1f1f1f;

  --text: #e6e6e6;
  --muted: #9e9e9e;
  --faint: #7a7a7a;

  --line: rgba(255,255,255,0.08);
}

/* ---------- Reset ---------- */

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);

  font-family: ui-serif, Charter, "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.85;
}

/* ---------- Layout ---------- */

.wrapper {
  max-width: 660px;
  margin: 0 auto;
  padding: 6.5rem 1.5rem 9rem;
}

section {
  margin-bottom: 10rem;
}

/* ======================================================
   SPLASH — Tightened Identity Block
   ====================================================== */

.splash {
  margin-bottom: 12.5rem;
}

.splash h1 {
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  margin: 0 0 0.15rem;
}

.tagline {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2.6rem;
}

.statement {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.sub-statement {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 5.6rem;
}

/* ======================================================
   Core Text Rhythm
   ====================================================== */

p {
  margin: 0 0 3.2rem;
}

.quiet {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ======================================================
   PRIMARY DEFINITION
   ====================================================== */

.definition-text {
  font-size: 1.4rem;
  line-height: 1.65;
  margin: 6rem 0 3.2rem;
}

/* ======================================================
   Section Headers
   ====================================================== */

h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 3.6rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 3.4rem;
}

/* ======================================================
   === SECTION TRANSITIONS (REVERSIBLE) ===
   Purpose: turn sections into chapters, not blocks
   Rollback: delete or comment this block
   ====================================================== */

section + section {
  padding-top: 6rem;
}

.definition,
.current,
.studio-batch {
  position: relative;
}

.definition::before,
.current::before,
.studio-batch::before {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--line);
  margin-bottom: 6rem;
  opacity: 0.6;
}

/* ======================================================
   SYSTEM / DROPS
   ====================================================== */

.system,
.drops {
  margin-bottom: 8rem;
}

/* ======================================================
   STUDIO BATCH
   ====================================================== */

.studio-batch p.quiet {
  margin-bottom: 2.8rem;
}

.studio-batch > p:not(.quiet) {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 4.5rem;
}

.batch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  margin-bottom: 4.8rem;
}

.batch-list span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* NEW CSS ADDITION: Geolocation helper */
.geo-helper {
  margin-top: 0.5rem;
}

.geo-btn {
  background: transparent;
  border: 1px solid #222;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.geo-btn:hover {
  opacity: 0.7;
}

.geo-status {
  margin-top: 0.25rem;
  font-size: 0.75rem;
}


/* ======================================================
   Forms — Institutional Interface
   ====================================================== */

form {
  margin-top: 5rem;
  padding-top: 5rem;
  border-top: 1px solid var(--line);
}

.form-group {
  margin-bottom: 2.4rem;
}

label {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

input,
textarea,
select {
  width: 100%;
  background: var(--field);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.7rem 0.75rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 0.9rem;
}

input::placeholder,
textarea::placeholder {
  color: var(--faint);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(255,255,255,0.25);
}

input[disabled] {
  background: #1a1a1a;
  color: var(--muted);
  text-align: center;
}

/* ---------- Studio Grid ---------- */

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  margin-bottom: 3.6rem;
}

@media (max-width: 600px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- System Notes ---------- */

.form-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--faint);
  max-width: 70%;
}

.form-warning {
  margin: 4rem 0 3.5rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 75%;
}

/* ======================================================
   Action
   ====================================================== */

button {
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.85rem 2.2rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
}

button:hover {
  border-color: rgba(255,255,255,0.35);
}

/* ---------- Response ---------- */

.form-message {
  margin-top: 2.2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ======================================================
   Footer
   ====================================================== */

footer {
  margin-top: 12rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* NEW CSS ADDITION: Geo optional helpers — ultra tight */

.geo-device-hint {
  margin: 0;
  padding: 0.15rem 0 0.25rem;
  font-size: 0.68rem;
  line-height: 1.1;
  opacity: 0.5;
}

.geo-preview a,
.geo-preview a:link,
.geo-preview a:visited,
.geo-preview a:active,
.geo-preview a:focus {
  display: inline-flex;              /* required on iOS */
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 0.45rem 1.05rem;
  border-radius: 6px;

  background: #111;
  color: #fff !important;
  text-decoration: none !important;

  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  border: 1px solid #333;

  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;

  transition: background 0.25s ease, border-color 0.25s ease;
}



.geo-preview a:hover {
  background: #000;
  border-color: #666;
}

/* ======================================================
   NEW CSS ADDITION — JS-CONTROLLED BACKDROP LAYER
   Passive until JS drives opacity
   ====================================================== */

#cb-backdrop {
  position: fixed;
  inset: 0;

  background-image: url("/img/bagelhero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  filter: blur(14px) saturate(0.9);
  transform: scale(1.08);

  opacity: 80;
  transition: opacity 0.4s ease;

  z-index: 0;
  pointer-events: none;
}

#cb-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.9)
  );
}

/* Lift real content above backdrop */
.wrapper,
section,
footer {
  position: relative;
  z-index: 2;
}



