@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&family=Staatliches&display=swap');

:root {
  --yellow: #ffd60a;
  --yellow-dim: #f0c800;
  --black: #050505;
  --white: #ffffff;
  --grey: #f3f3f3;
  --muted: #555555;
  --line: #050505;
  --side: 240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--black);
  background: var(--white);
  min-height: 100vh;
  line-height: 1.55;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.shell {
  display: grid;
  grid-template-columns: var(--side) 1fr;
  min-height: 100vh;
}

/* LEFT RAIL — totally different from top-nav sites */
.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--black);
  color: var(--white);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 3px solid var(--yellow);
  z-index: 50;
}

.rail-brand {
  font-family: 'Staatliches', sans-serif;
  font-size: 2.6rem;
  letter-spacing: 0.02em;
  line-height: 0.9;
  color: var(--yellow);
}

.rail-brand small {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.55rem;
  font-weight: 500;
}

.rail-nav {
  display: grid;
  gap: 0.35rem;
  margin-top: 2rem;
}

.rail-nav a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.55rem 0.65rem;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.rail-nav a:hover,
.rail-nav a[aria-current="page"] {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

.rail-foot {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

.rail-foot a {
  color: var(--yellow);
  display: inline;
}

.menu-toggle {
  display: none;
}

.main {
  min-width: 0;
  background: var(--white);
}

/* Ticker — different motion language */
.ticker {
  overflow: hidden;
  background: var(--yellow);
  border-bottom: 3px solid var(--black);
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 2.5rem;
  padding: 0.65rem 0;
  animation: ticker 28s linear infinite;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticker-track span::after {
  content: ' // ';
  opacity: 0.45;
  margin-left: 2.5rem;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Billboard hero — yellow field, NOT photo overlay */
.billboard {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: calc(100vh - 42px);
  border-bottom: 3px solid var(--black);
}

.billboard-copy {
  background: var(--yellow);
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.25rem;
}

.billboard-copy .code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.billboard-copy h1 {
  font-family: 'Staatliches', sans-serif;
  font-size: clamp(3.4rem, 8vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  max-width: 10ch;
}

.billboard-copy p {
  max-width: 34rem;
  font-size: 1.08rem;
  font-weight: 500;
}

.billboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.billboard-media {
  background:
    linear-gradient(0deg, rgba(5, 5, 5, 0.15), rgba(5, 5, 5, 0.15)),
    url('../images/hero.jpg') center/cover no-repeat;
  border-left: 3px solid var(--black);
  min-height: 320px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid var(--black);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.btn:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--black); }
.btn-black { background: var(--black); color: var(--yellow); }
.btn-white { background: var(--white); color: var(--black); }
.btn-yellow { background: var(--yellow); color: var(--black); }

.panel {
  padding: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 3px solid var(--black);
}

.panel-head {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  align-items: start;
}

.panel-head .code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.35rem;
}

.panel-head h2 {
  font-family: 'Staatliches', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.panel-head p {
  grid-column: 2;
  color: var(--muted);
  max-width: 40rem;
  margin-top: -0.5rem;
}

/* Roster table — not cards */
.roster {
  width: 100%;
  border-collapse: collapse;
}

.roster a {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 0.75rem;
  border-top: 2px solid var(--black);
  transition: background 0.2s var(--ease);
}

.roster a:last-child { border-bottom: 2px solid var(--black); }

.roster a:hover { background: var(--yellow); }

.roster .idx {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 0.85rem;
}

.roster h3 {
  font-family: 'Staatliches', sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.roster p {
  font-size: 0.92rem;
  color: var(--muted);
}

.roster a:hover p { color: var(--black); }

.roster .go {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 3px solid var(--black);
}

.two-col > * {
  padding: clamp(2rem, 4vw, 3rem);
  border-right: 3px solid var(--black);
  min-height: 280px;
}

.two-col > *:last-child { border-right: none; }

.two-col h2 {
  font-family: 'Staatliches', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 0.95;
  margin: 0.6rem 0 1rem;
}

.two-col p {
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.two-col .shade { background: var(--grey); }
.two-col .ink {
  background: var(--black);
  color: var(--white);
}
.two-col .ink p { color: rgba(255, 255, 255, 0.72); }
.two-col .ink .code { color: var(--yellow); }

.code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 3px solid var(--black);
}

.stat-strip div {
  padding: 1.4rem 1.1rem;
  border-right: 3px solid var(--black);
}

.stat-strip div:last-child { border-right: none; }

.stat-strip strong {
  display: block;
  font-family: 'Staatliches', sans-serif;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-strip span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Inner pages */
.page-top {
  background: var(--black);
  color: var(--white);
  padding: clamp(2rem, 5vw, 3.5rem);
  border-bottom: 3px solid var(--yellow);
}

.page-top .code { color: var(--yellow); margin-bottom: 0.75rem; display: block; }

.page-top h1 {
  font-family: 'Staatliches', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.92;
  max-width: 12ch;
  margin-bottom: 0.85rem;
}

.page-top p {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
}

.blocks {
  display: grid;
  gap: 0;
}

.block {
  display: grid;
  grid-template-columns: 120px 1fr 200px;
  gap: 1.25rem;
  padding: 1.5rem clamp(1.25rem, 3vw, 3rem);
  border-bottom: 2px solid var(--black);
  align-items: center;
  scroll-margin-top: 1rem;
}

.block:nth-child(even) { background: var(--grey); }

.block .idx {
  font-family: 'Staatliches', sans-serif;
  font-size: 2rem;
  color: var(--muted);
}

.block h2 {
  font-family: 'Staatliches', sans-serif;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.block p { color: var(--muted); max-width: 40rem; }

.block .thumb {
  height: 110px;
  background: center/cover no-repeat;
  border: 2px solid var(--black);
}

.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 3px solid var(--black);
}

.process article {
  padding: 1.75rem 1.4rem;
  border-right: 3px solid var(--black);
}

.process article:last-child { border-right: none; }

.process .n {
  font-family: 'Staatliches', sans-serif;
  font-size: 2.4rem;
  color: var(--yellow);
  background: var(--black);
  display: inline-block;
  padding: 0.1rem 0.45rem;
  margin-bottom: 0.9rem;
  line-height: 1;
}

.process h3 {
  font-family: 'Staatliches', sans-serif;
  font-size: 1.7rem;
  margin-bottom: 0.45rem;
}

.process p { color: var(--muted); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 70vh;
}

.contact-side {
  background: var(--yellow);
  padding: clamp(2rem, 4vw, 3rem);
  border-right: 3px solid var(--black);
}

.contact-side h1 {
  font-family: 'Staatliches', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 0.92;
  margin: 0.6rem 0 1rem;
}

.contact-side p { margin-bottom: 1.2rem; font-weight: 500; }

.contact-side a {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  border-bottom: 2px solid var(--black);
}

.contact-form-wrap {
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--white);
}

.form-row {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.95rem;
}

.form-row label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 2px solid var(--black);
  background: var(--grey);
  padding: 0.8rem 0.85rem;
  font: inherit;
  outline: none;
  border-radius: 0;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  background: var(--white);
  box-shadow: 3px 3px 0 var(--yellow);
}

.form-row textarea { min-height: 120px; resize: vertical; }

.form-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.form-success {
  display: none;
  margin-top: 0.9rem;
  padding: 0.85rem 1rem;
  background: var(--yellow);
  border: 2px solid var(--black);
  font-weight: 600;
}

.form-success.show { display: block; }

.legal-wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 3px solid var(--black);
}

.legal-nav {
  background: var(--grey);
  border-right: 3px solid var(--black);
  padding: 1.5rem 1rem;
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.legal-nav a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.5rem;
}

.legal-nav a[aria-current="page"] {
  background: var(--black);
  color: var(--yellow);
}

.legal-content {
  padding: clamp(1.75rem, 4vw, 3rem);
}

.legal-content h1 {
  font-family: 'Staatliches', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 0.95;
  margin-bottom: 0.5rem;
}

.legal-content .updated {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.legal-content h2 {
  font-family: 'Staatliches', sans-serif;
  font-size: 1.6rem;
  margin: 1.5rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.legal-content ul { margin: 0 0 1rem 1.1rem; }
.legal-content li { list-style: disc; }

.site-end {
  background: var(--black);
  color: rgba(255, 255, 255, 0.7);
  padding: 1.5rem clamp(1.25rem, 3vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
}

.site-end a { color: var(--yellow); }
.site-end nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.legal-entity {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: 36rem;
  line-height: 1.45;
}

.legal-entity strong {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.company-card {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  line-height: 1.5;
}

.company-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.company-card p {
  margin: 0 0 0.55rem;
}

.company-card p:last-child {
  margin-bottom: 0;
}

.slide-in {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.slide-in.visible {
  opacity: 1;
  transform: none;
}

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

  .rail {
    position: sticky;
    top: 0;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.85rem 1rem;
    border-right: none;
    border-bottom: 3px solid var(--yellow);
  }

  .rail > div:first-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
  }

  .rail-brand { font-size: 1.7rem; flex: 1; }
  .rail-brand small { display: none; }
  .rail-foot { display: none; }

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
    width: 2.4rem;
    height: 2.4rem;
    background: var(--yellow);
    color: var(--black);
    border: 2px solid var(--yellow);
    cursor: pointer;
    font-weight: 700;
  }

  .rail-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--black);
    padding: 0.75rem;
    margin: 0;
    border-bottom: 3px solid var(--yellow);
    z-index: 60;
  }

  .rail-nav.open { display: grid; }

  .billboard,
  .two-col,
  .stat-strip,
  .process,
  .contact-grid,
  .legal-wrap,
  .panel-head,
  .block {
    grid-template-columns: 1fr;
  }

  .billboard-media {
    border-left: none;
    border-top: 3px solid var(--black);
    min-height: 240px;
  }

  .two-col > * { border-right: none; border-bottom: 3px solid var(--black); }
  .two-col > *:last-child { border-bottom: none; }
  .stat-strip div,
  .process article { border-right: none; border-bottom: 3px solid var(--black); }
  .process article:last-child,
  .stat-strip div:last-child { border-bottom: none; }
  .contact-side { border-right: none; border-bottom: 3px solid var(--black); }
  .legal-nav { border-right: none; border-bottom: 3px solid var(--black); grid-auto-flow: column; grid-template-columns: repeat(3, 1fr); }
  .block .thumb { height: 160px; }
  .panel-head p { grid-column: 1; }
}

@media (max-width: 600px) {
  .roster a { grid-template-columns: 40px 1fr; }
  .roster .go { display: none; }
}
