:root {
  --bg: #080807;
  --bg-elevated: #100f0d;
  --bg-panel: #141311;
  --gold: #d4af6a;
  --gold-soft: #e8c98a;
  --gold-deep: #8a6324;
  --gold-dim: rgba(212, 175, 106, 0.28);
  --gold-line: rgba(212, 175, 106, 0.22);
  --lapis: #3b6fc4;
  --lapis-soft: #7aa3e0;
  --text: #f3ede0;
  --muted: #d0c6b4;
  --serif: "Bodoni Moda", "Didot", "Bodoni MT", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 72rem;
  --header: 3.4rem;
  --foil: linear-gradient(180deg, #f8e7b8 0%, #e0c07a 34%, #d4af6a 48%, #9a7438 72%, #e8d19a 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@font-face {
  font-family: "Bodoni Moda";
  src: url("/fonts/bodoni-moda.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  scroll-padding-top: calc(var(--header) + 0.75rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: url("/images/paper-grain.webp");
  background-size: 256px 256px;
  background-repeat: repeat;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold);
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--gold-soft);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--gold);
  color: #140f08;
  padding: 0.65rem 1.1rem;
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.wrap.narrow {
  width: min(calc(100% - 2rem), 42rem);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 8, 7, 0.94);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid var(--gold-line);
  transition: transform 0.28s var(--ease);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
  padding-block: 0.35rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  min-height: 2.25rem;
  color: var(--gold);
  min-width: 0;
}

.brand:hover {
  color: var(--gold-soft);
}

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.nav-desktop {
  display: none;
}

.nav-drawer {
  position: relative;
}

.nav-toggle {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0 0.7rem;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
}

.nav-toggle::-webkit-details-marker {
  display: none;
}

.nav-toggle::marker {
  content: "";
}

.nav-toggle:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 12.5rem;
  padding: 0.55rem 0.65rem;
  background: rgba(12, 11, 10, 0.97);
  border: 1px solid var(--gold-line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  z-index: 21;
}

.nav-drawer:not([open]) .nav-mobile {
  display: none;
  visibility: hidden;
  pointer-events: none;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 0.55rem 0.65rem;
  position: relative;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--gold);
}

/* Hero */

.hero {
  position: relative;
  padding: 2.8rem 0 2.8rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 18%, rgba(59, 111, 196, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 8%, rgba(212, 175, 106, 0.08), transparent 65%);
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo-wrap {
  display: block;
  margin: 0 0 1.8rem;
}

.hero-logo {
  width: min(15.5rem, 68vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}

.eyebrow {
  margin: 0 0 0.95rem;
  color: var(--gold);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.12;
  color: var(--text);
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.35rem, 9vw, 4.85rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 16ch;
}

h2 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.85rem, 5.4vw, 2.85rem);
  text-wrap: balance;
}

h3 {
  margin: 0 0 0.55rem;
  font-size: 1.28rem;
  letter-spacing: 0.02em;
}

.lead,
.section-lead {
  margin: 0 auto 1.75rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
  max-width: 34rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.55rem;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-gold {
  background: var(--gold);
  color: #140f08;
  box-shadow: 0 0 0 1px rgba(212, 175, 106, 0.25);
}

.btn-gold:hover {
  background: var(--gold-soft);
  color: #140f08;
  box-shadow: 0 8px 24px rgba(212, 175, 106, 0.18);
}


.btn-mail {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  font-weight: 400;
  word-break: break-word;
  max-width: 100%;
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold-dim);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
  background: rgba(212, 175, 106, 0.05);
}

/* Ornament: hairline + dotted rosette */

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.15rem;
  width: min(22rem, calc(100% - 2.5rem));
  margin: 0.35rem auto;
  padding: 0.35rem 0;
  min-height: 2.25rem;
  position: relative;
  background-image: url("/images/rosette.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 2rem 2rem;
}

.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), var(--gold), var(--gold-dim), transparent);
  opacity: 0.85;
}

/* Steps */

.section {
  padding: 4.25rem 0;
}

.section[id],
#innehall {
  scroll-margin-top: calc(var(--header) + 0.75rem);
}

.section-steps {
  padding-top: 2.6rem;
  padding-bottom: 3.2rem;
}

.section-steps .eyebrow {
  text-align: center;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
  counter-reset: none;
}

.steps li {
  text-align: center;
  padding: 0.4rem 0.6rem 0.2rem;
}

