:root {
  color-scheme: dark;
  --bg: #121212;
  --surface: #1b1b1b;
  --surface-2: #242424;
  --text: #f6f1e8;
  --muted: #c8c0b4;
  --line: rgba(246, 241, 232, 0.16);
  --teal: #4dd5c0;
  --amber: #f2bf5e;
  --red: #e85d58;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  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.6;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-150%);
  background: var(--text);
  color: #111;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(18, 18, 18, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand {
  gap: 0.7rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border: 1px solid rgba(77, 213, 192, 0.42);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(77, 213, 192, 0.22), rgba(232, 93, 88, 0.18));
  color: var(--teal);
}

.nav {
  gap: clamp(0.7rem, 2vw, 1.5rem);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

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

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-image,
.hero-shade,
.hero-content {
  grid-area: 1 / 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(18, 18, 18, 0.94) 0%, rgba(18, 18, 18, 0.76) 44%, rgba(18, 18, 18, 0.22) 100%),
    linear-gradient(0deg, rgba(18, 18, 18, 0.86) 0%, rgba(18, 18, 18, 0.08) 38%);
}

.hero-content {
  position: relative;
  align-self: center;
  width: min(760px, 100%);
  padding: 8rem clamp(1rem, 4vw, 4rem) 5rem;
}

.eyebrow,
.section-label {
  margin: 0 0 0.8rem;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.4rem, 9vw, 7.4rem);
}

.hero-copy {
  max-width: 650px;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button,
.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--teal);
  color: #101312;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(246, 241, 232, 0.08);
  color: var(--text);
}

.intro,
.projects,
.site-footer {
  padding-inline: clamp(1rem, 4vw, 4rem);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 6vw, 6rem);
  padding-block: clamp(3rem, 7vw, 6rem);
  background: #171717;
  border-bottom: 1px solid var(--line);
}

.intro h2,
.section-heading h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.projects {
  display: grid;
  gap: 1rem;
  padding-block: clamp(3rem, 7vw, 6rem);
}

.section-heading {
  margin-bottom: 1rem;
}

.project-card {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(36, 36, 36, 0.98), rgba(27, 27, 27, 0.96));
  box-shadow: var(--shadow);
}

.project-index {
  color: var(--amber);
  font-size: 1rem;
  font-weight: 900;
}

.project-body h3 {
  color: var(--text);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.project-body p {
  max-width: 780px;
  margin: 0.75rem 0 1.25rem;
  color: var(--muted);
}

.project-link {
  background: rgba(232, 93, 88, 0.14);
  color: #ffd7d5;
  border: 1px solid rgba(232, 93, 88, 0.35);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 720px) {
  .site-header,
  .intro,
  .site-footer {
    align-items: flex-start;
  }

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

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 88vh;
  }

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

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

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