/* ZABA — Interior architecture portfolio
   Static prototype → WordPress theme later */

:root {
  --color-ink: #1a1a1a;
  --color-ink-soft: #3d3d3d;
  --color-muted: #6b6b6b;
  --color-paper: #f7f5f2;
  --color-paper-warm: #ebe6df;
  --color-line: rgba(26, 26, 26, 0.12);
  --color-nav-on-dark: #f7f5f2;
  --color-nav-bg: rgba(18, 18, 18, 0.35);
  --font-display: "Gilda Display", "Times New Roman", serif;
  --font-body: "Montserrat", "Helvetica Neue", sans-serif;
  --nav-height: 5.25rem;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --max-content: 72rem;
  --space-section: clamp(3rem, 8vw, 6rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Site header / nav ——— */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  overflow: visible;
  background: var(--color-nav-bg);
  border-bottom: 1px solid rgba(247, 245, 242, 0.12);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

/* Blur på pseudo — annars blir fixed mobilmeny relative till headern */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Startsida: nav över hero (fixed); logga alltid synlig */
.page-home .site-header {
  position: fixed;
}

.page-home .site-logo {
  color: var(--color-nav-on-dark);
  transition: color 0.35s var(--ease);
}

.page-home .site-header.is-scrolled {
  background: rgba(247, 245, 242, 0.96);
  border-bottom-color: var(--color-line);
  box-shadow: 0 1px 0 rgba(26, 26, 26, 0.06);
  color: #1a1a1a;
}

.page-home .site-header.is-scrolled .site-logo {
  color: #1a1a1a;
}

.site-header--light {
  background: rgba(247, 245, 242, 0.96);
  border-bottom-color: var(--color-line);
  color: var(--color-ink);
  box-shadow: 0 1px 0 rgba(26, 26, 26, 0.04);
}

.site-header--light.is-scrolled {
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.06);
}

.site-header--light .site-nav a,
.site-header--light .site-nav span,
.site-header--light .site-logo,
.site-header--light .nav-toggle {
  color: var(--color-ink);
}

.site-header__inner {
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  align-self: center;
  color: var(--color-ink);
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
  transition: opacity 0.35s var(--ease);
}

.site-logo:hover {
  text-decoration: none;
  opacity: 0.75;
}

/* Source PNG as-is: scale only, never crop or filter */
.site-logo__mark,
.site-footer__logo {
  display: block;
  width: auto;
  height: 3.35rem;
  max-width: min(60vw, 20rem);
  object-fit: contain;
  object-position: left center;
}

.site-footer__logo {
  height: 2.75rem;
  max-width: 15rem;
}


/* Mobile menu logo — hidden on desktop */
.site-nav__logo {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.75rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a,
.site-nav span {
  font-family: var(--font-display);
  font-size: clamp(0.9375rem, 1.85vw, 1.125rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-nav-on-dark);
  -webkit-text-stroke: 0;
  paint-order: initial;
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), opacity 0.25s var(--ease), color 0.35s var(--ease);
  cursor: pointer;
}

.site-nav a:hover {
  text-decoration: none;
  opacity: 0.85;
}

.site-nav a[aria-current="page"],
.site-nav span[aria-current="page"] {
  font-family: var(--font-display);
  font-weight: 500;
}

.page-home .site-header.is-scrolled .site-nav a,
.page-home .site-header.is-scrolled .site-nav span,
.page-home .site-header.is-scrolled .site-nav a[aria-current="page"],
.page-home .site-header.is-scrolled .site-nav span[aria-current="page"],
.page-home .site-header.is-scrolled .nav-toggle,
.page-home.is-scrolled .site-nav a,
.page-home.is-scrolled .site-nav span,
.page-home.is-scrolled .site-nav a[aria-current="page"],
.page-home.is-scrolled .site-nav span[aria-current="page"],
.page-home.is-scrolled .nav-toggle {
  color: #000 !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.65rem;
  margin-right: -0.35rem;
  cursor: pointer;
  color: var(--color-nav-on-dark);
  transition: color 0.35s var(--ease);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 1.35rem;
  height: 1px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
  box-shadow: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before,
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  opacity: 1;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: rotate(-45deg);
}

/* ——— Hero (home) ——— */

.page-home {
  background: #0e0e0e;
}

.page-home .site-main {
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
}

.page-home .home-projects {
  background: var(--color-paper);
  color: var(--color-ink);
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 28rem;
  overflow: hidden;
  background: #0e0e0e;
}

.hero__carousel {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
}

.hero__carousel.is-dragging {
  cursor: grabbing;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition: opacity 1.2s var(--ease);
  pointer-events: none;
  will-change: transform, opacity;
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

/* Drag: glid i sidled, ingen toning */
.hero__carousel.is-drag-mode .hero__slide {
  transition: none;
  opacity: 0;
  z-index: 0;
}

.hero__carousel.is-drag-mode .hero__slide.is-active,
.hero__carousel.is-drag-mode .hero__slide.is-incoming {
  opacity: 1;
}

.hero__carousel.is-drag-mode .hero__slide.is-active {
  z-index: 1;
}

.hero__carousel.is-drag-mode .hero__slide.is-incoming {
  z-index: 2;
}

/* Avslutande slide-animation efter släpp */
.hero__carousel.is-settling .hero__slide.is-active,
.hero__carousel.is-settling .hero__slide.is-incoming {
  transition: transform 0.45s var(--ease);
  opacity: 1;
}

/* Efter drag: ingen fade-flash när läge återställs */
.hero__carousel.is-instant .hero__slide {
  transition: none;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.hero__slide-link {
  display: block;
  width: 100%;
  height: 100%;
}

.hero--linked .hero__slide.is-active {
  pointer-events: auto;
}

.hero--linked .hero__carousel.is-dragging .hero__slide.is-active {
  pointer-events: none;
}

.hero__dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: none; /* Dolt tills kunden vill visa bildspelsmarkering */
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  border: 1px solid rgba(247, 245, 242, 0.7);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}

.hero__dot[aria-selected="true"] {
  background: rgba(247, 245, 242, 0.9);
}

/* ——— Inner pages ——— */

.site-main {
  min-height: 60vh;
}

.page-hero {
  padding: var(--space-section) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--color-line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin: 0;
}

.page-hero p {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: var(--color-muted);
  font-size: 1.0625rem;
}

.content-wrap {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: var(--space-section) clamp(1.25rem, 4vw, 3rem);
}

/* 404 */

.error-404__hero {
  text-align: left;
}

.error-404__code {
  margin-bottom: 0.85rem;
}

.error-404__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  padding-top: 0;
}

.error-404__link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 0.25rem 0;
  transition: border-color 0.25s var(--ease), opacity 0.25s var(--ease);
}

