/* ─────────────────────────────────────────────────────────────────────────────
   Design A · "Ljus galleri"
   Linen paper, ink type, one sea-blue accent. Cormorant Garamond + Jost.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  --paper: #f6f2ea;
  --paper-2: #ede7db;
  --paper-3: #e4dccd;
  --ink: #1f2a33;
  --ink-soft: #57626c;
  --line: rgba(31, 42, 51, 0.14);
  --line-strong: rgba(31, 42, 51, 0.32);
  --accent: #2d5f7c;           /* sea blue, from "Bortom viken" */
  --accent-soft: rgba(45, 95, 124, 0.1);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, system-ui, sans-serif;

  --gutter: clamp(16px, 4.2vw, 56px);
  --max: 1360px;
  --header: 4.75rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --section: clamp(5rem, 11vw, 10rem);
}

/* ── Base ───────────────────────────────────────────────────────────────── */

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

html {
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 1rem);
}

body {
  margin: 0;
  font: 400 1.0625rem/1.7 var(--sans);
  overflow-x: clip;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* A whisper of paper grain behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .16 0 0 0 0 .2 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
main { display: block; outline: none; }
::selection { background: var(--accent); color: var(--paper); }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
  text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 0.75rem; }

/* ── Type ───────────────────────────────────────────────────────────────── */

.label {
  font: 500 0.72rem/1.4 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.h2 {
  font: 400 clamp(2.25rem, 1.5rem + 2.6vw, 3.75rem)/1.04 var(--serif);
  letter-spacing: -0.01em;
  margin-top: 0.6rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  flex-wrap: wrap;
  padding-bottom: 1.4rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

/* ── Buttons & links ────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.95rem 1.9rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: 500 0.74rem/1.3 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--block { display: flex; width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 0;
  font: 500 0.74rem/1.4 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: color 0.3s, background-size 0.5s var(--ease);
}
.link-arrow::after {
  content: "→";
  font-family: var(--sans);
  letter-spacing: 0;
  transition: transform 0.4s var(--ease);
}
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover::after { transform: translateX(5px); }
.link-arrow--up::after { content: "↑"; }
.link-arrow--up:hover::after { transform: translateY(-4px); }

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(246, 242, 234, 0.92);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem 2.5rem;
  height: var(--header);
}

.brand {
  margin-right: auto;
  font: 500 1.5rem/1 var(--serif);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav ul { display: flex; gap: 2.25rem; }
.site-nav a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  font: 500 0.72rem/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.15rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.lang { display: flex; align-items: center; }
.lang button {
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0 0.4rem;
  border: 0;
  background: none;
  cursor: pointer;
  font: 500 0.72rem/1 var(--sans);
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  transition: color 0.3s;
}
.lang button + button { border-left: 1px solid var(--line-strong); }
.lang button:hover { color: var(--ink); }
.lang button.is-active { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  padding: 0 0 0 0.25rem;
  border: 0;
  background: none;
  cursor: pointer;
  font: 500 0.72rem/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.menu-toggle__icon { display: grid; gap: 6px; width: 22px; }
.menu-toggle__icon span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.is-open .menu-toggle__icon span:first-child { transform: translateY(3.5px) rotate(45deg); }
.is-open .menu-toggle__icon span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .brand { font-size: 1.3rem; }
  .menu-toggle { display: inline-flex; }
  .site-header__inner { gap: 0.75rem; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem var(--gutter) 2.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s 0.35s;
  }
  .is-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a {
    display: block;
    padding: 0.9rem 0;
    font: 400 1.9rem/1.2 var(--serif);
    letter-spacing: 0;
    text-transform: none;
  }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current="page"] { font-style: italic; color: var(--accent); }
}
@media (max-width: 400px) {
  .menu-toggle__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ── Scroll reveal ──────────────────────────────────────────────────────── */

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 7rem);
  padding-top: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: var(--section);
}

