/* BALTSAR — light, minimal, always visible */

:root {
  --bg: #f6f5f2;
  --bg-soft: #eeede8;
  --ink: #1a1a1a;
  --ink-muted: #4a4a4a;
  --ink-faint: #8a8a8a;
  --line: rgba(26, 26, 26, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* subtle film grain */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: multiply;
}

/* header — floating glass bar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.85rem 1.5rem;
  transition: padding 0.5s var(--ease);
}

.site-header.is-scrolled {
  padding: 0.5rem 1.5rem;
}

.bar {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.7rem 0.75rem 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 26, 26, 0.07);
  background: rgba(246, 245, 242, 0.5);
  backdrop-filter: blur(16px) saturate(1.7);
  -webkit-backdrop-filter: blur(16px) saturate(1.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 10px 30px -24px rgba(26, 26, 26, 0.9);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease), padding 0.5s var(--ease);
}

.is-scrolled .bar {
  padding: 0.55rem 0.75rem 0.55rem 1.1rem;
  border-color: rgba(26, 26, 26, 0.11);
  background: rgba(246, 245, 242, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 14px 34px -26px rgba(26, 26, 26, 1);
}

/* dot grain caught in the glass */
.bar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: radial-gradient(var(--ink) 0.5px, transparent 0.6px);
  background-size: 4px 4px;
  opacity: 0.045;
}

/* light passes over the glass when you come near */
.bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: linear-gradient(
    100deg,
    transparent 40%,
    rgba(255, 255, 255, 0.8) 50%,
    transparent 60%
  );
  background-size: 250% 100%;
  background-position: 130% 0;
  opacity: 0;
  transition: opacity 0.4s var(--ease), background-position 1.2s var(--ease-out);
}

.bar:hover::after {
  opacity: 1;
  background-position: -30% 0;
}

/* site state readout */
.bar-state {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  margin-left: 1.4rem;
}

.bar-state-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.bar-meter {
  position: relative;
  width: 46px;
  height: 7px;
  background-image: repeating-linear-gradient(
    to right,
    rgba(26, 26, 26, 0.2) 0 2px,
    transparent 2px 4px
  );
}

.bar-meter b {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to right,
    var(--ink) 0 2px,
    transparent 2px 4px
  );
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s steps(12, end) 0.35s;
}

/* scroll readout along the bottom of the glass */
.bar-scroll {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 0;
  height: 2px;
  overflow: hidden;
}

.bar-scroll span {
  display: block;
  height: 100%;
  background-image: radial-gradient(var(--ink) 0.7px, transparent 0.9px);
  background-size: 4px 4px;
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0.35;
  transition: transform 0.15s linear;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.3s var(--ease);
}

.logo img {
  display: block;
  height: 14px;
  width: auto;
  image-rendering: -webkit-optimize-contrast;
}

.logo:hover {
  opacity: 0.55;
}

/* status light — the site is being built, not finished */
.led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.9;
  animation: led 6s steps(1, end) infinite;
}

@keyframes led {
  0%, 84% { opacity: 0.9; }
  85%, 87% { opacity: 0.15; }
  88%, 90% { opacity: 0.9; }
  91%, 93% { opacity: 0.15; }
  94%, 100% { opacity: 0.9; }
}

.nav {
  display: flex;
  gap: 0.35rem;
}

.nav a {
  position: relative;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  background: rgba(26, 26, 26, 0.045);
}

/* underline resolves dot by dot */
.nav a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.32rem;
  height: 2px;
  background-image: radial-gradient(var(--ink) 0.7px, transparent 0.9px);
  background-size: 4px 4px;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.4s steps(5, end);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  clip-path: inset(0 0 0 0);
}

/* hero */
.hero {
  padding: 5.5rem 1.5rem 1.5rem;
}

.hero-line {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* works */
.works {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  padding: 0.5rem 1.5rem 3rem;
  max-width: 1080px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .works {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.work {
  display: block;
  color: inherit;
  text-decoration: none;
}

.work:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.work-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

.work-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--ink) 0.5px, transparent 0.6px);
  background-size: 5px 5px;
  opacity: 0;
  transition: opacity 0.45s var(--ease), background-size 0.45s steps(4, end);
}

