:root {
  --ink: #17202a;
  --muted: #596773;
  --line: #d8e0e6;
  --paper: #f3f6f8;
  --white: #ffffff;
  --accent: #b14f2a;
  --blue: #1f6f8b;
  --teal: #0f766e;
  --gold: #c8922f;
  --surface: #eaf0f4;
  --shadow: 0 18px 50px rgb(23 32 42 / 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgb(31 111 139 / 0.12), rgb(177 79 42 / 0.08) 42%, rgb(15 118 110 / 0.08)),
    var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(22px, 5vw, 80px);
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 0.88);
  backdrop-filter: blur(14px);
}

.brand,
nav,
.actions,
.contact-card {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.brand-photo {
  overflow: hidden;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px rgb(31 111 139 / 0.24);
}

.brand-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

nav {
  gap: 24px;
}

nav a,
.contact-card a {
  color: var(--muted);
  text-decoration: none;
}

nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

nav a:hover,
.contact-card a:hover {
  color: var(--blue);
}

main {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 clamp(22px, 5vw, 80px) 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  min-height: calc(100dvh - 78px);
  padding: clamp(36px, 5vw, 64px) 0;
}

.kicker,
.section-label,
.project-card span,
.timeline-item span,
.contact-card p {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(40px, 4.8vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.hero-copy > p:not(.kicker),
.text-block p,
.timeline-item p,
.project-card p {
  color: var(--muted);
  font-size: 18px;
}

.hero-copy > p:not(.kicker) {
  max-width: 760px;
  color: #43515c;
  font-size: 19px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-points span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.82);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

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

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

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

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgb(23 32 42 / 0.11);
}

.hero-board {
  display: grid;
  gap: 14px;
}

.contact-card {
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.mini-card {
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.86);
  box-shadow: 0 12px 34px rgb(23 32 42 / 0.08);
}

.mini-card.highlight {
  background:
    linear-gradient(135deg, rgb(31 111 139 / 0.12), rgb(200 146 47 / 0.14)),
    var(--white);
}

.mini-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.1;
}

.mini-card small {
  color: var(--muted);
  font-size: 14px;
}

.preview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgb(23 32 42 / 0.08);
}

.preview-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
  object-position: left top;
}

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

.split {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(30px, 6vw, 90px);
}

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

.skills-grid article,
.timeline-item,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgb(23 32 42 / 0.06);
}

.skills-grid article {
  padding: 24px;
  border-top: 4px solid transparent;
}

.skills-grid article:nth-child(1) {
  border-top-color: var(--blue);
}

.skills-grid article:nth-child(2) {
  border-top-color: var(--accent);
}

.skills-grid article:nth-child(3) {
  border-top-color: var(--gold);
}

.skills-grid article:nth-child(4) {
  border-top-color: var(--teal);
}

.skills-grid p {
  color: var(--muted);
}

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

.timeline-item {
  position: relative;
  padding: 24px 24px 24px 30px;
}

.timeline-item::before {
  position: absolute;
  top: 26px;
  left: 0;
  width: 5px;
  height: calc(100% - 52px);
  border-radius: 999px;
  background: var(--blue);
  content: "";
}

.timeline-item:nth-of-type(2)::before {
  background: var(--accent);
}

.timeline-item:nth-of-type(3)::before {
  background: var(--gold);
}

.timeline-item:nth-of-type(4)::before {
  background: var(--teal);
}

.timeline-item:nth-of-type(5)::before {
  background: var(--blue);
}

.timeline-item:nth-of-type(6)::before {
  background: var(--accent);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

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

.project-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1fr);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card.feature {
  grid-template-columns: minmax(320px, 0.74fr) minmax(0, 1fr);
}

.project-image {
  min-height: 280px;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
}

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 3vw, 34px);
}

.project-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #43515c;
  font-size: 15px;
}

.project-extractor .project-image {
  background: #f4f3f0;
}

.project-extractor img {
  object-fit: contain;
  object-position: center;
  background: #f4f3f0;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgb(23 32 42 / 0.12);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgb(31 111 139 / 0.36);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .topbar,
  nav {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .project-card.feature {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card.feature {
    grid-template-columns: 1fr;
  }

  .project-image {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .brand strong {
    font-size: 15px;
  }

  .mini-grid,
  .preview-strip {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 38px;
  }
}

@media print {
  .topbar,
  .actions {
    display: none;
  }

  main {
    padding: 0;
  }

  .hero {
    min-height: 0;
    padding: 0 0 28px;
  }

  .section {
    padding: 24px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
