:root {
  --paper: #f3f0e8;
  --ink: #1c1b17;
  --muted: #5c584f;
  --line: #d5d0c6;
  --header: 64px;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --copper: #c4622d;
  --measure: 40rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #e6e0d4;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[id] { scroll-margin-top: 84px; }
.skip { position: absolute; left: 1rem; top: -4rem; background: #fff; padding: .4rem .7rem; }
.skip:focus { top: .5rem; }

.wrap, .wide, .nav-wrap, .foot {
  width: min(960px, calc(100% - 2.5rem));
  margin-left: auto;
  margin-right: auto;
}
.lede, .chapter .wrap p, .place p, .prose p, .prose li { max-width: 38rem; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  min-height: var(--header);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo img { height: 32px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.nav-end { display: flex; align-items: center; gap: 1.1rem; }
.lang-switch { display: flex; gap: .55rem; font-family: var(--mono); font-size: .78rem; }
.lang-switch a { text-decoration: none; }
.lang-switch a[aria-current="true"] { text-decoration: underline; text-underline-offset: 3px; }
.site-nav a { text-decoration: none; font-size: .95rem; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--ink);
  border-radius: 0; padding: .35rem .7rem; font: inherit; cursor: pointer;
}

h1, h2, h3 { font-weight: 500; letter-spacing: -.02em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0 0 .8rem; }
h3 { font-size: 1.25rem; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.2rem; max-width: var(--measure); }

.chapter { padding: 4.5rem 0; border-top: 1px solid var(--line); }
.chapter:first-of-type { border-top: 0; }
.num {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--muted);
  margin: 0 0 .6rem;
}

.wrap, .wide, .nav-wrap, .foot, .legal {
  width: min(1080px, calc(100% - 2.75rem));
  margin-inline: auto;
}
.intro { background: #fff; }
.intro-grid {
  width: min(1080px, calc(100% - 2.75rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 1.5rem 3rem;
  align-items: start;
  padding: 2.4rem 0 1.6rem;
}
.intro-more {
  background: #e8e0d0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 2.5rem;
  padding: 1.7rem max(1.375rem, calc((100% - 1080px) / 2)) 1.5rem;
}
.intro-more p { max-width: none; margin: 0; }
.intro figure { margin: 0; min-width: 0; }
.intro img {
  width: 100%;
  background: #f7f4ee;
  border: 1px solid var(--line);
  border-top: 3px solid var(--copper);
}
.intro figcaption { margin: .55rem 0 0; color: var(--muted); font-size: .85rem; }
.rail {
  list-style: none;
  margin: 0;
  padding: 1.2rem max(1.375rem, calc((100% - 1080px) / 2));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem 1.6rem;
  background: #1c1b17;
  color: #f4f1ea;
}
.rail b {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.35rem;
  color: #fff;
}
.rail b::before {
  content: "";
  display: block;
  width: 1.35rem;
  height: 3px;
  background: var(--copper);
  margin-bottom: .45rem;
}
.rail span { display: block; margin-top: .25rem; color: #c9c3b6; font-size: .88rem; }
.beat {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 2rem 3rem;
  align-items: start;
  padding: 3.4rem max(1.375rem, calc((100% - 1080px) / 2));
  background: #e8e0d0;
}
.beat:nth-of-type(even) { background: #fff; }
.beat .copy p { max-width: 36rem; }
.beat figure {
  margin: 1.35rem 0 0;
  min-width: 0;
  padding: .65rem .65rem .75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--copper);
}
.beat img.plate, .beat svg.wf {
  width: 100%;
  height: auto;
  display: block;
  background: #f7f4ee;
  border: 0;
}
.beat figcaption { margin: .55rem 0 0; color: var(--muted); font-size: .85rem; max-width: none; }
.beat.stack { grid-template-columns: 1fr; }
.beat.stack .copy { max-width: none; }
.tiles, .places {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 1.3rem;
  display: grid;
  gap: .7rem;
}
.tiles { grid-template-columns: repeat(3, 1fr); }
.places { grid-template-columns: repeat(3, 1fr); max-width: 48rem; }
.tiles li, .places li {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--copper);
  padding: .9rem 1rem 1rem;
}
.tiles b, .places b {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: .35rem;
}
.tiles span, .places span { display: block; color: var(--muted); font-size: .95rem; }

.wf { background: #fff; border: 1px solid var(--line); }
.cams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
  margin-top: .55rem;
}
.cam {
  border: 1px solid var(--ink);
  min-height: 74px;
  position: relative;
  background: #fff;
  overflow: hidden;
}
.cam .name, .cam .stamp {
  position: absolute; left: .45rem; right: .45rem;
  font-family: var(--mono); font-size: .68rem;
}
.cam .name { top: .35rem; }
.cam .stamp { bottom: .35rem; }
.shutter {
  position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s linear;
}
.locked .shutter { transform: scaleX(1); }

.wf-hand { animation: reach 2.8s ease-in-out infinite; }
.wf-ghost { animation: reach 2.8s ease-in-out infinite; animation-delay: -.7s; opacity: .35; }
@keyframes reach {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(42px); }
}
.ch { transition: width .6s linear; }
.pulse { stroke-dasharray: 5 4; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -36; } }

.specs { width: 100%; border-collapse: collapse; margin: 1rem 0 1.2rem; }
.specs th, .specs td {
  text-align: left; vertical-align: baseline;
  padding: .7rem 0; border-top: 1px solid var(--line);
  font-weight: 400;
}
.specs th { width: 9.5rem; font-family: var(--mono); font-size: .95rem; padding-right: 1rem; }

.place { padding: 2.2rem 0; border-top: 1px solid var(--line); }
.place h3 { margin-bottom: .6rem; }

.hero { background: #fff; padding: 0; }
.hero-grid {
  width: min(1080px, calc(100% - 2.75rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, .82fr);
  gap: 1.5rem 2.4rem;
  align-items: center;
  padding: 2.2rem 0 1.8rem;
}
.hero figure { margin: 0; }
.hero img {
  width: 100%;
  background: #f7f4ee;
  border: 1px solid var(--line);
  border-top: 3px solid var(--copper);
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
.kicker { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin: 0 0 .7rem; }
.lead { font-size: 1.15rem; max-width: 38rem; color: #3f3c36; }

.subnav-wrap {
  position: sticky; top: var(--header); z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.subnav { display: flex; gap: 1.1rem; overflow-x: auto; padding: .7rem 0; }
.subnav a { color: var(--muted); text-decoration: none; font-size: .85rem; white-space: nowrap; }
.subnav a.active, .subnav a:hover { color: var(--ink); }

.prose { width: 100%; padding-bottom: 0; }
.prose > section {
  padding: 2.5rem max(1.375rem, calc((100% - 1080px) / 2)) 1.6rem;
  background: #e8e0d0;
}
.prose > section:nth-child(even) { background: #fff; }
.prose h2 { margin-top: 0; margin-bottom: .8rem; }
.prose p, .prose li { color: #2c2a26; }
.table-scroll { overflow-x: auto; width: 100%; margin: 1rem 0; }
table.spec { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .9rem; }
table.spec th, table.spec td {
  text-align: left; vertical-align: top;
  padding: .6rem .55rem; border-bottom: 1px solid var(--line);
}
table.spec th { font-size: .75rem; font-weight: 500; color: var(--muted); }
table.spec { background: #fff; }
table.spec td.hl, table.spec th.hl { background: #f8efe6; }
.tag { font-family: var(--mono); font-size: .65rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.figure {
  margin: 1.1rem 0 1.3rem;
  padding: .55rem .55rem .2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--copper);
}
.figure img { width: 100%; border: 0; }
.figure figcaption, .quiet { color: var(--muted); font-size: .85rem; }
.pixel svg { width: 100%; height: auto; }
.swatch-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 1rem 0; }
.swatch { min-height: 140px; padding: 1rem; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--ink); }
.swatch strong { font-weight: 500; }
.swatch span { font-size: .9rem; }
.swatch-bad { background: #c45b78; color: #fff; }
.swatch-good { background: #fff; color: var(--ink); }

.site-footer { background: #1c1b17; color: #f3f0e8; border-top: 0; padding: 1.7rem 0 2rem; }
.site-footer a { color: #f3f0e8; }
.foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.foot nav { display: flex; gap: 1rem; }
.foot a { text-decoration: none; }
.legal { width: min(1080px, calc(100% - 2.75rem)); margin: .8rem auto 0; color: #b7b1a6; font-size: .8rem; }

@media (max-width: 800px) {
  .intro-grid, .hero-grid, .beat, .swatch-row { grid-template-columns: 1fr; }
  .intro figure, .hero figure { order: -1; }
  .rail, .tiles { grid-template-columns: 1fr 1fr; }
  .intro-more { grid-template-columns: 1fr; }
  .places { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav-end { gap: .7rem; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header);
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: .8rem 1.2rem 1rem; border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
}
@media (max-width: 560px) {
  .cams { grid-template-columns: 1fr 1fr; }
  .pair { grid-template-columns: 1fr; }
  .specs th { width: 7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wf-hand, .wf-ghost, .pulse { animation: none; }
}

#wrap.km-page { max-width: none; width: 100%; padding: 0; margin: 0; }
#wrapwrap { background: #e6e0d4; }
header#top, footer#bottom { display: none !important; }
.km-form { max-width: 40rem; }
.km-form label { display: block; margin: .9rem 0 .3rem; }
.km-form input, .km-form textarea { width: 100%; border: 1px solid #d5d0c6; background: #fff; color: #1c1b17; font: inherit; padding: .65rem .75rem; }
.km-form .s_website_form_send { display: inline-block; margin-top: 1rem; background: #1c1b17; color: #f3f0e8; text-decoration: none; padding: .7rem 1.1rem; }
