/* ==========================================================================
   Mauritz Widforss — jakttradition sedan 1729
   Classic serif + technical mono. Forest, gold, paper.
   ========================================================================== */

@font-face {
  font-family: "Ogg";
  src: url("assets/fonts/ogg.woff2") format("woff2");
  font-display: swap;
}

:root {
  --forest: #293028;
  --deep: #1c211b;
  --deep-2: #232a22;
  --gold: #b3a264;
  --gold-soft: #d6c995;
  --paper: #f4f1e8;
  --paper-2: #e9e4d5;
  --ink: #1e231d;
  --cream: #efeadb;
  --muted-d: rgba(239, 234, 219, .62);
  --muted-l: rgba(30, 35, 29, .62);
  --line-d: rgba(239, 234, 219, .14);
  --line-l: rgba(30, 35, 29, .16);
  --red: #d2452f;
  --green: #8fb36a;

  --serif: "Ogg", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--deep);
  color: var(--cream);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--deep); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--deep); padding: 8px 14px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 400; }
.label { color: var(--gold); margin: 0 0 22px; }
.small { font-size: 14px; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 92px);
  line-height: .98;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}
.display em, .hero-title em { font-style: italic; color: var(--gold); }
.paper .display em { color: #8a7a3d; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 22px;
  font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border-radius: 999px;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--deep); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { border: 1px solid var(--line-d); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--forest); }

.link-line {
  text-decoration: none; position: relative; padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.link-line:hover { background-size: 100% 1px; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  transition: background .5s var(--ease), transform .6s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(28, 33, 27, .82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-color: var(--line-d);
}
.site-header.is-hidden { transform: translateY(-100%); }
.brand img { width: clamp(150px, 15vw, 210px); height: auto; }
.header-status { display: flex; align-items: center; gap: 10px; color: var(--muted-d); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.menu-toggle { display: inline-flex; align-items: center; gap: 12px; height: 44px; }
.burger { display: grid; gap: 6px; width: 26px; }
.burger i { display: block; height: 1px; background: currentColor; transition: transform .5s var(--ease); }
.menu-open .burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Live status dot (open / closed) */
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-d); flex: none; position: relative; }
[data-open="true"] .dot { background: var(--green); }
[data-open="true"] .dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--green); animation: ping 2s var(--ease) infinite;
}
[data-open="false"] .dot { background: var(--red); }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* ── Fullscreen menu ─────────────────────────────────────── */
.menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--deep);
  display: block;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease);
}
.menu[hidden] { display: block; visibility: hidden; }
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-inner {
  height: 100%; padding: calc(var(--header-h) + 4vh) var(--gutter) 32px;
  display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr auto; gap: 32px;
  max-width: var(--max); margin: 0 auto;
}
.menu-list { list-style: none; margin: 0; padding: 0; align-self: center; }
.menu-list li { overflow: hidden; border-top: 1px solid var(--line-d); }
.menu-list li:last-child { border-bottom: 1px solid var(--line-d); }
.menu-list a {
  display: flex; align-items: baseline; gap: 24px;
  font: 400 clamp(34px, 5.4vw, 74px)/1.15 var(--serif);
  text-decoration: none; padding: 6px 0;
  transform: translateY(105%);
  transition: transform .9s var(--ease), color .3s, padding-left .5s var(--ease);
}
.menu-open .menu-list a { transform: none; }
.menu-list li:nth-child(2) a { transition-delay: .05s, 0s, 0s; }
.menu-list li:nth-child(3) a { transition-delay: .1s, 0s, 0s; }
.menu-list li:nth-child(4) a { transition-delay: .15s, 0s, 0s; }
.menu-list li:nth-child(5) a { transition-delay: .2s, 0s, 0s; }
.menu-list li:nth-child(6) a { transition-delay: .25s, 0s, 0s; }
.menu-list a:hover { color: var(--gold); padding-left: 16px; font-style: italic; }
.menu-preview { margin: 0; align-self: center; aspect-ratio: 4 / 5; max-height: 70vh; overflow: hidden; border-radius: 4px; justify-self: end; width: 100%; max-width: 460px; }
.menu-preview img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s, transform 1.2s var(--ease); }
.menu-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 32px; color: var(--muted-d); }
.menu-foot a { text-decoration: none; }
.menu-foot a:hover { color: var(--gold); }

