:root {
  --ink: #18212f;
  --muted: #5c6878;
  --line: #d9e1ea;
  --paper: #f7f9fb;
  --white: #ffffff;
  --blue: #1f5f8b;
  --green: #27745d;
  --gold: #a76a21;
  --soft-blue: #e8f1f8;
  --soft-green: #e8f4ef;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

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

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  min-height: 0;
  padding: clamp(34px, 4.5vw, 56px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(130deg, rgba(232, 241, 248, 0.92), rgba(232, 244, 239, 0.86)),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-copy {
  max-width: 780px;
}

.mobile-portrait {
  display: none;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.9rem, 3.5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 700px;
  margin: 14px 0 0;
  color: #334155;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

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

.button.secondary {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.72);
}

.hero-side {
  display: grid;
  gap: 12px;
  align-content: center;
}

.portrait-frame {
  position: relative;
  width: 180px;
  aspect-ratio: 1;
  overflow: hidden;
  justify-self: center;
  background: linear-gradient(145deg, #dfeaf2, #f8fbfc);
  border: 1px solid rgba(217, 225, 234, 0.95);
  border-radius: 50%;
  box-shadow: 0 16px 42px rgba(24, 33, 47, 0.14);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-frame span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--blue);
  font-size: 3rem;
  font-weight: 900;
}

.portrait-frame.compact {
  width: 86px;
  box-shadow: 0 12px 32px rgba(24, 33, 47, 0.14);
}

.portrait-frame.compact span {
  font-size: 1.65rem;
}

.hero-panel {
  display: grid;
  gap: 10px;
}

.hero-panel div {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(217, 225, 234, 0.9);
  border-radius: 8px;
}

.hero-panel span {
  display: block;
  color: var(--blue);
  font-size: 1.55rem;
  font-weight: 900;
}

.hero-panel p,
.timeline p,
.project-grid p,
.skill-columns p {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: clamp(34px, 5vw, 58px) clamp(18px, 4vw, 56px);
}

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

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

.about-band {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
}

.about-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-project {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 14px;
  padding: clamp(18px, 3vw, 26px);
  color: var(--white);
  background: #203247;
  border-radius: 8px;
}

.feature-project h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.15;
}

.feature-project p {
  color: #dce6ef;
}

.feature-project ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: #f4f7fb;
}

.project-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.timeline article,
.project-grid article,
.skill-columns div {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline article {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  column-gap: 22px;
}

.timeline .meta {
  grid-row: span 3;
  color: var(--gold);
  font-weight: 800;
}

.company {
  font-weight: 800;
}

.accent {
  background: var(--soft-green);
}

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

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

.project-grid article {
  min-height: 0;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 18px;
  align-items: start;
  background: var(--ink);
  color: var(--white);
}

.contact p {
  color: #d7dee8;
}

.contact-links {
  display: grid;
  gap: 10px;
}

.contact-links a {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  text-decoration: none;
}

@media (max-width: 820px) {
  .site-header,
  .hero,
  .contact {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-side {
    align-content: start;
  }

  .hero-side > .portrait-frame {
    display: none;
  }

  .mobile-portrait {
    display: block;
    margin-bottom: 14px;
  }

  .timeline article,
  .about-grid,
  .feature-project,
  .project-grid,
  .skill-columns {
    grid-template-columns: 1fr;
  }

  .timeline .meta {
    grid-row: auto;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    justify-content: start;
    gap: 8px;
    padding: 14px 20px;
  }

  .brand {
    display: block;
    max-width: none;
    line-height: 1.25;
    white-space: nowrap;
  }

  nav {
    justify-content: flex-start;
    font-size: 0.9rem;
    gap: 8px 12px;
    width: 100%;
  }
}

@media (max-width: 520px) {

  .hero {
    padding: 24px 20px 28px;
  }

  .hero-panel {
    gap: 10px;
  }

  .hero-panel div {
    padding: 14px 16px;
  }

  .hero-panel span {
    font-size: 1.3rem;
  }

  .hero-panel p {
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .hero-side {
    display: none;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.55rem);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .eyebrow {
    font-size: 0.76rem;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 30px 20px;
  }

  .timeline article,
  .project-grid article,
  .skill-columns div {
    padding: 16px;
  }
}

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

  nav {
    gap: 8px 12px;
    font-size: 0.9rem;
  }

  .hero {
    padding-inline: 16px;
  }

  h1 {
    font-size: clamp(1.85rem, 8.8vw, 2.25rem);
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 0.96rem;
  }

  .section {
    padding-inline: 16px;
  }
}

@media (min-width: 821px) and (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  h1 {
    font-size: clamp(2.35rem, 4vw, 3rem);
  }

  .portrait-frame {
    width: 160px;
  }
}
