:root {
  --accent: #d14836;
  --text: #111111;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --line: rgba(17, 17, 17, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

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

#birds {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 4vw, 4rem);
}

.logo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 2rem;
  font-size: 0.95rem;
}

.nav a {
  position: relative;
  transition: color 0.25s ease;
}

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

.menu-toggle {
  display: none;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 0.45rem 0;
}

.hero {
  min-height: calc(100vh - 5rem);
  padding: clamp(2rem, 8vw, 6rem) clamp(1.25rem, 4vw, 4rem) 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 2rem;
  max-width: 72rem;
}

.hero-index {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hero-slider {
  min-height: 4.5rem;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide.active {
  opacity: 1;
  transform: translateY(0);
}

.slide h2 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-title {
  max-width: 22ch;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.25;
}

.content-wrap {
  max-width: 72rem;
}

.hero-copy {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section {
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
}

.section.muted {
  background: #fafafa;
}

.section-head {
  margin-bottom: 2.5rem;
}

.label {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head h3 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
}

.project {
  padding: 1.75rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.project:hover {
  transform: translateY(-4px);
  border-color: rgba(209, 72, 54, 0.35);
}

.project.highlight-card {
  border-color: rgba(209, 72, 54, 0.2);
}

.note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
}

.project-tag {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.project h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.project p {
  color: var(--muted);
}

.traits {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.traits li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.traits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
}

.service-list strong {
  font-weight: 600;
  color: var(--text);
}

.lead {
  max-width: 52rem;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.comparison-table th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(250, 250, 250, 0.9);
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.article-block {
  margin-bottom: 3.5rem;
}

.article-block:last-child {
  margin-bottom: 0;
}

.article-block > h4 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.25rem;
}

.mini-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}

.mini-card.highlight {
  border-color: rgba(209, 72, 54, 0.25);
}

.mini-card h5 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.mini-card p {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.service-list.compact li {
  font-size: 1rem;
  line-height: 1.6;
}

.choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.choose-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
}

.choose-card h4 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.conclusion-line {
  margin-top: 1.5rem;
  font-weight: 500;
  color: var(--text);
}

.service-list {
  list-style: none;
  display: grid;
  gap: 1rem;
  max-width: 40rem;
}

.service-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.about-copy,
.contact .section-head h3 {
  max-width: 42rem;
}

.about-copy {
  color: var(--muted);
  font-size: 1.05rem;
}

.cta {
  display: inline-block;
  margin-top: 1rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  font-size: 1.125rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem clamp(1.25rem, 4vw, 4rem) 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .nav {
    display: none;
    gap: 1rem;
    font-size: 0.875rem;
  }

  .menu-toggle {
    display: block;
  }

  .site-header.nav-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.96);
    padding: 1rem 1.25rem;
    border: 1px solid var(--line);
  }
}
