/* adamflambo.com, det mörka rummet. Tokens delade med villa-valentina.html. */
:root {
  --bg: #0a0a0a;
  --fg: #f4f1ea;
  --muted: #9a958b;
  --rule: #2a2925;
  --cream: #E9E4D6; /* walks-rummets bakgrund, används bara av slöjan */
  --sans: 'Helvetica Neue', Helvetica, 'Inter', Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- rummet och slöjan ---------- */
.room { animation: room-in 380ms ease-out both; }
@keyframes room-in { from { opacity: 0; } to { opacity: 1; } }
.veil {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background: var(--bg); opacity: 0;
}
html.leaving .room { animation: none; opacity: 0; transition: opacity 260ms ease-out; }
html.leaving .veil { opacity: 1; transition: opacity var(--veil-ms, 520ms) cubic-bezier(.4, 0, .2, 1); }
@media (prefers-reduced-motion: reduce) {
  .room { animation: none; }
  html.leaving .room, html.leaving .veil { transition: none; }
}

/* ---------- chrome ---------- */
.top {
  padding: 28px var(--gutter);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); font-weight: 500;
}
.top .mark { color: var(--fg); font-weight: 600; }
.top a { white-space: nowrap; }
.top nav { display: flex; gap: clamp(18px, 3vw, 32px); }
.top nav a { color: var(--fg); transition: color .2s ease; }
.top nav a:hover, .top nav a[aria-current] { color: var(--muted); }

.foot {
  padding: 30px var(--gutter); border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
}

.social { display: flex; gap: 18px; align-items: center; }
.social a { display: flex; color: var(--muted); padding: 4px; margin: -4px; transition: color .2s ease; }
.social a:hover { color: var(--fg); }

