/* ────────────────────────────────────────────────────────────
   Symmetry public site — agency brand 2026
   Palette: deep purple primary · forest-green & warm-brown secondaries
   Type: Merriweather (headings) · Noto Sans (body)
   ──────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,400&family=Noto+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Primary purple */
  --c-primary:        #2d1937;   /* darkest — main brand */
  --c-primary-2:      #3d1c49;
  --c-primary-soft:   #c8bbd7;
  --c-primary-pale:   #e8e2ef;

  /* Secondary green */
  --c-green:          #20604b;
  --c-green-soft:     #8db9a2;
  --c-green-pale:     #eaf2ef;
  --c-green-white:    #f7f8f9;

  /* Secondary warm */
  --c-warm:           #2d1f13;
  --c-warm-mid:       #897867;
  --c-warm-pale:      #e8e3d7;
  --c-warm-white:     #f5f3ef;

  /* Neutrals */
  --c-bg:             #ffffff;
  --c-fg:             #1a1416;
  --c-muted:          #6b6470;
  --c-border:         #ece5ee;

  --max-w: 1180px;

  --font-head: 'Merriweather', Georgia, serif;
  --font-body: 'Noto Sans', -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body.public {
  margin: 0;
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-fg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--c-primary);
  font-weight: 400;
  letter-spacing: -0.005em;
}

a { color: var(--c-primary); }

/* ── Top navigation ───────────────────────────────────────── */
.pub-nav {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.pub-nav .pub-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  text-indent: -9999px;
  width: 236px;
  height: 88px;
  background: url('/static/img/symmetry-logo.png') no-repeat left center;
  background-size: contain;
}
.pub-nav .pub-links { display: flex; gap: 28px; align-items: center; }
.pub-nav .pub-links a {
  color: var(--c-fg);
  text-decoration: none;
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
}
.pub-nav .pub-links a:hover,
.pub-nav .pub-links a.active { border-bottom-color: var(--c-primary); }
.pub-nav .pub-cta {
  background: var(--c-primary);
  color: white !important;
  padding: 8px 20px;
  border: 1px solid var(--c-primary);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--c-primary) !important;
  transition: background 0.15s, border-color 0.15s;
}
.pub-nav .pub-lang {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  color: var(--c-primary);
  border: 0;
  padding: 0;
  border-bottom: 0 !important;
  transition: opacity 0.15s;
}
.pub-nav .pub-lang svg {
  display: block;
  width: 22px;
  height: 16px;
  border-radius: 2px;
}
.pub-nav .pub-lang:hover {
  background: none;
  opacity: 0.7;
  border-bottom: 0 !important;
}
.pub-nav .pub-nav-social {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.pub-nav .pub-nav-social a {
  display: inline-flex;
  color: var(--c-primary);
  transition: opacity 0.15s;
}
.pub-nav .pub-nav-social a:hover { opacity: 0.6; }
.pub-nav .pub-nav-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}
.pub-nav .pub-cta:hover {
  background: var(--c-primary-2);
  border-color: var(--c-primary-2);
  border-bottom: 1px solid var(--c-primary-2) !important;
}

/* Hamburger button — hidden on desktop, shown on mobile via @media below */
.pub-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
  width: 44px;
  height: 40px;
  position: relative;
}
.pub-menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-primary);
  margin: 4px auto;
  transition: transform 0.2s, opacity 0.2s;
}
.pub-menu-toggle.open .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.pub-menu-toggle.open .bar:nth-child(2) { opacity: 0; }
.pub-menu-toggle.open .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Page wrapper ─────────────────────────────────────────── */
.pub-page { max-width: var(--max-w); margin: 0 auto; padding: 56px 32px 80px; }
.pub-page-wide { max-width: 100%; margin: 0; padding: 0; }

