:root {
  --ink: #f5f3ee;
  --paper: #f4f0e8;
  --charcoal: #080909;
  --charcoal-2: #0f1010;
  --line: rgba(245, 243, 238, 0.13);
  --muted: rgba(245, 243, 238, 0.58);
  --acid: #dfff2f;
  --mint: #6be7c8;
  --coral: #ff725e;
  --blue: #7ba8ff;
  --dark-text: #151515;
  --dark-muted: #646158;
  --max: 1480px;
  --pad: clamp(18px, 3vw, 44px);
  --mono: "SFMono-Regular", "Menlo", "Consolas", monospace;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  mix-blend-mode: screen;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 15%, rgba(111, 231, 200, 0.08), transparent 34%),
    linear-gradient(180deg, #080909 0%, #090a0a 42%, #101111 100%);
}

.mono {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  line-height: 1.4;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 22px var(--pad);
  color: var(--ink);
  mix-blend-mode: difference;
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  width: max-content;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.85;
  letter-spacing: 0.03em;
}

.brand-mark span:first-child {
  font-size: clamp(19px, 2vw, 27px);
}

.brand-mark span:last-child {
  font-size: clamp(9px, 0.9vw, 12px);
  margin-top: 4px;
  color: rgba(245, 243, 238, 0.68);
}

.nav-pill {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(245, 243, 238, 0.24);
  border-radius: 999px;
  background: rgba(8, 9, 9, 0.62);
  backdrop-filter: blur(18px);
}

.nav-pill a {
  border-radius: 999px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(245, 243, 238, 0.72);
}

.nav-pill a:hover {
  background: var(--acid);
  color: #060606;
}

.header-cta,
.contact-form button {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(245, 243, 238, 0.27);
  border-radius: 999px;
  background: rgba(8, 9, 9, 0.42);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.header-cta:hover,
.contact-form button:hover {
  background: var(--acid);
  border-color: var(--acid);
  color: #050505;
}

.button-icon {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.button-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 112px var(--pad) 94px;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 78px;
  height: 1px;
  background: var(--line);
}

.signal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.62;
}

.hero-index {
  position: absolute;
  top: 108px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(245, 243, 238, 0.42);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  text-align: center;
  transform: translateY(clamp(-52px, -5vh, -22px));
}

.eyebrow {
  margin: 0 0 20px;
  color: rgba(245, 243, 238, 0.46);
  font-family: var(--mono);
  font-size: clamp(10px, 1vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
blockquote {
  margin: 0;
}

section {
  scroll-margin-top: 104px;
}

.hero h1 {
  margin: 0 auto;
  max-width: 13ch;
  font-size: clamp(58px, 14.4vw, 236px);
  line-height: 0.78;
  font-weight: 950;
  text-transform: uppercase;
  color: #fffefa;
}

.hero-line {
  width: min(850px, 94vw);
  margin: 28px auto 0;
  color: rgba(245, 243, 238, 0.84);
  font-family: var(--serif);
  font-size: clamp(24px, 4.5vw, 70px);
  font-style: italic;
  line-height: 0.98;
}

.hero-meta {
  position: absolute;
  z-index: 2;
  left: var(--pad);
  right: var(--pad);
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hero-meta div:nth-child(2) {
  text-align: center;
}

.hero-meta div:nth-child(3) {
  text-align: right;
}

.hero-meta span {
  color: rgba(245, 243, 238, 0.46);
}

.hero-meta strong {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ticker-band {
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #090a0a;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  min-height: 66px;
  padding: 0 20px;
  color: rgba(245, 243, 238, 0.62);
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.ticker-track span::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 28px;
  background: var(--acid);
  transform: rotate(45deg);
}

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

.section-block,
.section-grid {
  width: min(calc(100% - (var(--pad) * 2)), var(--max));
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) 1fr;
  gap: clamp(30px, 6vw, 120px);
  padding: clamp(90px, 13vw, 190px) 0;
}

.intro h2,
.proof h2,
.section-head h2,
.contact-copy h2 {
  max-width: 980px;
  font-size: clamp(42px, 7.6vw, 126px);
  line-height: 0.92;
  font-weight: 900;
  text-transform: uppercase;
}

.intro p:not(.section-index),
.contact-copy p {
  max-width: 700px;
  margin-top: 28px;
  color: rgba(245, 243, 238, 0.68);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.36;
}

.section-index {
  padding-top: 11px;
  color: rgba(245, 243, 238, 0.42);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) 1fr;
  gap: clamp(30px, 6vw, 120px);
  align-items: start;
  padding-bottom: clamp(34px, 5vw, 72px);
}

.work {
  padding: clamp(78px, 9vw, 130px) 0;
  border-top: 1px solid var(--line);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(245, 243, 238, 0.14);
  border: 1px solid rgba(245, 243, 238, 0.14);
}

.work-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #0d0e0e;
  overflow: hidden;
}

.case-visual {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background: #141515;
}

.case-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 243, 238, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 243, 238, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.38;
}

