﻿/* Public pages: night container terminal. Colour lives in the container steel; the interface is ink and sodium amber. */
/* Self-hosted faces (latin subset), see /fonts/README.txt */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/big-shoulders-display-latin.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Stencil Display"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/big-shoulders-stencil-display-latin.woff2") format("woff2"); }
:root {
  --ink: #0e1726;
  --ink-2: #16233a;
  --glass: #0f1a2b;
  --field: #0a1220;
  --line: #34425a;
  --text: #e9edf2;
  --muted: #a3b2c6;
  --amber: #f2a33a;
  --amber-hi: #ffc56b;
  --amber-ink: #1d1406;
  --rust: #ff8f73;
  --ok: #7fd1a0;
  --module: 34px;            /* one container height */
  --display: "Big Shoulders Display", "Barlow", sans-serif;
  --stencil: "Big Shoulders Stencil Display", "Big Shoulders Display", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; scrollbar-color: #3a4a63 var(--ink); }
body.terminal {
  margin: 0; min-height: 100vh; min-height: 100dvh; font-family: var(--body); font-size: 16px; line-height: 1.5;
  color: var(--text); background: var(--ink); caret-color: var(--amber); -webkit-font-smoothing: antialiased;
}
::selection { background: var(--amber); color: var(--amber-ink); }
::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track { background: var(--ink); } ::-webkit-scrollbar-thumb { background: #3a4a63; border-radius: 5px; }
a { color: var(--amber-hi); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- scene ---------- */
.t-scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.t-scene svg { width: 100%; height: 100%; display: block; }
.t-code { font-family: var(--stencil); font-weight: 800; font-size: 15px; letter-spacing: .06em; fill: #fff; fill-opacity: .78; }
.t-code-xl { font-family: var(--stencil); font-weight: 800; font-size: 40px; letter-spacing: .05em; fill: #fff; fill-opacity: .82; }
.t-beacon { animation: t-blink 2.4s steps(1, end) infinite; }
.t-lamp { animation: t-hum 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.t-far-lights circle { animation: t-blink 3.1s steps(1, end) infinite; }
.t-far-lights circle:nth-child(2n) { animation-delay: -1.4s; }
@keyframes t-blink { 0%, 70% { opacity: 1; } 71%, 100% { opacity: .15; } }
@keyframes t-hum { 0%, 100% { opacity: 1; } 48% { opacity: .9; } 50% { opacity: .78; } 52% { opacity: .95; } }

/* ---------- chrome ---------- */
.t-bar {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 18px clamp(16px, 4vw, 48px);
}
.t-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: .02em; text-transform: uppercase; }
.t-brand i { color: var(--amber); font-size: 1.4rem; }
.t-brand:hover { color: #fff; }
.t-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.t-nav a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.t-nav a:hover { color: var(--text); }
.t-nav a.is-here { color: var(--text); border-bottom-color: var(--amber); }

.t-main {
  position: relative; z-index: 1; min-height: calc(100dvh - 80px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); align-items: center;
  gap: 32px; padding: 8px clamp(16px, 4vw, 64px) clamp(24px, 6vh, 64px);
}
.t-main > * { grid-column: 2; min-width: 0; }
body.t-wide .t-main { grid-template-columns: minmax(0, 1fr) minmax(320px, 640px); }

/* ---------- gatehouse panel ---------- */
.t-panel {
  background: var(--glass); border: 1px solid #f2a33a73; border-top: 3px solid var(--amber);
  box-shadow: 0 28px 60px -12px #000c, 0 2px 0 #ffffff08 inset;
  padding: clamp(22px, 3vw, 36px);
  animation: t-dock .9s var(--ease-out) both;
}
@keyframes t-dock { from { transform: translateY(var(--module)); opacity: .35; } to { transform: none; opacity: 1; } }
.t-panel + .t-panel { margin-top: 18px; animation-delay: .12s; }

.t-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 4.2vw, 3.4rem); line-height: .95; letter-spacing: .01em; margin: 0 0 10px; text-wrap: balance; }
.t-lead { color: var(--muted); margin: 0 0 26px; max-width: 42ch; }
.t-subtitle { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.35rem; letter-spacing: .03em; margin: 0 0 12px; }

/* ---------- fields ---------- */
.t-field { margin-bottom: 18px; }
.t-label { display: block; font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.t-input {
  width: 100%; height: 48px; padding: 0 14px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--field); border: 1px solid var(--line); border-radius: 2px;
  transition: border-color .2s, box-shadow .25s var(--ease-out), background-color .2s;
}
textarea.t-input { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; }
.t-input::placeholder { color: #8293aa; }
.t-input:hover { border-color: #4a5b77; }
.t-input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px #f2a33a33; background: #0c1626; }
.t-input.input-validation-error { border-color: var(--rust); }
.t-input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 40px var(--field) inset; caret-color: var(--amber); }
.t-error, .field-validation-error { display: block; color: var(--rust); font-size: .88rem; margin-top: 6px; }
.t-alert { border: 1px solid #ff8f7355; background: #3a1a1680; color: #ffd5ca; padding: 10px 14px; border-radius: 2px; margin-bottom: 18px; font-size: .95rem; }
.t-alert ul { margin: 0; padding-left: 18px; }
.t-alert.validation-summary-valid { display: none; }
.t-hint { color: var(--muted); font-size: .88rem; }

.t-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--muted); user-select: none; }
.t-check input { appearance: none; width: 20px; height: 20px; margin: 0; border: 1px solid var(--line); background: var(--field); border-radius: 2px; display: grid; place-content: center; cursor: pointer; }
.t-check input::after { content: ""; width: 10px; height: 10px; background: var(--amber); transform: scale(0); transition: transform .18s var(--ease-out); }
.t-check input:checked { border-color: var(--amber); }
.t-check input:checked::after { transform: scale(1); }
.t-check:hover { color: var(--text); }

/* ---------- buttons ---------- */
.t-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; width: 100%;
  font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--amber-ink); background: var(--amber); border: 0; border-radius: 2px; cursor: pointer;
  box-shadow: 0 10px 24px -10px #f2a33a99; transition: background-color .2s, transform .15s, box-shadow .2s;
}
.t-btn:hover { background: var(--amber-hi); box-shadow: 0 14px 30px -10px #f2a33abb; }
.t-btn:active { transform: translateY(2px); box-shadow: 0 6px 14px -8px #f2a33a99; }
.t-btn[disabled], .t-btn.is-busy { cursor: progress; background: #b98536; }
.t-btn i { font-size: 1.1rem; transition: transform .3s var(--ease-out); }
.t-btn:hover i { transform: translateX(4px); }
.t-btn-ghost { background: transparent; color: var(--amber-hi); border: 1px solid #f2a33a77; box-shadow: none; }
.t-btn-ghost:hover { background: #f2a33a1a; color: #fff; box-shadow: none; }

.t-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 22px; flex-wrap: wrap; }
.t-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid #ffffff14; color: var(--muted); font-size: .95rem; }

/* track gate: one line */
.t-gate { display: flex; gap: 8px; }
.t-gate .t-input { flex: 1; min-width: 0; font-family: var(--stencil); font-weight: 700; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; }
.t-gate .t-input::placeholder { font-family: var(--body); font-weight: 400; font-size: 1rem; letter-spacing: 0; text-transform: none; }
.t-gate .t-btn { width: auto; flex: none; height: 48px; padding: 0 18px; font-size: 1.1rem; }

/* register grid */
.t-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.t-grid2 .t-span { grid-column: 1 / -1; }

/* ---------- tracking result ---------- */
.t-track-no { font-family: var(--stencil); font-weight: 800; font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: .9; letter-spacing: .04em; margin: 0; overflow-wrap: anywhere; }
.t-status { display: inline-flex; align-items: center; gap: 10px; margin: 14px 0 22px; font-family: var(--display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; letter-spacing: .03em; }
.t-status::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px #f2a33a33; }
.t-status.is-done::before { background: var(--ok); box-shadow: 0 0 0 4px #7fd1a033; }
.t-status.is-bad::before { background: var(--rust); box-shadow: 0 0 0 4px #ff8f7333; }
.t-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 24px; margin: 0 0 24px; padding: 18px 0; border-block: 1px solid #ffffff14; }
.t-facts dt { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.t-facts dd { margin: 2px 0 0; font-size: 1.1rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.t-facts .t-route-row { grid-column: 1 / -1; }
.t-route { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; }
.t-route span { white-space: nowrap; }
.t-route i { color: var(--amber); }
.t-events { list-style: none; margin: 0; padding: 0; position: relative; }
.t-events li { position: relative; padding: 0 0 18px 30px; }
.t-events li::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: -6px; width: 2px; background: #ffffff1a; }
.t-events li:last-child::before { display: none; }
.t-events li::after { content: ""; position: absolute; left: 1px; top: 4px; width: 12px; height: 12px; border: 2px solid #5b6b84; background: var(--ink); border-radius: 1px; }
.t-events li:first-child::after { border-color: var(--amber); background: var(--amber); }
.t-events strong { display: block; font-weight: 600; }
.t-events span { color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
.t-empty { text-align: left; color: var(--muted); }

/* ---------- small screens: scene becomes the sky above a full-width gatehouse ---------- */
@media (max-width: 900px) {
  .t-main, body.t-wide .t-main { grid-template-columns: minmax(0, 1fr); align-items: end; min-height: auto; padding-top: 33vh; }
  .t-main > * { grid-column: 1; }
  .t-scene { bottom: auto; height: 46vh; }
}
@media (max-width: 560px) {
  .t-grid2 { grid-template-columns: 1fr; }
  .t-nav { gap: 2px 16px; font-size: .95rem; }
  .t-gate { flex-direction: column; }
  .t-gate .t-input { flex: none; }
  .t-gate .t-btn { width: 100%; }
  .t-main { padding-top: 33vh; }
}

/* short laptop screens (e.g. 1366x640): both gates fit above the fold, scene starts below the header */
@media (max-height: 720px) and (min-width: 901px) {
  .t-scene svg { transform: translateY(64px); }   /* lower the whole drawing so the crane apex clears the header */
  .t-near { display: none; }                         /* the near boxes would be sliced by the bottom edge */
  .t-bar { padding-block: 12px; }
  .t-main { align-items: start; padding-top: 0; padding-bottom: 16px; min-height: auto; }
  .t-panel { padding: 20px 24px; }
  .t-panel + .t-panel { margin-top: 12px; }
  .t-title { font-size: 2.3rem; margin-bottom: 14px; }
  .t-lead { margin-bottom: 14px; }
  .t-lead-long { display: none; }
  .t-field { margin-bottom: 12px; }
  .t-row { margin: 0 0 14px; }
  .t-btn { height: 46px; }
  .t-foot { margin-top: 14px; padding-top: 12px; }
  .t-subtitle { margin-bottom: 8px; font-size: 1.2rem; }
}

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







