/* ============================================================
   Lakewell Studio — "The Contact Sheet"
   The company makes things that live in a frame: game grids and
   vertical drama frames. So the whole site is a contact sheet —
   products shot as framed cells, everything captioned in a mono
   slate, and the company's proof set as a filed record.
   Deep pine field, bone type, one marigold signal.
   Kept separate from styles.css (used by the live legal pages).
   ============================================================ */

@font-face {
  font-family: 'Bricolage'; font-style: normal; font-weight: 400 800;
  font-display: swap; src: url('/assets/fonts/bricolage-var.woff2') format('woff2');
}
@font-face {
  font-family: 'InterV'; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url('/assets/fonts/inter-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Slate'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('/assets/fonts/space-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Slate'; font-style: normal; font-weight: 700;
  font-display: swap; src: url('/assets/fonts/space-mono-700.woff2') format('woff2');
}

:root {
  --ink:     #0E1E1C;   /* deep pine field */
  --ink-2:   #0A1917;   /* panel, darker */
  --bone:    #EFE9DA;   /* warm off-white */
  --bone-2:  rgba(239,233,218,.66);
  --bone-3:  rgba(239,233,218,.40);
  --sage:    #8CA39B;   /* desaturated muted */
  --gold:    #E8A13A;   /* marigold signal, from the Novelune mark */
  --gold-2:  #F4B65C;
  --hair:    rgba(239,233,218,.15);
  --hair-2:  rgba(239,233,218,.28);
  --panel:   rgba(239,233,218,.035);

  --disp: 'Bricolage', 'Segoe UI', system-ui, sans-serif;
  --body: 'InterV', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Slate', ui-monospace, 'Cascadia Code', monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink); color: var(--bone);
  font-family: var(--body); line-height: 1.62; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1200px, calc(100% - 56px)); margin-inline: auto; }

main, header, footer, nav, .rail { position: relative; z-index: 1; }

/* ---------- mono slate label ---------- */
.slate { font-family: var(--mono); font-weight: 700; font-size: .68rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--sage); }

/* ---------- top rail ---------- */
.rail {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  border-bottom: 1px solid transparent; transition: background .4s var(--ease), border-color .4s var(--ease);
}
.rail.stuck { background: rgba(14,30,28,.82); border-bottom-color: var(--hair);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.rail-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.mark { display: flex; align-items: baseline; gap: 10px; }
.mark b { font-family: var(--disp); font-weight: 700; font-size: 1.08rem; letter-spacing: -.02em; }
.mark .tick { font-family: var(--mono); font-size: .62rem; letter-spacing: .18em; color: var(--gold);
  text-transform: uppercase; }
.rail-nav { display: flex; gap: 26px; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--bone-2); }
.rail-nav a { position: relative; padding: 4px 0; transition: color .2s var(--ease); }
.rail-nav a::before { content: '['; opacity: 0; margin-right: 3px; color: var(--gold); transition: opacity .2s var(--ease); }
.rail-nav a::after  { content: ']'; opacity: 0; margin-left: 3px; color: var(--gold); transition: opacity .2s var(--ease); }
.rail-nav a:hover { color: var(--bone); }
.rail-nav a:hover::before, .rail-nav a:hover::after { opacity: 1; }

/* ---------- hero / contact sheet ---------- */
.hero { padding: 150px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: center; }

.eyebrow { display: inline-block; }
.eyebrow .bar { display: inline-block; width: 26px; height: 1px; background: var(--gold);
  vertical-align: middle; margin-right: 12px; }

h1 { font-family: var(--disp); font-weight: 700; letter-spacing: -.035em; line-height: .96;
  font-size: clamp(2.7rem, 6.4vw, 5.1rem); margin-top: 26px; }
h1 .ln { display: block; overflow: hidden; }
h1 .ln > span { display: block; }
.js h1 .ln > span { transform: translateY(105%); }
.js h1.lit .ln > span { transform: none; transition: transform .9s var(--ease); }
.js h1.lit .ln:nth-child(2) > span { transition-delay: .08s; }
.js h1.lit .ln:nth-child(3) > span { transition-delay: .16s; }
h1 em { font-style: normal; color: var(--gold); }

.lede { margin-top: 26px; max-width: 480px; font-size: 1.08rem; color: var(--bone-2); }

.cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn { font-family: var(--mono); font-weight: 700; font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; padding: 13px 22px; border-radius: 2px;
  display: inline-flex; align-items: center; gap: 9px; will-change: transform;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease); }