.case-visual span {
  position: absolute;
  display: block;
  border: 1px solid rgba(245, 243, 238, 0.38);
  background: rgba(245, 243, 238, 0.08);
}

.case-visual-a {
  background: linear-gradient(135deg, #151515, #26352f);
}

.case-visual-a span:nth-child(1) {
  width: 42%;
  height: 62%;
  left: 12%;
  top: 18%;
  background: var(--paper);
}

.case-visual-a span:nth-child(2) {
  width: 28%;
  height: 36%;
  right: 13%;
  top: 13%;
  background: var(--acid);
}

.case-visual-a span:nth-child(3) {
  width: 34%;
  height: 18%;
  right: 18%;
  bottom: 16%;
  background: var(--coral);
}

.case-visual-b {
  background: linear-gradient(135deg, #111213, #202840);
}

.case-visual-b span:nth-child(1) {
  width: 72%;
  height: 12%;
  left: 14%;
  top: 26%;
  background: var(--blue);
}

.case-visual-b span:nth-child(2) {
  width: 44%;
  height: 12%;
  left: 14%;
  top: 46%;
  background: var(--acid);
}

.case-visual-b span:nth-child(3) {
  width: 28%;
  height: 28%;
  right: 14%;
  bottom: 17%;
  border-radius: 50%;
  background: var(--mint);
}

.case-visual-c {
  background: linear-gradient(135deg, #111, #33231f);
}

.case-visual-c span:nth-child(1) {
  width: 52%;
  height: 52%;
  left: 25%;
  top: 20%;
  transform: rotate(45deg);
  background: var(--coral);
}

.case-visual-c span:nth-child(2) {
  width: 32%;
  height: 32%;
  left: 12%;
  bottom: 12%;
  background: var(--paper);
}

.case-visual-c span:nth-child(3) {
  width: 30%;
  height: 10%;
  right: 10%;
  top: 18%;
  background: var(--acid);
}

.case-visual-d {
  background: linear-gradient(135deg, #121413, #17352f);
}

.case-visual-d span:nth-child(1) {
  width: 72%;
  height: 72%;
  left: 14%;
  top: 14%;
  border-radius: 50%;
  background: rgba(107, 231, 200, 0.22);
}

.case-visual-d span:nth-child(2) {
  width: 34%;
  height: 68%;
  left: 33%;
  top: 16%;
  background: var(--paper);
}

.case-visual-d span:nth-child(3) {
  width: 70%;
  height: 1px;
  left: 15%;
  top: 50%;
  background: var(--acid);
}

.work-card-copy {
  padding: 24px;
}

.work-card-copy p {
  margin-bottom: 18px;
  color: rgba(245, 243, 238, 0.42);
}

.work-card-copy h3 {
  margin-bottom: 12px;
  font-size: clamp(24px, 2.5vw, 39px);
  line-height: 0.98;
  text-transform: uppercase;
}

.work-card-copy span {
  display: block;
  color: rgba(245, 243, 238, 0.58);
  font-size: 15px;
  line-height: 1.35;
}

.system {
  padding: clamp(86px, 10vw, 150px) 0;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(245, 243, 238, 0.16);
  border-left: 1px solid rgba(245, 243, 238, 0.16);
}

.system-item {
  min-height: 360px;
  padding: clamp(22px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(245, 243, 238, 0.16);
  border-bottom: 1px solid rgba(245, 243, 238, 0.16);
}

.system-item span {
  color: var(--acid);
}

.system-item h3 {
  margin-top: auto;
  font-size: clamp(34px, 4vw, 68px);
  line-height: 0.9;
  text-transform: uppercase;
}

.system-item p {
  margin-top: 22px;
  color: rgba(245, 243, 238, 0.62);
  font-size: 16px;
  line-height: 1.44;
}

.proof {
  width: 100%;
  max-width: none;
  padding-left: var(--pad);
  padding-right: var(--pad);
  background: var(--paper);
  color: var(--dark-text);
}

.proof .section-index {
  color: rgba(21, 21, 21, 0.44);
}

.proof h2 {
  max-width: 1100px;
}

.proof blockquote {
  max-width: 850px;
  margin-top: 42px;
  color: var(--dark-muted);
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 52px);
  font-style: italic;
  line-height: 1.03;
}

.contact {
  padding: clamp(86px, 10vw, 150px) 0;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.95fr 0.72fr;
  gap: clamp(34px, 6vw, 110px);
  align-items: start;
  padding-top: clamp(20px, 4vw, 52px);
  border-top: 1px solid rgba(245, 243, 238, 0.15);
}

.contact-copy a {
  display: inline-block;
  margin-top: 36px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label span {
  color: rgba(245, 243, 238, 0.52);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(245, 243, 238, 0.18);
  border-radius: 8px;
  padding: 15px 16px;
  background: rgba(245, 243, 238, 0.06);
  color: var(--ink);
  outline: none;
}

.contact-form textarea {
  min-height: 134px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--acid);
}

.contact-form button {
  justify-self: start;
  margin-top: 6px;
  border-radius: 999px;
}

.form-status {
  min-height: 22px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 30px;
  align-items: end;
  padding: 34px var(--pad);
  border-top: 1px solid rgba(245, 243, 238, 0.13);
  color: rgba(245, 243, 238, 0.48);
}

.site-footer div:first-child {
  display: grid;
  gap: 8px;
}

.site-footer strong {
  color: var(--ink);
  text-transform: uppercase;
}

.site-footer span {
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.footer-links a:hover {
  color: var(--acid);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .ticker-track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1120px) {
  .work-grid,
  .system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-card {
    min-height: 470px;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding-top: 18px;
  }

  .nav-pill {
    display: none;
  }

  .hero {
    min-height: 86svh;
    align-items: start;
    padding-top: clamp(150px, 21svh, 190px);
    padding-bottom: 104px;
  }

  .hero-copy {
    transform: none;
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 72px);
    line-height: 0.86;
  }

  .hero-index {
    top: 86px;
    left: var(--pad);
    transform: none;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    bottom: 22px;
  }

  .hero-meta div,
  .hero-meta div:nth-child(2),
  .hero-meta div:nth-child(3) {
    text-align: left;
  }

  .hero-meta div:nth-child(2),
  .hero-meta div:nth-child(3) {
    display: none;
  }

  .hero-meta {
    display: none;
  }

  .section-grid,
  .section-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-index {
    padding-top: 0;
  }

  .intro h2,
  .proof h2,
  .section-head h2,
  .contact-copy h2 {
    font-size: clamp(40px, 13vw, 78px);
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --pad: 16px;
  }

  .site-header {
    gap: 10px;
  }

  .header-cta {
    grid-column: 2;
    min-height: 38px;
    padding: 0 12px;
    font-size: 10px;
  }

  .brand-mark span:first-child {
    font-size: 20px;
  }

  .hero {
    min-height: 82svh;
    padding-top: clamp(150px, 22svh, 182px);
    padding-bottom: 94px;
  }

  .hero::after {
    bottom: 82px;
  }

  .hero-line {
    font-size: clamp(24px, 8.6vw, 42px);
  }

  .ticker-track span {
    min-height: 50px;
    font-size: 11px;
    padding: 0 16px;
  }

  .ticker-track span::after {
    margin-left: 22px;
  }

  .work-grid,
  .system-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    min-height: 430px;
  }

  .case-visual {
    min-height: 270px;
  }

  .system-item {
    min-height: 270px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
