:root {
  --white: #f7f6f4;
  --concrete: #c8c5c0;
  --cobalt: #5b7a9d;
  --cobalt-deep: #3d5570;
  --stone: #c4b5a0;
  --stone-warm: #a8947c;
  --black: #1a1a1a;
  --ink: #2c2c2c;
  --muted: #6b6864;
  --surface: #efeeeb;
  --line: rgba(26, 26, 26, 0.12);
  --radius: 2px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", "Helvetica Neue", sans-serif;
  --space: clamp(1rem, 2.5vw, 2rem);
  --max: 1120px;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    linear-gradient(165deg, var(--white) 0%, var(--surface) 42%, #e8e4de 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(90deg, transparent 0, transparent calc(100% / 12 - 1px), var(--line) calc(100% / 12)),
    linear-gradient(transparent 0, transparent calc(100% / 8 - 1px), var(--line) calc(100% / 8));
  background-size: calc(100% / 12) 100%, 100% calc(100vh / 8);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent 70%);
}

main,
.site-header,
.site-footer,
.cookie-banner {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cobalt-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--black);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--black);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.45rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

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

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1.25rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--cobalt-deep);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--black);
  color: var(--black) !important;
  transition: background 0.35s ease, color 0.35s ease, border-radius 0.45s ease;
}

.nav-cta:hover {
  background: var(--black);
  color: var(--white) !important;
  border-radius: 12px 2px 18px 4px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: var(--black);
  transition: transform 0.3s ease;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .site-nav.is-open {
    max-height: 28rem;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--space) 1.5rem;
    gap: 0.75rem;
  }

  .nav-cta {
    display: inline-block;
    text-align: center;
  }
}

/* Layout helpers */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-tight {
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin: 0 0 0.75rem;
  font-weight: 500;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
}

.mono-line {
  width: 3rem;
  height: 1px;
  background: var(--cobalt);
  margin: 1.25rem 0;
  border: 0;
}

/* Buttons — liquid fold */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition:
    border-radius 0.5s cubic-bezier(0.34, 1.2, 0.64, 1),
    transform 0.35s ease,
    background 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-primary:hover {
  color: var(--white);
  border-radius: 22px 4px 28px 8px;
  transform: translateY(-1px);
  box-shadow:
    8px 0 0 -4px var(--cobalt),
    -6px 4px 0 -5px var(--stone);
}

.btn-ghost {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--black);
  border-radius: 4px 18px 6px 20px;
}

.liquid-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid transparent;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease, border-radius 0.5s ease, inset 0.35s ease;
}

.liquid-btn:hover::after,
.liquid-btn:focus-visible::after {
  opacity: 1;
  border-color: var(--concrete);
  border-radius: 28px 8px 32px 12px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroDrift 28s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06) translate(-1%, 0.5%);
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(26, 26, 26, 0.82) 0%, rgba(26, 26, 26, 0.45) 48%, rgba(61, 85, 112, 0.35) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 8rem) var(--space) clamp(3rem, 8vh, 5rem);
  animation: riseIn 0.9s ease both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  color: var(--white);
  max-width: 14ch;
}

.hero .lede {
  color: rgba(247, 246, 244, 0.85);
}

.hero .eyebrow {
  color: var(--stone);
}

.hero .btn-primary {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.hero .btn-primary:hover {
  background: var(--stone);
  border-color: var(--stone);
  color: var(--black);
}

.hero .btn-ghost {
  color: var(--white);
  border-color: rgba(247, 246, 244, 0.55);
}

.hero .btn-ghost:hover {
  background: rgba(247, 246, 244, 0.12);
  color: var(--white);
}

/* Offer strip */
.offer-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 800px) {
  .offer-strip {
    grid-template-columns: 1fr;
  }
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  border-bottom: 1px solid var(--line);
}

.service-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.35rem 0;
  text-decoration: none;
  color: inherit;
  align-items: baseline;
  transition: padding-left 0.35s ease;
}

.service-list a:hover {
  padding-left: 0.5rem;
  color: var(--black);
}

.service-list .meta {
  font-size: 0.85rem;
  color: var(--cobalt);
  white-space: nowrap;
}

.service-list p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  grid-column: 1 / -1;
}

/* Split media */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 28rem;
}

.split-media {
  min-height: 22rem;
  overflow: hidden;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.split:hover .split-media img {
  transform: scale(1.04);
}

.split-body {
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-left: none;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split-body {
    border-left: 1px solid var(--line);
  }
}

/* Cards — only for interactive listing */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-radius 0.5s ease, transform 0.35s ease;
}

