/* hankelsner.com — field-built showcase
   System: "label stock" — the page reads like output from Hank's own print pipeline.
   Paper ground, ink type, safety-orange used only as the printed registration color. */

@import url("../fonts/fonts.css");

:root {
  --paper: #fcfcfa;
  --ink: #191d21;
  --muted: #5a6167;
  --accent: #e4570a;
  --line: #e5e3de;
  --band: #f4f3ef;
  --label: #ffffff;
  --shadow: 0 1px 2px rgba(25, 29, 33, 0.07), 0 4px 14px rgba(25, 29, 33, 0.05);
  --disp: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "Overpass Mono", "IBM Plex Mono", monospace;
  --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- calibration strip: the section signature ---------- */
.calstrip {
  display: flex; align-items: flex-end; gap: 16px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px; margin-bottom: 34px;
}
.calstrip .ticks {
  flex: 1; height: 14px; align-self: flex-end;
  background:
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 8px) left bottom / 100% 6px no-repeat,
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 40px) left bottom / 100% 14px no-repeat;
  opacity: 0.55;
}
.calstrip .code {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; color: var(--accent); white-space: nowrap;
}
.calstrip h2 {
  font-family: var(--disp); font-weight: 800; font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  letter-spacing: -0.015em; line-height: 1; white-space: nowrap;
}

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.wordmark { font-family: var(--disp); font-weight: 800; font-size: 1.02rem; letter-spacing: 0.02em; text-decoration: none; }
.wordmark em { font-style: normal; color: var(--accent); }
nav.main { display: flex; gap: 18px; margin-left: auto; }
nav.main a { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.07em; text-decoration: none; color: var(--muted); }
nav.main a:hover { color: var(--accent); }
.btn {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.07em;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  padding: 7px 14px; border-radius: 3px; cursor: pointer; text-decoration: none; display: inline-block;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 64px; }
.hero .eyebrow {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; color: var(--muted); margin-bottom: 22px;
}
.hero .eyebrow b { color: var(--accent); font-weight: 600; }
.hero h1 {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  line-height: 1.02; letter-spacing: -0.025em; max-width: 15ch;
}
.hero h1 .dot { color: var(--accent); }
.hero p.lede { max-width: 58ch; margin-top: 26px; font-size: 1.14rem; color: var(--muted); }
.hero .cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
section.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- build log ---------- */
#log .gatebar { margin-top: 26px; }
.entry {
  background: var(--label);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}
