/* ==========================================================================
   Lindhs Foto UF
   ========================================================================== */

:root {
  --bg: #0d0c0b;
  --bg-2: #141210;
  --surface: #1b1815;
  --surface-2: #24201c;
  --line: rgba(243, 238, 231, 0.12);
  --text: #f3eee7;
  --muted: #a8a097;
  --accent: #e8955a;
  --accent-2: #f4c38c;
  --accent-ink: #1a120b;

  --paper: #f3eee7;
  --paper-2: #e9e2d8;
  --ink: #1a1714;
  --ink-muted: #6b6259;
  --ink-line: rgba(26, 23, 20, 0.12);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --radius-sm: 10px;
  --nav-h: 76px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Bas ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) - 1px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: italic; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- Typografi ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.hero__eyebrow::before { display: none; }

.section {
  position: relative;
  padding-block: clamp(80px, 12vw, 160px);
}

.section__head {
  max-width: 760px;
  margin: 0 auto clamp(48px, 7vw, 80px);
  text-align: center;
}
.section__head .eyebrow { justify-content: center; }
.section__head--left { margin-inline: 0; text-align: left; }
.section__head--left .eyebrow { justify-content: flex-start; }

.section__head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  text-align: left;
}
.section__head--split .eyebrow { justify-content: flex-start; }

.section__title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
}
.section__title em {
  color: var(--accent-2);
  font-weight: 300;
}

.section__lead {
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
  max-width: 60ch;
}
.section__head:not(.section__head--left) .section__lead { margin-inline: auto; }

/* ---------- Knappar ---------- */
.btn {
  --bx: 0px;
  --by: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transform: translate(var(--bx), var(--by));
  transition: transform 0.4s var(--ease-out), background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px rgba(232, 149, 90, 0.6);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent-2);
  transform: translateY(101%);
  border-radius: inherit;
  transition: transform 0.5s var(--ease-out);
}
.btn--primary:hover::before { transform: none; }

