:root {
  --ink: #131C33;
  --ink-soft: #1D2A4A;
  --paper: #FFFFFF;
  --paper-warm: #FAFAF7;
  --gold: #C9A227;
  --gold-soft: #E4C766;
  --red: #A32638;
  --slate: #5B6472;
  --line: #D8D3C4;
  --line-on-ink: rgba(255,255,255,0.22);

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

p { margin: 0; }

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #8c1f2f; }

.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-on-dark { border-color: var(--line-on-ink); color: #fff; }
.btn-on-dark:hover { background: #fff; color: var(--ink); }

.btn-lg { padding: 16px 30px; font-size: 17px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}
.brand-mark { width: 34px; height: 34px; border-radius: 9px; }
.site-footer .brand-mark { width: 30px; height: 30px; }
.main-nav { display: flex; gap: 32px; font-size: 15px; font-weight: 500; }
.main-nav a { color: var(--slate); transition: color 0.15s ease; }
.main-nav a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .main-nav { display: none; }
}

/* Eyebrow */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 14px;
}
.eyebrow-dark { color: var(--gold); }

/* HERO */
.hero {
  background: var(--ink);
  padding: 72px 0 96px;
}
.hero-inner { display: flex; justify-content: center; }

.ticket {
  width: 100%;
  max-width: 760px;
  background: var(--paper-warm);
  border-radius: 18px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
  overflow: hidden;
}

.ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--slate);
}
.ticket-row-top { color: var(--ink); }
.ticket-no { font-weight: 700; }
.ticket-tag {
  background: var(--red);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
}
.ticket-row-bottom {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
}

.perf {
  position: relative;
  height: 0;
  border-top: 2px dashed var(--line);
  margin: 0 24px;
}
.perf::before, .perf::after {
  content: '';
  position: absolute;
  top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
}
.perf::before { left: -33px; }
.perf::after { right: -33px; }

.ticket-body { padding: 40px 40px 44px; }
.hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  color: var(--ink);
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--slate);
  max-width: 52ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* TRUST / MARQUEE */
.trust { background: var(--paper-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee {
  overflow: hidden;
  padding: 28px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: scroll-marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 22px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.marquee-logo:hover { border-color: var(--gold); transform: translateY(-1px); }
.marquee-logo img { height: 26px; width: auto; max-width: 140px; object-fit: contain; }
.marquee-empty {
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 0 24px;
}

/* SYSTEMS */
.systems { padding: 96px 0; }
.systems h2, .work h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  max-width: 18ch;
  margin-bottom: 48px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature {
  background: var(--paper);
  padding: 32px 28px;
}
.feature-no {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 14px;
}
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { color: var(--slate); font-size: 14.5px; line-height: 1.55; }

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* WORK */
.work { background: var(--paper-warm); padding: 96px 0; }
.case-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.case {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--paper);
  padding: 26px 28px;
  transition: background 0.15s ease;
}
.case:hover { background: #fff; }
.case:hover .case-arrow { transform: translateX(4px); color: var(--red); }
.case-no {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  min-width: 44px;
}
.case-body { flex: 1; }
.case-body h3 { font-size: 18px; margin-bottom: 6px; }
.case-body p { color: var(--slate); font-size: 14.5px; }
.case-arrow { font-size: 20px; color: var(--slate); transition: transform 0.15s ease, color 0.15s ease; }

@media (max-width: 640px) {
  .case { flex-wrap: wrap; }
}

/* CUSTOM SOFTWARE */
.custom { background: var(--ink); padding: 80px 0; }
.custom-inner { max-width: 640px; }
.custom h2 { color: #fff; font-size: 26px; margin-bottom: 16px; }
.custom p { color: rgba(255,255,255,0.68); font-size: 15.5px; line-height: 1.6; margin-bottom: 26px; }

/* CONTACT */
.contact { padding: 100px 0; text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact h2 { font-size: clamp(26px, 3.6vw, 38px); max-width: 16ch; margin-bottom: 14px; }
.contact-sub { color: var(--slate); max-width: 46ch; margin-bottom: 30px; }

.contact-form {
  width: 100%;
  max-width: 480px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
}
.form-row input, .form-row textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper-warm);
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}
.form-row-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.contact-form .btn { align-self: flex-start; margin-top: 4px; }
.form-status { font-size: 14px; min-height: 20px; color: var(--slate); }
.form-status.is-success { color: #2f7a4d; }
.form-status.is-error { color: var(--red); }

/* FOOTER */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-inner > div { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; }
.footer-inner p { color: var(--slate); font-size: 13.5px; }
