:root {
  color-scheme: dark;
  --bg: #090a0c;
  --panel: #111317;
  --panel-soft: #171b20;
  --text: #f7f3ec;
  --muted: #b8b2aa;
  --quiet: #79736c;
  --line: rgba(255, 255, 255, 0.13);
  --red: #e14332;
  --red-soft: #ff6a55;
  --cyan: #81c7d4;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px);
  color: var(--text);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    padding 180ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 12, 0.78);
  backdrop-filter: blur(18px);
  padding-block: 15px;
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(225, 67, 50, 0.95), rgba(129, 199, 212, 0.24)),
    #15181d;
  box-shadow: 0 10px 30px rgba(225, 67, 50, 0.28);
}

.site-nav {
  gap: clamp(18px, 3vw, 38px);
  color: rgba(247, 243, 236, 0.78);
  font-size: 14px;
  font-weight: 650;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--text);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 112px clamp(20px, 4vw, 56px) 70px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  opacity: 0.86;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 10, 12, 0.94) 0%, rgba(9, 10, 12, 0.74) 36%, rgba(9, 10, 12, 0.2) 72%),
    linear-gradient(180deg, rgba(9, 10, 12, 0.28) 0%, rgba(9, 10, 12, 0.2) 58%, #090a0c 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--red-soft);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(54px, 9vw, 124px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin: 28px 0 0;
  color: rgba(247, 243, 236, 0.82);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 760;
}

.button.primary {
  background: var(--text);
  color: #111317;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.intro-band,
.section,
.systems-band,
.contact-band {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 4vw, 56px);
}

.intro-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0c0e11;
}

.intro-grid,
.section,
.systems-band,
.contact-band {
  max-width: var(--max);
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(34px, 8vw, 100px);
  align-items: center;
}

.intro-grid > p {
  margin: 0;
  color: rgba(247, 243, 236, 0.88);
  font-size: clamp(24px, 4vw, 46px);
  line-height: 1.08;
}

.metrics {
  display: grid;
  gap: 16px;
  margin: 0;
}

.metrics div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 66px;
  border-top: 1px solid var(--line);
}

.metrics dt {
  color: var(--red-soft);
  font-weight: 800;
}

.metrics dd {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.section-heading {
  max-width: 720px;
  margin-bottom: clamp(34px, 6vw, 70px);
}

h2 {
  margin: 0;
  font-size: clamp(34px, 6vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

.work-index {
  margin-bottom: auto;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 820;
}

h3 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.06;
}

.work-card p,
.systems-copy p {
  margin: 0;
  color: var(--muted);
}

.systems-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(38px, 7vw, 88px);
  align-items: center;
}

.systems-copy p:last-child {
  max-width: 560px;
  margin-top: 24px;
  font-size: 18px;
}

.system-lines {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 26%, rgba(225, 67, 50, 0.3), transparent 26%),
    radial-gradient(circle at 78% 68%, rgba(129, 199, 212, 0.24), transparent 24%),
    linear-gradient(135deg, #12161b, #090a0c 70%);
}

.system-lines span {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: scan 6s linear infinite;
}

.system-lines span:nth-child(1) {
  top: 18%;
}

.system-lines span:nth-child(2) {
  top: 38%;
  animation-delay: -1.6s;
}

.system-lines span:nth-child(3) {
  top: 62%;
  animation-delay: -3s;
}

.system-lines span:nth-child(4) {
  top: 82%;
  animation-delay: -4.4s;
}

@keyframes scan {
  0% {
    transform: translateX(-26%);
    opacity: 0.15;
  }

  50% {
    opacity: 0.9;
  }

  100% {
    transform: translateX(26%);
    opacity: 0.15;
  }
}

.notes-section {
  border-top: 1px solid var(--line);
}

.notes-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.notes-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.notes-list span {
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.14;
}

.notes-list time {
  color: var(--quiet);
  white-space: nowrap;
}

.contact-band {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
  border-top: 1px solid var(--line);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-weight: 760;
}

.page {
  min-height: 100svh;
  padding: 112px clamp(20px, 4vw, 56px) clamp(64px, 8vw, 112px);
}

.page-hero,
.case-list,
.principles-grid,
.page-notes,
.article {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero {
  padding: clamp(42px, 7vw, 90px) 0 clamp(48px, 7vw, 84px);
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(46px, 8vw, 104px);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
}

.contact-page .button {
  margin-top: 34px;
}

.case-list {
  display: grid;
  gap: 20px;
}

.case-study {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.case-study img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  background: #101216;
}

.case-study h2,
.principles-grid h2 {
  font-size: clamp(28px, 4vw, 52px);
}

.case-study p:not(.eyebrow),
.principles-grid p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.principles-grid article {
  min-height: 280px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.article {
  max-width: 780px;
  padding-top: clamp(42px, 7vw, 90px);
}

.article h1 {
  font-size: clamp(40px, 7vw, 82px);
}

.article p:not(.eyebrow) {
  color: rgba(247, 243, 236, 0.84);
  font-size: 20px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--cyan);
  font-weight: 760;
}

@media (max-width: 840px) {
  .menu-button {
    display: grid;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(13, 15, 18, 0.96);
    backdrop-filter: blur(20px);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 18px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(9, 10, 12, 0.94), rgba(9, 10, 12, 0.54)),
      linear-gradient(180deg, rgba(9, 10, 12, 0.1), #090a0c 100%);
  }

  .intro-grid,
  .systems-band {
    grid-template-columns: 1fr;
  }

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

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

  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .case-study,
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .principles-grid article {
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  .hero-actions,
  .button,
  .contact-link {
    width: 100%;
  }

  .notes-list a {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .system-lines {
    min-height: 300px;
  }
}