.error-404__link:hover {
  border-bottom-color: var(--color-ink);
  text-decoration: none;
  opacity: 0.75;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}

.about-grid__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--color-paper-warm);
}

.about-grid__body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}

.about-grid__body p {
  margin: 0 0 1.15rem;
  color: var(--color-ink-soft);
}

.about-meta {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-line);
  display: grid;
  gap: 1rem;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.about-meta strong {
  display: block;
  font-weight: 500;
  color: var(--color-ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

/* Projects page — Featured + Selected References */

.page-projects .site-main.projects-page {
  max-width: none;
  margin: 0;
  padding: 0;
}

.projects-page {
  max-width: none;
  margin: 0;
  padding: 0;
}

.projects-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 2.2fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 4vw, 3rem);
}

/* Featured Projects — white band, full bleed */
.projects-section:not(.projects-section--references) {
  max-width: none;
  width: 100%;
  margin: 0;
  background: #fff;
  padding-left: max(clamp(1.25rem, 4vw, 3rem), calc((100% - 1280px) / 2 + clamp(1.25rem, 4vw, 3rem)));
  padding-right: max(clamp(1.25rem, 4vw, 3rem), calc((100% - 1280px) / 2 + clamp(1.25rem, 4vw, 3rem)));
  box-sizing: border-box;
}