.hero__text { padding-bottom: 5.5rem; }
.hero__text .label {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero__text .label::before {
  content: "";
  width: 2.75rem;
  height: 1px;
  background: currentColor;
}

.hero__title {
  margin: 1.75rem 0 1.5rem;
  font: 400 clamp(3rem, 1.4rem + 5.2vw, 6.6rem)/0.98 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__title em { font-style: italic; color: var(--accent); }

.hero__by {
  font: 400 italic 1.3rem/1.4 var(--serif);
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.25rem;
  margin-top: 2.75rem;
}

.hero__figure { position: relative; isolation: isolate; }

.hero__stage {
  position: relative;
  height: clamp(380px, 74vh, 760px);
  overflow: hidden;
  background: var(--paper-2);
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.8s var(--ease);
}
.hero__slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.07);
  transition: transform 9s var(--ease-out);
}
.hero__slide.is-active img { transform: scale(1); }
.hero__slide:focus-visible { outline-offset: -4px; }

.hero__caption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "count name controls"
    ".     size controls"
    "bar   bar  bar";
  align-items: baseline;
  gap: 0.2rem 1.5rem;
  padding-top: 1.25rem;
}
.hero__count { grid-area: count; font-variant-numeric: tabular-nums; }
.hero__name {
  grid-area: name;
  font: 400 italic 1.55rem/1.15 var(--serif);
  text-decoration: none;
}
.hero__name:hover { color: var(--accent); }
.hero__size { grid-area: size; letter-spacing: 0.14em; }
.hero__controls { grid-area: controls; display: flex; align-items: center; gap: 0.25rem; align-self: center; }

.hero__dot {
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.hero__dot::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: background-color 0.3s, transform 0.3s;
}
.hero__dot[aria-current="true"]::before { background: var(--ink); }
.hero__dot:hover::before { transform: scale(1.3); }

.hero__pause {
  position: relative;
  width: 2rem;
  height: 2rem;
  margin-left: 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.hero__pause::before,
.hero__pause::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 2px;
  height: 9px;
  margin-top: -4.5px;
  background: var(--ink);
}
.hero__pause::before { left: calc(50% - 3.5px); }
.hero__pause::after { left: calc(50% + 1.5px); }
.is-paused .hero__pause::before {
  left: calc(50% - 2.5px);
  width: 0;
  height: 0;
  margin-top: -5px;
  background: none;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--ink);
}
.is-paused .hero__pause::after { display: none; }
.hero__pause:hover { border-color: var(--ink); }

.hero__bar {
  grid-area: bar;
  display: block;
  height: 1px;
  margin-top: 1rem;
  background: var(--line);
  overflow: hidden;
}
.hero__bar span {
  display: block;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}
.hero__bar span.run { animation: hero-bar 7.5s linear forwards; }
.is-holding .hero__bar span,
.is-paused .hero__bar span { animation-play-state: paused; }

@keyframes hero-bar { to { transform: scaleX(1); } }

@media (min-width: 900px) {
  /* A pale linen panel offset behind the painting, like a gallery wall. */
  .hero__figure::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 3rem;
    right: -1.5rem;
    bottom: 3.5rem;
    left: -3rem;
    background: var(--paper-2);
  }
}

@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__text { padding-bottom: 0; }
  .hero__figure { order: -1; }
  .hero__stage { height: auto; aspect-ratio: 1 / 1; max-height: 78vh; }
  .hero__actions { margin-top: 2rem; }
}

/* ── Intro ──────────────────────────────────────────────────────────────── */

.intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
  padding-bottom: var(--section);
}
.intro .label { grid-column: 1 / 4; padding-top: 0.9rem; }
.intro__text {
  grid-column: 4 / 12;
  font: 400 clamp(1.6rem, 1.05rem + 1.9vw, 2.7rem)/1.3 var(--serif);
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.intro__text::first-line { font-style: italic; }

@media (max-width: 760px) {
  .intro { grid-template-columns: 1fr; }
  .intro .label, .intro__text { grid-column: 1 / -1; }
  .intro .label { padding-top: 0; }
}

/* ── Cards ──────────────────────────────────────────────────────────────── */

.card__link {
  display: block;
  text-decoration: none;
}

.card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out), filter 0.8s var(--ease);
}
.card__link:hover .card__media img,
.card__link:focus-visible .card__media img { transform: scale(1.04); }
.card.is-sold .card__media img { filter: saturate(0.75) brightness(0.97); }
.card.is-sold .card__link:hover .card__media img { filter: none; }

