﻿/* robin.sql — "film strip" theme
   Off-white grainy paper, torn black & white panels, floating blue pill bars,
   a hand-drawn marker font for UI and a bold grotesk for headings. */
:root {
  --paper: #f4f3ef;
  --white: #ffffff;
  --ink: #121212;
  --ink-2: rgba(18, 18, 18, .72);
  --ink-3: rgba(18, 18, 18, .5);
  --blue: #2c68db;
  --blue-d: #1f52b5;
  --blue-soft: rgba(44, 104, 219, .14);
  --film: #1b1b1b;
  --hand: "Gochi Hand", "Segoe Print", cursive;
  --head: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --body: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
/* moving film grain over the whole page, like the reference:
   a grey noise tile at low opacity that jumps around a few times a second */
body::after {
  content: ""; position: fixed; inset: -120px; z-index: 30000; pointer-events: none;
  /* high-contrast black/white specks, so the grain actually reads on light paper */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='3.2' intercept='-1.1'/%3E%3CfeFuncG type='linear' slope='3.2' intercept='-1.1'/%3E%3CfeFuncB type='linear' slope='3.2' intercept='-1.1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: .117;
  animation: grain .9s steps(1) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  12%  { transform: translate(-47px, 31px); }
  25%  { transform: translate(63px, -22px); }
  37%  { transform: translate(-18px, -71px); }
  50%  { transform: translate(84px, 52px); }
  62%  { transform: translate(-76px, 9px); }
  75%  { transform: translate(28px, 88px); }
  87%  { transform: translate(-59px, -40px); }
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--blue); color: var(--white); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- ANNOUNCEMENT ---------- */
.announce {
  text-align: center; padding: 8px 12px;
  font-family: var(--head); font-weight: 800; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); border-bottom: 1px solid rgba(18,18,18,.08);
}

/* ---------- BLUE PILL BARS ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 18px;
  background: var(--blue); color: var(--white);
  border-radius: var(--radius); padding: 9px 18px;
  font-family: var(--hand); font-size: 16px; letter-spacing: .05em; line-height: 1.15; text-transform: uppercase;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.pill a { color: var(--white); transition: opacity .15s; white-space: nowrap; }
.pill a:hover { opacity: .7; }
.pill .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--white); flex: none; }
.pill.btn { transition: background .15s, transform .15s; }
.pill.btn:hover { background: var(--blue-d); transform: translateY(-1px); opacity: 1; }
.pill-group { display: flex; gap: 8px; }

/* ---------- STAGE (torn photo panels) ---------- */
.stage {
  position: relative; margin: 0 8px;
  height: calc(100vh - 42px); min-height: 560px;
  display: flex; background: var(--paper); overflow: hidden;
}
.stage.short { height: clamp(340px, 52vh, 480px); min-height: 0; }

