:root {
  --bg: #0f1011;
  --ink: #f1f0ea;
  --muted: #9a9a95;
  --soft: #565752;
  --line: rgba(241, 240, 234, 0.14);
  --panel: rgba(24, 25, 26, 0.78);
  --panel-strong: #191a1c;
  --yellow: #f3e738;
  --cyan: #6edee8;
  --red: #ff6b55;
  --green: #9bea75;
  --shadow: rgba(0, 0, 0, 0.35);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.13;
  background-image:
    repeating-radial-gradient(circle at 17% 23%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 4px),
    repeating-radial-gradient(circle at 73% 67%, rgba(0, 0, 0, 0.25) 0 1px, transparent 1px 5px);
  mix-blend-mode: overlay;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
}

.beam {
  position: absolute;
  width: 72vw;
  height: 16vh;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(-12deg);
  filter: blur(0.3px);
  opacity: 0.58;
}

.beam-one {
  top: 18vh;
  left: -14vw;
  background: linear-gradient(90deg, transparent, rgba(243, 231, 56, 0.13), transparent);
  animation: driftBeam 13s ease-in-out infinite;
}

.beam-two {
  right: -20vw;
  bottom: 16vh;
  background: linear-gradient(90deg, transparent, rgba(110, 222, 232, 0.12), transparent);
  animation: driftBeam 16s ease-in-out infinite reverse;
}

@keyframes driftBeam {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-12deg); }
  50% { transform: translate3d(4vw, 2vh, 0) rotate(-10deg); }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 42px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 16, 17, 0.76);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  text-decoration: none;
  font-weight: 780;
  letter-spacing: -0.03em;
}

.brand-logo {
  display: block;
  width: 29px;
  height: 29px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.12));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.88rem;
}

.nav-links a {
  position: relative;
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--yellow);
  transition: transform 180ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.language-switch {
  justify-self: end;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.language {
  min-width: 38px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.language.active {
  background: var(--ink);
  color: #111;
}

main {
  position: relative;
  z-index: 2;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(32px, 7vw, 88px);
  width: min(var(--max), calc(100% - 36px));
  min-height: 92vh;
  margin: 0 auto;
  padding: 112px 0 52px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(3.6rem, 10.5vw, 8.6rem);
  line-height: 0.88;
  letter-spacing: -0.09em;
}

html[lang="da"] h1 {
  max-width: 980px;
  font-size: clamp(3.35rem, 9.5vw, 7.8rem);
  line-height: 0.9;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 850;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--ink);
  color: #111;
  border-color: var(--ink);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.button-icon {
  font-weight: 950;
}

.hero-stage {
  perspective: 1200px;
}

.studio-frame {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  box-shadow: 0 34px 90px var(--shadow);
  transform: rotateX(5deg) rotateY(-9deg);
  transition: transform 260ms ease;
}

.hero-stage:hover .studio-frame {
  transform: rotateX(2deg) rotateY(-4deg) translateY(-4px);
}

.frame-top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.frame-top span {
  width: 9px;
  height: 9px;
  border: 1px solid var(--soft);
}

.frame-top strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.frame-body {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.signal-panel {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(243, 231, 56, 0.12), transparent 42%),
    linear-gradient(315deg, rgba(110, 222, 232, 0.1), transparent 44%),
    #121315;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-mini {
  position: absolute;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42));
}

.hero-mini-jtf {
  top: 24px;
  right: 22px;
  width: 96px;
  max-height: 74px;
}

.hero-mini-firefly {
  right: 28px;
  bottom: 26px;
  width: 118px;
  max-height: 78px;
}

.signal-logo {
  position: absolute;
  left: 24px;
  bottom: 16px;
  width: min(42%, 150px);
  height: auto;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.32));
}

.signal-line {
  position: absolute;
  height: 2px;
  background: var(--ink);
  opacity: 0.7;
  transform-origin: left;
}

.line-a {
  top: 32%;
  left: 12%;
  width: 72%;
  transform: rotate(-9deg);
}

.line-b {
  top: 54%;
  left: 28%;
  width: 58%;
  background: var(--yellow);
  transform: rotate(12deg);
}