/* ── Research hook card (featured on home page) ─────────────── */
.research-hook {
  display: grid;
  grid-template-columns: 350px 1fr;
  background: var(--c-primary);
  color: white;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  min-height: 220px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
}
.research-hook:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(45,25,55,0.20);
}
.research-hook-img {
  background-size: cover;
  background-position: center;
  background-color: var(--c-primary-2);
  min-height: 220px;
}
.research-hook-img-fallback {
  background: linear-gradient(135deg, var(--c-primary) 0%, #6a4d8a 100%);
}
.research-hook-body { padding: 32px 36px; display: flex; flex-direction: column; justify-content: center; }
.research-hook-eyebrow {
  font-family: var(--font-body); font-size: 12px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: rgba(255,255,255,0.65); margin-bottom: 8px;
}
.research-hook-title {
  font-family: var(--font-headline); font-size: 28px; line-height: 1.18;
  margin: 0 0 12px; color: white; font-weight: 400;
}
.research-hook-date {
  font-family: var(--font-body); font-size: 13px;
  color: rgba(255,255,255,0.70); margin-bottom: 18px;
}
.research-hook-cta {
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  color: var(--c-green-soft); letter-spacing: 0.04em; text-transform: uppercase;
}
@media (max-width: 800px) {
  .research-hook { grid-template-columns: 1fr; }
  .research-hook-img { min-height: 180px; }
  .research-hook-body { padding: 22px 24px; }
  .research-hook-title { font-size: 22px; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.pub-hero {
  /* Animated gradient mesh — purple/violet/blue that slowly drifts.
     Multi-stop radial gradients on a 200% wider canvas; CSS animation
     pans the background position so the blobs gently glide. Pure CSS,
     zero JS, GPU-accelerated. */
  background:
    radial-gradient(at 18% 22%, rgba(155, 128, 197, 0.55) 0px, transparent 42%),
    radial-gradient(at 82% 18%, rgba(85,  92, 168, 0.50) 0px, transparent 45%),
    radial-gradient(at 12% 78%, rgba(60,  35, 110, 0.55) 0px, transparent 45%),
    radial-gradient(at 88% 80%, rgba(180, 138, 215, 0.40) 0px, transparent 42%),
    radial-gradient(at 50% 50%, rgba(75,  44, 120, 0.45) 0px, transparent 60%),
    var(--c-primary);
  background-size: 220% 220%;
  background-position: 0% 0%;
  animation: pub-hero-mesh 28s ease-in-out infinite alternate;
  color: white;
  padding: 120px 32px 140px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@keyframes pub-hero-mesh {
  0%   { background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%, 50% 50%; }
  50%  { background-position: 35% 25%, 60% 40%, 30% 60%, 70% 80%, 55% 45%; }
  100% { background-position: 100% 100%, 0% 100%, 100% 0%, 0% 0%, 50% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  /* Respect users who turn off motion in their OS */
  .pub-hero { animation: none; }
}
.pub-hero::after {
  /* Soft top-right glow that drifts independently — extra depth */
  content: '';
  position: absolute;
  top: -120px; right: -160px;
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(200,187,215,0.18) 0%, transparent 70%);
  pointer-events: none;
  animation: pub-hero-blob 22s ease-in-out infinite alternate;
}
@keyframes pub-hero-blob {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-80px, 40px) scale(1.15); }
}
.pub-hero .inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }

/* ── Hero with background video ───────────────────────────── */
/* Adds a muted, looping video behind the hero copy. The branded gradient
   above stays as the base colour (fallback + reduced-motion), the video sits
   on top of it, then a purple overlay keeps the white text readable. */
.pub-hero--video { animation: none; }        /* gradient is a still fallback now */
.pub-hero--video::after { display: none; }   /* drop the drifting glow behind video */
.pub-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The hero is wider/shorter than the 16:9 footage, so `cover` crops top &
     bottom. Bias the kept window upward so faces/heads stay in frame instead
     of being cut off at the top. */
  object-position: center 28%;
  z-index: 0;
}
.pub-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Medium brand-purple wash — video stays visible, headline stays legible */
  background:
    linear-gradient(180deg, rgba(28,14,36,0.45) 0%, rgba(28,14,36,0.26) 42%, rgba(28,14,36,0.58) 100%),
    radial-gradient(120% 120% at 50% 28%, rgba(45,25,55,0.06) 0%, rgba(18,9,26,0.52) 100%);
}
.pub-hero--video .inner { z-index: 2; }
/* Shorter hero for the sub-pages (Om, Performance, Kontakt, Nyheder, Bliv
   investor) — replaces the old inline padding:60px 24px 70px. */
