/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --bg:             #faf9f8;
  --surface:        #fff;
  --surface-muted:  #fafafa;
  --surface-hover:  #fdfdfd;
  --text:           #1a1a1a;
  --text-muted:     #888;
  --text-faint:     #bbb;
  --border:         #eee;
  --border-subtle:  #f0f0f0;
  --border-focus:   #1a1a1a;
  --accent:         hsl(275, 38%, 52%);
  --accent-hover:   hsl(275, 46%, 62%);

  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1.25rem;
  --space-lg:  1.75rem;
  --space-xl:  3.5rem;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);

  --dur-fast: 0.2s;
  --dur-base: 0.3s;
  --card-grad-opacity: 0.44;
}

body.dark-mode {
  --bg:             #111;
  --surface:        #1a1a1a;
  --surface-muted:  #161616;
  --surface-hover:  #202020;
  --text:           #e0e0e0;
  --text-muted:     #999;
  --text-faint:     #555;
  --border:         #333;
  --border-subtle:  #2a2a2a;
  --border-focus:   #e0e0e0;
  color: #e0e0e0 !important;
  --card-grad-opacity: 0.22;
}


/* ============================================================
   Base
   ============================================================ */
html {
  scroll-behavior: smooth;
  background: var(--bg) !important;
}

html.dark-mode {
  background: #111 !important;
}

body {
  background: transparent !important;
}

body::after {
  content: '';
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 40% 40% at 22% 28%, hsla(275, 40%, 42%, 0.30), transparent 60%),
    radial-gradient(ellipse 35% 35% at 78% 68%, hsla(290, 36%, 38%, 0.22), transparent 60%),
    radial-gradient(ellipse 30% 30% at 55% 85%, hsla(265, 38%, 40%, 0.20), transparent 60%);
  animation: bgFlow 30s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

html.dark-mode body::after {
  background:
    radial-gradient(ellipse 40% 40% at 22% 28%, hsla(275, 36%, 32%, 0.20), transparent 60%),
    radial-gradient(ellipse 35% 35% at 78% 68%, hsla(290, 30%, 28%, 0.14), transparent 60%),
    radial-gradient(ellipse 30% 30% at 55% 85%, hsla(265, 32%, 30%, 0.12), transparent 60%);
}

@keyframes bgFlow {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(16%, -10%) scale(1.04); }
  100% { transform: translate(26%, -20%) scale(1); }
}

body::before {
  content: '';
  position: fixed;
  inset: -20px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  animation: grainDrift 18s ease-in-out infinite alternate;
}

@keyframes grainDrift {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-12px, 8px); }
  100% { transform: translate(6px, -10px); }
}

@keyframes breatheA {
  0%   { transform: scale(1) translate(0, 0);        opacity: 0.5; }
  100% { transform: scale(1.15) translate(5%, -5%);  opacity: 1; }
}

@keyframes breatheB {
  0%   { transform: scale(1) translate(0, 0);        opacity: 0.6; }
  100% { transform: scale(1.12) translate(-5%, 5%);  opacity: 1; }
}


/* ============================================================
   Landing grid
   ============================================================ */
.landing-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.landing-grid > p {
  display: none;
}

.landing-card {
  background: var(--surface);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.landing-card.muted {
  background: var(--surface-muted);
}

.landing-card:has(a) {
  padding: 0;
  transition:
    transform var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-smooth);
}

.landing-card:has(a):hover {
  transform: translateY(-5px);
  box-shadow:
    inset 0 0 0 1.5px #c8c8c8,
    0 2px 4px rgba(0,0,0,0.04),
    0 8px 16px rgba(0,0,0,0.06),
    0 20px 40px rgba(0,0,0,0.07);
  background: var(--surface-hover);
}

.landing-card:has(a):active {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1.5px #c8c8c8,
    0 2px 4px rgba(0,0,0,0.05),
    0 4px 8px rgba(0,0,0,0.06);
}

.landing-card a {
  display: block;
  padding: var(--space-lg);
  height: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: var(--text);
  position: relative;
  z-index: 2;
}

