/* ============================================
   Studio GB — Design system
   Skandinavisk · ren · förtroendeingivande
   ============================================ */

:root {
  /* Färger */
  --bg: #f6f4f0;
  --bg-elevated: #fffcf8;
  --bg-muted: #ebe7e0;
  --bg-dark: #1c1b19;
  --ink: #1c1b19;
  --ink-soft: #3d3b37;
  --ink-muted: #6b6862;
  --ink-faint: #9a968e;
  --accent: #2a4a3c;
  --accent-hover: #1f3830;
  --accent-soft: #e8f0eb;
  --warm: #b8956c;
  --warm-soft: #f5ede3;
  --border: rgba(28, 27, 25, 0.1);
  --border-strong: rgba(28, 27, 25, 0.18);
  --shadow-sm: 0 1px 2px rgba(28, 27, 25, 0.04);
  --shadow-md: 0 8px 24px rgba(28, 27, 25, 0.06);
  --shadow-lg: 0 20px 48px rgba(28, 27, 25, 0.08);

  /* Typografi */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Outfit", system-ui, sans-serif;

  /* Spacing & layout */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;
  --space-3xl: 8rem;
  --container: 72rem;
  --container-narrow: 42rem;
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --header-h: 4.25rem;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.35s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Utilities */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2rem, var(--container-narrow));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 450;
}

h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

