/* ============================================================================
   Haakon Færøyvik — portefølje.  Visuell identitet: "Verkstad".
   Redaksjonelt/teknisk, arktisk-varmt papir, ember-aksent, Fraunces display.
   Sjølvhosta fonts + anime.js. Ingen eksterne kall.
   ========================================================================== */

/* --- Sjølvhosta variable fonts (assets/fonts/, kopiert til dist/fonts/) --- */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-var.woff2") format("woff2");
  font-weight: 300 700;
  font-stretch: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "InterVar";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* fargeverd */
  --paper:    #f4efe5;   /* varmt arktisk papir */
  --paper-2:  #ece5d7;   /* nedsenka felt */
  --card:     #fbf8f1;   /* kort/flate */
  --ink:      #191510;   /* varm nær-svart */
  --ink-2:    #4c463b;   /* mjuk tekst */
  --muted:    #837a6b;   /* dempa */
  --hair:     #ddd4c2;   /* hårstrek */
  --hair-2:   #cabfa8;
  --ember:    #d1451b;   /* signal-aksent (ember/rust) */
  --ember-dk: #a83513;
  --frost:    #2c5d5a;   /* sekundær, arktisk teal */
  --ok:       #4b7a52;
  --draft:    #9a7b3f;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "InterVar", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1080px;
  --measure: 62ch;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.68 var(--sans);
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtil papirkorn — bryt "flat/KI"-følelsen, ingen ekstern fil */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--ember); color: #fff; }

h1, h2, h3, .display { font-family: var(--serif); font-weight: 550; letter-spacing: -0.015em; }

/* ============================ TOPPLINJE ============================ */
.masthead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0 0; gap: 20px;
}
.masthead .mark {
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.masthead .mark .dot { color: var(--ember); }
.masthead nav { display: flex; gap: 22px; font-size: .82rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); font-weight: 600; }
.masthead nav a { position: relative; padding-bottom: 2px; }
.masthead nav a::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1.5px; width: 0;
  background: var(--ember); transition: width .22s ease;
}
.masthead nav a:hover { color: var(--ink); }
.masthead nav a:hover::after { width: 100%; }

/* ============================ FULLSKJERM-HERO (forside) ============================ */
/* Portrett bak namnet. Bryt ut av .wrap til full breidd. Topplinja ligg over. */
.wrap { position: relative; }

.hero-full {
  position: relative;
  width: 100vw; left: 50%; margin: 0 0 0 -50vw;   /* flush heilt til toppen – ingen kvit stripe */
  height: 100svh; min-height: 540px;
  display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
}
.hero-photo { position: absolute; inset: 0; z-index: 0; will-change: transform; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 32%;
  display: block;
}
.hero-shade {
  position: absolute; inset: 0; z-index: 1; will-change: opacity;
  /* berre nede – lat bildet fylle ut oppe. Nok mørke til at namnet er lesbart. */
  background: linear-gradient(to top, rgba(20,16,11,.82) 0%, rgba(20,16,11,.34) 26%,
                                      rgba(20,16,11,0) 52%);
}
.hero-content {
  position: relative; z-index: 2; width: 100%;
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px clamp(52px, 9svh, 108px);
  will-change: transform, opacity;
}
.hero-content h1 {
  color: #fdfaf3; font-size: clamp(3rem, 10vw, 7.4rem); line-height: .93;
  letter-spacing: -0.035em; font-weight: 500; margin: 0 0 .22em;
  font-variation-settings: "opsz" 144; max-width: 16ch;
  text-shadow: 0 2px 40px rgba(0,0,0,.35);
}
.hero-content .tagline {
  color: rgba(253,250,243,.92); font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  line-height: 1.45; max-width: 40ch; margin: 0; font-weight: 430;
  text-shadow: 0 1px 20px rgba(0,0,0,.4);
}
/* scroll-hint */
.scroll-cue {
  position: absolute; z-index: 2; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  color: rgba(253,250,243,.8); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; font-weight: 600; will-change: opacity;
}
.scroll-cue i {
  width: 1px; height: 34px; background: rgba(253,250,243,.6);
  position: relative; overflow: hidden;
}
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -60%; width: 1px; height: 60%;
  background: var(--ember); animation: cue 1.7s ease-in-out infinite;
}
@keyframes cue { 0% { top:-60%; } 60%,100% { top:110%; } }

/* Forside: heroen skal vere reint bilde + berre namnet. Topplinja (mark + nav med
   GitHub/CV) er SKJULT til du har scrolla forbi bildet, og glir så inn som fast, mørk bar. */
