:root {
  --ink: #111614;
  --muted: #5d6761;
  --paper: #f8faf7;
  --paper-deep: #edf2ee;
  --line: rgba(17, 22, 20, 0.12);
  --teal: #0c8f82;
  --ember: #e85d3f;
  --gold: #d6a72a;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(19, 27, 24, 0.14);
}

* {
  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;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 22px clamp(20px, 4vw, 56px);
  position: absolute;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  color: var(--white);
  display: inline-flex;
  font-weight: 700;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

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

.nav-links a {
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.nav-links a:hover {
  color: var(--white);
}

.hero {
  background: #151815;
  color: var(--white);
  min-height: 84vh;
  overflow: hidden;
  position: relative;
}

#signal-canvas {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(12, 14, 12, 0.9), rgba(12, 14, 12, 0.64) 42%, rgba(12, 14, 12, 0.2)),
    linear-gradient(0deg, rgba(12, 14, 12, 0.1), rgba(12, 14, 12, 0.7));
  inset: 0;
  position: absolute;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 780px;
  min-height: 84vh;
  padding: 130px clamp(20px, 6vw, 84px) 72px;
  position: relative;
  width: 100%;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #87e5d2;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

p {
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(4rem, 12vw, 8.7rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin-bottom: 26px;
  max-width: 760px;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 22px;
  overflow-wrap: break-word;
}

h3 {
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
  max-width: 660px;
}

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

.button {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.button.secondary {
  color: var(--white);
}

.section {
  padding: clamp(70px, 11vw, 130px) clamp(20px, 5vw, 72px);
}

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

.intro {
  background: var(--paper);
  padding-top: clamp(54px, 8vw, 96px);
}

.intro-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 0.55fr 1.45fr 1fr;
}

.intro h2 {
  max-width: 620px;
}

.intro-grid > *,
.project-card > *,
.approach-grid > *,
.contact-band > * {
  min-width: 0;
}

.intro p:last-child,
.contact-band p,
.approach-grid p,
.project-card p {
  color: var(--muted);
  font-size: 1rem;
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: clamp(28px, 5vw, 54px);
}

.section-heading h2 {
  margin-bottom: 0;
  max-width: 780px;
}

.projects {
  background: var(--paper-deep);
}

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

.project-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: auto 1fr;
  min-height: 280px;
  padding: clamp(24px, 4vw, 42px);
  position: relative;
  box-shadow: var(--shadow);
}

.project-card::after {
  background: linear-gradient(180deg, var(--teal), var(--ember));
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.project-card:nth-child(2)::after {
  background: linear-gradient(180deg, var(--ember), var(--gold));
}

.project-index {
  color: rgba(17, 22, 20, 0.28);
  font-size: 0.86rem;
  font-weight: 800;
}

.approach {
  background: var(--paper);
}

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

.approach-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  min-height: 220px;
  padding: clamp(24px, 4vw, 38px);
}

.dot {
  display: inline-block;
  height: 12px;
  margin-bottom: 28px;
  width: 12px;
}

.dot.teal {
  background: var(--teal);
}

.dot.ember {
  background: var(--ember);
}

.dot.gold {
  background: var(--gold);
}

.contact {
  background: #17201c;
  color: var(--white);
  padding-bottom: clamp(64px, 8vw, 96px);
}

.contact-band {
  display: grid;
  gap: 22px;
  grid-template-columns: 0.95fr 1.35fr;
}

.contact-band h2 {
  margin-bottom: 0;
}

.contact-band p:last-child {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
  max-width: 470px;
}

.site-footer {
  background: #101411;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  padding: 26px clamp(20px, 5vw, 72px);
  text-align: center;
}

.footer-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  justify-content: center;
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

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

.site-footer p {
  margin: 0;
}

.legal-page {
  background: var(--paper);
}

.legal-page .site-header {
  background: rgba(248, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
}

.legal-page .brand {
  color: var(--ink);
}

.legal-page .brand-mark {
  border-color: rgba(17, 22, 20, 0.38);
}

.legal-page .nav-links {
  color: var(--muted);
}

.legal-page .nav-links a:hover {
  color: var(--ink);
}

.legal-main {
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.legal-document {
  margin: 0 auto;
  max-width: 920px;
}

.legal-title {
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(34px, 6vw, 58px);
  padding-bottom: clamp(28px, 4vw, 42px);
}

.legal-title h1 {
  color: var(--ink);
  font-size: clamp(2.7rem, 8vw, 6rem);
  line-height: 0.94;
  margin-bottom: 20px;
  max-width: 840px;
}

.legal-meta {
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0;
}

.legal-section {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.legal-section h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.05;
  margin-bottom: 14px;
}

.legal-section h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 1rem;
}

.legal-section p:last-child,
.legal-section ul:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-section a {
  color: var(--teal);
  font-weight: 800;
}

.legal-note {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  margin-top: 24px;
  padding: 18px;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .nav-links {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    flex-wrap: wrap;
    gap: 0;
  }

  .nav-links a {
    padding: 9px 12px;
  }

  .legal-page .nav-links {
    background: rgba(17, 22, 20, 0.04);
    border-color: var(--line);
  }

  .hero,
  .hero-content {
    min-height: 82vh;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(12, 14, 12, 0.9), rgba(12, 14, 12, 0.62)),
      linear-gradient(0deg, rgba(12, 14, 12, 0.18), rgba(12, 14, 12, 0.68));
  }

  .intro-grid,
  .project-list,
  .approach-grid,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 0.96rem;
  }

  .brand-mark {
    height: 34px;
    width: 34px;
  }

  .hero-content {
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 168px;
  }

  h1 {
    font-size: clamp(2.9rem, 15.5vw, 4rem);
  }

  .hero-copy {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .project-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