.panel {
  position: relative; flex: 1 1 0; min-width: 0;
  display: grid; place-items: center; overflow: hidden;
  background: var(--film); color: var(--white);
  margin-left: -14px; /* panels overlap so the torn edges meet */
  transition: flex-grow .5s cubic-bezier(.2,.8,.2,1);
}
.panel:first-child { margin-left: 0; }
.panel .bg {
  position: absolute; inset: -4%;
  transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .5s;
  filter: grayscale(1) contrast(1.1) brightness(.78);
}
.panel .bg::before, .panel .bg::after { content: ""; position: absolute; inset: 0; }
/* film grain on every panel */
.panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain); opacity: .45; mix-blend-mode: overlay;
}
.panel .ghost {
  position: absolute; font-family: var(--head); font-weight: 900; line-height: .85;
  color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.18);
  white-space: pre; pointer-events: none; user-select: none;
}
.panel .label {
  position: relative; z-index: 2; text-align: center;
  font-family: var(--head); font-weight: 800; letter-spacing: .01em; text-transform: uppercase;
  font-size: clamp(26px, 3.2vw, 46px); line-height: 1; color: var(--white);
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.panel .label small {
  display: block; margin-top: 14px;
  font-family: var(--hand); font-weight: 400; font-size: 19px; text-transform: none; letter-spacing: .03em;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.panel:hover { flex-grow: 1.35; }
.panel:hover .bg { transform: scale(1.06); filter: grayscale(1) contrast(1.15) brightness(.95); }
.panel:hover .label small { opacity: 1; transform: none; }

/* panel "photos": monochrome scenes built in CSS (swap for real photos with --photo) */
.p-analyst .bg {
  background:
    var(--photo, none) center / cover,
    radial-gradient(ellipse at 30% 30%, #8d8d8d 0%, #3a3a3a 45%, #0f0f0f 100%);
}
.p-analyst .bg::before { /* bar chart */
  background:
    linear-gradient(#d9d9d9, #d9d9d9) 18% 78% / 9% 34% no-repeat,
    linear-gradient(#bdbdbd, #bdbdbd) 32% 78% / 9% 52% no-repeat,
    linear-gradient(#e8e8e8, #e8e8e8) 46% 78% / 9% 24% no-repeat,
    linear-gradient(#cfcfcf, #cfcfcf) 60% 78% / 9% 64% no-repeat,
    linear-gradient(#a8a8a8, #a8a8a8) 74% 78% / 9% 44% no-repeat;
  opacity: .32; filter: blur(1.5px);
}
.p-analyst .bg::after { background: radial-gradient(circle, rgba(255,255,255,.22) 1.2px, transparent 1.6px) 0 0 / 9px 9px; opacity: .5; }

.p-engineer .bg {
  background:
    var(--photo, none) center / cover,
    linear-gradient(160deg, #5e5e5e 0%, #232323 55%, #0b0b0b 100%);
}
.p-engineer .bg::before { /* pipes */
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.16) 46px 58px, transparent 58px 120px),
    repeating-linear-gradient(0deg, transparent 0 140px, rgba(255,255,255,.12) 140px 152px);
  transform: skewY(-12deg); filter: blur(1px);
}
.p-engineer .bg::after { background: radial-gradient(ellipse at 70% 20%, rgba(255,255,255,.35), transparent 55%); }

.p-ai .bg {
  background:
    var(--photo, none) center / cover,
    radial-gradient(circle at 60% 45%, #9a9a9a 0%, #444 35%, #121212 75%);
}
.p-ai .bg::before { /* network dots */
  background:
    radial-gradient(circle, rgba(255,255,255,.5) 2px, transparent 2.6px) 0 0 / 54px 54px,
    radial-gradient(circle, rgba(255,255,255,.25) 1.4px, transparent 2px) 27px 27px / 54px 54px;
  opacity: .55; filter: blur(.6px);
  -webkit-mask-image: radial-gradient(circle at 60% 45%, #000 10%, transparent 70%);
          mask-image: radial-gradient(circle at 60% 45%, #000 10%, transparent 70%);
}
.p-ai .bg::after { background: repeating-radial-gradient(circle at 60% 45%, transparent 0 38px, rgba(255,255,255,.07) 38px 40px); }

.p-list .bg {
  background:
    var(--photo, none) center / cover,
    linear-gradient(200deg, #777 0%, #2a2a2a 50%, #0d0d0d 100%);
}
.p-list .bg::before { /* ruled paper */
  background: repeating-linear-gradient(180deg, transparent 0 30px, rgba(255,255,255,.14) 30px 32px);
  transform: rotate(-8deg) scale(1.3); filter: blur(.8px);
}

/* floating pills over the stage */
.float { position: absolute; z-index: 5; }
.float.tl { top: 22px; left: 22px; }
.float.tc { top: 22px; left: 50%; transform: translateX(-50%); }
.float.tr { top: 22px; right: 22px; }
.float.bl { bottom: 22px; left: 22px; }
.float.br { bottom: 22px; right: 22px; }
.logo {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px; color: var(--white);
  font-family: var(--head); font-weight: 800; font-size: 13px; letter-spacing: .02em;
}
.logo .mark {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); color: var(--ink);
  font-family: var(--head); font-weight: 900; font-size: 21px; line-height: 1; letter-spacing: -.04em;
}

/* stage title (resources page) */
.stage-title { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; pointer-events: none; text-align: center; padding: 0 20px; }
.stage-title h1 {
  margin: 0; color: var(--white); text-transform: uppercase;
  font-family: var(--head); font-weight: 800; font-size: clamp(38px, 7vw, 92px); line-height: .95; letter-spacing: -.01em;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
}
.stage-title p { margin: 16px 0 0; }
.stage-title .pill { pointer-events: auto; }

/* ---------- LETTER ---------- */
.letter-zone { padding: clamp(60px, 9vw, 110px) 0 40px; }
.kicker {
  display: flex; justify-content: center; margin-bottom: 28px;
}
.letter {
  position: relative; max-width: 720px; margin: 0 auto;
  background: var(--white); border-radius: var(--radius);
  padding: 52px clamp(24px, 6vw, 64px) 46px;
  color: var(--blue);
  box-shadow: 0 1px 0 rgba(18,18,18,.06), 0 18px 40px -24px rgba(18,18,18,.35);
}
.letter .date { font-family: var(--head); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-align: right; margin: 0 0 26px; opacity: .7; }
.letter .salute { font-family: var(--hand); font-size: 34px; line-height: 1.15; margin: 0 0 18px; }
.letter p { margin: 0 0 16px; font-size: 18px; line-height: 1.7; }
.letter .hl { background: var(--blue); color: var(--white); padding: 1px 6px; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.letter .sign { font-family: var(--hand); font-size: 40px; line-height: 1; margin: 26px 0 0; }
.letter .sign small { display: block; font-family: var(--head); font-weight: 800; font-size: 12px; letter-spacing: .1em; margin-top: 10px; opacity: .7; }
.stamp {
  position: absolute; right: clamp(18px, 4vw, 40px); bottom: 38px;
  font-family: var(--hand); font-size: 18px; line-height: 1.1; text-align: center;
  color: var(--white); background: var(--blue); border-radius: var(--radius); padding: 10px 14px;
  transform: rotate(-6deg);
}

/* ---------- SECTION HEADS ---------- */
.chapter { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.chapter .pill { font-size: 18px; padding: 8px 16px; gap: 12px; }
.chapter .n { font-family: var(--hand); font-size: 17px; color: var(--blue); }
.chapter .line { flex: 1; height: 0; border-top: 2px dashed rgba(44,104,219,.35); }

/* ---------- RESOURCES ---------- */
.filters {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244,243,239,.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 14px 0;
}
.filters .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; padding: 5px; background: var(--blue); border-radius: var(--radius); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  font-family: var(--hand); font-size: 17px; letter-spacing: .04em; white-space: nowrap; cursor: pointer;
  padding: 7px 14px; border: 0; border-radius: 6px; background: transparent; color: var(--white);
  transition: background .15s, color .15s;
}
.tabs button:hover { background: rgba(255,255,255,.14); }
.tabs button.on { background: var(--white); color: var(--blue); }
.tabs .c { font-family: var(--head); font-weight: 800; font-size: 11px; margin-left: 6px; opacity: .7; }
.search { position: relative; flex: 0 1 300px; }
.search input {
  width: 100%; font-family: var(--hand); font-size: 18px; letter-spacing: .04em; color: var(--blue);
  background: var(--white); border: 2px solid var(--blue); border-radius: var(--radius);
  padding: 9px 14px 9px 38px; -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: rgba(44,104,219,.55); }
.search input:focus { outline: 0; box-shadow: 0 0 0 4px var(--blue-soft); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--blue); }

.sheet-area { padding: 10px 0 100px; }
.group { padding-top: 46px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  background: var(--white); color: var(--ink);
  padding: 20px 20px 16px; border-radius: var(--radius);
  border: 1.5px solid rgba(44,104,219,.18);
  transition: background .2s, color .2s, border-color .2s, transform .2s cubic-bezier(.2,.8,.2,1);
}
.card:hover { background: var(--blue); border-color: var(--blue); color: var(--white); transform: translateY(-3px); }
.card .top { display: flex; align-items: center; gap: 10px; }
.card .fav {
  width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--paper);
  font-family: var(--head); font-weight: 800; font-size: 13px; color: var(--ink);
}
.card .fav img { width: 18px; height: 18px; filter: grayscale(1); }
.card .host { font-family: var(--head); font-weight: 800; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); transition: color .2s; }
.card:hover .host { color: rgba(255,255,255,.8); }
.card .name { font-family: var(--head); font-weight: 800; font-size: 21px; letter-spacing: -.01em; line-height: 1.15; margin-top: 4px; }
.card .desc { font-size: 15.5px; color: var(--ink-2); line-height: 1.5; flex: 1; transition: color .2s; }
.card:hover .desc { color: rgba(255,255,255,.88); }
.card .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.stamps { display: flex; gap: 5px; flex-wrap: wrap; }
.st {
  font-family: var(--hand); font-size: 14px; letter-spacing: .05em;
  background: var(--blue-soft); color: var(--blue); border-radius: 5px; padding: 3px 8px; transition: background .2s, color .2s;
}
.card:hover .st { background: rgba(255,255,255,.18); color: var(--white); }
.card .open {
  font-family: var(--hand); font-size: 16px; letter-spacing: .04em; white-space: nowrap;
  background: var(--blue); color: var(--white); border-radius: 6px; padding: 5px 11px; transition: background .2s, color .2s;
}
.card:hover .open { background: var(--white); color: var(--blue); }
.empty { text-align: center; padding: 70px 0; font-family: var(--hand); font-size: 28px; color: var(--blue); }

/* ---------- FOOTER ---------- */
.foot-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 0 22px 22px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 820px) {
  .float.tc { display: none; }
  .stage { flex-direction: column; height: auto; min-height: 0; }
  .stage .panel { flex: none; height: 30vh; min-height: 190px; margin-left: 0; margin-top: -12px; }
  .stage .panel:first-child { margin-top: 0; height: calc(30vh + 70px); padding-top: 70px; }
  .stage .panel:last-child { height: calc(30vh + 64px); padding-bottom: 64px; }
  .panel:hover { flex-grow: 0; }
  .panel .label small { opacity: 1; transform: none; }
  .stage.short { height: 380px; flex-direction: row; }
  .stage.short .panel { flex: 1 1 0; height: auto; margin-top: 0; margin-left: -12px; padding: 0; }
  .stage.short .panel:first-child { margin-left: 0; height: auto; padding: 0; }
  .stage.short .panel:last-child { height: auto; padding: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 14px; }
  .float.tl { top: 14px; left: 14px; }
  .float.tr { top: 14px; right: 14px; }
  .float.bl { bottom: 14px; left: 14px; }
  .float.br { display: none; }
  .pill { gap: 12px; padding: 8px 13px; font-size: 15px; }
  .logo .mark { width: 40px; height: 40px; font-size: 19px; }
  .stamp { position: static; display: inline-block; margin-top: 22px; }
  .letter p { font-size: 17px; }
  .grid { grid-template-columns: 1fr; }
  .search { flex: 1 1 100%; order: -1; }
  .foot-bar { justify-content: center; }
}

/* Gochi Hand in capitals on the UI, like the reference */
.tabs button, .search input, .st, .card .open, .chapter .n, .stamp, .panel .label small, .empty { text-transform: uppercase; }
.tabs button { font-size: 16px; }
.search input::placeholder { text-transform: uppercase; }