/* Home: a split-flap departure board on top of a printed, paper-like page.
   Deliberately no gradients, glows, purple or icon cards. */
:root {
  --bg: #efebe2;          /* newsprint */
  --fg: #151412;          /* ink */
  --muted: #6d675d;
  --surface: #e4dfd3;
  --line: #cfc8b9;
  --accent: #e8420e;      /* signal vermilion */
  --accent-fg: #fff;
  --board: #121211;
  --flap: #1f1f1d;
  --flap-ink: #f4f1e8;
  --amber: #ffb000;
  --radius: 2px;
  --font: "Golos Text", "Segoe UI", Roboto, sans-serif;
  --mono: "Martian Mono", ui-monospace, Menlo, monospace;
  --max: 1160px;
}

body { font-size: 1.0625rem; }
::selection { background: var(--accent); color: #fff; }
a { color: var(--fg); }

.site-header, .site-footer { width: calc(100% - 32px); padding-inline: 0; }
.site-header { border-bottom: 1px solid var(--fg); }
.logo { font-family: var(--mono); font-weight: 700; letter-spacing: -.02em; font-size: .95rem; }
.nav a { color: var(--fg); border-radius: 0; }
.nav a:hover, .nav a[aria-current] { background: var(--fg); color: var(--bg); }
.nav .nav-cta { background: var(--accent); color: #fff; }

/* ---------- departure board ---------- */
.board {
  margin: 28px 0 0;
  padding: clamp(18px, 3vw, 32px);
  background: var(--board);
  color: var(--flap-ink);
  font-family: var(--mono);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px #000, 0 1px 0 #fff8;
}
.board-top { display: flex; justify-content: space-between; color: var(--amber); font-size: .8rem; letter-spacing: .04em; margin-bottom: 18px; }
.board-clock { font-variant-numeric: tabular-nums; }

.board-name { margin: 0; display: grid; gap: 6px; font-weight: 700; }
.flaps { display: flex; flex-wrap: wrap; gap: 3px; --cell: clamp(24px, calc((100vw - 110px) / 10.5), 72px); }
.flap {
  position: relative; display: inline-grid; place-items: center;
  width: var(--cell); height: calc(var(--cell) * 1.32);
  font-size: calc(var(--cell) * .82); line-height: 1;
  background: var(--flap); color: var(--flap-ink); border-radius: 3px;
  box-shadow: inset 0 -1px 0 #0008, inset 0 1px 0 #ffffff12;
  overflow: hidden;
}
/* The hinge across the middle of every flap. */
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--board); }
.flap.is-flipping { animation: flap .07s linear; }
@keyframes flap {
  0% { transform: scaleY(1); }
  50% { transform: scaleY(.15); filter: brightness(.6); }
  100% { transform: scaleY(1); }
}
.board-role { margin: 16px 0 26px; color: var(--amber); font-size: clamp(.8rem, 1.6vw, 1rem); letter-spacing: .12em; }