/* ── Topographic contour canvas ──────────────────────────── */
.topo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: .5; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 40px) var(--gutter) clamp(72px, 12vh, 120px);
  isolation: isolate;
}
.hero-media { position: absolute; inset: -6% 0 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 18s var(--ease) both; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(28,33,27,.55) 0%, rgba(28,33,27,.15) 35%, rgba(28,33,27,.85) 100%),
    linear-gradient(90deg, rgba(28,33,27,.75) 0%, rgba(28,33,27,0) 65%);
}
.hero .topo { z-index: -1; opacity: .35; mix-blend-mode: screen; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.hero-content { max-width: 1400px; position: relative; }
.hero-lead, .hero-cta { max-width: 920px; }
.eyebrow { color: var(--gold); margin: 0 0 28px; }
.hero-title {
  font: 400 clamp(52px, 9.6vw, 160px)/.9 var(--serif);
  letter-spacing: -.02em; margin: 0 0 32px;
}
.hero-title .line { display: block; overflow: hidden; padding: 0 .14em .08em 0; margin-right: -.14em; }
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title em { padding-left: .5em; }
.hero-lead { max-width: 520px; color: var(--muted-d); font-size: clamp(16px, 1.4vw, 19px); margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Split-letter reveal */
.char { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.is-in .char, .char.is-in { transform: none; }

/* ── Marquee ─────────────────────────────────────────────── */
.marquee { overflow: hidden; background: var(--deep); border-block: 1px solid var(--line-d); padding: clamp(16px, 2.5vw, 30px) 0; }
.marquee-track { display: flex; width: max-content; gap: .5em; align-items: baseline; font: 500 clamp(40px, 7vw, 108px)/1 var(--sans); letter-spacing: -.03em; text-transform: uppercase; will-change: transform; }
.marquee-track span { color: transparent; -webkit-text-stroke: 1px rgba(239,234,219,.5); }
.marquee-track .serif-i { font: italic 400 1.04em/1 var(--serif); text-transform: none; color: var(--gold); -webkit-text-stroke: 0; letter-spacing: -.01em; }
.marquee-track em { font-style: normal; color: var(--gold); font-size: .5em; }

/* ── Section scaffolding ─────────────────────────────────── */
section { position: relative; }
.paper { background: var(--paper); color: var(--ink); }
.paper .label { color: #7d6f37; }
.paper ::selection { background: var(--ink); color: var(--paper); }
.dark { background: var(--forest); overflow: hidden; }
.dark-alt { background: var(--deep-2); }
.dark .wrap, .besok .wrap { position: relative; z-index: 1; }
.intro, .skytte, .butik, .auktion, .skola, .besok { padding: clamp(96px, 14vw, 200px) 0; }
.section-head { margin-bottom: clamp(48px, 7vw, 96px); max-width: 1100px; }

/* ── Intro + index ───────────────────────────────────────── */
.intro-grid { display: grid; grid-template-columns: 1fr 2.2fr; gap: 24px 48px; align-items: start; }
.intro-grid .display { grid-column: 2; font-size: clamp(36px, 5vw, 76px); }
.intro-body { grid-column: 2; max-width: 620px; color: var(--muted-l); font-size: 18px; margin: 16px 0 0; }
.intro-grid .label { grid-row: 1; padding-top: 14px; }

.chapters {
  list-style: none; margin-top: clamp(64px, 9vw, 128px); padding-top: 0; padding-bottom: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(14px, 1.6vw, 24px);
}
.chapters a { display: block; text-decoration: none; }
.chapters figure { margin: 0 0 18px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; background: var(--paper-2); }
.chapters img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .8s var(--ease); filter: saturate(.85); }
.chapters h3 {
  font: 400 clamp(24px, 2vw, 30px)/1.15 var(--serif); margin: 0 0 6px; display: inline;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .6s var(--ease);
}
.chapters p { margin: 8px 0 0; color: var(--muted-l); font-size: 15px; line-height: 1.5; }
@media (hover: hover) {
  .chapters a:hover img { transform: scale(1.05); filter: saturate(1); }
  .chapters a:hover h3 { background-size: 100% 1px; }
}

/* ── Skytte ──────────────────────────────────────────────── */
.wide-media { margin: 0 0 clamp(48px, 6vw, 88px); position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 21 / 9; cursor: none; }
.wide-media img { width: 100%; height: 100%; object-fit: cover; }
.scope {
  position: absolute; left: 0; top: 0; width: 120px; height: 120px; margin: -60px 0 0 -60px;
  border: 1px solid rgba(239,234,219,.85); border-radius: 50%; pointer-events: none;
  opacity: 0; transition: opacity .3s;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.28);
}
.scope::before, .scope::after { content: ""; position: absolute; background: rgba(239,234,219,.85); }
.scope::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.scope::after { top: 50%; left: 0; right: 0; height: 1px; }
.scope span { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: var(--red); }
.wide-media:hover .scope { opacity: 1; }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; margin-bottom: clamp(64px, 9vw, 128px); }
.split-text p { color: var(--muted-d); font-size: 18px; margin: 0 0 1.2em; max-width: 560px; }
.split-text p:first-child { color: var(--cream); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.45; }

/* Supporting photo */
.split-media { margin: 0; overflow: hidden; border-radius: 4px; aspect-ratio: 3 / 2; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* Spec sheet */
.spec { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-d); }
.spec-col { padding: 28px 28px 8px 0; }
.spec-col + .spec-col { padding-left: 28px; border-left: 1px solid var(--line-d); }
.spec-title { font: 400 28px/1.1 var(--serif); margin: 0 0 22px; }
.spec dl { margin: 0; }
.spec dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line-d); font-family: var(--mono); font-size: 13px; }
.spec dt { color: var(--muted-d); }
.spec dd { margin: 0; text-align: right; }
.spec-cta p { color: var(--muted-d); margin: 0 0 24px; }