.btn--ghost {
  border-color: rgba(243, 238, 231, 0.4);
  color: var(--text);
  background: rgba(13, 12, 11, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.btn--outline { border-color: var(--ink-line); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn--small { min-height: 42px; padding: 10px 20px; font-size: 0.88rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.7s var(--ease-in-out), visibility 0.7s;
}
.preloader__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.preloader__mark {
  width: 40px;
  height: 40px;
  color: var(--accent);
  animation: spin 1.6s var(--ease-in-out) infinite;
}
.preloader__inner span { animation: fadeUp 0.8s var(--ease-out) both 0.1s; }
.is-loaded .preloader { opacity: 0; visibility: hidden; }
html:not(.js) .preloader { display: none; }

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

/* ---------- Scroll-progress ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  transition: background-color 0.4s, box-shadow 0.4s;
}
.nav.is-scrolled {
  background: rgba(13, 12, 11, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.nav__logo svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
  transition: transform 0.8s var(--ease-out);
}
.nav__logo:hover svg { transform: rotate(120deg); }
.nav__logo em { color: var(--accent-2); margin-left: 4px; font-weight: 300; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__list { display: flex; gap: 4px; }
.nav__link {
  position: relative;
  display: block;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(243, 238, 231, 0.78);
  transition: color 0.3s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__mail { display: none; }

.nav__toggle {
  position: relative;
  z-index: 2;
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(13, 12, 11, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav__toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  margin-left: -9px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.5s var(--ease-out);
}
.nav__toggle span:first-child { transform: translateY(-4px); }
.nav__toggle span:last-child { transform: translateY(4px); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--nav-h) + 32px);
  padding-bottom: clamp(90px, 12vh, 140px);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: -8% 0 0;
  z-index: -2;
  will-change: transform;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  transform: scale(1.18);
  transition: transform 2.6s var(--ease-out);
}
.is-loaded .hero__media img {
  transform: scale(1.04);
  animation: kenburns 24s ease-in-out 2.6s infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.12) translate(-1.5%, -1%); }
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 12, 11, 0.55) 0%, rgba(13, 12, 11, 0) 28%),
    linear-gradient(0deg, rgba(13, 12, 11, 0.95) 0%, rgba(13, 12, 11, 0.45) 38%, rgba(13, 12, 11, 0) 65%),
    radial-gradient(ellipse at 20% 80%, rgba(13, 12, 11, 0.5), transparent 60%);
}

.hero__content { position: relative; }

.hero__eyebrow {
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.14em;
  padding: 8px 14px 8px 12px;
  border: 1px solid rgba(243, 238, 231, 0.22);
  border-radius: 999px;
  background: rgba(13, 12, 11, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(232, 149, 90, 0.7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(232, 149, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 149, 90, 0); }
}

.hero__title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.6rem, min(2rem + 11vw, 23vh), 12.5rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  font-variation-settings: "opsz" 144;
}
.hero__title .line { display: block; overflow: hidden; padding: 0 0.12em 0.08em 0; margin-bottom: -0.08em; }
.hero__title .line:last-child { padding-left: clamp(0px, 9vw, 160px); }
.hero__title em { color: var(--accent-2); }

.hero__lead {
  margin-top: 28px;
  max-width: 34ch;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.5;
  color: rgba(243, 238, 231, 0.86);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(90px, 12vh, 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(243, 238, 231, 0.7);
}
.hero__scroll-text { writing-mode: vertical-rl; }
.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 70px;
  background: rgba(243, 238, 231, 0.25);
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: scrollLine 2.2s var(--ease-in-out) infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* Hero-intro (bara med JS) */
.js .hero .split .char {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.2s var(--ease-out);
  transition-delay: calc(0.35s + var(--i) * 0.05s);
}
.js.is-loaded .hero .split .char { transform: none; }

.js .hero__eyebrow,
.js .hero__lead,
.js .hero__actions,
.js .hero__scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.js.is-loaded .hero__eyebrow { opacity: 1; transform: none; transition-delay: 0.25s; }
.js.is-loaded .hero__lead { opacity: 1; transform: none; transition-delay: 0.85s; }
.js.is-loaded .hero__actions { opacity: 1; transform: none; transition-delay: 1s; }
.js.is-loaded .hero__scroll { opacity: 1; transform: none; transition-delay: 1.3s; }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 26px;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.8rem, 1.2rem + 2.5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 238, 231, 0.55);
  transition: color 0.4s;
}
.marquee span:nth-of-type(odd) { color: var(--text); -webkit-text-stroke: 0; }
.marquee i { font-style: normal; color: var(--accent); font-size: 1.2rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 0.12s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .tilt.is-revealed,
.js .plan.is-revealed {
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
  transition-delay: 0s;
}

/* ---------- Tjänster ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}

.card {
  position: relative;
  aspect-ratio: 3 / 4.4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  isolation: isolate;
}

.card__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease-out), filter 0.8s;
  filter: saturate(0.9);
}
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 12, 11, 0) 35%, rgba(13, 12, 11, 0.92) 100%);
  transition: opacity 0.6s;
}
.card:hover .card__media img { transform: scale(1.12); filter: saturate(1.08); }

.card__media--art {
  display: grid;
  place-items: center;
  padding: 18% 14% 52%;
  color: var(--accent);
  background:
    radial-gradient(circle at 30% 20%, rgba(232, 149, 90, 0.22), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(244, 195, 140, 0.1), transparent 50%),
    linear-gradient(160deg, #2a221b, #15120f);
}
.card__media--art svg { width: 100%; height: auto; overflow: visible; transition: transform 1.2s var(--ease-out); }
.card:hover .card__media--art svg { transform: scale(1.06) translateX(4%); }
.draw { stroke-dasharray: 640; stroke-dashoffset: 640; }
.is-visible .draw { animation: draw 2.4s var(--ease-in-out) forwards 0.5s; }
html:not(.js) .draw { stroke-dashoffset: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.card__body {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(20px, 2vw, 28px);
}
.card__num {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.card__title {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.card__text {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(243, 238, 231, 0.78);
}

@media (hover: hover) and (min-width: 1100px) {
  .card__text {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.7s var(--ease-out), opacity 0.5s, margin-top 0.7s var(--ease-out);
  }
  .card:hover .card__text, .card:focus-within .card__text { max-height: 8em; opacity: 1; margin-top: 10px; }
}

/* ---------- Bildreparation ---------- */
.restore {
  background:
    radial-gradient(ellipse at 85% 30%, rgba(232, 149, 90, 0.08), transparent 55%),
    var(--bg-2);
}
.restore__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.restore .section__head { margin-bottom: 36px; }

.fixes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-bottom: 44px;
}
.fixes li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.97rem;
}
.fixes svg {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  color: var(--accent-ink);
  background: var(--accent);
}

.steps { display: grid; gap: 4px; counter-reset: step; }
.steps li {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.steps li > span {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-2);
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}
.steps li:hover > span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.steps h3 { font-size: 1.05rem; font-weight: 600; }
.steps p { color: var(--muted); font-size: 0.95rem; margin-top: 2px; }

