/* ==========================================================================
   SORTED PTY LIMITED — tech-precision
   Charcoal chassis, graphite panels, silver hairlines. Not Telec cyan HUD,
   not BK-TON white paper, not PROMAR indigo/mint.
   ========================================================================== */

:root {
  --bg: #0b0c0e;
  --bg-alt: #13151a;
  --bg-deep: #070809;
  --ink: #e8eaee;
  --ink-soft: #9aa1ab;
  --ink-invert: #f4f5f7;
  --accent: #c5ccd6;
  --accent-soft: #1c1f24;
  --line: #2a2e35;
  --accent-ink: #0b0c0e;
  --grid-line: color-mix(in srgb, var(--accent) 9%, transparent);

  --font-display: "DM Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "DM Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --tracking-display: -0.035em;
  --radius: 2px;
  --radius-lg: 2px;
  --container: 1180px;
  --shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
}

body {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 48px 100%,
    var(--bg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  color: var(--ink);
  border-bottom-color: transparent;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.site-header__brand img {
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: var(--bg-deep);
}
.nav a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav a:hover { color: var(--accent); opacity: 1; }

.btn {
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover {
  background: var(--ink-invert);
  color: var(--accent-ink);
}
.btn--ghost {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
}
.btn--ghost:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.eyebrow {
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.16em;
}

.section__head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.field input,
.field textarea,
.field select {
  background: var(--bg-deep);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.field select { padding: 0.85em 1em; }

/* --- HERO : copy left, framed still right --- */
.hero {
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}
.hero__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.hero__copy h1 {
  margin: 0.7rem 0 1rem;
  max-width: 14ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 1.8rem;
}
.hero__telem {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.hero__telem dt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero__telem dd {
  font-size: var(--step-0);
  font-weight: 600;
}
.hero__frame {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.hero__frame::before,
.hero__frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--accent);
  z-index: 1;
  pointer-events: none;
}
.hero__frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero__frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.hero__frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.hero__cap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero__telem { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --- BAYS : 4×2 catalog drawers --- */
.bays { background: var(--bg-alt); }
.bays__grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.bay {
  background: var(--bg);
  padding: 0 0 1.15rem;
}
.bay img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.bay__code {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0.9rem 1rem 0.35rem;
}
.bay h3,
.bay p { margin-inline: 1rem; }
.bay h3 { font-size: var(--step-1); margin-bottom: 0.35rem; }
.bay p { color: var(--ink-soft); font-size: var(--step--1); }

@media (min-width: 600px) {
  .bays__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .bays__grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- ABOUT : still left, long copy right --- */
.about__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
.about__frame { margin: 0; }
.about__frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}
.about__frame figcaption {
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.about__copy h2 { margin: 0.6rem 0 1.1rem; }

@media (min-width: 880px) {
  .about__grid { grid-template-columns: 0.9fr 1.1fr; }
}

/* --- SERVICES : numbered file, not cards --- */
.services { background: var(--bg-alt); }
.lines {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.line {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.line__n {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 0.2rem;
}
.line h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.line p { color: var(--ink-soft); }

@media (min-width: 800px) {
  .line { grid-template-columns: 4.5rem 1fr; gap: 2rem; padding: 1.6rem 0; }
}

/* --- LEDGER : four-step protocol --- */
.protocol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.protocol__step {
  background: var(--bg-alt);
  padding: 1.35rem 1.2rem 1.5rem;
  margin: 0;
}
.protocol__code {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.protocol__step h3 { font-size: var(--step-1); margin-bottom: 0.45rem; }
.protocol__step p { color: var(--ink-soft); font-size: var(--step--1); }

@media (min-width: 720px) {
  .protocol { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .protocol { grid-template-columns: repeat(4, 1fr); }
}

/* --- BENCH : two workstations --- */
.bench { background: var(--bg-alt); }
.bench__grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}
.station {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 1.35rem 1.25rem 1.25rem;
}
.station h3 { margin: 0.2rem 0 0.7rem; }
.station p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.station img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
}
.station .bay__code { margin: 0 0 0.45rem; }

@media (min-width: 800px) {
  .bench__grid { grid-template-columns: 1fr 1fr; }
}

/* --- DISPATCH : three lanes --- */
.lanes {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.lane {
  background: var(--bg);
  padding: 1.4rem 1.25rem 1.55rem;
}
.lane__code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}
.lane h3 { font-size: var(--step-1); margin-bottom: 0.45rem; }
.lane p { color: var(--ink-soft); }

@media (min-width: 800px) {
  .lanes { grid-template-columns: repeat(3, 1fr); }
}

/* --- HOURS --- */
.hours { background: var(--bg-alt); }
.hours__grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: end;
  padding-bottom: 0.25rem;
}
.hours__grid h2 { margin: 0.5rem 0 0.8rem; }
.hours__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step-0);
}
.hours__table th,
.hours__table td {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.hours__table th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  width: 42%;
}

@media (min-width: 760px) {
  .hours__grid { grid-template-columns: 1fr 1fr; }
}

/* --- CONTACT : silver-framed ticket --- */
.contact__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.contact__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.contact__list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.contact__list span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--accent); }
.contact__list address { font-style: normal; }

.contact__form {
  background: var(--bg-alt);
  border: 1px solid var(--accent);
  outline: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  outline-offset: 6px;
  padding: clamp(1.4rem, 3vw, 2.1rem);
  display: grid;
  gap: 1rem;
}
.contact__form h2 { margin: 0.2rem 0 0.35rem; }
.contact__note { color: var(--ink-soft); font-size: var(--step--1); margin-bottom: 0.35rem; }
.contact__form .btn { justify-self: start; margin-top: 0.25rem; }

@media (min-width: 880px) {
  .contact__grid { grid-template-columns: 0.85fr 1.15fr; }
}

/* --- FOOTER --- */
.site-footer {
  background: var(--bg-deep);
  color: var(--ink);
}
.footer__grid {
  display: grid;
  gap: 1.75rem;
}
.footer__brand p { margin-top: 0.85rem; max-width: 28ch; }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
}
.footer__nav a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}
.footer__nav a:hover { color: var(--accent); }
.footer__addr {
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.footer__addr a { color: var(--ink); text-decoration: none; }
.site-footer__bottom {
  grid-column: 1 / -1;
}

@media (min-width: 800px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}
