@font-face { font-family: "Literata"; src: url("vendor/fonts/literata-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("vendor/fonts/literata-latin-wght-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("vendor/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --navy: #0E1A2B;
  --shelf: #13243A;
  --paper: #E8DCC4;
  --brass: #C9A45C;
  --steel: #6E8CA8;
  --deep: #081019;
  --plank: #1A2E48;
  --paper-ink: #22344C;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --g: 32px;
  --cornice-h: clamp(62px, min(9vw, 13.5svh), 168px);
  --rail-h: 30px;
  --wall-w: min(100vw - 2 * var(--g), 152svh);
  --ease: cubic-bezier(.2, .7, .15, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--navy); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--navy); color: var(--paper); font: 400 17px/1.55 var(--sans); overflow-x: clip; }
h1, h2, h3, h4, p, dl, dd, ul, fieldset, figure { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.defs { position: absolute; }
[hidden] { display: none !important; }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1.04; text-wrap: balance; }
.lead { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.eyebrow {
  font-weight: 600; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass);
  margin-bottom: 12px;
}

.btn {
  display: inline-block; padding: 14px 22px; border: 0; border-radius: 0; background: var(--brass); color: var(--navy);
  font: 600 17px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s;
}
.btn:hover { background: var(--paper); }
.btn:active { transform: translateY(2px); }
.btn:disabled { cursor: progress; opacity: .7; }
.btn-small { padding: 9px 14px; font-size: 15px; white-space: nowrap; }
.btn-ink { background: var(--navy); color: var(--paper); }
.btn-ink:hover { background: var(--shelf); }

.link {
  display: inline-block; padding: 4px 0; background: none; border: 0; cursor: pointer; color: var(--brass); font: 600 17px/1.4 var(--sans);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px;
  transition: color .18s, text-underline-offset .18s;
}
.link:hover { color: var(--paper); text-underline-offset: 8px; }
.link-ink { color: var(--navy); }
.link-ink:hover { color: var(--paper-ink); }

/* Top bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 56px; padding: 0 var(--g); background: var(--navy); }
.bar-mark { font-size: 15px; text-decoration: none; }
.bar-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.bar-nav a:not(.btn) { text-decoration: none; background: none; padding: 4px 0; transition: color .18s; }
.bar-nav a:not(.btn):hover { color: var(--brass); }

/* The bookcase */
.room { position: relative; }
.case {
  position: sticky; top: calc(-1 * var(--cornice-h)); z-index: 5;
  background: var(--shelf); overflow: hidden; padding-bottom: 0;
}
.case::after {
  content: ""; position: absolute; inset: 0; background: var(--deep); pointer-events: none; z-index: 4;
  animation: lights-on 1s linear .1s both;
}
.cornice {
  height: var(--cornice-h); display: flex; align-items: center; justify-content: center;
  background: var(--shelf); position: relative; overflow: hidden;
}
.cornice-in {
  width: var(--wall-w); display: flex; justify-content: space-between; color: var(--brass);
  font: 500 calc(var(--cornice-h) * .84)/1 var(--serif);
}
.cornice-in span { display: block; }
.cornice::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='9'%3E%3Crect width='13' height='9' fill='%230E1A2B'/%3E%3C/svg%3E") repeat-x 0 0;
}
.rail { height: var(--rail-h); background: var(--deep); position: relative; }
.rail::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 7px; background: var(--brass); }
.rail::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--paper); opacity: .5; }