/* ── Butiken ─────────────────────────────────────────────── */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.mosaic figure { margin: 0; overflow: hidden; border-radius: 4px; position: relative; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.m-b img, .m-c img { position: absolute; inset: 0; }
.mosaic figure:hover img { transform: scale(1.05); }
.m-a { grid-column: 1 / 8; grid-row: 1 / 3; aspect-ratio: 4 / 3; }
.m-b { grid-column: 8 / 13; grid-row: 1; }
.m-c { grid-column: 8 / 13; grid-row: 2; }
.m-text { grid-column: 1 / 8; grid-row: 3; padding-top: 16px; }
.m-text p { font-size: 19px; max-width: 640px; margin: 0 0 24px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 24px; }
.tags li { border: 1px solid var(--line-l); border-radius: 999px; padding: 7px 14px; transition: background .3s, color .3s; }
.tags li:hover { background: var(--ink); color: var(--paper); }

/* ── Auktioner ───────────────────────────────────────────── */
.auktion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.auktion-media { margin: 0; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5; }
.auktion-media img { width: 100%; height: 115%; object-fit: cover; }
.auktion-text > p:not(.label) { color: var(--muted-d); font-size: 18px; margin: 32px 0; }
.row { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; }

/* ── Jaktskolan ──────────────────────────────────────────── */
.skola-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.skola-media { margin: 0; overflow: hidden; border-radius: 4px; aspect-ratio: 3 / 2; position: sticky; top: calc(var(--header-h) + 24px); }
.skola-media img { width: 100%; height: 100%; object-fit: cover; }
.skola-grid > div > p { font-size: 19px; margin: 0 0 40px; }
.steps { list-style: none; padding: 0; margin: 0 0 40px; border-top: 1px solid var(--line-l); }
.steps li { padding: 22px 0; border-bottom: 1px solid var(--line-l); }
.steps strong { font: 400 26px/1.2 var(--serif); display: block; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted-l); }

