:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #162024;
  --muted: #607076;
  --line: #d9dfde;
  --teal: #0b6f68;
  --teal-dark: #064f4a;
  --copper: #b85c38;
  --gold: #d5a021;
  --blue: #294c7a;
  --shadow: 0 18px 50px rgb(22 32 36 / 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgb(246 247 244 / 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  min-width: 240px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  border-radius: 8px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.main-nav a {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: #e7efed;
  color: var(--teal-dark);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 74px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #101718;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(16 23 24 / 0.94), rgb(16 23 24 / 0.64) 55%, rgb(16 23 24 / 0.12));
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
  padding: clamp(5rem, 11vw, 8rem) clamp(1.25rem, 6vw, 5rem) clamp(3rem, 7vw, 5rem);
  color: #fff;
}

.eyebrow,
.section-kicker,
.project-type {
  margin: 0 0 0.8rem;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2c15f;
}

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

h1 {
  max-width: 980px;
  font-size: 5.5rem;
  line-height: 0.94;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.4rem;
  line-height: 1.12;
  margin-bottom: 1rem;
}

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

.lead {
  max-width: 760px;
  color: rgb(255 255 255 / 0.86);
  font-size: 1.35rem;
}

.hero-actions,
.contact-actions,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.78rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

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

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem);
}

.intro-grid,
.split-section,
.content-grid,
.contact-layout,
.archive-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.intro-grid p,
.split-section p,
.page-hero p,
.text-column p,
.contact-main p {
  color: var(--muted);
  font-size: 1.05rem;
}

.focus-band,
.value-section {
  max-width: none;
  background: #edf3f1;
}

.section-heading {
  max-width: 1180px;
  margin: 0 auto 1.8rem;
}

.focus-band .feature-grid,
.value-section .value-grid {
  max-width: 1180px;
  margin: 0 auto;
}

.feature-grid,
.value-grid,
.skill-matrix,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.feature-card,
.skill-block,
.project-card,
.value-grid article,
.profile-panel,
.contact-main,
.contact-details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgb(22 32 36 / 0.07);
}

.feature-card,
.skill-block,
.value-grid article {
  padding: 1.05rem;
}

.feature-card img,
.skill-block img,
.project-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}

.feature-card p,
.skill-block p,
.value-grid p,
.project-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.compact-list {
  display: grid;
  gap: 0.8rem;
}

.compact-list a {
  display: block;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  text-decoration: none;
}

.compact-list a:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.compact-list strong,
.compact-list span {
  display: block;
}

.compact-list span {
  color: var(--muted);
  font-size: 0.94rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 1rem;
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  color: var(--copper);
}

.page-hero {
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(135deg, #f6f7f4 0%, #e8f1ef 58%, #f5eee7 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1,
.page-hero p {
  max-width: 980px;
}

.page-hero h1 {
  font-size: 4rem;
}

.text-column {
  max-width: 760px;
}

.profile-panel {
  overflow: hidden;
}

.profile-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
  border-bottom: 1px solid var(--line);
}

.profile-photo {
  background: #e8f1ef;
}

dl {
  margin: 0;
}

.profile-panel dl,
.contact-details dl {
  display: grid;
}

.profile-panel div,
.contact-details div {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.profile-panel div:last-child,
.contact-details div:last-child {
  border-bottom: 0;
}

dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 0.2rem 0 0;
  font-weight: 700;
}

.skill-matrix,
.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.tag-list li,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.28rem 0.58rem;
  background: #eef4f2;
  border: 1px solid #d3e4df;
  border-radius: 999px;
  color: var(--teal-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.project-card {
  overflow: hidden;
}

.project-body {
  padding: 1.1rem;
}

.project-body h2 {
  font-size: 1.45rem;
}

.archive-section {
  align-items: center;
}

.archive-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.archive-links span {
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  font-weight: 800;
}

.contact-main,
.contact-details {
  padding: 1.25rem;
}

.contact-details a {
  color: var(--teal-dark);
}

.contact-form-section {
  padding-top: 0;
}

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgb(22 32 36 / 0.07);
}

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

.contact-form label {
  display: grid;
  gap: 0.4rem;
}

.contact-form label span {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.82rem 0.9rem;
  color: var(--ink);
  background: #fbfcfb;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 11rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgb(11 111 104 / 0.18);
  border-color: var(--teal);
}

.form-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

@media (max-width: 900px) {
  .site-header,
  .intro-grid,
  .split-section,
  .content-grid,
  .contact-layout,
  .archive-section {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
    align-items: start;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .feature-grid,
  .value-grid,
  .skill-matrix,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 680px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgb(16 23 24 / 0.58), rgb(16 23 24 / 0.92));
  }

  h1 {
    font-size: 4rem;
    line-height: 1;
  }

  h2,
  .page-hero h1 {
    font-size: 2.6rem;
  }

  .lead {
    font-size: 1.2rem;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .main-nav {
    width: calc(100vw - 2rem);
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: thin;
  }

  .main-nav a {
    flex: 0 0 auto;
    padding: 0.5rem 0.65rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding: 4.5rem 1rem 2.5rem;
  }

  h1 {
    font-size: 3rem;
  }

  h2,
  .page-hero h1 {
    font-size: 2rem;
  }

  .page-hero {
    padding: 3rem 1rem 2.25rem;
  }

  .section {
    padding: 2.75rem 1rem;
  }

  .hero-actions,
  .contact-actions,
  .form-grid {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .archive-links {
    grid-template-columns: 1fr;
  }

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

@media (min-width: 901px) and (max-width: 1180px) {
  h1 {
    font-size: 4.8rem;
  }

  .page-hero h1 {
    font-size: 3.4rem;
  }
}
