/* MRT Design | skiss v2 | Printworks-struktur: vitt, luft, små etiketter, understrukna länkar */
:root {
  --bg: #FBFAF8;
  --tile: #F1EEE9;
  --sand: #EDE6DC;
  --ink: #171717;
  --ink-soft: #3D3D3D;
  --muted: #6F6B66;
  --line: rgba(23, 23, 23, 0.12);
  --black: #141414;
  --cream: #FBFAF8;
  --font-body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --space: clamp(4rem, 8vw, 7.5rem);
  --gutter: clamp(1rem, 3.5vw, 3rem);
  --announce-h: 32px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; padding-top: var(--announce-h);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h2.serif { font-family: var(--font-serif); font-weight: 300; font-size: clamp(2.4rem, 4.6vw, 4rem); letter-spacing: -0.02em; line-height: 1.02; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
::selection { background: var(--ink); color: var(--cream); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.progress { position: fixed; top: var(--announce-h); left: 0; right: 0; height: 2px; z-index: 55; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }

/* ---------- Labels, links, buttons ---------- */
.kicker, .product-cat, .footer-head, .tag {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 500; color: var(--muted);
}
.kicker { margin-bottom: 1rem; }
.kicker.light { color: rgba(251,250,248,0.8); }
.kicker.center { text-align: center; }
.light { color: var(--cream); }
.underline-link {
  display: inline-block; font-size: 1rem; font-weight: 500; padding-bottom: 3px; min-height: 44px;
  background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-repeat: no-repeat; background-position: left calc(100% - 14px);
  transition: background-size .4s var(--ease-out), opacity .3s;
}
.underline-link.small { font-size: 0.86rem; min-height: 40px; background-position: left calc(100% - 12px); }
.underline-link:hover { background-size: 0% 1px; opacity: 0.75; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.8rem 1.6rem;
  background: var(--black); color: var(--cream); font-weight: 500; font-size: 0.9rem; letter-spacing: 0.02em; border: 1px solid var(--black);
  transition: background .3s, color .3s, transform .3s var(--ease-out);
}
.btn:hover { background: #000; transform: translateY(-1px); }

/* ---------- Announce + header ---------- */
.announce {
  position: fixed; top: 0; left: 0; right: 0; height: var(--announce-h); z-index: 52;
  background: var(--black); color: var(--cream); display: grid; place-items: center; padding: 0 1rem;
  font-size: 0.72rem; letter-spacing: 0.06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.site-header {
  position: fixed; top: var(--announce-h); left: 0; right: 0; z-index: 50; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--gutter);
  background: var(--bg); border-bottom: 1px solid var(--line); transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,0.05); }
.nav-left, .nav-right { display: flex; align-items: center; gap: 1.5rem; font-size: 0.86rem; font-weight: 500; }
.nav-right { justify-content: flex-end; gap: 0.6rem; }
.nav-right a { margin-right: 0.8rem; }
.nav-left a, .nav-right a {
  background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-repeat: no-repeat; background-position: left bottom;
  transition: background-size .4s var(--ease-out); padding: 4px 0;
}
.nav-left a:hover, .nav-right a:hover { background-size: 100% 1px; }
.wordmark { font-weight: 600; font-size: 1.05rem; letter-spacing: 0.26em; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; transition: opacity .3s; }
.icon-btn:hover { opacity: 0.6; }
.burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 6px; margin-left: -10px; }
.burger span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease-out); }
.site-header.menu-open .burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
.site-header.menu-open .burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-menu {
  position: fixed; top: calc(var(--announce-h) + var(--header-h)); left: 0; right: 0; bottom: 0; background: var(--bg);
  padding: 1.5rem var(--gutter); display: flex; flex-direction: column; gap: 0.2rem;
  transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .35s, transform .45s var(--ease-out);
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu > a { font-size: 1.6rem; font-weight: 500; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.mobile-menu-foot { margin-top: auto; display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.95rem; color: var(--muted); padding-bottom: 2rem; }

/* ---------- Hero ---------- */
.hero { position: relative; margin-top: var(--header-h); background: #B9B6B2; overflow: hidden; }
.hero-media { display: block; aspect-ratio: 16 / 9; max-height: calc(100vh - var(--announce-h) - var(--header-h)); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-inner { position: absolute; left: var(--gutter); top: clamp(1.5rem, 5vw, 4rem); max-width: 30rem; }
.hero-title { font-family: var(--font-serif); font-weight: 300; font-size: clamp(2.3rem, 5.2vw, 4.6rem); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 1.1rem; color: var(--ink); }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .w span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); }
.hero-title.in .w span { transform: none; }
.hero-rise { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.hero-rise.in { opacity: 1; transform: none; }

/* ---------- Intro ---------- */
.intro { padding: var(--space) var(--gutter) 0; display: flex; justify-content: center; text-align: center; }
.intro-text { font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.3rem, 2.1vw, 1.75rem); line-height: 1.4; max-width: 46rem; color: var(--ink-soft); letter-spacing: -0.01em; }

/* ---------- Kategorier ---------- */
.cats { padding: 0 var(--gutter) var(--space); }
.cats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.8rem, 1.6vw, 1.5rem); }
.cat { display: block; }
.cat-media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--tile); margin-bottom: 0.9rem; }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.cat:hover .cat-media img { transform: scale(1.04); }
.cat h3 { font-size: 1.05rem; margin-bottom: 0.2rem; background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-repeat: no-repeat; background-position: left bottom; display: inline-block; transition: background-size .4s var(--ease-out); }
.cat:hover h3 { background-size: 100% 1px; }
.cat p { font-size: 0.9rem; color: var(--muted); }

