﻿/* ==========================================================================
   Global Header
   ========================================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(216, 208, 194, 0.86);
  background: rgba(247, 244, 237, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 150px;
}

.brand strong {
  font-size: 16px;
  font-weight: 800;
}

.brand span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 13px;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ==========================================================================
   Home
   ========================================================================== */

.hero {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 6.4vw 46px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(202,154,71,.13), transparent 28%),
    radial-gradient(circle at 86% 72%, rgba(83,126,142,.1), transparent 32%),
    linear-gradient(135deg, rgba(8,12,15,.98), rgba(17,24,28,.96)),
    url("../generated/world-map-ui-texture.png") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 234, 176, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 234, 176, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.82), transparent 88%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.85fr);
  gap: 38px;
  align-items: center;
}

.hero-copy,
.hero-map {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f2d28a;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: #b9893e;
}

h1 {
  font-size: clamp(40px, 3.5vw, 56px);
  line-height: 1.08;
  margin: 0 0 22px;
  max-width: 100%;
  letter-spacing: 0;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-lead {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(232, 223, 201, .82);
  font-size: 17px;
  line-height: 1.75;
}

.hero-quote {
  border-left: 4px solid #b9893e;
  padding-left: 18px;
  max-width: 700px;
  color: rgba(255, 248, 229, .9);
  font-size: 15px;
  margin: 22px 0;
}

.hero-copy h1 {
  color: #f2d28a;
  text-shadow: 0 0 22px rgba(207,154,64,.16);
}

.hero-map {
  background:
    linear-gradient(180deg, rgba(21,23,25,.96), rgba(21,23,25,.92)),
    url("../generated/document-portal-tiles.png") center / cover no-repeat;
  color: var(--white);
  border-radius: 8px;
  padding: 26px;
  box-shadow: var(--shadow);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.map-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.map-title h2 {
  margin: 0;
  font-size: 20px;
}

.map-title span {
  color: #bcb7ae;
  font-size: 12px;
  text-align: right;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.signal {
  min-height: 96px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--dark-2);
  border-radius: 8px;
}

.signal b {
  display: block;
  font-size: 26px;
  line-height: 1;
  margin-bottom: 8px;
  color: #f1c75b;
}

.signal span {
  color: #cfc8bd;
  font-size: 12px;
}

.signal--works span {
  display: block;
  font-size: 11.2px;
  line-height: 1.45;
}

.profile-lines {
  display: grid;
  gap: 12px;
  margin: 18px 0 22px;
}

.profile-line {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #f7f1e8;
  font-size: 14px;
}

.profile-line b {
  color: #f1c75b;
  font-size: 12px;
  text-transform: uppercase;
}

.profile-line span {
  color: #d8d0c2;
}

body.prologue-active {
  overflow: hidden;
}

/* ==========================================================================
   Opening Prologue
   ========================================================================== */

.prologue-section {
  position: fixed;
  inset: 0;
  z-index: 120;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 5.6vw;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(158, 52, 39, .18), transparent 30%),
    radial-gradient(circle at 80% 72%, rgba(31, 109, 106, .14), transparent 34%),
    #111315;
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
  color: #f7f0e4;
  overflow: hidden;
}

.prologue-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .76fr) minmax(420px, 1.24fr);
  gap: 22px 34px;
  align-items: stretch;
}

.prologue-header {
  grid-column: 1 / -1;
  max-width: 100%;
  text-align: center;
  padding: 0 5vw 4px;
}

.prologue-header h1 {
  margin: 8px auto 0;
  color: #fffdf8;
  font-size: clamp(34px, 3.35vw, 52px);
  line-height: 1.08;
  max-width: 860px;
}

.prologue-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../generated/opening-world-without-flowers.png") center / cover no-repeat;
  opacity: .18;
  filter: saturate(.72) contrast(1.08);
  pointer-events: none;
}

body:not(.prologue-active) .prologue-section {
  display: none;
}

.prologue-section::before {
  content: "";
  position: absolute;
  inset: 5.2vw;
  border: 1px solid rgba(255, 250, 241, .12);
  border-radius: 12px;
  pointer-events: none;
}

.prologue-copy,
.prologue-screen {
  position: relative;
  z-index: 1;
}

.prologue-copy {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-self: start;
  max-width: 560px;
  padding-top: clamp(58px, 7vh, 84px);
}

.prologue-header .world-kicker {
  color: #e0b94f;
  letter-spacing: .08em;
  justify-content: center;
}

.prologue-lead {
  margin: 0;
  color: rgba(255, 253, 248, .78);
  font-size: 17px;
  line-height: 1.78;
}

.prologue-quote {
  margin: 24px 0 0;
  border-left: 4px solid var(--accent);
  padding-left: 18px;
  color: #fffdf8;
  font-size: 15px;
  line-height: 1.7;
  word-break: keep-all;
}