.routes { width: 100%; border-collapse: collapse; font-size: clamp(.78rem, 1.5vw, .95rem); }
.routes th { text-align: left; font-weight: 400; color: #8a877e; padding: 0 12px 8px 0; border-bottom: 1px solid #2c2c29; font-size: .75rem; }
.routes td { padding: 14px 12px 14px 0; border-bottom: 1px solid #2c2c29; }
.routes tr[data-href] { cursor: pointer; transition: background .15s; }
.routes tr[data-href]:hover { background: #1c1c1a; }
.r-code { color: #8a877e; width: 3ch; }
.r-title a { color: var(--flap-ink); text-decoration: none; font-weight: 700; font-size: 1.15em; }
.r-title a::after { content: ""; }
.r-what { color: #b9b5aa; }
.r-status { color: var(--amber); text-align: right; white-space: nowrap; }
.routes tr:hover .r-status span { animation: blink-row .9s steps(1) infinite; }
@keyframes blink-row { 50% { opacity: .35; } }
@media (max-width: 640px) { .col-what { display: none; } }

/* ---------- intro ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 32px; align-items: end; padding: 56px 0 8px; border-bottom: 1px solid var(--fg); }
.intro-lead { margin: 0 0 32px; font-size: clamp(1.35rem, 3vw, 2.1rem); line-height: 1.3; letter-spacing: -.015em; font-weight: 500; }
.ink-link {
  justify-self: end; margin-bottom: 32px; padding: 14px 22px; border: 1.5px solid var(--fg);
  font-family: var(--mono); font-size: .9rem; text-decoration: none; white-space: nowrap;
  background: linear-gradient(var(--fg), var(--fg)) left / 0 100% no-repeat; transition: background-size .35s cubic-bezier(.7,0,.2,1), color .35s;
}
.ink-link:hover { background-size: 100% 100%; color: var(--bg); }
@media (max-width: 760px) { .intro { grid-template-columns: 1fr; gap: 0; } .ink-link { justify-self: start; } }

.h-section { font-family: var(--mono); font-size: .85rem; font-weight: 500; letter-spacing: .02em; margin: 0 0 20px; color: var(--muted); }
.h-section::before { content: "§ "; color: var(--accent); }

/* ---------- price list ---------- */
.pricelist { padding: 56px 0; border-bottom: 1px solid var(--fg); }
.pl { list-style: none; margin: 0; padding: 0; }
.pl-row {
  position: relative; display: flex; align-items: baseline; gap: 10px; padding: 16px 8px;
  border-bottom: 1px dashed var(--line); isolation: isolate;
}
/* Ink sweeps in from the left on hover. */
.pl-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.7,0,.2,1); }
.pl-row:hover::before { transform: scaleX(1); }
.pl-row:hover { color: var(--bg); }
.pl-row:hover .pl-note { color: #c9c3b6; }
.pl-row:hover .pl-dots { border-color: #57534b; }
.pl-title { font-size: clamp(1.15rem, 2.6vw, 1.6rem); font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.pl-dots { flex: 1; min-width: 24px; border-bottom: 2px dotted var(--line); transform: translateY(-6px); transition: border-color .4s; }
.pl-note { color: var(--muted); text-align: right; transition: color .4s; }
@media (max-width: 640px) {
  .pl-row { flex-wrap: wrap; gap: 2px; }
  .pl-title { white-space: normal; }
  .pl-dots { display: none; }
  .pl-note { width: 100%; text-align: left; }
}

/* ---------- works ---------- */
.works { padding: 56px 0; border-bottom: 1px solid var(--fg); }
.works-head { display: flex; justify-content: space-between; align-items: baseline; }
.works-head a { font-family: var(--mono); font-size: .85rem; }
.wl { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fg); }
.wl-row {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto; gap: 24px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .3s;
}
.wl-row:hover { padding-left: 16px; }
.wl-title { font-size: clamp(1.8rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.wl-row:hover .wl-title { color: var(--accent); }
.wl-sum { color: var(--muted); }
.wl-tags { font-family: var(--mono); font-size: .75rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 760px) { .wl-row { grid-template-columns: 1fr; gap: 6px; } .wl-row:hover { padding-left: 0; } }

/* Cover that follows the cursor over a project row. */
.peek {
  position: fixed; left: 0; top: 0; z-index: 50; width: 320px; aspect-ratio: 3 / 2; object-fit: cover;
  pointer-events: none; border: 1.5px solid var(--fg); background: var(--surface);
  opacity: 0; transform: translate(-50%, -50%) rotate(-3deg) scale(.9); transition: opacity .2s, transform .2s;
}
.peek.is-on { opacity: 1; transform: translate(-50%, -50%) rotate(-3deg) scale(1); }

/* ---------- process as one sentence ---------- */
.process { padding: 56px 0; border-bottom: 1px solid var(--fg); }
.process-line { margin: 0; font-size: clamp(1.5rem, 3.6vw, 2.6rem); line-height: 1.35; letter-spacing: -.02em; font-weight: 500; }
.process-line::first-letter { text-transform: uppercase; }
.step-word { background: linear-gradient(var(--accent), var(--accent)) 0 92% / 100% .12em no-repeat; }
.arrow { color: var(--accent); }

/* ---------- ticket CTA ---------- */
.ticket-wrap { padding: 64px 0 24px; }
.ticket {
  --notch: 14px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; text-decoration: none; color: var(--fg);
  filter: drop-shadow(0 2px 0 var(--fg));
}
.ticket-main, .ticket-stub { background: #fbf8f1; border: 1.5px solid var(--fg); }
.ticket-main {
  display: grid; gap: 10px; padding: clamp(24px, 4vw, 44px); border-right: 0;
  -webkit-mask: radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket-stub {
  display: grid; place-content: center; gap: 6px; padding: 0 clamp(20px, 4vw, 44px); text-align: center;
  border-left: 2px dashed var(--fg); font-family: var(--mono); font-size: .85rem;
  background-color: var(--accent); color: #fff; border-color: var(--fg);
  transform-origin: 0 100%; transition: transform .45s cubic-bezier(.3,1.6,.5,1);
}
.ticket-stub b { font-size: 2rem; line-height: 1; }
.ticket:hover .ticket-stub { transform: rotate(4deg) translate(6px, 4px); }
.ticket-kicker { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.ticket-title { font-size: clamp(1.8rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.ticket-text { color: var(--muted); max-width: 44ch; }
@media (max-width: 520px) { .ticket { grid-template-columns: 1fr; } .ticket-main { border-right: 1.5px solid var(--fg); -webkit-mask: none; mask: none; } .ticket-stub { border-left: 1.5px solid var(--fg); border-top: 2px dashed var(--fg); padding: 16px; grid-auto-flow: column; } }

.site-footer { border-top-color: var(--fg); }