.line-c {
  top: 72%;
  left: 42%;
  width: 45%;
  background: var(--cyan);
  transform: rotate(-18deg);
}

.stack-preview {
  display: grid;
  gap: 8px;
}

.stack-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  align-items: baseline;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.stack-row span {
  grid-row: span 2;
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 900;
}

.stack-row strong {
  letter-spacing: -0.03em;
}

.stack-row em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.stack-row.active {
  border-color: rgba(243, 231, 56, 0.45);
}

.stack-row.muted {
  opacity: 0.56;
}

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerMove 32s linear infinite;
}

.ticker span {
  padding: 18px 30px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes tickerMove {
  to { transform: translateX(-50%); }
}

@keyframes fireflyLogoFloat {
  0%, 100% {
    opacity: 0.94;
    transform: translate3d(0, 0, 0) rotate(-0.4deg) scale(1);
  }

  45% {
    opacity: 1;
    transform: translate3d(6px, -5px, 0) rotate(0.8deg) scale(1.025);
  }

  70% {
    transform: translate3d(2px, 2px, 0) rotate(-0.2deg) scale(0.995);
  }
}

@keyframes fireflyGlow {
  0%, 100% {
    opacity: 0.48;
    transform: scale(0.88) translate3d(0, 0, 0);
  }

  50% {
    opacity: 0.86;
    transform: scale(1.12) translate3d(8px, -4px, 0);
  }
}

@keyframes fireflySparks {
  0%, 100% {
    opacity: 0.28;
    transform: translate3d(0, 0, 0) scale(0.92);
  }

  32% {
    opacity: 0.92;
    transform: translate3d(20px, -12px, 0) scale(1.08);
  }

  66% {
    opacity: 0.58;
    transform: translate3d(48px, -2px, 0) scale(0.82);
  }
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 110px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 38px;
}

.section-heading h2,
.about-copy h2,
.contact-inner h2 {
  max-width: 850px;
  margin-bottom: 0;
  font-size: clamp(2.2rem, 6vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.work-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(240px, 0.95fr) auto;
  min-height: 560px;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, border-color 180ms ease;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.project-visual {
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

.jtf-visual {
  background:
    linear-gradient(135deg, rgba(243, 231, 56, 0.22), transparent 48%),
    linear-gradient(180deg, #191912, #121313);
}

.firefly-visual {
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(255, 107, 85, 0.22), transparent 42%),
    linear-gradient(315deg, rgba(155, 234, 117, 0.14), transparent 44%),
    #121313;
}

.firefly-visual::before,
.firefly-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.firefly-visual::before {
  left: -12px;
  top: -18px;
  z-index: 1;
  width: 230px;
  height: 170px;
  background:
    radial-gradient(circle at 42% 48%, rgba(255, 226, 124, 0.34), transparent 0 28%),
    radial-gradient(circle at 44% 50%, rgba(255, 107, 85, 0.2), transparent 0 58%);
  filter: blur(8px);
  opacity: 0.72;
  animation: fireflyGlow 4.8s ease-in-out infinite;
}

.firefly-visual::after {
  left: 58px;
  top: 86px;
  z-index: 4;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 236, 152, 0.9);
  box-shadow:
    44px -52px 0 -1px rgba(255, 236, 152, 0.78),
    92px -20px 0 -2px rgba(155, 234, 117, 0.72),
    128px 26px 0 -2px rgba(255, 107, 85, 0.66);
  filter: drop-shadow(0 0 12px rgba(255, 226, 124, 0.72));
  animation: fireflySparks 5.8s ease-in-out infinite;
}

.project-image {
  position: absolute;
  display: block;
  object-fit: cover;
  box-shadow: 0 26px 48px rgba(0, 0, 0, 0.38);
}

.primary-image {
  left: 22px;
  bottom: -24px;
  width: min(58%, 300px);
  height: 88%;
  object-fit: contain;
  box-shadow: none;
  filter: saturate(1.05) contrast(1.05);
}

.floating-image {
  right: 22px;
  top: 36px;
  width: 58%;
  height: 54%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: rotate(2deg);
}

.project-logo {
  position: absolute;
  display: block;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.48));
}

.jtf-logo {
  right: 34px;
  bottom: 28px;
  width: 148px;
  max-height: 74px;
}

.fire-image {
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.56;
  filter: saturate(0.86) brightness(0.72);
}

.firefly-logo {
  left: 26px;
  top: 24px;
  z-index: 3;
  width: 150px;
  max-height: 92px;
  transform-origin: 50% 50%;
  animation: fireflyLogoFloat 5.2s ease-in-out infinite;
  filter:
    drop-shadow(0 18px 28px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 18px rgba(255, 226, 124, 0.18));
}

.product-photo {
  position: absolute;
  right: 26px;
  bottom: 24px;
  z-index: 2;
  display: block;
  width: min(52%, 250px);
  aspect-ratio: 1.12;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.42);
}

