/* TREKX LLC — company site. Palette and borders follow the TBTI brand standard
   (cream / ink / pop colors, 0 radius, hard shadows), toned down for a company page. */

:root {
  --paper: #fff5e1;
  --ink: #111111;
  --ink-soft: #3d3a35;
  --ink-muted: #6b665d;
  --white: #ffffff;
  --pink: #ff4da6;
  --lime: #b6f000;
  --cyan: #34e2e4;
  --yellow: #ffd23f;
  --orange: #ff8a3d;
  --purple: #b15bff;

  --pixel: "Press Start 2P", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Roboto Mono", Menlo, Consolas, monospace;

  --border: 3px solid var(--ink);
  --shadow: 5px 5px 0 0 var(--ink);
  --shadow-sm: 2px 2px 0 0 var(--ink);
  --gutter: 16px;
  --max: 1120px;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(17, 17, 17, 0.11) 1px, transparent 1.2px);
  background-size: 18px 18px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: clip;
}

:lang(en) body,
body:lang(en) {
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 720px) {
  :root {
    --gutter: 28px;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  font-family: var(--pixel);
  font-size: 18px;
  letter-spacing: 0.02em;
}

.brand-llc {
  font-family: var(--pixel);
  font-size: 9px;
  padding: 4px 5px 3px;
  background: var(--pink);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.nav {
  display: none;
  margin-left: auto;
  gap: 4px;
}

.nav a {
  padding: 6px 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}

.nav a:hover {
  border-color: var(--ink);
  background: var(--white);
}

.header-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .nav + .header-actions {
    margin-left: 12px;
  }
}

/* ---------- Buttons & chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border: var(--border);
  box-shadow: var(--shadow);
  background: var(--white);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 0 var(--ink);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 0 var(--ink);
}

.btn-primary {
  background: var(--pink);
}

.btn-small {
  min-height: 38px;
  padding: 6px 12px;
  font-size: 14px;
  border-width: 2px;
  box-shadow: 3px 3px 0 0 var(--ink);
}

.btn-small:hover {
  box-shadow: 5px 5px 0 0 var(--ink);
}

.chip {
  display: inline-block;
  padding: 3px 8px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
  background: var(--white);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
}

.chip-lime {
  background: var(--lime);
}

.chip-yellow {
  background: var(--yellow);
}

.chip-cyan {
  background: var(--cyan);
}

.chip-pink {
  background: var(--pink);
}

/* ---------- Hero ---------- */

.hero {
  padding: 48px 0 64px;
  border-bottom: var(--border);
}

.hero-grid {
  display: grid;
  gap: 40px;
}

.eyebrow {
  margin: 0 0 20px;
  font-family: var(--pixel);
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 9vw, 80px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

:lang(en) .hero h1 {
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.hero h1 mark {
  display: inline-block;
  padding: 0 0.14em;
  margin-inline: 0.04em;
  background: var(--pink);
  color: var(--ink);
  border: var(--border);
  box-shadow: var(--shadow);
  font-family: var(--pixel);
  font-size: 0.62em;
  line-height: 1.5;
  vertical-align: 0.12em;
  transform: rotate(-2deg);
}

.lead {
  max-width: 36em;
  margin: 28px 0 0;
  font-size: 19px;
  color: var(--ink-soft);
}

.lead strong {
  color: var(--ink);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-visual {
  display: grid;
  gap: 22px;
  align-content: start;
}

.card {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
}

.chat {
  transform: rotate(-1deg);
}

.chat-head,
.after-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: var(--border);
  font-weight: 800;
  font-size: 15px;
}

.chat-head {
  background: var(--yellow);
}

.tag-demo {
  padding: 1px 6px;
  border: 2px solid var(--ink);
  background: var(--white);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.chat-body {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px;
  list-style: none;
}

.msg {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 15px;
  line-height: 1.45;
}

.msg b {
  flex: 0 0 auto;
  min-width: 3.4em;
  font-size: 13px;
  color: var(--ink-muted);
}

.msg span {
  padding: 4px 10px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.msg-plus span {
  font-family: var(--pixel);
  font-size: 10px;
  background: var(--white);
}

.chat-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 2px dashed var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.chat-foot strong {
  padding: 0 8px;
  background: var(--pink);
  border: 2px solid var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.after {
  transform: rotate(0.8deg);
}

.after-head {
  background: var(--lime);
}

.checklist {
  margin: 0;
  padding: 14px;
  list-style: none;
  display: grid;
  gap: 10px;
}

.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.checklist li::before {
  content: "✓";
  flex: 0 0 20px;
  height: 20px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--lime);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

@media (min-width: 900px) {
  .hero {
    padding: 80px 0 96px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 56px;
  }
}

@media (max-width: 480px) {
  .chat,
  .after {
    transform: none;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
  border-bottom: var(--border);
}

.section-alt {
  background: var(--white);
}

.kicker {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 8px 5px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--pixel);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

:lang(zh-Hant-TW) .kicker {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 3px 9px;
}

.section h2 {
  max-width: 22em;
  margin: 0;
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

:lang(en) .section h2 {
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-intro {
  max-width: 38em;
  margin: 20px 0 0;
  color: var(--ink-soft);
}

.chore-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.chore-list li {
  padding: 8px 14px;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--white);
  font-weight: 800;
  font-size: 16px;
}

.chore-list li:nth-child(odd) {
  transform: rotate(-1deg);
}

.chore-list li:nth-child(3n) {
  background: var(--yellow);
}

.chore-list li:last-child {
  background: var(--pink);
}

/* Roles */

.roles {
  display: grid;
  gap: 22px;
  margin-top: 40px;
}

.role {
  display: flex;
  flex-direction: column;
}

.role-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: var(--border);
}

.role-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.role-code {
  font-family: var(--pixel);
  font-size: 9px;
}

.role p {
  margin: 0;
  padding: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.role-host .role-head {
  background: var(--pink);
}

.role-guest .role-head {
  background: var(--cyan);
}

.role-venue .role-head {
  background: var(--yellow);
}

.role-tbti .role-head {
  background: var(--lime);
}

.role-tbti {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.fee-note {
  margin: 28px 0 0;
  font-size: 15px;
  font-weight: 700;
}

.fee-note::before {
  content: "＊ ";
}

:lang(en) .fee-note::before {
  content: "* ";
}

.dont {
  margin-top: 36px;
  padding: 20px 20px 8px;
  background: var(--paper);
  border: var(--border);
  border-style: dashed;
}

.dont h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 900;
}

.dont ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dont li {
  position: relative;
  padding: 0 0 12px 30px;
  font-size: 16px;
  line-height: 1.65;
}

.dont li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

@media (min-width: 640px) {
  .roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .roles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .role:nth-child(2) {
    transform: rotate(0.6deg);
  }

  .role:nth-child(3) {
    transform: rotate(-0.6deg);
  }
}

/* Timeline */

.timeline {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  border-left: var(--border);
}

.timeline li {
  position: relative;
  display: grid;
  gap: 6px 20px;
  padding: 0 0 32px 26px;
}

.timeline li:last-child {
  padding-bottom: 4px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--paper);
  border: var(--border);
}

.timeline li.is-done::before {
  background: var(--lime);
}

.timeline li.is-now::before {
  background: var(--yellow);
}

.timeline li.is-live::before {
  background: var(--cyan);
}

.tl-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tl-date {
  font-family: var(--pixel);
  font-size: 11px;
  line-height: 1.8;
}

.timeline p {
  max-width: 40em;
  margin: 0;
  font-size: 17px;
}

.timeline small {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-muted);
}

@media (min-width: 720px) {
  .timeline li {
    grid-template-columns: 210px minmax(0, 1fr);
    align-items: start;
  }
}

/* Team */

.team {
  display: grid;
  gap: 22px;
  margin-top: 40px;
}

.member {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  align-items: start;
}

.avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: var(--border);
  font-family: var(--pixel);
  font-size: 20px;
}

.member:nth-child(1) .avatar {
  background: var(--pink);
}

.member:nth-child(2) .avatar {
  background: var(--cyan);
}

.member:nth-child(3) .avatar {
  background: var(--lime);
}

.member h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.3;
}

.member .role-line {
  margin: 4px 0 8px;
  font-size: 14px;
  font-weight: 800;
}

.member p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .team {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Company facts */

.facts {
  margin: 40px 0 0;
  border: var(--border);
  box-shadow: var(--shadow);
  background: var(--white);
}

.facts div {
  display: grid;
  gap: 2px 24px;
  padding: 14px 18px;
  border-bottom: 2px solid var(--ink);
}

.facts div:last-child {
  border-bottom: 0;
}

.facts dt {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-muted);
}

.facts dd {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.facts .mono {
  font-family: var(--mono);
  font-weight: 600;
}

@media (min-width: 720px) {
  .facts div {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: baseline;
  }
}

/* Contact */

.contact {
  padding: 80px 0;
  background: var(--ink);
  color: var(--paper);
  border-bottom: var(--border);
}

.contact .kicker {
  background: var(--pink);
  color: var(--ink);
}

.contact h2 {
  max-width: 18em;
  margin: 0;
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 900;
  line-height: 1.2;
}

.contact p {
  max-width: 34em;
  margin: 18px 0 0;
  color: #e9dfcb;
}

.email {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 20px;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--paper);
  box-shadow: 6px 6px 0 0 var(--pink);
  font-family: var(--mono);
  font-size: clamp(17px, 4.4vw, 28px);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.email:hover {
  background: var(--pink);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 30px;
  font-size: 15px;
  font-weight: 700;
}

.contact-links a {
  color: var(--paper);
  text-underline-offset: 4px;
}

/* Footer */

.site-footer {
  padding: 28px 0 40px;
  font-size: 14px;
  color: var(--ink-soft);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-footer a {
  text-underline-offset: 3px;
}

.site-footer .fine {
  flex-basis: 100%;
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

/* 404 */

.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 60px 0;
  text-align: center;
}

.notfound h1 {
  margin: 0 0 16px;
  font-family: var(--pixel);
  font-size: clamp(36px, 10vw, 72px);
}

.notfound p {
  margin: 0 0 28px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
