:root {
  color-scheme: light;
  --ink: #111712;
  --muted: #59615b;
  --paper: #f6f3ec;
  --panel: #ffffff;
  --line: #d7d0c4;
  --green: #2d6d4a;
  --green-dark: #173f2d;
  --copper: #a75f31;
  --blue: #345b7c;
  --dark: #0d1314;
  --shadow: 0 18px 50px rgba(17, 23, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(180deg, rgba(8, 12, 13, 0.82), rgba(8, 12, 13, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  font-weight: 750;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 42%, rgba(255, 255, 255, 0.8) 42% 58%, transparent 58%),
    linear-gradient(0deg, transparent 42%, rgba(255, 255, 255, 0.8) 42% 58%, transparent 58%),
    radial-gradient(circle, rgba(52, 91, 124, 0.85), rgba(45, 109, 74, 0.85));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: #fff;
}

.hero {
  position: relative;
  min-height: min(820px, 92vh);
  display: grid;
  align-items: end;
  padding: 120px clamp(20px, 5vw, 72px) 78px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 12, 13, 0.98) 0%, rgba(8, 12, 13, 0.78) 39%, rgba(8, 12, 13, 0.22) 72%),
    url("assets/hero-lab.png") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 12, 13, 0.48), rgba(8, 12, 13, 0));
  pointer-events: none;
}

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

.eyebrow,
.section-kicker,
.project-label {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #d8a276;
}

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

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

p {
  line-height: 1.65;
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.button.primary {
  background: var(--green);
  color: #fff;
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.section,
.section-band {
  padding: clamp(64px, 9vw, 122px) clamp(20px, 5vw, 72px);
}

.section-band {
  background: #ebe5da;
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro-grid,
.market-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 7vw, 92px);
  align-items: start;
}

.intro-grid p,
.market-points p,
.contact-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 34px;
}

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

.project-card {
  min-height: 310px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.project-card.accent {
  border-top: 5px solid var(--blue);
}

.project-card p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
}

.market {
  border-block: 1px solid var(--line);
}

.market-points {
  display: grid;
  gap: 18px;
}

.market-points p {
  padding-left: 18px;
  border-left: 4px solid var(--green);
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.principle {
  min-height: 270px;
  padding: 24px;
  background: var(--paper);
}

.principle-index {
  display: block;
  margin-bottom: 42px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
}

.principle p {
  margin: 16px 0 0;
  color: var(--muted);
}

.contact {
  background: var(--dark);
  color: #fff;
}

.contact .section-kicker {
  color: #d8a276;
}

.contact-panel {
  display: grid;
  justify-items: start;
  gap: 24px;
  padding-top: 8px;
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: #080c0d;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 760px;
    background:
      linear-gradient(90deg, rgba(8, 12, 13, 0.96) 0%, rgba(8, 12, 13, 0.76) 58%, rgba(8, 12, 13, 0.28) 100%),
      url("assets/hero-lab.png") center / cover no-repeat;
  }

  .intro-grid,
  .market-grid,
  .contact-grid,
  .project-grid,
  .principles {
    grid-template-columns: 1fr;
  }

  .project-card,
  .principle {
    min-height: auto;
  }

  .principle-index {
    margin-bottom: 24px;
  }
}

@media (max-width: 560px) {
  .brand {
    align-items: flex-start;
    font-size: 0.94rem;
  }

  .hero {
    min-height: 720px;
    padding-top: 104px;
    padding-bottom: 48px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
