:root {
  --black: #090a08;
  --paper: #f1f0e9;
  --white: #ffffff;
  --lime: #dcff45;
  --mint: #9ff4c5;
  --red: #ff513f;
  --line: rgba(9, 10, 8, 0.2);
  --dark-line: rgba(255, 255, 255, 0.2);
  --muted: #64675f;
  --max: 1240px;
  --sans: "Space Grotesk", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--black); background: var(--paper); font-family: var(--sans); line-height: 1.45; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
::selection { color: var(--black); background: var(--lime); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 68px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  border-bottom: 1px solid var(--dark-line);
  transition: min-height 180ms ease, background-color 180ms ease;
}
.site-header.scrolled { min-height: 56px; background: rgba(9, 10, 8, 0.94); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; font-weight: 700; }
.brand-box { display: grid; width: 36px; height: 36px; place-items: center; color: var(--black); background: var(--lime); font-family: var(--mono); font-size: 12px; }
.desktop-nav { display: flex; gap: 28px; }
.desktop-nav a, .header-cta { font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.desktop-nav a { color: rgba(255,255,255,.62); }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--lime); }
.header-cta { justify-self: end; color: var(--lime); }
.menu-button, .mobile-nav { display: none; }

.hero {
  position: relative;
  display: flex;
  min-height: max(720px, calc(100svh - 64px));
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: linear-gradient(var(--dark-line) 1px, transparent 1px), linear-gradient(90deg, var(--dark-line) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-portrait { position: absolute; inset: 0 0 0 auto; width: min(46vw, 680px); height: 100%; object-fit: cover; object-position: center; opacity: .78; filter: saturate(.72) brightness(.74) contrast(1.12); }
.hero-content { position: relative; z-index: 2; width: min(100%, var(--max)); margin: auto; padding: 124px 24px 72px; }
.mono-label { margin: 0; color: var(--lime); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.mono-label.dark { color: #315b1c; }
.hero h1 { margin: 26px 0 30px; max-width: 56vw; font-size: clamp(66px, 7.5vw, 108px); line-height: .84; letter-spacing: 0; }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, .52fr); gap: 4vw; align-items: end; width: min(760px, 55vw); }
.hero-statement { margin: 0; font-size: clamp(28px, 3.2vw, 44px); font-weight: 600; line-height: 1.08; }
.hero-statement mark { display: inline; padding: 0 .08em; color: var(--black); background: var(--lime); }
.hero-side { max-width: 320px; }
.hero-side p { margin: 0 0 24px; color: rgba(255,255,255,.65); }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: 1px solid transparent; font-family: var(--mono); font-size: 12px; text-transform: uppercase; transition: transform 150ms ease, background-color 150ms ease; }
.button:hover { transform: translateY(-3px); }
.button.lime { color: var(--black); background: var(--lime); }
.hero-code { position: absolute; right: 24px; bottom: 20px; z-index: 2; color: rgba(255,255,255,.42); font-family: var(--mono); font-size: 10px; }

.ticker { overflow: hidden; color: var(--black); background: var(--lime); border-bottom: 2px solid var(--black); }
.ticker-track { display: flex; width: max-content; align-items: center; min-height: 64px; animation: marquee 28s linear infinite; }
.ticker span { padding: 0 30px; font-size: 24px; font-weight: 700; white-space: nowrap; }
.ticker i { font-style: normal; font-size: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 2px solid var(--black); background: var(--white); }
.stats > div { min-height: 150px; padding: 28px max(20px, calc((100vw - var(--max)) / 8)); border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats strong { display: block; font-size: clamp(34px, 4vw, 58px); line-height: 1; }
.stats span { display: block; max-width: 190px; margin-top: 14px; color: var(--muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; }

.services { padding: 112px max(24px, calc((100vw - var(--max)) / 2)); background: var(--paper); scroll-margin-top: 56px; }
.section-head { display: grid; grid-template-columns: .45fr 1.55fr; gap: 6vw; margin-bottom: 72px; }
.section-head h2 { margin: 0; max-width: 900px; font-size: clamp(44px, 6vw, 82px); line-height: .94; letter-spacing: 0; }
.service-rows { border-top: 2px solid var(--black); }
.service-rows article { display: grid; grid-template-columns: 52px minmax(220px,.55fr) minmax(300px,1fr) 190px; gap: 24px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--line); }
.service-id, .service-rows b { font-family: var(--mono); font-size: 11px; }
.service-id { color: #315b1c; }
.service-rows h3 { margin: 0; font-size: 27px; line-height: 1; }
.service-rows p { margin: 0; color: var(--muted); }
.service-rows b { justify-self: end; font-weight: 400; }

.projects { padding: 112px max(24px, calc((100vw - var(--max)) / 2)); color: var(--white); background: var(--black); scroll-margin-top: 56px; }
.projects-head { margin-bottom: 56px; }
.projects-head .mono-label { margin-bottom: 26px; }
.projects-head h2 { margin: 0; font-size: clamp(46px, 5.5vw, 72px); line-height: .94; }
.case { min-width: 0; border-top: 1px solid var(--dark-line); }
.case-hero { display: grid; grid-template-columns: 1.35fr .65fr; gap: 42px; padding: 36px 0 80px; }
.case-media { display: block; overflow: hidden; background: #20221d; }
.case-media img { aspect-ratio: 16 / 10; object-fit: cover; transition: transform 350ms ease, filter 350ms ease; }
.case-media:hover img { transform: scale(1.02); filter: saturate(1.12); }
.case-copy { align-self: end; }
.case-number { color: var(--lime); font-family: var(--mono); font-size: 10px; }
.case-copy h3 { margin: 15px 0; font-size: clamp(28px, 3.4vw, 48px); line-height: .98; }
.case-copy p { max-width: 500px; margin: 0; color: rgba(255,255,255,.64); }
.case-copy small { display: block; margin-top: 22px; color: rgba(255,255,255,.62); font-family: var(--mono); }
.case-copy a { display: inline-flex; margin-top: 28px; padding-bottom: 5px; color: var(--lime); border-bottom: 1px solid var(--lime); font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.case-grid .case { padding: 32px 0 62px; }
.case-grid .case-copy { padding-top: 24px; }
.case-grid .case-copy h3 { font-size: 32px; }
.case-grid .case:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.case-grid .case:last-child .case-copy { align-self: end; padding-bottom: 20px; }

.experience { display: grid; grid-template-columns: .85fr 1.15fr; gap: 8vw; padding: 112px max(24px, calc((100vw - var(--max)) / 2)); background: var(--lime); scroll-margin-top: 56px; }
.experience-title h2 { margin: 22px 0; font-size: clamp(46px, 6vw, 78px); line-height: .9; }
.experience-title > p:last-child { max-width: 430px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.experience-list { border-top: 2px solid var(--black); }
.experience-list article { display: grid; grid-template-columns: 116px 170px 1fr; gap: 18px; padding: 25px 0; border-bottom: 1px solid rgba(9,10,8,.24); }
.experience-list time { font-family: var(--mono); font-size: 11px; }
.experience-list h3, .experience-list p { margin: 0; }
.experience-list h3 { font-size: 20px; }
.experience-list p { color: rgba(9,10,8,.66); }

.method { display: grid; grid-template-columns: 1fr .85fr; gap: 8vw; padding: 112px max(24px, calc((100vw - var(--max)) / 2)); background: var(--paper); }
.method h2 { margin: 22px 0 0; font-size: clamp(44px, 5.5vw, 76px); line-height: .92; }
.method h2 span { color: #d83a2e; }
.method ol { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--black); }
.method li { display: grid; grid-template-columns: 45px 190px 1fr; gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.method li b { color: #315b1c; font-family: var(--mono); font-size: 11px; }
.method li strong { font-size: 19px; }
.method li p { margin: 0; color: var(--muted); }

.catalog-promo { padding: 92px max(24px, calc((100vw - var(--max)) / 2)); color: var(--white); background: var(--black); border-top: 1px solid var(--dark-line); }
.catalog-promo > div { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; margin-top: 24px; }
.catalog-promo h2 { max-width: 850px; margin: 0; font-size: clamp(42px, 5.5vw, 72px); line-height: .94; }
.catalog-promo a { display: grid; gap: 9px; min-width: 240px; padding: 20px 0 8px; color: var(--lime); border-bottom: 2px solid var(--lime); font-family: var(--mono); font-size: 13px; text-transform: uppercase; }
.catalog-promo a span { color: rgba(255,255,255,.58); font-size: 10px; }
.contact { padding: 100px max(24px, calc((100vw - var(--max)) / 2)); color: var(--black); background: var(--paper); border-top: 1px solid var(--line); }
.contact .mono-label { color: #315b1c; }
.contact h2 { margin: 24px 0 0; font-size: clamp(58px, 9vw, 126px); line-height: .84; }
.contact-link { display: inline-flex; margin-top: 58px; font-size: clamp(44px, 6.5vw, 90px); font-weight: 600; line-height: 1; border-bottom: 6px solid var(--black); }
.contact-meta { display: flex; flex-wrap: wrap; gap: 16px 34px; margin-top: 64px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; }

footer { display: flex; justify-content: space-between; gap: 24px; padding: 24px max(24px, calc((100vw - var(--max)) / 2)); color: rgba(255,255,255,.55); background: var(--black); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }

@media (max-width: 1080px) {
  .hero-bottom { grid-template-columns: 1fr; gap: 22px; width: min(480px, 50vw); }
  .hero-side { max-width: 420px; }
  .service-rows article { grid-template-columns: 44px 220px 1fr; }
  .service-rows b { display: none; }
  .experience { grid-template-columns: 1fr; }
  .method { grid-template-columns: 1fr; }
  .catalog-promo > div { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 58px; padding: 0 18px; }
  .desktop-nav, .header-cta { display: none; }
  .menu-button { display: grid; width: 42px; height: 42px; place-content: center; gap: 7px; padding: 0; border: 1px solid var(--dark-line); background: transparent; }
  .menu-button span { display: block; width: 19px; height: 1px; background: currentColor; }
  .mobile-nav { position: fixed; inset: 56px 0 0; z-index: -1; padding: 30px 18px; color: var(--white); background: var(--black); }
  .mobile-nav:not([hidden]) { display: flex; flex-direction: column; }
  .mobile-nav a { padding: 17px 0; border-bottom: 1px solid var(--dark-line); font-size: 30px; font-weight: 600; }
  .hero-portrait { inset: 58px 0 auto; width: 100%; height: 430px; object-position: center 34%; opacity: .62; filter: saturate(.68) brightness(.6) contrast(1.15); }
  .hero-content { padding-top: 330px; }
  .hero h1 { max-width: 720px; }
  .hero-bottom { width: 100%; max-width: 620px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(2) { border-right: 0; }
  .section-head { grid-template-columns: 1fr; gap: 30px; }
  .case-hero { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .brand > span:last-child { display: none; }
  .hero { min-height: calc(100svh - 58px); }
  .hero-grid { background-size: 44px 44px; }
  .hero-content { align-self: stretch; margin: 0 auto; padding: 285px 18px 54px; }
  .hero-portrait { height: 355px; object-position: center 30%; }
  .hero h1 { margin-top: 22px; font-size: clamp(48px, 14vw, 60px); }
  .hero-bottom { grid-template-columns: 1fr; gap: 28px; }
  .hero-statement { font-size: 28px; }
  .hero-side { max-width: none; }
  .button { width: 100%; justify-content: center; }
  .hero-code { display: none; }
  .ticker-track { min-height: 56px; }
  .ticker span { padding: 0 20px; font-size: 20px; }
  .stats > div { min-height: 126px; padding: 22px 18px; border-bottom: 1px solid var(--line); }
  .services, .projects, .experience, .method { padding: 80px 18px; }
  .section-head h2 { font-size: 40px; }
  .service-rows article { grid-template-columns: 34px 1fr; gap: 13px; padding: 24px 0; }
  .service-rows p { grid-column: 2; }
  .service-rows h3 { font-size: 23px; }
  .projects-head { margin-bottom: 42px; }
  .projects-head .mono-label { margin-bottom: 18px; }
  .projects-head h2 { font-size: 42px; }
  .case-hero { gap: 22px; padding-bottom: 56px; }
  .case-grid { grid-template-columns: 1fr; }
  .case-grid .case:last-child { grid-column: auto; display: block; }
  .case-grid .case:last-child .case-copy { padding-bottom: 0; }
  .case-copy h3, .case-grid .case-copy h3 { font-size: 27px; }
  .experience-title h2 { font-size: 50px; }
  .experience-list article { grid-template-columns: 1fr; gap: 7px; }
  .method h2 { font-size: 43px; }
  .method li { grid-template-columns: 35px 1fr; gap: 10px; }
  .method li p { grid-column: 2; }
  .catalog-promo { padding: 72px 18px; }
  .catalog-promo > div { gap: 30px; }
  .catalog-promo h2 { font-size: 40px; }
  .catalog-promo a { width: 100%; min-width: 0; }
  .contact { padding: 78px 18px; }
  .contact h2 { font-size: 58px; }
  .contact-link { margin-top: 44px; font-size: 52px; border-bottom-width: 4px; }
  .contact-meta { flex-direction: column; gap: 12px; margin-top: 50px; }
  footer { flex-direction: column; padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