.pub-hero--compact { padding: 60px 24px 70px; }
.pub-hero--video h1 { text-shadow: 0 2px 26px rgba(0,0,0,0.38); }
.pub-hero--video .tagline {
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 14px rgba(0,0,0,0.45);
}
@media (prefers-reduced-motion: reduce) {
  /* Honour the OS "reduce motion" setting (common on Windows work PCs where
     "Show animations" is off): don't autoplay the video, but show its poster
     frame as a STATIC background so the hero still shows the branded image —
     otherwise only the flat gradient would show and the section looks empty. */
  .pub-hero__video { display: none; }
  .pub-hero--video {
    background-image: url('/static/video/hero-poster.jpg?v=20260907');
    background-size: cover;
    background-position: center 28%;   /* match the video's crop framing */
    background-repeat: no-repeat;
  }
}
.pub-hero h1 {
  font-size: 58px;
  line-height: 1.1;
  margin: 0 auto 24px;
  font-weight: 300;
  color: white;
  letter-spacing: -0.015em;
  max-width: 900px;
}
.pub-hero .tagline {
  color: rgba(255,255,255,0.82);
  font-size: 19px;
  max-width: 660px;
  margin: 0 auto 32px;
  font-family: var(--font-body);
  line-height: 1.55;
}
.pub-hero .pub-cta-row { display: flex; gap: 14px; margin-top: 32px; justify-content: center; }
.pub-btn {
  display: inline-block;
  padding: 13px 32px;
  /* Pill shape — matches Happy marketing material for visual consistency
     across website and offline collateral. */
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.pub-btn-primary { background: var(--c-green-soft); color: var(--c-primary); border-color: var(--c-green-soft); }
.pub-btn-primary:hover { background: white; border-color: white; }
.pub-btn-outline { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.6); }
.pub-btn-outline:hover { border-color: white; background: rgba(255,255,255,0.08); }

/* ── Stat strip ───────────────────────────────────────────── */
.pub-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--c-warm-white);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.pub-stat { padding: 40px 20px; text-align: center; border-right: 1px solid var(--c-border); }
.pub-stat:last-child { border-right: 0; }
.pub-stat .label {
  color: var(--c-muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-weight: 600;
}
.pub-stat .value {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 400;
  color: var(--c-primary);
  letter-spacing: -0.01em;
}
.pub-stat .sub { color: var(--c-muted); font-size: 13px; margin-top: 6px; font-family: var(--font-body); }

/* ── Sections ─────────────────────────────────────────────── */
.pub-section { margin: 80px 0; }
.pub-section h2 {
  font-size: 38px;
  margin: 0 0 16px;
  font-weight: 400;
  color: var(--c-primary);
  line-height: 1.2;
}
.pub-section .lead {
  color: var(--c-fg);
  font-size: 18px;
  max-width: 720px;
  margin-bottom: 32px;
  line-height: 1.6;
}
.pub-section p { color: var(--c-fg); }
.pub-section h3 {
  font-size: 22px;
  margin: 40px 0 16px;
  font-weight: 400;
  color: var(--c-primary);
  line-height: 1.3;
}
.pub-research-example {
  margin-top: 32px;
  padding: 24px;
  background: var(--c-green-pale);
  border-radius: 8px;
}
.pub-research-example p { margin: 0 0 14px; }
.pub-research-example .pub-btn { padding: 11px 28px; font-size: 13px; }

.pub-section-tinted {
  background: var(--c-green-pale);
  padding: 80px 32px;
  margin: 80px 0;
}
.pub-section-tinted .inner { max-width: var(--max-w); margin: 0 auto; }

.pub-section-warm {
  background: var(--c-warm-pale);
  padding: 80px 32px;
  margin: 80px 0;
}
.pub-section-warm .inner { max-width: var(--max-w); margin: 0 auto; }

/* ── Feature grid ─────────────────────────────────────────── */
.pub-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pub-feature {
  background: white;
  border: 1px solid var(--c-border);
  padding: 32px 28px;
  border-radius: 4px;
  transition: border-color 0.15s, transform 0.15s;
}
.pub-feature:hover { border-color: var(--c-primary-soft); transform: translateY(-2px); }
.pub-feature h3 {
  margin: 0 0 12px;
  font-size: 19px;
  color: var(--c-primary);
  font-family: var(--font-head);
  font-weight: 700;
}
.pub-feature p { color: var(--c-fg); font-size: 14.5px; margin: 0; line-height: 1.6; }

/* ── Performance table ────────────────────────────────────── */
.pub-perf-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.pub-perf-table th, .pub-perf-table td {
  padding: 10px 12px;
  text-align: right;
  border-bottom: 1px solid var(--c-border);
}
.pub-perf-table th {
  background: var(--c-primary-pale);
  color: var(--c-primary);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}
.pub-perf-table th:first-child, .pub-perf-table td:first-child { text-align: left; font-weight: 600; }
.pub-perf-table tr:hover td { background: var(--c-warm-white); }
.pub-perf-table td.pos { color: var(--c-green); font-weight: 600; }
.pub-perf-table td.neg { color: #a01818; font-weight: 600; }

/* ── Footer ───────────────────────────────────────────────── */
.pub-footer {
  background: var(--c-primary);
  color: rgba(255,255,255,0.78);
  padding: 70px 32px 32px;
  margin-top: 100px;
  font-family: var(--font-body);
  font-size: 14px;
}
.pub-footer .inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
}
.pub-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.pub-footer a:hover { color: white; }
.pub-footer h4 {
  color: white; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0 0 16px; font-family: var(--font-body); font-weight: 600;
}
.pub-footer ul { list-style: none; padding: 0; margin: 0; }
.pub-footer li { margin-bottom: 8px; }
.pub-footer .pub-follow-h { margin-top: 28px; }
.pub-footer .pub-social {
  display: flex;
  gap: 10px;
  align-items: center;
}
.pub-footer .pub-social li { margin: 0; }
.pub-footer .pub-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  transition: background 0.15s ease, transform 0.15s ease;
}
.pub-footer .pub-social a:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}
.pub-footer .pub-social svg {
  width: 17px; height: 17px;
  fill: #fff;
}
.pub-footer .bottom-bar {
  max-width: var(--max-w); margin: 48px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; justify-content: space-between; font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.pub-footer-logo {
  display: block;
  width: 200px; height: 83px;
  background: url('/static/img/symmetry-logo-white.png') no-repeat left center;
  background-size: contain;
  margin-bottom: 20px;
}

/* ── Forms ────────────────────────────────────────────────── */
.pub-form { max-width: 560px; }
.pub-form label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.pub-form input, .pub-form textarea, .pub-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 15px;
  margin-bottom: 20px;
  background: white;
  color: var(--c-fg);
  transition: border-color 0.15s;
}
.pub-form input:focus, .pub-form textarea:focus, .pub-form select:focus {
  outline: none; border-color: var(--c-primary);
}