.landing-card a:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: -2px;
}

.landing-num {
  font-family: 'DM Mono', monospace !important;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  transition: color var(--dur-fast) ease;
}

.landing-title {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: var(--space-xs);
  color: var(--text);
  transition: color var(--dur-fast) ease;
}

.landing-title.muted { color: var(--text-faint); }

.landing-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.landing-desc.muted { color: var(--border); }

.landing-arrow {
  font-family: 'DM Mono', monospace !important;
  font-size: 12px;
  color: var(--accent);
  margin-top: var(--md, 1.25rem);
  transition: color var(--dur-fast) ease;
}

.landing-card:has(a):hover .landing-num  { color: var(--accent-hover); }
.landing-card:has(a):hover .landing-title { color: var(--text); }
.landing-card:has(a):hover .landing-arrow { color: var(--accent-hover); }

body.dark-mode .landing-card:has(a):hover {
  box-shadow:
    inset 0 0 0 1.5px #444,
    0 2px 4px rgba(0,0,0,0.15),
    0 8px 16px rgba(0,0,0,0.2),
    0 20px 40px rgba(0,0,0,0.25);
}

body.dark-mode .landing-card:has(a):active {
  box-shadow:
    inset 0 0 0 1.5px #444,
    0 2px 4px rgba(0,0,0,0.15),
    0 4px 8px rgba(0,0,0,0.18);
}

body.dark-mode .landing-card:has(a):hover .landing-num   { color: #8a62a8; }
body.dark-mode .landing-card:has(a):hover .landing-title  { color: #fff; }
body.dark-mode .landing-card:has(a):hover .landing-arrow  { color: #8a62a8; }


/* ============================================================
   Landing card — per-card gradient (::before)
   ============================================================ */
.landing-card:has(a)::before {
  content: '';
  position: absolute;
  inset: -30%;
  pointer-events: none;
  z-index: 0;
  filter: none;
  transition: filter 0.4s ease;
}

/* CV — aubergine, top-left */
.landing-card:has(a):nth-child(1)::before {
  background: radial-gradient(ellipse 85% 85% at 19% 19%, hsla(275, 42%, 42%, var(--card-grad-opacity)), transparent 65%);
  animation: breatheA 6s ease-in-out infinite alternate;
}

/* Humor & Impro — warmer violet, top-right */
.landing-card:has(a):nth-child(2)::before {
  background: radial-gradient(ellipse 85% 85% at 81% 19%, hsla(300, 36%, 40%, var(--card-grad-opacity)), transparent 65%);
  animation: breatheB 7.5s ease-in-out infinite alternate;
}

/* Om — deep purple, bottom-left */
.landing-card:has(a):nth-child(3)::before {
  background: radial-gradient(ellipse 85% 85% at 19% 81%, hsla(265, 40%, 36%, var(--card-grad-opacity)), transparent 65%);
  animation: breatheA 8.5s ease-in-out infinite alternate;
}

/* Kontakt — cool violet, bottom-right */
.landing-card:has(a):nth-child(4)::before {
  background: radial-gradient(ellipse 85% 85% at 81% 81%, hsla(290, 36%, 40%, var(--card-grad-opacity)), transparent 65%);
  animation: breatheB 6.5s ease-in-out infinite alternate;
}

/* Grain overlay */
.landing-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 140px;
}

body.dark-mode .landing-card::after {
  opacity: 0.04;
}

.landing-card:has(a):hover::before {
  filter: brightness(2.0) saturate(1.3);
}

@media (prefers-reduced-motion: reduce) {
  .landing-card::before { animation: none; }
}


/* ============================================================
   Arrow animation
   ============================================================ */
.landing-card a .arrow {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-spring);
}

.landing-card:has(a):hover .arrow {
  transform: translateX(7px);
}


/* ============================================================
   Dark toggle
   ============================================================ */
.dark-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 18px;
  color: var(--text-faint);
  background: none;
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color var(--dur-fast) ease,
    color var(--dur-fast) ease,
    transform var(--dur-base) ease;
}

.dark-toggle:hover {
  color: var(--text-muted);
  border-color: var(--text-faint);
}

