:root {
  --bg: #f6f3ee;
  --surface: #fffaf2;
  --ink: #151515;
  --muted: #5f646d;
  --line: #d8d1c5;
  --accent: #0f766e;
  --accent-dark: #0b4f49;
  --blue: #1d4ed8;
  --shadow: 0 24px 60px rgba(30, 27, 22, 0.11);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  background: rgba(246, 243, 238, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216, 209, 197, 0.7);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  font-size: 0.85rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.main-nav a:hover,
.site-footer a:hover,
.project-link:hover {
  color: var(--accent);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 48px;
  min-height: calc(100vh - 80px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.15rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

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

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.hero-panel {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-row {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.panel-row:first-child {
  padding-top: 0;
}

.panel-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.panel-row span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  border-top: 1px solid var(--line);
}

.content-block {
  color: var(--muted);
  font-size: 1.05rem;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  padding-left: 22px;
  position: relative;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  content: "•";
  font-weight: 800;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

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

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

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.project-card.featured {
  background: #101828;
  color: #f8fafc;
  border-color: #101828;
}

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

.project-card.featured p,
.project-card.featured li {
  color: #d7dee9;
}

.project-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.tag.strong {
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.3);
  color: var(--accent-dark);
}

.featured .tag {
  border-color: rgba(255, 255, 255, 0.2);
  color: #d7dee9;
}

.featured .tag.strong {
  background: #ccfbf1;
  color: #115e59;
}

.project-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 28px;
  padding-left: 18px;
}

.project-link {
  margin-top: auto;
  color: var(--accent-dark);
  font-weight: 800;
}

.featured .project-link {
  color: #5eead4;
}

.skills-section {
  border-top: 1px solid var(--line);
}

.skills-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.skill-group {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.skill-group p {
  margin-bottom: 0;
  color: var(--muted);
}

.approach-section,
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.approach-section p,
.contact-section p {
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-section {
  padding-bottom: 96px;
}

.contact-content {
  display: grid;
  gap: 20px;
}

.contact-form {
  display: grid;
  gap: 12px;
  max-width: 500px;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--surface);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

.form-status {
  min-height: 24px;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.success-message {
  color: #15803d;
}

.error-message,
.field-error {
  color: #dc2626;
}

.field-error {
  min-height: 18px;
  margin-top: -8px;
  font-size: 0.85rem;
  font-weight: 700;
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .main-nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero,
  .split-section,
  .approach-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

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

@media (max-width: 560px) {
  .site-header {
    width: min(100% - 24px, 1120px);
  }

  .brand span:last-child {
    display: none;
  }

  .main-nav {
    font-size: 0.84rem;
  }

  .section {
    width: min(100% - 24px, 1120px);
    padding: 56px 0;
  }

  .hero {
    padding-top: 38px;
  }

  h1 {
    font-size: clamp(2.65rem, 16vw, 4.4rem);
  }

  .project-card {
    min-height: auto;
  }

  .site-footer {
    width: min(100% - 24px, 1120px);
    align-items: flex-start;
    flex-direction: column;
  }
}