body.home .masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  padding: 13px 28px;
  opacity: 0; transform: translateY(-10px); pointer-events: none;
  transition: opacity .38s ease, transform .38s ease;
}
body.home .masthead::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(244,239,229,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hair);
}
body.home .masthead .mark { color: var(--ink); }
body.home .masthead .mark .dot { color: var(--ember); }
body.home .masthead nav a { color: var(--muted); }
body.home .masthead nav a:hover { color: var(--ink); }
body.home .masthead.solid { opacity: 1; transform: none; pointer-events: auto; }
body.home .masthead.solid .mark { color: var(--ink); }
body.home .masthead.solid nav a { color: var(--muted); }
body.home .masthead.solid nav a:hover { color: var(--ink); }
/* første seksjon etter full-hero treng litt luft */
body.home .projects { margin-top: clamp(70px, 11vh, 130px); }

@media (prefers-reduced-motion: reduce) {
  .scroll-cue i::after { animation: none; }
}

/* ============================ HERO (fallback utan portrett) ============================ */
.hero { padding: clamp(64px, 13vh, 150px) 0 clamp(46px, 7vh, 84px); }
.hero .eyebrow {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ember-dk); font-weight: 700; margin: 0 0 22px;
  display: flex; align-items: center; gap: 12px;
}
.hero .eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--ember); display: inline-block; }
.hero h1 {
  font-size: clamp(2.9rem, 9vw, 6.6rem);
  line-height: .96; margin: 0 0 .28em;
  letter-spacing: -0.035em;
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  max-width: 15ch;
}
.hero h1 .em { font-style: italic; color: var(--ember); font-weight: 480; }
.hero .tagline {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.5; color: var(--ink-2); max-width: 34ch; margin: 0 0 34px;
  font-weight: 420;
}
.links { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pill {
  font-size: .92rem; font-weight: 550;
  padding: 11px 22px; border: 1.5px solid var(--ink); border-radius: 999px;
  color: var(--ink); background: transparent;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.pill:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.pill.cv { background: var(--ember); border-color: var(--ember); color: #fff; }
.pill.cv:hover { background: var(--ember-dk); border-color: var(--ember-dk); }
.pill .arw { transition: transform .18s ease; }
.pill:hover .arw { transform: translateX(3px); }

/* ============================ SEKSJONAR ============================ */
section { margin-top: clamp(58px, 9vh, 110px); }
.section-head {
  display: flex; align-items: baseline; gap: 16px; margin: 0 0 34px;
  padding-bottom: 14px; border-bottom: 1px solid var(--hair);
}
.section-head .idx {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ember-dk); font-weight: 700; font-variant-numeric: tabular-nums;
}
.section-head h2 { font-size: 1.05rem; font-weight: 600; margin: 0; letter-spacing: 0; }

/* ============================ PROSJEKT (zigzag to-kolonne) ============================ */
.proj-rows { display: flex; flex-direction: column; gap: clamp(30px, 5vh, 60px); }
.prow {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
/* annakvar: bilde vekslar side. data-side=left → tekst til høgre, bilde til venstre. */
.prow[data-side="left"] .prow-text  { order: 2; }
.prow[data-side="left"] .prow-media { order: 1; }

.prow-text { min-width: 0; }
.prow-meta { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.prow-num {
  font-family: var(--serif); font-size: 1.15rem; color: var(--ember);
  font-variant-numeric: tabular-nums; font-weight: 600;
}
.prow-text h3 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.03; margin: 0 0 12px;
  font-weight: 530; letter-spacing: -0.025em;
}
.prow-text h3 a { transition: color .2s ease; }
.prow-text h3 a:hover { color: var(--ember-dk); }
.prow-sum { color: var(--ink-2); margin: 0 0 18px; font-size: 1.05rem; max-width: 46ch; }
.prow-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem;
  color: var(--ember-dk); transition: gap .2s ease;
}
.prow-link:hover { gap: 13px; }

/* media-panel: mindre boks, fast ramme; bilde-lag stablast for rotasjon */
.prow-media {
  position: relative; display: block; aspect-ratio: 4 / 3;
  border-radius: 14px; overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--hair);
}
.rot-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; opacity: 0;
  transform-origin: center; backface-visibility: hidden;
}
.rot-img.is-on { opacity: 1; }               /* første synleg før JS tek over */
/* subtil hover-zoom på det aktive laget */
.prow-media:hover .rot-img.is-on { }         /* rotasjon eig transform; ikkje kolliderer */
.prow-media.empty { display: flex; align-items: center; justify-content: center; }
.prow-media.empty::after {
  content: attr(data-mono); font-family: var(--serif); font-style: italic;
  color: var(--hair-2); font-size: 3rem; font-weight: 500;
}
.prow-go {
  position: absolute; right: 14px; bottom: 12px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(25,21,16,.55); color: #fff; backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.prow-media:hover .prow-go { opacity: 1; transform: translateY(0); }
.prow-media:hover .prow-go { background: var(--ember); }

/* ============================ OM MEG ============================ */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about.has-photo .about-text { max-width: none; }
.about .lead { font-family: var(--serif); font-size: clamp(1.4rem,2.6vw,2rem);
  line-height: 1.28; color: var(--ink); margin: 0 0 .7em; font-weight: 480; letter-spacing: -0.01em; }
.about .body p { font-size: 1.05rem; color: var(--ink-2); margin: 0 0 1.05em; max-width: var(--measure); }
.about .body p:last-child { margin-bottom: 0; }
.about-photo {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--hair);
  background: var(--paper-2); aspect-ratio: 4 / 5;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block;
  object-position: 88% center; }   /* du er ute til høgre i fotoet – vis den delen */