.projects-section + .projects-section {
  margin-top: 0;
  padding-top: clamp(4.5rem, 9vw, 7.5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.projects-eyebrow {
  margin: 0 0 1.1rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.projects-headline {
  margin: 0;
  max-width: 11ch;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 3.4vw, 3.15rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.projects-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: inherit;
  text-decoration: none;
}

.projects-cta:hover {
  text-decoration: none;
}

.projects-cta__line {
  display: block;
  width: 2.75rem;
  height: 1px;
  background: currentColor;
  transition: width 0.25s var(--ease);
}

.projects-cta:hover .projects-cta__line {
  width: 3.5rem;
}

.projects-featured {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

/* Children join the same grid as featured cards */
.projects-more {
  display: contents;
}

.projects-more[hidden] {
  display: none;
}

.projects-section.is-more-open .projects-cta[data-projects-more] {
  display: none;
}

.projects-section.is-more-open .projects-more .featured-project {
  animation: projects-more-in 0.5s var(--ease) both;
}

.projects-section.is-more-open .projects-more .featured-project:nth-child(2) {
  animation-delay: 0.06s;
}

.projects-section.is-more-open .projects-more .featured-project:nth-child(3) {
  animation-delay: 0.12s;
}

.projects-section.is-more-open .projects-more .featured-project:nth-child(4) {
  animation-delay: 0.18s;
}

.projects-section.is-more-open .projects-more .featured-project:nth-child(5) {
  animation-delay: 0.24s;
}

.projects-section.is-more-open .projects-more .featured-project:nth-child(6) {
  animation-delay: 0.3s;
}

.projects-section.is-more-open .projects-more .featured-project:nth-child(7) {
  animation-delay: 0.36s;
}

.projects-section.is-more-open .projects-more .featured-project:nth-child(8) {
  animation-delay: 0.42s;
}

@keyframes projects-more-in {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.featured-project {
  min-width: 0;
}

.featured-project__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.featured-project__link:hover {
  text-decoration: none;
}

.featured-project__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-paper-warm);
}

.featured-project__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.featured-project__link:hover .featured-project__media img {
  transform: scale(1.03);
}

.featured-project__meta {
  margin-top: 0.85rem;
}

.featured-project__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}

.featured-project__place,
.featured-project__year {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: 0.01em;
  text-transform: none;
}

.featured-project__year {
  margin-top: 0.05rem;
}

.projects-empty {
  grid-column: 1 / -1;
  color: var(--color-muted);
}

.projects-page--all .projects-section {
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.projects-references {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  padding-top: 0.35rem;
}

.ref-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ref-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 0.86rem;
  line-height: 1.35;
}

.ref-list li:first-child {
  padding-top: 0;
}

.ref-list__name {
  color: var(--color-ink);
}

.ref-list__year {
  flex-shrink: 0;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}

/* Legacy archive grid (kept for CPT archive / singles context) */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-card a:hover {
  text-decoration: none;
}

.project-card__image {
  overflow: hidden;
  background: var(--color-paper-warm);
  aspect-ratio: 4 / 3;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.project-card a:hover .project-card__image img {
  transform: scale(1.03);
}

.project-card__title {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.project-card__meta {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Single project */

.page-project-single .site-main.project-single {
  padding: 0;
  max-width: none;
}

.project-usps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.25rem, 4vw, 3rem);
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-line);
}

.project-usps__item {
  min-width: 0;
}

.project-usps__title {
  display: block;
  margin: 0 0 0.35rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-ink);
}

.project-usps__text {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  color: var(--color-muted);
}

.project-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(72vh, 44rem);
  background: #fff;
}

