/* =========================================================
   Maria Cabalan — Galleri / AI-integrator
   Palett: hvit, sølv, grå.  Stemning: minimalistisk, robotisk.
   ========================================================= */

:root {
  --paper:      #fafafa;
  --paper-2:    #f2f2f0;
  --silver:     #d8d8d6;
  --silver-2:   #bfbfbd;
  --grey:       #6b6b6b;
  --grey-soft:  #9a9a98;
  --ink:        #1a1a1a;
  --ink-soft:   #2c2c2c;
  --shadow-1:   0 1px 0 rgba(20, 20, 20, 0.04);
  --shadow-2:   0 30px 80px -40px rgba(50, 50, 50, 0.25);

  --f-display:  "Instrument Serif", "Times New Roman", serif;
  --f-sans:     "Inter", system-ui, -apple-system, sans-serif;
  --f-mono:     "JetBrains Mono", ui-monospace, monospace;

  --pad-x:      clamp(20px, 3.5vw, 56px);
  --pad-y:      clamp(28px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: #fafafa;
}

/* Sculptural background scene */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
  overflow: hidden;
}
.scene__svg {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: center center;
  will-change: transform;
}
.page-about .scene { opacity: 0.5; }

/* Subtle film grain — gives the gallery print feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  z-index: 1;
}

/* Gallery corner registration marks */
.corner {
  position: fixed;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--silver-2);
  stroke-width: 1;
  z-index: 5;
  opacity: 0;
  animation: cornerIn 1.2s 0.2s ease-out forwards;
}
.corner--tl { top: 22px; left: 22px; }
.corner--tr { top: 22px; right: 22px; }
.corner--bl { bottom: 22px; left: 22px; }
.corner--br { bottom: 22px; right: 22px; }

@keyframes cornerIn {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

/* =========================================================
   Topbar
   ========================================================= */
.topbar {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--pad-y) var(--pad-x) 0;
  max-width: min(2080px, 94vw);
  margin: 0 auto;
  width: 100%;
}

.topbar__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fafafa;
  background: #6e8d6c;
  border: 1px solid #6e8d6c;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.topbar__back:hover {
  background: #4f6e4d;
  border-color: #4f6e4d;
}
.topbar__back svg {
  width: 13px; height: 13px;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--grey);
  text-transform: uppercase;
}
.mark__dot {
  width: 7px;
  height: 7px;
  background: var(--ink);
  border-radius: 50%;
  position: relative;
}
.mark__dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--silver-2);
  border-radius: 50%;
  animation: pulseRing 3s ease-out infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(0.6); opacity: 0.8; }
  80%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* "Om meg" — subtilt nochalant moderne knapp */
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 22px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--silver);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.45s cubic-bezier(.2, .7, .2, 1);
  box-shadow: var(--shadow-1);
}
.nav-link:hover {
  background: #fff;
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.18);
}
.nav-link__arrow {
  width: 18px; height: 18px;
  display: inline-flex;
  transition: transform 0.4s cubic-bezier(.2, .7, .2, 1);
}
.nav-link__arrow svg {
  width: 100%; height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-link:hover .nav-link__arrow { transform: translateX(4px); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  z-index: 3;
  padding: clamp(72px, 9vh, 120px) var(--pad-x) 80px;
  max-width: min(2080px, 94vw);
  margin: 0 auto;
}

.hero__clear { clear: both; }
.hero .hook {
  clear: right;
  margin: 24px 0 36px;
  max-width: none;
}
.hero .title { max-width: none; }

/* Compact profile-card — sits next to title's lower lines, understated */
.profile-card--compact {
  float: right;
  width: clamp(280px, 23vw, 330px);
  margin: 20px 0 20px clamp(20px, 3vw, 40px);
  shape-outside: margin-box;
  position: relative;
  z-index: 3;
  opacity: 0;
  animation: fadeUp 1.2s 1.7s cubic-bezier(.2, .7, .2, 1) forwards;
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.profile-card--compact .profile-card__inner {
  position: relative;
  z-index: 2;
  background: #ecebe7;
  border: 1px solid #d6d4cf;
  border-radius: 3px;
  padding: 14px 18px 12px;
  box-shadow: 0 16px 40px -22px rgba(60, 50, 40, 0.25);
}

/* Abstract rotated frames behind the card */
.pc-frame {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 2px;
  transition: transform 1.4s cubic-bezier(.2, .7, .2, 1);
}

/* 1 — Large outlined frame, tilted left */
.pc-frame--1 {
  top: -22px;
  left: -26px;
  right: 14px;
  bottom: 26px;
  border: 1px solid #c8c5c0;
  transform: rotate(-4deg);
}

/* 2 — Outlined frame tilted right, opposite offset */
.pc-frame--2 {
  top: 28px;
  left: 16px;
  right: -28px;
  bottom: -22px;
  border: 1px solid #d8d5d0;
  transform: rotate(3deg);
}

/* 3 — Soft filled silver square, tilted */
.pc-frame--3 {
  top: -14px;
  left: 24%;
  width: 46%;
  height: 38%;
  background: linear-gradient(135deg, #e8e6e1 0%, #d8d5cf 100%);
  transform: rotate(-7deg);
  opacity: 0.7;
}

/* 3 — Stacked card behind, visible peeking out */
.pc-frame--3 {
  top: 10px;
  left: 10px;
  right: -10px;
  bottom: -10px;
  width: auto;
  height: auto;
  background: linear-gradient(160deg, #e8e6e1 0%, #d6d4ce 100%);
  border: 1px solid #ccc9c3;
  transform: rotate(-1.5deg);
  opacity: 1;
  border-radius: 3px;
  pointer-events: none;
  z-index: 0;
}

/* 4 — Small ink accent square, sharp tilt, bottom-right */
.pc-frame--4 {
  bottom: -18px;
  right: -10px;
  width: 38%;
  height: 28%;
  border: 1px solid var(--ink);
  transform: rotate(8deg);
}

/* + button — direct child of aside, sits in top-right corner of peeking frame */
.pc-stack-plus {
  position: absolute;
  top: 18px;
  right: -4px;
  width: 26px;
  height: 26px;
  background: var(--ink);
  color: #f0efeb;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1);
  z-index: 5;
}
.pc-stack-plus:hover {
  transform: scale(1.15) rotate(90deg);
}

/* Tiny art marks */
.pc-mark {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  font-family: var(--f-mono);
  color: var(--ink);
}
.pc-mark--num {
  top: -28px;
  left: -10px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 28px;
  color: var(--grey);
}

/* Subtle hover — frames drift slightly on card hover */
.profile-card--compact:hover .pc-frame--1 { transform: rotate(-5deg) translate(-2px, -2px); }
.profile-card--compact:hover .pc-frame--2 { transform: rotate(4deg) translate(2px, 2px); }
.profile-card--compact:hover .pc-frame--4 { transform: rotate(10deg) translate(2px, 2px); }

/* Expand card — pops over the profile card */
.pc-expand-card {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: var(--ink);
  border-radius: 4px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #f0efeb;
  opacity: 0;
  transform: scale(0.88) translateY(18px);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(.2,.7,.2,1), transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.pc-expand-card.is-open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}
.pc-expand-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(240,239,235,0.45);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  transition: color 0.2s;
}
.pc-expand-close:hover { color: #f0efeb; }
.pc-expand-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,239,235,0.45);
}
.pc-expand-title {
  font-family: var(--f-display);
  font-size: clamp(36px, 3.2vw, 52px);
  font-weight: 400;
  line-height: 1;
  margin: 0;
  color: #f0efeb;
}
.pc-expand-body {
  font-family: var(--f-sans);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(240,239,235,0.7);
  margin: 0;
}
.pc-expand-quote {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(240,239,235,0.5);
  margin: 0 0 16px;
}
.pc-expand-quote i {
  font-style: normal;
  color: rgba(240,239,235,0.25);
}
.pc-expand-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pc-expand-list li {
  font-family: var(--f-sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(240,239,235,0.7);
  padding-left: 16px;
  position: relative;
}
.pc-expand-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: rgba(240,239,235,0.3);
}

/* T-Rex easter-egg game inside expand card */
.trex-game {
  margin: 8px auto 0;
  width: 100%;
  max-width: 280px;
  cursor: pointer;
  user-select: none;
  outline: none;
}
.trex-game__canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #15151312;
  border: 1px solid rgba(240,239,235,0.08);
  border-radius: 3px;
  image-rendering: pixelated;
}
.trex-game__hint {
  margin: 8px 0 0;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240,239,235,0.35);
  text-align: center;
}
.trex-game__hint kbd {
  font-family: inherit;
  padding: 1px 5px;
  border: 1px solid rgba(240,239,235,0.2);
  border-radius: 2px;
  color: rgba(240,239,235,0.6);
}

.pc-head-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.pc-avatar {
  position: relative;
  flex: none;
  width: 150px;
  height: 180px;
  margin: 0;
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(135deg, #e0ddd7 0%, #f4f3f0 60%, #fff 100%);
  border: 1px solid #c9c6c0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pc-avatar__initial {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 48px;
  color: var(--ink);
  user-select: none;
  z-index: 0;
}
.pc-avatar img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 28%;
  transform: scale(1.35);
  transform-origin: 60% 28%;
  display: block;
}
.pc-avatar img:not(.is-loaded) {
  display: none;
}
.pc-id { min-width: 0; }
.pc-role {
  display: block;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 6px;
}
.pc-name {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.pc-name em {
  font-style: italic;
  color: var(--grey);
}
.pc-description {
  margin: 10px 0 0;
  font-family: var(--f-sans);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
}
.pc-tagline {
  margin: 8px 0 0;
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}
.pc-tagline em {
  font-style: italic;
  color: var(--grey);
}

.pc-quote {
  margin: 0 0 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(60, 50, 40, 0.12);
  border-bottom: 1px solid rgba(60, 50, 40, 0.12);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-soft);
  text-align: center;
}
.pc-quote i {
  font-family: var(--f-display);
  font-size: 17px;
  color: var(--silver-2);
  font-style: normal;
  margin: 0 4px;
}

.pc-meta {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 5px 10px;
  margin: 0 0 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.pc-meta dt {
  margin: 0;
  color: var(--silver-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.pc-meta dd {
  margin: 0;
  color: var(--ink-soft);
}
.pc-pulse {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #6e8d6c;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
  animation: pulseDot 2.4s ease-in-out infinite;
}

.pc-cv {
  display: flex;
  flex-direction: column;
  padding: 6px 0 2px;
  border-top: 1px solid rgba(60, 50, 40, 0.12);
  margin-bottom: 0;
}
.pc-cv__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 14px;
  align-items: baseline;
  padding: 5px 0;
}
.pc-cv__item + .pc-cv__item {
  border-top: 1px solid rgba(60, 50, 40, 0.06);
}
.pc-cv__item:first-child .pc-cv__label {
  position: relative;
}
.pc-cv__item:first-child .pc-cv__label::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #6e8d6c;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 5px;
  position: relative;
  top: -1px;
}
.pc-cv__label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  text-align: right;
  line-height: 1.4;
}
.pc-cv__value {
  font-family: var(--f-sans);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 400;
}
.pc-cv__value em {
  font-style: normal;
  display: block;
  color: var(--grey);
  font-size: 10.5px;
  margin-top: 1px;
  line-height: 1.55;
}
.pc-cv__sep {
  display: block;
  width: 24px;
  height: 1px;
  background: rgba(60, 50, 40, 0.18);
  margin: 7px 0;
}