/* ── Historia (horizontal) ───────────────────────────────── */
.historia { background: var(--deep); height: 500vh; }
/* Column layout: cards fill the middle, year counter + progress sit in their own row below */
.h-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; padding: calc(var(--header-h) + 16px) 0 28px; }
.h-sticky .topo { opacity: .28; }
.h-top { order: 2; position: relative; z-index: 2; padding: 0 var(--gutter); }
.odo { display: inline-flex; font: italic 400 clamp(48px, 6vw, 96px)/1 var(--serif); color: var(--gold); letter-spacing: -.01em; }
.odo-col { display: inline-block; height: 1em; overflow: hidden; position: relative; }
.odo-col > span { display: flex; flex-direction: column; transition: transform 1.1s cubic-bezier(.22, 1, .36, 1); will-change: transform; }
.odo-col i { font-style: inherit; height: 1em; display: flex; justify-content: center; }
.h-track { display: flex; gap: clamp(20px, 3vw, 48px); padding: 0 var(--gutter); width: max-content; will-change: transform; position: relative; z-index: 1; align-items: center; flex: 1; min-height: 0; margin-bottom: 20px; }
.h-card { width: clamp(280px, 26vw, 380px); flex: none; padding-top: 24px; border-top: 1px solid var(--line-d); transition: opacity .5s; }
.h-card h3 { font: 400 clamp(24px, 2.2vw, 32px)/1.15 var(--serif); margin: 10px 0 12px; }
.h-card p { color: var(--muted-d); margin: 0; font-size: 16px; }
.h-year { font: italic 400 26px/1 var(--serif); color: var(--gold); }
.h-intro { width: clamp(300px, 36vw, 560px); border-top: 0; padding-top: 0; }
.h-intro .display { font-size: clamp(40px, 5vw, 76px); margin-bottom: 20px; }
.h-intro .hint { color: var(--gold); margin-top: 28px; }
.hint-mobile { display: none; }
.h-img .zoom { display: block; width: 100%; height: min(30vh, 400px); overflow: hidden; border-radius: 3px; margin-bottom: 18px; cursor: zoom-in; background: var(--deep-2); }
.h-img .zoom img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.05); transition: transform 1s var(--ease), filter .6s; }
.h-img .zoom:hover img { transform: scale(1.06); filter: none; }
.h-img .paper-scan { background: #f1ede2; }
.h-img .paper-scan img { object-fit: contain; padding: 14px; mix-blend-mode: multiply; }
.credit { margin-top: 10px !important; font-size: 10px; color: var(--muted-d); }
.h-progress { order: 3; position: relative; flex: none; margin: 14px var(--gutter) 0; height: 1px; background: var(--line-d); }
.h-progress span { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }

/* ── Besök ───────────────────────────────────────────────── */
.besok-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: end; }
.besok address { font: 400 clamp(22px, 2vw, 28px)/1.45 var(--serif); font-style: normal; margin-top: 40px; color: var(--muted-d); }
.besok address .link-line { display: inline-block; margin-top: 20px; color: var(--gold); font-family: var(--mono); font-size: 12px; }
.live { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 13px; }
.hours table { width: 100%; border-collapse: collapse; }
.hours caption { text-align: left; color: var(--muted-d); padding-bottom: 12px; }
.hours th, .hours td { padding: 16px 0; border-top: 1px solid var(--line-d); font-weight: 400; }
.hours th { text-align: left; }
.hours td { text-align: right; font-family: var(--mono); font-size: 14px; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 1px solid var(--line-d); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--gold); }
.hours tr.is-today th::before { content: "▸ "; }
.contact-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.contact-links a {
  display: flex; flex-direction: column; gap: 8px; padding: 20px; text-decoration: none;
  border: 1px solid var(--line-d); border-radius: 6px; transition: border-color .3s, background .3s;
  font-size: 16px; word-break: break-word;
}
.contact-links a .mono { color: var(--gold); }
.contact-links a:hover { border-color: var(--gold); background: rgba(179,162,100,.06); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--deep); padding: 0 0 32px; overflow: hidden; }
.footer-word {
  font: 400 clamp(32px, 12.5vw, 240px)/.9 var(--serif); letter-spacing: -.03em; white-space: nowrap;
  text-align: center; padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 40px);
  background: linear-gradient(180deg, var(--gold) 0%, rgba(179,162,100,.15) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--muted-d); border-top: 1px solid var(--line-d); padding-top: 24px; }