.btn-a { background: var(--gold); color: #241304; }
.btn-a:hover { background: var(--gold-2); box-shadow: 0 12px 30px rgba(232,161,58,.26); }
.btn-b { color: var(--bone); border: 1px solid var(--hair-2); }
.btn-b:hover { border-color: var(--bone); background: var(--panel); }
.btn svg { width: 13px; height: 13px; transition: transform .3s var(--ease); }
.btn-a:hover svg { transform: translateX(3px); }

/* filed record strip under the hero copy */
.record { margin-top: 40px; display: flex; gap: 0; flex-wrap: wrap;
  border: 1px solid var(--hair); border-radius: 3px; overflow: hidden; max-width: 480px; }
.record div { flex: 1 1 auto; padding: 12px 16px; border-right: 1px solid var(--hair);
  font-family: var(--mono); font-size: .72rem; }
.record div:last-child { border-right: 0; }
.record dt { color: var(--bone-3); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; }
.record dd { color: var(--bone); margin-top: 4px; letter-spacing: .02em; }

/* the sheet of product frames */
.sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.frame { position: relative; }
.frame .win { position: relative; border: 1px solid var(--hair-2); border-radius: 4px; overflow: hidden;
  background: #000; aspect-ratio: 9 / 16;
  box-shadow: 0 26px 54px rgba(0,0,0,.5);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease); }
.frame .win img { width: 100%; height: 100%; object-fit: cover; }
/* sprocket ticks — the filmstrip nod, kept faint */
.frame .win::before, .frame .win::after {
  content: ''; position: absolute; top: 8px; bottom: 8px; width: 3px; z-index: 2;
  background-image: linear-gradient(var(--bone-3) 40%, transparent 0);
  background-size: 3px 11px; opacity: .5; }
.frame .win::before { left: 4px; } .frame .win::after { right: 4px; }
.frame:hover .win { transform: translateY(-6px); border-color: var(--hair-2); box-shadow: 0 34px 64px rgba(0,0,0,.6); }
.frame .idx { position: absolute; top: 8px; left: 12px; z-index: 3;
  font-family: var(--mono); font-weight: 700; font-size: .62rem; letter-spacing: .1em; color: var(--bone);
  background: rgba(10,25,23,.7); padding: 2px 6px; border-radius: 2px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.frame .cap { margin-top: 12px; display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); }
.frame:nth-child(2) { margin-top: 34px; }

.stat { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.stat-live { background: var(--gold); box-shadow: 0 0 0 0 rgba(232,161,58,.5); animation: beat 2.6s var(--ease) infinite; }
.stat-dev  { border: 1px solid var(--sage); }
@keyframes beat { 0%,100% { box-shadow: 0 0 0 0 rgba(232,161,58,.5); } 50% { box-shadow: 0 0 0 5px rgba(232,161,58,0); } }

/* hero sheet frames slot in on load — scoped to .sheet so the product
   frames (in .prod-sheet) are never hidden by this */
.js .sheet .frame { opacity: 0; transform: translateY(24px) rotate(-1.5deg); }
.js .sheet.dealt .frame { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .8s var(--ease); }
.js .sheet.dealt .frame:nth-child(2) { transition-delay: .12s; }

/* ---------- section scaffold ---------- */
.sec { padding: 104px 0; border-top: 1px solid var(--hair); }
.sec-head { max-width: 680px; }
h2 { font-family: var(--disp); font-weight: 600; letter-spacing: -.028em; line-height: 1.08;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-top: 14px; }
.sec-head p { margin-top: 16px; color: var(--bone-2); max-width: 560px; }

/* ---------- channels ---------- */
.channels { margin-top: 52px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.channel { position: relative; padding: 34px; border: 1px solid var(--hair); border-radius: 6px;
  background: var(--panel); overflow: hidden;
  transition: border-color .45s var(--ease), background .45s var(--ease), transform .45s var(--ease); }
.channel:hover { border-color: var(--hair-2); background: rgba(239,233,218,.055); transform: translateY(-3px); }
.channel .glyph { height: 66px; margin-bottom: 22px; display: flex; align-items: flex-end; }
.channel h3 { font-family: var(--disp); font-weight: 600; font-size: 1.35rem; letter-spacing: -.02em; display: inline; }
.channel .tag { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-left: 10px; }
.channel p { margin-top: 14px; color: var(--bone-2); font-size: .95rem; }
/* game-grid glyph cells */
.cells { display: grid; grid-template-columns: repeat(5, 12px); grid-auto-rows: 12px; gap: 5px; }
.cells i { border-radius: 2px; border: 1px solid var(--hair-2); }
.cells i.on { background: var(--gold); border-color: var(--gold); }
.cells i.on2 { background: var(--sage); border-color: var(--sage); }
/* filmstrip glyph */
.strip { display: flex; gap: 5px; }
.strip i { width: 22px; height: 40px; border: 1px solid var(--hair-2); border-radius: 3px; position: relative; }
.strip i::before { content: ''; position: absolute; inset: 5px 3px; border: 1px solid var(--hair); border-radius: 1px; }
.strip i.on { border-color: var(--gold); }
.strip i.on::before { border-color: rgba(232,161,58,.5); }

/* ---------- ledger: parallel disciplines, not a sequence ---------- */
.ledger { margin-top: 52px; border-top: 1px solid var(--hair-2); }
.lrow { display: grid; grid-template-columns: 180px 1fr; gap: 40px; align-items: baseline;
  padding: 26px 4px; border-bottom: 1px solid var(--hair);
  transition: background .35s var(--ease), padding-left .35s var(--ease); }
.lrow:hover { background: var(--panel); padding-left: 16px; }
.lrow .k { font-family: var(--mono); font-weight: 700; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); }
.lrow .v h3 { font-family: var(--disp); font-weight: 600; font-size: 1.12rem; letter-spacing: -.015em; }
.lrow .v p { margin-top: 7px; color: var(--bone-2); font-size: .93rem; max-width: 620px; }

/* ---------- products ---------- */
.prod { display: grid; grid-template-columns: 1fr 384px; gap: 60px; align-items: center; margin-top: 56px; }
.prod.flip { grid-template-columns: 384px 1fr; }
.prod.flip .prod-sheet { order: -1; }
.prod + .prod { margin-top: 84px; padding-top: 84px; border-top: 1px solid var(--hair); }
.prod-head { display: flex; align-items: center; gap: 14px; }
.prod-head img { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 8px 22px rgba(0,0,0,.5);
  transition: transform .5s var(--ease); }
.prod:hover .prod-head img { transform: scale(1.06) rotate(-3deg); }
.prod-name { font-family: var(--disp); font-weight: 600; font-size: 1.5rem; letter-spacing: -.022em; }
.prod-line { display: flex; align-items: center; gap: 8px; margin-top: 4px;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); }
.prod p.desc { margin-top: 20px; color: var(--bone-2); max-width: 460px; }
.prod-link { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-weight: 700; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); transition: gap .25s var(--ease); }
.prod-link:hover { gap: 13px; }
.prod-link svg { width: 13px; height: 13px; }
.prod-soon { margin-top: 22px; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--bone-3); }
.prod-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- the record ---------- */
.reg { margin-top: 48px; border: 1px solid var(--hair); border-radius: 6px; overflow: hidden; }
.reg-top { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 22px; border-bottom: 1px solid var(--hair); background: var(--panel);
  font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); }