.work:hover .work-media::after,
.work:focus-visible .work-media::after {
  opacity: 0.38;
  background-size: 3px 3px;
}

.work-open {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 1rem 0.85rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.62), transparent);
  transform: translateY(100%);
  transition: transform 0.45s var(--ease-out);
}

.work:hover .work-open,
.work:focus-visible .work-open {
  transform: translateY(0);
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.1s var(--ease-out), filter 0.6s var(--ease);
  filter: saturate(0.94) contrast(1.02);
}

.work:hover .work-media img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.04);
}

.work-meta {
  padding-top: 0.9rem;
}

.work-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.work-title-row h2 {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pct {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.work[data-progress="0"] .pct {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-faint);
}


/* progress bar — more visible, especially high % */
.progress {
  height: 2px;
  background: var(--line);
  overflow: hidden;
  border-radius: 1px;
  margin-top: 0.15rem;
}

.progress-fill {
  height: 100%;
  width: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}

.progress-fill.is-on {
  transform: scaleX(calc(var(--p) / 100));
  transition: transform 1.1s var(--ease-out);
}

/* one-line under each work — clear, readable */
.work-line {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-muted);
}

/* about — impossible to miss */
.about {
  max-width: 26rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  text-align: center;
  scroll-margin-top: 5rem;
  border-top: 1px solid var(--line);
}

.about-heading {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.about-lead {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.about-more {
  margin-top: 1.25rem;
}

.about-more[hidden] {
  display: none;
}

.about-text {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 1rem;
}

.about-text--muted {
  color: var(--ink-muted);
  margin-bottom: 0;
}

.about-text a {
  color: var(--ink-muted);
  text-decoration: none;
  padding-bottom: 3px;
  background-image: radial-gradient(var(--ink) 0.6px, transparent 0.8px);
  background-size: 4px 4px;
  background-repeat: repeat-x;
  background-position: 0 100%;
  transition: color 0.3s var(--ease), background-size 0.35s steps(3, end);
}

.about-text a:hover,
.about-text a:focus-visible {
  color: var(--ink);
  background-size: 3px 4px;
}

.about-toggle {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin-top: 1.5rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  cursor: pointer;
  position: relative;
  transition: color 0.3s var(--ease);
}

.about-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.about-toggle:hover {
  color: var(--ink);
}

.about-toggle:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.about-link {
  margin-top: 1.75rem;
}

.about-link a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.3s var(--ease);
  position: relative;
}

.about-link a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.about-link a:hover {
  color: var(--ink);
}

.about-link a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* footer — quiet pixel field */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 2rem;
  padding: 4.5rem 1.5rem 2.75rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.footer-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  image-rendering: pixelated;
  opacity: 0.55;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.1rem;
  justify-items: center;
}

.footer-name {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-social {
  display: flex;
  gap: 0.35rem;
}

.footer-social a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

.footer-social svg {
  width: 0.85rem;
  height: 0.85rem;
  display: block;
  flex: 0 0 auto;
}

.footer-social a[aria-label="X"] {
  padding: 0.45rem 0.7rem;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--ink);
  background: rgba(26, 26, 26, 0.045);
}

.footer-social a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.28rem;
  height: 2px;
  background-image: radial-gradient(var(--ink) 0.7px, transparent 0.9px);
  background-size: 4px 4px;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.4s steps(5, end);
}

.footer-social a:hover::after,
.footer-social a:focus-visible::after {
  clip-path: inset(0 0 0 0);
}

/* share — compact, with a reason to pass it on */
.share {
  margin-top: 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.share-hook {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.7rem;
}

.share-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  align-items: center;
}

.share-link {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.35rem 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(246, 245, 242, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.share-url {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
}

.share-copy,
.share-native,
.share-icon {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease);
}

.share-copy {
  color: var(--bg);
  background: var(--ink);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.share-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--bg) 0.6px, transparent 0.7px);
  background-size: 6px 6px;
  opacity: 0;
  transition: opacity 0.35s var(--ease), background-size 0.35s steps(4, end);
}

