:root {
  --bg: #050505;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.14);
  --accent: #c81414;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.page-shell {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 16px;
  padding: 18px 0 14px;
  margin-bottom: 40px;
  background: rgba(5, 5, 5, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand,
.site-nav a,
.contact-card a,
.button {
  text-decoration: none;
  color: inherit;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand img {
  display: block;
  width: 28px;
  height: auto;
  filter: invert(1);
}

.site-nav {
  display: grid;
  grid-column: 2 / 5;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
}

.site-nav a {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav a:last-child {
  justify-self: end;
}

.site-nav a + a {
  padding-left: 0;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.section {
  padding: 28px 0 0;
}

.hero {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: calc(100vh - 180px);
}

#about {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
}

.hero-copy,
.hero-panel,
.panel-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-copy,
.hero-panel {
  padding: 34px;
}

.hero-copy {
  width: 100%;
  max-width: 980px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-panel {
  display: none;
}

.eyebrow {
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1,
h2 {
  font-family: Helvetica, Arial, sans-serif;
  line-height: 0.94;
}

h1 {
  font-size: 80px;
  max-width: 11ch;
  line-height: 0.9;
}

h2 {
  font-size: 1rem;
  max-width: none;
  line-height: 1.4;
}

h3 {
  font-size: 1.35rem;
}

.hero-text {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.about-layout p,
.project-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.about-text {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
  max-width: 38ch;
  margin: 22px 0 0;
}

.hero-text {
  margin: 22px 0 0;
  max-width: 38ch;
  font-size: 1.05rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  font-weight: 700;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.panel-card {
  padding: 22px;
}

.panel-card p,
.panel-card span {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.panel-large h2 {
  max-width: 12ch;
}

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

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  align-items: end;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.about-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.about-media img {
  display: block;
  width: 100%;
  height: auto;
}

.about-copy {
  width: 100%;
  max-width: 980px;
}

.about-copy h2 {
  font-size: 80px;
  max-width: 11ch;
  line-height: 0.9;
}

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

.project-card {
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.project-card h3 {
  font-size: 1.55rem;
  margin-bottom: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 64px 0 16px;
  border-top: 1px solid var(--line);
  margin-top: 64px;
}

.footer-title {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  font-size: 0.72rem;
  line-height: 1;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .about-layout,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .about-layout {
    gap: 28px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 1320px);
    padding-top: 16px;
  }

  .site-header {
    display: flex;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    grid-template-columns: 1fr;
    align-items: flex-start;
    justify-items: start;
    padding-top: 10px;
  }

  .site-header.menu-open .site-nav {
    display: flex;
  }

  .hero-copy,
  .hero-panel {
    padding: 0;
  }

  .hero-copy {
    padding-left: 0;
  }

  h1 {
    font-size: clamp(3rem, 12vw, 4.8rem);
  }

  h2 {
    max-width: none;
    font-size: clamp(2.6rem, 10vw, 4.8rem);
    line-height: 0.95;
  }
}
