/* ============================================================
   Design 14 — "BLUEPRINT"
   Architectural technical drawing. Deep blueprint blue,
   teal grid, corner registration marks, title block.
   ============================================================ */

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

:root {
  /* --bg is set dynamically by script.js on each page load */
  --bg:        #08162A;
  --grid-r:    111;
  --grid-g:    167;
  --grid-b:    163;
  --teal:      #6FA7A3;
  --teal-dim:  rgba(111, 167, 163, 0.45);
  --teal-faint:rgba(111, 167, 163, 0.12);
  --coral:     #DD6F56;
  --text:      #E8F4FD;
  --text-dim:  rgba(232, 244, 253, 0.5);
  --font-cond: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-cond);
}

/* ── Blueprint grid ─────────────────────────────────────── */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Corner registration marks ──────────────────────────── */

.reg {
  position: fixed;
  width: 22px;
  height: 22px;
  z-index: 20;
  opacity: 0.5;
}

.reg--tl { top: 1.5rem;  left: 1.5rem;  border-top: 1px solid var(--teal); border-left:  1px solid var(--teal); }
.reg--tr { top: 1.5rem;  right: 1.5rem; border-top: 1px solid var(--teal); border-right: 1px solid var(--teal); }
.reg--bl { bottom: 1.5rem; left: 1.5rem;  border-bottom: 1px solid var(--teal); border-left:  1px solid var(--teal); }
.reg--br { bottom: 1.5rem; right: 1.5rem; border-bottom: 1px solid var(--teal); border-right: 1px solid var(--teal); }

/* ── Layout ─────────────────────────────────────────────── */

.layout {
  position: relative;
  z-index: 10;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 2rem 2.5rem;
}

/* ── Top bar ────────────────────────────────────────────── */

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--teal-faint);
  animation: fade-up 0.6s ease both;
}

.topbar__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.topbar__brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(111,167,163,0.3));
}

.topbar__label-text {
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-dim);
  border: 1px solid var(--teal-faint);
  padding: 0.15rem 0.4rem;
}

.topbar__nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.topbar__nav a {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.topbar__nav a:hover { color: var(--teal); }

/* ── Title block ────────────────────────────────────────── */

.title-block {
  border: 1px solid var(--teal-dim);
  padding: 0.5rem 0.75rem;
  min-width: 220px;
}

.title-block__row {
  display: flex;
  gap: 0.75rem;
  padding: 0.18rem 0;
  border-bottom: 1px solid var(--teal-faint);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
}

.title-block__row:last-child { border-bottom: none; }

.title-block__key {
  color: var(--teal-dim);
  text-transform: uppercase;
  flex-shrink: 0;
  width: 60px;
}

.title-block__val {
  color: var(--text);
}

/* ── Main content ───────────────────────────────────────── */

.main {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 0;
  animation: fade-up 0.6s 0.15s ease both;
}

.annotation {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.heading {
  font-family: var(--font-cond);
  font-weight: 700;
  line-height: 0.87;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.heading__line {
  font-size: clamp(5rem, 12vw, 11rem);
  color: var(--text);
  letter-spacing: -0.01em;
  display: block;
}

.heading__line--outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--teal-dim);
}

.body-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-dim);
  font-weight: 300;
  max-width: 480px;
  margin-bottom: 1.75rem;
}

/* ── Form ───────────────────────────────────────────────── */

.form__row {
  display: flex;
  max-width: 420px;
}

.form__input {
  flex: 1;
  height: 44px;
  padding: 0 1rem;
  background: rgba(232,244,253,0.04);
  border: 1px solid var(--teal-dim);
  border-right: none;
  border-radius: 0;
  font-family: var(--font-cond);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: background 0.2s, border-color 0.2s;
  letter-spacing: 0.04em;
}

.form__input::placeholder { color: rgba(232,244,253,0.2); }
.form__input:focus { background: rgba(232,244,253,0.07); border-color: var(--teal); }

.form__btn {
  height: 44px;
  padding: 0 1.4rem;
  background: var(--coral);
  color: #fff;
  border: none;
  font-family: var(--font-cond);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.form__btn:hover { background: #c45e46; }
.form__btn:disabled { opacity: 0.55; cursor: default; }

.form__confirm {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--teal);
  font-weight: 600;
}
.form__confirm[hidden] { display: none; }

/* ── Footer ─────────────────────────────────────────────── */

.footer {
  padding-top: 1rem;
  border-top: 1px dashed var(--teal-faint);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dim);
  animation: fade-up 0.6s 0.3s ease both;
}

/* ── Keyframes ──────────────────────────────────────────── */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 760px) {
  .layout { padding: 1.5rem 1.25rem; }
  .topbar { flex-wrap: wrap; }
  .title-block { display: none; }
  .topbar__nav { display: none; }
  .reg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; }
}