.project-split__media {
  position: relative;
  min-height: 22rem;
  background: var(--color-paper-warm);
  overflow: hidden;
}

.project-split__media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.project-carousel {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
}

.project-carousel.is-dragging {
  cursor: grabbing;
}

.project-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition: opacity 1.2s var(--ease);
  pointer-events: none;
  will-change: transform, opacity;
}

.project-carousel__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.project-carousel.is-drag-mode .project-carousel__slide {
  transition: none;
  opacity: 0;
  z-index: 0;
}

.project-carousel.is-drag-mode .project-carousel__slide.is-active,
.project-carousel.is-drag-mode .project-carousel__slide.is-incoming {
  opacity: 1;
}

.project-carousel.is-drag-mode .project-carousel__slide.is-active {
  z-index: 1;
}

.project-carousel.is-drag-mode .project-carousel__slide.is-incoming {
  z-index: 2;
}

.project-carousel.is-settling .project-carousel__slide.is-active,
.project-carousel.is-settling .project-carousel__slide.is-incoming {
  transition: transform 0.45s var(--ease);
  opacity: 1;
}

.project-carousel.is-instant .project-carousel__slide {
  transition: none;
}

.project-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.project-carousel {
  cursor: zoom-in;
}

.project-carousel__expand {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: #fff;
  background: rgba(14, 14, 14, 0.72);
  pointer-events: none;
  transition: background 0.3s var(--ease);
}

.project-split__media:hover .project-carousel__expand {
  background: rgba(14, 14, 14, 0.88);
}

.project-carousel__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.55rem 0.85rem;
  background: rgba(14, 14, 14, 0.38);
  border-radius: 999px;
}

.project-carousel__dots .hero__dot {
  width: 0.55rem;
  height: 0.55rem;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  background: transparent;
}

.project-carousel__dots .hero__dot[aria-selected="true"] {
  background: #fff;
}

@media (max-width: 720px) {
  .project-carousel__expand {
    top: 0.75rem;
    right: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .project-carousel__expand svg {
    width: 17px;
    height: 17px;
  }

  .project-carousel__dots {
    bottom: 0.75rem;
  }
}

/* Lightbox */

.zaba-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: rgba(14, 14, 14, 0.92);
}

.zaba-lightbox[hidden] {
  display: none !important;
}

body.lightbox-open {
  overflow: hidden;
}

.zaba-lightbox__figure {
  margin: 0;
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zaba-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.zaba-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.zaba-lightbox__close:hover {
  opacity: 1;
}

.zaba-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.zaba-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

.zaba-lightbox__prev {
  left: clamp(0.75rem, 2vw, 1.5rem);
}

.zaba-lightbox__next {
  right: clamp(0.75rem, 2vw, 1.5rem);
}

.zaba-lightbox__nav[hidden] {
  display: none !important;
}

.project-split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.75rem, 5vw, 4.5rem);
}

.project-split__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.project-split__headline {
  margin: 0 0 1.35rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.project-split__body {
  max-width: 34rem;
}

.project-split__body p {
  margin: 0 0 1rem;
  color: var(--color-ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

.project-split__body p:last-child {
  margin-bottom: 0;
}

.project-split__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.75rem;
  width: fit-content;
  font-size: 0.92rem;
  color: inherit;
  text-decoration: none;
}

.project-split__cta:hover {
  text-decoration: none;
}

.project-split__cta-arrow {
  transition: transform 0.25s var(--ease);
}

.project-split__cta:hover .project-split__cta-arrow {
  transform: translateX(0.25rem);
}

.project-band {
  display: grid;
  grid-template-columns: minmax(12rem, 1.1fr) minmax(12rem, 1.2fr) auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2.25rem, 4.5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  background: #b3a69a;
  color: #fff;
}

.project-band__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  font-weight: 500;
  line-height: 1.15;
  max-width: 14ch;
}

.project-band__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.95;
  max-width: 36rem;
}