.lead {
  font-size: clamp(1.125rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition:
    background var(--duration) var(--ease),
    color var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
}

.btn--secondary:hover {
  border-color: var(--ink);
  background: var(--bg-elevated);
}

.btn--light {
  background: #fff;
  color: var(--accent);
}

.btn--light:hover {
  background: var(--accent-soft);
}

.btn--ghost {
  padding-inline: 0.5rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.btn--ghost:hover {
  color: var(--accent);
}

.btn__arrow {
  transition: transform var(--duration) var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ========== Promo / summer offer ========== */
.promo-bar {
  position: relative;
  z-index: 90;
  background: var(--accent);
  color: #f6f4f0;
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.45;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.promo-bar__inner {
  width: min(100% - 1rem, var(--container));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.85rem;
}

.promo-bar__label {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(246, 244, 240, 0.95);
  border-radius: 999px;
  white-space: nowrap;
}

.promo-bar__text {
  margin: 0;
  font-weight: 450;
  color: rgba(246, 244, 240, 0.95);
}

.promo-bar__text strong {
  font-weight: 600;
  color: #fff;
}

.promo-bar__link {
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}

.promo-bar__link:hover {
  color: var(--warm);
}

.promo-note {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(246, 244, 240, 0.85);
}

.promo-note a {
  color: #e8c9a0;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.promo-note a:hover {
  color: #fff;
}

.hero--photo .promo-note {
  max-width: 28rem;
  margin-bottom: var(--space-md);
}

.cta-band .promo-note {
  margin-top: 0.65rem;
  color: rgba(255, 255, 255, 0.85);
}

.cta-band .promo-note a {
  color: #fff;
}

/* Pricing sale */
.pricing-card--sale {
  border-color: rgba(42, 74, 60, 0.28);
}

.pricing-card__badge--sale {
  background: var(--warm);
  color: #1c1b19;
}

.pricing-card__price-block {
  margin-bottom: 0.75rem;
}

.pricing-card__price-old {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.pricing-card__price-old .pricing-card__amount {
  font-size: 1.15rem;
  font-weight: 450;
  color: var(--ink-faint);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.pricing-card__price-old .pricing-card__currency {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.pricing-card__price-new {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.pricing-card__price-new .pricing-card__amount {
  color: var(--accent);
}

.pricing-card__sale-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--warm);
}

.pricing-card__sale-note {
  margin: -0.25rem 0 0.85rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

@media (max-width: 600px) {
  .promo-bar {
    font-size: 0.85rem;
    padding: 0.7rem 0.85rem;
  }

  .promo-bar__inner {
    flex-direction: column;
    gap: 0.35rem;
  }
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(246, 244, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--duration) var(--ease),
    background var(--duration) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(246, 244, 240, 0.94);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}

.logo__img {
  display: block;
  height: 2.75rem;
  width: auto;
  max-width: min(13rem, 48vw);
  object-fit: contain;
  object-position: left center;
}

/* Footer is dark — invert dark logo artwork */
.site-footer .logo__img {
  height: 2.6rem;
  max-width: 13rem;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* Fallback text if image fails (hidden when img present) */
.logo__mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.logo__sub {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.footer__brand .logo__mark {
  color: #f6f4f0;
}

.footer__brand .logo__sub {
  color: rgba(246, 244, 240, 0.45);
}

/* Portfolio screenshot previews */
.portfolio-card__thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.55s var(--ease);
  z-index: 1;
}

.portfolio-card:hover .portfolio-card__thumb-img {
  transform: scale(1.04);
}

.portfolio-card__thumb--screenshot .portfolio-card__thumb-fallback {
  display: none;
}

@media (max-width: 480px) {
  .logo__img {
    height: 2rem;
    max-width: 9.5rem;
  }
}

.nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  padding: 0.5rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 450;
  color: var(--ink-soft);
  border-radius: 0.5rem;
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--ink);
}

.nav__link[aria-current="page"] {
  background: var(--bg-muted);
}

.nav__cta {
  margin-left: 0.5rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.55rem;
  border-radius: 0.5rem;
  z-index: 120;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav — full-screen, polished */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding:
    calc(var(--header-h) + max(1.25rem, env(safe-area-inset-top, 0px)))
    max(1.35rem, env(safe-area-inset-right, 0px))
    max(1.75rem, env(safe-area-inset-bottom, 0px))
    max(1.35rem, env(safe-area-inset-left, 0px));
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-0.75rem);
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-mobile.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-mobile__list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0.5rem 0 1.5rem;
  list-style: none;
}

.nav-mobile__link {
  display: flex;
  align-items: center;
  min-height: 3.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 7.5vw, 2.5rem);
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 1.15;
  padding: 0.85rem 0.15rem;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  transition:
    color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    padding-left 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-tap-highlight-color: transparent;
}

.nav-mobile__link:hover,
.nav-mobile__link:focus-visible {
  color: var(--accent);
}

.nav-mobile__link:active {
  color: var(--accent);
  padding-left: 0.35rem;
}

.nav-mobile__footer {
  margin-top: auto;
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-mobile__footer .btn {
  width: 100%;
  min-height: 3.25rem;
  font-size: 1rem;
  font-weight: 500;
}

.nav-mobile__footer .text-muted {
  text-align: center;
  font-size: 0.875rem;
  margin: 0;
}

html.nav-open,
body.nav-open {
  overflow: hidden;
  touch-action: none;
}

body.nav-open {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-mobile {
    display: none;
  }
}

/* 404 / error page */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h) - 12rem);
  padding: var(--space-2xl) 0 var(--space-3xl);
  text-align: center;
}

.error-page__inner {
  max-width: 32rem;
  margin-inline: auto;
}

.error-page h1 {
  margin-bottom: var(--space-md);
  max-width: none;
}

.error-page__text {
  margin-bottom: var(--space-xl);
  max-width: 28rem;
  margin-inline: auto;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@media (max-width: 480px) {
  .error-page__actions {
    flex-direction: column;
  }

  .error-page__actions .btn {
    width: 100%;
  }
}

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: var(--space-2xl) 0 var(--space-3xl);
  overflow: visible;
}

.hero__grid {
  display: grid;
  gap: var(--space-xl);
  align-items: end;
}

.hero__content {
  max-width: 38rem;
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero .lead {
  margin-bottom: var(--space-lg);
  max-width: 32rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--space-xl);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero__meta-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero__meta-label {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* Photo hero — Gustavsberg harbor */
.hero--photo {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: clamp(32rem, 85vh, 44rem);
  padding: clamp(2.5rem, 5vh, 3.5rem) 0 clamp(3rem, 8vh, 5rem);
  color: #f6f4f0;
  overflow: visible;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* Dark overlays so light photo still has readable type */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    /* Left panel for copy */
    linear-gradient(
      100deg,
      rgba(16, 18, 16, 0.88) 0%,
      rgba(16, 18, 16, 0.72) 34%,
      rgba(16, 18, 16, 0.42) 58%,
      rgba(16, 18, 16, 0.28) 78%,
      rgba(16, 18, 16, 0.32) 100%
    ),
    /* Bottom fade into page */
    linear-gradient(
      to top,
      rgba(16, 18, 16, 0.55) 0%,
      transparent 42%
    ),
    /* Overall soft dim for sky */
    linear-gradient(
      to bottom,
      rgba(16, 18, 16, 0.22) 0%,
      transparent 35%
    );
}

/* Keep .container width/margins — do not force width: 100% */
.hero--photo .hero__grid {
  position: relative;
  z-index: 1;
  grid-template-columns: 1fr;
  align-items: start;
  margin-top: 0;
}

.hero--photo.container,
.hero--photo .container {
  width: min(100% - 3rem, var(--container));
}

.hero--photo .hero__content {
  max-width: 34rem;
}

/* Hero copy visible immediately — no clip/fade race on hard refresh */
.hero--photo .hero__content.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.hero--photo .eyebrow {
  color: #d4b896;
}

.hero--photo h1 {
  color: #f6f4f0;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.25);
}

.hero--photo h1 em {
  color: #e8c9a0;
}

.hero--photo .lead {
  color: rgba(246, 244, 240, 0.88);
}

.hero--photo .hero__meta {
  border-top-color: rgba(246, 244, 240, 0.22);
}

.hero--photo .hero__meta-value {
  color: #f6f4f0;
}

.hero--photo .hero__meta-label {
  color: rgba(246, 244, 240, 0.68);
}

.btn--on-dark {
  border-color: rgba(246, 244, 240, 0.45);
  color: #f6f4f0;
  background: rgba(246, 244, 240, 0.08);
  backdrop-filter: blur(6px);
}

.btn--on-dark:hover {
  border-color: #f6f4f0;
  background: rgba(246, 244, 240, 0.16);
  color: #fff;
}

@media (min-width: 900px) {
  .hero--photo {
    min-height: clamp(34rem, 85vh, 44rem);
    padding: clamp(2.75rem, 5vh, 3.75rem) 0 clamp(4rem, 10vh, 6rem);
  }

  .hero--photo .hero__content {
    max-width: 36rem;
    margin-left: clamp(0rem, 2vw, 1.5rem);
  }

  .hero__overlay {
    background:
      linear-gradient(
        105deg,
        rgba(16, 18, 16, 0.86) 0%,
        rgba(16, 18, 16, 0.68) 32%,
        rgba(16, 18, 16, 0.35) 55%,
        rgba(16, 18, 16, 0.18) 72%,
        rgba(16, 18, 16, 0.22) 100%
      ),
      linear-gradient(
        to top,
        rgba(16, 18, 16, 0.45) 0%,
        transparent 40%
      ),
      linear-gradient(
        to bottom,
        rgba(16, 18, 16, 0.18) 0%,
        transparent 30%
      );
  }
}

@media (min-width: 1200px) {
  .hero--photo .hero__content {
    margin-left: 1rem;
  }
}

@media (max-width: 599px) {
  .hero--photo {
    min-height: auto;
    align-items: flex-start;
    padding: var(--space-lg) 0 var(--space-2xl);
  }

  .hero--photo .container {
    width: min(100% - 2.5rem, var(--container));
  }

  /* Stronger full-width scrim on small screens */
  .hero__overlay {
    background:
      linear-gradient(
        to bottom,
        rgba(16, 18, 16, 0.55) 0%,
        rgba(16, 18, 16, 0.72) 40%,
        rgba(16, 18, 16, 0.82) 100%
      );
  }
}

/* ========== Sections ========== */
.section {
  padding: var(--space-2xl) 0;
}

.section--muted {
  background: var(--bg-muted);
}

.section--dark {
  background: var(--bg-dark);
  color: #e8e4dc;
}

.section--dark h2,
.section--dark h3 {
  color: #f6f4f0;
}

.section--dark .text-muted,
.section--dark .lead {
  color: rgba(246, 244, 240, 0.7);
}

.section--dark .eyebrow {
  color: var(--warm);
}

.section__header {
  max-width: 36rem;
  margin-bottom: var(--space-xl);
}

.section__header--center {
  text-align: center;
  margin-inline: auto;
}

.section__header h2 {
  margin-bottom: var(--space-sm);
}

.section__footer {
  margin-top: var(--space-xl);
  text-align: center;
}

/* ========== About teaser ========== */
.about-teaser {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.about-teaser__text p + p {
  margin-top: var(--space-md);
}

.about-teaser__card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.about-teaser__card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.about-teaser__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-teaser__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.975rem;
  color: var(--ink-soft);
}

.about-teaser__list li::before {
  content: "";
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232a4a3c' stroke-width='2'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
  background-size: 0.75rem;
  background-repeat: no-repeat;
  background-position: center;
}

@media (min-width: 768px) {
  .about-teaser {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-2xl);
  }
}

/* ========== Service cards ========== */
.services-grid {
  display: grid;
  gap: var(--space-md);
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition:
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

.service-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.service-card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.service-card h3 {
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--ink-muted);
  font-size: 0.975rem;
  flex-grow: 1;
  margin-bottom: var(--space-md);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
}

.service-card__link:hover .btn__arrow {
  transform: translateX(3px);
}

@media (min-width: 600px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========== Pricing packages ========== */
.pricing-grid {
  display: grid;
  gap: var(--space-md);
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition:
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

.pricing-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  background:
    linear-gradient(180deg, var(--accent-soft) 0%, var(--bg-elevated) 8rem);
}

.pricing-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
}

.pricing-card__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

.pricing-card__currency {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.pricing-card__vat {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
}

.pricing-card__tagline {
  font-size: 0.975rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-md);
  line-height: 1.55;
}

.pricing-card__body {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  flex: 1 1 auto;
}

.pricing-card__body p + p {
  margin-top: 0.75rem;
}

.pricing-card__includes-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.65rem;
}

.pricing-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
  flex: 0 0 auto;
}

.pricing-card__list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.pricing-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232a4a3c' stroke-width='2'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
  background-size: 0.65rem;
  background-repeat: no-repeat;
  background-position: center;
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

.addons-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.addons-list .tag {
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--ink-soft);
}

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

  .pricing-card--featured {
    transform: translateY(-0.35rem);
  }

  .pricing-card--featured:hover {
    transform: translateY(-0.5rem);
  }
}

