:root {
  --bg: #ffffff;
  --text: #111318;
  --muted: #777d87;
  --line: #e7e9ee;
  --panel: rgba(255, 255, 255, 0.86);
  --dark: #020307;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

button,
a {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
}

a {
  text-decoration: none;
}

#gravity-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--dark);
  opacity: 0;
  pointer-events: none;
  transition: opacity 520ms ease;
}

body.is-athena #gravity-field {
  opacity: 1;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(calc(100% - 36px), var(--max-width));
  transform: translateX(-50%);
}

.brand {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  gap: 8px;
}

.nav-button,
.close-button {
  min-width: 36px;
  min-height: 36px;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-button {
  padding: 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease;
}

.nav-button:hover,
.nav-button.is-active {
  color: var(--text);
  background: #f4f5f7;
}

body.is-athena .brand,
body.is-athena .nav-button {
  color: rgba(255, 255, 255, 0.72);
}

body.is-athena .nav-button:hover,
body.is-athena .nav-button.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.site-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.brand-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 72px 24px;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 5.8rem);
  font-weight: 800;
  letter-spacing: 0;
}

.content-panel {
  position: fixed;
  top: 72px;
  right: max(18px, calc((100vw - var(--max-width)) / 2));
  z-index: 30;
  display: none;
  width: min(360px, calc(100vw - 36px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 90px rgba(17, 19, 24, 0.08);
  backdrop-filter: blur(20px);
}

.content-panel.is-open {
  display: block;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.close-button {
  color: var(--muted);
  font-size: 1.1rem;
  transition: color 180ms ease, background 180ms ease;
}

.close-button:hover {
  color: var(--text);
  background: #f4f5f7;
}

.close-button--light {
  color: rgba(255, 255, 255, 0.68);
}

.close-button--light:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.project-list {
  display: grid;
  gap: 8px;
}

.project-card {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease;
}

.project-card:hover {
  border-color: #cfd4dd;
  background: #fafafa;
}

.project-card span {
  font-size: 0.98rem;
  font-weight: 700;
}

.project-card small,
.panel-copy {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.contact-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.project-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  overflow: hidden;
}

.project-overlay.is-active {
  display: block;
}

.project-overlay--light {
  z-index: 15;
  display: none;
  background: #ffffff;
}

.project-label {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 6px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(2, 3, 7, 0.36);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  font-size: 0.82rem;
  font-weight: 700;
}

.project-label--dark {
  top: 72px;
  bottom: auto;
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.offer-dropzone {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 18;
  display: grid;
  place-content: center;
  gap: 8px;
  width: min(420px, calc(100vw - 48px));
  aspect-ratio: 1;
  padding: 24px;
  border: 1px solid #d8dce4;
  border-radius: 8px;
  color: var(--text);
  background: #ffffff;
  text-align: center;
  transform: translate(-50%, -50%);
  transition: border-color 180ms ease, background 180ms ease;
}

.offer-dropzone.is-dragging {
  border-color: #111318;
  background: #f7f8fa;
}

.offer-dropzone__text {
  font-size: 1rem;
  font-weight: 800;
}

.offer-dropzone__status {
  min-height: 1.1em;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

body.is-project-active .brand-stage {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 640px) {
  .site-header {
    top: 12px;
    align-items: flex-start;
    gap: 12px;
  }

  .site-nav {
    gap: 2px;
  }

  .nav-button {
    padding: 0 7px;
    font-size: 0.78rem;
  }
}
