/* Hi, I'm Avi — avi.nyc × Founders School deck */
@font-face { font-family: "Windsor"; src: url("../fonts/WindsorBT-Light.woff") format("woff"); font-weight: 300; font-display: block; }
@font-face { font-family: "Satoshi"; src: url("../fonts/Satoshi-Variable.woff2") format("woff2"); font-weight: 300 900; font-display: block; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: block; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: block; }

:root {
  /* avi.nyc "Midnight Terminal" */
  --black: #000;
  --surface: #0f0f0f;
  --line: #2a2a2a;
  --white: #fff;
  --dim: #a0a0a0;
  --burgundy: #c74b7a;
  --cyan: #4ecdc4;
  --amber: #e8a849;
  /* Founders School */
  --blue: #0000ef;
  --near-black: #0a0a0a;
  --off-white: #f8f8f8;
  --fs-border: #e0e0dc;
  --fs-gray: #374151;

  --serif: "Windsor", Georgia, serif;
  --sans: "Satoshi", "Geist", system-ui, sans-serif;
  --geist: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #000; color: var(--white); overflow: hidden; }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; }

/* ---------- stage: fixed 1920×1080 canvas, scaled to fit ---------- */
#viewport { position: fixed; inset: 0; display: grid; place-items: center; overflow: hidden; }
#stage { width: 1920px; height: 1080px; position: relative; transform-origin: center center; flex: none; }

.slide {
  position: absolute; inset: 0; padding: 110px 130px 120px;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--black); color: var(--white);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s;
  overflow: hidden;
}
.slide.active { opacity: 1; visibility: visible; transition: opacity .35s ease; z-index: 2; }
.notes { display: none; }

/* themes */
.slide.blue { background: var(--blue); }
.slide.paper { background: var(--off-white); color: var(--near-black); }
.slide.paper .dim { color: var(--fs-gray); }
.slide.center { align-items: center; text-align: center; }

/* chrome: FS crest top-left, avi.nyc wordmark top-right, rule + counter at bottom */
.slide::before {
  content: ""; position: absolute; left: 130px; top: 56px; width: 34px; height: 37px;
  background: url("../img/founders-school-glyph.svg") no-repeat center / contain; opacity: .9;
}
.slide.paper::before { filter: invert(1); }
.slide::after {
  content: "avi.nyc"; position: absolute; right: 130px; top: 52px;
  font-family: var(--serif); font-size: 34px; letter-spacing: -.02em; opacity: .9;
}
.slide.bare::before, .slide.bare::after { display: none; }
.foot {
  position: absolute; left: 130px; right: 130px; bottom: 54px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.22);
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 18px; letter-spacing: .16em; text-transform: uppercase; opacity: .7;
}
.paper .foot { border-color: var(--near-black); }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 24px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--burgundy); margin-bottom: 36px;
}
.blue .eyebrow { color: #fff; opacity: .75; }
.paper .eyebrow { color: var(--blue); }
h1, h2, .serif { font-family: var(--serif); font-weight: 300; letter-spacing: -.02em; line-height: 1.02; }
h1 { font-size: 168px; }
h2 { font-size: 118px; }
h2.sm { font-size: 92px; }
.huge { font-size: 210px; line-height: .96; }
p.lead { font-size: 46px; line-height: 1.3; max-width: 1300px; margin-top: 40px; font-weight: 400; }
.center p.lead { margin-left: auto; margin-right: auto; }
.dim { color: var(--dim); }
.blue .dim { color: rgba(255,255,255,.72); }
em { font-style: italic; }
.c-burgundy { color: var(--burgundy); } .c-cyan { color: var(--cyan); } .c-amber { color: var(--amber); } .c-blue { color: var(--blue); }
.hl { background: var(--blue); color: #fff; padding: 0 .18em; }
.blue .hl { background: #fff; color: var(--blue); }
.mono { font-family: var(--mono); }
.quote { font-family: var(--serif); font-size: 104px; line-height: 1.06; letter-spacing: -.02em; }
.quote::before { content: "“"; } .quote::after { content: "”"; }
.attr { font-family: var(--mono); font-size: 24px; letter-spacing: .16em; text-transform: uppercase; margin-top: 44px; opacity: .75; }

/* fragments */
.frag { opacity: 0; transform: translateY(18px); transition: opacity .4s ease, transform .4s ease; }
.frag.on { opacity: 1; transform: none; }

/* ---------- layouts ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 90px; align-items: center; }
.split.wide-img { grid-template-columns: .85fr 1.15fr; }
.photo { width: 100%; height: 720px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); display: block; }
.photo.contain { object-fit: contain; background: var(--surface); }
.shot { width: 100%; max-height: 760px; object-fit: contain; object-position: top; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.6); display: block; }
.paper .shot, .paper .photo { border-color: var(--fs-border); box-shadow: 0 30px 80px rgba(10,10,10,.18); }

/* full-bleed photo slide */
.slide.bleed { padding: 0; justify-content: flex-end; }
.slide.bleed .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide.bleed .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.92) 100%); }
.slide.bleed .inner { position: relative; padding: 0 130px 130px; }