/* ── Team ─────────────────────────────────────────────────── */
.pub-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 32px; }
.pub-member {
  background: white;
  border: 1px solid var(--c-border);
  padding: 28px;
  border-radius: 4px;
  text-align: left;
}
.pub-member .name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 4px;
  color: var(--c-primary);
}
.pub-member .title {
  color: var(--c-green);
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}
.pub-member .bio { font-size: 14.5px; color: var(--c-fg); line-height: 1.6; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 800px) {
  .pub-hero { padding: 70px 24px 80px; }
  .pub-hero h1 { font-size: 38px; }
  .pub-section h2 { font-size: 28px; }
  .pub-stats { grid-template-columns: repeat(2, 1fr); }
  .pub-features { grid-template-columns: 1fr; }
  .pub-team { grid-template-columns: repeat(2, 1fr); }
  .pub-footer .inner { grid-template-columns: 1fr; gap: 32px; }
  .pub-nav { padding: 14px 20px; flex-wrap: wrap; }
  .pub-menu-toggle { display: block; }

  /* Hidden by default on mobile; .open class drops it down as a full-width panel */
  .pub-nav .pub-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--c-border);
  }
  .pub-nav .pub-links.open { display: flex; }
  .pub-nav .pub-links a {
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--c-border);
  }
  .pub-nav .pub-links a:hover,
  .pub-nav .pub-links a.active {
    border-bottom-color: var(--c-border);
    color: var(--c-primary);
  }
  .pub-nav .pub-cta {
    text-align: center;
    margin-top: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    border-bottom: 1px solid var(--c-primary) !important;
  }
  .pub-nav .pub-lang {
    align-self: flex-start;
    margin-top: 8px;
  }
}

/* ── Cookie info bar ── */
.pub-cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  background: var(--c-primary);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.pub-cookie-bar.show { opacity: 1; transform: translateY(0); }
.pub-cookie-bar .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.pub-cookie-bar p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
}
.pub-cookie-bar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 6px;
}
.pub-cookie-bar a:hover { opacity: 0.85; }
.pub-cookie-bar button {
  flex: 0 0 auto;
  background: #fff;
  color: var(--c-primary);
  border: none;
  border-radius: 999px;
  padding: 9px 22px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.pub-cookie-bar button:hover { background: var(--c-primary-pale); transform: translateY(-1px); }
.pub-cookie-bar button:active { transform: translateY(0); }

@media (max-width: 720px) {
  .pub-cookie-bar { left: 8px; right: 8px; bottom: 8px; }
  .pub-cookie-bar .inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }
  .pub-cookie-bar button { align-self: flex-end; }
}