.eyebrow { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.k { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.btn {
  display: inline-block; border: 1px solid var(--rule); padding: 13px 20px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; transition: border-color .2s ease;
}
.btn:hover { border-color: var(--muted); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- mejlvalet ---------- */
dialog.mail {
  margin: auto; width: min(420px, calc(100% - 32px)); padding: 24px;
  background: #11110f; color: var(--fg); border: 1px solid var(--rule);
  font-family: var(--sans);
}
dialog.mail[open] { animation: room-in 260ms ease-out both; }
dialog.mail::backdrop { background: rgba(10, 10, 10, .72); }
.mail-head { display: flex; justify-content: space-between; align-items: center; }
.mail-close {
  background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px 0;
  font: inherit; font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
}
.mail-close:hover { color: var(--fg); }
.mail-address { margin: 18px 0 22px; font-size: clamp(17px, 4.6vw, 20px); font-weight: 600; letter-spacing: -0.02em; user-select: all; overflow-wrap: anywhere; }
.mail-options { display: flex; flex-direction: column; gap: 8px; }
.mail-options .btn {
  width: 100%; text-align: center; background: none; color: var(--fg);
  font-family: inherit; cursor: pointer; padding: 15px 20px;
}
.mail-options .btn:first-child { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 600; }

/* ---------- start ---------- */
.hero { height: min(78vh, 760px); min-height: 360px; position: relative; overflow: hidden; background: #000; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.15) 0%, rgba(10,10,10,.1) 50%, rgba(10,10,10,.92) 100%);
}

.intro {
  padding: clamp(44px, 6vw, 64px) var(--gutter) clamp(52px, 7vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: end;
}
.intro h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.04; font-weight: 900; letter-spacing: -0.042em; max-width: 16ch; text-wrap: balance; }
.intro .head { display: flex; flex-direction: column; gap: 14px; }
.intro .sub { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.intro .lead { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 38ch; }
.intro .side { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.avail { font-size: 17px; line-height: 1.55; color: var(--fg); max-width: 36ch; }

.piece { padding: clamp(44px, 6vw, 64px) var(--gutter); border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 18px; }
.film { display: flex; flex-direction: column; gap: 12px; }
.film .frame { position: relative; background: #000; }
.film video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.film .sound {
  position: absolute; right: 14px; bottom: 14px; cursor: pointer;
  background: rgba(10, 10, 10, .55); color: var(--fg); border: 1px solid rgba(244, 241, 234, .35);
  padding: 10px 14px; font: inherit; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.film .sound:hover { border-color: var(--fg); }
.film .row, .case .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.film .t { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.case { display: flex; flex-direction: column; gap: 12px; }
.case img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; transition: opacity .3s ease; }
.case:hover img { opacity: .85; }
.case .t { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }

.contact { padding: clamp(40px, 5vw, 56px) var(--gutter); border-top: 1px solid var(--rule); }
.contact .lede { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.35; font-weight: 600; letter-spacing: -0.03em; max-width: 26ch; }

.page-head { padding: clamp(32px, 5vw, 56px) var(--gutter) 0; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.04; font-weight: 900; letter-spacing: -0.042em; }
.film .row a.k { transition: color .2s ease; }
.film .row a.k:hover { color: var(--fg); }
.more { border-top: 1px solid var(--rule); }
.more a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: clamp(36px, 5vw, 52px) var(--gutter);
  font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; letter-spacing: -0.04em; transition: color .2s ease;
}
.more a::after { content: ""; width: 28px; height: 1px; background: currentColor; align-self: center; transition: width .3s ease; }
.more a:hover { color: var(--muted); }
.more a:hover::after { width: 56px; }

/* ---------- about ---------- */
section.block { padding: clamp(52px, 7vw, 72px) var(--gutter); border-top: 1px solid var(--rule); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.12) brightness(.96); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.claim { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.22; font-weight: 900; letter-spacing: -0.04em; max-width: 22ch; margin: 0; }
.claim span { display: block; }
.body { font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 56ch; }
.body strong { color: var(--fg); font-weight: 600; }
.world { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); }
.world > div { background: var(--bg); padding: 26px 22px; }
.world h3 { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }
.world p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.question { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.08; font-weight: 900; letter-spacing: -0.045em; max-width: 20ch; margin-top: 18px; text-wrap: balance; }

@media (max-width: 520px) {
  .top .place { display: none; }
  .top { letter-spacing: 0.16em; gap: 12px; }
  .top nav { gap: 14px; }
}
@media (max-width: 760px) {
  .intro, .split { grid-template-columns: 1fr; }
  .world { grid-template-columns: 1fr; }
  .case img { aspect-ratio: 16 / 10; }
  .hero { height: 56vh; }
}

/* ---------- vägskälet (startsidan) ---------- */
.fork { min-height: 100svh; display: flex; flex-direction: column; }
.fork .doors { flex: 1; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.door {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  padding: clamp(28px, 4vw, 52px) var(--gutter) clamp(30px, 4vw, 54px);
  min-height: min(52svh, 520px);
}
.door + .door { border-left: 1px solid var(--rule); }
.door .bg { position: absolute; inset: 0; z-index: -2; background: #000; }
.door .bg img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.6,.2,1); }
/* Annan beskärning än på /flambo, så att samma bild inte visas två gånger i rad. */
.door--dark .bg img { object-position: 72% 50%; }
.door::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,10,10,.28) 0%, rgba(10,10,10,.62) 42%, rgba(10,10,10,.94) 100%);
  transition: opacity .3s ease;
}
.door:hover .bg img { transform: scale(1.035); }
.door h2 { font-size: clamp(30px, 3.8vw, 50px); line-height: 1.02; font-weight: 900; letter-spacing: -0.045em; }
.door p { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 34ch; }
.door--dark { text-shadow: 0 1px 24px rgba(10,10,10,.45); }
.door--dark .eyebrow { color: rgba(244,241,234,.78); }
.door--dark p { color: rgba(244,241,234,.78); }
.door .go {
  display: flex; align-items: center; gap: 12px; margin-top: 4px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--fg);
}
.door .go::after { content: ""; width: 28px; height: 1px; background: currentColor; transition: width .3s ease; }
.door:hover .go::after { width: 56px; }

/* cream-rummet bakom höger dörr: samma bild, men walks egna färger */
.door--light { --fg: #1d1a16; --muted: #6a6153; color: var(--fg); background: var(--cream); }
.door--light .bg { background: var(--cream); }
.door--light::after {
  background: linear-gradient(180deg, rgba(233,228,214,0) 0%, rgba(233,228,214,.35) 38%, rgba(233,228,214,.93) 78%, rgba(233,228,214,.99) 100%);
}
/* Rastret i walks-bilden blir grus i en tight beskärning. Visa husen, inte himlen. */
.door--light .bg img { object-position: 42% 72%; }

.fork .top nav a { color: var(--muted); }
.fork .top nav a:hover { color: var(--fg); }

@media (max-width: 760px) {
  .fork .doors { grid-template-columns: 1fr; }
  .door + .door { border-left: 0; border-top: 1px solid var(--rule); }
  .door { min-height: 42svh; }
}

/* Handtaget som rubrik på /flambo. Understrecket är en del av namnet, så det
   ska inte krocka med baslinjen: lite luft under och ingen tight tracking. */
.intro h1.handle { letter-spacing: -0.02em; max-width: none; padding-bottom: .08em; }