.pc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 10px;
}

.pc-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--silver);
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  transition: all 0.3s cubic-bezier(.2,.7,.2,1);
}
.pc-linkedin svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  stroke: none;
  flex: none;
}
.pc-linkedin:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fafafa;
}

.pc-kontakt {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--silver);
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  transition: all 0.3s cubic-bezier(.2,.7,.2,1);
}
.pc-kontakt:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fafafa;
}

.pc-signature {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid rgba(60, 50, 40, 0.12);
}
.pc-sig-label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-soft);
}
.pc-sig-mark {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}

@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr clamp(340px, 30vw, 420px);
    column-gap: clamp(24px, 3vw, 44px);
    align-items: start;
  }
  .profile-card--compact {
    float: none;
    width: auto;
    margin: 0;
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: start;
  }
  .profile-card--compact .profile-card__inner {
    display: grid;
    grid-template-columns: 150px 1fr;
    grid-template-areas:
      "avatar name"
      "avatar meta"
      "description description"
      "cv cv"
      "actions actions"
      "signature signature";
    column-gap: 14px;
    row-gap: 4px;
    align-items: start;
  }
  .profile-card--compact .pc-avatar {
    grid-area: avatar;
    align-self: start;
  }
  .profile-card--compact .pc-id {
    grid-area: name;
    align-self: start;
    margin-top: 2px;
  }
  .profile-card--compact .pc-meta {
    grid-area: meta;
    margin: 4px 0 0;
    align-self: start;
  }
  .profile-card--compact .pc-description {
    grid-area: description;
    margin: 8px 0 0;
  }
  .profile-card--compact .pc-cv {
    grid-area: cv;
    padding-top: 6px;
    margin-bottom: 0;
  }
  .profile-card--compact .pc-actions {
    grid-area: actions;
    margin: 6px 0 0;
    justify-content: flex-start;
  }
  .profile-card--compact .pc-linkedin {
    margin: 0;
  }
  .profile-card--compact .pc-signature {
    grid-area: signature;
    padding-top: 8px;
  }
  .hero .eyebrow,
  .hero .eyebrow--sub,
  .hero .title,
  .hero .hook,
  .hero .hero__clear { grid-column: 1; }
  .hero .more-link {
    grid-column: 2;
    justify-self: start;
  }
  .hero .hook { clear: none; }
  .hero .hero__clear { display: none; }
  .hero .site-intro {
    grid-column: 1;
    grid-row: 1 / span 4;
    align-self: start;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0;
    padding-top: 72px;
    max-width: none;
    opacity: 1;
    transform: none;
  }
  .hero .site-intro .site-intro__chips {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(60, 50, 40, 0.12);
  }
  .hero .projects { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .profile-card--compact {
    float: none;
    width: 100%;
    max-width: 320px;
    margin: 24px 0 36px;
  }
}

/* =========================================================
   Visitkort — forsidekort med koreografert entry
   ========================================================= */
.visitkort {
  position: relative;
  z-index: 3;
  width: clamp(320px, 38vw, 440px);
  margin: 18px 0 30px clamp(18px, 3vw, 36px);
  float: right;
  shape-outside: margin-box;
  perspective: 1200px;
}

.visitkort__card {
  display: block;
  position: relative;
  z-index: 2;
  border-radius: 6px;
  overflow: hidden;
  background: #ecebe7;
  box-shadow:
    0 1px 2px rgba(60, 50, 40, 0.06),
    0 22px 46px -28px rgba(60, 50, 40, 0.32);
  transform: translateY(0) scale(1);
  transition: box-shadow 0.55s cubic-bezier(.2, .7, .2, 1),
              transform 0.55s cubic-bezier(.2, .7, .2, 1);
  opacity: 0;
  animation: visitkortRise 1.4s 0.75s cubic-bezier(.2, .7, .2, 1) forwards;
  will-change: transform;
}
.visitkort:hover .visitkort__card {
  box-shadow:
    0 2px 4px rgba(60, 50, 40, 0.08),
    0 38px 68px -28px rgba(60, 50, 40, 0.42);
  transform: translateY(-3px) scale(1.006);
}

/* === Card inner content === */
.visitkort__inner {
  position: relative;
  z-index: 2;
  padding: 24px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.visitkort__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.visitkort__eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--grey);
}
.visitkort__name {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: var(--ink);
}
.visitkort__name em {
  font-style: italic;
  color: #6e8d6c;
}

.visitkort__meta {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: baseline;
  padding-top: 6px;
  border-top: 1px solid rgba(60, 50, 40, 0.10);
}
.visitkort__meta dt {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}
.visitkort__meta dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}

.visitkort__skills {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(60, 50, 40, 0.10);
}
.visitkort__skills li {
  position: relative;
  padding-left: 14px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink);
}
.visitkort__skills li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1a1a1a;
}

.visitkort__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(60, 50, 40, 0.10);
}
.visitkort__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.4s ease;
}
.visitkort__cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.45s cubic-bezier(.2, .7, .2, 1);
}
.visitkort__cta:hover { color: #6e8d6c; }
.visitkort__cta:hover svg { transform: translateX(4px); }
.visitkort__cta:focus-visible {
  outline: 2px solid #6e8d6c;
  outline-offset: 4px;
  border-radius: 2px;
}

.visitkort__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fafafa;
  text-decoration: none;
  transition:
    background 0.35s ease,
    transform 0.35s cubic-bezier(.2, .7, .2, 1);
}
.visitkort__linkedin svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.visitkort__linkedin:hover {
  background: #0a66c2;
  transform: translateY(-2px);
}
.visitkort__linkedin:focus-visible {
  outline: 2px solid #6e8d6c;
  outline-offset: 3px;
}

/* Stacked frames behind — sets up "depth" without being noisy */
.visitkort__frame {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: rotate(0deg) translate(0, 0);
}
.visitkort__frame--1 {
  background: #e6e3dd;
  border: 1px solid rgba(60, 50, 40, 0.10);
  animation: visitkortFrame1 1.2s 1.15s cubic-bezier(.2, .7, .2, 1) forwards;
}
.visitkort__frame--2 {
  background: #efedea;
  border: 1px solid rgba(60, 50, 40, 0.08);
  animation: visitkortFrame2 1.2s 1.30s cubic-bezier(.2, .7, .2, 1) forwards;
}

/* Warm earthy halo behind */
.visitkort__halo {
  position: absolute;
  inset: -22% -18%;
  background: radial-gradient(ellipse at center,
              rgba(110, 141, 108, 0.16) 0%,
              rgba(196, 168, 90, 0.10) 38%,
              transparent 72%);
  filter: blur(22px);
  z-index: 0;
  opacity: 0;
  animation: visitkortHalo 1.8s 0.35s cubic-bezier(.2, .7, .2, 1) forwards;
  pointer-events: none;
}

/* § 01 mark — anchors the card editorially */
.visitkort__mark {
  position: absolute;
  top: -24px;
  left: 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  opacity: 0;
  z-index: 4;
  animation: visitkortMarkIn 1s 1.75s cubic-bezier(.2, .7, .2, 1) forwards;
}

/* One-shot light sweep across the card */
.visitkort__shine {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(105deg,
              rgba(255, 255, 255, 0) 0%,
              rgba(255, 255, 255, 0) 30%,
              rgba(255, 255, 255, 0.55) 50%,
              rgba(255, 255, 255, 0) 70%,
              rgba(255, 255, 255, 0) 100%);
  transform: skewX(-12deg);
  pointer-events: none;
  opacity: 0;
  animation: visitkortShine 1.9s 1.65s cubic-bezier(.4, 0, .2, 1) forwards;
  z-index: 3;
}

@keyframes visitkortRise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes visitkortFrame1 {
  from { opacity: 0; transform: rotate(0deg) translate(0, 0); }
  to   { opacity: 1; transform: rotate(-2.4deg) translate(-7px, 7px); }
}

@keyframes visitkortFrame2 {
  from { opacity: 0; transform: rotate(0deg) translate(0, 0); }
  to   { opacity: 1; transform: rotate(1.8deg) translate(6px, 10px); }
}

@keyframes visitkortHalo {
  from { opacity: 0; transform: scale(0.86); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes visitkortShine {
  from { left: -40%; opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  to   { left: 132%; opacity: 0; }
}

@keyframes visitkortMarkIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Desktop grid placement */
@media (min-width: 900px) {
  .visitkort {
    float: none;
    width: auto;
    margin: 0;
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
  }
}

@media (max-width: 760px) {
  .visitkort {
    float: none;
    width: 100%;
    max-width: 360px;
    margin: 32px auto 40px;
  }
  .visitkort__mark { left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .visitkort__card,
  .visitkort__frame--1,
  .visitkort__frame--2,
  .visitkort__halo,
  .visitkort__mark {
    animation: none;
    opacity: 1;
    filter: none;
  }
  .visitkort__shine { display: none; }
  .visitkort__frame--1 { transform: rotate(-2.4deg) translate(-7px, 7px); }
  .visitkort__frame--2 { transform: rotate(1.8deg) translate(6px, 10px); }
  .visitkort__card { transform: none; }
}

/* "Mer om meg" — editorial inline link under the hook */
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  opacity: 0;
  animation: fadeUp 1.2s 1.9s cubic-bezier(.2, .7, .2, 1) forwards;
}
.more-link__label {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1;
  position: relative;
  padding-bottom: 4px;
}
.more-link__label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--silver-2);
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 0.5s cubic-bezier(.7, 0, .2, 1);
}
.more-link:hover .more-link__label::after {
  transform-origin: left;
  background: var(--ink);
}
.more-link__track {
  position: relative;
  width: 56px;
  height: 1px;
  background: var(--silver-2);
  display: inline-flex;
  align-items: center;
  transition: width 0.45s cubic-bezier(.2, .7, .2, 1), background 0.3s ease;
}
.more-link__track svg {
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.45s cubic-bezier(.2, .7, .2, 1);
}
.more-link:hover .more-link__track {
  width: 78px;
  background: var(--ink);
}
.more-link:hover .more-link__track svg {
  transform: translate(6px, -50%);
}

/* =========================================================
   Profile card — abstract nested-square frame
   ========================================================= */
.profile-card {
  position: relative;
  margin-top: 22px;
  opacity: 0;
  animation: fadeUp 1.2s 0.4s cubic-bezier(.2, .7, .2, 1) forwards;
}

/* Outer offset frame — creates the "rectangle inside rectangle, not flush" feel */
.profile-card__frame {
  position: absolute;
  top: 18px;
  left: 18px;
  right: -18px;
  bottom: -18px;
  border: 1px solid var(--silver-2);
  border-radius: 4px;
  pointer-events: none;
  z-index: 0;
}
/* Tiny architectural corner accents */
.profile-card__corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--ink);
  pointer-events: none;
  z-index: 2;
}
.profile-card__corner--tr {
  top: -5px;
  right: -23px;
  border-left: none;
  border-bottom: none;
}
.profile-card__corner--bl {
  bottom: -23px;
  left: -5px;
  border-right: none;
  border-top: none;
}