.share-copy:hover::after,
.share-copy:focus-visible::after,
.share-copy.is-copied::after {
  opacity: 0.45;
  background-size: 3px 3px;
}

.share-copy.is-copied {
  background: #2f2f2f;
}

.share-native,
.share-icon {
  color: var(--ink);
  background: rgba(26, 26, 26, 0.045);
  border: 1px solid transparent;
}

.share-native svg,
.share-icon svg {
  width: 0.85rem;
  height: 0.85rem;
  display: block;
  flex: 0 0 auto;
}

.share-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  flex: 0 0 auto;
}

.share-native:hover,
.share-native:focus-visible,
.share-icon:hover,
.share-icon:focus-visible {
  background: rgba(26, 26, 26, 0.08);
}

.share-native[hidden] {
  display: none;
}

.item .share {
  max-width: 34rem;
}

.about ~ .share {
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem 2.5rem;
  border-top: 0;
  text-align: center;
}

.about ~ .share .share-rail {
  justify-content: center;
}

.about ~ .share .share-hook {
  text-align: center;
}

@media (max-width: 639px) {
  .share-rail {
    flex-wrap: wrap;
  }

  .share-link {
    flex: 1 1 100%;
  }

  .share-native {
    flex: 1 1 auto;
  }

  .share-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
}

a:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: rgba(26, 26, 26, 0.12);
}

/* ---------- verk-sida ---------- */

.item {
  max-width: 58rem;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

.item-back {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.item-back::before {
  content: "← ";
}

.item-back:hover {
  color: var(--ink);
}

.item-head {
  margin-top: 2.5rem;
  max-width: 34rem;
}

.item-title {
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.item-line {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.item-hero {
  position: relative;
  margin-top: 2.5rem;
  aspect-ratio: 3 / 2;
  max-height: 60vh;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}

.item-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.item-hero[data-dither] img {
  opacity: 0;
}

.dither {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}

.item-hero-badge {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.4rem;
  text-align: center;
  padding: 1rem;
}

/* keeps the label readable through the dither */
.item-hero-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    ellipse 26% 24% at 50% 50%,
    rgba(246, 245, 242, 0.94) 0%,
    rgba(246, 245, 242, 0.82) 45%,
    rgba(246, 245, 242, 0) 100%
  );
}

.item-hero-pct {
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 500;
  color: rgba(26, 26, 26, 0.5);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 30px rgba(246, 245, 242, 0.95);
}

.item-hero-note {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.58);
  text-shadow: 0 0 20px rgba(246, 245, 242, 0.95);
}

/* fakta */
.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.75rem;
}

