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

:root {
  --ink: #0a0e14;
  --panel: #111820;
  --panel-2: #161f2b;
  --line: #243044;
  --text: #d7e0ec;
  --muted: #7f92a8;
  --signal: #ff5c00;
  --pulse: #1ec8a5;
  --white: #f4f7fb;
  --sidebar: 280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.mono { font-family: 'JetBrains Mono', monospace; }
.signal { color: var(--signal); }
.pulse { color: var(--pulse); }

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 3rem;
}

.brand img { width: 42px; height: 42px; flex-shrink: 0; }

.brand-text strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-text span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.side-nav a {
  padding: 0.75rem 0.9rem;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.side-nav a:hover,
.side-nav a.active {
  color: var(--white);
  border-left-color: var(--signal);
  background: rgba(255, 92, 0, 0.06);
}

.side-meta {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
}

.side-meta a {
  color: var(--pulse);
  word-break: break-all;
}

.side-meta a:hover { text-decoration: underline; }

.content { min-width: 0; }

.mobile-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 14, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.menu-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.45rem 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  cursor: pointer;
}

.panel {
  border-bottom: 1px solid var(--line);
}

.panel-inner {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
}

.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pulse);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.lead {
  margin-top: 1.5rem;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn-signal {
  background: var(--signal);
  color: var(--ink);
}

.btn-signal:hover { background: #ff7424; }

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--pulse);
  color: var(--pulse);
}

.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: calc(100vh - 1px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  border-right: 1px solid var(--line);
}

.hero-copy .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 14, 20, 0.15), rgba(255, 92, 0, 0.18));
}

.hero-statbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.hero-statbar div {
  padding: 1.35rem 1.5rem;
  border-right: 1px solid var(--line);
}

.hero-statbar div:last-child { border-right: 0; }

.hero-statbar strong {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.35rem;
  color: var(--white);
}

.hero-statbar span {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--line);
}

.bento-cell {
  background: var(--panel);
  padding: 1.75rem;
  min-height: 180px;
}

.bento-cell.wide { grid-column: span 6; }
.bento-cell.tall { grid-column: span 4; }
.bento-cell.full { grid-column: span 12; }
.bento-cell.image { padding: 0; overflow: hidden; min-height: 260px; }
.bento-cell.image img { width: 100%; height: 100%; object-fit: cover; }

.bento-cell h3 { margin-bottom: 0.65rem; }
.bento-cell p { color: var(--muted); font-size: 0.95rem; }

.strip {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  background: var(--line);
  scrollbar-width: thin;
}

.strip-card {
  flex: 0 0 280px;
  background: var(--panel-2);
  padding: 1.5rem;
}

.strip-card .num {
  font-family: 'JetBrains Mono', monospace;
  color: var(--signal);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.offset-row {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 3rem;
  align-items: start;
}

.offset-row.reverse { grid-template-columns: 0.65fr 0.35fr; }

.offset-row .aside-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.4rem;
}

.service-row {
  display: grid;
  grid-template-columns: 120px 1fr 320px;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.service-row:first-child { border-top: 1px solid var(--line); }

.service-row .index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  color: var(--line);
  font-weight: 500;
}

.service-row p { color: var(--muted); margin-top: 0.5rem; }

.service-row img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.timeline {
  border-left: 1px solid var(--line);
  padding-left: 1.75rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.82rem;
  top: 0.35rem;
  width: 9px;
  height: 9px;
  background: var(--signal);
  border-radius: 50%;
}

.timeline-item .year {
  font-family: 'JetBrains Mono', monospace;
  color: var(--pulse);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.timeline-item p { color: var(--muted); font-size: 0.95rem; }

.editorial {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
}

.pull-quote {
  border-left: 3px solid var(--signal);
  padding: 1rem 0 1rem 1.5rem;
  margin: 2rem 0;
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 500;
}

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

.contact-form-panel {
  background: var(--panel);
  padding: clamp(2rem, 5vw, 4rem);
  border-right: 1px solid var(--line);
}

.contact-info-panel {
  background: var(--white);
  color: #1a2433;
  padding: clamp(2rem, 5vw, 4rem);
}

.contact-info-panel h2 { color: #0a0e14; }
.contact-info-panel p { color: #4a5c72; margin-top: 0.75rem; }

.info-list {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
}

.info-list li strong {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6a7f96;
  margin-bottom: 0.35rem;
}

.map-wrap {
  margin-top: 2rem;
  border: 1px solid #d5dde8;
  overflow: hidden;
}

.map-wrap iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.8rem 0.9rem;
  font: inherit;
}

.form-group textarea { min-height: 130px; resize: vertical; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--pulse);
}

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

.page-foot {
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.page-foot a { color: var(--pulse); }

@media (max-width: 1100px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-copy { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-statbar { grid-template-columns: repeat(2, 1fr); }
  .hero-statbar div:nth-child(2) { border-right: 0; }
  .bento-cell.wide, .bento-cell.tall { grid-column: span 6; }
  .offset-row, .offset-row.reverse, .editorial { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 80px 1fr; }
  .service-row img { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-panel { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(88vw, 300px);
    transform: translateX(-105%);
    transition: transform 0.3s var(--ease);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-bar { display: flex; }
  .hero-statbar { grid-template-columns: 1fr; }
  .hero-statbar div { border-right: 0; border-bottom: 1px solid var(--line); }
  .bento-cell.wide, .bento-cell.tall, .bento-cell.full { grid-column: span 12; }
}
