:root {
  --bg: #0e0c0c;
  --bg-raised: #141110;
  --bg-hover: #161312;
  --grid-line: #1c1817;
  --line: #2a2524;
  --line-strong: #3a3331;
  --line-btn: #4a4240;
  --text: #f3efec;
  --text-2: #c9c0bb;
  --text-3: #b9b0ab;
  --text-4: #8a807b;
  --red: #d9261c;
  --red-hover: #f0342a;
  --red-text: #ff5a4d;
  --link-hover: #ff4a3d;

  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad-x: clamp(20px, 4vw, 48px);
  --pad-section: clamp(72px, 9vw, 120px);
}

/* Keep anchor targets clear of the sticky header (taller once the nav wraps). */
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (max-width: 600px) { html { scroll-padding-top: 132px; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Archivo, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--link-hover); }
::selection { background: var(--red); color: #fff; }

h1, h2, h3 { margin: 0; text-transform: uppercase; }
p { margin: 0; text-wrap: pretty; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-text);
  margin-bottom: 16px;
}

.section-title {
  font-weight: 900;
  font-stretch: 80%;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 12, 12, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 36px; height: 36px; border-radius: 6px; display: block; }
.brand span {
  font-weight: 800;
  font-stretch: 112%;
  font-size: 17px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.site-nav a { color: var(--text-3); }
.site-nav a:hover { color: #fff; }
.site-nav .nav-cta {
  color: #fff;
  background: var(--red);
  padding: 10px 16px;
  border-radius: 2px;
}
.site-nav .nav-cta:hover { background: var(--red-hover); color: #fff; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.7;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  right: -6%;
  top: -10%;
  width: 52vw;
  max-width: 720px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(217, 38, 28, 0.22), transparent 65%);
  pointer-events: none;
}
.hero-body {
  position: relative;
  padding-top: clamp(72px, 11vw, 150px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--red);
  flex: none;
}
.hero h1 {
  font-weight: 900;
  font-stretch: 78%;
  font-size: clamp(52px, 9.4vw, 136px);
  line-height: 0.9;
  letter-spacing: -0.015em;
  max-width: 11ch;
  text-wrap: balance;
}
.accent { color: var(--red); }
.hero-sub {
  margin-top: 36px;
  max-width: 600px;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--text-2);
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  font-size: 16px;
  border-radius: 2px;
}
.btn-primary { background: var(--red); color: #fff; font-weight: 700; }
.btn-primary:hover { background: var(--red-hover); color: #fff; }
.btn-primary .arrow { font-family: var(--mono); }
.btn-secondary {
  border: 1px solid var(--line-btn);
  color: var(--text);
  font-weight: 600;
}
.btn-secondary:hover { border-color: var(--text); color: #fff; }

.credits {
  position: relative;
  border-top: 1px solid var(--line);
  background: rgba(14, 12, 12, 0.6);
}
.credits .container {
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 20px 36px;
  flex-wrap: wrap;
}
.credits-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
}
.credits-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 800;
  font-stretch: 88%;
  font-size: clamp(16px, 1.6vw, 20px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Stats */
.stats { border-bottom: 1px solid var(--line); }
.stats .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.stat { padding: 40px 24px; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; border-right: 0; }
.stat-num {
  font-weight: 900;
  font-stretch: 78%;
  font-size: 64px;
  line-height: 1;
}
.stat-label {
  margin-top: 10px;
  color: var(--text-3);
  font-size: 15px;
  line-height: 1.4;
}
/* When the three columns stack, switch dividers to horizontal. */
@media (max-width: 760px) {
  .stats .container { grid-template-columns: 1fr; }
  .stat,
  .stat:first-child,
  .stat:last-child {
    padding: 32px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .stat:last-child { border-bottom: 0; }
}

/* Services */
.section { border-bottom: 1px solid var(--line); }
.section > .container {
  padding-top: var(--pad-section);
  padding-bottom: var(--pad-section);
}
.services-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.services-intro {
  max-width: 420px;
  color: var(--text-3);
  font-size: 17px;
  line-height: 1.55;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--bg);
  padding: 36px 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card:hover { background: var(--bg-hover); }
.card-letter { font-family: var(--mono); font-size: 13px; color: var(--red); }
.card h3 {
  font-weight: 800;
  font-stretch: 90%;
  font-size: 26px;
  line-height: 1.1;
}
.card p { color: var(--text-3); font-size: 16px; line-height: 1.55; }

/* Work */
.work-title { margin-bottom: 56px; }
.work-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--red);
  margin: 0;
  padding: 0;
  list-style: none;
}
.work-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.work-row:hover { background: var(--bg-raised); }
.work-main {
  flex: 1 1 300px;
  display: flex;
  gap: 20px;
  align-items: baseline;
}
.work-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-4);
  min-width: 28px;
}
.work-row h3 {
  font-weight: 800;
  font-stretch: 90%;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.05;
}
.work-kind {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-text);
}
.work-detail {
  flex: 1.4 1 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.work-detail p { color: var(--text-2); font-size: 17px; line-height: 1.55; }
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tags li {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  border: 1px solid var(--line-strong);
  padding: 5px 10px;
  border-radius: 2px;
}

/* In development */
.in-dev { border-bottom: 1px solid var(--line); background: var(--bg-raised); }
.in-dev .container {
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: clamp(56px, 7vw, 88px);
}
.in-dev .eyebrow { display: flex; align-items: center; gap: 10px; }
.in-dev .eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}
.in-dev h2 {
  font-weight: 900;
  font-stretch: 80%;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 0.98;
}
.in-dev h2 + p {
  margin-top: 20px;
  max-width: 520px;
  color: var(--text-3);
  font-size: 17px;
  line-height: 1.55;
}

/* Contact */
.contact { position: relative; overflow: hidden; background: var(--red); color: #fff; }
.contact .container {
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(80px, 10vw, 140px);
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: end;
}
.contact .eyebrow { color: #fff; margin-bottom: 20px; }
.contact h2 {
  font-weight: 900;
  font-stretch: 78%;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  max-width: 10ch;
}
.contact-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 420px;
}
.contact-body p { font-size: 18px; line-height: 1.5; }
.contact-email {
  font-weight: 800;
  font-stretch: 90%;
  font-size: clamp(24px, 2.8vw, 34px);
  color: #fff;
  border-bottom: 3px solid var(--bg);
  padding-bottom: 6px;
  align-self: flex-start;
}
.contact-email:hover { color: var(--bg); }

/* Footer */
.site-footer .container {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-4); }
.footer-links a:hover { color: #fff; }
