/* selinkurt.com / SIGNAL project note
   A deck, not a card page: each screen is one slide, numbered, with a lab-notebook
   feel. Shares the site's tokens (paper, ink, indigo, teal, Fraunces/Inter) so it
   still belongs to the same site, but the layout is its own. */

.deck {
  --rail: 74px;
}

/* faint paper grid, only on this page */
body.deck-page {
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px);
  background-size: 88px 88px;
  background-attachment: fixed;
}

html.dark body.deck-page {
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px);
}

/* progress bar */
.progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 2px;
  width: 0;
  background: var(--grad);
  z-index: 20;
}

/* right-hand slide rail */
.rail {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rail a {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 20%, transparent);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rail a:hover { background: var(--accent); transform: scale(1.4); }
.rail a.on { background: var(--accent); transform: scale(1.4); }

@media (max-width: 900px) { .rail { display: none; } }

/* slides */
.s {
  position: relative;
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 62px;
}

.s:last-of-type { border-bottom: 0; }

.s-inner { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

.s-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 26%, transparent);
  margin: 0 0 26px;
  letter-spacing: -0.02em;
}

.s-kicker {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.s h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  max-width: 20ch;
}

.s-lead {
  font-size: 1.12rem;
  max-width: 62ch;
  margin: 0 0 18px;
}

.s p { max-width: 66ch; }
.s p.muted { color: var(--muted); }

/* cover */
.cover {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 60px;
}

.cover-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.cover .s-num { -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 45%, transparent); }

.cover h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.cover .tag {
  font-size: 1.18rem;
  max-width: 30ch;
  margin: 0 0 26px;
}

.status-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  color: var(--muted);
  background: var(--surface);
}

