:root {
  --ink: #111827;
  --muted: #5b6678;
  --paper: #f7f8fb;
  --white: #ffffff;
  --line: #d8dee8;
  --teal: #0f766e;
  --blue: #2563eb;
  --amber: #b45309;
  --charcoal: #1f2937;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, 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: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(247, 248, 251, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

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

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.76) 36%, rgba(17, 24, 39, 0.24) 74%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.30), rgba(17, 24, 39, 0.08));
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 40px));
  margin-left: clamp(20px, 6vw, 88px);
  padding: 80px 0;
  color: var(--white);
}

.eyebrow,
.tag {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #5eead4;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(38px, 6vw, 72px);
  max-width: 900px;
}

h2 {
  font-size: clamp(26px, 3vw, 42px);
}

h3 {
  font-size: 22px;
}

.hero-copy {
  max-width: 730px;
  margin: 24px 0 0;
  color: #dce7f3;
  font-size: 19px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
  line-height: 1.2;
}

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

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.46);
}

.section-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.page .section-inner:first-child {
  padding-top: 88px;
}

.band {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.band.light {
  background: #eef5f3;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1fr);
  gap: 40px;
  align-items: start;
}

.split p,
.page-heading p {
  color: var(--muted);
  font-size: 18px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

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

.stack-grid span,
.contact-link {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 750;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
}

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

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

.project-card,
.content-grid article,
.article-list article,
.timeline article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.project-card p,
.content-grid p,
.article-list p,
.timeline p,
.resume-block p {
  color: var(--muted);
}

.project-card a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 800;
}

.project-shot {
  display: block;
  width: min(210px, 100%);
  max-height: 320px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  object-position: top;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.12);
}

.phone-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 6px;
}

.phone-strip img {
  width: 100%;
  max-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  object-position: top;
  background: var(--paper);
}

.page-heading {
  max-width: 980px;
}

.content-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline article {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 18px;
  align-items: start;
}

.timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--white);
  background: var(--amber);
  font-weight: 850;
}

.timeline h2,
.timeline p {
  grid-column: 2;
}

.article-list {
  display: grid;
  gap: 18px;
}

.resume-block {
  max-width: 900px;
}

.contact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-link {
  justify-content: center;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 4vw, 56px);
  color: #dbe4ef;
  background: #181d25;
  font-size: 14px;
}

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

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

  .hero {
    min-height: 76vh;
  }

  .hero-content {
    margin-left: 20px;
  }

  .split,
  .project-grid,
  .project-grid.large,
  .content-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .nav {
    gap: 10px;
    font-size: 13px;
  }

  h1 {
    font-size: 36px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .section-inner {
    width: min(100% - 32px, 1160px);
    padding: 52px 0;
  }

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

  .phone-strip {
    grid-template-columns: 1fr;
  }

  .phone-strip img {
    max-height: 420px;
  }
}
