/* 2e — entry: backdrop map, hero left, one glass panel right. */

.entry {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
}

.entry__backdrop {
  position: absolute;
  inset: 0;
}

/* The map is legible on the right, where the panel sits, and suppressed under
   the headline on the left. */
.entry__map {
  position: absolute;
  inset: -10%;
  filter: saturate(0.75);
  opacity: 0.5;
  pointer-events: none;
}

.entry__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(8, 9, 11, 0.97) 0%, rgba(8, 9, 11, 0.82) 42%, rgba(8, 9, 11, 0.62) 100%);
}

/* Ambient blooms — blur needs something to refract. Never more than three. */
.entry__bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  pointer-events: none;
}

.entry__bloom--standby {
  left: -140px;
  top: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(79, 227, 156, 0.2), transparent 70%);
  animation: sp-breathe 5.5s ease-in-out infinite;
}

.entry__bloom--live {
  right: -100px;
  top: 180px;
  width: 460px;
  height: 460px;
  background: radial-gradient(closest-side, rgba(255, 77, 77, 0.18), transparent 70%);
  animation: sp-breathe 4.6s ease-in-out infinite;
}

.entry__bloom--credit {
  left: 420px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(245, 165, 36, 0.14), transparent 70%);
}

.entry__header {
  position: absolute;
  left: 60px;
  right: 60px;
  top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.entry__brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.entry__mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  margin-bottom: 0;
}

.entry__wordmark {
  font: 700 15px/1 var(--font-display);
  letter-spacing: 3.4px;
}

.entry__brand-divider {
  width: 1px;
  height: 18px;
  background: rgba(237, 235, 230, 0.14);
}

.entry__presence {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 500 9px/1 var(--font-mono);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--bone50);
}

.entry__lang { border-radius: 13px; }
.entry__lang .lang-toggle__item { padding: 10px 12px; border-radius: 10px; letter-spacing: 1.2px; }

/* --- hero ---------------------------------------------------------------- */

.entry__hero {
  position: absolute;
  left: 60px;
  top: 186px;
  width: min(600px, 46vw);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.entry__eyebrow {
  font: 500 9px/1 var(--font-mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--live-light);
}

.entry__headline {
  margin: 0;
  font: 900 clamp(52px, 5.6vw, 84px) / 0.9 var(--font-display);
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.entry__body {
  margin: 0;
  max-width: 440px;
  font: 400 16px/1.55 var(--font-display);
  color: var(--bone62);
  text-wrap: pretty;
}

.entry__stats {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.entry__stat {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 15px 18px;
  border-radius: var(--r-card);
  background: rgba(237, 235, 230, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.entry__stat-label {
  font: 500 8px/1 var(--font-mono);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--bone45);
}

.entry__stat-value {
  font: 800 21px/1 var(--font-display);
  letter-spacing: -0.03em;
}

/* --- panel --------------------------------------------------------------- */

.entry__panel {
  position: absolute;
  right: 60px;
  top: 150px;
  width: 460px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px;
  border-radius: var(--r-sheet);
  box-shadow:
    var(--glass-highlight),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 30px 64px rgba(0, 0, 0, 0.6);
}

.entry__capsule { border-radius: 16px; background: rgba(8, 9, 11, 0.36); }
.entry__capsule .segments__item { padding: 13px 0; border-radius: 13px; font-size: 10px; letter-spacing: 1.4px; }

.entry__panel-head {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.entry__panel-title {
  font: 800 26px/1 var(--font-display);
  letter-spacing: -0.03em;
}

.entry__panel-subtitle {
  font: 400 13px/1.5 var(--font-display);
  color: var(--bone60);
}

/* --- ruled fields -------------------------------------------------------- */

.entry__fields {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.entry__field {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  cursor: text;
}

.entry__field:first-child { padding-top: 0; }

.entry__field--active { border-bottom-color: rgba(123, 240, 184, 0.6); }

.entry__field-index {
  width: 30px;
  flex-shrink: 0;
  font: 500 9px/1 var(--font-mono);
  letter-spacing: 1.2px;
  color: var(--bone42);
}

.entry__field-label {
  width: 66px;
  flex-shrink: 0;
  font: 500 9px/1 var(--font-mono);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--bone50);
}

.entry__field-value {
  flex: 1;
  min-width: 0;
  font: 500 15px/1 var(--font-mono);
  color: var(--bone);
}

.entry__field-value::placeholder { color: var(--bone32); }
.entry__field-value--password { letter-spacing: 3px; }

.entry__caret {
  width: 6px;
  height: 16px;
  flex-shrink: 0;
  background: var(--standby-light);
  box-shadow: 0 0 10px rgba(123, 240, 184, 0.8);
  opacity: 0;
}

.entry__field--active:focus-within .entry__caret { opacity: 1; }

/* --- mode slabs ---------------------------------------------------------- */

.entry__mode {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.entry__mode-label {
  font: 500 9px/1 var(--font-mono);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--bone50);
}

.entry__slabs { display: flex; gap: 11px; }

.entry__slab {
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 17px;
  border-radius: var(--r-row);
  background: rgba(237, 235, 230, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-align: left;
  transition: background var(--dur-state) var(--ease-out), border-color var(--dur-state) var(--ease-out);
}

.entry__slab[data-accent="live"] { --tint: var(--live); --tint-light: var(--live-light); }
.entry__slab[data-accent="credit"] { --tint: var(--credit); --tint-light: var(--credit-light); }

.entry__slab:hover { background: rgba(237, 235, 230, 0.07); }

.entry__slab--selected {
  background: linear-gradient(150deg, color-mix(in srgb, var(--tint) 18%, transparent), rgba(237, 235, 230, 0.07) 60%);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.entry__slab-bloom {
  position: absolute;
  left: -40px;
  top: -40px;
  width: 180px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tint) 25%, transparent), transparent 70%);
  filter: blur(26px);
  pointer-events: none;
}

.entry__slab-index {
  position: relative;
  font: 800 13px/1 var(--font-mono);
  color: var(--bone32);
}

.entry__slab--selected .entry__slab-index { color: var(--tint-light); }

.entry__slab-name {
  position: relative;
  font: 900 22px/1 var(--font-display);
  letter-spacing: -0.03em;
}

.entry__slab-copy {
  position: relative;
  margin: 0;
  font: 400 12.5px/1.45 var(--font-display);
  color: var(--bone60);
}

.entry__slab--selected .entry__slab-copy { color: var(--bone76); }

.entry__slab-tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.entry__tag {
  padding: 6px 8px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
  font: 500 8px/1 var(--font-mono);
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--bone55);
}

/* --- commit -------------------------------------------------------------- */

.entry__commit-block {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.entry__commit {
  border-radius: 19px;
  padding: 20px 0;
  font-size: 13px;
  letter-spacing: 2px;
}

.entry__footer {
  text-align: center;
  font: 500 8.5px/1.5 var(--font-mono);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--bone40);
}

.entry__footer--error { color: var(--live); }