/* ---------- Products ---------- */
.products { padding: var(--space) var(--gutter) calc(var(--space) * 0.8); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.8rem, 1.6vw, 1.5rem); }
.product-media { display: block; overflow: hidden; aspect-ratio: 1 / 1; background: var(--tile); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.product:hover .product-media img { transform: scale(1.04); }
.product-body { padding-top: 0.9rem; }
.product-cat { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.tag { color: var(--ink); }
.tag::after { content: ''; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--muted); margin-left: 0.6rem; vertical-align: middle; }
.product-body h3 { margin-bottom: 0.25rem; }

/* ---------- Banner (bild + text) ---------- */
.banner { display: grid; grid-template-columns: 1fr 1fr; background: var(--sand); }
.banner-media { overflow: hidden; }
.banner-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; transition: transform 1.2s var(--ease-out); }
.banner-media:hover img { transform: scale(1.03); }
.banner-copy { padding: var(--space) clamp(1.5rem, 6vw, 6rem); display: flex; flex-direction: column; justify-content: center; gap: 1.2rem; max-width: 40rem; }
.banner-copy p:not(.kicker) { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Detail ---------- */
.detail { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding: var(--space) var(--gutter); }
.detail-media { overflow: hidden; background: var(--tile); }
.detail-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; transition: transform 1.2s var(--ease-out); }
.detail-media:hover img { transform: scale(1.03); }
.detail-copy h2 { margin-bottom: 1.6rem; }
.spec { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.spec li { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.spec span { color: var(--muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 500; padding-top: 0.25rem; }
.spec b { font-weight: 500; }

/* ---------- Corporate ---------- */
.corporate { background: var(--bg); }
.corporate-hero { display: grid; grid-template-columns: 1fr 1fr; background: var(--black); color: var(--cream); }
.corporate-hero-inner { padding: var(--space) clamp(1.5rem, 6vw, 6rem); display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; max-width: 40rem; }
.corporate-hero-inner p:not(.kicker) { color: rgba(251,250,248,0.78); font-size: 1.05rem; }
.corporate-hero-media { overflow: hidden; }
.corporate-hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; object-position: 50% 50%; transition: transform 1.2s var(--ease-out); }
.corporate-hero-media:hover img { transform: scale(1.03); }
.corporate-body { padding: var(--space) var(--gutter) 2.5rem; }
.corporate-text { max-width: 44rem; margin: 0 auto 4rem; text-align: center; }
.corporate-text h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: 1rem; }
.corporate-text p { color: var(--ink-soft); font-size: 1.02rem; }
.corporate-links { margin-top: 1.6rem; display: flex; gap: 1.5rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.logo-marquee { overflow: hidden; padding-bottom: var(--space); }
.logo-track { display: flex; gap: 1rem; width: max-content; will-change: transform; }
.logo-track figure { margin: 0; width: clamp(180px, 20vw, 260px); flex: 0 0 auto; }
.logo-track img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--tile); }
.logo-track figcaption { font-size: 0.72rem; color: var(--muted); margin-top: 0.5rem; letter-spacing: 0.04em; }