.dark-toggle.rotated,
body.dark-mode .dark-toggle {
  transform: rotate(180deg);
}

body.dark-mode .dark-toggle {
  color: #666;
  border-color: #333;
}


/* ============================================================
   Scroll progress bar
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--accent);
  z-index: 1000;
  transition: width 0.08s linear;
  opacity: 0.6;
}

body.dark-mode .scroll-progress {
  opacity: 0.4;
}


/* ============================================================
   Fade-in animation
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity var(--dur-base) var(--ease-smooth),
    transform var(--dur-base) var(--ease-smooth);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   CV — wrapper & header
   ============================================================ */
.cv-wrap {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  color: var(--text);
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

.cv-name {
  font-family: 'DM Mono', monospace;
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.cv-subtitle {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.cv-contact {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: #aaa;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.cv-contact a {
  color: #aaa;
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

.cv-contact a:hover { color: var(--text-muted); }

.cv-section-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2.5rem;
}

.cv-section-label.first {
  border-top: none;
  padding-top: 0;
}


/* ============================================================
   CV — production list (actor CV format)
   ============================================================ */
.cv-prod-list {
  margin-bottom: 0.5rem;
}

.cv-prod {
  display: grid;
  grid-template-columns: 52px 22px 1fr 1fr 140px;
  gap: 0 1.25rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: baseline;
}

.cv-prod:first-child {
  border-top: 1px solid var(--border-subtle);
}

.cv-prod-year {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  white-space: nowrap;
}

.cv-prod-title {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.4;
}

.cv-prod-role {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.cv-prod-theater {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  text-align: right;
  line-height: 1.4;
}


/* ============================================================
   CV — education
   ============================================================ */
.cv-edu-entry {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0 2rem;
  margin-bottom: 1.25rem;
}

.cv-edu-year {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-faint);
  padding-top: 2px;
}

.cv-edu-school {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 3px;
  color: var(--text);
}

.cv-edu-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}


/* ============================================================
   CV — footer
   ============================================================ */
.cv-footer {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: #ccc;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 3rem;
  display: flex;
  gap: 2rem;
}

.cv-footer a {
  color: #ccc;
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

.cv-footer a:hover { color: var(--text-muted); }


/* ============================================================
   CV — scroll pulse nav
   ============================================================ */
.scroll-pulse-nav {
  position: fixed;
  left: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-smooth);
}

.scroll-pulse-nav.visible {
  opacity: 1;
}

.scroll-seg {
  width: 2px;
  height: 6px;
  border-radius: 2px;
  background: var(--text-faint);
  opacity: 0.2;
  transition:
    height 0.15s var(--ease-smooth),
    opacity 0.15s ease,
    background 0.15s ease;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .scroll-pulse-nav { display: none; }
}


/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 580px) {
  .landing-grid {
    grid-template-columns: 1fr !important;
  }

  .cv-prod {
    grid-template-columns: 1fr;
    gap: 1px;
    padding: 0.85rem 0;
  }

  .cv-prod-theater {
    text-align: left;
    margin-top: 2px;
  }

  .cv-edu-entry {
    grid-template-columns: 1fr;
  }

  .cv-edu-year { margin-bottom: 0.25rem; }
}


/* ============================================================
   CV — glyph column
   ============================================================ */
.cv-prod-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.6;
}

/* Kjærast row — subtle highlight */
.cv-prod.cv-prod-featured {
  background: hsla(275, 40%, 12%, 0.35);
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 2px;
}

body.dark-mode .cv-prod.cv-prod-featured {
  background: hsla(275, 40%, 10%, 0.45);
}


/* ============================================================
   Site header (landing + subpages)
   ============================================================ */
.site-header {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.site-header-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 2px;
}

.site-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-md);
}

.site-header-location {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.site-header-photo {
  width: 90px;
  flex-shrink: 0;
  border-radius: 3px;
  border: 1px solid var(--border);
  overflow: hidden;
  align-self: stretch;
}

.site-header-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}


/* ============================================================
   Language toggle
   ============================================================ */
