/* ============================================================
   base.css · delt: topbar, footer, mobilmenu, welcome, burger
   Selektorer/værdier matcher prototypens styles.css 1:1 (uden dubletter af tokens.css).
   ============================================================ */

/* ============================================================
   A11Y · skip-link + global :focus-visible (WCAG 2.4.1 / 2.4.7)
   ============================================================ */
.skip-link {
  position: absolute; left: -9999px;
  top: auto; width: 1px; height: 1px; overflow: hidden;
  font-family: "Inter Tight", sans-serif; font-size: 0.9375rem; font-weight: 500;
}
.skip-link:focus {
  position: absolute; left: 16px; top: 16px;
  width: auto; height: auto; overflow: visible;
  padding: 10px 18px; background: var(--ink); color: var(--bg);
  border-radius: 999px; z-index: 9999;
  outline: 2px solid var(--accent); outline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
.cta:focus-visible,
.top .r .cta:focus-visible {
  outline-offset: 2px;
}

/* ============================================================
   03 · WELCOME OVERLAY (first visit per session)
   ============================================================ */
.welcome {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 48px;
  transition: opacity 700ms ease;
}
.welcome.hidden { opacity: 0; pointer-events: none; }
.welcome-mark { width: 220px; height: 220px; }
.welcome-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.45em;
  color: var(--ink-mute); font-weight: 500; text-transform: uppercase;
  opacity: 0; transition: opacity 600ms ease 1800ms;
}
.welcome.visible .welcome-name { opacity: 0.65; }

@media (prefers-reduced-motion: reduce) {
  .welcome { display: none !important; }
  .ghost-anim { animation: none !important; }
}

/* ============================================================
   TOPBAR · LOGO 01
   ============================================================ */