.card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.15rem 1rem;
  align-items: baseline;
  padding-top: 1.1rem;
}
.card__title {
  grid-column: 1 / -1;
  font: 400 1.6rem/1.15 var(--serif);
  transition: color 0.3s;
}
.card__link:hover .card__title { color: var(--accent); }
.card__meta {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.card__price {
  font: 400 italic 1.05rem/1.3 var(--serif);
  color: var(--ink);
  text-align: right;
}
.card.is-sold .card__price { color: var(--ink-soft); }

.badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem 0.4rem;
  background: rgba(246, 242, 234, 0.94);
  color: var(--ink);
  font: 500 0.64rem/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.badge--reserved::before { background: transparent; border: 1px solid var(--accent); }
.badge--sold { background: var(--ink); color: var(--paper); }
.badge--sold::before { background: var(--paper); opacity: 0.6; }
.badge--inline { position: static; background: var(--paper-2); }
.badge--inline.badge--sold { background: var(--ink); }

/* ── Featured (home) ────────────────────────────────────────────────────── */

.featured { padding-bottom: var(--section); }

.featured__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(3rem, 6vw, 5.5rem) 1.5rem;
}
.card--feature .card__title { font-size: clamp(1.7rem, 1.2rem + 1vw, 2.3rem); }
.card--f0 { grid-column: 1 / 5; }
.card--f1 { grid-column: 5 / 9; }
.card--f2 { grid-column: 9 / 13; }

@media (max-width: 760px) {
  .featured__grid { grid-template-columns: 1fr; }
  .card--f0, .card--f1, .card--f2 { grid-column: 1 / -1; }
}

/* ── Quote ──────────────────────────────────────────────────────────────── */

.quote { padding-bottom: var(--section); }
.quote__block {
  max-width: 34ch;
  margin-inline: auto;
  text-align: center;
}
.quote__block p {
  font: 400 italic clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem)/1.2 var(--serif);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.quote__block p::before {
  content: "“";
  display: block;
  height: 0.55em;
  margin-bottom: 0.15em;
  font-size: 2.2em;
  line-height: 1;
  font-style: normal;
  color: var(--accent);
}
.quote__block footer {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
}
.quote__block footer::before,
.quote__block footer::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
}

/* ── Process ────────────────────────────────────────────────────────────── */

.process {
  padding-block: var(--section);
  background: var(--paper-2);
}
.process .section-head { border-bottom-color: var(--line-strong); }

.process__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 3.5vw, 3.5rem);
}

.step__img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper-3);
}
.step__img img { width: 100%; height: 100%; object-fit: cover; }

.step__num {
  margin-top: 1.5rem;
  font: 400 italic 2.6rem/1 var(--serif);
  color: var(--accent);
}
.step__title {
  margin-top: 0.6rem;
  font: 400 1.65rem/1.15 var(--serif);
}
.step__text {
  margin-top: 0.75rem;
  max-width: 34ch;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .process__steps { grid-template-columns: 1fr; gap: 2.75rem; }
  .step, .step:nth-child(2), .step:nth-child(3) {
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 1.25rem;
    margin-top: 0;
  }
  .step__img { grid-row: 1 / 4; }
  .step__num { margin-top: 0; font-size: 2rem; }
  .step__title { font-size: 1.4rem; }
  .step__text { font-size: 0.95rem; }
}

/* ── About ──────────────────────────────────────────────────────────────── */

.about {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3rem 1.5rem;
  align-items: center;
  padding-block: var(--section);
}

.about__portrait { grid-column: 1 / 6; }
.about__img {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 5;
}
.about__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}
/* Hairline frame offset behind the portrait. */
.about__img::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--line-strong);
}
.about__caption {
  max-width: 30ch;
  margin-top: 2.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--accent);
  font: 400 italic 1.15rem/1.45 var(--serif);
  color: var(--ink-soft);
}

.about__text { grid-column: 7 / 13; }
.about__body { margin: 2rem 0 2.5rem; }
.about__body p { max-width: 56ch; color: var(--ink-soft); }
.about__body p + p { margin-top: 1.1rem; }
.about__body .about__lead {
  font: 400 clamp(1.4rem, 1.1rem + 0.8vw, 1.8rem)/1.4 var(--serif);
  color: var(--ink);
  margin-bottom: 1.6rem;
}

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__portrait, .about__text { grid-column: 1 / -1; }
  .about__portrait { width: min(100% - 0.75rem, 460px); }
  .about__img::before { inset: 0.75rem -0.75rem -0.75rem 0.75rem; }
}

