:root {
  --ink: #172123;
  --muted: #5d686a;
  --paper: #f4f1eb;
  --surface: #ffffff;
  --line: #d8dcd6;
  --green: #1f6f61;
  --blue: #2d5e8b;
  --gold: #b7791f;
  --rust: #9b4d36;
  --shadow: 0 22px 55px rgba(24, 32, 33, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.9rem clamp(1rem, 4vw, 2rem);
  background: rgba(23, 33, 35, 0.96);
  border-bottom: 1px solid rgba(255, 250, 242, 0.12);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.brand {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 2px solid #fffaf2;
  color: #fffaf2;
  font-weight: 800;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  color: #d8e2dd;
  font-size: 0.95rem;
  font-weight: 650;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: #fffaf2;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.72fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
  width: min(100%, var(--max));
  min-height: auto;
  margin: 0 auto;
  padding: clamp(4rem, 7vw, 6.5rem) clamp(1rem, 3vw, 2rem) clamp(3rem, 6vw, 5rem);
  background: var(--ink);
  color: #fffaf2;
  box-shadow: 0 0 0 100vmax var(--ink);
  clip-path: inset(0 -100vmax);
}

.hero-copy {
  max-width: 42rem;
}

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

.hero .eyebrow {
  color: #9fbccf;
}

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

h1 {
  max-width: 8.4ch;
  margin-bottom: 1.2rem;
  font-size: clamp(4rem, 8vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-text {
  max-width: 39rem;
  color: #d8e2dd;
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
}

.title-line {
  margin-bottom: 1.2rem;
  color: #92d7c5;
  font-size: clamp(1.35rem, 3vw, 2.4rem);
  font-weight: 850;
  line-height: 1.1;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  padding: 0.75rem 1rem;
  font-weight: 800;
  text-decoration: none;
}

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

.button.secondary {
  background: transparent;
  color: inherit;
}

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

.hero .button.primary {
  border-color: #fffaf2;
}

.hero .button.secondary {
  border-color: #fffaf2;
}

.profile-panel {
  justify-self: end;
  display: grid;
  gap: 1rem;
  width: min(100%, 22rem);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.profile-panel img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.profile-panel dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 14px 35px rgba(24, 32, 33, 0.08);
}

.profile-panel div {
  border-top: 1px solid var(--line);
  padding: 0.9rem 1rem;
}

.profile-panel div:first-child {
  border-top: 0;
}

.profile-panel dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
}

.profile-panel dd {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto clamp(1.5rem, 4vw, 3rem);
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(24, 32, 33, 0.08);
}

.proof-band div {
  min-height: 8rem;
  padding: 1.5rem clamp(1rem, 3vw, 2rem);
  background: #fffaf2;
}

.proof-band strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--green);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1;
}

.proof-band span {
  color: var(--muted);
  font-weight: 650;
}

.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 3vw, 2rem);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(12rem, 20rem) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

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

.work-card,
.skill-group {
  padding: 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.work-card:nth-child(2n) {
  border-top: 4px solid var(--blue);
}

.work-card:nth-child(2n + 1) {
  border-top: 4px solid var(--green);
}

.work-card:nth-child(3n) {
  border-top-color: var(--gold);
}

.work-type {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.work-card p,
.skill-group li,
.timeline p,
.about-copy p,
.contact-section p {
  color: var(--muted);
}

.result {
  margin-bottom: 0;
  color: #344244;
  font-weight: 750;
}

.split-section {
  background: #eef3ef;
  border-block: 1px solid var(--line);
  box-shadow: 0 0 0 100vmax #eef3ef;
  clip-path: inset(0 -100vmax);
}

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

.skill-group h3 {
  color: var(--green);
}

.skill-group ul {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding-left: 1.2rem;
}

.timeline-section {
  background: #fffaf2;
  box-shadow: 0 0 0 100vmax #fffaf2;
  clip-path: inset(0 -100vmax);
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr);
  gap: 2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline span {
  color: var(--blue);
  font-weight: 850;
}

.timeline p {
  margin-bottom: 0;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(12rem, 20rem) minmax(0, 1fr);
  gap: 2rem;
}

.about-section .section-heading {
  display: block;
  margin-bottom: 0;
}

.about-copy {
  max-width: 58rem;
  color: #334143;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 3vw, 2rem);
  background: var(--ink);
  color: #fffaf2;
  box-shadow: 0 0 0 100vmax var(--ink);
  clip-path: inset(0 -100vmax);
}

.contact-section .eyebrow,
.contact-section p {
  color: #b9d6d0;
}

.contact-section .button.primary {
  border-color: #fffaf2;
  background: #fffaf2;
  color: var(--ink);
}

.contact-section .button.secondary {
  border-color: #fffaf2;
  color: #fffaf2;
}

.cv-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: end;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 3vw, 2rem);
  background: var(--ink);
  color: #fffaf2;
  box-shadow: 0 0 0 100vmax var(--ink);
  clip-path: inset(0 -100vmax);
}