.prologue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.prologue-enter,
.prologue-step-button {
  border: 1px solid rgba(255, 250, 241, .24);
  border-radius: 8px;
  background: rgba(255, 250, 241, .08);
  color: #fffdf8;
  padding: 12px 16px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.prologue-enter {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 16px 34px rgba(158, 52, 39, .24);
}

.prologue-screen {
  display: grid;
  align-content: center;
  min-height: 560px;
}

.retro-terminal {
  position: relative;
  border: 1px solid rgba(255, 250, 241, .16);
  border-radius: 10px;
  background:
    linear-gradient(rgba(17, 19, 21, .64), rgba(17, 19, 21, .78)),
    url("../generated/opening-world-without-flowers.png") center / cover no-repeat,
    linear-gradient(rgba(255,255,255,.035) 50%, rgba(0,0,0,.035) 50%),
    #16191b;
  background-size: auto, cover, 100% 8px, auto;
  background-repeat: no-repeat, no-repeat, repeat, no-repeat;
  box-shadow: 0 32px 70px rgba(0, 0, 0, .32);
  padding: 28px;
  min-height: 520px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.terminal-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 250, 241, .13);
  padding-bottom: 14px;
  color: rgba(255, 253, 248, .58);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.terminal-scene {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 34px 12px;
}


.terminal-scene small {
  color: #e0b94f;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.terminal-scene h2 {
  margin: 18px 0 0;
  color: #fffdf8;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.15;
  white-space: pre-line;
}

.terminal-scene p {
  max-width: 520px;
  margin: 20px auto 0;
  color: rgba(255, 253, 248, .72);
  font-size: 16px;
  line-height: 1.75;
  white-space: pre-line;
  word-break: keep-all;
}

.terminal-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.terminal-progress span {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 250, 241, .16);
}

.terminal-progress span.is-active {
  background: #e0b94f;
}

@media (max-width: 980px) {
  .prologue-section {
    padding: 30px 22px;
    overflow-y: auto;
  }

  .prologue-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .prologue-header h1 {
    font-size: 38px;
  }

  .prologue-screen {
    min-height: auto;
  }

  .prologue-copy {
    padding-top: 0;
  }

  .retro-terminal {
    min-height: 420px;
  }
}

.home-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
  max-width: 760px;
}

.home-flow span {
  display: block;
  border: 1px solid rgba(199,148,63,.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  padding: 12px;
  color: rgba(232, 223, 201, .74);
  font-size: 13px;
  line-height: 1.45;
}


.home-flow b {
  display: block;
  color: #f1c75b;
  font-size: 12px;
  margin-bottom: 4px;
}

/* ==========================================================================
   Career
   ========================================================================== */

.career-panorama {
  min-height: calc(100vh - 76px);
  background:
    radial-gradient(circle at 18% 10%, rgba(202,154,71,.12), transparent 26%),
    radial-gradient(circle at 82% 2%, rgba(83,126,142,.1), transparent 28%),
    linear-gradient(135deg, rgba(8,12,15,.98), rgba(17,24,28,.96)),
    url("../generated/world-map-ui-texture.png") center / cover no-repeat;
  color: #f7f3ea;
  padding: 54px 7vw;
}

#career.page-section {
  padding: 0;
}

.career-panorama .section-inner {
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.career-overview {
  position: sticky;
  top: 106px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  padding: 24px;
}

.career-overview .eyebrow {
  color: #f1c75b;
}

.career-overview h2 {
  margin: 12px 0 14px;
  color: #fff;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.career-overview p {
  margin: 0;
  color: #c9c1b4;
  font-size: 15px;
  line-height: 1.75;
}

.career-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.career-stats span {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  padding: 12px;
  color: #aaa297;
  font-size: 12px;
}

.career-stats b {
  display: block;
  margin-bottom: 4px;
  color: #f1c75b;
  font-size: 22px;
  line-height: 1;
}

.career-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.career-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  min-height: 116px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  padding: 15px;
}

.career-item .period {
  color: #f1c75b;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.35;
}

.career-item h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 17px;
  line-height: 1.32;
}

.career-item p {
  margin: 0;
  color: #c9c1b4;
  font-size: 13px;
  line-height: 1.52;
}

.career-item .role {
  display: block;
  margin-top: 7px;
  color: #8fb7b4;
  font-size: 12px;
  font-weight: 700;
}

.career-item.is-muted {
  opacity: .68;
}

.primary-gate {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  max-width: 940px;
}

.gate-card {
  min-height: 112px;
  border: 1px solid rgba(199,148,63,.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  padding: 16px;
  text-align: left;
  color: rgba(255, 248, 229, .92);
  font: inherit;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .24);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.gate-card:hover,
.gate-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(241, 199, 91, .58);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .32);
  outline: 0;
}

.gate-card b {
  display: block;
  margin-bottom: 8px;
  color: #f1c75b;
  font-size: 12px;
}

.gate-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 18px;
  line-height: 1.2;
}

.gate-card span {
  display: block;
  color: rgba(232, 223, 201, .72);
  font-size: 13px;
  line-height: 1.45;
}

main {
  padding: 0 0 80px;
}

section {
  padding: 72px 7vw;
  scroll-margin-top: 76px;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