/* tungsten / monitor glow (avi.nyc motif) */
.glow::selection { background: transparent; }
.slide.glow { background:
  radial-gradient(900px 600px at 12% 8%, rgba(199,75,122,.22), transparent 70%),
  radial-gradient(900px 700px at 92% 96%, rgba(0,0,239,.38), transparent 70%), #000; }

/* stat grid */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid currentColor; margin-top: 70px; }
.stat { padding: 40px 36px 0 0; border-right: 1px solid rgba(128,128,128,.4); padding-left: 36px; }
.stat:first-child { padding-left: 0; } .stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--serif); font-weight: 300; font-size: 132px; letter-spacing: -.03em; line-height: 1; }
.stat span { display: block; font-family: var(--mono); font-size: 22px; letter-spacing: .12em; text-transform: uppercase; margin-top: 22px; line-height: 1.4; opacity: .8; }

/* three-times ledger */
.ledger { margin-top: 56px; border-top: 2px solid #fff; }
.ledger .row { display: grid; grid-template-columns: 110px 1fr auto; gap: 40px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,.3); }
.ledger .n { font-family: var(--mono); font-size: 26px; letter-spacing: .14em; opacity: .7; }
.ledger .what { font-size: 48px; font-weight: 500; }
.ledger .what small { display: block; font-size: 28px; font-weight: 400; opacity: .75; margin-top: 8px; }
.ledger .res { font-family: var(--serif); font-size: 60px; letter-spacing: -.02em; white-space: nowrap; }

