:root {
  --ink: #14213d;
  --muted: #526078;
  --paper: #f8f7f2;
  --white: #ffffff;
  --line: #dce2e8;
  --accent: #e05a33;
  --accent-dark: #b63e1d;
  --blue: #175676;
  --mint: #dbeee8;
  --shadow: 0 18px 48px rgba(20, 33, 61, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

img {
  display: block;
  max-width: 100%;
}

.section-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  background: rgba(248, 247, 242, 0.94);
  border-bottom: 1px solid rgba(20, 33, 61, 0.08);
  backdrop-filter: blur(12px);
}

.brand {
  font: 700 1.35rem "Space Grotesk", sans-serif;
  text-decoration: none;
  letter-spacing: -0.04em;
}

.brand span { color: var(--accent); }

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

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

.nav-cta {
  padding: 8px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
}

nav .nav-cta:hover { color: var(--white); background: var(--accent-dark); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.7fr);
  gap: 72px;
  align-items: end;
  min-height: 650px;
  padding-top: 110px;
  padding-bottom: 110px;
}

.eyebrow,
.section-kicker,
.project-number,
.status-label {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 830px;
  margin-bottom: 28px;
  font-size: clamp(3rem, 7vw, 6.3rem);
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
}

h3 { font-size: 1.55rem; }

.hero-intro {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--ink); }
.button-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button-secondary { background: transparent; }
.button-secondary:hover { background: var(--white); }

.status-card {
  padding: 30px;
  background: var(--mint);
  border: 1px solid rgba(23, 86, 118, 0.15);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.status-card ul {
  margin: 0 0 26px;
  padding-left: 20px;
}

.status-card li + li { margin-top: 8px; }

.availability {
  padding-top: 20px;
  border-top: 1px solid rgba(20, 33, 61, 0.14);
  font-size: 0.9rem;
  font-weight: 600;
}

.availability span {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  background: #178353;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(23, 131, 83, 0.12);
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
  padding-top: 120px;
  padding-bottom: 120px;
  border-top: 1px solid var(--line);
}

.body-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.body-copy p:first-child { margin-top: 0; }

.language-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.language-row span,
.tags li {
  padding: 7px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
}

.projects-section {
  padding: 120px 0;
  color: var(--white);
  background: var(--ink);
}

.projects-section .section-kicker { color: #ff9c7e; }

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 44px;
}

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

.text-link {
  flex: none;
  color: #ffb49e;
  font-weight: 700;
  text-decoration: none;
}

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

.project-card {
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border-radius: 22px;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
  background: #edf1f4;
  border-bottom: 1px solid var(--line);
}

.project-content { padding: 30px; }
.project-content h3 { margin-bottom: 14px; }
.project-content > p:not(.project-number) { min-height: 78px; color: var(--muted); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.tags li { background: #f3f5f6; }

.project-link {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.project-link:hover { text-decoration: underline; }

.skills-section { padding-top: 120px; padding-bottom: 120px; }
.skills-section > h2 { max-width: 750px; }

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.skill-group {
  min-height: 210px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skill-group h3 { margin-bottom: 16px; font-size: 1.15rem; }
.skill-group p { margin: 0; color: var(--muted); }

.contact-section {
  padding: 100px 0;
  background: var(--mint);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 80px;
  align-items: end;
}

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

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.contact-links a {
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

footer {
  padding: 28px 0;
  color: #cbd4e3;
  background: var(--ink);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.88rem;
}

.footer-inner p { margin: 0; }
.footer-inner a { color: #ffb49e; }

@media (max-width: 820px) {
  nav a:not(.nav-cta) { display: none; }

  .hero,
  .two-column,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero { min-height: auto; padding-top: 80px; padding-bottom: 80px; }
  .two-column, .projects-section, .skills-section { padding-top: 80px; padding-bottom: 80px; }
  .project-grid, .skill-grid { grid-template-columns: 1fr; }
  .section-heading-row { display: block; }
  .section-heading-row .text-link { display: inline-block; margin-top: 18px; }
}

@media (max-width: 520px) {
  .section-shell { width: min(100% - 26px, 1120px); }
  .site-header { padding: 0 16px; }
  h1 { font-size: 2.75rem; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .project-content { padding: 24px; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