/* ── Contact ────────────────────────────────────────────────────────────── */

.contact { padding-bottom: var(--section); }
.contact__inner > * { margin-inline: auto; padding-inline: 1.25rem; }
.contact__inner {
  text-align: center;
  position: relative;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
/* Framed like a gallery placard, inset from the gutters. */
.contact__inner::before {
  content: "";
  position: absolute;
  inset: 0 var(--gutter);
  border: 1px solid var(--line-strong);
  pointer-events: none;
}
.contact__title {
  max-width: 16ch;
  margin-top: 1rem;
  font: 400 clamp(2.5rem, 1.6rem + 3.2vw, 4.6rem)/1.02 var(--serif);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.contact__lede {
  max-width: 46ch;
  margin-top: 1.5rem;
  color: var(--ink-soft);
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}
.contact__quote {
  max-width: 40ch;
  margin-top: 3rem;
  font: 400 italic 1.15rem/1.5 var(--serif);
  color: var(--ink-soft);
}
.contact__quote::before { content: "“"; }
.contact__quote::after { content: "”"; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.brand--large { font-size: 2rem; }
.site-footer__tag {
  margin-top: 0.75rem;
  font: 400 italic 1.1rem/1.4 var(--serif);
  color: var(--ink-soft);
}
.site-footer__links { display: grid; gap: 0.4rem; }
.site-footer__links a,
.site-footer__ig {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease), color 0.3s;
}
.site-footer__links a:hover,
.site-footer__ig:hover { background-size: 100% 1px; color: var(--accent); }
.site-footer__ig {
  display: inline-block;
  margin-top: 0.6rem;
  font: 400 1.35rem/1.3 var(--serif);
  overflow-wrap: anywhere;
}
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* ── Page head (shop) ───────────────────────────────────────────────────── */

.page-head {
  padding-top: clamp(3rem, 8vw, 6.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.page-head__title {
  margin-top: 1rem;
  font: 400 clamp(3.2rem, 2rem + 5vw, 7rem)/0.95 var(--serif);
  letter-spacing: -0.02em;
}
.page-head__lede {
  max-width: 44ch;
  margin-top: 1.5rem;
  font: 400 italic clamp(1.25rem, 1.1rem + 0.5vw, 1.55rem)/1.45 var(--serif);
  color: var(--ink-soft);
}

/* ── Catalogue ──────────────────────────────────────────────────────────── */

.catalogue { padding-bottom: var(--section); }

.catalogue__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-block: 0.5rem;
  border-block: 1px solid var(--line);
}

.filters { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
.filter {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.3rem;
  min-height: 2.75rem;
  padding: 0.85rem 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: 500 0.74rem/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.3s;
}
.filter::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.45rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--ink); }
.filter[aria-pressed="true"]::after { transform: scaleX(1); }
.filter__n {
  font: 400 italic 0.95rem/0.6 var(--serif);
  letter-spacing: 0;
  color: var(--accent);
}

.catalogue__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(3rem, 5vw, 4.5rem) clamp(1.25rem, 3vw, 2.75rem);
}
@media (max-width: 999px) {
  .catalogue__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalogue__grid--three > .card:nth-child(3) { display: none; }
}
@media (max-width: 540px) {
  .catalogue__grid { grid-template-columns: 1fr; }
  .catalogue__grid--three > .card:nth-child(3) { display: block; }
}

.is-filtering .card {
  animation: card-in 0.7s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(14px); }
}

.empty {
  grid-column: 1 / -1;
  padding: 4rem 0;
  text-align: center;
  font: 400 italic 1.4rem/1.4 var(--serif);
  color: var(--ink-soft);
}

/* ── How to buy ─────────────────────────────────────────────────────────── */

.howto {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
  padding-bottom: var(--section);
}
.howto__head { grid-column: 1 / 5; }
.howto__list { grid-column: 6 / 13; border-bottom: 1px solid var(--line); }
.howto__actions {
  grid-column: 6 / 13;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.25rem;
}
.howto__item {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
}
.howto__num {
  font: 400 italic 1.7rem/1.1 var(--serif);
  color: var(--accent);
}
.howto__item p { font-size: 1.05rem; padding-top: 0.2rem; }