/* ============================ BADGE / TAGS ============================ */
.badge {
  font-size: .66rem; text-transform: uppercase; letter-spacing: .1em;
  padding: 3px 10px; border-radius: 999px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.aktiv  { background: rgba(75,122,82,.13);  color: var(--ok); }
.badge.ferdig { background: rgba(44,93,90,.13);   color: var(--frost); }
.badge.utkast { background: rgba(154,123,63,.15); color: var(--draft); }
.period { font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: .76rem; color: var(--ink-2);
  padding: 3px 11px; border-radius: 7px; border: 1px solid var(--hair);
  background: rgba(255,255,255,.4);
}

/* ============================ PROSJEKTSIDE ============================ */
.back {
  display: inline-flex; align-items: center; gap: 8px; margin: 30px 0 0;
  color: var(--muted); font-size: .9rem; font-weight: 550;
  transition: gap .2s ease, color .2s ease;
}
.back:hover { color: var(--ember); gap: 12px; }

.project-hero { padding: 40px 0 20px; }
.project-hero .meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.project-hero .meta .repo { color: var(--ember-dk); font-size: .88rem; font-weight: 600; }
.project-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 0 0 18px; line-height: 1;
  letter-spacing: -0.03em; font-weight: 500; font-variation-settings: "opsz" 144; max-width: 16ch;
}
.project-hero .summary {
  font-family: var(--serif); font-size: clamp(1.2rem,2.4vw,1.6rem); color: var(--ink-2);
  max-width: 42ch; margin: 0 0 20px; line-height: 1.35; font-weight: 440;
}

/* hero med video/bilete: full bleed-ish media over innhaldet */
.hero-media {
  margin: 8px 0 44px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--hair); background: var(--paper-2); line-height: 0;
}
.hero-media img, .hero-media video { width: 100%; height: auto; display: block; }

article.project .content { max-width: 760px; margin: 0 auto; }

/* ============================ INNHALDSBLOKKER ============================ */
.block { margin: 32px 0; }
.block.text p { max-width: var(--measure); margin: 0 0 1.15em; font-size: 1.08rem; color: var(--ink-2); }
.block.text p:first-child { margin-top: 0; }
.block-heading {
  font-size: clamp(1.5rem, 3vw, 2rem); margin: 56px 0 6px; font-weight: 530;
  letter-spacing: -0.02em; max-width: var(--measure);
}
.block-heading::before {
  content: ""; display: block; width: 40px; height: 3px; background: var(--ember);
  margin-bottom: 18px; border-radius: 2px;
}
.block.quote {
  margin: 48px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--ember);
  font-family: var(--serif); font-size: clamp(1.35rem,2.6vw,1.7rem); font-style: italic;
  color: var(--ink); max-width: 44ch; line-height: 1.35; font-weight: 450;
}
.block.quote cite { display: block; margin-top: 14px; font-family: var(--sans);
  font-size: .9rem; font-style: normal; color: var(--muted); font-weight: 600; }

figure { margin: 0; }
.block.image img, .block.video video, .block.gallery img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); border: 1px solid var(--hair); background: var(--paper-2);
}
figcaption { font-size: .88rem; color: var(--muted); margin-top: 12px; }
.block.image figcaption, .block.video figcaption { text-align: center; }