.profile-card__inner {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--silver);
  border-radius: 4px;
  padding: 22px 22px 18px;
  box-shadow: 0 14px 40px -22px rgba(0, 0, 0, 0.18);
}

/* =========================================================
   Profile card — ART variant
   Soft warm-grey palette tying into sculptural background,
   with editorial / modern-art decorations.
   ========================================================= */
.profile-card--art {
  margin-top: 28px;
}
.profile-card--art .profile-card__frame { display: none; }
.profile-card--art .profile-card__corner { display: none; }

.profile-card--art .profile-card__inner {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 30% 10%, #fbfaf8 0%, #ecebe7 55%, #d9d6d0 100%);
  border: 1px solid #c9c6c0;
  border-radius: 3px;
  padding: 0 0 18px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 28px 60px -32px rgba(60, 50, 40, 0.32);
}

/* — Portrait, square, compact — */
.profile-card__portrait {
  position: relative;
  margin: 0 0 18px;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #1a1a1a;
  border-bottom: 1px solid #c9c6c0;
}
.profile-card__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.06) contrast(1.02);
}
.pc-portrait-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 1px;
}

/* — Body — */
.profile-card__body { padding: 0 20px; }

.profile-card__role {
  display: block;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 10px;
}

.profile-card__name {
  margin: 0 0 16px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.04;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.profile-card__name em {
  font-style: italic;
  color: var(--grey);
}

.profile-card__quote {
  margin: 0 0 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(60, 50, 40, 0.12);
  border-bottom: 1px solid rgba(60, 50, 40, 0.12);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
  text-align: center;
}
.profile-card__quote i {
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--silver-2);
  font-style: normal;
  margin: 0 4px;
}

.profile-card__meta {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 6px 12px;
  margin: 0 0 16px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
}
.profile-card__meta dt {
  margin: 0;
  color: var(--silver-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.profile-card__meta dd {
  margin: 0;
  color: var(--ink-soft);
}
.profile-card__pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #6e8d6c;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  animation: pulseDot 2.4s ease-in-out infinite;
}

.profile-card__signature {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0 0;
  margin-top: 4px;
  border-top: 1px solid rgba(60, 50, 40, 0.12);
}
.profile-card__sig-label {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-soft);
}
.profile-card__sig-mark {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
}

/* =========================================================
   Editorial decorations around the card
   ========================================================= */
.pc-numeral {
  position: absolute;
  top: -42px;
  right: -6px;
  z-index: 2;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 70px;
  line-height: 0.85;
  color: var(--ink);
  pointer-events: none;
  user-select: none;
}
.pc-numeral i {
  display: block;
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.6em;
  color: var(--grey-soft);
  margin-top: 2px;
  text-align: right;
  padding-right: 6px;
}

.pc-tick {
  position: absolute;
  z-index: 2;
  font-family: var(--f-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--silver-2);
  pointer-events: none;
  user-select: none;
}
.pc-tick--plus {
  top: -8px;
  left: 26px;
  color: var(--ink);
}
.pc-tick--cross {
  bottom: -22px;
  left: 70px;
  font-size: 16px;
  color: var(--grey-soft);
}

/* L-shaped sketch corner — bottom right offset */
.pc-corner-mark {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 56px;
  height: 56px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  pointer-events: none;
  z-index: 1;
}

/* Curve / arch peeking from behind, ties to scene */
.pc-arc {
  position: absolute;
  top: 18%;
  right: -52px;
  width: 90px;
  height: 60%;
  z-index: 0;
  pointer-events: none;
}
.pc-arc svg { width: 100%; height: 100%; display: block; }

/* Thin horizontal line crossing top-left, like a pencil mark */
.pc-line {
  position: absolute;
  top: 18px;
  left: -34px;
  width: 60px;
  height: 1px;
  background: var(--ink);
  z-index: 2;
  pointer-events: none;
}
.pc-line::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -2px;
  width: 5px;
  height: 5px;
  background: var(--ink);
  border-radius: 50%;
}

.profile-card__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

/* Photo placeholder — abstract gridded square */
.profile-card__photo {
  position: relative;
  width: 76px;
  height: 76px;
  flex: none;
  border-radius: 3px;
  overflow: hidden;
  background: linear-gradient(135deg, #ededeb 0%, #fafafa 55%, #fff 100%);
  border: 1px solid var(--silver);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-card__photo-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 9px 9px;
}
.profile-card__photo-mono {
  position: relative;
  z-index: 1;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.profile-card__photo::after {
  /* small registration tick */
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.profile-card__id {
  flex: 1;
  min-width: 0;
}
.profile-card__role {
  display: block;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 8px;
}
.profile-card__name {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* Personalia rows */
.profile-card__meta {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 6px 12px;
  margin: 0 0 18px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
}
.profile-card__meta dt {
  margin: 0;
  color: var(--silver-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.profile-card__meta dd {
  margin: 0;
  color: var(--ink-soft);
}
.profile-card__pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--ink);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  animation: pulseDot 2.4s ease-in-out infinite;
}

.profile-card__rule {
  height: 1px;
  background: var(--silver);
  margin: 0 -22px 18px;
  position: relative;
}
.profile-card__rule::before,
.profile-card__rule::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--silver-2);
  background: var(--paper);
}
.profile-card__rule::before { left: 16px; }
.profile-card__rule::after  { right: 16px; }

.profile-card__kicker {
  display: block;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-soft);
  margin-bottom: 10px;
}

.profile-card__cv ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.profile-card__cv li {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  padding: 7px 0;
  border-bottom: 1px dashed var(--silver);
  position: relative;
  padding-left: 14px;
}
.profile-card__cv li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 1px;
  background: var(--grey-soft);
}
.profile-card__cv li:last-child { border-bottom: none; }

.profile-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 12px 0 2px;
  border-top: 1px solid var(--silver);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s ease;
}
.profile-card__link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s cubic-bezier(.2, .7, .2, 1);
}
.profile-card__link:hover svg { transform: translateX(4px); }

@media (max-width: 900px) {
  .hero__top {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .profile-card { max-width: 360px; }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 36px;
  opacity: 0;
  animation: fadeUp 1s 0.15s cubic-bezier(.2, .7, .2, 1) forwards;
}
.eyebrow__line {
  width: 56px;
  height: 1px;
  background: var(--silver-2);
}
.eyebrow--sub {
  margin-top: -30px;
  margin-bottom: 40px;
  color: var(--grey-soft);
  animation-delay: 0.25s;
}
.eyebrow--sub .eyebrow__text { font-size: 10.5px; letter-spacing: 0.16em; text-transform: none; }

/* The title — quietly confident, breathing room */
.title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 32px;
  max-width: 14ch;
}

.title__line {
  display: block;
  overflow: hidden;
  padding: 0.04em 0;
}

.title__word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.title__word + .title__word { margin-left: 0.28em; }

.title__inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  filter: blur(8px);
  will-change: transform, opacity, filter;
}
.title__inner--italic {
  font-style: italic;
  color: var(--grey);
}

.title.is-ready .title__inner {
  animation: lineReveal 1.4s cubic-bezier(.2, .75, .15, 1) forwards;
}
.title.is-ready .title__line:nth-child(1) .title__inner { animation-delay: 0.30s; }
.title.is-ready .title__line:nth-child(2) .title__inner { animation-delay: 0.55s; }
.title.is-ready .title__line:nth-child(3) .title__inner { animation-delay: 0.80s; }
.title.is-ready .title__line:nth-child(4) .title__inner { animation-delay: 1.05s; }

@keyframes lineReveal {
  0%   { transform: translateY(110%); opacity: 0; filter: blur(8px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { transform: translateY(0); opacity: 1; filter: blur(0); }
}

/* Hook */
.hook {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 110px;
  font-weight: 400;
  opacity: 0;
  animation: fadeUp 1.2s 1.5s cubic-bezier(.2, .7, .2, 1) forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Divider grid — abstrakte, robot-futuristiske skiller
   ========================================================= */
.divider-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
  opacity: 0;
  animation: fadeUp 1.2s 1.9s cubic-bezier(.2, .7, .2, 1) forwards;
}

.dg-row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.dg-row--end .dg-line { background: linear-gradient(90deg, transparent, var(--silver-2), transparent); }
.dg-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--silver-2), transparent);
}
.dg-tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-soft);
  white-space: nowrap;
}
.dg-tag--mono { color: var(--silver-2); }

/* Shape grid */
.dg-shapes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--silver);
  border: 1px solid var(--silver);
}
.dg-cell {
  position: relative;
  background: var(--paper);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18%;
  transition: background 0.5s ease;
}
.dg-cell:hover { background: #fff; }
.dg-cell:hover .shape { transform: rotate(8deg); }

.shape {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--grey-soft);
  stroke-width: 1;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
  filter: drop-shadow(0 8px 14px rgba(60, 60, 60, 0.10));
}
.shape--filled {
  stroke: none;
}
.shape .dot {
  fill: var(--ink);
  stroke: none;
}
.dg-cell:hover .shape { transform: translateY(-3px) rotate(0deg) !important; }
.dg-cap {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--silver-2);
}

/* Bars */
.dg-bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.dg-bars span {
  display: block;
  height: 2px;
  width: var(--w);
  background: var(--ink);
  position: relative;
  transform-origin: left;
  animation: barIn 1.4s cubic-bezier(.2, .7, .2, 1) backwards;
}
.dg-bars span:nth-child(1) { animation-delay: 2.0s; }
.dg-bars span:nth-child(2) { animation-delay: 2.1s; }
.dg-bars span:nth-child(3) { animation-delay: 2.2s; opacity: 0.55; }
.dg-bars span:nth-child(4) { animation-delay: 2.3s; opacity: 0.4; }
.dg-bars span:nth-child(5) { animation-delay: 2.4s; opacity: 0.25; }
@keyframes barIn {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* =========================================================
   Site intro — beskriver hva siden er om
   ========================================================= */
.site-intro {
  position: relative;
  z-index: 3;
  margin: clamp(60px, 9vw, 120px) 0 clamp(40px, 6vw, 80px);
  max-width: 70ch;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s cubic-bezier(.2, .7, .2, 1),
              transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
.site-intro.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-intro__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}
.site-intro__kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
}
.site-intro__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--silver-2), transparent);
}

.site-intro__lead {
  margin: 0 0 18px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.site-intro__lead em {
  font-style: italic;
  color: #6e8d6c;
}

.site-intro__body {
  margin: 0 0 30px;
  font-size: clamp(14px, 1vw, 15.5px);
  line-height: 1.75;
  color: var(--ink-soft);
}

.site-intro__showcase {
  margin-top: 20px;
  margin-bottom: 32px;
}
.site-intro__showcase-title {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s ease;
}
.site-intro__showcase-title em {
  font-style: italic;
  color: var(--grey);
  transition: color 0.3s ease;
}
.site-intro__showcase-title svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
}
.site-intro__showcase-title:hover svg {
  transform: translateX(4px);
}
.site-intro__showcase-title:hover em {
  color: var(--ink);
}
.site-intro__showcase .projects__hub-nav {
  margin-top: 8px;
}

