/* === Quacktory × Terminal Industries === */
/* Cinematic editorial, wireframe-overlaid hero, translucent pill nav */

:root {
  --bg: #120D0A;
  --fg: #FFFFFF;
  --accent: #C9A2B8;
  --muted: #6B5A6A;
  --ink: #1A1410;
  --surface: #D9C9A8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
a { color: inherit; text-decoration: none; }

.skip {
  position: absolute; left: -9999px;
  background: var(--fg); color: var(--bg);
  padding: 8px 16px;
}
.skip:focus { left: 8px; top: 8px; z-index: 99; }

.kicker {
  font-size: 11px; letter-spacing: 0.28em;
  color: var(--accent);
  font-weight: 500;
}

/* ===== PILL NAV ===== */
.pill {
  position: fixed; left: 50%; top: 22px;
  transform: translateX(-50%);
  z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 10px 22px;
  background: rgba(107,90,106,0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
}
.pill__brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.06em;
}
.pill__icon {
  width: 16px; height: 16px;
  border: 1px solid var(--fg);
  position: relative;
  display: inline-block;
}
.pill__icon::after {
  content: ""; position: absolute;
  left: 3px; top: 3px;
  right: 3px; bottom: 3px;
  background: var(--fg);
}
.pill__wordmark { font-weight: 500; letter-spacing: 0.18em; }
.pill__link {
  font-size: 13px; letter-spacing: 0.02em;
  padding: 4px 2px;
  position: relative;
  transition: color .2s;
}
.pill__link:hover { color: var(--accent); }
.pill__link::after {
  content: ""; position: absolute; left: 0; right: 100%;
  bottom: -2px; height: 1px; background: var(--accent);
  transition: right .25s;
}
.pill__link:hover::after { right: 0; }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh; min-height: 700px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.55) contrast(1.05) saturate(0.85);
}
.hero__wire {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18,13,10,0.2) 0%, transparent 30%, transparent 60%, var(--bg) 100%);
}

.hero__content {
  position: absolute;
  left: 0; right: 0; bottom: 14%;
  padding: 0 8vw;
  z-index: 2;
}
.hero__h {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: clamp(36px, 5.6vw, 78px);
  line-height: 1.18;
  letter-spacing: 0.005em;
  color: var(--fg);
  max-width: 18ch;
  margin: 0 0 36px;
}
.hero__h em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.hero__h span { display: block; }
.hero__cta {
  padding: 12px 24px;
  background: transparent;
  color: var(--fg);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  font-size: 12px; letter-spacing: 0.18em;
  font-weight: 500;
  transition: background .25s, color .25s;
}
.hero__cta:hover, .hero__cta:focus-visible {
  background: var(--fg); color: var(--bg); outline: 0;
}

/* ===== TIMELINE ===== */
.timeline {
  padding: 90px 8vw 80px;
  border-bottom: 1px solid var(--muted);
}
.timeline__head { max-width: 720px; margin-bottom: 40px; }
.timeline__title {
  margin-top: 14px;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1; letter-spacing: 0.005em;
}
.timeline__legend {
  margin-top: 14px;
  font-size: 12px; letter-spacing: 0.18em;
  color: var(--muted);
}
.timeline__rail {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}
.node {
  display: flex; flex-direction: column;
  padding: 28px 22px;
  border-right: 1px solid var(--muted);
  text-align: left;
  transition: background .25s, color .25s, border-color .25s;
}
.node:last-child { border-right: 0; }
.node:hover, .node:focus-visible {
  background: rgba(201,162,184,0.06);
  border-color: var(--accent);
  outline: 0;
}
.node[aria-selected="true"] {
  background: rgba(201,162,184,0.12);
  border-color: var(--accent);
}
.node__size {
  font-weight: 300;
  font-size: 36px; line-height: 1; letter-spacing: -0.01em;
}
.node__unit {
  font-size: 11px; letter-spacing: 0.22em;
  color: var(--accent);
  margin-top: 4px;
}
.node__label {
  font-weight: 500;
  font-size: 16px; letter-spacing: 0.18em;
  margin-top: 18px;
}
.node__hint {
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 6px;
}

/* ===== PRODUCTION ===== */
.prod {
  padding: 80px 8vw;
  border-bottom: 1px solid var(--muted);
}
.prod__head { max-width: 720px; margin-bottom: 36px; }
.prod__title {
  margin-top: 12px;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1; letter-spacing: 0.005em;
}
.prod__cols {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--muted);
}
.prod__cols > div {
  padding: 28px 22px;
  border-bottom: 1px solid var(--muted);
  border-right: 1px solid var(--muted);
}
.prod__cols > div:nth-child(2n) { border-right: 0; }
.prod__cols h3 {
  font-weight: 500;
  font-size: 11px; letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 12px;
}
.prod__cols p {
  font-size: 13px; line-height: 1.6;
  max-width: 50ch;
}