.block.gallery { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.block.gallery figcaption { text-align: left; }

.block.video video.loop, .block.video video { aspect-ratio: 16 / 9; object-fit: cover; }
.yt-facade {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background-size: cover; background-position: center;
  border-radius: var(--radius); border: 1px solid var(--hair);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.yt-facade .yt-play {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(25,21,16,.8); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; padding-left: 5px; transition: background .15s, transform .15s;
}
.yt-facade:hover .yt-play, .yt-facade:focus .yt-play { background: var(--ember); transform: scale(1.08); }
.block.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }

/* --- scroll-scrubba video: høg track + sticky videoflate --- */
.block.video-scrub { margin: 40px 0; }
.scrub { position: relative; height: calc(var(--scrub-vh, 200) * 1svh); }
.scrub-pin {
  position: sticky; top: 0; height: 100svh;
  display: flex; align-items: center; justify-content: center;
}
.scrub-video {
  width: 100%; height: auto; max-height: 82svh; display: block;
  border-radius: var(--radius); border: 1px solid var(--hair); background: #0e0c09;
  object-fit: contain;
}
/* redusert rørsle / fallback: dropp track-høgda, vis videoen normalt */
.scrub.no-scrub { height: auto; }
.scrub.no-scrub .scrub-pin { position: static; height: auto; }

/* ============================ CV ============================ */
article.cv { max-width: 820px; margin: 0 auto; }
article.cv .cv-head { display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin: 20px 0 30px; }
article.cv .cv-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 0; letter-spacing: -0.03em; }
.cv-doc { display: flex; flex-direction: column; gap: 26px; }
.cv-doc img { width: 100%; height: auto; display: block; border-radius: 10px;
  border: 1px solid var(--hair); box-shadow: 0 16px 44px -26px rgba(25,21,16,.5); }

/* ============================ FOOTER ============================ */
footer {
  margin-top: clamp(80px,12vh,140px); padding: 34px 0 60px; border-top: 1px solid var(--hair);
  color: var(--muted); font-size: .86rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
footer a { color: var(--ink-2); font-weight: 600; }
footer a:hover { color: var(--ember); }

/* ============================ RØRSLE ============================ */
/* Skjul reveal-element FØR animasjon berre når JS + rørsle er på (html.anim,
   sett av inline-script). Utan JS / med redusert rørsle: alt synleg med ein gong. */
.anim .reveal { opacity: 0; will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim .reveal { opacity: 1 !important; transform: none !important; }
  * { transition: none !important; }
}

/* native sidebyte-overgang (Chromium) — mjuk kryssfade + morf av cover */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .38s; }

/* ============================ MOBIL ============================ */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 22px; }
  .about-photo { aspect-ratio: 3 / 2; max-height: 320px; order: -1; }
  /* prosjekt: stable, bilde alltid over teksten uansett side */
  .prow { grid-template-columns: 1fr; gap: 16px; }
  .prow-text, .prow[data-side="left"] .prow-text { order: 2; }
  .prow-media, .prow[data-side="left"] .prow-media { order: 1; }
  .prow-media { aspect-ratio: 16 / 10; }
  .prow-go { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .masthead nav { gap: 14px; }
  .block.gallery { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
}

/* ============================ ERFARING (tidslinje, forside-botn) ============================ */
.exp-list { list-style: none; margin: 0; padding: 0; position: relative; }

/* ryggrad: hårstrek som ember-linja teiknar seg nedover medan du scrollar (app.js) */
.exp-spine {
  position: absolute; left: 21px; top: 12px; bottom: 12px; width: 2px;
  background: var(--hair); border-radius: 2px; overflow: hidden;
}
.exp-spine-fill {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--ember) 0%, var(--ember-dk) 100%);
  transform-origin: top; transform: scaleY(1);
}
.anim .exp-spine-fill { transform: scaleY(var(--exp-p, 0)); transition: transform .14s linear; }

.exp-item {
  display: grid; grid-template-columns: 44px 190px 1fr;
  gap: 0 clamp(18px, 3vw, 40px);
  padding-bottom: clamp(42px, 7vh, 84px);
}
.exp-item:last-child { padding-bottom: 0; }

/* prikk på ryggrada – tenner seg når linja passerer */
.exp-rail { position: relative; }
.exp-dot {
  position: absolute; left: 14px; top: 9px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--hair-2);
  display: grid; place-items: center;
  transition: border-color .4s ease, box-shadow .4s ease,
              transform .45s cubic-bezier(.2,.9,.25,1.5);
}
.exp-dot i { width: 6px; height: 6px; border-radius: 50%; background: var(--hair-2);
  transition: background .4s ease; }
.exp-item.is-lit .exp-dot {
  border-color: var(--ember); transform: scale(1.2);
  box-shadow: 0 0 0 7px rgba(209,69,27,.11);
}
.exp-item.is-lit .exp-dot i { background: var(--ember); }

