/* ──────────────────────────────────────────────────────────────
   adam bjöörn — personal site · Brand kit v3 (paper · one gold)
   Tokens from the kit. Layout and hover are the site's own.
   ────────────────────────────────────────────────────────────── */
@font-face { font-family: "Satoshi"; src: url("assets/fonts/Satoshi-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/Satoshi-Light.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/Satoshi-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/Satoshi-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Departure Mono"; src: url("assets/fonts/DepartureMono-Regular.woff2") format("woff2"); font-display: swap; }

:root {
  --paper:   #F2F0EB;
  --paper-2: #EAE7E0;
  --ink:     #0E0D0B;
  --gold:    #E2C03A;
  --stone:   #6F6B62;
  --line:    #D6D2C8;
  --panel:   #15140F;

  --bg:     var(--paper);
  --text:   var(--ink);
  --muted:  var(--stone);
  --faint:  #8E8A80;
  --accent: var(--gold);

  --font-display: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --font-hud:     "Departure Mono", "DotGothic16", ui-monospace, Menlo, monospace;
  --font-kana:    "DotGothic16", "Hiragino Kaku Gothic ProN", sans-serif;

  --max: 1120px;
  --gutter: 16px;
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* paper: a soft top light, and the kit's print noise (multiply) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 20%, rgba(255,255,255,.55), rgba(255,255,255,0) 60%),
    radial-gradient(ellipse 100% 80% at 50% 110%, rgba(14,13,11,.10), rgba(14,13,11,0) 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none;
  opacity: .38; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 260px 260px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ── HUD atoms (kit) ──────────────────────────────────────────── */
.hud { font-family: var(--font-hud); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.4; color: var(--stone); }
.hud .g { color: var(--gold); }
.kana { font-family: var(--font-kana); letter-spacing: .22em; }
.bars { display: inline-flex; gap: 4px; vertical-align: middle; margin-left: 10px; }
.bars i { display: block; width: 9px; height: 7px; background: var(--gold); }
.bars i.off { background: var(--ink); opacity: .18; }
.lt { font-weight: 300; letter-spacing: .28em; text-transform: uppercase; }
.gold { color: var(--gold); }
/* small labels on paper = ink + gold square (never gold text) */
.label, .handle, .step .n {
  font-family: var(--font-hud); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.4; color: var(--ink);
}
.label::before, .handle::before, .step .n::before {
  content: ""; display: inline-block; width: 8px; height: 8px; background: var(--gold); margin-right: 9px; vertical-align: 1px;
}

/* ── page load: staggered reveal ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(12px); animation: rise .7s var(--ease) forwards; }
.reveal[data-d="1"] { animation-delay: .08s; }
.reveal[data-d="2"] { animation-delay: .16s; }
.reveal[data-d="3"] { animation-delay: .24s; }
.reveal[data-d="4"] { animation-delay: .32s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── top (founders page only) ────────────────────────────────── */
.top { padding: 26px 0 0; }
.back { font-size: 14px; font-weight: 700; color: var(--stone); display: inline-flex; gap: 8px; align-items: center; }
.back:hover { color: var(--ink); }

/* ── hero: the lockup ────────────────────────────────────────── */
.hero { padding: clamp(64px, 11vh, 120px) 0 clamp(32px, 5vh, 54px); text-align: center; }
.hero h1 {
  margin: 0 auto;
  max-width: 36ch;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(23px, 2.8vw, 35px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
/* the gold words: the kit's pixel mono, the "video game" font */
.hero h1 .vg { font-family: var(--font-hud); font-weight: 400; color: var(--gold); font-size: .94em; letter-spacing: .02em; white-space: nowrap; }

.pills { display: flex; justify-content: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FBFAF7, #F0EEE8);
  border: 1px solid rgba(14,13,11,.08);
  box-shadow: 0 1px 2px rgba(14,13,11,.06), 0 10px 26px -14px rgba(14,13,11,.35);
  font-weight: 700; font-size: 15px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.pill svg { width: 17px; height: 17px; color: var(--ink); }
.pill:hover { transform: translateY(-2px); border-color: rgba(226,192,58,.9); box-shadow: 0 1px 2px rgba(14,13,11,.06), 0 14px 30px -14px rgba(14,13,11,.4); }

/* ── the shelf ───────────────────────────────────────────────── */
.shelves { padding: clamp(20px, 4vh, 44px) 0 clamp(36px, 6vh, 64px); }
.shelf { position: relative; margin: 0 auto 72px; perspective: 1400px; }
.shelf:last-child { margin-bottom: 0; }
.shelf-row {
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(10px, 1.6vw, 20px);
  padding: 0 clamp(8px, 4vw, 56px) 0;
  position: relative; z-index: 2;
}
.card {
  position: relative;
  flex: 0 1 calc((100% - 3 * clamp(10px, 1.6vw, 20px)) / 4);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(14,13,11,.10);
  transform-origin: 50% 100%;
  transform: translateY(0) scale(1);
  box-shadow: 0 18px 34px -24px rgba(14,13,11,.55), 0 2px 6px rgba(14,13,11,.12);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  will-change: transform;
}
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card .c { position: absolute; width: 16px; height: 16px; border: 1.5px solid var(--gold); opacity: 0; transition: opacity .25s; pointer-events: none; }
.card .c.tl { left: 6px; top: 6px; border-right: 0; border-bottom: 0; }
.card .c.tr { right: 6px; top: 6px; border-left: 0; border-bottom: 0; }
.card .c.bl { left: 6px; bottom: 6px; border-right: 0; border-top: 0; }
.card .c.br { right: 6px; bottom: 6px; border-left: 0; border-top: 0; }
.card .watch {
  position: absolute; left: 50%; bottom: 14%;
  transform: translate(-50%, 10px);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(251,250,247,.92);
  color: var(--ink);
  font-size: 13px; font-weight: 700; letter-spacing: .01em;
  box-shadow: 0 8px 20px -10px rgba(14,13,11,.6);
  opacity: 0;
  transition: opacity .35s var(--ease), transform .45s var(--ease);
  pointer-events: none;
}
@media (hover: hover) {
  .card:hover { transform: translateY(-18px) scale(1.06); z-index: 3;
    box-shadow: 0 40px 60px -26px rgba(14,13,11,.6), 0 4px 10px rgba(14,13,11,.12);
  }
  .card:hover img { transform: scale(1.04); }
  .card:hover .c { opacity: 1; }
  .card:hover .watch { opacity: 1; transform: translate(-50%, 0); }
}
.ledge {
  position: relative;
  height: 14px;
  margin: 0 auto;
  width: calc(100% + 24px);
  left: -12px;
  border-radius: 2px;
  background: linear-gradient(180deg, #FBFAF7 0%, #ECE9E2 55%, #DDD9D0 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(14,13,11,.12), 0 1px 0 rgba(14,13,11,.14);
  z-index: 1;
}
.ledge::before {             /* contact shadow under the prints */
  content: ""; position: absolute; left: 4%; right: 4%; top: -10px; height: 10px;
  background: linear-gradient(180deg, rgba(14,13,11,0) 0%, rgba(14,13,11,.28) 100%);
  filter: blur(2px);
}
.ledge::after {              /* the ledge's shadow on the wall */
  content: ""; position: absolute; left: 1%; right: 1%; top: 100%; height: 60px;
  background: linear-gradient(180deg, rgba(14,13,11,.28) 0%, rgba(14,13,11,0) 100%);
  filter: blur(10px);
  transform: scaleY(.8); transform-origin: top;
  z-index: -1;
}
.shelf-title {
  position: absolute; left: 0; right: 0; top: calc(100% + 16px);
  text-align: center;
  font-size: 15px; font-weight: 700;
  color: var(--ink);
  opacity: 0; transform: translateY(4px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
  padding: 0 var(--gutter);
}
.shelf-title.show { opacity: 1; transform: none; }

/* ── statement ───────────────────────────────────────────────── */
.bio { text-align: center; padding: clamp(28px, 6vh, 72px) 0 0; }
.bio .lead { margin: 0 auto 22px; max-width: 620px; font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.bio p { margin: 0 auto 18px; max-width: 560px; color: var(--stone); font-size: 18px; line-height: 1.65; text-wrap: pretty; }
.bio p:last-child { margin-bottom: 0; }

/* ── Fuji divider (dither, ink on paper) ─────────────────────── */
.divider { margin: clamp(40px, 7vh, 64px) auto 0; max-width: 720px; text-align: center; padding: 0 var(--gutter); }
.divider img { margin: 0 auto; opacity: .9; width: 100%; }
.divider .hud { margin-top: 14px; }

/* ── card (founders) ─────────────────────────────────────────── */
.offer { padding: clamp(36px, 6vh, 56px) 0 clamp(48px, 8vh, 96px); }
.panel {
  display: block;
  padding: clamp(26px, 4vw, 34px) clamp(22px, 4vw, 36px) clamp(26px, 4vw, 32px);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #F6F4EF 0%, #ECEAE3 100%);
  border: 1px solid rgba(14,13,11,.06);
  box-shadow: 0 30px 60px -40px rgba(14,13,11,.45), 0 1px 2px rgba(14,13,11,.05);
  transition: transform .4s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.panel:hover { transform: translateY(-3px); border-color: rgba(226,192,58,.8); box-shadow: 0 36px 64px -40px rgba(14,13,11,.55), 0 1px 2px rgba(14,13,11,.05); }
.panel .label { margin: 0 0 16px; }
.panel h2 { margin: 0 0 10px; font-weight: 700; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.panel p { margin: 0 0 20px; color: var(--stone); max-width: 62ch; line-height: 1.6; }
.cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--ink); }
.cta .arrow { display: inline-block; transition: transform .35s var(--ease); }
.panel:hover .cta .arrow, .cta:hover .arrow { transform: translateX(4px); }

/* ── footer ──────────────────────────────────────────────────── */
footer { padding: 28px 0 40px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 15px; color: var(--stone); }
footer .brand { font-weight: 700; color: var(--ink); }
footer nav { display: flex; gap: 22px; }
footer nav a:hover { color: var(--ink); }

/* ── founders page ───────────────────────────────────────────── */
.page-hero { padding: clamp(48px, 9vh, 90px) 0 clamp(24px, 4vh, 40px); text-align: center; }
.page-hero .label { margin: 0 0 22px; }
.page-hero h1 { margin: 0 auto; max-width: 22ch; font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 4.6vw, 56px); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; text-wrap: balance; }
.page-hero .sub { margin: 26px auto 0; max-width: 520px; color: var(--stone); font-size: 18px; line-height: 1.6; text-wrap: pretty; }

.section { padding: clamp(32px, 6vh, 64px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section > .wrap > .label { text-align: center; margin: 0 0 14px; }
.section h2 { margin: 0 auto 12px; text-align: center; max-width: 24ch; font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 3.2vw, 36px); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; text-wrap: balance; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.step { padding: 24px 22px 26px; border-radius: 18px; background: linear-gradient(135deg, #F6F4EF 0%, #ECEAE3 100%); border: 1px solid rgba(14,13,11,.06); box-shadow: 0 20px 40px -32px rgba(14,13,11,.4); }
.step .n { margin-bottom: 14px; }
.step h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; letter-spacing: -.005em; }
.step p { margin: 0; color: var(--stone); font-size: 15px; line-height: 1.6; }

.result { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; margin-top: 34px; }
.result + .result { margin-top: clamp(40px, 7vh, 72px); }
.result.flip .shots { order: -1; }
.result h3 { margin: 0 0 8px; font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.2; letter-spacing: -.01em; }
.result .handle { margin-bottom: 12px; }
.result p { margin: 0 0 16px; color: var(--stone); max-width: 46ch; text-wrap: pretty; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; margin-top: 18px; }
.stat b { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.stat span { display: block; font-size: 13px; color: var(--stone); margin-top: 6px; }

.shots { display: grid; gap: 14px; align-items: start; }
.shots.two { grid-template-columns: repeat(2, 1fr); max-width: 400px; margin-inline: auto; }
.shots.three { grid-template-columns: repeat(3, 1fr); }
.shots.one { grid-template-columns: 1fr; max-width: 230px; margin-inline: auto; }
.stats.three { grid-template-columns: repeat(3, 1fr); }
.shot { margin: 0; }
.shot .frame {
  aspect-ratio: 640 / 1275;
  border-radius: 18px; overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(14,13,11,.12);
  box-shadow: 0 30px 50px -30px rgba(14,13,11,.55), 0 1px 2px rgba(14,13,11,.08);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { margin-top: 10px; text-align: center; font-family: var(--font-hud); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--stone); }

.quote-row {
  display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  margin-top: clamp(40px, 7vh, 72px);
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #F6F4EF 0%, #ECEAE3 100%);
  border: 1px solid rgba(14,13,11,.06);
  box-shadow: 0 30px 60px -40px rgba(14,13,11,.45);
}
.clip { position: relative; margin: 0; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: var(--panel); border: 1px solid rgba(14,13,11,.12); box-shadow: 0 30px 50px -30px rgba(14,13,11,.6); }
.clip video { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip .play {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: pointer;
  background: linear-gradient(180deg, rgba(14,13,11,0) 40%, rgba(14,13,11,.5));
  display: grid; place-items: center; color: var(--ink);
  transition: opacity .3s var(--ease);
}
.clip .play::before { content: ""; position: absolute; width: 66px; height: 66px; border-radius: 50%; background: var(--gold); box-shadow: 0 18px 40px -12px rgba(14,13,11,.6); transition: transform .35s var(--ease); }
.clip .play svg { position: relative; width: 26px; height: 26px; margin-left: 3px; }
.clip .play:hover::before { transform: scale(1.06); }
.clip .play.hide { opacity: 0; pointer-events: none; }
.clip .rec { position: absolute; left: 12px; top: 10px; color: #fff; font-family: var(--font-hud); font-size: 11px; letter-spacing: .04em; text-shadow: 0 1px 3px rgba(0,0,0,.6); pointer-events: none; }
.clip .rec b { color: #FF3B30; font-weight: 400; }
.quote-row blockquote { margin: 0; }
.quote-row blockquote p { margin: 0 0 16px; font-weight: 700; font-size: clamp(1.25rem, 2.3vw, 1.75rem); line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; color: var(--ink); }
.quote-row cite { font-style: normal; font-size: 14px; color: var(--stone); }

.final { text-align: center; padding: clamp(48px, 9vh, 96px) 0 clamp(64px, 10vh, 120px); }
.final .label { margin: 0 0 16px; }
.final h2 { margin: 0 auto 22px; max-width: 24ch; font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 3.2vw, 36px); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; text-wrap: balance; }
.final .ig { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 14px 24px 14px 18px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 700; font-size: 15px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); box-shadow: 0 18px 40px -16px rgba(14,13,11,.45); }
.final .ig:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -16px rgba(14,13,11,.5); }
.final .ig svg { width: 18px; height: 18px; }
.final .or { display: block; margin-top: 16px; font-size: 14px; color: var(--stone); }
.final .or a { color: var(--ink); font-weight: 700; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .result { grid-template-columns: 1fr; }
  .result.flip .shots { order: 0; }
  .quote-row { grid-template-columns: 1fr; }
  .clip { max-width: 260px; margin-inline: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero h1 .br { display: none; }
  .hero h1 { max-width: 16ch; }
  .card { flex-basis: calc((100% - clamp(10px, 1.6vw, 20px)) / 2); }
  .shelf { margin-bottom: 44px; }
  .shelf-title { font-size: 13px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .shots.three, .shots.two { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; max-width: none; scrollbar-width: none; }
  .shots::-webkit-scrollbar { display: none; }
  .shots.three .shot, .shots.two .shot { flex: 0 0 58%; scroll-snap-align: start; }
}