/* ===== B2B ===== */
.b2b {
  padding: 80px 8vw;
  border-bottom: 1px solid var(--muted);
}
.b2b__head { max-width: 720px; margin-bottom: 32px; }
.b2b__title {
  margin-top: 12px;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
}
.b2b__lede {
  margin-top: 18px;
  font-size: 13px; line-height: 1.65;
  max-width: 62ch; color: #E8E2DC;
}
.b2b__rows {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  margin-bottom: 32px;
}
.b2b__rows > div {
  padding: 22px 16px;
  border-right: 1px solid var(--muted);
  display: flex; flex-direction: column; gap: 6px;
}
.b2b__rows > div:last-child { border-right: 0; }
.b2b__rows span {
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--accent);
}
.b2b__rows b {
  font-weight: 500;
  font-size: 18px; letter-spacing: 0.04em;
}
.b2b__form {
  display: grid; grid-template-columns: 1fr 1fr 1fr auto;
  gap: 14px; align-items: end;
}
.b2b__form label {
  display: flex; flex-direction: column;
  font-size: 10px; letter-spacing: 0.22em;
  color: var(--accent); gap: 6px;
}
.b2b__form input, .b2b__form select {
  background: transparent; color: var(--fg);
  border: 0; border-bottom: 1px solid var(--muted);
  padding: 8px 0;
  font: inherit; font-size: 14px; border-radius: 0;
}
.b2b__form input:focus, .b2b__form select:focus { outline: 0; border-color: var(--accent); }
.b2b__form button {
  padding: 12px 24px;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-size: 12px; letter-spacing: 0.18em;
}
.b2b__form button:hover { background: var(--fg); color: var(--bg); }

/* ===== FOOTER ===== */
.foot {
  padding: 40px 8vw 24px;
}
.foot__row {
  display: flex; gap: 12px; align-items: center;
  font-size: 11px; letter-spacing: 0.2em;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--muted);
  margin-bottom: 24px;
}
.foot__spacer { flex: 1; }
.foot__cols {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  font-size: 12px;
}
.foot__cols p { margin-top: 4px; color: #D5CFC8; }
.foot__h {
  font-size: 10px !important; letter-spacing: 0.24em;
  color: var(--accent) !important;
  margin-bottom: 6px;
}

/* ===== MODAL ===== */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); }
.modal__card {
  position: relative; width: min(560px, 92vw);
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--muted);
  border-radius: 4px;
  padding: 32px;
}
.modal__close {
  position: absolute; top: 12px; right: 14px;
  font-size: 18px; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--muted);
}
.modal__close:hover { background: var(--muted); }
.modal__eyebrow {
  font-size: 10px; letter-spacing: 0.28em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--muted);
  color: var(--accent);
}
.modal__title {
  margin-top: 10px;
  font-weight: 300;
  font-size: 56px; line-height: 1;
  letter-spacing: -0.01em;
}
.modal__size {
  margin-top: 6px;
  font-weight: 300;
  font-size: 22px; color: var(--accent);
  letter-spacing: 0.02em;
}
.modal__body {
  font-size: 13px; line-height: 1.65;
  margin-top: 18px; max-width: 50ch;
  color: #E8E2DC;
}
.modal__spec {
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--muted);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px 18px; font-size: 11px; letter-spacing: 0.14em;
}
.modal__spec dt { color: var(--accent); }
.modal__spec dd { text-align: right; }
.modal__share {
  margin-top: 22px; padding-top: 14px;
  border-top: 1px solid var(--muted);
  display: flex; justify-content: flex-end;
}
.share {
  font-size: 12px; letter-spacing: 0.18em;
  padding: 10px 18px;
  border: 1px solid var(--accent); border-radius: 999px;
  display: inline-flex; gap: 8px; align-items: baseline;
}
.share:hover { background: var(--accent); color: var(--bg); }
.share__num, .share__cap { font-weight: 500; font-size: 14px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .pill {
    gap: 14px; padding: 8px 14px;
    font-size: 11px;
    max-width: calc(100vw - 16px);
  }
  .pill__link { display: none; }
  .pill__link:nth-child(-n+3) { display: inline; }
  .hero__content { bottom: 10%; }
  .timeline__rail { grid-template-columns: 1fr 1fr; }
  .node { border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); }
  .node:nth-child(2n) { border-right: 0; }
  .prod__cols { grid-template-columns: 1fr; }
  .prod__cols > div { border-right: 0; }
  .b2b__rows { grid-template-columns: 1fr 1fr; }
  .b2b__rows > div:nth-child(2n) { border-right: 0; }
  .b2b__form { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .timeline__rail { grid-template-columns: 1fr; }
  .node { border-right: 0; }
  .b2b__rows { grid-template-columns: 1fr; }
  .b2b__rows > div { border-right: 0; border-bottom: 1px solid var(--muted); }
  .foot__cols { grid-template-columns: 1fr; }
  .modal__title { font-size: 42px; }
}