.project-band__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.project-band__btn:hover {
  background: #fff;
  color: #1a1a1a;
  text-decoration: none;
}

/* Legacy gallery helpers (archive cards still use related styles) */

.project-intro {
  max-width: 40rem;
  margin-bottom: 3rem;
}

.project-intro p {
  color: var(--color-ink-soft);
}

.project-gallery {
  display: grid;
  gap: 1.25rem;
}

.project-gallery__featured {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-paper-warm);
}

.project-gallery__featured img,
.project-gallery__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.project-gallery__grid figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-paper-warm);
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-details h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 1.5rem;
}

.contact-details dl {
  margin: 0;
}

.contact-details dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 1.25rem;
}

.contact-details dt:first-child {
  margin-top: 0;
}

.contact-details dd {
  margin: 0.35rem 0 0;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.form-field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-line);
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-ink);
  border-radius: 0;
}

.form-field textarea {
  min-height: 10rem;
  resize: vertical;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 0;
  border-color: var(--color-ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.75rem;
  border: 1px solid var(--color-ink);
  background: var(--color-ink);
  color: var(--color-paper);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
  width: fit-content;
}

.btn:hover {
  background: transparent;
  color: var(--color-ink);
  text-decoration: none;
}

.form-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-line);
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 3rem);
  background: var(--color-paper);
  color: var(--color-ink);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(12rem, 1.4fr) 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  max-width: var(--max-content);
  margin: 0 auto;
}

.site-footer__brand-col {
  gap: 0.55rem;
}

.site-footer__brand {
  display: block;
  color: #000;
  text-decoration: none;
  line-height: 1;
  width: fit-content;
}

.site-footer__brand:hover {
  text-decoration: none;
  opacity: 0.7;
}

.site-footer__logo {
  height: 2.75rem;
  max-width: 15rem;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.site-footer__contact {
  gap: 0.25rem;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.site-footer__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.site-footer__col a,
.site-footer__col p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-ink);
  text-decoration: none;
}