.site-intro__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 28px;
}
.site-intro__chips li {
  position: relative;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
  cursor: default;
  transition: color 0.3s ease;
}
.site-intro__chips li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #6e8d6c;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(.7, 0, .2, 1);
}
.site-intro__chips li:hover,
.site-intro__chips li:has(.chip-link:active) { color: #6e8d6c; }
.site-intro__chips li:hover::after,
.site-intro__chips li:has(.chip-link:active)::after {
  transform: scaleX(1);
}
.chip-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
.chip-link:hover,
.chip-link:active {
  color: #6e8d6c;
}

/* =========================================================
   Mine prosjekter
   ========================================================= */
.projects {
  position: relative;
  z-index: 3;
  padding-top: clamp(60px, 8vw, 110px);
  border-top: 1px solid var(--silver);
  margin-top: 40px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(.2, .7, .2, 1),
              transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
.projects.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.projects__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: clamp(40px, 5vw, 72px);
  flex-wrap: wrap;
}
.projects__intro { max-width: 60ch; }
.projects__kicker {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 18px;
}
.projects__title {
  margin: 0 0 18px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.projects__title em {
  font-style: italic;
  color: var(--grey);
}
.projects__lead {
  margin: 0;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  color: var(--ink-soft);
}

/* Hub navigation buttons */
.projects__hub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 24px;
}
.projects__hub-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.3s ease;
}
.projects__hub-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 22px;
  bottom: 0;
  height: 1px;
  background: #6e8d6c;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(.7,0,.2,1);
}
.projects__hub-btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
}
.projects__hub-btn:hover {
  color: #6e8d6c;
}
.projects__hub-btn:hover::after {
  transform: scaleX(1);
}
.projects__hub-btn:hover svg {
  transform: translateX(3px);
}

/* Counter badge */
.projects__counter {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border: 1px solid var(--silver);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.projects__counter-now {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
}
.projects__counter-bar {
  width: 32px;
  height: 1px;
  background: var(--silver-2);
}
.projects__counter-total {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-soft);
}

/* Bento-style asymmetric grid */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-bottom: 80px;
}

/* Project tile — base */
.project-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--silver);
  border-radius: 6px;
  overflow: hidden;
  isolation: isolate;
  grid-column: span 2;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(.2, .7, .2, 1),
              transform 1s cubic-bezier(.2, .7, .2, 1),
              border-color 0.5s ease,
              box-shadow 0.5s ease;
}
.project-tile.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.project-tile:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 28px 56px -28px rgba(0, 0, 0, 0.3);
}
.project-tile--featured { grid-column: span 6; }

/* Visual area at top */
.project-tile__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
  overflow: hidden;
  border-bottom: 1px solid var(--silver);
}
.project-tile--featured .project-tile__visual {
  aspect-ratio: 21 / 8;
}
.project-tile__art {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
.project-tile:hover .project-tile__art {
  transform: scale(1.04);
}
.project-tile__num {
  position: absolute;
  top: 16px;
  left: 18px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--grey);
  z-index: 1;
}

/* Content */
.project-tile__content {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-tile--featured .project-tile__content { padding: 32px 36px 36px; }

.project-tile__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.project-tile__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
}
.project-tile__status .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--silver-2);
}
.project-tile__status--live .dot {
  background: #6e8d6c;
  box-shadow: 0 0 0 0 rgba(110, 141, 108, 0.5);
  animation: pulseDot 2.4s ease-in-out infinite;
}
.project-tile__status--soon .dot { background: #c4a85a; }
.project-tile__status--idea .dot { background: var(--silver-2); }
.project-tile__year { color: var(--grey-soft); }

.project-tile__title {
  margin: 0 0 12px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.project-tile__title i {
  font-style: italic;
  color: var(--grey);
}
.project-tile--featured .project-tile__title {
  font-size: clamp(36px, 4.4vw, 60px);
  margin-bottom: 16px;
}

.project-tile__desc {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  flex: 1;
}
.project-tile--featured .project-tile__desc {
  font-size: 16.5px;
  max-width: 60ch;
}

/* Avsluttende, mer fremtredende beskrivelse */
.project-tile__desc--accent {
  position: relative;
  margin-top: 14px;
  padding-left: 16px;
  border-left: 2px solid var(--ink);
  color: var(--ink-soft);
}
.project-tile__desc--accent strong {
  color: var(--ink);
  font-weight: 500;
}
.project-tile__desc--accent em {
  font-style: italic;
  color: var(--grey);
}

.project-tile__value-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: none;
}
.project-tile__value-list li {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.project-tile__value-list li::before {
  content: '+';
  font-size: 13px;
  color: var(--grey);
  flex: none;
}

.project-tile__desc--tip {
  margin-top: 10px;
  padding: 10px 12px;
  background: #f5f4f1;
  border-left: 2px solid var(--ink);
  font-size: 13px;
  color: var(--ink-soft);
  flex: none;
}
.project-tile__desc--disclaimer {
  margin-top: 8px;
  font-size: 11.5px;
  font-family: var(--f-mono);
  letter-spacing: 0.02em;
  color: var(--grey);
  flex: none;
  line-height: 1.6;
}

/* Verdi-punkter under beskrivelsen */
.project-tile__value {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 22px;
  padding: 12px 0 0;
  border-top: 1px dashed var(--silver);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}
.project-tile__value span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.project-tile__value span::before {
  content: "+";
  color: var(--ink);
  font-size: 12px;
}

.project-tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  align-self: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--ink);
  transition: gap 0.4s ease, padding 0.4s ease;
}
.project-tile__cta svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s ease;
}
.project-tile:hover .project-tile__cta { gap: 14px; }
.project-tile:hover .project-tile__cta svg {
  transform: translate(3px, -3px);
}
.project-tile__cta--soon {
  color: var(--grey-soft);
  border-bottom-color: var(--silver-2);
}

/* Footer */
.projects__foot {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 0 0;
  margin-bottom: 0;
}
.projects__foot-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver-2), transparent);
}
.projects__foot-text {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-soft);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .projects__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .project-tile { grid-column: span 2; }
  .project-tile--featured { grid-column: span 2; }
  .project-tile__visual,
  .project-tile--featured .project-tile__visual { aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .projects__grid { grid-template-columns: 1fr; }
  .project-tile { grid-column: 1; }
  .projects__head { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Footer
   ========================================================= */
.footbar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px var(--pad-x) var(--pad-y);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-soft);
  max-width: min(2080px, 94vw);
  margin: 0 auto;
  width: 100%;
}
.footbar__item--center {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footbar__links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footbar__link {
  color: var(--grey-soft);
  text-decoration: none;
  transition: color 0.18s;
}
.footbar__link:hover {
  color: var(--ink);
}
.footbar__sep {
  opacity: 0.4;
}
.pulse {
  width: 6px;
  height: 6px;
  background: var(--ink);
  border-radius: 50%;
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50%      { opacity: 1; transform: scale(1.1); }
}

/* =========================================================
   Om meg-side
   ========================================================= */
.page-about main,
.page-projects main {
  padding: 60px var(--pad-x) 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}
.page-projects .topbar {
  padding-left: clamp(16px, 2vw, 28px);
  padding-right: clamp(16px, 2vw, 28px);
}
.page-projects .back-link {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-top: 28px;
  margin-bottom: 56px;
  letter-spacing: 0.01em;
}
.page-projects .back-link svg {
  width: 16px;
  height: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--grey);
  text-decoration: none;
  margin-bottom: 70px;
  transition: color 0.3s ease, gap 0.3s ease;
}
.back-link:hover { color: var(--ink); gap: 14px; }
.back-link svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 1.25;
  stroke-linecap: round; stroke-linejoin: round;
}
.page-about .back-link {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fafafa;
  background: #6e8d6c;
  border: 1px solid #6e8d6c;
  border-radius: 999px;
  padding: 9px 16px;
  gap: 10px;
  transition: background 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
}
.page-about .back-link:hover {
  background: #4f6e4d;
  border-color: #4f6e4d;
  color: #fafafa;
  gap: 14px;
}
.page-about .back-link svg {
  width: 13px; height: 13px;
}

.about-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 28px;
}

.about-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 6.5vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 60px;
  max-width: 16ch;
}
.about-title em {
  font-style: italic;
  color: var(--grey);
}

.about-title--hero {
  max-width: 18ch;
  margin-bottom: 38px;
}
.about-title--hero em {
  display: block;
  margin-top: 0.05em;
}

.about-lead {
  font-family: var(--f-sans);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 48px;
  font-weight: 400;
}

/* Personalia — compact CV snapshot */
.personalia {
  margin: 0 0 72px;
  border-top: 1px solid var(--silver);
  border-bottom: 1px solid var(--silver);
  padding: 32px 0;
}
.personalia__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 48px;
  margin: 0;
}
.personalia__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.personalia__item dt {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}
.personalia__item dd {
  font-family: var(--f-sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}
.personalia__item dd span {
  color: var(--grey);
  font-size: 13px;
}

/* About photo — floats right inside intro-block, text wraps around it */
.about-photo {
  float: right;
  margin: 0 0 24px 36px;
  width: clamp(180px, 28%, 240px);
  shape-outside: margin-box;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 2px;
  filter: grayscale(12%);
  opacity: 0;
  transition: opacity 0.4s;
}
.about-photo img.is-loaded { opacity: 1; }

/* Intro block — personal framing right after hero */
.intro-block {
  position: relative;
  margin: 0 0 96px;
  padding: 44px 0 44px 36px;
  border-left: 1px solid var(--silver-2);
  max-width: 60ch;
}
.intro-block::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 44px;
  width: 7px;
  height: 7px;
  background: var(--ink);
  border-radius: 50%;
}
.intro-block p {
  margin: 0 0 1.1em;
  font-size: clamp(15.5px, 1.15vw, 18px);
  line-height: 1.75;
  color: var(--ink-soft);
}
.intro-block p:last-child { margin-bottom: 0; }
.intro-block strong { color: var(--ink); font-weight: 500; }
.intro-block__lead {
  font-family: var(--f-display);
  font-size: clamp(17px, 1.6vw, 22px);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 24px !important;
}
.intro-checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.intro-checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-sans);
  font-size: 14px;
  color: var(--ink);
}
.intro-checklist li span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--grey);
  flex: none;
}
.intro-checklist__conclusion {
  padding-top: 10px;
  border-top: 1px solid var(--silver);
}
.intro-block em {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.08em;
  color: var(--ink);
}
.intro-block__caption {
  margin-top: 28px !important;
  padding-top: 22px;
  border-top: 1px solid var(--silver);
  font-family: var(--f-mono) !important;
  font-size: 11.5px !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey) !important;
  line-height: 1.7 !important;
}

/* Pull quote — editorial gallery moment */
.pullquote {
  margin: 70px 0;
  padding: 56px 0 56px 36px;
  border-left: 1px solid var(--silver-2);
  position: relative;
  max-width: 30ch;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.pullquote__mark {
  position: absolute;
  top: 50px;
  left: -8px;
  background: var(--paper);
  padding: 0 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--silver-2);
}
.pullquote blockquote {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.pullquote blockquote em {
  font-style: italic;
  color: var(--grey);
}
.pullquote figcaption {
  margin-top: 22px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-soft);
}