/* terminal */
.term { background: #080808; border: 1px solid var(--line); border-radius: 8px; font-family: var(--mono); font-size: 34px; line-height: 1.6; padding: 44px 50px; margin-top: 56px; max-width: 1500px; }
.term .bar { display: flex; gap: 12px; margin-bottom: 28px; }
.term .bar i { width: 16px; height: 16px; border-radius: 50%; background: #333; }
.term .err { color: #ff6b81; } .term .ok { color: var(--cyan); } .term .cm { color: #666; }

/* project grid */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 60px; }
.card { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; height: 300px; object-fit: cover; object-position: top; display: block; border-bottom: 1px solid var(--line); background: #151515; }
.card .ph { height: 300px; display: grid; place-items: center; font-family: var(--serif); font-size: 110px; border-bottom: 1px solid var(--line); }
.card .body { padding: 28px 30px 34px; }
.card h3 { font-family: var(--serif); font-weight: 300; font-size: 44px; letter-spacing: -.02em; }
.card p { font-size: 25px; line-height: 1.35; color: var(--dim); margin-top: 12px; }
.card .url { font-family: var(--mono); font-size: 19px; letter-spacing: .08em; color: var(--cyan); margin-top: 18px; display: block; }

/* grow loop */
.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 70px; border-top: 2px solid var(--near-black); }
.loop div { padding: 36px 34px 0; border-right: 1px solid var(--fs-border); }
.loop div:first-child { padding-left: 0; } .loop div:last-child { border-right: 0; }
.loop .k { font-family: var(--mono); font-size: 22px; letter-spacing: .16em; color: var(--blue); }
.loop h3 { font-family: var(--geist); font-weight: 700; font-size: 64px; letter-spacing: -.03em; margin-top: 14px; }
.loop p { font-size: 28px; line-height: 1.35; color: var(--fs-gray); margin-top: 14px; }
.step-num { font-family: var(--mono); font-size: 26px; letter-spacing: .18em; color: var(--blue); text-transform: uppercase; margin-bottom: 28px; }
.paper h2 { font-family: var(--geist); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.paper h2 .serif { font-weight: 300; letter-spacing: -.02em; }
.paper p.lead { color: var(--fs-gray); }

/* list */
.list { list-style: none; margin-top: 50px; border-top: 2px solid currentColor; }
.list li { font-size: 46px; padding: 28px 0; border-bottom: 1px solid rgba(128,128,128,.4); display: grid; grid-template-columns: 90px 1fr; align-items: baseline; }
.list li i { font-style: normal; font-family: var(--mono); font-size: 24px; letter-spacing: .14em; color: var(--burgundy); }
.paper .list li i, .blue .list li i { color: inherit; opacity: .6; }

/* QR */
.qr { width: 520px; height: 520px; background: #fff; padding: 28px; border-radius: 6px; }
.qr img { width: 100%; height: 100%; display: block; }
.url-big { font-family: var(--mono); font-size: 44px; letter-spacing: .02em; margin-top: 34px; }

/* progress bar */
#progress { position: fixed; left: 0; bottom: 0; height: 4px; background: var(--blue); width: 0; transition: width .3s ease; z-index: 50; }

/* ---------- presenter view (?notes) ---------- */
body.presenter { overflow: hidden; background: #0a0a0a; }
body.presenter #viewport { inset: 20px auto auto 20px; width: 58vw; height: calc(58vw * 9 / 16); border: 1px solid #2a2a2a; }
body.presenter #progress { display: none; }
#presenter { display: none; }
body.presenter #presenter {
  display: grid; position: fixed; inset: 0; pointer-events: none;
  grid-template-columns: 58vw 1fr; grid-template-rows: calc(58vw * 9 / 16) 1fr; gap: 20px; padding: 20px;
  font-family: var(--geist);
}
#presenter > * { pointer-events: auto; }
#p-side { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 18px; min-height: 0; }
#p-meta { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); }
#p-timer { font-size: 54px; font-weight: 600; color: var(--cyan); cursor: pointer; }
#p-count { font-size: 22px; color: var(--dim); letter-spacing: .1em; }
#p-notes { flex: 1; overflow: auto; font-size: 25px; line-height: 1.5; background: #111; border: 1px solid #2a2a2a; border-radius: 6px; padding: 26px 30px; }
#p-notes p { margin-bottom: 14px; } #p-notes b { color: var(--amber); }
#p-next { grid-column: 1; grid-row: 2; font-family: var(--mono); color: var(--dim); font-size: 20px; letter-spacing: .1em; text-transform: uppercase; }
#p-next strong { display: block; color: #fff; font-family: var(--serif); font-weight: 300; font-size: 44px; letter-spacing: -.02em; text-transform: none; margin-top: 10px; }
#p-next small { display: block; margin-top: 18px; font-size: 16px; text-transform: none; letter-spacing: 0; }

/* fixes after first visual pass */
.hl { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.paper h2 { line-height: 1.14; }
.photo.auto { height: auto; object-fit: contain; }
.slide.hero .bg { left: auto; right: 0; width: 62%; object-position: 30% center; }
.slide.hero .scrim { background: linear-gradient(90deg, #000 38%, rgba(0,0,0,.75) 52%, rgba(0,0,0,.1) 80%), linear-gradient(180deg, transparent 60%, rgba(0,0,0,.8) 100%); }
.slide.hero { justify-content: center; }
.slide.hero .inner { padding: 0 130px; max-width: 1250px; }
.slide.hero h1.huge { font-size: 170px; }
.slide.hero h1 { font-size: 130px; }
.stat b { font-size: 104px; }

/* ---------- speaker remote (/speaker on a phone) ---------- */
#speaker { display: none; }
body.speaker #viewport, body.speaker #progress { display: none; }
body.speaker #speaker {
  display: flex; flex-direction: column; gap: 14px; position: fixed; inset: 0; height: 100dvh;
  padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); background: #0a0a0a;
  font-family: var(--geist); touch-action: manipulation; -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent; cursor: pointer;
}
#speaker header { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); }
#s-timer { font-size: 34px; font-weight: 600; color: var(--cyan); font-variant-numeric: tabular-nums; }
#s-count { font-size: 17px; color: var(--dim); letter-spacing: .08em; }
#s-status { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
#s-status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; background: currentColor; }
#s-status.ok { color: var(--cyan); } #s-status.bad { color: #ff6b81; }
#s-title { font-family: var(--serif); font-weight: 300; font-size: 30px; letter-spacing: -.02em; line-height: 1.1; }
#s-notes { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; font-size: 21px; line-height: 1.45; background: #111; border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; }
#s-notes p { margin-bottom: 12px; } #s-notes b { color: var(--amber); }
#speaker footer { display: flex; align-items: center; gap: 16px; }
#s-prev { font: 600 17px var(--geist); color: #fff; background: #1a1a1a; border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; min-width: 96px; touch-action: manipulation; }
#s-prev:active { background: #2a2a2a; }
#s-next { flex: 1; min-width: 0; font-family: var(--mono); font-size: 14px; color: var(--dim); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#s-next b { color: #fff; font-weight: 600; }