.service-card:hover {
  border-radius: 18px 4px 24px 6px;
  transform: translateY(-3px);
  color: inherit;
}

.service-card img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}

.service-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-body p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.price-hint {
  font-size: 0.85rem;
  color: var(--cobalt-deep);
  margin-top: 0.75rem;
}

/* Quote */
.quote-block {
  max-width: 40rem;
  margin: 0;
  padding: 0;
  border: none;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.4;
  color: var(--black);
}

.quote-block footer {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: normal;
}

/* Page hero (inner) */
.page-hero {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 18ch;
}

.page-hero-media {
  margin-top: 2rem;
  max-height: 42vh;
  overflow: hidden;
}

.page-hero-media img {
  width: 100%;
  height: 42vh;
  object-fit: cover;
  animation: heroDrift 30s ease-in-out infinite alternate;
}

/* Prose */
.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2.5rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-grid dt {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 0.35rem;
}

.detail-grid dd {
  margin: 0;
}

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.rate-table th {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt);
  font-weight: 500;
}

/* Reviews */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.review-item {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.review-item:last-child {
  border-bottom: none;
}

.review-service {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 0.5rem;
}

.review-item blockquote {
  margin: 0;
  font-size: 1.1rem;
}

.review-item cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
}

.case-study {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
}

/* Blog */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.75rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: background 0.3s ease;
}

.blog-item:hover {
  background: rgba(255, 255, 255, 0.5);
}

.blog-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.blog-item time {
  font-size: 0.8rem;
  color: var(--cobalt);
}

@media (max-width: 640px) {
  .blog-item {
    grid-template-columns: 1fr;
  }
}

.article-body p {
  font-size: 1.08rem;
}

.article-hero img {
  width: 100%;
  max-height: 50vh;
  object-fit: cover;
  margin: 2rem 0;
}

/* Forms */
.form-panel {
  max-width: 36rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--concrete);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, border-radius 0.4s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  border-radius: 8px 2px 12px 4px;
}

.form-group textarea {
  min-height: 8rem;
  resize: vertical;
}

.field-error {
  display: none;
  color: #8b3a3a;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.form-group.has-error .field-error {
  display: block;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #8b3a3a;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  display: none;
}

.form-status.is-success {
  display: block;
  background: rgba(91, 122, 157, 0.12);
  border: 1px solid var(--cobalt);
  color: var(--cobalt-deep);
}

.form-status.is-error {
  display: block;
  background: rgba(139, 58, 58, 0.08);
  border: 1px solid #8b3a3a;
  color: #8b3a3a;
}

.contact-aside {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.contact-aside p {
  margin-bottom: 0.35rem;
}

/* Process steps — kampagnen page */
.process-steps {
  counter-reset: step;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.process-steps li {
  position: relative;
  padding: 1.5rem 0 1.5rem 4rem;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.process-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cobalt);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--black);
  color: var(--white);
  padding: 1.25rem var(--space);
  border-top: 1px solid rgba(196, 181, 160, 0.3);
  animation: riseIn 0.5s ease both;
}

.cookie-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 18rem;
  font-size: 0.95rem;
  color: rgba(247, 246, 244, 0.9);
}

.cookie-banner a {
  color: var(--stone);
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-banner .btn-ghost {
  color: var(--white);
  border-color: rgba(247, 246, 244, 0.4);
}

.cookie-banner .btn-primary {
  background: var(--stone);
  border-color: var(--stone);
  color: var(--black);
}

/* Footer */
.site-footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: 3rem var(--space) 2rem;
  background: var(--black);
  color: rgba(247, 246, 244, 0.75);
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr;
  gap: 2rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin: 0 0 0.5rem;
}

.footer-tag {
  font-size: 0.9rem;
  max-width: 22rem;
}

.footer-contact a,
.footer-nav a {
  color: rgba(247, 246, 244, 0.8);
  text-decoration: none;
}

.footer-contact a:hover,
.footer-nav a:hover {
  color: var(--stone);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-copy {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(247, 246, 244, 0.12);
  font-size: 0.85rem;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem var(--space);
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1;
  color: var(--concrete);
  margin: 0;
}

/* Legal */
.legal-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  display: block;
}

.cookies-table th,
.cookies-table td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  background: var(--white);
}

.cookies-table th {
  background: var(--surface);
  font-weight: 500;
}

/* Motion: surface fold on section enter */
.fold-in {
  animation: foldSurface 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes foldSurface {
  from {
    opacity: 0;
    clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: translateY(0);
  }
}

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