.footer-grid nav { display: flex; gap: 24px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--gold); }

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(14,17,13,.92); backdrop-filter: blur(6px); }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 3px; background: #f1ede2; }
.lb-close { position: absolute; top: -36px; right: 0; color: var(--cream); }

/* ── Scroll reveals ──────────────────────────────────────── */
[data-reveal], [data-reveal-group] > * {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.is-in[data-reveal], [data-reveal-group] > .is-in { opacity: 1; transform: none; }
.reveal-clip { clip-path: inset(12% 6% 12% 6% round 4px); transition: clip-path 1.4s var(--ease); }
.reveal-clip img { transform: scale(1.18); transition: transform 1.8s var(--ease); }
.reveal-clip.is-in { clip-path: inset(0 0 0 0 round 4px); }
.reveal-clip.is-in img { transform: scale(1); }
.mosaic .reveal-clip.is-in:hover img { transform: scale(1.05); }
.no-js [data-reveal], .no-js [data-reveal-group] > * { opacity: 1; transform: none; }
.no-js .reveal-clip { clip-path: none; }
.no-js .reveal-clip img { transform: none; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .header-status { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .menu-inner { grid-template-columns: 1fr; }
  .menu-preview { display: none; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-grid .display, .intro-body { grid-column: 1; }
  .chapters { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62vw; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .chapters::-webkit-scrollbar { display: none; }
  .chapters li { scroll-snap-align: start; }
  .split, .auktion-grid, .skola-grid, .besok-grid { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
  .spec-col, .spec-col + .spec-col { padding: 28px 0 8px; border-left: 0; }
  .spec-col + .spec-col { border-top: 1px solid var(--line-d); }
  .mosaic > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .m-b, .m-c { aspect-ratio: 4 / 3; }
  .skola-media { position: relative; top: 0; }
  .wide-media { aspect-ratio: 16 / 10; cursor: auto; }
  .scope { display: none; }

  /* Timeline becomes a native swipe row on small screens */
  .historia { height: auto; padding: clamp(96px, 14vw, 160px) 0; }
  .h-sticky { position: relative; height: auto; overflow: visible; padding: 0; }
  .h-top { margin-top: 24px; }
  .h-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-top: 0; padding-bottom: 16px; transform: none !important; align-items: stretch; scrollbar-width: none; }
  .h-track::-webkit-scrollbar { display: none; }
  .h-card { scroll-snap-align: start; width: 78vw; max-width: 360px; }
  .h-img .zoom { height: auto; aspect-ratio: 1; }
  .hint-desktop { display: none; }
  .hint-mobile { display: inline; }
  .h-progress { display: none; }
}
@media (max-width: 560px) {
  .header-actions .btn { display: none; }
  .menu-toggle .mono { display: none; }
  .hero-title em { padding-left: 0; }
  .contact-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .char { transform: none; }
}