.cv-hero .eyebrow {
  color: #9fbccf;
}

.cv-hero h1 {
  max-width: none;
  margin-bottom: 1rem;
}

.cv-contact {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: #fffaf2;
  color: var(--ink);
  border: 1px solid rgba(255, 250, 242, 0.25);
}

.cv-contact img {
  width: 6rem;
  aspect-ratio: 1;
  object-fit: cover;
}

.cv-contact p {
  margin-bottom: 0.25rem;
  font-weight: 750;
}

.cv-contact a {
  color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.cv-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 3vw, 2rem);
}

.cv-side {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.cv-side section,
.cv-block {
  background: var(--surface);
  border: 1px solid var(--line);
}

.cv-side section {
  padding: 1.2rem;
}

.cv-side h2,
.cv-block h2 {
  margin-bottom: 1rem;
  color: var(--green);
  font-size: 1.15rem;
  line-height: 1.2;
}

.cv-side h3 {
  margin: 1rem 0 0.2rem;
  font-size: 1rem;
}

.cv-side p,
.cv-side li,
.cv-main p,
.cv-main li {
  color: var(--muted);
}

.cv-side ul,
.cv-role ul,
.achievement-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.2rem;
}

.cv-main {
  display: grid;
  gap: 1rem;
}

.cv-block {
  padding: clamp(1.2rem, 3vw, 1.8rem);
}

.cv-block > p:last-child {
  margin-bottom: 0;
}

.cv-role {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, auto);
  gap: 0.4rem 1rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.cv-role:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.cv-role h3 {
  margin-bottom: 0.2rem;
}

.cv-role p {
  margin-bottom: 0;
  font-weight: 750;
}

.cv-role span {
  color: var(--blue);
  font-weight: 850;
  text-align: right;
}

.cv-role ul {
  grid-column: 1 / -1;
}

.cv-note {
  color: var(--ink);
  font-weight: 850;
}

@media (max-width: 980px) {
  .hero,
  .cv-hero,
  .cv-layout,
  .section-heading,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 10ch;
  }

  .profile-panel {
    justify-self: start;
    min-height: auto;
  }

  .cv-contact {
    max-width: 32rem;
  }

  .proof-band,
  .work-grid,
  .skill-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .header-inner {
    align-items: center;
  }

  .nav {
    max-width: none;
    gap: 0.8rem;
    font-size: 0.82rem;
  }

  .hero {
    min-height: auto;
    gap: 1.2rem;
    padding-top: 1.6rem;
    padding-bottom: 1rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.45rem, 12vw, 3.4rem);
    line-height: 1;
  }

  .hero-text {
    font-size: 1.02rem;
  }

  .hero-actions {
    margin-top: 1rem;
  }

  .profile-panel {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 0.9rem;
    padding: 0.8rem;
    box-shadow: none;
  }

  .profile-panel img {
    width: 5.5rem;
  }

  .profile-panel dl {
    gap: 0.4rem;
    align-content: center;
  }

  .profile-panel div {
    padding-top: 0.35rem;
  }

  .profile-panel dt {
    font-size: 0.68rem;
  }

  .profile-panel dd {
    margin-top: 0;
    font-size: 0.9rem;
  }

  .proof-band,
  .work-grid,
  .skill-groups {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .cv-role {
    grid-template-columns: 1fr;
  }

  .cv-role span {
    text-align: left;
  }

  .button {
    width: 100%;
  }
}