@media (max-width: 860px) {
  .howto { grid-template-columns: 1fr; }
  .howto__head, .howto__list, .howto__actions { grid-column: 1 / -1; }
  .howto__item { grid-template-columns: 2.75rem minmax(0, 1fr); }
}

/* ── Work page ──────────────────────────────────────────────────────────── */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  padding-block: 1.75rem 2rem;
  font: 500 0.7rem/1.4 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.crumbs [aria-current] { color: var(--ink); }

.work {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3rem 1.5rem;
  align-items: start;
  padding-bottom: var(--section);
}
.work__gallery { grid-column: 1 / 8; }
.work__info {
  grid-column: 9 / 13;
  position: sticky;
  top: calc(var(--header) + 1.5rem);
}

.work__main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: clamp(0.75rem, 3vw, 2.5rem);
  border: 0;
  background: var(--paper-2);
  cursor: zoom-in;
}
.work__main img {
  width: auto;
  max-width: 100%;
  max-height: min(78vh, 820px);
  object-fit: contain;
}
.work__main img.is-swapping { animation: swap-in 0.6s var(--ease) both; }
@keyframes swap-in { from { opacity: 0.2; } }
.work__zoom {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(246, 242, 234, 0.92);
  font: 300 1.4rem/1 var(--sans);
  transition: transform 0.4s var(--ease);
}
.work__main:hover .work__zoom { transform: rotate(90deg); }

.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.9rem;
}
.thumb {
  display: block;
  width: 4.75rem;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  background: var(--paper-2);
  cursor: pointer;
  opacity: 0.6;
  outline: 1px solid transparent;
  outline-offset: 3px;
  transition: opacity 0.3s, outline-color 0.3s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb[aria-pressed="true"] { opacity: 1; outline-color: var(--ink); }
.thumb:focus-visible { outline: 2px solid var(--accent); }

.work__status {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.work__title {
  margin-top: 1.25rem;
  font: 400 clamp(2.6rem, 1.8rem + 2.6vw, 4.4rem)/1 var(--serif);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.work__price {
  margin-top: 1rem;
  font: 400 italic 1.5rem/1.3 var(--serif);
}
.work__price.is-sold { color: var(--ink-soft); }

.work__sub { margin-top: 2.25rem; }
.facts { margin-top: 0.75rem; border-top: 1px solid var(--line); }
.facts div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.facts dt { font-size: 0.85rem; color: var(--ink-soft); }
.facts dd { font-size: 0.95rem; }

.work__story p {
  margin-top: 0.75rem;
  font: 400 1.3rem/1.5 var(--serif);
}
.work__note {
  margin-top: 1.75rem;
  padding: 1rem 1.1rem;
  background: var(--accent-soft);
  border-left: 1px solid var(--accent);
  font-size: 0.95rem;
}
.work__actions {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.notfound {
  padding-block: clamp(3rem, 8vw, 6rem) var(--section);
}
.notfound .btn { margin-top: 2.5rem; }

@media (max-width: 900px) {
  .work { grid-template-columns: 1fr; }
  .work__gallery, .work__info { grid-column: 1 / -1; }
  .work__info { position: static; }
  .work__main img { max-height: 70vh; }
}

.more { padding-bottom: var(--section); }

/* ── Lightbox ───────────────────────────────────────────────────────────── */

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(246, 242, 234, 0.98);
  color: var(--ink);
}
.lightbox[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  animation: lb-in 0.4s var(--ease);
}
.lightbox::backdrop { background: rgba(31, 42, 51, 0.35); }
@keyframes lb-in { from { opacity: 0; } }

.lightbox__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: clamp(1rem, 4vw, 3rem) var(--gutter) 0;
  cursor: zoom-out;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 30px 60px -30px rgba(31, 42, 51, 0.35);
}
.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem var(--gutter) 1.25rem;
}
.lightbox__bar .label { margin-right: auto; }
.lightbox__nav { display: flex; gap: 0.5rem; }
.lightbox__nav[hidden] { display: none; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font: 300 1.2rem/1 var(--sans);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.icon-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.lightbox__close { font-size: 1.6rem; }

/* ── 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;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero__slide img { transform: none; }
  /* No autoplay: the slideshow is driven by the dots only. */
  .hero__bar, .hero__pause { display: none; }
}