.entry > button {
  all: unset; display: grid; width: 100%; cursor: pointer; box-sizing: border-box;
  grid-template-columns: 110px 1fr auto; gap: 16px; align-items: baseline;
  padding: 15px 18px;
}
.entry > button:hover .t { color: var(--accent); }
.entry .d { font-family: var(--mono); font-size: 0.75rem; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.entry .t { font-family: var(--disp); font-weight: 700; font-size: 1.02rem; line-height: 1.35; letter-spacing: -0.01em; }
.entry .tags { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.06em; text-align: right; }
.entry .body {
  display: none; padding: 0 18px 16px 18px; color: var(--muted); font-size: 0.98rem;
  border-top: 1px dashed var(--line); padding-top: 13px; margin: 0 18px 16px; padding-left: 0; padding-right: 0;
}
.entry.open .body { display: block; }
.entry.open { border-left: 3px solid var(--accent); }
.gate {
  border: 1.5px dashed var(--line); border-radius: 4px; padding: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  color: var(--muted); font-size: 0.98rem;
}
.apps-strip { margin-top: 30px; display: none; }
.apps-strip.on { display: block; }
.apps-strip h3 { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 14px; }
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.apps-grid a {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 600; text-decoration: none;
  border: 1px solid var(--line); background: var(--label); border-radius: 3px;
  padding: 10px 12px; box-shadow: var(--shadow);
}
.apps-grid a:hover { border-color: var(--accent); }

/* ---------- toolkit ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.card {
  background: var(--label); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: var(--shadow); padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.card .prob { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); line-height: 1.55; }
.card .prob::before { content: "PROBLEM — "; color: var(--accent); font-weight: 600; letter-spacing: 0.08em; }
.card h3 { font-family: var(--disp); font-weight: 800; font-size: 1.18rem; letter-spacing: -0.01em; line-height: 1.25; }
.card .fix { color: var(--muted); font-size: 0.97rem; }
.card.hot { border-left: 3px solid var(--accent); }
.card .flag { font-family: var(--mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; color: var(--accent); }
.nb { white-space: nowrap; }

/* ---------- screens: dark contact sheet ---------- */
#screens { background: var(--ink); }
#screens .calstrip { border-bottom-color: var(--paper); }
#screens .calstrip h2 { color: var(--paper); }
#screens .calstrip .ticks {
  background:
    repeating-linear-gradient(to right, var(--paper) 0 1px, transparent 1px 8px) left bottom / 100% 6px no-repeat,
    repeating-linear-gradient(to right, var(--paper) 0 1px, transparent 1px 40px) left bottom / 100% 14px no-repeat;
}
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.shots figure {
  background: #22272c; border: 1px solid #343b42; border-radius: 4px; overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.shots figure:hover { transform: translateY(-3px); border-color: var(--accent); }
.shots a { display: block; cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 95; display: none;
  align-items: center; justify-content: center; padding: 30px;
  background: rgba(15, 18, 21, 0.93); cursor: zoom-out;
}
.lightbox.on { display: flex; }
.lightbox img {
  max-width: min(1500px, 100%); max-height: 100%; border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65); background: #fff;
}
.lb-close {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  background: transparent; border: 1.5px solid #aab3ba; color: #e8ecef;
  border-radius: 3px; padding: 8px 14px; cursor: pointer;
}
.lb-close:hover { border-color: var(--accent); color: var(--accent); }
.shots img { width: 100%; height: 380px; object-fit: cover; object-position: top; display: block; }
.shots figcaption {
  font-family: var(--mono); font-size: 0.75rem; color: #aab3ba; padding: 13px 16px; line-height: 1.6;
  border-top: 1px solid #343b42;
}
.shots figcaption b { color: var(--accent); font-weight: 600; letter-spacing: 0.08em; }
.shots figure.wide { grid-column: 1 / -1; }
.shots figure.wide img { height: auto; max-height: 640px; object-fit: contain; background: #fcfcfa; }
.shotnote { margin-top: 18px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: #78828a; }
#screens .subcal {
  display: flex; align-items: flex-end; gap: 16px; margin: 40px 0 20px;
  border-bottom: 1px solid #3c444c; padding-bottom: 8px;
}
#screens .subcal .code { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; color: var(--accent); white-space: nowrap; }
#screens .subcal .ticks {
  flex: 1; height: 10px; opacity: 0.4;
  background: repeating-linear-gradient(to right, #aab3ba 0 1px, transparent 1px 8px) left bottom / 100% 6px no-repeat;
}

/* ---------- platform receipt ---------- */
.receipt-wrap { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.2fr); gap: 44px; align-items: start; }
.receipt-wrap .intro h2 { font-family: var(--disp); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.1; }
.receipt-wrap .intro p { margin-top: 18px; color: var(--muted); max-width: 42ch; }
.receipt {
  background: var(--label); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow);
  font-family: var(--mono); font-size: 0.88rem; padding: 26px 26px 18px;
}
.receipt .rhead {
  font-weight: 600; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--muted);
  border-bottom: 1px dashed var(--line); padding-bottom: 12px; margin-bottom: 8px;
  display: flex; justify-content: space-between;
}
.receipt ul { list-style: none; }
.receipt li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); line-height: 1.5; }
.receipt li:last-child { border-bottom: none; }
.receipt li::before { content: "✓"; color: var(--accent); font-weight: 600; }
.receipt .rfoot { border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 12px; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted); }

/* ---------- hardware ---------- */
.hw { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.hw figure { background: var(--label); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); overflow: hidden; }
.hw img { width: 100%; height: 320px; object-fit: cover; display: block; }
.hw figcaption { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); padding: 12px 16px; line-height: 1.6; }
.hw figcaption b { color: var(--accent); font-weight: 600; letter-spacing: 0.08em; }
.hwnote {
  background: var(--label); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow);
  padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 10px; color: var(--muted);
}
.hwnote strong { color: var(--ink); }
.hwnote .hwtitle {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; color: var(--accent);
}