/* Detailed services */
.service-detail {
  display: grid;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail__num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--warm);
  letter-spacing: 0.05em;
}

.service-detail h3 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin-bottom: 0.5rem;
}

.service-detail p {
  color: var(--ink-soft);
  max-width: 40rem;
}

.service-detail__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 450;
  color: var(--ink-soft);
  background: var(--bg-muted);
  border-radius: 999px;
}

@media (min-width: 768px) {
  .service-detail {
    grid-template-columns: 4rem 1fr;
    gap: var(--space-lg);
    align-items: start;
  }
}

/* Process steps */
.process {
  display: grid;
  gap: var(--space-md);
  counter-reset: step;
}

.process__step {
  position: relative;
  padding: var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  counter-increment: step;
}

.process__step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 450;
  color: var(--accent);
  opacity: 0.35;
  display: block;
  margin-bottom: var(--space-sm);
}

.process__step h3 {
  margin-bottom: 0.4rem;
}

.process__step p {
  color: var(--ink-muted);
  font-size: 0.975rem;
}

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

/* ========== Portfolio ========== */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
}

.filter-btn {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  transition:
    color var(--duration) var(--ease),
    background var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}

.filter-btn:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

.filter-btn.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.portfolio-grid {
  display: grid;
  gap: var(--space-md);
  align-items: stretch;
}