/* venstrekolonne: årstal + stor gjennomsiktig forkorting som fargast når prikken tenner */
.exp-side { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 4px; }
.exp-period {
  font-variant-numeric: tabular-nums; font-size: .96rem; font-weight: 650;
  color: var(--ink-2); letter-spacing: .02em;
}
.exp-now {
  font-size: .64rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 700;
  color: var(--ok); background: rgba(75,122,82,.14); padding: 3px 10px; border-radius: 999px;
}
.exp-abbr {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(3.2rem, 6.5vw, 5.4rem); line-height: .88;
  color: transparent; -webkit-text-stroke: 1.4px var(--hair-2);
  margin-top: 4px; user-select: none;
  transition: -webkit-text-stroke-color .55s ease, transform .55s cubic-bezier(.2,.8,.2,1);
}
.exp-item.is-lit .exp-abbr { -webkit-text-stroke-color: rgba(209,69,27,.45); transform: translateX(5px); }

.exp-body { min-width: 0; }
/* «Verv»-merkelapp: skil frivillige verv frå lønna jobbar utan eiga seksjon */
.exp-kind {
  display: inline-block; margin: 0 0 9px;
  font-size: .64rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 700;
  color: var(--frost); background: rgba(44,93,90,.12);
  padding: 4px 11px; border-radius: 999px;
}
.exp-role {
  font-size: clamp(1.55rem, 3vw, 2.3rem); line-height: 1.04; margin: 0 0 5px;
  font-weight: 530; letter-spacing: -.025em;
}
.exp-org { margin: 0 0 15px; font-size: .95rem; font-weight: 650; color: var(--ember-dk); }
.exp-text { margin: 0 0 18px; color: var(--ink-2); font-size: 1.05rem; max-width: 52ch; }
.exp-tags { margin: 0; }

/* bilettripe (TTF): lett vifte + scroll-parallax (--sy frå app.js), hover løftar og dempar dei andre */
.exp-shots { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.exp-shot {
  position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3;
  border-radius: 12px; border: 1px solid var(--hair); background: var(--paper-2);
  transform: translate3d(0, var(--sy, 0px), 0) rotate(var(--rot, 0deg));
  transition: opacity .35s ease, box-shadow .35s ease;
  will-change: transform;
}
.exp-shot:nth-child(2n) { margin-top: 24px; }
.exp-shot:nth-child(1) { --rot: -.9deg; }
.exp-shot:nth-child(2) { --rot: .7deg; }
.exp-shot:nth-child(3) { --rot: -.5deg; }
.exp-shot:nth-child(4) { --rot: 1deg; }
.exp-shot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.exp-shots:hover .exp-shot:not(:hover) { opacity: .5; }
.exp-shot:hover { z-index: 2; box-shadow: 0 24px 46px -28px rgba(25,21,16,.65); }
.exp-shot:hover img { transform: scale(1.07); }
.exp-shots[data-n="1"] { grid-template-columns: minmax(0, 380px); }
.exp-shots[data-n="2"] { grid-template-columns: repeat(2, 1fr); }
.exp-shots[data-n="3"] { grid-template-columns: repeat(3, 1fr); }
.exp-shots[data-n="1"] .exp-shot { aspect-ratio: auto; margin-top: 0; --rot: -.7deg; }
.exp-shots[data-n="1"] .exp-shot img { height: auto; }
.exp-shots[data-n="1"] ~ .exp-shots-cap { margin-top: 18px; }

.exp-shots-cap { font-size: .88rem; color: var(--muted); margin: 32px 0 0; }

@media (prefers-reduced-motion: reduce) {
  .exp-dot { border-color: var(--ember); }
  .exp-dot i { background: var(--ember); }
  .exp-abbr { -webkit-text-stroke-color: rgba(209,69,27,.45); }
  .exp-shot { transform: none; }
}

@media (max-width: 860px) {
  .exp-item { grid-template-columns: 34px 1fr; padding-bottom: clamp(36px, 6vh, 60px); }
  .exp-rail { grid-row: 1 / span 2; }
  .exp-side { grid-column: 2; grid-row: 1; flex-direction: row; align-items: center;
    gap: 12px; padding-top: 2px; margin-bottom: 10px; }
  .exp-body { grid-column: 2; grid-row: 2; }
  .exp-abbr { display: none; }
  .exp-spine { left: 16px; }
  .exp-dot { left: 9px; top: 6px; }
  .exp-shots { grid-template-columns: 1fr 1fr; gap: 10px; }
  .exp-shot:nth-child(2n) { margin-top: 16px; }
  .exp-shots-cap { margin-top: 24px; }
}