.lang-toggle {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-faint);
  padding: 0;
  display: flex;
  gap: 0;
  transition: color var(--dur-fast) ease;
}

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

.lang-toggle:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.lang-toggle:active { opacity: 0.7; }

.lang-toggle-no,
.lang-toggle-en {
  transition: color var(--dur-fast) ease;
}

.lang-toggle[data-active="no"] .lang-toggle-no {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-toggle[data-active="en"] .lang-toggle-en {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-toggle-sep { color: var(--text-faint); margin: 0 3px; }


/* ============================================================
   Film banner (Kjærast / aktuell produksjon)
   ============================================================ */
.film-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, hsla(275, 42%, 7%, 1) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 3px;
  padding: 0.9rem 1rem 0.9rem 0.875rem;
  margin-bottom: var(--space-lg);
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition:
    background var(--dur-fast) var(--ease-smooth),
    box-shadow var(--dur-fast) var(--ease-smooth);
}

.film-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 130% at 100% 50%, hsla(275, 40%, 38%, 0.16), transparent 65%);
  pointer-events: none;
}

.film-banner:hover {
  background: linear-gradient(135deg, hsla(275, 42%, 9%, 1) 0%, var(--bg) 100%);
  box-shadow:
    0 2px 6px rgba(0,0,0,0.06),
    0 8px 20px rgba(0,0,0,0.05);
}

.film-banner:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.film-banner:active { opacity: 0.85; }

.film-banner-poster {
  width: 38px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.film-banner-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.film-banner-info {
  flex: 1;
  position: relative;
  z-index: 1;
}

.film-banner-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.film-banner-title {
  font-family: 'DM Mono', monospace;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.film-banner-meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text-faint);
  line-height: 1.65;
}

.film-banner-arrow {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  color: var(--accent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: transform var(--dur-base) var(--ease-spring);
}

.film-banner:hover .film-banner-arrow {
  transform: translateX(5px);
}

body.dark-mode .film-banner:hover {
  box-shadow:
    0 2px 8px rgba(0,0,0,0.2),
    0 8px 24px rgba(0,0,0,0.18);
}


/* ============================================================
   Humor & Impro page
   ============================================================ */
.humor-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: var(--space-xl);
}

.humor-gallery img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-base) var(--ease-smooth);
}

.humor-gallery img:hover {
  transform: scale(1.02);
}

.bmi-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.875rem 1rem;
  text-decoration: none;
  color: var(--text);
  margin-bottom: var(--space-lg);
  transition:
    background var(--dur-fast) var(--ease-smooth),
    box-shadow var(--dur-fast) var(--ease-smooth),
    transform var(--dur-base) var(--ease-spring);
}

.bmi-card:hover {
  background: var(--surface-hover);
  box-shadow:
    0 2px 6px rgba(0,0,0,0.05),
    0 8px 20px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

.bmi-card:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.bmi-card:active {
  transform: translateY(0);
  box-shadow: none;
}

.bmi-card-label {
  flex: 1;
}

.bmi-card-title {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 2px;
}

.bmi-card-url {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

.bmi-card-arrow {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  transition: transform var(--dur-base) var(--ease-spring);
}

.bmi-card:hover .bmi-card-arrow {
  transform: translateX(5px);
}

.instagram-section {
  margin-bottom: var(--space-xl);
}

.instagram-link-card {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  margin-bottom: var(--space-md);
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.instagram-link-card:hover {
  color: var(--text);
  border-color: var(--text-faint);
}

.instagram-link-card:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

.instagram-embeds {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.instagram-embeds .instagram-media {
  margin: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
}


/* ============================================================
   Om-siden
   ============================================================ */
.about-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  max-width: 580px;
}

.about-body p { margin-bottom: 1.2rem; }


/* ============================================================
   Mobile — humor + om
   ============================================================ */
@media (max-width: 580px) {
  .site-header { gap: 1rem; }
  .site-header-photo { width: 72px; }
  .humor-gallery { grid-template-columns: 1fr; }
  .instagram-embeds { grid-template-columns: 1fr; }
}