/* Före/efter */
.ba { margin: 0; }
.ba__frame {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba__before .ba__img {
  filter: sepia(0.9) saturate(0.55) contrast(0.78) brightness(1.06) blur(0.6px);
}
.ba__damage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: normal;
}
.ba__label {
  position: absolute;
  top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(13, 12, 11, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}
.ba__label--before { left: 16px; }
.ba__label--after { right: 16px; }
.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--text);
  pointer-events: none;
}
.ba__handle svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  max-width: none;
  padding: 14px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s var(--ease-out);
}
.ba__frame:hover .ba__handle svg { transform: translate(-50%, -50%) scale(1.1); }
.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.ba__frame:has(.ba__range:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.ba figcaption {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Citat ---------- */
.quote {
  position: relative;
  min-height: clamp(460px, 80vh, 780px);
  display: grid;
  place-items: end center;
  padding-bottom: clamp(80px, 13vh, 150px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.quote__media {
  position: absolute;
  inset: -55% 0 -20%; /* lyfter månen ovanför citatet */
  z-index: -2;
  will-change: transform;
}
.quote__media img { width: 100%; height: 100%; object-fit: cover; }
.quote::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--bg-2) 0%, rgba(13, 12, 11, 0.25) 30%, rgba(13, 12, 11, 0.25) 70%, var(--bg) 100%);
}
.quote__text p {
  max-width: 22ch;
  margin-inline: auto;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 1.2rem + 3.2vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.45);
}
.quote__text em { color: var(--accent-2); }

/* ---------- Portfolio ---------- */
.filters {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
}
.filters__pill {
  position: absolute;
  top: 5px;
  left: 0;
  height: calc(100% - 10px);
  border-radius: 999px;
  background: var(--accent);
  transition: transform 0.6s var(--ease-out), width 0.6s var(--ease-out);
  pointer-events: none;
}
.filters__btn {
  position: relative;
  z-index: 1;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.4s;
}
.filters__btn:hover { color: var(--text); }
.filters__btn.is-active { color: var(--accent-ink); }
html:not(.js) .filters { display: none; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 15vw, 230px);
  grid-auto-flow: dense;
  gap: clamp(10px, 1.2vw, 16px);
}
.g-item {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
  isolation: isolate;
}
.g-item.is-tall { grid-row: span 2; }
.g-item.is-wide { grid-column: span 2; grid-row: span 2; }
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 0.6s;
}
.g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13, 12, 11, 0.85));
  opacity: 0;
  transition: opacity 0.5s;
}
.g-item__cap {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s, transform 0.6s var(--ease-out);
}
.g-item__cap small {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.07); }
.g-item:hover::after, .g-item:focus-visible::after,
.g-item:hover .g-item__cap, .g-item:focus-visible .g-item__cap { opacity: 1; transform: none; }

.js .g-item { opacity: 0; transform: translateY(30px) scale(0.98); }
.js .g-item.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.g-item.is-hidden { display: none; }

/* ---------- Priser (ljus sektion) ---------- */
.pricing {
  background: var(--paper);
  color: var(--ink);
}
.pricing .section__lead { color: var(--ink-muted); }
.pricing .section__title em { color: #b8622a; }
.pricing .eyebrow { color: #b8622a; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: clamp(16px, 2vw, 24px);
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: #faf7f2;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.plan:hover,
.plan.is-revealed:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(26, 23, 20, 0.35); }

.plan__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}
.plan__desc { margin-top: 8px; color: var(--ink-muted); font-size: 0.95rem; min-height: 3.2em; }
.plan__price {
  margin-block: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ink-line);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 2.2rem + 2vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.plan__price small {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-muted);
}
.plan__price--text small { display: block; margin-top: 10px; }
.plan__list { display: grid; gap: 12px; margin-bottom: 32px; flex: 1; }
.plan__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; }
.plan__list svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: #b8622a; }
.plan .btn { width: 100%; }