/* Tick list — minimal, mono-marker bullets */
.tick-list {
  list-style: none;
  margin: 16px 0 24px;
  padding: 0;
}
.tick-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid var(--silver);
  font-size: 15.5px;
  color: var(--ink-soft);
  transition: padding-left 0.4s cubic-bezier(.2, .7, .2, 1), color 0.3s ease;
}
.tick-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 7px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--silver-2);
  transition: color 0.3s ease, transform 0.4s cubic-bezier(.2, .7, .2, 1);
}
.tick-list li:hover {
  padding-left: 36px;
  color: var(--ink);
}
.tick-list li:hover::before {
  color: var(--ink);
  transform: rotate(45deg);
}

/* Dual-line statements — punchy, two-beat rhythm */
.dual-statement {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--ink);
}
.dual-statement em {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--grey);
}

/* Final closing statement — biggest emphasis */
.closing-statement {
  margin: 80px auto;
  text-align: center;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.15;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 22ch;
}
.closing-statement em {
  font-style: italic;
  color: var(--grey);
}

.about-section--contact {
  border-top: 1px solid var(--silver);
  border-bottom: none !important;
  padding-bottom: 0;
}

/* =========================================================
   Chapters — asymmetric editorial sections with big numerals
   ========================================================= */
.chapter {
  position: relative;
  margin: 0 0 110px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 50px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(.2, .7, .2, 1),
              transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
.chapter.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.chapter--right {
  grid-template-columns: 1fr 160px;
}
.chapter--right .chapter__num { order: 2; text-align: right; }
.chapter--right .chapter__head,
.chapter--right .chapter__body { order: 1; }

.chapter--full {
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: left;
}
.chapter--full .chapter__num { font-size: 0.85em; }

.chapter__num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(64px, 9vw, 128px);
  line-height: 0.85;
  color: var(--silver);
  user-select: none;
  position: relative;
  padding-top: 4px;
}
.chapter__num span {
  display: inline-block;
  position: relative;
}
.chapter__num span::after {
  content: "";
  position: absolute;
  bottom: 0.18em;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--silver-2);
}

.chapter__head {
  grid-column: 2 / 3;
}
.chapter--right .chapter__head { grid-column: 1 / 2; }
.chapter--full .chapter__head { grid-column: 1 / 2; }

.chapter__kicker {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-soft);
  margin-bottom: 14px;
}

.chapter__title {
  margin: 0 0 28px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.chapter__title em {
  font-style: italic;
  color: var(--grey);
}

.chapter__body {
  grid-column: 2 / 3;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 64ch;
}
.chapter--right .chapter__body { grid-column: 1 / 2; }
.chapter--full .chapter__body { grid-column: 1 / 2; max-width: none; }
.chapter__body p { margin: 0 0 1.1em; }
.chapter__body p:last-child { margin-bottom: 0; }
.chapter__body strong { color: var(--ink); font-weight: 500; }

.chapter__caption {
  font-family: var(--f-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey) !important;
  margin: 8px 0 18px !important;
}

/* Pill cloud — keyword chips */
.pill-cloud {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.pill-cloud li {
  display: block;
  padding: 0 0 0 14px;
  border: none;
  background: transparent;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
  position: relative;
}
.pill-cloud li::before {
  content: "·";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--ink-soft);
  font-weight: 700;
}
.pill-cloud li::after { content: none; }

/* Impact list — numbered minimal rows */
.impact-list {
  list-style: none;
  margin: 8px 0 24px;
  padding: 0;
  border-top: 1px solid var(--silver);
}
.impact-list li {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--silver);
  font-size: 15.5px;
  color: var(--ink-soft);
  transition: padding-left 0.4s cubic-bezier(.2, .7, .2, 1), color 0.3s ease;
}
.impact-list li span {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--silver-2);
  min-width: 28px;
  transition: color 0.3s ease;
}
.impact-list li:hover {
  padding-left: 12px;
  color: var(--ink);
}
.impact-list li:hover span { color: var(--ink); }

/* Bento — what I build */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: 14px;
  margin: 16px 0 40px;
}
.bento__card {
  position: relative;
  grid-column: span 1;
  padding: 22px 22px 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--silver);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: all 0.45s cubic-bezier(.2, .7, .2, 1);
  isolation: isolate;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.bento__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 240px at 0% 100%, rgba(110, 141, 108, 0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}
.bento__card::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 22px;
  width: 14px;
  height: 1px;
  background: #6e8d6c;
  transform: scaleX(0.55);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(.2, .7, .2, 1), background 0.45s ease;
}
.bento__card:hover {
  border-color: rgba(60, 50, 40, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -28px rgba(0, 0, 0, 0.32);
}
.bento__card:hover::before { opacity: 1; }
.bento__card:hover::after { transform: scaleX(1.4); }

.bento__card--lg {
  grid-column: span 2;
  padding: 28px 28px 24px;
  background: rgba(255, 255, 255, 0.88);
}
.bento__card--lg h3 {
  font-size: clamp(24px, 2.4vw, 32px);
}

.bento__card--accent {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  padding: 24px 32px;
  background: linear-gradient(135deg, #1a1a1a 0%, #262624 100%);
  border-color: #1a1a1a;
  color: #fafafa;
  min-height: 110px;
}
.bento__card--accent::before {
  background: radial-gradient(500px 280px at 100% 0%, rgba(168, 187, 163, 0.18), transparent 70%);
}
.bento__card--accent::after {
  background: #a8bba3;
  transform: scaleX(1);
}
.bento__card--accent .bento__tag { color: rgba(255, 255, 255, 0.55); margin-bottom: 0; flex: none; }
.bento__card--accent h3 {
  color: #fff;
  margin: 0;
  flex: none;
  font-size: clamp(20px, 2vw, 26px);
}
.bento__card--accent p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  flex: 1;
}
.bento__card--accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 52px -28px rgba(0, 0, 0, 0.55);
  border-color: #1a1a1a;
}

.bento__tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--silver-2);
  margin-bottom: 16px;
}
.bento__card h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.18;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.005em;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: pretty;
}
.bento__card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--grey);
  text-wrap: pretty;
}

@media (max-width: 860px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento__card--lg { grid-column: span 2; }
}
@media (max-width: 540px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .bento__card,
  .bento__card--lg { grid-column: 1 / -1; }
  .bento__card--accent {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Combo grid — strengths */
.combo-grid {
  list-style: none;
  margin: 16px 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--silver);
  border: 1px solid var(--silver);
  border-radius: 4px;
  overflow: hidden;
}
.combo-grid li {
  background: var(--paper);
  padding: 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.4s ease;
}
.combo-grid li:hover { background: #fff; }
.combo-grid li strong {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--ink);
}
.combo-grid li span {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-soft);
}
.combo-grid__wide { grid-column: span 2; }

/* Project card — featured project link */
.project-card {
  display: block;
  margin: 28px 0 0;
  padding: 32px 32px 32px;
  background: var(--paper-2);
  border: 1px solid var(--silver);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: all 0.5s cubic-bezier(.2, .7, .2, 1);
  position: relative;
  overflow: hidden;
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(0, 0, 0, 0.04));
  opacity: 0;
  transition: opacity 0.5s ease;
}
.project-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 22px 46px -24px rgba(0, 0, 0, 0.3);
}
.project-card:hover::after { opacity: 1; }

.project-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.project-card__tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
}
.project-card__arrow {
  width: 22px; height: 22px;
  display: inline-flex;
  transition: transform 0.5s cubic-bezier(.2, .7, .2, 1);
}
.project-card__arrow svg {
  width: 100%; height: 100%;
  fill: none; stroke: var(--ink);
  stroke-width: 1.25;
  stroke-linecap: round; stroke-linejoin: round;
}
.project-card:hover .project-card__arrow {
  transform: translate(4px, -4px);
}
.project-card__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  margin: 0 0 14px;
  color: var(--ink);
}
.project-card__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* Mobile — collapse asymmetry */
@media (max-width: 760px) {
  .chapter,
  .chapter--right,
  .chapter--full {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 70px;
  }
  .chapter--right .chapter__num { order: 0; text-align: left; }
  .chapter__head, .chapter__body,
  .chapter--right .chapter__head, .chapter--right .chapter__body {
    grid-column: 1 / 2;
  }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card,
  .bento__card--lg { grid-column: span 1; }
  .combo-grid { grid-template-columns: 1fr; }
  .combo-grid__wide { grid-column: span 1; }
  .intro-block { padding-left: 24px; }
}

.inline-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--silver-2);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.3s ease;
}
.inline-link:hover { text-decoration-color: var(--ink); }

.about-section {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 60px;
  padding: 44px 0;
  border-top: 1px solid var(--silver);
}
.about-section:last-of-type { border-bottom: 1px solid var(--silver); }

.about-section__label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-soft);
  padding-top: 6px;
}

.about-section__body {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.75;
  color: var(--ink-soft);
}
.about-section__body p { margin: 0 0 1.1em; }
.about-section__body p:last-child { margin-bottom: 0; }
.about-section__body strong { color: var(--ink); font-weight: 500; }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.timeline li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 22px;
  align-items: baseline;
}
.timeline .year {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--grey-soft);
  padding-top: 4px;
}
.timeline .role {
  font-size: 16px;
  color: var(--ink);
}
.timeline .role span {
  display: block;
  font-size: 13.5px;
  color: var(--grey);
  margin-top: 4px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 760px) {
  .dg-shapes { grid-template-columns: repeat(2, 1fr); }
  .about-section { grid-template-columns: 1fr; gap: 18px; }
  .timeline li { grid-template-columns: 80px 1fr; gap: 14px; }
  .nav-link { padding: 10px 14px 10px 16px; font-size: 12px; }
  .footbar { flex-direction: column; gap: 14px; align-items: flex-start; }
}

/* =========================================================
   Kinematic entrance animations
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: no-preference) {
  /* Scene — soft fade in */
  .scene {
    animation: fadeIn 1.8s cubic-bezier(.2,.7,.2,1) both;
  }

  /* Profile card inner — staggered children */
  .pc-avatar,
  .pc-id {
    animation: fadeUp 0.7s cubic-bezier(.2,.7,.2,1) 0.12s both;
  }
  .pc-meta {
    animation: fadeUp 0.7s cubic-bezier(.2,.7,.2,1) 0.26s both;
  }
  .pc-cv {
    animation: fadeUp 0.7s cubic-bezier(.2,.7,.2,1) 0.40s both;
  }
  .pc-actions {
    animation: fadeUp 0.7s cubic-bezier(.2,.7,.2,1) 0.54s both;
  }
  .pc-signature {
    animation: fadeUp 0.7s cubic-bezier(.2,.7,.2,1) 0.66s both;
  }

  /* Site-intro — stagger head → lead → body → chips */
  .site-intro__head {
    animation: fadeUp 0.8s cubic-bezier(.2,.7,.2,1) 0.3s both;
  }
  .site-intro__lead {
    animation: fadeUp 0.9s cubic-bezier(.2,.7,.2,1) 0.48s both;
  }
  .site-intro__body {
    animation: fadeUp 0.8s cubic-bezier(.2,.7,.2,1) 0.64s both;
  }
  .site-intro__chips {
    animation: fadeUp 0.7s cubic-bezier(.2,.7,.2,1) 0.78s both;
  }

  /* More-link */
  .more-link {
    animation: fadeUp 0.7s cubic-bezier(.2,.7,.2,1) 0.9s both;
  }

  /* Back-link on sub-pages */
  .back-link {
    animation: slideRight 0.6s cubic-bezier(.2,.7,.2,1) 0.2s both;
  }

  /* Corner marks */
  .corner {
    animation: fadeIn 1.2s ease 0.4s both;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
  .title__inner { transform: none; opacity: 1; filter: none; }
}