.site-footer__tagline {
  margin: 0;
  max-width: 22rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.site-footer__col a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer__social a:hover {
  text-decoration: none;
}

.site-footer__social a:hover span {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.page-home .site-footer {
  position: relative;
  z-index: 2;
}

/* ——— Responsive ——— */

@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  /* Mobile sticky header + menu logo */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120;
  }

  body:not(.page-home) {
    padding-top: var(--nav-height);
  }

  .site-nav__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 0.5rem;
    padding: 0;
    line-height: 0;
    font-size: 0;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    border-bottom: 0;
    color: inherit;
  }

  .site-nav__logo:hover {
    text-decoration: none;
    opacity: 0.75;
    border-bottom: 0;
  }

  .site-nav__logo-mark {
    display: block;
    width: auto;
    height: 2.85rem;
    max-width: min(70vw, 14rem);
    object-fit: contain;
  }


  .nav-toggle {
    display: block;
    position: relative;
    z-index: 121;
  }

  body.nav-open {
    overflow: hidden;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    width: 100%;
    height: 100%;
    height: 100dvh;
    margin: 0;
    padding: calc(var(--nav-height) + 2.5rem) 1.5rem 3rem;
    background: rgba(14, 14, 14, 0.97);
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 1.75rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  }

  .site-header--light .site-nav,
  .page-home .site-header.is-scrolled .site-nav,
  .page-home.is-scrolled .site-nav {
    background: rgba(247, 245, 242, 0.98);
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav > a:not(.site-nav__logo),
  .site-nav > span {
    font-size: clamp(1.15rem, 5vw, 1.5rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-nav-on-dark);
    padding: 0.25rem 0;
  }

  .site-header--light .site-nav a,
  .site-header--light .site-nav span,
  .page-home .site-header.is-scrolled .site-nav a,
  .page-home .site-header.is-scrolled .site-nav span,
  .page-home.is-scrolled .site-nav a,
  .page-home.is-scrolled .site-nav span {
    color: #1a1a1a;
  }

  .page-home .site-header.is-scrolled .site-logo,
  .page-home.is-scrolled .site-logo,
  .page-home .site-header.is-scrolled .nav-toggle,
  .page-home.is-scrolled .nav-toggle {
    color: #1a1a1a;
  }

  body.nav-open .site-header {
    background: rgba(14, 14, 14, 0.97);
    border-bottom-color: rgba(247, 245, 242, 0.12);
    box-shadow: none;
  }

  body.nav-open .site-header--light,
  body.nav-open.page-home.is-scrolled .site-header,
  body.nav-open .page-home .site-header.is-scrolled {
    background: rgba(247, 245, 242, 0.98);
    border-bottom-color: var(--color-line);
  }

  body.nav-open .site-header::before {
    display: none;
  }

  .page-home.nav-open:not(.is-scrolled) .site-logo,
  .page-home.nav-open:not(.is-scrolled) .nav-toggle {
    color: var(--color-nav-on-dark) !important;
  }

  body.nav-open .site-header--light .site-logo,
  body.nav-open .site-header--light .nav-toggle,
  .page-home.is-scrolled.nav-open .site-logo,
  .page-home.is-scrolled.nav-open .nav-toggle {
    color: #1a1a1a !important;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .projects-section {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  /* CTA under project cards on mobile */
  .projects-section:not(.projects-section--references) .projects-section__intro {
    display: contents;
  }

  .projects-section:not(.projects-section--references) .projects-eyebrow {
    order: 1;
  }

  .projects-section:not(.projects-section--references) .projects-headline {
    order: 2;
  }

  .projects-section:not(.projects-section--references) .projects-featured {
    order: 3;
  }

  .projects-section:not(.projects-section--references) .projects-cta {
    order: 4;
    margin-top: 0.35rem;
  }

  /* Home mobile: only 3 projects before “View more projects” */
  .page-home .projects-section:has([data-projects-more]) .projects-featured > .featured-project:nth-child(n + 4) {
    display: none;
  }

  .page-home .projects-section.is-more-open .projects-featured > .featured-project:nth-child(n + 4) {
    display: block;
  }

  .projects-headline {
    max-width: 18ch;
  }

  .projects-featured {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-references {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .project-usps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1.5rem;
  }

  .project-usps__item:last-child {
    grid-column: 1 / -1;
  }

  .project-split {
    grid-template-columns: 1fr;
  }

  .project-split__media {
    min-height: 18rem;
    aspect-ratio: 4 / 3;
  }

  .project-split__media img {
    position: absolute;
  }

  .project-band {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 1.25rem;
  }

  .project-band__btn {
    justify-self: start;
  }

  .project-gallery__grid {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .content-wrap {
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
  }

  .btn {
    width: 100%;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 560px) {
  .projects-featured {
    grid-template-columns: 1fr;
  }

  .featured-project__media {
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 480px) {
  :root {
    --nav-height: 4.75rem;
  }

  .site-logo__mark {
    height: 2.85rem;
  }

  .project-card__title {
    font-size: 1.2rem;
  }
}

@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;
  }

  .project-card a:hover .project-card__image img {
    transform: none;
  }
}

/* Scroll: meny svart (sist så inget överstyr) */
body.page-home.is-scrolled .site-nav a,body.page-home.is-scrolled .site-nav span,
body.page-home .site-header.is-scrolled .site-nav a,body.page-home .site-header.is-scrolled .site-nav span,
body.page-home.is-scrolled .nav-toggle,
body.page-home .site-header.is-scrolled .nav-toggle,
body.page-home.is-scrolled .site-logo,
body.page-home .site-header.is-scrolled .site-logo {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}