.plan--featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 40px 80px -40px rgba(26, 23, 20, 0.6);
}
@media (min-width: 900px) {
  .plan--featured,
  .js .plan--featured.is-visible { transform: translateY(-16px); }
  .plan--featured:hover,
  .plan--featured.is-revealed:hover { transform: translateY(-24px); }
}
.plan--featured .plan__desc, .plan--featured .plan__price small { color: rgba(243, 238, 231, 0.65); }
.plan--featured .plan__price { border-color: rgba(243, 238, 231, 0.14); }
.plan--featured .plan__list svg { color: var(--accent); }
.plan__badge {
  position: absolute;
  top: 0;
  right: clamp(20px, 3vw, 32px);
  transform: translateY(-50%);
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Tavlor */
.prints {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  margin-top: clamp(80px, 10vw, 140px);
}
.prints__art {
  position: relative;
  min-height: clamp(380px, 42vw, 560px);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 50% 110%, rgba(26, 23, 20, 0.16), transparent 60%),
    linear-gradient(180deg, #e4dccf, #d9cfbf);
  overflow: hidden;
  perspective: 1200px;
}
.frame {
  position: absolute;
  top: 12%;
  left: 14%;
  width: 40%;
  aspect-ratio: 3 / 4.3;
  padding: 10px;
  background: #1e1a16;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 30px 50px -20px rgba(26, 23, 20, 0.55), 0 8px 14px -6px rgba(26, 23, 20, 0.35);
}
.frame--small {
  top: 30%;
  left: auto;
  right: 10%;
  width: 36%;
  aspect-ratio: 4 / 3;
  background: #b48a5a;
  background-image: linear-gradient(135deg, #c79d6c, #9c7347);
}
.frame__mat {
  width: 100%;
  height: 100%;
  padding: 12%;
  background: #f7f3ec;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.18);
}
.frame--small .frame__mat { padding: 9%; }
.frame__mat img { width: 100%; height: 100%; object-fit: cover; }

.prints__title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.prints__title em { color: #b8622a; }
.prints__text > p:not(.eyebrow) { margin-top: 16px; color: var(--ink-muted); max-width: 46ch; }

.menu-list { margin-block: 28px 32px; }
.menu-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-line);
  font-size: 1rem;
}
.menu-list i { flex: 1; border-bottom: 1px dotted rgba(26, 23, 20, 0.3); transform: translateY(-4px); }
.menu-list b { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; white-space: nowrap; }
.pricing .link-arrow { color: var(--ink); }

/* ---------- Kontakt ---------- */
.contact {
  background:
    radial-gradient(ellipse at 10% 20%, rgba(232, 149, 90, 0.09), transparent 50%),
    var(--bg);
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact .section__head { margin-bottom: 36px; }

.photographer {
  position: relative;
  position: sticky;
  isolation: isolate;
  top: calc(var(--nav-h) + 24px);
}
.photographer__placeholder,
.photographer > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  object-fit: cover;
}
.photographer__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px dashed rgba(243, 238, 231, 0.22);
  background:
    radial-gradient(circle at 50% 35%, rgba(232, 149, 90, 0.14), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
}
.photographer__placeholder svg { width: 88px; height: 88px; opacity: 0.6; }
.photographer::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border: 1px solid rgba(232, 149, 90, 0.4);
  border-radius: var(--radius);
}
.photographer__tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(13, 12, 11, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.8rem;
  font-weight: 500;
}
.photographer__tag svg { width: 18px; height: 18px; color: var(--accent); }