.portfolio-card {
  group: portfolio;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    box-shadow var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    opacity 0.3s var(--ease);
}

.portfolio-card.is-hidden {
  display: none;
}

.portfolio-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.portfolio-card__visual {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--bg-muted);
}

.portfolio-card__visual-btn {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

/* Live template thumbnail via scaled iframe */
.portfolio-card__thumb {
  --preview-scale: 0.32;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg-muted);
  transition: transform 0.55s var(--ease);
}

.portfolio-card:hover .portfolio-card__thumb {
  transform: scale(1.03);
}

.portfolio-card__thumb iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% / var(--preview-scale));
  height: calc(100% / var(--preview-scale));
  border: 0;
  transform: scale(var(--preview-scale));
  transform-origin: top left;
  pointer-events: none;
  background: #fff;
}

.portfolio-card__thumb-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--bg-muted), var(--bg-elevated));
}

.visual--restaurant {
  background: linear-gradient(135deg, #3d2c29 0%, #8b5a4a 50%, #c4a574 100%);
}

.visual--bakery {
  background: linear-gradient(145deg, #f5e6d3 0%, #e8c4a0 40%, #b8956c 100%);
}

.visual--salon {
  background: linear-gradient(160deg, #2a2a32 0%, #5c5a6e 45%, #c9c5d4 100%);
}

.visual--pizza {
  background: linear-gradient(140deg, #1a2e1a 0%, #3d6b3d 40%, #a8c97a 100%);
}

.visual--builder {
  background: linear-gradient(150deg, #1c2834 0%, #3d5a73 50%, #8fa8bc 100%);
}

.visual--maklare {
  background: linear-gradient(145deg, #2c2924 0%, #9a7b4f 45%, #e8e0d2 100%);
}

.visual--flytt {
  background: linear-gradient(140deg, #0b1220 0%, #1a2a40 40%, #b8f24a 100%);
}

.visual--butik {
  background: linear-gradient(150deg, #3d2e28 0%, #c4785a 45%, #f0e4dc 100%);
}

.visual--gym {
  background: linear-gradient(155deg, #0a0a0b 0%, #3a1010 50%, #ff3b3b 100%);
}

.visual--euromigr {
  background:
    radial-gradient(circle at 70% 20%, rgba(57, 135, 229, 0.45) 0%, transparent 50%),
    linear-gradient(155deg, #0a0a0d 0%, #12182a 45%, #1a3a5c 100%);
}

.visual--rosema {
  background:
    radial-gradient(circle at 30% 70%, rgba(184, 149, 108, 0.35) 0%, transparent 45%),
    linear-gradient(145deg, #2a3d36 0%, #4a6b5c 40%, #c4b5a0 100%);
}

.portfolio-card__live-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  padding: 0.3rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(42, 74, 60, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.portfolio-card__thumb-label {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  pointer-events: none;
}

.portfolio-card__thumb-label strong {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 450;
  letter-spacing: -0.02em;
}

.portfolio-card__thumb-label span {
  font-size: 0.8rem;
  opacity: 0.75;
  font-weight: 400;
}

/* When iframe loads on external thumbs, hide decorative label */
.portfolio-card__thumb.has-iframe-preview .portfolio-card__thumb-label {
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.portfolio-card__visual-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  background: linear-gradient(
    to top,
    rgba(28, 27, 25, 0.55) 0%,
    rgba(28, 27, 25, 0.12) 40%,
    transparent 70%
  );
  color: #fff;
  transition: background 0.4s var(--ease);
}

.portfolio-card:hover .portfolio-card__visual-overlay,
.portfolio-card__visual-btn:focus-visible .portfolio-card__visual-overlay {
  background: linear-gradient(
    to top,
    rgba(28, 27, 25, 0.62) 0%,
    rgba(28, 27, 25, 0.18) 45%,
    transparent 75%
  );
}

.portfolio-card__visual-btn:focus-visible {
  outline: none;
}

.portfolio-card__visual-btn:focus-visible .portfolio-card__visual-overlay {
  box-shadow: inset 0 0 0 3px var(--accent);
}

/* Title only on image — category lives in tags below */
.portfolio-card__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 450;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.portfolio-card__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.portfolio-card:hover .portfolio-card__hint,
.portfolio-card__visual-btn:focus-visible .portfolio-card__hint {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-card__body {
  padding: var(--space-md) var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.75rem;
  min-height: 0;
}

/* Description absorbs extra height so tags + link align across cards */
.portfolio-card__body > p,
.portfolio-card__lead {
  flex: 1 1 auto;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  margin: 0;
}

.portfolio-card__lead {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

/* Full-width case studies for live projects */
.portfolio-card--case {
  grid-column: 1 / -1;
}

.portfolio-card--case .portfolio-card__meta {
  min-height: 0;
  margin-top: 0.25rem;
}

.portfolio-case {
  display: grid;
  gap: 0.85rem;
  padding: 0.9rem 0 0.15rem;
  border-top: 1px solid var(--border);
  margin-top: 0.15rem;
}

.portfolio-case__block {
  margin: 0;
}

.portfolio-case__label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.3rem;
  line-height: 1.2;
}

.portfolio-case__block p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

@media (min-width: 800px) {
  .portfolio-card--case {
    display: grid;
    grid-template-columns: minmax(16rem, 0.95fr) minmax(0, 1.2fr);
    align-items: stretch;
  }

  .portfolio-card--case.is-hidden {
    display: none;
  }

  .portfolio-card--case .portfolio-card__visual {
    aspect-ratio: auto;
    min-height: 18rem;
    height: 100%;
    align-self: stretch;
  }

  .portfolio-card--case .portfolio-card__body {
    padding: var(--space-lg);
    gap: 0.9rem;
  }

  .portfolio-case {
    gap: 1rem;
  }
}

.portfolio-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.4rem;
  margin-top: auto;
  flex-shrink: 0;
  /* Room for ~2 tag rows so “Förhandsvisa” lines up across cards */
  min-height: 4.5rem;
}

.portfolio-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: 0.15rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  flex-shrink: 0;
  transition: color var(--duration) var(--ease);
}

.portfolio-card__link:hover {
  color: var(--accent-hover);
}

.portfolio-card__link:hover .btn__arrow {
  transform: translateX(3px);
}

/* ========== Preview modal ========== */
.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease),
    visibility 0.35s var(--ease);
}

.preview-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 17, 15, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.preview-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 72rem);
  height: min(92vh, 52rem);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(1.25rem) scale(0.97);
  opacity: 0;
  transition:
    transform 0.45s var(--ease),
    opacity 0.45s var(--ease);
}

.preview-modal.is-open .preview-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.preview-modal__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}

.preview-modal__eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.preview-modal__header h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  line-height: 1.2;
}

.preview-modal__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-modal__actions .btn {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.preview-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  transition:
    background var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}

.preview-modal__close:hover {
  background: var(--bg-muted);
  border-color: var(--border-strong);
}

.preview-modal__frame-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #0f1114;
  overflow: hidden;
}

.preview-modal__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.preview-modal__frame.is-hidden {
  display: none;
}

.preview-modal__shot-wrap {
  position: absolute;
  inset: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #0f1114;
}

.preview-modal__shot-wrap.is-hidden {
  display: none;
}

.preview-modal__shot {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.preview-modal__shot-note {
  position: sticky;
  bottom: 0;
  margin: 0;
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(246, 244, 240, 0.85);
  background: rgba(16, 18, 16, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.preview-modal__shot-note a {
  color: #e8c9a0;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.preview-modal__shot-note a:hover {
  color: #f6f4f0;
}

.preview-modal__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--bg);
  color: var(--ink-muted);
  font-size: 0.95rem;
  transition: opacity 0.3s var(--ease);
  z-index: 2;
}

.preview-modal__loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.preview-modal__spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .preview-modal {
    padding: 0;
  }

  .preview-modal__dialog {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
  }

  .preview-modal__header {
    padding: 0.75rem 0.9rem;
  }

  .preview-modal__actions .btn--secondary {
    display: none;
  }

  .portfolio-card__hint {
    opacity: 1;
    transform: none;
  }

  .portfolio-card__thumb {
    --preview-scale: 0.28;
  }
}

@media (min-width: 600px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ========== Testimonials / omdömen ========== */
.testimonials-grid {
  display: grid;
  gap: var(--space-md);
  align-items: stretch;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

.testimonial-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.testimonial-card__quote {
  flex: 1 1 auto;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 var(--space-md);
}

.testimonial-card__footer {
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.testimonial-card__author {
  display: block;
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-body);
}

.testimonial-card__role {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.section--muted .testimonial-card {
  background: var(--bg-elevated);
}

@media (min-width: 700px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}

/* ========== CTA band ========== */
.cta-band {
  padding: var(--space-2xl) 0;
}

.cta-band__inner {
  display: grid;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--accent);
  border-radius: var(--radius-lg);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta-band__inner h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.cta-band__inner p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 28rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 768px) {
  .cta-band__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: var(--space-xl) var(--space-2xl);
  }
}

/* ========== Breadcrumbs (SEO + navigation) ========== */
.breadcrumbs {
  padding: 0.85rem 0 0;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.breadcrumbs__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs__list li:not(:last-child)::after {
  content: "/";
  color: var(--ink-faint);
  opacity: 0.7;
}

.breadcrumbs a {
  color: var(--ink-muted);
  transition: color var(--duration) var(--ease);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink-soft);
  font-weight: 500;
}

/* ========== Page hero (inner pages) ========== */
.page-hero {
  padding: var(--space-2xl) 0 var(--space-xl);
}

.page-hero h1 {
  margin-bottom: var(--space-md);
  max-width: 20ch;
}

.page-hero .lead {
  max-width: 36rem;
}

.page-hero .lead a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

.page-hero .lead a:hover {
  color: var(--accent-hover);
}

/* Portfolio hero wrap: gradient continues under filters, then fades out */
.portfolio-hero-wrap {
  position: relative;
  width: 100%;
  background:
    radial-gradient(ellipse 85% 65% at 72% 12%, rgba(42, 74, 60, 0.2) 0%, transparent 52%),
    radial-gradient(ellipse 65% 55% at 18% 70%, rgba(184, 149, 108, 0.18) 0%, transparent 50%),
    linear-gradient(
      165deg,
      #f7f5f1 0%,
      #efe9e0 38%,
      #e2d9cc 68%,
      var(--bg) 100%
    );
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
  color: var(--ink);
}

.portfolio-hero-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(3rem, 8vw, 5rem);
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--bg) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.portfolio-hero-wrap > * {
  position: relative;
  z-index: 1;
}

/* Inner hero keeps text spacing; gradient lives on wrap */
.portfolio-hero {
  background: none;
  width: 100%;
  color: var(--ink);
}

.portfolio-hero .container {
  position: relative;
  z-index: 1;
}

.portfolio-hero h1 {
  color: var(--ink);
}

.portfolio-hero .lead {
  color: var(--ink-soft);
}

.portfolio-hero .eyebrow {
  color: var(--accent);
}

.portfolio-hero-wrap__filters {
  position: relative;
  z-index: 1;
  padding-bottom: 0.25rem;
}

.portfolio-hero-wrap .portfolio-filters {
  margin-bottom: 0;
}

.section--portfolio-list {
  padding-top: var(--space-md);
  background: var(--bg);
}

@media (max-width: 599px) {
  .portfolio-hero-wrap {
    background:
      radial-gradient(ellipse 90% 55% at 75% 10%, rgba(42, 74, 60, 0.22) 0%, transparent 55%),
      radial-gradient(ellipse 70% 50% at 15% 75%, rgba(184, 149, 108, 0.18) 0%, transparent 52%),
      linear-gradient(
        165deg,
        #f7f5f1 0%,
        #efe9e0 40%,
        #e2d9cc 70%,
        var(--bg) 100%
      );
    padding-bottom: 1.25rem;
  }
}

/* ========== Prose (policy etc.) ========== */
.prose {
  max-width: 42rem;
}

.prose h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--ink-soft);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.prose a:hover {
  color: var(--accent-hover);
}

.prose__meta {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--ink-faint);
}

/* ========== FAQ accordion ========== */
.faq {
  max-width: 46rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq__item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.faq__item.is-open {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.05rem 1.15rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
  transition: color var(--duration) var(--ease);
}

.faq__question:hover {
  color: var(--accent);
}

.faq__icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  position: relative;
  border-radius: 50%;
  background: var(--accent-soft);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--accent);
  border-radius: 1px;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.faq__icon::before {
  width: 0.6rem;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.faq__icon::after {
  width: 1.5px;
  height: 0.6rem;
  transform: translate(-50%, -50%);
}

.faq__item.is-open .faq__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__answer {
  padding: 0 1.15rem 1.15rem;
}

.faq__answer[hidden] {
  display: none;
}

.faq__answer p {
  margin: 0;
  padding-top: 0.15rem;
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
  font-size: 0.975rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* ========== About page ========== */
.about-layout {
  display: grid;
  gap: var(--space-xl);
}

.about-portrait {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-portrait__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.about-portrait__caption {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  background: linear-gradient(
    to top,
    rgba(16, 18, 16, 0.78) 0%,
    rgba(16, 18, 16, 0.35) 65%,
    transparent 100%
  );
  color: #f6f4f0;
}

.about-portrait__label {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 450;
  color: #f6f4f0;
  line-height: 1.2;
}

.about-portrait__sub {
  font-size: 0.9rem;
  color: rgba(246, 244, 240, 0.75);
  margin-top: 0;
}

.about-content h2 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin-bottom: var(--space-md);
}

.about-content p {
  color: var(--ink-soft);
  margin-bottom: var(--space-md);
}

.about-content p:last-child {
  margin-bottom: 0;
}

.values-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.value-card {
  padding: var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.value-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.value-card p {
  color: var(--ink-muted);
  font-size: 0.975rem;
}

@media (min-width: 768px) {
  .about-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: var(--space-2xl);
    align-items: start;
  }

  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========== Contact ========== */
.contact-layout {
  display: grid;
  gap: var(--space-xl);
}

.contact-info h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.contact-info > p {
  color: var(--ink-muted);
  margin-bottom: var(--space-lg);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-detail__label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.contact-detail a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  transition: color var(--duration) var(--ease);
}

.contact-detail a:hover {
  color: var(--accent);
}

.contact-form-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.contact-form-wrap h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.contact-form-wrap > p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
}

.form-grid {
  display: grid;
  gap: var(--space-md);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition:
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.form-field input:hover,
.form-field textarea:hover,
.form-field select:hover {
  border-color: var(--border-strong);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  margin-top: var(--space-sm);
}

.form-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.form-note a:hover {
  color: var(--accent-hover);
}

.form-success {
  display: none;
  padding: var(--space-lg);
  background: var(--accent-soft);
  border-radius: var(--radius);
  text-align: center;
}

.form-success.is-visible {
  display: block;
}

.form-success h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--ink-soft);
  font-size: 0.975rem;
}

.form-error {
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background: #f8e8e6;
  border: 1px solid rgba(160, 60, 50, 0.2);
  border-radius: var(--radius);
  color: #6b2c26;
  font-size: 0.95rem;
}

.form-error[hidden] {
  display: none;
}

.form-error a {
  color: var(--accent);
  text-decoration: underline;
}

.contact-form.is-hidden {
  display: none;
}

.contact-detail a {
  display: block;
}

.contact-detail a + a {
  margin-top: 0.2rem;
}

.contact-form [type="submit"][disabled] {
  opacity: 0.65;
  cursor: wait;
}

@media (min-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: var(--space-2xl);
    align-items: start;
  }

  .contact-form-wrap {
    padding: var(--space-xl);
  }
}

/* ========== Footer ========== */
.site-footer {
  background: var(--bg-dark);
  color: rgba(246, 244, 240, 0.7);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__brand .logo__mark {
  color: #f6f4f0;
}

.footer__brand .logo__sub {
  color: rgba(246, 244, 240, 0.45);
}

.footer__brand p {
  margin-top: var(--space-md);
  font-size: 0.95rem;
  max-width: 22rem;
  line-height: 1.6;
}

.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 244, 240, 0.45);
  margin-bottom: var(--space-md);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__col a {
  font-size: 0.95rem;
  color: rgba(246, 244, 240, 0.75);
  transition: color var(--duration) var(--ease);
}

.footer__col a:hover {
  color: #f6f4f0;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(246, 244, 240, 0.4);
}

.footer__bottom-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer__admin-link {
  color: rgba(246, 244, 240, 0.28);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

.footer__admin-link:hover {
  color: rgba(246, 244, 240, 0.65);
}

@media (min-width: 700px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

/* ========== Scroll reveal (elegant, restrained) ========== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  /* Keep space in flow so no layout jump when revealing */
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger: 100ms between siblings (within 80–120ms range) */
.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* ========== Thank you page ========== */
.thank-you {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h) - 12rem);
  padding: var(--space-2xl) 0 var(--space-3xl);
  text-align: center;
}

.thank-you__inner {
  max-width: 34rem;
  margin-inline: auto;
}

.thank-you h1 {
  margin-bottom: var(--space-md);
  max-width: none;
}

.thank-you__text {
  margin-bottom: var(--space-md);
  max-width: 28rem;
  margin-inline: auto;
}

.thank-you__extra {
  margin-bottom: var(--space-xl);
  max-width: 28rem;
  margin-inline: auto;
  font-size: 1.05rem;
  line-height: 1.6;
}

.thank-you__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.thank-you__note {
  margin-top: var(--space-sm);
}

.thank-you__note .btn--ghost {
  justify-content: center;
}

@media (max-width: 480px) {
  .thank-you__actions {
    flex-direction: column;
  }

  .thank-you__actions .btn {
    width: 100%;
  }
}

/* ========== Cookie banner ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-dark);
  color: #e8e4dc;
  padding: 1.1rem 1.5rem;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner__text {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  flex: 1 1 280px;
}

.cookie-banner__text a {
  color: var(--warm);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-banner .btn--secondary {
  border-color: rgba(232, 228, 220, 0.35);
  color: #e8e4dc;
  background: transparent;
}

.cookie-banner .btn--secondary:hover {
  border-color: #e8e4dc;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-banner__actions {
    justify-content: center;
  }

  .cookie-banner__actions .btn {
    flex: 1 1 auto;
  }
}

/* ========== Reduced motion ========== */
@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;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    transition-delay: 0s !important;
  }
}