/* =========================================================
   Om meg — Hub redesign
   ========================================================= */

/* Hub hero */
.hub-hero {
  position: relative;
  z-index: 3;
  padding: clamp(72px, 9vh, 110px) var(--pad-x) clamp(40px, 5vh, 64px);
  max-width: 900px;
}
.hub-hero .about-eyebrow { margin-bottom: 18px; }
.hub-hero__title {
  font-family: var(--f-display);
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0 0 18px;
}
.hub-hero__title em { font-style: italic; color: #6e8d6c; }
.hub-hero__sub {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-soft);
  margin: 0;
}

/* Sticky subnav */
.about-subnav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px var(--pad-x);
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--silver);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.about-subnav__items {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  flex-shrink: 0;
}
.about-subnav__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 5px 13px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fafafa;
  background: #6e8d6c;
  border: 1px solid #6e8d6c;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.about-subnav__back:hover {
  background: #4f6e4d;
  border-color: #4f6e4d;
}
.about-subnav__back svg {
  width: 12px; height: 12px;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.about-subnav::-webkit-scrollbar { display: none; }
.about-subnav__item {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.about-subnav__item:hover { color: var(--ink); border-color: var(--silver); }
.about-subnav__item.is-active {
  background: var(--ink);
  color: #fafafa;
  border-color: var(--ink);
}

/* Hub grid — 4 section cards */
.hub-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 0 var(--pad-x) clamp(56px, 8vw, 96px);
}

/* Hub card */
@keyframes hubCardIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hub-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--silver);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(.2,.7,.2,1),
              box-shadow 0.38s cubic-bezier(.2,.7,.2,1),
              border-color 0.28s ease,
              background 0.28s ease;
  will-change: transform;
}
.hub-card.is-visible {
  animation: hubCardIn 0.75s cubic-bezier(.2,.7,.2,1) var(--card-delay, 0s) both;
}
.hub-card.is-visible:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 56px -18px rgba(20,20,20,0.16);
  border-color: var(--silver-2);
  background: rgba(255,255,255,0.92);
}
.hub-card--static { cursor: default; }
.hub-card--static.is-visible:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--silver);
  background: rgba(255,255,255,0.55);
}
.hub-card__num {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--grey-soft);
  padding: 16px 18px 0;
}
.hub-card__art {
  width: 100%;
  padding: 6px 14px 0;
  line-height: 0;
}
.hub-card__art svg {
  width: 100%;
  height: auto;
  display: block;
}
.hub-card__body {
  padding: 10px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.hub-card__title {
  font-family: var(--f-display);
  font-size: clamp(17px, 1.8vw, 23px);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.hub-card__tags {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-soft);
  margin: 0;
}
.hub-card__teaser {
  font-size: 13px;
  line-height: 1.65;
  color: var(--grey);
  margin: 3px 0 0;
  flex: 1;
}
.hub-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-soft);
  margin-top: 12px;
  transition: color 0.25s ease, gap 0.25s ease;
}
.hub-card__arrow svg {
  width: 13px; height: 13px;
  fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.25s ease;
  flex: none;
}
.hub-card.is-visible:hover .hub-card__arrow { color: var(--ink); gap: 9px; }
.hub-card.is-visible:hover .hub-card__arrow svg { transform: translateX(3px); }

/* About main wrapper */
.about-main {
  position: relative;
  z-index: 3;
}

/* Chapter sections */
.about-ch {
  position: relative;
  padding: clamp(56px, 7vw, 96px) var(--pad-x);
  border-top: 1px solid var(--silver);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s cubic-bezier(.2,.7,.2,1),
              transform 1.1s cubic-bezier(.2,.7,.2,1);
  max-width: min(2080px, 94vw);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.about-ch.is-visible { opacity: 1; transform: translateY(0); }

.about-ch__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(32px, 4.5vw, 54px);
}
.about-ch__kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
  flex: none;
}
.about-ch__title {
  font-family: var(--f-display);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  flex: none;
}
.about-ch__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--silver-2), transparent);
}
.about-ch__watermark {
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-58%);
  font-family: var(--f-display);
  font-size: clamp(72px, 11vw, 148px);
  font-weight: 400;
  color: var(--silver);
  opacity: 0.22;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}

/* Chapter two-column content */
.about-ch__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 52px);
}
.about-ch__lead {
  font-family: var(--f-display);
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 400;
  line-height: 1.38;
  color: var(--ink);
  margin: 0 0 18px;
}
.about-ch__lead-col { display: flex; flex-direction: column; }
.about-ch__body {
  font-size: clamp(13.5px, 1vw, 15px);
  line-height: 1.78;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.about-ch__tagline {
  font-family: var(--f-display);
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.45;
  color: var(--grey);
  margin: 6px 0 0;
}
.about-ch__tagline em { color: #6e8d6c; font-style: normal; }
.about-ch__accent--inline {
  color: #6e8d6c;
}
.about-ch__accent {
  font-family: var(--f-display);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.4;
  color: #6e8d6c;
  margin: 4px 0 18px;
  font-style: italic;
}
.about-ch__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.about-ch__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--silver);
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  transition: all 0.3s cubic-bezier(.2,.7,.2,1);
}
.about-ch__cta svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
}
.about-ch__cta:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fafafa;
}
.about-ch__cta:hover svg {
  transform: translate(2px, -2px);
}
.about-ch__detail { display: flex; flex-direction: column; gap: 22px; }
.about-ch__photo {
  margin: 0 0 22px;
  border-radius: 3px;
  overflow: hidden;
  max-width: 300px;
  aspect-ratio: 4 / 5;
}
.about-ch__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 3px;
  filter: grayscale(15%);
}

/* Desktop — two-column chapter layout */
@media (min-width: 860px) {
  .hub-grid { grid-template-columns: repeat(4, 1fr); }
  .about-ch__content {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Mobile — single column */
@media (max-width: 599px) {
  .hub-grid { grid-template-columns: 1fr; }
}

/* Within-chapter divider between content blocks */
.about-ch__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver), transparent);
  margin: clamp(40px, 5vw, 64px) 0;
}
.about-ch__content--b { margin-top: 0; }

/* Laboratoriet — coming-soon line */
.lab-coming {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 18px 0 0;
  padding: 12px 16px;
  border: 1px dashed var(--silver-2);
  border-radius: 999px;
}
.lab-coming__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6e8d6c;
  box-shadow: 0 0 0 0 rgba(110,141,108,0.5);
  animation: pulseDot 2.4s ease-in-out infinite;
}

/* =========================================================
   Demo-gave — søt liten gave-knapp i sandkasse (uten boks)
   ========================================================= */
.demo-gift {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  margin-top: 18px;
  background: transparent;
  border: none;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.45s cubic-bezier(.2, .7, .2, 1);
}
.demo-gift:hover {
  transform: translateY(-2px);
}
.demo-gift:focus-visible {
  outline: 2px solid #c47a3a;
  outline-offset: 4px;
}

.demo-gift__icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  transform-origin: 50% 70%;
}
.demo-gift__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.demo-gift:hover .demo-gift__icon {
  animation: giftWiggle 0.7s cubic-bezier(.4, 0, .2, 1);
}
@keyframes giftWiggle {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-8deg); }
  60% { transform: rotate(6deg); }
  80% { transform: rotate(-3deg); }
}

.demo-gift__label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.demo-gift__title {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.demo-gift__hint {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color 0.4s ease;
}
.demo-gift:hover .demo-gift__hint { color: #c47a3a; }

@media (prefers-reduced-motion: reduce) {
  .demo-gift:hover .demo-gift__icon { animation: none; }
  .demo-gift:hover { transform: none; }
}

/* =========================================================
   SPA — Single-page architecture
   Sticky nav, scroll progress, cinematic section reveal
   ========================================================= */

html {
  scroll-behavior: smooth;
}
html, body {
  scroll-padding-top: 76px;
}

/* ------- Scroll progress bar (top) ------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
  background: rgba(110, 141, 108, 0.08);
}
.scroll-progress__fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #6e8d6c 0%, #a8bba3 60%, #6e8d6c 100%);
  background-size: 200% 100%;
  animation: progressShimmer 4s linear infinite;
}
@keyframes progressShimmer {
  to { background-position: -200% 0; }
}
@supports (animation-timeline: scroll()) {
  .scroll-progress__fill {
    animation: progressShimmer 4s linear infinite, progressFill linear forwards;
    animation-timeline: auto, scroll(root);
  }
  @keyframes progressFill {
    to { transform: scaleX(1); }
  }
}

/* ------- Sticky topbar with main nav ------- */
.topbar--sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px clamp(20px, 4vw, 48px);
  background: rgba(250, 250, 250, 0.72);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding 0.35s cubic-bezier(.2,.7,.2,1),
              background 0.35s ease,
              border-color 0.35s ease;
}
.topbar--sticky.is-scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(250, 250, 250, 0.86);
  border-bottom-color: rgba(60, 50, 40, 0.08);
}

/* Main nav (horizontal, with morphing indicator) */
.main-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
}
.main-nav__item {
  position: relative;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 2px;
  transition: color 0.3s ease, transform 0.3s cubic-bezier(.2,.7,.2,1);
}
.main-nav__item:hover {
  color: #6e8d6c;
  transform: translateY(-1px);
}
.main-nav__item.is-active {
  color: var(--ink);
}
.main-nav__indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #6e8d6c;
  border-radius: 1px;
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(.65, 0, .15, 1),
              width 0.55s cubic-bezier(.65, 0, .15, 1),
              opacity 0.3s ease;
  opacity: 0;
}
.main-nav__indicator.is-ready {
  opacity: 1;
}
@media (max-width: 760px) {
  .main-nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .main-nav__item {
    font-size: 10px;
    letter-spacing: 0.14em;
    padding: 6px 1px;
  }
  .topbar--sticky {
    padding: 10px 16px;
  }
}

/* ------- SPA section primitives ------- */
.spa-main {
  position: relative;
  z-index: 2;
}

.spa-section {
  position: relative;
  padding-block: clamp(12px, 2vh, 28px);
  scroll-margin-top: 76px;
  overflow: hidden;
}
.spa-section + .spa-section {
  padding-top: clamp(4px, 1vh, 16px);
}