.contact__mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 24px 0;
  margin-bottom: 36px;
  border-block: 1px solid var(--line);
}
.contact__label {
  width: 100%;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__email {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1rem + 2vw, 2.3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  word-break: break-all;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.6s var(--ease-out), color 0.3s;
}
.contact__email:hover { color: var(--accent-2); background-size: 100% 1px; }

.copy {
  position: relative;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  font-size: 0.8rem;
  font-weight: 600;
  overflow: hidden;
  transition: border-color 0.3s, background-color 0.3s;
}
.copy:hover { border-color: var(--accent); }
.copy__done {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
}
.copy.is-copied .copy__done { transform: none; }

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { position: relative; display: block; }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 26px 18px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8a097' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 48px;
}
.field select option { background: var(--bg-2); color: var(--text); }
.field > span {
  position: absolute;
  left: 19px;
  top: 18px;
  font-size: 1rem;
  color: var(--muted);
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform 0.35s var(--ease-out), color 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(232, 149, 90, 0.12);
}
.field input:focus + span,
.field input:not(:placeholder-shown) + span,
.field textarea:focus + span,
.field textarea:not(:placeholder-shown) + span,
.field--select > span {
  transform: translateY(-10px) scale(0.75);
  color: var(--accent);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #e06c5a; }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 6px;
}
.form__note { font-size: 0.85rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding-top: 56px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.footer__links a { color: var(--muted); font-size: 0.92rem; transition: color 0.3s; }
.footer__links a:hover { color: var(--text); }
.footer__top {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.footer__top svg { width: 20px; height: 20px; transform: rotate(-90deg); transition: transform 0.4s var(--ease-out); }
.footer__top:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.footer__top:hover svg { transform: rotate(-90deg) translateX(3px); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-block: 24px calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 9, 8, 0.94);
  color: var(--text);
  overflow: hidden;
}
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: 100%; align-items: center; animation: fadeIn 0.4s var(--ease-out); }
.lightbox::backdrop { background: rgba(10, 9, 8, 0.6); backdrop-filter: blur(6px); }
.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: 0;
  padding: 72px 8px 24px;
}
.lightbox__img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 170px);
  max-height: calc(100dvh - 170px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transition: opacity 0.35s, transform 0.5s var(--ease-out);
}
.lightbox__img.is-switching { opacity: 0; transform: scale(0.97); }
.lightbox__cap {
  display: flex;
  gap: 18px;
  align-items: baseline;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.lightbox__count { font-family: var(--font-body); font-size: 0.8rem; color: var(--muted); letter-spacing: 0.1em; }
.lightbox__close,
.lightbox__nav {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(27, 24, 21, 0.7);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lightbox__close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__nav { margin-inline: clamp(8px, 2vw, 28px); }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav--prev svg { transform: rotate(180deg); }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

/* ==========================================================================
   Responsivt
   ========================================================================== */
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .card { aspect-ratio: 4 / 4.4; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(140px, 22vw, 220px); }
}

@media (max-width: 960px) {
  :root { --nav-h: 68px; }

  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 36px;
    padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
    background: rgba(13, 12, 11, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    clip-path: circle(0 at calc(100% - var(--gutter) - 23px) calc(var(--nav-h) / 2));
    visibility: hidden;
    transition: clip-path 0.8s var(--ease-in-out), visibility 0.8s;
  }
  .nav__menu.is-open {
    clip-path: circle(150% at calc(100% - var(--gutter) - 23px) calc(var(--nav-h) / 2));
    visibility: visible;
  }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link {
    padding: 6px 0;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 9vw, 3.4rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), color 0.3s;
  }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--accent-2); }
  .nav__menu.is-open .nav__link { opacity: 1; transform: none; }
  .nav__menu.is-open li:nth-child(1) .nav__link { transition-delay: 0.25s; }
  .nav__menu.is-open li:nth-child(2) .nav__link { transition-delay: 0.3s; }
  .nav__menu.is-open li:nth-child(3) .nav__link { transition-delay: 0.35s; }
  .nav__menu.is-open li:nth-child(4) .nav__link { transition-delay: 0.4s; }
  .nav__menu.is-open li:nth-child(5) .nav__link { transition-delay: 0.45s; }
  .nav__menu.is-open li:nth-child(6) .nav__link { transition-delay: 0.5s; }
  .nav__cta { min-height: 52px; padding: 14px 28px; font-size: 1rem; }
  .nav__mail { display: block; color: var(--muted); font-size: 0.95rem; }
  .nav__cta, .nav__mail { opacity: 0; transition: opacity 0.6s 0.55s; }
  .nav__menu.is-open .nav__cta, .nav__menu.is-open .nav__mail { opacity: 1; }

  .restore__grid,
  .contact__grid,
  .prints { grid-template-columns: 1fr; }
  .ba { order: -1; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan__desc { min-height: 0; }
  .photographer { position: relative; top: 0; max-width: 380px; }
}

@media (max-width: 640px) {
  .hero { padding-bottom: 96px; }
  .hero__scroll { display: none; }
  .hero__title .line:last-child { padding-left: 0.6em; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__eyebrow { font-size: 0.68rem; letter-spacing: 0.1em; }

  .services__grid { grid-template-columns: 1fr; }
  .card { aspect-ratio: 4 / 3.6; }

  .fixes { grid-template-columns: 1fr; }

  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
  .g-item__cap { opacity: 1; transform: none; font-size: 0.95rem; left: 12px; bottom: 10px; }
  .g-item::after { opacity: 0.9; }
  .filters { width: 100%; justify-content: space-between; }
  .filters__btn { padding: 9px 12px; font-size: 0.85rem; flex: 1; }

  .form__row { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; }

  .frame { left: 8%; width: 48%; }
  .frame--small { top: 34%; left: auto; right: 6%; width: 44%; }

  .photographer::before { inset: 12px -12px -12px 12px; }
  .photographer { margin-right: 12px; }

  .lightbox[open] { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 20px; z-index: 2; }
  .lightbox__nav--prev { left: 16px; }
  .lightbox__nav--next { right: 16px; }
  .lightbox__figure { padding: 72px 12px 96px; }
  .lightbox__img { max-height: calc(100vh - 250px); max-height: calc(100dvh - 250px); }
  .lightbox__cap { flex-direction: column; align-items: center; gap: 4px; text-align: center; }
}

/* ---------- Minskad rörelse ---------- */
@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;
    transition-delay: 0s !important;
  }
  .marquee__track { animation: none; }
}