.top {
  padding: 22px 64px; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: relative; z-index: 50;
}
.top .l { display: flex; align-items: center; gap: 12px; }
.top .l .mark { width: 28px; height: 28px; }
.top .l .name { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.top .c { display: flex; gap: 36px; justify-content: center; }
.top .c a {
  font-size: 0.875rem; color: var(--ink); font-weight: 500;
  padding: 6px 0; border-bottom: 1.5px solid transparent;
  transition: border-color 180ms, color 180ms;
  white-space: nowrap;
}
.top .c a:hover { border-color: var(--accent); color: var(--accent); }
.top .c a.active { border-color: var(--accent); }
.top .r { display: flex; justify-content: flex-end; gap: 20px; align-items: center; }
.top .r .meta { color: var(--ink-mute); white-space: nowrap; }
.top .r .cta {
  padding: 10px 22px; background: var(--ink); color: var(--bg);
  border-radius: 999px; font-size: 0.875rem; font-weight: 500;
  transition: all 180ms; white-space: nowrap;
}
.top .r .cta:hover { background: var(--accent); transform: translateY(-1px); }

/* Burger · only mobile */
.burger {
  display: none;
  background: none; border: 0; padding: 0;
  width: 44px; height: 44px; cursor: pointer;
  position: relative; align-items: center; justify-content: center;
}
.burger span {
  position: absolute; left: 10px; right: 10px;
  height: 1.5px; background: var(--ink); border-radius: 1px;
  transition: transform 220ms ease, opacity 220ms ease, top 220ms ease;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile menu sheet */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: 84px 24px 32px;
  opacity: 0; pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 240ms ease, transform 240ms ease;
}
.mobile-menu.open {
  opacity: 1; pointer-events: auto; transform: none;
}
.mobile-menu-links { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); margin-top: 16px; }
.mobile-menu-links a {
  padding: 28px 0; border-bottom: 1px solid var(--line);
  font-size: 2rem; font-weight: 300; letter-spacing: -0.02em;
  color: var(--ink); display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu-links a .arr { color: var(--ink-mute); font-size: 1.5rem; }
.mobile-menu-links a:hover, .mobile-menu-links a.active { color: var(--accent); }
.mobile-menu .foot {
  margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; gap: 8px;
  font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 500;
}
.mobile-menu .foot .mail {
  display: inline-block; padding: 14px 24px; background: var(--ink); color: var(--bg);
  border-radius: 999px; font-size: 1.0625rem; font-weight: 500;
  letter-spacing: -0.015em; text-transform: none; font-family: "Inter Tight", sans-serif;
  align-self: flex-start; margin-bottom: 16px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 140px 64px; max-width: 1480px; margin: 0 auto; position: relative; }
.section.deep { padding: 140px 64px; background: var(--bg-deep); max-width: none; }
.section.deep > .inner { max-width: 1480px; margin: 0 auto; }
.section.tight { padding: 96px 64px; }
.section.tight.deep { padding: 96px 64px; }

.section-head {
  display: grid; grid-template-columns: 200px 1.6fr 1fr;
  gap: 48px; align-items: end;
  margin-bottom: 80px; padding-bottom: 24px;
  border-bottom: 1px solid var(--line-strong);
}
.section-head h2 {
  font-weight: 300; font-size: clamp(48px, 6.4vw, 116px);
  line-height: 0.92; letter-spacing: -0.035em; margin: 0;
}
.section-head h2 .b { font-weight: 600; }
.section-head h2 .dim { color: var(--ink-mute); }
.section-head .intro {
  font-size: 1.0625rem; line-height: 1.55; color: var(--ink-mute);
  margin: 0; align-self: end; max-width: 380px;
}
.section-head--tight { margin-bottom: 64px; }

/* Hero-eyebrow · konsolideret mono-eyebrow med accent-dot ovenover hero h1.
   Bruges på alle sider (forside, cases, om, case-detail). */
.hero-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.hero-eyebrow .dot { width: 10px; height: 10px; background: var(--accent); border-radius: 50%; }

.lead { display: flex; align-items: center; gap: 14px; margin-bottom: 56px; }
.lead .dot { width: 10px; height: 10px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }

/* Typographic helpers */
.h-display {
  font-weight: 300; font-size: clamp(72px, 9.5vw, 168px);
  line-height: 0.9; letter-spacing: -0.045em; margin: 0;
}
.h-display .b { font-weight: 600; }
.h-display .dim { color: var(--ink-mute); }

.lede {
  font-size: 1.25rem; line-height: 1.5; color: var(--ink); margin: 0;
  max-width: 640px;
}
.lede .acc { color: var(--accent); font-weight: 600; }

/* ============================================================
   HERO META
   ============================================================ */
.hero-rule {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-bottom: 24px; margin-bottom: 64px; border-bottom: 1px solid var(--line);
  gap: 32px;
}
.hero-rule .col-key { color: var(--ink-mute); margin-bottom: 4px; }
.hero-rule .col-val { color: var(--ink); font-size: 0.9375rem; font-weight: 500; }
.hero-rule .col-val .acc { color: var(--accent); }

/* ============================================================
   FOOTER · LOGO 05
   ============================================================ */
footer {
  padding: 48px 64px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 40px; align-items: center;
  background: var(--bg);
}
footer .left { display: flex; align-items: center; gap: 16px; }
footer .left .sig { width: 56px; height: 56px; cursor: pointer; transition: transform 200ms; }
footer .left .sig:hover { transform: scale(1.06); }
footer .left .info { display: flex; flex-direction: column; gap: 4px; }
footer .left .info .name { font-weight: 600; font-size: 0.9375rem; }
footer .center {
  text-align: center; font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 500;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
footer .center .footer-contact {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px;
  text-transform: none; letter-spacing: 0;
  font-family: "Inter Tight", sans-serif; font-size: 0.875rem;
}
footer .center .footer-contact a {
  color: var(--ink);
  padding: 6px 4px; margin: -6px -4px;
  display: inline-block;
}
footer .center .footer-contact a:hover { color: var(--accent); }
footer .center .footer-contact .sep { color: var(--ink-mute); }
footer .right { display: flex; gap: 24px; font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); font-weight: 500; }
footer .right a {
  padding: 8px; margin: -8px;
  display: inline-block;
}
footer .right a:hover { color: var(--accent); }

/* ============================================================
   KONTAKT
   ============================================================ */
.contact { padding: 180px 64px 140px; max-width: 1480px; margin: 0 auto; }
.contact h2 {
  font-weight: 300; font-size: clamp(64px, 9vw, 168px);
  line-height: 0.92; letter-spacing: -0.045em; margin: 0 0 64px; max-width: 1300px;
}
.contact h2 .b { font-weight: 600; }
.contact h2 .dim { color: var(--ink-mute); }
.contact .actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.contact a.email {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: clamp(22px, 2.6vw, 36px); font-weight: 500;
  padding: 14px 32px; background: var(--ink); color: var(--bg);
  border-radius: 999px; transition: all 220ms; letter-spacing: -0.015em;
}
.contact a.email:hover { background: var(--accent); transform: translateY(-2px); }
.contact .actions .fine { color: var(--ink-mute); font-size: 0.9375rem; max-width: 280px; line-height: 1.5; }
.contact .grid {
  margin-top: 96px; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; padding-top: 32px; border-top: 1px solid var(--line-strong);
}
.contact .grid .key { color: var(--ink-mute); margin-bottom: 6px; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; }
.contact .grid .val { font-size: 1.0625rem; font-weight: 500; }

/* ============================================================
   GHOST MARK (logo 06) · case detail pages
   ============================================================ */
.ghost-wrap {
  position: relative; overflow: hidden;
}
.ghost-mark {
  position: absolute; pointer-events: none;
  right: -10%; bottom: -16%;
  width: 92%; aspect-ratio: 1;
  color: var(--ink);
  opacity: 0.07;
  z-index: 0;
  mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 92%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 92%);
}
.ghost-mark svg { width: 100%; height: 100%; display: block; }
.ghost-mark svg .reddot { color: var(--accent); }
.ghost-anim svg path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ghost-anim svg path:nth-child(1) { animation: drawpath 1.6s ease-in-out 0.00s forwards; }
.ghost-anim svg path:nth-child(2) { animation: drawpath 1.6s ease-in-out 0.30s forwards; }
.ghost-anim svg path:nth-child(3) { animation: drawpath 1.6s ease-in-out 0.60s forwards; }
.ghost-anim svg path:nth-child(4) { animation: drawpath 1.6s ease-in-out 0.90s forwards; }
.ghost-anim svg path:nth-child(5) { animation: drawpath 1.6s ease-in-out 1.20s forwards; }
.ghost-anim svg path:nth-child(6) { animation: drawpath 1.2s ease-in-out 1.50s forwards; }
.ghost-anim svg path.reddot { animation: drawpath 0.6s ease-out 2.50s forwards; }
@keyframes drawpath { to { stroke-dashoffset: 0; } }
.ghost-wrap > * { position: relative; z-index: 2; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .top .r .meta { display: none; }
}
@media (max-width: 1024px) {
  .top { padding: 22px 32px; }
  .top .c { gap: 24px; }
}
@media (max-width: 900px) {
  .top { padding: 18px 24px; grid-template-columns: auto 1fr; }
  .top .c { display: none; }
  .top .r .cta { display: none; }
  .top .r { gap: 0; }
  .burger { display: inline-flex; }
  .section, .section.deep, .section.tight { padding: 80px 24px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  .hero-rule { grid-template-columns: 1fr 1fr; gap: 24px; }
  .contact { padding: 96px 24px 80px; }
  .contact .grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  footer { grid-template-columns: 1fr; gap: 16px; text-align: left; padding: 32px 24px; }
  footer .center { align-items: flex-start; text-align: left; }
  footer .center .footer-contact { justify-content: flex-start; }
  footer .right { justify-content: flex-start; }
}
@media (max-width: 540px) {
  .contact .grid { grid-template-columns: 1fr; }
  .hero-rule { grid-template-columns: 1fr; }
}