/* Projects intro — feels like a "front" with breathing room and choice */
.spa-section--projects#prosjekter {
  min-height: 78vh;
  padding-block: clamp(48px, 9vh, 110px);
  display: flex;
  align-items: center;
}
.spa-section--projects#prosjekter .spa-section__inner {
  width: 100%;
}
/* Centered hub intro — fyller PC-skjermen bedre */
.spa-section--projects#prosjekter .projects__head {
  justify-content: center;
  text-align: center;
}
.spa-section--projects#prosjekter .projects__intro {
  max-width: 760px;
  margin: 0 auto;
}
.spa-section--projects#prosjekter .projects__title {
  font-size: clamp(56px, 7.5vw, 108px);
}
.spa-section--projects#prosjekter .projects__lead {
  font-size: clamp(16px, 1.25vw, 19px);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}
.spa-section--projects#prosjekter .group-chips {
  justify-content: center;
  gap: 18px;
  margin-top: clamp(40px, 5vw, 64px);
}
/* Reset inherited list-item styling for these chips */
.spa-section--projects#prosjekter .group-chips li {
  padding: 0;
  font-size: inherit;
  color: inherit;
  letter-spacing: normal;
  text-transform: none;
}
.spa-section--projects#prosjekter .group-chips li::after { display: none; }
.spa-section--projects#prosjekter .group-chips li:hover { color: inherit; }

/* Pop-out call-to-action buttons */
.spa-section--projects#prosjekter .group-chips .chip-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px 18px 32px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--silver);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 12px 28px -18px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  isolation: isolate;
  overflow: hidden;
  transition: all 0.45s cubic-bezier(.2, .7, .2, 1);
  cursor: pointer;
  animation: chipFloat 6s ease-in-out infinite;
}
.spa-section--projects#prosjekter .group-chips li:nth-child(2) .chip-link {
  animation-delay: -3s;
}
.spa-section--projects#prosjekter .group-chips .chip-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2f2f2c 100%);
  transform: translateX(-101%);
  transition: transform 0.55s cubic-bezier(.65, 0, .15, 1);
  z-index: -1;
}
.spa-section--projects#prosjekter .group-chips .chip-link::after {
  content: "→";
  font-family: var(--f-sans);
  font-size: 18px;
  line-height: 1;
  color: var(--green);
  transition: transform 0.45s cubic-bezier(.2, .7, .2, 1), color 0.4s ease;
}
.spa-section--projects#prosjekter .group-chips .chip-link:hover {
  color: #fafafa;
  border-color: #1a1a1a;
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 28px 52px -24px rgba(0, 0, 0, 0.40);
  animation-play-state: paused;
}
.spa-section--projects#prosjekter .group-chips .chip-link:hover::before { transform: translateX(0); }
.spa-section--projects#prosjekter .group-chips .chip-link:hover::after {
  color: #a8bba3;
  transform: translateX(5px);
}

@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .spa-section--projects#prosjekter .group-chips .chip-link {
    animation: none;
  }
}
.spa-section--projects#prosjekter + .spa-section {
  padding-top: clamp(48px, 8vh, 96px);
}
.spa-section--hero {
  overflow: visible;
}

/* Strip nested .projects' own top spacing — spa-section handles rhythm */
.spa-section .projects {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}
.spa-section .projects__head {
  margin-bottom: clamp(20px, 2.5vw, 36px);
}
/* Trim about-ch internal header spacing inside spa-section */
.spa-section.about-ch {
  border-top: none;
}
.spa-section .about-ch__header {
  margin-bottom: clamp(18px, 2.5vw, 32px);
}

/* Integration grid — AI & arbeidsflyt section */
.integration-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.integration-card {
  position: relative;
  padding: 22px 22px 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--silver);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 160px;
  overflow: hidden;
  isolation: isolate;
  transition: all 0.45s cubic-bezier(.2, .7, .2, 1);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.integration-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 240px at 0% 100%, rgba(110, 141, 108, 0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}
.integration-card::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: rgba(60, 50, 40, 0.10);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(.2, .7, .2, 1);
}
.integration-card:hover {
  border-color: rgba(60, 50, 40, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 18px 38px -22px rgba(0, 0, 0, 0.28);
}
.integration-card:hover::before { opacity: 1; }
.integration-card:hover::after { transform: scaleX(1); }

.integration-card__num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--silver-2);
}
.integration-card__icon {
  display: block;
  height: 26px;
  margin-top: 4px;
}
.integration-card__icon svg {
  width: auto;
  height: 100%;
  fill: none;
  stroke: #6e8d6c;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.integration-card__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(18px, 1.55vw, 23px);
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: auto 0 0;
  line-height: 1.18;
  text-wrap: pretty;
}
.integration-card__hint {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--grey);
  margin: 2px 0 0;
  text-wrap: pretty;
}

@media (max-width: 540px) {
  .integration-grid {
    grid-template-columns: 1fr;
  }
  .integration-card {
    min-height: auto;
  }
}

/* Projects-group — subgroup inside one shared "Mine prosjekter" section */
.projects-group {
  position: relative;
  scroll-margin-top: 84px;
  padding-top: clamp(18px, 2.5vh, 36px);
  margin-top: clamp(20px, 3vh, 44px);
  border-top: 1px solid rgba(60, 50, 40, 0.10);
}
.projects-group:first-of-type {
  margin-top: clamp(8px, 1.5vh, 20px);
  padding-top: 0;
  border-top: none;
}
.projects-group__head {
  margin-bottom: clamp(20px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 70ch;
}
.projects-group__kicker {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
}
.projects-group__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.012em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0;
}
.projects-group__title em {
  font-style: italic;
  color: var(--grey);
}
.projects-group__lead {
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 4px 0 0;
}

.spa-section__inner {
  max-width: min(2080px, 94vw);
  margin: 0 auto;
  padding-inline: var(--pad-x);
  position: relative;
  z-index: 2;
}

/* Faint giant section number drifting in the bg */
.spa-watermark {
  position: absolute;
  right: clamp(16px, 4vw, 60px);
  top: clamp(20px, 6vh, 80px);
  font-family: var(--f-display);
  font-size: clamp(140px, 22vw, 320px);
  line-height: 0.85;
  font-weight: 400;
  font-style: italic;
  color: rgba(60, 50, 40, 0.045);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.04em;
  transform: translateY(0);
  will-change: transform;
}

/* Cinematic reveal — fades up + softens blur on entry */
.spa-section[data-reveal] {
  opacity: 0;
  transform: translateY(36px) scale(0.985);
  filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1),
              transform 1s cubic-bezier(.2,.7,.2,1),
              filter 0.9s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform, filter;
}
.spa-section[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Section kicker / title — staggered word entry */
.spa-kicker,
.spa-title {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1) 0.1s,
              transform 0.9s cubic-bezier(.2,.7,.2,1) 0.1s;
}
.spa-section.is-visible .spa-kicker,
.spa-section.is-visible .spa-title {
  opacity: 1;
  transform: none;
}
.spa-section.is-visible .spa-title {
  transition-delay: 0.18s;
}

/* Hero scroll cue — drifting line + label */
.hero-scroll-cue {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  animation: cueIn 1s 2.4s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-scroll-cue__line {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, #6e8d6c);
  animation: cueDrift 2.2s cubic-bezier(.55,0,.45,1) infinite;
  transform-origin: top;
}
.hero-scroll-cue__label {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--grey);
}
@keyframes cueIn {
  to { opacity: 1; }
}
@keyframes cueDrift {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Pull-quote section spacing */
.spa-section--pull {
  padding-block: clamp(60px, 9vh, 120px);
  margin: 0 auto;
}

/* Project tile cinematic depth on hover */
.project-tile {
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1),
              box-shadow 0.45s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.project-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -32px rgba(60, 50, 40, 0.28);
}

/* Reduced motion safety */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spa-section[data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .spa-kicker, .spa-title { opacity: 1; transform: none; }
  .scroll-progress__fill { animation: none; transform: scaleX(0.001); }
  .hero-scroll-cue { display: none; }
}

/* =========================================================
   Landing page (index.html) — slim header + Utforsk CTA
   ========================================================= */
.topbar--landing {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--pad-y) var(--pad-x) 0;
}

/* Lift the entire landing hero ~21px up total */
.page-landing .hero {
  padding-top: clamp(47px, 5.5vh, 88px);
}
.mark--link {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}
.mark--link:hover { opacity: 0.7; }

/* Top-right Utforsk button (small, monospace) */
.landing-cta--nav {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--silver);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: all 0.35s cubic-bezier(.2, .7, .2, 1);
}
.landing-cta--nav svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1);
}
.landing-cta--nav:hover {
  color: #fafafa;
  background: var(--ink);
  border-color: var(--ink);
}
.landing-cta--nav:hover svg { transform: translateX(3px); }

/* Big hero CTA — at bottom of hero, drives users into Utforsk */
.landing-cta--hero {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px 16px 28px;
  margin: clamp(28px, 5vh, 56px) 0 clamp(20px, 4vh, 40px);
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.005em;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--silver);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  isolation: isolate;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(.2, .7, .2, 1);
  align-self: flex-start;
  opacity: 0;
  transform: translateY(16px);
  animation: heroCtaIn 1s 1.2s cubic-bezier(.2, .7, .2, 1) forwards;
}
.landing-cta--hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a28 100%);
  transform: translateX(-101%);
  transition: transform 0.55s cubic-bezier(.65, 0, .15, 1);
  z-index: -1;
}
.landing-cta--hero:hover {
  color: #fafafa;
  border-color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 22px 48px -28px rgba(0, 0, 0, 0.45);
}
.landing-cta--hero:hover::before { transform: translateX(0); }
.landing-cta__label { position: relative; }
.landing-cta__arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #6e8d6c;
  transition: background 0.4s ease, transform 0.5s cubic-bezier(.2, .7, .2, 1);
}
.landing-cta--hero:hover .landing-cta__arrow {
  background: #a8bba3;
  transform: scale(1.06);
}
.landing-cta__arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fafafa;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.5s cubic-bezier(.2, .7, .2, 1);
}
.landing-cta--hero:hover .landing-cta__arrow svg {
  transform: translateX(3px);
}

@keyframes heroCtaIn {
  to { opacity: 1; transform: translateY(0); }
}