/* ---------- Trust ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2.4rem var(--gutter); }
.trust-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.trust-row h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 0.4rem; }
.trust-row p { font-size: 0.88rem; color: var(--muted); }
.trust-row a { border-bottom: 1px solid currentColor; }

/* ---------- Contact / newsletter ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); padding: var(--space) var(--gutter); align-items: start; }
.contact-col h2 { margin-bottom: 1rem; }
.contact-col p:not(.kicker) { color: var(--ink-soft); max-width: 44ch; }
.contact-links { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.3rem; align-items: flex-start; font-size: 1.35rem; font-weight: 500; }
.contact-links a { border-bottom: 1px solid currentColor; transition: opacity .3s; }
.contact-links a:hover { opacity: 0.6; }
.newsletter { background: var(--sand); padding: clamp(1.5rem, 4vw, 3rem); }
.newsletter h3 { font-size: 1.25rem; margin-bottom: 1.4rem; max-width: 24rem; }
.newsletter-row { display: flex; gap: 0.6rem; }
.newsletter input { flex: 1; min-width: 0; padding: 0.8rem 1rem; border: 1px solid var(--ink); background: #fff; font: inherit; min-height: 48px; }
.newsletter small { display: block; margin-top: 0.8rem; color: var(--muted); font-size: 0.78rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 3.5rem var(--gutter) 1.4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 12rem)) minmax(0, 22rem); gap: 2rem; justify-content: space-between; margin-bottom: 3rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; }
.site-footer .footer-head { margin-bottom: 0.6rem; }
.footer-col a { width: fit-content; background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-repeat: no-repeat; background-position: left bottom; transition: background-size .4s var(--ease-out); }
.footer-col a:hover { background-size: 100% 1px; }
.footer-brand p:not(.footer-head) { color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.2rem; font-size: 0.76rem; color: var(--muted); }

/* ---------- Toast, gate ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.6rem; transform: translate(-50%, 20px); opacity: 0; z-index: 70; pointer-events: none;
  background: var(--black); color: var(--cream); padding: 0.85rem 1.3rem; font-size: 0.88rem; max-width: min(92vw, 32rem); text-align: center;
  transition: opacity .35s, transform .45s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.gate { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; padding: 1.5rem; }
.gate[hidden] { display: none; }
.gate-card { width: min(100%, 22rem); display: flex; flex-direction: column; gap: 0.9rem; text-align: center; }
.gate-mark { font-weight: 600; letter-spacing: 0.26em; font-size: 0.9rem; }
.gate-card h1 { font-family: var(--font-serif); font-weight: 300; font-size: 1.9rem; }
.gate-card p { color: var(--muted); font-size: 0.92rem; }
.gate-card input { padding: 0.85rem 1rem; border: 1px solid var(--ink); background: #fff; font: inherit; text-align: center; letter-spacing: 0.2em; }
.gate-card small { color: #9B3A2B; }
html.locked body > :not(#gate) { visibility: hidden; }

/* ---------- Reveals ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); }
html.js .reveal.in { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .detail-media { order: -1; }
  .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .burger { display: flex; }
  .nav-left a, .nav-right a { display: none; }
  .wordmark { font-size: 0.95rem; letter-spacing: 0.2em; }
}
@media (max-width: 700px) {
  .hero-media { aspect-ratio: 4 / 5; max-height: none; }
  .hero-inner { position: static; max-width: none; padding: 1.8rem var(--gutter) 0.6rem; }
  .hero-title { font-size: clamp(2.1rem, 9.5vw, 2.8rem); }
  .corporate-hero { grid-template-columns: 1fr; }
  .corporate-hero-media { order: -1; }
  .corporate-hero-inner { padding: 2.5rem var(--gutter) 3rem; }
  .banner { grid-template-columns: 1fr; }
  .banner-media img { aspect-ratio: 4 / 4; }
  .banner-copy { padding: 2.5rem var(--gutter) 3rem; }
  .corporate-hero > img { height: 70vh; }
  .section-head { margin-bottom: 1.4rem; }
  .product-grid { gap: 0.7rem 0.7rem; }
  .product-body h3 { font-size: 0.95rem; }
  .trust-row { grid-template-columns: 1fr; gap: 1.2rem; text-align: left; }
  .cats-grid { grid-template-columns: 1fr; }
  .cat-media { aspect-ratio: 16 / 10; }
  .newsletter-row { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-links { font-size: 1.15rem; }
  .logo-track figure { width: 200px; }
}
@media (max-width: 400px) {
  .product-grid { grid-template-columns: 1fr; }
}