/* ---------- presentation cta ---------- */
.present-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  border: 2px solid var(--ink); border-radius: 4px; padding: 30px 32px; background: var(--label); box-shadow: var(--shadow);
}
.present-cta h2 { font-family: var(--disp); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.015em; }
.present-cta p { color: var(--muted); margin-top: 6px; max-width: 52ch; }

/* ---------- footer ---------- */
footer.site { border-top: 2px solid var(--ink); margin-top: 30px; padding: 40px 0 60px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; align-items: baseline; }
footer.site .who { font-family: var(--disp); font-weight: 800; font-size: 1.05rem; }
footer.site .mail { font-family: var(--mono); font-size: 0.95rem; }
footer.site nav { display: flex; gap: 18px; }
footer.site nav a { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); text-decoration: none; letter-spacing: 0.08em; }
footer.site nav a:hover { color: var(--accent); }

/* ---------- login modal ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(25, 29, 33, 0.45); z-index: 90;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-back.on { display: flex; }
.modal {
  background: var(--label); border-radius: 5px; box-shadow: 0 18px 60px rgba(0,0,0,0.25);
  width: min(400px, 100%); padding: 30px;
}
.modal h3 { font-family: var(--disp); font-weight: 800; font-size: 1.3rem; margin-bottom: 6px; }
.modal p.hint { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.modal label { display: block; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; color: var(--muted); margin: 14px 0 6px; }
.modal input {
  width: 100%; font-family: var(--mono); font-size: 0.95rem; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 3px; background: var(--paper); color: var(--ink);
}
.modal input:focus { border-color: var(--accent); outline: none; }
.modal .row { display: flex; gap: 12px; margin-top: 22px; align-items: center; }
.modal .err { color: #b3261e; font-size: 0.85rem; margin-top: 12px; display: none; }
.modal .err.on { display: block; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  nav.main { display: none; }
  .entry > button { grid-template-columns: 1fr; gap: 4px; }
  .entry .tags { text-align: left; }
  .receipt-wrap { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .calstrip h2 { white-space: normal; }
}

/* ==========================================================================
   LANDING  (index.html only — the short personal page + the two doors)
   Everything below is scoped to .landing or to landing-only classes, so
   work.html keeps using the rules above unchanged.
   ========================================================================== */

.landing .hero.intro { padding: 78px 0 22px; }
.landing .hero.intro p.lede { margin-top: 20px; max-width: 62ch; }
.landing .hero.intro p.lede:first-of-type { margin-top: 26px; }

/* ---------- the doors: the visual event of the page ---------- */
.doors-cue {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; color: var(--accent);
  padding-bottom: 10px; margin: 42px 0 22px;
  border-bottom: 2px solid var(--ink);
}

.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.door {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 330px; padding: 28px 30px 26px;
  border-radius: 4px; text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.door .code {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; color: var(--accent);
}
.door .dname {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.08; letter-spacing: -0.02em;
  max-width: 15ch;
}
.door .ddesc { font-size: 1rem; line-height: 1.6; max-width: 40ch; }
.door .dgo {
  margin-top: auto; padding-top: 20px;
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
}
.door .dgo em { font-style: normal; display: inline-block; transition: transform 0.15s ease; }
.door:hover .dgo em { transform: translateX(5px); }
.door:hover { transform: translateY(-3px); }

/* FOR WORK — paper and ink, the label-stock world behind it */
.door.work {
  background: var(--label); border: 2px solid var(--ink); color: var(--ink);
  box-shadow: var(--shadow);
}
.door.work .ddesc { color: var(--muted); }
.door.work .dgo { color: var(--accent); }
.door.work:hover { border-color: var(--accent); }
.door.work .dticks {
  position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
  background:
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 8px) left bottom / 100% 6px no-repeat,
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 40px) left bottom / 100% 12px no-repeat;
  opacity: 0.4;
}