.shelves { width: var(--wall-w); margin: 0 auto; display: flex; flex-direction: column; }
.shelf-row { display: flex; gap: 14px; }
.bay { flex: var(--w) 1 0; min-width: 0; position: relative; }
.bay svg { display: block; width: 100%; height: auto; overflow: hidden; }
.bay .back { fill: #070E17; }
.plate {
  height: 34px; display: flex; align-items: center; justify-content: center; position: relative;
  background: var(--plank);
}
.plate::before { content: ""; position: absolute; left: -14px; right: -14px; top: 0; height: 4px; background: var(--brass); opacity: .75; }
.plate span {
  position: relative; display: block; margin-top: 4px; padding: 1px 12px; background: var(--brass); color: var(--navy);
  font: 600 15px/1.45 var(--sans); white-space: nowrap;
}
.plate span::before, .plate span::after { content: ""; position: absolute; top: 50%; width: 3px; height: 3px; margin-top: -1.5px; background: var(--navy); border-radius: 50%; }
.plate span::before { left: 4px; }
.plate span::after { right: 4px; }

.t { font-family: var(--serif); font-weight: 500; letter-spacing: .02em; }
.t.y { font-family: var(--sans); font-weight: 600; font-variant-numeric: tabular-nums; }
.book { transform-box: fill-box; transition: transform .35s var(--ease); animation: settle .6s var(--ease) backwards; animation-delay: calc(var(--i) * 7ms + .2s); cursor: default; }
.veil { fill: #060C15; opacity: 0; pointer-events: none; transition: opacity .45s ease calc(var(--i) * 7ms); }
.lock { opacity: 0; transform-box: fill-box; transform-origin: 50% 0; transform: scale(.4) translateY(-8px); transition: opacity .3s ease calc(var(--i) * 7ms + .1s), transform .4s var(--ease) calc(var(--i) * 7ms + .1s); pointer-events: none; }
.is-closed .veil { opacity: .76; }
.is-closed .lock { opacity: 1; transform: none; }
.is-open { transform: translateY(-2px); }
.book.reading { transform: translateY(-9px); }
.book.pulse .lock { animation: lock-pulse .9s var(--ease) 1; }
.book.pulse .veil { animation: veil-pulse .9s ease 1; }
.book:hover { transform: translateY(-5px); }
.grille { transition: transform .9s var(--ease), opacity .6s ease .3s; transform-box: view-box; }
.case[data-reader="a"] .grille { transform: translateY(-104%); opacity: 0; }

/* The moving lamp */
.rig { position: absolute; top: 0; bottom: 0; left: 0; width: 0; z-index: 3; pointer-events: none; will-change: transform; }
.shade {
  position: absolute; top: 0; bottom: 0; left: -150vw; width: 300vw;
  background:
    radial-gradient(ellipse min(23vw, 340px) 62% at 50% 44%, rgba(255, 214, 140, .15), rgba(255, 214, 140, .05) 62%, rgba(255, 214, 140, 0) 100%),
    radial-gradient(ellipse min(38vw, 560px) 92% at 50% 42%, rgba(5, 10, 18, 0) 18%, rgba(5, 10, 18, .42) 58%, rgba(5, 10, 18, .8) 100%);
  transition: opacity .8s ease;
}
.case[data-reader] .shade { opacity: .22; }
.lamp {
  position: absolute; top: calc(var(--cornice-h) + 1px); left: -48px; width: 96px; height: 74px; padding: 0; border: 0; background: none;
  pointer-events: auto; cursor: pointer; transition: transform .2s var(--ease);
}
.lamp svg { display: block; }
.lamp:hover { transform: translateY(2px); }
.lamp-glow { transition: opacity .4s; }

.motes { position: absolute; top: calc(var(--cornice-h) + 60px); left: 0; }
.motes i { position: absolute; left: var(--x); top: var(--y); width: 3px; height: 3px; border-radius: 50%; background: #FFE9B8; opacity: 0; animation: mote var(--t) ease-in-out var(--e) infinite; }
.case[data-reader] .motes { opacity: .5; }

/* First screen */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end;
  padding: 20px var(--g) 24px;
}
.hero h1 { font-size: clamp(38px, min(4.4vw, 7svh), 84px); max-width: 15em; }
.hero-text p:not(.lead) { max-width: 34em; }
.lead { font: 400 24px/1.25 var(--serif); margin-bottom: 6px; }
.hero-text .link { margin-top: 6px; }

/* The reading desk */
.desk {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4.4fr); grid-template-rows: auto 1fr; column-gap: 36px; row-gap: 12px;
  padding: 18px var(--g) 22px; background: var(--navy); scroll-margin-top: var(--case-vis, 40vh);
  min-height: calc(100svh - var(--rail-h) - 2 * (var(--wall-w) * .1458) - 68px);
}
.desk-head { grid-column: 1 / 3; }
.desk h2 { font-size: clamp(30px, min(2.8vw, 4.6svh), 44px); }
.desk-lead { margin-top: 6px; }
.desk-lead strong { color: var(--brass); font-weight: 600; white-space: nowrap; }
.group legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: 15px; color: var(--steel); }
.group { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.chip { display: block; position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.chip span {
  display: block; padding: 6px 14px; background: var(--shelf); color: var(--paper); font-size: 16px; line-height: 1.35;
  transition: background-color .18s, color .18s, transform .18s var(--ease);
}
.chip:hover span { background: var(--plank); }
.chip input:checked + span { background: var(--paper); color: var(--navy); }
.chip input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.chip:active span { transform: translateY(1px); }
.group-q .btn { margin-top: 7px; padding: 11px 20px; }

.card {
  grid-column: 3; grid-row: 1 / 3; align-self: start; position: relative; padding: 18px 22px 18px; background: var(--paper); color: var(--navy); min-height: 330px;
}
.card-top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; font-size: 15px; color: var(--paper-ink); }
.card-top h3 { font: 600 15px/1.3 var(--sans); }
.card-q { margin-top: 10px; font: italic 400 17px/1.35 var(--serif); color: var(--paper-ink); }
.card-a { margin-top: 8px; font: 400 clamp(17px, 1.45vw, 20px)/1.36 var(--serif); position: relative; }
.card-a .ghost { color: transparent; }
.card-a .caret { display: inline-block; width: 2px; height: 1em; margin: 0 1px -2px 1px; background: var(--brass); }
.card-foot { margin-top: 12px; font-size: 15px; line-height: 1.4; }
.card-foot h4 { font: 600 15px/1.3 var(--sans); display: inline; }
.card-foot ul { display: inline; }
.card-foot li { display: inline; font-family: var(--serif); }
.card-foot li::before { content: ", "; }
.card-foot li:first-child::before { content: " "; }
#card-closed { color: var(--paper-ink); }

.threads { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; overflow: visible; }
.threads path { fill: none; stroke: var(--brass); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.threads path.on { transition: stroke-dashoffset .75s cubic-bezier(.4, 0, .2, 1); stroke-dashoffset: 0; }
.threads:empty { display: none; }
.threads circle { fill: var(--brass); }
.threads .eyelet { fill: var(--navy); }

/* Rights */
.rights {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center;
  padding: 150px var(--g) 110px;
}
.rights h2, .talk h2 { font-size: clamp(38px, min(4.4vw, 7svh), 84px); }
.keys { margin-top: 34px; display: grid; gap: 22px; }
.keys dt { font-weight: 600; color: var(--brass); font-size: 16px; }
.keys dd { font: 400 24px/1.28 var(--serif); }
.sheet { background: var(--paper); color: var(--navy); padding: 28px 32px 22px; }
.register { width: 100%; border-collapse: collapse; font-size: 16px; }
.register caption { text-align: left; font: 400 24px/1.2 var(--serif); padding-bottom: 14px; }
.register th, .register td { padding: 11px 10px 11px 0; text-align: left; font-weight: 400; border-bottom: 1px solid rgba(14, 26, 43, .24); }
.register thead th { font-weight: 600; font-size: 15px; vertical-align: bottom; }
.register tbody th { font-family: var(--serif); }
.register td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.register tfoot th, .register tfoot td { font-weight: 600; border-bottom: 0; }
.register [data-col] { padding-left: 10px; transition: background-color .3s; }
.register [data-col].on { background: #DCCDAA; }

/* Talk */
.talk {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: end;
  padding: 110px var(--g) 34px; background: var(--shelf); position: relative; overflow: hidden;
}
.talk::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: var(--plank); border-top: 4px solid var(--brass); z-index: 2; }
.talk-text { align-self: center; }
.talk-text p:last-child { max-width: 30em; margin-top: 16px; }
.talk-scene { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); align-items: end; gap: 0; position: relative; }
.desklamp { padding: 0; border: 0; background: none; cursor: pointer; display: block; }
.desklamp svg { display: block; width: 100%; height: auto; overflow: visible; }
.desklamp .cone { opacity: .12; transition: opacity .5s; }
.desklamp:hover .cone { opacity: .19; }
.desklamp, .slip { position: relative; }
.slip { z-index: 1; }
.slip { background: var(--paper); color: var(--navy); padding: 24px 26px 26px; position: relative; min-height: 400px; }
.slip h3 { font: 400 24px/1.2 var(--serif); margin-bottom: 14px; }
.slip .group { flex-direction: row; flex-wrap: wrap; margin-bottom: 16px; }
.slip .group legend { color: var(--paper-ink); width: 100%; }
.slip .chip span { background: #D8CAAA; color: var(--navy); }
.slip .chip:hover span { background: #CDBD99; }
.slip .chip input:checked + span { background: var(--navy); color: var(--paper); }
.slip .chip input:focus-visible + span { outline-color: var(--navy); }
.slip-done { outline: none; }
.slip-sum { font: 400 24px/1.25 var(--serif); margin: 8px 0 14px; max-width: 18em; }
.quiet { margin-top: 26px; font-size: 15px; color: var(--paper-ink); }
.stamp {
  position: absolute; right: 24px; top: 20px; padding: 3px 12px; border: 3px solid var(--navy); font: 600 18px/1.3 var(--sans); transform: rotate(-6deg);
  animation: stamp .4s var(--ease) both;
}

/* Footer */
.foot { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 26px var(--g) 28px; background: var(--deep); font-size: 15px; }
.foot-name { font: 400 24px/1.2 var(--serif); }
.foot a { color: var(--brass); }
.foot a:hover { color: var(--paper); }

/* Closing time */
.night { position: fixed; inset: 0; z-index: 40; background: #03060B; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .7s ease, visibility 0s linear .7s; display: flex; align-items: flex-end; justify-content: center; padding: 0 var(--g) 12svh; }
.night p { font: italic 400 24px/1.3 var(--serif); color: var(--brass); }
.is-closing .night { opacity: .93; visibility: visible; transition: opacity .7s ease, visibility 0s; }

.tip { position: fixed; z-index: 30; padding: 6px 10px; background: var(--paper); color: var(--navy); font-size: 15px; line-height: 1.3; pointer-events: none; max-width: 240px; }
.tip b { font-family: var(--serif); font-weight: 500; }

/* Motion */
.js .rise { opacity: 0; transform: translateY(22px); transition: opacity .7s ease calc(var(--d, 0) * 80ms), transform .8s var(--ease) calc(var(--d, 0) * 80ms); }
.js .rise.in { opacity: 1; transform: none; }

@keyframes lights-on {
  0% { opacity: 1; } 30% { opacity: 1; } 34% { opacity: .55; } 40% { opacity: .96; } 46% { opacity: .4; } 52% { opacity: .8; } 100% { opacity: 0; }
}
@keyframes mote { 0%, 100% { opacity: 0; transform: translate(0, 0); } 20% { opacity: .55; } 50% { opacity: .3; transform: translate(26px, -54px); } 80% { opacity: .5; } 90% { transform: translate(-14px, -92px); } }
@keyframes settle { from { transform: translateY(10px); opacity: 0; } }
@keyframes lock-pulse { 0%, 100% { transform: none; } 30% { transform: scale(1.9); } }
@keyframes veil-pulse { 0%, 100% { opacity: .76; } 30% { opacity: .2; } }
@keyframes stamp { from { opacity: 0; transform: rotate(-6deg) scale(1.5); } }

/* Short laptops: the wall gives room to the desk */
@media (max-height: 800px) and (min-width: 1081px) {
  :root { --wall-w: min(100vw - 2 * var(--g), 128svh); --cornice-h: clamp(62px, 11svh, 96px); --rail-h: 24px; }
  .plate { height: 28px; }
  .plate span { margin-top: 3px; line-height: 1.3; }
  .card { min-height: 0; }
}

/* Tablet */
@media (max-width: 1080px) {
  .t { display: none; }
  .room { display: contents; }
  .desk { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: none; min-height: 0; }
  .desk-head { grid-column: 1 / -1; }
  .group-who { grid-column: 1; }
  .group-q { grid-column: 2; }
  .card { grid-column: 1 / -1; grid-row: auto; min-height: 0; margin-top: 10px; }
  .rights { grid-template-columns: 1fr; padding-top: 110px; }
  .talk { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; gap: 16px; }
}

/* Phone */
@media (max-width: 680px) {
  :root { --g: 16px; --rail-h: 22px; --cornice-h: 54px; --wall-w: calc(100vw - 2 * var(--g)); }
  body { font-size: 16px; }
  .bar { height: 60px; gap: 12px; }
  .bar-mark { font-size: 15px; line-height: 1.25; max-width: 12em; }
  .bar-nav a:not(.btn) { display: none; }
  .btn-small { padding: 9px 10px; }
  .cornice-in { font-size: 44px; }
  .cornice::after { height: 5px; }
  .rail::before { top: 4px; height: 5px; }
  .rail::after { top: 4px; }
  .shelves { flex-direction: row; flex-wrap: wrap; column-gap: 8px; }
  .shelf-row { display: contents; }
  .bay[data-bay="company"] { flex: 0 0 100%; }
  .bay[data-bay="payroll"], .bay[data-bay="tax"] { flex: 0 0 calc((100% - 8px) * var(--w) / 980); }
  .bay[data-bay="handbook"], .bay[data-bay="partner"] { flex: 0 0 calc((100% - 8px) * var(--w) / 892); }
  .plate { height: 25px; }
  .plate::before { height: 2px; }
  .plate span { font-size: 14px; line-height: 1.35; margin-top: 2px; padding: 0 8px; }
  .plate span::before, .plate span::after { display: none; }
  .lamp { width: 60px; height: 46px; left: -30px; }
  .lamp svg { width: 60px; height: 46px; }
  .hero { padding: 18px var(--g) 22px; }
  .hero h1 { font-size: 36px; }
  .desk { display: block; padding: 22px var(--g) 28px; min-height: 0; }
  .group { margin-top: 18px; }
  .group-q .chip, .group-q .chip span { width: 100%; }
  .group-who { flex-direction: row; flex-wrap: wrap; }
  .card { margin-top: 20px; padding: 16px; }
  .rights { padding: 84px var(--g) 72px; gap: 36px; }
  .sheet { padding: 20px 14px 14px; }
  .register { font-size: 15px; }
  .register thead th { font-size: 14px; }
  .register th, .register td { padding: 9px 4px 9px 0; }
  .register [data-col] { padding-left: 5px; }
  .talk { padding: 64px var(--g) 34px; gap: 28px; }
  .talk-scene { grid-template-columns: 1fr; }
  .desklamp { display: none; }
  .slip { min-height: 0; padding: 20px 18px 22px; }
  .stamp { right: 16px; }
  .night p { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .rise { opacity: 1; transform: none; }
}