.step-num {
  display: block;
  margin: 0 auto 0.7rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.steps h3 {
  margin-bottom: 0.45rem;
}

.steps p {
  margin: 0 auto;
  color: var(--muted);
  max-width: 22rem;
  font-weight: 300;
}

/* Sections */

.section p {
  color: var(--muted);
  max-width: 40rem;
}

.section-alt {
  background:
    url("/images/paper-grain.webp"),
    linear-gradient(180deg, rgba(16, 15, 13, 0.92), rgba(16, 15, 13, 0.92));
  background-size: 256px 256px, auto;
  border-block: 1px solid var(--gold-line);
}

.cards {
  list-style: none;
  margin: 2.2rem 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.cards li {
  background: rgba(20, 19, 17, 0.72);
  border: 1px solid var(--gold-line);
  padding: 1.7rem 1.4rem 1.5rem;
  position: relative;
}

.cards li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.4rem;
  right: 1.4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}

.cards p,
.panel p,
.note {
  margin: 0;
  color: var(--muted);
}

.note {
  font-size: 0.98rem;
  font-style: normal;
  letter-spacing: 0.01em;
  max-width: 40rem;
}

.split {
  display: grid;
  gap: 2.2rem;
  align-items: start;
}

.split-copy p {
  margin: 0 0 1.1rem;
}

.machine-frame {
  margin: 0;
  padding: 0.7rem;
  border: 1px solid var(--gold-line);
  background:
    linear-gradient(180deg, rgba(212, 175, 106, 0.05), transparent 40%),
    var(--bg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.machine-frame img {
  width: 100%;
  background: #0c0c0c;
}

.machine-frame figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.panel {
  background: rgba(20, 19, 17, 0.8);
  border: 1px solid var(--gold-line);
  padding: 1.6rem 1.45rem;
}

.panel.soft h3 {
  color: var(--text);
}

.panel.facts {
  margin-top: 2.2rem;
}

.panel dl {
  margin: 0;
  display: grid;
  gap: 0;
}

.panel dl div {
  display: grid;
  grid-template-columns: 8.4rem 1fr;
  gap: 0.75rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--gold-line);
}

.panel dl div:first-child {
  padding-top: 0;
}

.panel dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.panel dt {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

.panel dd {
  margin: 0;
  color: var(--text);
}

.text-link {
  display: inline-block;
  margin-top: 1.15rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 0.15rem;
}

.text-link:hover {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}

.catalog {
  margin-top: 2rem;
  border: 1px solid var(--gold-line);
  background:
    linear-gradient(180deg, rgba(212, 175, 106, 0.06), transparent 48%),
    rgba(20, 19, 17, 0.6);
  padding: 2.2rem 1.4rem;
}

.catalog-empty {
  margin: 0;
  text-align: center;
  color: var(--muted);
  max-width: none;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 1.1rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.catalog-grid[hidden],
.catalog-grid:empty {
  display: none;
}

.catalog-card {
  border: 1px solid var(--gold-line);
  background: var(--bg);
  min-height: 12rem;
  padding: 1rem;
}

.section-contact {
  padding-top: 3.2rem;
  padding-bottom: 5.2rem;
}

.contact-box {
  text-align: center;
  padding: 3.4rem 1.3rem;
  border: 1px solid var(--gold-line);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 106, 0.11), transparent 58%),
    rgba(16, 15, 13, 0.85);
}

.contact-box p,
.contact-box .eyebrow,
.contact-box h2 {
  margin-left: auto;
  margin-right: auto;
}

.contact-box p {
  max-width: 34rem;
  margin-bottom: 1.8rem;
  font-weight: 300;
}

.contact-box .btn {
  word-break: break-word;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--gold-line);
  padding: 2.8rem 0 2.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--gold);
}

.footer-brand img {
  width: 3.4rem;
  height: 3.4rem;
  object-fit: contain;
}

.footer-brand span {
  font-family: var(--serif);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.92rem;
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ornament-footer {
  margin: 0.5rem auto 0.3rem;
  width: min(16rem, 80%);
}

.footer-place {
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 500;
}

.footer-mail {
  text-decoration: none;
  letter-spacing: 0.04em;
}

.footer-legal {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

/* Reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(0.85rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal.delay-1 { transition-delay: 0.08s; }
.js .reveal.delay-2 { transition-delay: 0.16s; }
.js .reveal.delay-3 { transition-delay: 0.24s; }
.js .reveal.delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand-wordmark,
  .footer-brand span,
  .step-num {
    color: var(--gold);
    background: none;
  }
}

/* Desktop */

@media (min-width: 48rem) {
  .wrap {
    width: min(calc(100% - 3.75rem), var(--wrap));
  }

  .wrap.narrow {
    width: min(calc(100% - 3.75rem), 44rem);
  }

  :root {
    --header: 4.5rem;
  }

  .site-header.is-hidden {
    transform: none;
  }

  .header-inner {
    padding-block: 0.55rem;
  }

  .brand {
    gap: 0.75rem;
    min-height: 2.75rem;
  }

  .brand-mark {
    width: 2.9rem;
    height: 2.9rem;
  }

  .brand-wordmark {
    font-size: 1.08rem;
    letter-spacing: 0.32em;
  }

  .nav-drawer {
    display: none;
  }

  .nav-desktop {
    display: flex;
    flex-direction: row;
    position: static;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    gap: 0.15rem;
  }

  .nav a {
    padding: 0.45rem 0.7rem;
  }

  .nav a::after {
    content: "";
    display: block;
    height: 1px;
    width: 0;
    margin: 0.28rem auto 0;
    background: var(--gold);
    transition: width 0.28s var(--ease);
  }

  .nav a:hover::after,
  .nav a:focus-visible::after {
    width: 100%;
  }

  .hero {
    padding: 3.6rem 0 3.2rem;
  }

  .hero-logo {
    width: min(17.75rem, 100%);
    margin-bottom: 0;
  }

  .hero-logo-wrap {
    margin-bottom: 1.65rem;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 2rem;
    margin-top: 0.4rem;
  }

  .steps li {
    position: relative;
    padding: 0.2rem 1.2rem;
  }

  .steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.15rem;
    right: -0.75rem;
    width: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.4rem;
    align-items: center;
  }

  .split-plain {
    align-items: start;
    grid-template-columns: 1.15fr 0.85fr;
  }

  .panel.facts dl {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .panel.facts dl div {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 1.05rem 1.15rem;
    border-bottom: 0;
    border-right: 1px solid var(--gold-line);
  }

  .panel.facts dl div:nth-child(3n) {
    border-right: 0;
  }

  .panel.facts dl div:nth-child(n+4) {
    border-top: 1px solid var(--gold-line);
  }

  .catalog {
    padding: 2.6rem 2.2rem;
  }
}

@media (min-width: 64rem) {
  .hero-logo {
    width: min(20.5rem, 100%);
  }

  .machine-frame {
    padding: 0.85rem;
    max-width: 28rem;
    margin-inline: auto;
  }
}