@media (min-width: 640px) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.fact {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.fact-label {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.fact-value {
  margin-top: 0.4rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.fact-bar {
  height: 2px;
  margin-top: 0.75rem;
  background: var(--line);
  border-radius: 1px;
  overflow: hidden;
}

.fact-bar-fill {
  height: 100%;
  width: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease-out);
}

/* block */
.block {
  margin-top: 4rem;
}

.block-heading {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.block-note {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* steg */
.steps,
.credits {
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.85rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.step-mark {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--ink-faint);
  align-self: center;
}

.step.is-done .step-mark {
  background: var(--ink);
  border-color: var(--ink);
}

.step-text {
  font-size: 0.95rem;
  line-height: 1.55;
}

.step.is-done .step-text {
  color: var(--ink-muted);
}

.step-state {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

.step.is-done .step-state {
  color: var(--ink);
}

/* credits */
.credit {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.credit:last-child {
  border-bottom: 0;
}

.credit-label {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.credit-value {
  font-size: 0.95rem;
  color: var(--ink);
  text-align: right;
}

/* cta */
.cta {
  margin-top: 4rem;
  padding: 2.75rem 1.75rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
}

.cta-heading {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.cta-text {
  margin: 0.75rem auto 0;
  max-width: 26rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.btn {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.9rem 2.25rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--bg) 0.6px, transparent 0.7px);
  background-size: 6px 6px;
  opacity: 0;
  transition: opacity 0.35s var(--ease), background-size 0.35s steps(4, end);
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.88;
}

.btn:hover::after,
.btn:focus-visible::after {
  opacity: 0.5;
  background-size: 3px 3px;
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

/* bilder */
.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (min-width: 640px) {
  .shots {
    grid-template-columns: repeat(3, 1fr);
  }
}

.shot {
  appearance: none;
  border: 0;
  padding: 0;
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
  cursor: zoom-in;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease-out);
}

.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--ink) 0.5px, transparent 0.6px);
  background-size: 5px 5px;
  opacity: 0;
  transition: opacity 0.4s var(--ease), background-size 0.4s steps(4, end);
}

.shot:hover img {
  transform: scale(1.04);
}

.shot:hover::after,
.shot:focus-visible::after {
  opacity: 0.32;
  background-size: 3px 3px;
}

.shot:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

/* nästa projekt — whole work, not a chapter */
.item-next {
  margin-top: 4.5rem;
  border-top: 1px solid var(--line);
}

.item-next a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 0 0.25rem;
  text-decoration: none;
  color: inherit;
}

.item-next-copy {
  min-width: 0;
}

.item-next-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.item-next-title {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 0.3s var(--ease);
}

.item-next-glyph {
  flex: 0 0 auto;
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 4px;
  width: 2.1rem;
  height: 1.1rem;
}

.item-next-glyph i {
  display: block;
  width: 5px;
  height: 5px;
  background: var(--ink);
  opacity: 0.22;
  transition: opacity 0.35s steps(3, end), transform 0.45s var(--ease-out);
}

.item-next-glyph i:nth-child(1) { transform: translateX(0); }
.item-next-glyph i:nth-child(2) {
  width: 7px;
  height: 7px;
  opacity: 0.38;
}
.item-next-glyph i:nth-child(3) {
  width: 9px;
  height: 9px;
  opacity: 0.7;
}

.item-next a:hover .item-next-title,
.item-next a:focus-visible .item-next-title {
  opacity: 0.55;
}

.item-next a:hover .item-next-glyph i,
.item-next a:focus-visible .item-next-glyph i {
  opacity: 1;
}

.item-next a:hover .item-next-glyph i:nth-child(1),
.item-next a:focus-visible .item-next-glyph i:nth-child(1) {
  transform: translateX(2px);
}

.item-next a:hover .item-next-glyph i:nth-child(2),
.item-next a:focus-visible .item-next-glyph i:nth-child(2) {
  transform: translateX(4px);
}

.item-next a:hover .item-next-glyph i:nth-child(3),
.item-next a:focus-visible .item-next-glyph i:nth-child(3) {
  transform: translateX(6px);
}

/* lightbox */
body.is-lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  animation: fade-in 0.35s var(--ease-out) both;
}

.lightbox[hidden] {
  display: none;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  appearance: none;
  border: 0;
  padding: 0;
  background: rgba(246, 245, 242, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: zoom-out;
}

.lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: min(72rem, 100%);
  max-height: 88vh;
  display: grid;
  gap: 0.85rem;
  justify-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.lightbox-caption {
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  appearance: none;
  border: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.06);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.lightbox-close:hover {
  background: rgba(26, 26, 26, 0.12);
}

.lightbox-close span {
  display: block;
  width: 0.85rem;
  height: 0.85rem;
  margin: 0 auto;
  position: relative;
}

.lightbox-close span::before,
.lightbox-close span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.lightbox-close span::before { transform: translateY(-50%) rotate(45deg); }
.lightbox-close span::after { transform: translateY(-50%) rotate(-45deg); }

@media (max-width: 639px) {
  .site-header {
    padding: 0.65rem 0.85rem;
  }

  .bar-state {
    display: none;
  }

  .item {
    padding: 5rem 1.25rem 3rem;
  }

  .step {
    grid-template-columns: auto 1fr;
    row-gap: 0.35rem;
  }

  .step-state {
    grid-column: 2;
  }

  .cta {
    padding: 2.25rem 1.25rem;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-close {
    top: -2.5rem;
  }
}