/* FOR HOME — the lights-down theater room the dark page opens into */
.door.home {
  border: 2px solid #24282c; color: #f2f0ec;
  background:
    radial-gradient(78% 52% at 50% 108%, rgba(255, 122, 26, 0.20), transparent 72%),
    #121417;
  box-shadow: 0 1px 2px rgba(25, 29, 33, 0.10), 0 10px 30px rgba(25, 29, 33, 0.14);
}
.door.home .code { color: #ff7a1a; }
.door.home .ddesc { color: #9aa2a8; }
.door.home .dgo { color: #ff7a1a; }
.door.home:hover { border-color: #ff7a1a; }

/* ---------- closing pull-quote ---------- */
.pullquote {
  margin: 64px 0 10px; padding-top: 34px;
  border-top: 2px solid var(--ink);
}
.pullquote p {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(1.9rem, 5.4vw, 3.4rem);
  line-height: 1.12; letter-spacing: -0.025em; max-width: 20ch;
}
.pullquote .dot { color: var(--accent); }

@media (max-width: 760px) {
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 0; padding: 24px 22px 22px; }
  .landing .hero.intro { padding: 52px 0 14px; }
  .pullquote { margin-top: 48px; }
}

/* ---------- call button: the number is the brand — always visible, never hidden ---------- */
.btn.call {
  background: var(--accent); border-color: var(--accent); color: #fff;
  display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap;
  font-weight: 700; letter-spacing: 0.06em;
}
.btn.call:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.call .ico { font-size: 1.05em; align-self: center; }
.btn.call .num { font-weight: 800; font-size: 1.06em; letter-spacing: 0.03em; }
.btn.call .alt { font-weight: 700; opacity: 0.72; font-size: 0.9em; }

/* Below the nav breakpoint the bar wraps so the number still reads in full. */
@media (max-width: 760px) {
  header.site .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px 12px; }
  header.site .wrap > .wordmark { order: 1; }
  header.site .wrap > *:not(.wordmark):not(.call) { order: 2; margin-left: auto; }
  header.site .wrap > .btn.call { order: 3; width: 100%; justify-content: center; padding: 11px 14px; }
}
@media (max-width: 380px) { .btn.call { font-size: 0.74rem; } }

/* ---------- Hank Radio: on-air strip + explainer popup ---------- */
.radiobar {
  display: block; background: var(--ink); color: var(--paper);
  text-decoration: none; border-bottom: 1px solid var(--ink);
}
.radiobar .wrap {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  padding: 7px 24px; font-family: var(--mono); font-size: 0.72rem;
  font-weight: 600; letter-spacing: 0.14em;
}
.radiobar .dotlive {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(228, 87, 10, 0.7); animation: onair 2s infinite;
}
@keyframes onair {
  70% { box-shadow: 0 0 0 7px rgba(228, 87, 10, 0); }
  100% { box-shadow: 0 0 0 0 rgba(228, 87, 10, 0); }
}
.radiobar em { font-style: normal; color: var(--accent); }
.radiobar:hover { color: #fff; }
.radiobar:hover .go { text-decoration: underline; }
.modal.radio .rk {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; color: var(--accent); margin-bottom: 6px;
}
.modal.radio ul { list-style: none; margin: 14px 0 4px; }
.modal.radio li {
  display: flex; gap: 10px; padding: 7px 0; color: var(--muted);
  font-size: 0.95rem; border-bottom: 1px dashed var(--line); line-height: 1.5;
}
.modal.radio li:last-child { border-bottom: none; }
.modal.radio li::before { content: "▸"; color: var(--accent); }
.modal.radio .row { flex-wrap: wrap; }
@media (max-width: 520px) { .radiobar .wrap { letter-spacing: 0.08em; font-size: 0.66rem; } }

/* ---------- landing fixes ---------- */
/* The identity line is a list of whole phrases: each may wrap to its own line,
   but "OSI LAYER 1 SPECIALIST" must never break mid-phrase on a narrow screen. */
.hero .eyebrow .nb, .hero .eyebrow b.nb { white-space: nowrap; }
.hero .eyebrow .nb + .nb::before {
  content: " · "; color: var(--muted); white-space: pre;
}
.hero .eyebrow b.nb { color: var(--accent); }

/* The doors are links, but nothing about them said "press me". Give the cue a
   real button shell so the affordance is unmistakable. */
.door .dgo {
  align-self: flex-start;
  border: 1.5px solid currentColor; border-radius: 3px;
  padding: 9px 15px; margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
}
.door.home .dgo { background: var(--accent); border-color: var(--accent); color: #fff; }
.door:hover .dgo { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.door.home:hover .dgo { background: #fff; border-color: #fff; color: var(--accent); }
