:root {
  --bg: #f7f6f1;
  --bg-alt: #edebe2;
  --text: #14151a;
  --text-dim: #5b5d63;
  --accent: #2a3eff;
  --accent-dim: #929cff;
  --border: rgba(20, 21, 26, 0.1);
  --border-strong: rgba(20, 21, 26, 0.2);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --wrap: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 16px;
  color: var(--text-dim);
}

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* subtle grain texture over the whole page */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 12px;
  text-transform: uppercase;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 241, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-dim);
}

.site-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  border-radius: 5px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  letter-spacing: 0.05em;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
}

body.lang-da .lang-da { color: var(--accent); }
body.lang-en .lang-en { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14.5px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.btn-small {
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  font-size: 13.5px;
  border-radius: 5px;
}

.btn-small:hover {
  border-color: var(--accent);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
}

.btn-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 64px;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  top: -18%;
  right: -12%;
  width: 640px;
  height: 640px;
  max-width: 62vw;
  max-height: 62vw;
  border-radius: 62% 38% 55% 45% / 45% 55% 45% 55%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 72% 72%, rgba(42, 62, 255, 0.28), rgba(42, 62, 255, 0) 55%),
    linear-gradient(135deg, #e2e5ea 0%, #c9cdd7 35%, #eef0f2 62%, #b8bdc9 100%);
  box-shadow: inset 0 0 70px rgba(255, 255, 255, 0.7);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.04;
  max-width: 14ch;
}

.hero-corners {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding-top: 48px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.hero-sub {
  max-width: 46ch;
  font-size: 17px;
}

.hero-panel {
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 28px;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 27px, var(--border) 28px),
    var(--bg-alt);
}

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
}

.panel-row:last-of-type {
  border-bottom: none;
}

.panel-row span:first-child {
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.panel-row span:last-child {
  color: var(--text);
  text-align: right;
}

.panel-index {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.panel-index .active {
  color: var(--accent);
}

/* ---------- reveal animation ---------- */
.about-single,
.services-list,
.process-list,
.why-grid,
.faq-grid,
.service-item,
.process-list li {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.about-single.in-view,
.services-list.in-view,
.process-list.in-view,
.why-grid.in-view,
.faq-grid.in-view,
.service-item.in-view,
.process-list li.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- about ---------- */
.about {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}

.about-single {
  max-width: 640px;
}

.about-single h2 {
  font-size: clamp(26px, 3vw, 34px);
  max-width: 16ch;
}

.about-single p {
  max-width: 58ch;
  font-size: 16px;
}

.avatar {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.avatar-md {
  width: 46px;
  height: 46px;
}

.avatar-sm {
  width: 44px;
  height: 44px;
}

.about-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 24px;
}

.byline-name {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: var(--text);
}

.byline-title {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-dim);
}

.collab-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 32px;
  padding: 20px 24px;
  border-left: 2px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 0 8px 8px 0;
}

.collab-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}

.collab-note p {
  margin: 0;
  font-size: 15px;
  max-width: none;
}

.collab-note a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

.collab-note a:hover {
  text-decoration-color: var(--accent);
}

/* ---------- services ---------- */
.services {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}

.services h2 {
  font-size: clamp(26px, 3vw, 34px);
  max-width: 18ch;
  margin-bottom: 44px;
}

.services-list {
  border-top: 1px solid var(--border);
}

.service-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.service-num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 14px;
}

.service-item h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

.service-item p {
  margin: 0;
  max-width: 52ch;
}

.services-note {
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-dim);
  max-width: 60ch;
}

/* ---------- process ---------- */
.process {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}

.process h2 {
  font-size: clamp(26px, 3vw, 34px);
  max-width: 20ch;
  margin-bottom: 44px;
}

.process-list {
  position: relative;
  border-left: 1px solid var(--border-strong);
  padding-left: 36px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.process-list li {
  display: flex;
  gap: 20px;
  position: relative;
}

.process-list li::before {
  content: "";
  position: absolute;
  left: -41px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.process-num {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 13px;
  min-width: 22px;
}

.process-list h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.process-list p {
  margin: 0;
  max-width: 50ch;
}

/* ---------- why ---------- */
.why {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.why h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  max-width: 16ch;
}

.why-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15.5px;
  color: var(--text);
  padding-left: 22px;
  position: relative;
}

.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
}

.why-list li:first-child {
  border-top: 1px solid var(--border);
}

/* ---------- faq ---------- */
.faq {
  padding: 80px 0 100px;
  border-top: 1px solid var(--border);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.faq-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.faq-item p {
  margin: 0;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-dim);
}

.footer-social a:hover {
  color: var(--accent);
}

.footer-copy,
.footer-legal {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
}

.footer-legal span,
.footer-legal a {
  color: var(--text-dim);
}

.footer-legal > *:not(:last-child)::after {
  content: "·";
  display: inline-block;
  margin: 0 10px;
  color: var(--border-strong);
}

.footer-legal a:hover {
  color: var(--accent);
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .site-nav {
    display: none;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .hero-grid,
  .about-grid,
  .why-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-photo {
    max-width: 220px;
  }

  .service-item {
    grid-template-columns: 50px 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .footer-meta {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .header-actions .btn-small {
    display: none;
  }
}
