:root {
  --bg: #0a0807;
  --bg-card: #100d0b;
  --bg-card-hover: #181410;
  --text: #e8e4dc;
  --text-bright: #f5f2ea;
  --text-muted: #8a857c;
  --text-dim: #5a564f;
  --border: #2a2420;

  --jura: #8fb0d8;
  --jura-dim: #5b86b8;
  --create: #6fe0c9;
  --create-dim: #4fd6bb;
  --sex: #eba370;
  --sex-dim: #e08a4f;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(ellipse at 20% 12%, rgba(193,90,40,0.32), transparent 55%),
    radial-gradient(ellipse at 82% 58%, rgba(120,50,20,0.18), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--create);
  outline-offset: 3px;
}

/* ===== Stage ===== */
.stage {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 5rem 5rem;
}

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
  isolation: isolate;
}

.hero-portrait {
  width: 320px;
  height: 400px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  mix-blend-mode: luminosity;
  filter: contrast(1.1) brightness(0.85);
}

.hero-portrait-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(18,10,5,0.1) 0%,
      rgba(18,10,5,0.0) 40%,
      rgba(10,8,7,0.85) 100%),
    radial-gradient(ellipse at 60% 20%, rgba(180,80,20,0.45), transparent 70%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-portrait-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, var(--bg) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin: 0;
  background: linear-gradient(135deg, var(--text-bright) 0%, #f0c79a 45%, var(--sex-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Field grid ===== */
.field-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.field-card {
  background: var(--bg-card);
  padding: 2.25rem 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.field-card:hover {
  transform: translateY(-6px) scale(1.015);
  background: var(--bg-card-hover);
}

.field-card--jura   { border-top: 2px solid var(--jura-dim); }
.field-card--create { border-top: 2px solid var(--create-dim); }
.field-card--sex    { border-top: 2px solid var(--sex-dim); }

.field-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.field-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
  transition: transform 0.35s var(--ease);
}

.field-card:hover .field-icon {
  transform: scale(1.15) rotate(-4deg);
}

.field-card--jura .field-icon   { background: rgba(91,134,184,0.15); color: var(--jura); }
.field-card--create .field-icon { background: rgba(79,214,187,0.15); color: var(--create); }
.field-card--sex .field-icon    { background: rgba(224,138,79,0.15); color: var(--sex); }

.field-lock {
  font-size: 15px;
  color: var(--text-dim);
}

.field-name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.field-card--jura .field-name   { color: var(--jura); }
.field-card--create .field-name { color: var(--create); }
.field-card--sex .field-name    { color: var(--sex); }

/* ===== Private link ===== */
.private-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.8rem 1.4rem;
  border: 0.5px dashed var(--border);
  border-radius: 10px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.private-link:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* ===== Panels ===== */
.panel[hidden] {
  display: none !important;
}

.panel {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 5rem 1.5rem 4rem;
  z-index: 10;
  opacity: 0;
  animation: panelIn 0.4s var(--ease) forwards;
}

@keyframes panelIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.panel-inner {
  max-width: 700px;
  width: 100%;
  animation: panelRise 0.45s var(--ease) forwards;
}

@keyframes panelRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 0 0 1rem;
}

.panel-intro {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  max-width: 60ch;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: flex;
  flex-direction: column;
}

.spec-list li {
  padding: 1rem 0;
  border-top: 0.5px solid var(--border);
  font-size: 1.0625rem;
}

.spec-list li:last-child {
  border-bottom: 0.5px solid var(--border);
}

.access-button {
  display: inline-block;
  background: var(--sex);
  color: #0a0807;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.9rem 1.75rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  transition: opacity 0.2s var(--ease);
}

.access-button:hover {
  opacity: 0.85;
}

.panel-close {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.panel-close:hover {
  color: var(--text);
}

/* ===== Scroll-animationer ===== */
.scroll-hidden {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax: billedet starter lidt zoomet ind så kanter ikke vises ved scroll */
.hero-portrait img {
  transform-origin: center top;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hidden {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Mobile ===== */
@media (max-width: 900px) {
  .stage { padding: 4rem 2rem 3rem; }
  .hero { grid-template-columns: 240px 1fr; gap: 2.5rem; }
  .hero-portrait { width: 240px; height: 300px; }
}

@media (max-width: 640px) {
  .stage { padding: 3rem 1.25rem 2rem; }
  .hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .field-grid { grid-template-columns: 1fr; }
}