.reg-top .seal { color: var(--gold); }
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; }
.reg-row { display: flex; justify-content: space-between; gap: 16px; padding: 15px 22px;
  border-bottom: 1px solid var(--hair); border-right: 1px solid var(--hair);
  font-family: var(--mono); font-size: .8rem; }
.reg-grid .reg-row:nth-child(even) { border-right: 0; }
.reg-row dt { color: var(--bone-3); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; align-self: center; }
.reg-row dd { color: var(--bone); text-align: right; letter-spacing: .02em; }

.contact { margin-top: 52px; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; flex-wrap: wrap; }
.contact .say { max-width: 360px; }
.contact .say h3 { font-family: var(--disp); font-weight: 600; font-size: 1.5rem; letter-spacing: -.02em; }
.contact .say p { margin-top: 10px; color: var(--bone-2); font-size: .93rem; }
.mail { font-family: var(--disp); font-weight: 600; font-size: clamp(1.3rem, 3vw, 1.9rem); letter-spacing: -.025em;
  position: relative; padding-bottom: 6px; }
.mail::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--gold);
  transform-origin: left; transition: transform .5s var(--ease); }
.mail:hover::after { transform: scaleX(0); transform-origin: right; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--hair); padding: 56px 0 44px; background: var(--ink-2); }
.f-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 36px; }
.f-mark { font-family: var(--disp); font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; }
.f-note { margin-top: 14px; color: var(--bone-2); font-size: .86rem; max-width: 280px; }
.f-col h5 { font-family: var(--mono); font-weight: 700; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--bone-3); margin-bottom: 14px; }
.f-col li { list-style: none; margin-bottom: 9px; font-size: .88rem; color: var(--bone-2); }
.f-col a { transition: color .2s var(--ease); }
.f-col a:hover { color: var(--gold); }
.f-legal { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--hair);
  font-family: var(--mono); font-size: .66rem; letter-spacing: .04em; color: var(--bone-3); line-height: 2; }

/* ---------- reveal ---------- */
.rv { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv { opacity: 0; transform: translateY(18px); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .sheet { max-width: 420px; }
  .prod, .prod.flip { grid-template-columns: 1fr; gap: 38px; }
  .prod.flip .prod-sheet { order: 0; }
  .prod-sheet { max-width: 384px; }
  .reg-grid { grid-template-columns: 1fr; }
  .reg-row, .reg-grid .reg-row:nth-child(even) { border-right: 0; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 36px); }
  .hero { padding: 120px 0 76px; }
  .sec { padding: 72px 0; }
  .rail-nav a:nth-child(2), .rail-nav a:nth-child(3) { display: none; }
  .eb-more { display: none; }
  .channels { grid-template-columns: 1fr; gap: 16px; }
  .lrow { grid-template-columns: 1fr; gap: 8px; padding: 20px 4px; }
  .lrow:hover { padding-left: 4px; }
  .f-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .record { max-width: none; }
}
@media (max-width: 440px) {
  .f-grid { grid-template-columns: 1fr; }
  .contact { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js h1 .ln > span, .js .rv, .js .frame { opacity: 1; transform: none; transition: none; }
  .stat-live { animation: none; }
}