/* External nav item on Utforsk page (Hjem) */
.main-nav__item--external {
  position: relative;
  padding-right: 14px;
}
.main-nav__item--external::after {
  content: "↗";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-55%);
  font-size: 10px;
  color: var(--silver-2);
  transition: color 0.3s ease;
}
.main-nav__item--external:hover::after { color: #6e8d6c; }

@media (prefers-reduced-motion: reduce) {
  .landing-cta--hero {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* =========================================================
   Hero CTAs — clean editorial CTAs (no boxes)
   ========================================================= */
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 22px 0 32px;
}

.hero-cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  text-decoration: none;
  color: var(--ink);
  border-top: 1px solid rgba(60, 50, 40, 0.12);
  transition: border-color 0.45s ease;
}
.hero-cta:last-child { border-bottom: 1px solid rgba(60, 50, 40, 0.12); }
.hero-cta:hover { border-color: rgba(60, 50, 40, 0.25); }
.hero-cta:focus-visible {
  outline: 2px solid #6e8d6c;
  outline-offset: 6px;
  border-radius: 2px;
}

/* === Primary CTA === */
.hero-cta--primary {
  padding: 24px 0 22px;
  align-items: flex-start;
  border-top: 1px solid rgba(60, 50, 40, 0.18);
  border-bottom: none;
}
.hero-cta--primary .hero-cta__main {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  min-width: 0;
}
.hero-cta__num {
  position: absolute;
  top: -16px;
  left: 0;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  background: #fafafa;
  padding-right: 10px;
}
.hero-cta__title {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 8px;
}
.hero-cta__title em {
  font-style: italic;
  color: #6e8d6c;
  transition: color 0.45s ease;
}
.hero-cta--primary:hover .hero-cta__title em { color: #4f6e4d; }
.hero-cta__sub {
  display: block;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 42ch;
}

/* === Arrow — line draws + icon slides on hover === */
.hero-cta__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  align-self: center;
}
.hero-cta--primary .hero-cta__arrow {
  align-self: flex-end;
  margin-bottom: 4px;
}
.hero-cta__arrow-line {
  display: block;
  width: 0;
  height: 1.25px;
  background: var(--ink);
  margin-right: -2px;
  transition:
    width 0.55s cubic-bezier(.2, .7, .2, 1),
    background 0.4s ease;
}
.hero-cta__arrow svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.55s cubic-bezier(.2, .7, .2, 1),
              stroke 0.4s ease;
}
.hero-cta--primary .hero-cta__arrow svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.25;
}
.hero-cta:hover .hero-cta__arrow-line {
  width: 26px;
  background: #6e8d6c;
}
.hero-cta:hover .hero-cta__arrow svg {
  transform: translateX(6px);
  stroke: #6e8d6c;
}

/* === Secondary CTAs (paired, divided by line) === */
.hero-ctas__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(60, 50, 40, 0.12);
}
.hero-ctas__pair .hero-cta {
  border-top: none;
  border-bottom: none;
  padding: 16px 22px 16px 0;
}
.hero-ctas__pair .hero-cta + .hero-cta {
  padding-left: 22px;
  border-left: 1px solid rgba(60, 50, 40, 0.12);
}
.hero-ctas__pair .hero-cta:last-child { border-bottom: none; }
.hero-cta--secondary {
  align-items: center;
  gap: 12px;
}
.hero-cta__tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--grey);
  flex-shrink: 0;
  transition: color 0.4s ease;
}
.hero-cta--secondary:hover .hero-cta__tag { color: #6e8d6c; }
.hero-cta--secondary .hero-cta__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.hero-cta__title-sm {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero-cta__hint {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  color: var(--grey);
}
.hero-cta__arrow--sm svg {
  width: 18px;
  height: 18px;
}
.hero-cta--secondary:hover .hero-cta__arrow-line { width: 18px; }

@media (max-width: 560px) {
  .hero-ctas__pair { grid-template-columns: 1fr; }
  .hero-ctas__pair .hero-cta + .hero-cta {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(60, 50, 40, 0.12);
  }
}
@media (max-width: 760px) {
  .hero-cta__title { font-size: 28px; }
  .hero-cta__sub   { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cta:hover .hero-cta__arrow svg { transform: none; }
}

/* Group chips — chip-style nav på Prosjekter-siden */
.group-chips {
  margin-top: clamp(28px, 4vw, 44px);
  flex-wrap: wrap;
}

/* =========================================================
   Group navigation — frosted glass cards (legacy, ubrukt)
   ========================================================= */
.group-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: clamp(28px, 4vw, 44px);
}
.group-nav__btn {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(135deg,
              rgba(255, 255, 255, 0.72) 0%,
              rgba(248, 247, 243, 0.78) 100%);
  backdrop-filter: blur(10px) saturate(135%);
  -webkit-backdrop-filter: blur(10px) saturate(135%);
  border: 1px solid rgba(60, 50, 40, 0.06);
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(60, 50, 40, 0.03),
    0 14px 32px -22px rgba(60, 50, 40, 0.20);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.55s cubic-bezier(.2, .7, .2, 1),
    background 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.55s cubic-bezier(.2, .7, .2, 1);
}
/* Color-coded accent tint that intensifies on hover */
.group-nav__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(.2, .7, .2, 1);
}
.group-nav__btn--a::before {
  background: radial-gradient(ellipse at 0% 100%,
              rgba(110, 141, 108, 0.18) 0%,
              transparent 65%);
}
.group-nav__btn--b::before {
  background: radial-gradient(ellipse at 0% 100%,
              rgba(196, 168, 90, 0.18) 0%,
              transparent 65%);
}
.group-nav__btn:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg,
              rgba(255, 255, 255, 0.88) 0%,
              rgba(252, 251, 247, 0.92) 100%);
  border-color: rgba(110, 141, 108, 0.30);
  box-shadow:
    0 2px 4px rgba(60, 50, 40, 0.05),
    0 32px 60px -22px rgba(60, 50, 40, 0.32);
}
.group-nav__btn:hover::before { opacity: 1; }
.group-nav__btn--b:hover { border-color: rgba(196, 168, 90, 0.40); }
.group-nav__btn:focus-visible {
  outline: 2px solid #6e8d6c;
  outline-offset: 4px;
}

/* Tag — small color-coded circle */
.group-nav__tag {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(110, 141, 108, 0.10);
  border: 1px solid rgba(110, 141, 108, 0.25);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6e8d6c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 0.4s ease,
    transform 0.45s cubic-bezier(.2, .7, .2, 1);
}
.group-nav__btn--b .group-nav__tag {
  background: rgba(196, 168, 90, 0.10);
  border-color: rgba(196, 168, 90, 0.30);
  color: #b08a40;
}
.group-nav__btn:hover .group-nav__tag {
  transform: scale(1.06);
  background: rgba(110, 141, 108, 0.18);
}
.group-nav__btn--b:hover .group-nav__tag {
  background: rgba(196, 168, 90, 0.20);
}

/* Body text */
.group-nav__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.group-nav__title {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color 0.4s ease;
}
.group-nav__btn--a:hover .group-nav__title { color: #4f6e4d; }
.group-nav__btn--b:hover .group-nav__title { color: #8a6a30; }
.group-nav__hint {
  display: block;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  color: var(--grey);
}

/* Arrow — soft circular icon, fills on hover */
.group-nav__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(60, 50, 40, 0.04);
  border: 1px solid rgba(60, 50, 40, 0.08);
  flex-shrink: 0;
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    transform 0.55s cubic-bezier(.2, .7, .2, 1);
}
.group-nav__arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.4s ease;
}
.group-nav__btn--a:hover .group-nav__arrow {
  background: #6e8d6c;
  border-color: #6e8d6c;
  transform: translateY(4px);
}
.group-nav__btn--b:hover .group-nav__arrow {
  background: #c4a85a;
  border-color: #c4a85a;
  transform: translateY(4px);
}
.group-nav__btn:hover .group-nav__arrow svg { stroke: #fafafa; }

/* Sweep span left over from older HTML — neutralize so it does nothing */
.group-nav__sweep { display: none; }

@media (max-width: 760px) {
  .group-nav { grid-template-columns: 1fr; }
}

/* =========================================================
   Group divider — between Arbeid and Hverdag
   ========================================================= */
.group-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: min(2080px, 94vw);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) clamp(20px, 4vw, 48px);
}
.group-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver), transparent);
}
.group-divider__mark {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
}

/* =========================================================
   Projects-group variants — subtle background tint per group
   ========================================================= */
.projects-group--arbeid::before,
.projects-group--hverdag::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
.projects-group--arbeid::before {
  background: linear-gradient(180deg, rgba(110, 141, 108, 0.04) 0%, transparent 60%);
}
.projects-group--hverdag::before {
  background: linear-gradient(180deg, rgba(196, 168, 90, 0.05) 0%, transparent 60%);
}
.projects-group--arbeid > .spa-section__inner,
.projects-group--hverdag > .spa-section__inner {
  position: relative;
  z-index: 1;
}

/* =========================================================
   About subnav — sit BELOW sticky topbar (not overlap)
   ========================================================= */
.about-subnav--sticky {
  position: sticky;
  top: 56px;
  z-index: 25;
  justify-content: center;
  padding: 9px var(--pad-x);
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
}
.about-subnav__indicator {
  display: none; /* reserve for future morphing indicator */
}
@media (max-width: 760px) {
  .about-subnav--sticky { top: 50px; padding: 8px 12px; }
}

/* =========================================================
   Profile-card placement inside Om meg section
   ========================================================= */
.about-ch--with-card .about-ch__content {
  position: relative;
}

/* Single-column variant — for sections without right detail column */
.about-ch__content--single {
  grid-template-columns: 1fr !important;
  max-width: 760px;
}
.about-ch__content--single .about-ch__lead-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Strength list — clean editorial replacement for combo-grid boxes */
.strength-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.strength-list li {
  font-family: var(--f-display);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.005em;
  position: relative;
  padding-left: 14px;
}
.strength-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background: rgba(60, 50, 40, 0.35);
}
.strength-list em {
  font-style: italic;
  color: #6e8d6c;
}

/* Profil row — text left, narrower profile-card right */
.profil-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: clamp(40px, 5vw, 72px);
  align-items: start;
}
@media (min-width: 900px) {
  .profil-row {
    grid-template-columns: 1fr clamp(340px, 32vw, 400px);
  }
}

.profil-row__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.profil-row__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.profil-row__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.profil-row__body .chapter__caption {
  margin: 6px 0 0;
}
.profil-row__body .chapter__caption:first-child {
  margin-top: 0;
}
.profil-row__eyebrow {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
}
.profil-row__title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: var(--ink);
}
.profil-row__title em {
  font-style: italic;
  color: #6e8d6c;
  font-size: 0.72em;
}
.profil-row__sub {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  padding-top: 4px;
  border-top: 1px solid rgba(60, 50, 40, 0.10);
}

.profil-row__card-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.profil-row__eyebrow--card {
  padding-left: 4px;
}

.profile-card--om-meg {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  float: none;
  shape-outside: none;
  z-index: 4;
}
@media (min-width: 900px) {
  .profile-card--om-meg {
    margin: 0;
    max-width: none;
  }
  .profile-card--om-meg .profile-card__inner {
    grid-template-columns: 130px 1fr;
    column-gap: 26px;
  }
  .profile-card--om-meg .pc-avatar {
    padding: 10px;
    background: #ffffff;
    border: 1px solid rgba(60, 50, 40, 0.12);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.6),
      0 1px 2px rgba(60, 50, 40, 0.04);
    border-radius: 3px;
  }
  .profile-card--om-meg .pc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 25%;
    transform: none;
    border-radius: 1px;
  }
}
@media (max-width: 760px) {
  .profile-card--om-meg {
    max-width: 100%;
  }
}

/* Navn — bedre tilpasset den smalere kortbredden */
.profile-card--om-meg .pc-id {
  align-self: center;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(60, 50, 40, 0.10);
}
.profile-card--om-meg .pc-name {
  font-size: 28px;
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.profile-card--om-meg .pc-name em {
  color: #6e8d6c;
}