.product-photo::after {
  content: "";
}

.project-card:hover .floating-image,
.project-card:hover .product-photo {
  transform: translateY(-6px) rotate(0deg);
}

.project-card[data-project="firefly"]:hover .firefly-logo {
  animation-duration: 3s;
  filter:
    drop-shadow(0 20px 30px rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 28px rgba(255, 226, 124, 0.34));
}

.floating-image,
.product-photo {
  transition: transform 240ms ease;
}

.product-ring {
  position: absolute;
  top: 44px;
  left: 50%;
  width: 176px;
  height: 176px;
  border: 3px solid var(--red);
  transform: translateX(-50%);
}

.product-ring::after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 2px solid var(--green);
}

.heat-lines {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 74px;
  display: grid;
  gap: 12px;
}

.heat-lines span {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), var(--green), transparent);
}

.price-strip {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.price-strip span {
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.project-body {
  padding: 28px;
}

.project-kicker {
  margin-bottom: 12px;
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-body h3,
.project-inspector h3,
.capability h3 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.project-body p,
.project-inspector p,
.capability p,
.about-panel p,
.contact-inner p {
  color: var(--muted);
  line-height: 1.72;
}

.project-body a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.project-body a span:last-child {
  color: var(--yellow);
  transition: transform 160ms ease;
}

.project-body a:hover span:last-child {
  transform: translateX(4px);
}

.project-inspector {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.45fr 0.8fr 1fr;
  gap: 24px;
  align-items: start;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.project-inspector dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
}

.project-inspector div {
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

.project-inspector dt {
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-inspector dd {
  margin: 7px 0 0;
  color: var(--ink);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.capability {
  min-height: 310px;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.cap-number {
  display: inline-block;
  margin-bottom: 84px;
  color: var(--yellow);
  font-weight: 950;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
}

.about-panel {
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 32px;
}

.stats div {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.stats strong {
  font-size: 2rem;
  letter-spacing: -0.06em;
}

.stats span {
  color: var(--muted);
  font-size: 0.78rem;
}

.contact-section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto 22px;
  padding: 96px 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(243, 231, 56, 0.09), transparent 38%),
    linear-gradient(315deg, rgba(110, 222, 232, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.contact-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner p {
  max-width: 560px;
  margin: 20px auto 28px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 122px;
  }

  .hero-stage {
    order: -1;
  }

  .studio-frame {
    transform: none;
  }

  .section-heading,
  .work-layout,
  .about-section,
  .project-inspector,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }

  .project-inspector dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand-lockup span:last-child {
    display: none;
  }

  h1 {
    font-size: clamp(3.1rem, 17vw, 5rem);
  }

  html[lang="da"] h1 {
    font-size: clamp(2.85rem, 14.5vw, 4.6rem);
  }

  .hero,
  .section,
  .contact-section {
    width: min(100% - 24px, var(--max));
  }

  .hero-actions,
  .stats {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .signal-panel {
    min-height: 210px;
  }

  .hero-mini-jtf {
    width: 72px;
  }

  .hero-mini-firefly {
    width: 86px;
  }

  .section {
    padding: 74px 0;
  }

  .project-body,
  .project-inspector,
  .capability,
  .about-panel {
    padding: 22px;
  }
}