.pill .led {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22A06B;
  box-shadow: 0 0 0 3px color-mix(in srgb, #22A06B 20%, transparent);
}

.pill.plan { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.pill.plan .led { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }

.cover-note {
  color: var(--muted);
  font-size: 0.86rem;
  max-width: 40ch;
}

/* phone frame used on cover and feature slide */
.phone {
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(28, 31, 46, 0.14);
  padding: 10px;
  max-width: 300px;
  margin: 0 auto;
}

html.dark .phone { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }

.phone-screen {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  aspect-ratio: 9 / 18.6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone-screen .ph-cap {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0 22px;
  text-align: center;
  line-height: 1.7;
}

.phone-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* two column blocks */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: start;
}

@media (max-width: 860px) {
  .cover-grid, .split { grid-template-columns: 1fr; }
  .phone { max-width: 260px; }
}

/* architecture stack */
.stack { display: flex; flex-direction: column; gap: 0; margin: 34px 0 0; }

.layer {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 22px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
}

.layer + .layer { margin-top: 34px; }

.layer + .layer::before {
  content: "";
  position: absolute;
  top: -35px;
  left: 66px;
  width: 1px;
  height: 34px;
  background: color-mix(in srgb, var(--ink) 42%, transparent);
}

.layer + .layer::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 61px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid color-mix(in srgb, var(--ink) 48%, transparent);
}

.layer .ltag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.layer .lname {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.06rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.layer .ldesc { color: var(--muted); font-size: 0.87rem; margin: 0; line-height: 1.55; }

.layer.hot { border-color: color-mix(in srgb, var(--accent) 52%, var(--line)); }
.layer.hot .lname { color: var(--accent); }

html.dark .layer.hot .lname { color: #A5B4FC; }
html.dark .layer.hot { border-color: #3E4C8C; }

@media (max-width: 700px) {
  .layer { grid-template-columns: 1fr; gap: 6px; }
  .layer + .layer::before, .layer + .layer::after { left: 20px; }
}

/* side channels under the stack */
.channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.channel {
  border: 1px dashed color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: 12px;
  padding: 13px 15px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.channel .ct { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 5px; }
.channel .cd { color: var(--muted); font-size: 0.83rem; margin: 0; line-height: 1.5; }

@media (max-width: 860px) { .channels { grid-template-columns: 1fr; } }

/* feature grid */
.feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 30px;
}

.feat { background: var(--surface); padding: 20px 20px 22px; }

.feat .fn {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin: 0 0 8px;
}

.feat h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.feat p { color: var(--muted); font-size: 0.86rem; margin: 0; line-height: 1.55; }

@media (max-width: 900px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .feats { grid-template-columns: 1fr; } }

/* numbered design rules */
.rules { margin: 30px 0 0; padding: 0; list-style: none; counter-reset: r; }

.rules li {
  counter-increment: r;
  position: relative;
  padding: 0 0 20px 46px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.rules li:last-child { border-bottom: 0; margin-bottom: 0; }

.rules li::before {
  content: counter(r, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.rules .rt { font-weight: 600; margin: 0 0 4px; }
.rules .rd { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* tokens */
.tokens { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 6px; }

.token {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px 8px 8px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.token i { width: 22px; height: 22px; border-radius: 6px; display: block; border: 1px solid rgba(0,0,0,0.08); }

/* limits list */
.limits { margin: 24px 0 0; padding: 0; list-style: none; }

.limits li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.limits li:last-child { border-bottom: 0; }
.limits .mk { color: #B4541F; font-family: var(--mono); }
html.dark .limits .mk { color: #F0A46B; }
.limits b { color: var(--ink); font-weight: 600; }

/* roadmap */
.road { margin: 34px 0 0; display: grid; gap: 0; }

.erow {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.erow:last-child { border-bottom: 1px solid var(--line); }

.ewhen { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--muted); padding-top: 3px; }
.ewhat { font-weight: 600; margin: 0 0 4px; }
.ewhy { color: var(--muted); font-size: 0.9rem; margin: 0; }

.erow.now .ewhen { color: #22A06B; }
.erow.target { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.erow.target .ewhen { color: var(--accent); font-weight: 600; }

/* platform lanes */
.lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }

.lane {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface);
}

.lane .lh { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.lane .lv { font-family: "Fraunces", Georgia, serif; font-size: 1.05rem; font-weight: 600; margin: 0 0 6px; }
.lane .ld { color: var(--muted); font-size: 0.84rem; margin: 0; line-height: 1.5; }

@media (max-width: 760px) { .lanes { grid-template-columns: 1fr; } .erow { grid-template-columns: 1fr; gap: 6px; } }

/* gallery: three phone frames in a row, then one wide desktop frame */
.gallery { margin-top: 30px; }

.gallery-phones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-wide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

.shot-slot {
  position: relative;
  margin: 0;
  border: 1px dashed color-mix(in srgb, var(--ink) 26%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 14px;
}

.shot-slot.wide { aspect-ratio: 16 / 9; }

/* filled slots: the photo is the content, caption sits under it */
.shot-slot.filled {
  padding: 0;
  border-style: solid;
  border-color: var(--line);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.shot-slot.filled img {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
  display: block;
}

.shot-slot.filled figcaption {
  position: static;
  flex: 0 0 auto;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.shot-slot .sl {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.shot-slot .sd { color: var(--muted); font-size: 0.76rem; line-height: 1.5; max-width: 24ch; }

.shot-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }

.shot-slot figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  font-family: var(--mono);
  font-size: 0.63rem;
  color: var(--muted);
}

@media (max-width: 760px) { .gallery-phones { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .gallery-phones { grid-template-columns: 1fr; } }

/* closing */
.close-quote {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-style: italic;
  line-height: 1.4;
  margin: 0 0 16px;
  max-width: 24ch;
}

.close-note { color: var(--muted); font-size: 0.9rem; max-width: 56ch; }

/* audio slide: things a screenshot cannot carry */
.listen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.listen-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 18px 18px 20px;
}

.wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 34px;
  margin: 0 0 14px;
}

.wave i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--accent) 70%, transparent);
}

.listen-card:nth-child(2) .wave i { background: color-mix(in srgb, var(--accent2) 70%, transparent); }
.listen-card:nth-child(3) .wave i { background: color-mix(in srgb, #B4541F 60%, transparent); }
html.dark .listen-card:nth-child(3) .wave i { background: color-mix(in srgb, #F0A46B 60%, transparent); }

.listen-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.listen-card p { color: var(--muted); font-size: 0.86rem; margin: 0 0 10px; line-height: 1.55; }

.listen-card .sayline {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding: 2px 0 2px 9px;
  line-height: 1.6;
}

@media (max-width: 860px) { .listen { grid-template-columns: 1fr; } }

/* spoken exchange transcripts */
.xscript { margin: 30px 0 0; border-top: 1px solid var(--line); }

.xrow {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.xwho {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 4px;
}

.xsay { font-family: "Fraunces", Georgia, serif; font-size: 1.02rem; font-style: italic; margin: 0 0 5px; }
.xdo { color: var(--muted); font-size: 0.86rem; margin: 0; }

@media (max-width: 620px) { .xrow { grid-template-columns: 1fr; gap: 6px; } }

/* clipboard, one snippet between two devices */
.clip {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 22px 24px;
  margin-top: 22px;
}

.clip .side .cs {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}

.clip .side p { margin: 0; font-size: 0.9rem; }
.clip .mid { text-align: center; color: var(--muted); font-family: var(--mono); font-size: 1.1rem; }

.clip .caveat {
  grid-column: 1 / -1;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 700px) {
  .clip { grid-template-columns: 1fr; text-align: left; }
  .clip .mid { transform: rotate(90deg); }
}

/* story slides: one or two pictures beside the explanation */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  margin-top: 6px;
}

.story .copy p { max-width: 48ch; }
.story.rev .media { order: 1; }
.story.rev .copy { order: 2; }

.story h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.06rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.story ul { margin: 18px 0 0; padding: 0 0 0 18px; }
.story li { color: var(--muted); font-size: 0.9rem; margin: 0 0 8px; }
.story li b { color: var(--ink); font-weight: 600; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.trio { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trio .wide { grid-column: 1 / -1; }

.laptop {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(28, 31, 46, 0.12);
}

html.dark .laptop { box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); }

.laptop img { display: block; width: 100%; height: auto; }

.media-cap {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  margin: 9px 0 0;
}

.phone.big { max-width: 320px; }
.phone.sm { max-width: 252px; }

/* click any screenshot to see it full size */
.phone-screen img, .laptop img { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(8, 10, 18, 0.93);
  cursor: zoom-out;
}

.lightbox.on { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }

@media (max-width: 880px) {
  .story { grid-template-columns: 1fr; gap: 30px; }
  .story.rev .media { order: 0; }
  .story.rev .copy { order: 0; }
}

/* back to top */
.totop {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 9;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  height: 36px;
  width: 38px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, color 0.15s ease, border-color 0.15s ease;
}

.totop.show { opacity: 1; pointer-events: auto; }
.totop:hover { color: var(--ink); border-color: var(--accent); }

/* next-slide hint at the bottom of each slide */
.s-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.s-next:hover { color: var(--accent); }
