/* Dash Creative Agency: portfolio page (from dash-creative-website.webflow.io/projects)
   and case pages (from the Canva PDFs). Case-page geometry uses PDF units:
   1 PDF unit = var(--u). The PDF is 1024.5 units wide and was laid out at a
   1330 px browser width, so --u tops out at 1.298px. */

@font-face { font-family: Noah; src: url("fonts/noah-regular.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: Noah; src: url("fonts/noah-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Noah; src: url("fonts/noah-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "League Spartan"; src: url("fonts/league-spartan-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --primary1: #fb1fcb;
  --primary2: #280b71;
  --navbar-color: #f9f2f8;
  --page-bg: #fefaff;
  --grey: #767272;
  --body-text: #525b61;
  --u: clamp(0.72px, calc(100vw / 1024.5), 1.298px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Anchor targets: land with a little air above the heading (services has no top padding) */
#services { scroll-margin-top: 40px; }
body {
  margin: 0;
  background: #fff;
  color: #010202;
  font-family: Noah, Arial, sans-serif;
  font-size: 24px;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 48px; }

/* ---------- Navbar ---------- */
.navbar { position: relative; z-index: 98; background: var(--navbar-color); padding: 20px 0; }
.navbar-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.navbar-brand { display: flex; flex: none; width: 118px; }
.logo-nav { width: 130px; max-width: none; height: auto; }
.nav-menu { display: flex; align-items: center; gap: 48px; }
.navlink {
  color: var(--primary2); font-size: 18px; line-height: 28.8px; letter-spacing: 5px;
  text-transform: uppercase; text-decoration: none; transition: opacity .2s;
}
.navlink:hover { opacity: .7; }
.navlink, .nav-menu .btn { white-space: nowrap; }
/* Five menu items since the portfolio link was added: tighten them before the hamburger takes over */
@media (max-width: 1279px) {
  /* case pages already shrink the whole nav with zoom, so they keep the full size */
  body:not(.case-page) .nav-menu { gap: 28px; }
  body:not(.case-page) .navlink { font-size: 16px; letter-spacing: 3px; }
  body:not(.case-page) .nav-menu .btn { padding: 14px 20px; font-size: 16px; letter-spacing: 4px; }
}
.btn {
  display: inline-flex; justify-content: center; align-items: center;
  background: var(--primary2); color: #fff; border: 0; border-radius: 0; cursor: pointer;
  padding: 16px 24px; text-decoration: none; font: 700 18px/1 Noah, Arial, sans-serif;
  letter-spacing: 5px; transition: opacity .2s;
}
.btn:hover { opacity: .85; }

.nav-toggle { display: none; }
.nav-toggle button {
  background: none; border: 0; padding: 12px 0; cursor: pointer; display: flex; flex-direction: column;
  align-items: flex-end; gap: 8px;
}
.nav-toggle span { display: block; width: 32px; height: 2px; background: var(--primary2); }
.nav-toggle span.short { width: 20px; }

.nav-panel {
  position: fixed; inset: 0 0 auto 0; z-index: 99; background: #fff; color: var(--primary2);
  padding: 24px; display: flex; flex-direction: column; gap: 40px; box-shadow: 0 20px 40px rgba(40, 11, 113, .12);
  visibility: hidden; opacity: 0; transform: translateY(-16px); pointer-events: none;
  transition: opacity .25s ease, transform .3s cubic-bezier(.22, .61, .36, 1), visibility 0s linear .3s;
}
.nav-panel.open { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
.nav-panel-top { display: flex; justify-content: space-between; align-items: center; font-size: 22px; }
.nav-panel-top .label { color: #cecece; }
.nav-close {
  display: flex; align-items: center; gap: 16px; background: none; border: 0; cursor: pointer;
  color: var(--primary2); font: 18px Noah, Arial, sans-serif;
}
.nav-close i { display: flex; border: 1px solid #404145; border-radius: 100px; padding: 12px; }
.nav-panel-links { display: flex; flex-direction: column; gap: 8px; }
.nav-panel-links a { font-size: 44px; line-height: 1.1; text-decoration: none; }
.nav-panel-bottom { display: flex; justify-content: space-between; gap: 16px; font-size: 18px; flex-wrap: wrap; }
.nav-panel-bottom div { display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 991px) {
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 767px) {
  .container { padding: 0 24px; }
}

/* ---------- Portfolio grid (main page) ---------- */
.projects { padding: 60px 0 100px; }
.projects-list {
  display: grid; grid-template-columns: repeat(3, 400px); gap: 16px; place-items: center;
  width: 1200px; margin: 0 auto;
}
.projects-list .item { width: 400px; }
.projects-list a { display: flex; justify-content: center; align-items: center; width: 400px; }
.projects-list img { max-width: 390px; width: 390px; height: auto; object-fit: contain; }

@media (max-width: 1295px) {
  /* 3 x 400 no longer fits inside the 48px gutters: let the columns shrink */
  .projects-list { width: 100%; grid-template-columns: repeat(3, 1fr); }
  .projects-list .item, .projects-list a { width: 100%; }
  .projects-list img { width: 97.5%; max-width: 390px; }
}
@media (max-width: 991px) {
  .projects-list { grid-template-columns: 1fr; width: auto; }
  .projects-list .item { width: 400px; }
  .projects-list a { display: block; width: auto; max-width: 400px; }
  .projects-list img { width: 400px; max-width: none; }
}
@media (max-width: 479px) {
  .projects-list .item { width: auto; }
  .projects-list a { max-width: none; }
  .projects-list img { width: 100%; }
}

/* ---------- Footer ---------- */
.footer { background: var(--navbar-color); padding: 38px 0 30px; }
/* The PDFs show nav and footer at the 1330 px design width scaled down to the page:
   --z (set in <head>) = min(1, viewport / 1330) does the same on desktop. */
@media (min-width: 992px) { .case-page .navbar, .case-page .footer { zoom: var(--z, 1); } }
.footer-wrap { display: flex; flex-direction: column; gap: 66px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-cta { display: flex; flex-direction: column; }
.footer-cta p { margin: 0 0 10px; color: var(--primary1); font-size: 32px; line-height: 28.8px; font-weight: 700; }
.footer-cta p + p { line-height: 1.2; }
.footer-form {
  display: flex; align-items: center; gap: 16px; width: 100%; max-width: 456px; padding-bottom: 18px;
  margin-right: 10.3%;
  border-bottom: 1px solid var(--primary1); position: relative;
}
.footer-form input {
  flex: 1; min-width: 0; height: 55px; padding: 26px 0 0; border: 0; background: transparent;
  color: var(--primary1); font: 27.7px/1.2 Noah, Arial, sans-serif; letter-spacing: -.24px; outline: none;
}
.footer-form input::placeholder { color: var(--primary1); opacity: 1; }
.footer-form .btn { height: 55px; width: 152px; padding: 0; flex: none; font-size: 12.6px; letter-spacing: 4.4px; }
.footer-note { position: absolute; left: 0; top: calc(100% + 8px); margin: 0; font-size: 15px; color: var(--primary2); }
.footer-links { display: flex; flex-direction: column; }
.footer-links a { color: var(--primary2); font-size: 28px; line-height: 28.6px; letter-spacing: -.24px; text-decoration: none; width: fit-content; }
.footer-links a:hover { text-decoration: underline; }
.footer-social { display: flex; gap: 32px; margin-top: 62px; }
.footer-social svg { width: 46px; height: 46px; }
.footer-social a { display: flex; color: var(--primary1); transition: opacity .2s; }
.footer-social a:hover { opacity: .8; }
.footer-contact { margin-top: -50px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }
.footer-contact a, .footer-contact span {
  margin: 0 3px; color: var(--primary2); font-size: 16px; line-height: 22px; font-weight: 300;
  letter-spacing: 3px; text-transform: uppercase; text-decoration: none;
}

@media (max-width: 991px) {
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-form { margin-right: 0; }
  .footer-social { margin-bottom: 20px; }
}
@media (max-width: 767px) {
  .footer-links a { font-size: 24px; line-height: 28.8px; }
  .footer-form input { font-size: 22px; }
  .footer-social { margin-top: 32px; }
  .footer-contact { margin-top: -30px; }
}
@media (max-width: 479px) {
  .footer-cta p { font-size: 18px; line-height: 1.2em; }
  .footer-contact a, .footer-contact span { font-size: 14px; letter-spacing: 1px; }
}

/* ---------- Case pages (PDF geometry) ---------- */
.case { background: var(--page-bg); color: var(--body-text); }
.band { position: relative; overflow: hidden; }
.band.theme { background: var(--band); }
.canvas {
  position: relative; width: calc(1024.5 * var(--u)); margin: 0 auto;
  min-height: calc(var(--h) * var(--u));
}
.abs {
  position: absolute;
  left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u)); height: calc(var(--hh) * var(--u));
}
.abs img, .abs picture { width: 100%; height: 100%; }
.abs img { object-fit: cover; }
.bar { background: var(--accent); }
.tile { background: var(--band); }

.flow {
  position: relative; margin-left: calc(var(--x) * var(--u));
  padding-top: calc(var(--y) * var(--u)); width: calc(var(--w) * var(--u));
}

/* Canva sets the title and the 20.9 pt lines (subtitle, meta box) with negative tracking:
   measured against the PDFs, about -0.025em and -0.03em. Body copy has none. */
.hero h1 {
  margin: 0; color: var(--hero-text); font-weight: 400; letter-spacing: -0.025em;
  font-size: calc(70.3 * var(--u)); line-height: 1.25; white-space: nowrap;
}
.hero .sub {
  margin: calc(14.5 * var(--u)) 0 0; color: var(--hero-text); letter-spacing: -0.03em;
  font-size: calc(20.9 * var(--u)); line-height: 1.407;
}

.copy { font-size: calc(18.6 * var(--u)); line-height: 1.371; margin: 0; }
.copy.small { font-size: calc(16.8 * var(--u)); line-height: 1.381; }
.copy.quote { font-size: calc(var(--quote-size) * var(--u)); line-height: 1.375; color: var(--quote-text); }
.copy b { display: block; font-weight: 700; }
.copy .who { display: block; margin-top: 1.375em; }
.copy .who em { font-style: italic; }
.justify { text-align: justify; }
/* Desktop: one span per PDF line, so wraps match the design exactly */
.ln { display: block; white-space: nowrap; }
.justify .ln { white-space: normal; text-align-last: justify; }
.justify .ln:last-child { text-align-last: auto; }

.meta {
  position: absolute; left: calc(724.3 * var(--u)); top: 0;
  width: calc(299.8 * var(--u)); height: calc(var(--meta-h) * var(--u));
  background: var(--band); color: var(--hero-text);
  /* stretch to the viewport edge when the canvas is centered on wide screens */
  box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax 0 0);
}
.meta, .meta dd { margin: 0; }
.meta .group { position: absolute; left: calc(15.5 * var(--u)); top: calc(var(--gy) * var(--u)); width: calc(280 * var(--u)); }
.meta dt, .meta dd { margin: 0; font-size: calc(20.9 * var(--u)); line-height: 1.407; letter-spacing: -0.03em; }
.meta.underline dt { text-decoration: underline; text-underline-offset: 3px; }

.quote-mark { color: var(--accent); }
.quote-mark svg { width: 100%; height: 100%; display: block; }

.spacer { height: calc(var(--h) * var(--u)); }

/* ---------- Case pages on phones: stack everything ---------- */
@media (max-width: 767px) {
  :root { --u: 1px; }
  .canvas { width: auto; min-height: 0; padding: 40px 24px; display: flex; flex-direction: column; gap: 24px; }
  .flow { margin: 0; padding: 0; width: auto; }
  .abs { position: relative; left: auto; top: auto; width: 100%; height: auto; }
  .abs img { height: auto; }
  .hero h1 { font-size: 40px; line-height: 1.1; white-space: normal; }
  .hero .sub { font-size: 20px; margin-top: 12px; }
  .copy, .copy.quote { font-size: 17px; line-height: 1.45; }
  .copy.small { font-size: 16px; line-height: 1.45; }
  .justify { text-align: left; }
  .ln, .justify .ln { display: inline; white-space: normal; text-align-last: auto; }

  .intro .canvas { padding-bottom: 0; }
  .media-stack { position: relative; padding-bottom: 48px; }
  .media-stack .photo { width: 78%; }
  .media-stack .bar { position: absolute; width: 64px; height: 20px; right: 10%; top: 24px; }
  .media-stack .tile { position: absolute; right: 0; bottom: 0; width: 64%; height: auto; padding: 12px; }
  .media-stack .tile .abs, .media-stack .tile img { position: static; width: 100%; }
  .meta {
    position: relative; left: auto; width: auto; height: auto; margin: 0 -24px;
    padding: 28px 24px; box-shadow: none; clip-path: none; display: grid; gap: 20px;
  }
  .meta .group { position: static; width: auto; }
  .meta dt, .meta dd { font-size: 20px; }

  .testimonial .canvas { padding-right: 24px; }
  .quote-mark { position: relative; width: 60px; height: 46px; align-self: flex-end; }
  .gallery .canvas { gap: 20px; }
  .gallery .bar { display: none; }
  /* decorative panels and extra coloured bars only make sense in the PDF layout */
  .gallery .deco, .media-stack .deco, .media-stack .bar[style*="background"] { display: none; }
  .spacer { height: 12px; }
}

/* Only present in preview builds (build.py --preview) */
.preview-strip {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; padding: 6px 16px;
  background: var(--primary2); color: #fff; font-size: 14px; line-height: 1.3; text-align: center;
}
.preview-strip a { color: #fff; text-decoration: underline; }
body:has(.preview-strip) { padding-bottom: 32px; }

/* ---------- Forside (from www.dash-creative.dk) ---------- */
.home-page { background: var(--page-bg); }
.line-red { height: 1px; width: 100%; background: var(--primary1); }
.section-title { margin: 0; color: var(--primary2); font-size: 48px; line-height: 1.2; font-weight: 700; }
.h3-pink {
  margin: 0; color: var(--primary1); font-family: "League Spartan", sans-serif; font-weight: 400;
  font-size: 32px; line-height: 1; letter-spacing: -1.92px;
}
.lead { margin: 0; color: var(--primary2); font-size: 18px; line-height: 28.8px; font-weight: 700; }
.lead span { font-weight: 700; }

.home-hero { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 60px 0 40px; }
.hero-copy { flex: 1 1 400px; display: flex; flex-direction: column; align-items: flex-start; }
.hero-title { margin: 0; font-weight: 400; font-size: 50px; line-height: 1; }
.hero-title span { display: block; }
.hero-title .l1 { color: var(--primary2); margin-bottom: 20px; }
.hero-title .l2 { color: var(--primary1); margin-bottom: 40px; }
.hero-line { width: 30px; height: auto; margin: 0 0 40px 132px; }
.cta-red {
  background: var(--primary1); color: #fff; text-decoration: none; padding: 9px 15px;
  font-size: 24px; line-height: 28.8px; letter-spacing: -.24px; transition: opacity .2s;
}
.cta-red:hover { opacity: .85; }
.hero-grid { flex: 0 1 710px; min-width: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hero-grid img { width: 150px; max-width: 100%; height: auto; }
.hero-grid picture:has(.wide) { grid-column: span 2; display: block; }
.hero-grid .wide { width: 100%; height: 100%; max-width: none; object-fit: cover; }

.about { padding: 100px 0; }
.about-wrap { display: flex; flex-direction: column; gap: 56px; }
.about-content { display: flex; justify-content: space-between; align-items: flex-end; gap: 112px; }
.about-img { flex: none; margin-bottom: 67px; }
.about-img img { width: 500px; height: auto; }
.about-text { flex: 0 1 661px; }
.about-text .lead { margin-bottom: 28.8px; }
.about-text .body { margin: 0 0 28.8px; color: var(--grey); font-size: 16px; line-height: 28.8px; }
.about-text .body:last-of-type { margin-bottom: 20px; }
.about-text .quote { margin: 0 0 28.8px; color: var(--primary2); font-size: 18px; line-height: 28.8px; font-weight: 700; font-style: italic; }

.services { padding: 0 0 112px; }
.services-wrap { display: flex; flex-direction: column; gap: 120px; }
.svc-outer { margin-left: auto; display: flex; flex-direction: column; gap: 80px; }
.svc-item { display: flex; align-items: flex-start; gap: 40px; }

.svc-img { width: 500px; height: auto; }
.svc-text { width: 600px; display: flex; flex-direction: column; gap: 24px; }
.svc-desc { margin: 0; color: var(--grey); font-size: 16px; line-height: 1.2; letter-spacing: -.24px; }
.svc-list { margin: 0; padding-left: 24px; color: var(--primary2); font-size: 22px; line-height: 28.8px; }

.teaser { padding: 20px 0 60px; }
.teaser-wrap { display: flex; flex-direction: column; gap: 40px; }
.teaser-row { display: flex; gap: 60px; }
.teaser-img { flex: 0 1 35%; }
.teaser-img img { width: 100%; height: auto; }
.teaser-text { flex: 0 1 65%; display: flex; flex-direction: column; gap: 24px; }
.teaser-text > * { max-width: 550px; }
.teaser-text .svc-desc + .svc-desc { margin-top: -4.8px; }
.teaser-text .lead { margin-bottom: 4.8px; }
.btn-soon { width: 360px; max-width: 100%; padding: 16px 20px; font-size: 16px; }

/* ---------- Priser (from www.dash-creative.dk/priser) ---------- */
.priser-page { background: #fff; }
.pricing { max-width: 1280px; margin: 0 auto; padding: 40px 60px 80px; }
.pricing-title { margin: 0 0 40px; color: var(--primary2); font-size: 40px; line-height: 28.8px; font-weight: 700; }
.pricing-cols { display: grid; grid-template-columns: 628fr 452fr; gap: 80px; align-items: start; }
.pricing-col { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.price-h { margin: 0; color: var(--primary1); font-size: 32px; line-height: 28.8px; font-weight: 700; }
.price-p { margin: 0; color: var(--grey); font-size: 18px; line-height: 1.3; }
.price-sub { margin: 0; color: var(--primary2); font-size: 18px; line-height: 28.8px; font-weight: 700; }
.price-list { margin: 0 0 10px; padding-left: 24px; color: var(--primary2); font-size: 16px; line-height: 28.8px; }
.price-note { margin: 0; color: var(--grey); font-size: 18px; line-height: 28.8px; }
.price-img { width: 600px; max-width: 100%; height: auto; }

@media (max-width: 991px) {
  .hero-grid { display: none; }
  .about-content { flex-direction: column; align-items: stretch; gap: 64px; }
  .about-img { margin-bottom: 0; }
  .about-img img { width: 100%; }
  .about { padding: 80px 0; }
  .svc-item { flex-direction: column; }
  .teaser-row { flex-direction: column; }
  .teaser-img, .teaser-text { flex-basis: auto; }
  .pricing-cols { grid-template-columns: 1fr; gap: 150px; }
}
@media (max-width: 767px) {
  .about-wrap, .about-content { gap: 40px; }
  .about { padding: 56px 0; }
  .cta-red { font-size: 18px; line-height: 1.5; }
  .services { padding-bottom: 56px; }
  .services-wrap { gap: 56px; }
  .svc-outer { margin-left: 0; gap: 40px; }
  .svc-img { width: 100%; }
  .svc-text { width: auto; }
  .h3-pink { letter-spacing: .56px; }
  .pricing { padding: 40px 15px 60px; }
}
@media (max-width: 479px) {
  .hero-title { font-size: 38px; }
  .hero-line { margin-left: 40px; }
  .lead { font-size: 16px; line-height: 1.2; }
  .pricing { padding-left: 40px; padding-right: 40px; }
  .price-img { width: 100%; }
}

/* ---------- Kontakt (from www.dash-creative.dk/contacts) ---------- */
.contacts-page { background: #fff; }
.contact { padding: 118px 0 80px; }
.contact-wrap { display: flex; align-items: center; gap: 78px; }
.contact-info { flex: 0 1 auto; }
.contact-title { margin: 0; color: var(--primary1); font-size: 48px; line-height: 1.2; font-weight: 700; text-transform: uppercase; }
.contact-intro { margin: 0 0 57.6px; color: var(--primary2); font-size: 24px; line-height: 28.8px; }
.contact-card { display: flex; }
.contact-img { width: 400px; max-width: 400px; height: auto; flex: none; }
.contact-links { flex: none; display: flex; flex-direction: column; margin-left: 20px; white-space: nowrap; }
.contact-links > a { color: var(--primary1); font-size: 18px; line-height: 28.8px; font-weight: 700; letter-spacing: -.24px; text-decoration: none; }
.contact-links > a:hover { text-decoration: underline; }
.contact-social { display: flex; gap: 10px; margin-top: 40px; }
.contact-social a { display: flex; color: var(--primary1); }
.contact-form { flex: none; width: 350px; }
.contact-form > label { display: block; color: var(--primary2); font-size: 24px; line-height: 28.8px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form textarea {
  display: block; width: 100%; height: 38px; margin: 0 0 10px; padding: 8px 12px; border: 1px solid #ccc; border-radius: 0;
  background: #fff; color: #333; font: 14px/1.42857 Noah, Arial, sans-serif;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary2); outline: 0; }
.contact-form textarea { height: 58px; margin: 10px 0 60px; resize: vertical; }
.contact-form textarea::placeholder { color: #999; }
.contact-form input.gap-after { margin-bottom: 40px; }
.contact-form > .contact-check { display: flex; align-items: center; gap: 16px; margin: 20px 0 10px; cursor: pointer; }
.contact-check input { width: 16px; height: 16px; margin: 0; flex: none; accent-color: var(--primary2); }
.contact-check span { color: var(--primary2); font-size: 12px; line-height: 18px; }
.contact-submit {
  border: 0; border-radius: 0; background: var(--primary1); color: #fff; cursor: pointer;
  padding: 9px 15px; font: 24px/28.8px Noah, Arial, sans-serif; transition: opacity .2s;
}
.contact-submit:hover { opacity: .85; }
.contact-note { margin: 12px 0 0; min-height: 18px; color: var(--primary2); font-size: 15px; line-height: 1.3; }

/* The live Webflow page never stacks, so phones lose the form. Here it stacks below 992 px. */
@media (max-width: 991px) {
  .contact-wrap { flex-direction: column; align-items: stretch; gap: 56px; }
  .contact-info { flex-basis: auto; }
  .contact-form { width: 100%; max-width: 480px; }
}
@media (max-width: 767px) {
  .contact { padding: 36px 0 56px; }
  .contact-wrap { gap: 40px; }
  .contact-card { flex-direction: column; gap: 20px; }
  .contact-img { width: 100%; max-width: 400px; }
  .contact-links { margin-left: 0; }
  .contact-social { margin-top: 20px; }
}
@media (max-width: 479px) {
  .contact-intro { font-size: 20px; line-height: 1.35; }
  .contact-form > label { font-size: 18px; line-height: 1.5; }
}

/* ---------- Motion: subtle, never hiding content ----------
   html.reveal is set in <head> unless the visitor prefers reduced motion. Elements with
   [data-reveal] start hidden and get .in from the footer script when they scroll into view.
   The keyframe fallback shows everything after 3 s even if that script never runs. */
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }
@keyframes reveal-failsafe-line { to { clip-path: inset(0 0 0 0); } }
.reveal [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s cubic-bezier(.22, .61, .36, 1), transform .8s cubic-bezier(.22, .61, .36, 1), clip-path .9s cubic-bezier(.65, 0, .35, 1);
  transition-delay: var(--d, 0ms);
  animation: reveal-failsafe 0s 3s forwards;
}
.reveal [data-reveal="fade"] { transform: none; }
.reveal [data-reveal="pop"] { transform: scale(.85); }
.reveal [data-reveal="bar"] { opacity: 1; transform: scaleX(0); transform-origin: left center; }
.reveal [data-reveal="line"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); animation-name: reveal-failsafe-line; }
.reveal [data-reveal].in { opacity: 1; transform: none; animation: none; }
/* only the line animates clip-path: the case info box keeps its own clip-path (edge extension) */
.reveal [data-reveal="line"].in { clip-path: inset(0 0 0 0); }

/* Nav and footer links: underline grows from the left; the current page keeps it */
.navlink, .footer-links a { position: relative; }
.navlink::after, .footer-links > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right center; transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}
.navlink:hover::after, .navlink.is-current::after, .footer-links > a:hover::after { transform: scaleX(1); transform-origin: left center; }
.navlink:hover { opacity: 1; }
.footer-links a:hover { text-decoration: none; }

/* Buttons lift a touch */
.btn, .cta-red, .contact-submit { transition: opacity .2s, transform .25s cubic-bezier(.22, .61, .36, 1), box-shadow .25s; }
.btn:hover, .cta-red:hover, .contact-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(40, 11, 113, .18); }
.btn:active, .cta-red:active, .contact-submit:active { transform: none; box-shadow: none; }
.footer-social a, .contact-social a { transition: transform .25s cubic-bezier(.22, .61, .36, 1), opacity .2s; }
.footer-social a:hover, .contact-social a:hover { transform: translateY(-2px); }

/* Portfolio tiles: slow gentle zoom */
.projects-list a { overflow: hidden; }
.projects-list img { transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
.projects-list a:hover img { transform: scale(1.035); }

/* Form fields ease into focus */
.contact-form input, .contact-form textarea, .footer-form input { transition: border-color .2s; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Privatlivspolitik (09/10/2026): one readable text column, left-aligned in the site container */
.legal { padding: 64px 0 96px; }
.legal-title { margin: 0 0 6px; font-size: 56px; line-height: 1.1; font-weight: 400; color: var(--primary2); }
.legal-updated { margin: 0 0 28px; font-size: 15px; color: var(--primary2); opacity: .7; }
.legal-intro { max-width: 760px; margin: 0 0 40px; font-size: 22px; line-height: 1.5; color: var(--primary2); }
.legal-sec { max-width: 760px; padding: 26px 0; border-top: 1px solid rgba(251, 31, 203, .35); }
.legal-sec h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.3; font-weight: 400; color: var(--primary1); }
.legal-body { font-size: 17px; line-height: 1.6; color: var(--primary2); }
.legal-body p, .legal-body ul { margin: 0 0 12px; }
.legal-body ul { padding-left: 1.2em; }
.legal-body li { margin: 2px 0; }
.legal-body a, .contact-privacy a, .footer-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.contact-privacy { margin: 14px 0 0; font-size: 14px; color: var(--primary2); }
@media (max-width: 767px) {
  .legal { padding: 40px 0 64px; }
  .legal-title { font-size: 40px; }
  .legal-intro { font-size: 19px; }
}
