@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&family=Lato:wght@400;700;900&display=swap");

:root {
  --ink: #18181b;
  --muted: #5f6470;
  --paper: #f7f7fb;
  --surface: #ffffff;
  --line: #d9deea;
  --teal: #2457ff;
  --teal-dark: #18181b;
  --clay: #ff5a3d;
  --gold: #f5c84c;
  --sky: #12a8ff;
  --violet: #8f6bff;
  --shadow: 0 22px 45px rgba(24, 24, 27, 0.11);
}

* {
  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: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 14px 6vw;
  background: rgba(247, 245, 239, 0.91);
  border-bottom: 1px solid rgba(23, 32, 29, 0.09);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
}

.brand img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--teal);
}

.hero {
  min-height: 64vh;
  display: grid;
  align-items: center;
  padding: 84px 6vw 92px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-content {
  max-width: 680px;
}

.eyebrow,
.section-label,
.project-date {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: 4.75rem;
  line-height: 0.98;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.15rem;
  line-height: 1.15;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 640px;
  color: #2e3834;
  font-size: 1.18rem;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button,
.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 750;
}

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

.button.secondary,
.contact-links a {
  border: 1px solid rgba(23, 32, 29, 0.22);
  background: rgba(255, 255, 255, 0.72);
}

.button:hover,
.button:focus-visible,
.contact-links a:hover,
.contact-links a:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.section {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 54px;
  padding: 92px 6vw;
  border-bottom: 1px solid var(--line);
}

.section > div:last-child {
  max-width: 1120px;
}

.intro-section p {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.05rem;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.route-card {
  display: block;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.route-card span {
  display: block;
  margin-bottom: 34px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.route-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.route-card p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:first-of-type {
  margin-top: 8px;
}

.timeline-meta {
  display: grid;
  align-content: start;
  gap: 6px;
  color: var(--muted);
  font-size: 0.94rem;
}

ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

li + li {
  margin-top: 8px;
}

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

.project-card,
.skill-group,
.education-list article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.project-card {
  display: grid;
  align-content: start;
  min-height: 360px;
}

.project-card p,
.skill-group p,
.education-list p {
  color: var(--muted);
}

.skills-grid {
  margin-top: 28px;
}

.skill-group {
  min-height: 188px;
}

.education-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.certifications {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.certifications span {
  padding: 10px 14px;
  border: 1px solid rgba(36, 87, 255, 0.24);
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(36, 87, 255, 0.08);
  font-weight: 700;
}

.contact-section {
  padding: 92px 6vw 110px;
  color: #ffffff;
  background: var(--teal-dark);
}

.home-page {
  background: var(--paper);
}

.home-header {
  background: rgba(247, 247, 251, 0.88);
}

.brand-pulse img {
  animation: brand-bob 4.8s ease-in-out infinite;
}

.motion-hero {
  position: relative;
  min-height: 78svh;
  display: grid;
  align-items: center;
  padding: 84px 6vw 104px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(rgba(24, 24, 27, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 24, 27, 0.055) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  border-bottom: 1px solid var(--line);
}

.motion-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(110deg, rgba(255, 90, 61, 0.16), transparent 34%),
    linear-gradient(250deg, rgba(18, 168, 255, 0.16), transparent 42%),
    linear-gradient(0deg, rgba(245, 200, 76, 0.13), transparent 38%);
}

.motion-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.motion-kicker {
  margin: 0 0 16px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.motion-copy h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 7.8rem);
  line-height: 0.92;
}

.motion-copy h1 span {
  display: block;
}

.kinetic-word {
  color: transparent;
  -webkit-text-stroke: 1.4px var(--ink);
  text-shadow: 0.035em 0.035em 0 var(--gold);
  animation: kinetic-nudge 5s steps(2, end) infinite;
}

.motion-copy .hero-copy {
  max-width: 650px;
  color: var(--muted);
}

.motion-stage {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 1;
  width: min(58vw, 780px);
  min-width: 520px;
  opacity: 0.98;
  pointer-events: none;
}

.motion-stage svg {
  width: 100%;
  height: 100%;
  display: block;
}

.stage-tile {
  fill: rgba(255, 255, 255, 0.64);
  stroke: rgba(24, 24, 27, 0.16);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
}

.tile-a {
  animation: tile-drift 8s ease-in-out infinite;
}

.tile-b {
  animation: tile-drift 9.5s ease-in-out infinite reverse;
}

.tile-c {
  animation: tile-pop 6s ease-in-out infinite;
}

.data-line {
  fill: none;
  stroke-linecap: round;
  stroke-width: 8;
  stroke-dasharray: 20 26;
  animation: dash-run 2.8s linear infinite;
}

.line-one {
  stroke: var(--sky);
}

.line-two {
  stroke: var(--clay);
  animation-duration: 3.4s;
}

.line-three {
  stroke: var(--gold);
  animation-duration: 4s;
}

.node {
  stroke: #ffffff;
  stroke-width: 5;
  animation: node-pulse 2.7s ease-in-out infinite;
}

.node-one,
.node-three {
  fill: var(--sky);
}

.node-two {
  fill: var(--clay);
  animation-delay: 0.4s;
}

.node-four {
  fill: var(--gold);
  animation-delay: 0.8s;
}

.orbit-one circle {
  fill: var(--violet);
}

.orbit-two rect {
  fill: var(--clay);
}

.signal-stack rect {
  fill: rgba(255, 255, 255, 0.82);
  stroke: rgba(24, 24, 27, 0.18);
  stroke-width: 2;
}

.signal-stack path {
  fill: var(--teal);
  animation: signal-turn 5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.signal-stack circle:first-of-type {
  fill: var(--gold);
  animation: node-pulse 3s ease-in-out infinite;
}

.signal-stack circle:last-of-type {
  fill: var(--clay);
  animation: node-pulse 3s ease-in-out infinite 0.6s;
}

.route-lab {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
  gap: 42px;
  padding: 92px 6vw;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.route-lab-copy {
  max-width: 420px;
}

.route-lab-copy p {
  color: var(--muted);
}

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

.motion-card {
  position: relative;
  min-height: 286px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 36px rgba(24, 24, 27, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.motion-card:hover,
.motion-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(24, 24, 27, 0.38);
  box-shadow: 0 24px 50px rgba(24, 24, 27, 0.16);
}

.motion-card-icon {
  align-self: flex-end;
  flex: 0 0 auto;
  margin-bottom: auto;
  width: 96px;
  height: 96px;
}

.motion-card-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.motion-card span:not(.motion-card-icon) {
  margin-bottom: 8px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.motion-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.motion-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.card-cv {
  border-top: 6px solid var(--sky);
}

.card-blog {
  border-top: 6px solid var(--clay);
}

.card-hobby {
  border-top: 6px solid var(--gold);
}

.icon-paper,
.icon-thread,
.icon-pad {
  fill: #ffffff;
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linejoin: round;
}

.icon-fold,
.icon-line,
.icon-cross {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linecap: round;
}

.icon-line {
  stroke: var(--sky);
  stroke-dasharray: 30;
  animation: icon-draw 2.6s ease-in-out infinite;
}

.icon-line.b {
  animation-delay: 0.15s;
}

.icon-line.c {
  animation-delay: 0.3s;
}

.icon-dot {
  fill: var(--clay);
  animation: dot-bounce 1.6s ease-in-out infinite;
}

.dot-b {
  animation-delay: 0.18s;
}

.dot-c {
  animation-delay: 0.36s;
}

.icon-button {
  fill: var(--gold);
  stroke: var(--ink);
  stroke-width: 3;
  animation: button-pop 2s ease-in-out infinite;
}

.icon-button.two {
  fill: var(--sky);
  animation-delay: 0.3s;
}

.home-contact {
  color: #ffffff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    #18181b;
  background-size: 36px 36px;
}

.home-contact .motion-kicker {
  color: var(--gold);
}

.skill-footer {
  margin-top: 42px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.skill-footer .motion-kicker {
  margin-bottom: 14px;
}

.skill-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px 20px;
  align-items: start;
}

.skill-category {
  display: grid;
  gap: 10px;
}

.skill-category-label {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
}

.skill-logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
}

.microsoft-logo {
  padding: 6px;
  background: #ffffff;
}

@keyframes brand-bob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-3px) rotate(-4deg);
  }
}

@keyframes kinetic-nudge {
  0%,
  100% {
    transform: translate(0, 0);
    text-shadow: 0.035em 0.035em 0 var(--gold);
  }
  50% {
    transform: translate(3px, -2px);
    text-shadow: -0.035em 0.035em 0 var(--sky);
  }
}

@keyframes dash-run {
  to {
    stroke-dashoffset: -92;
  }
}

@keyframes tile-drift {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(10px, -12px) rotate(2deg);
  }
}

@keyframes tile-pop {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@keyframes node-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
}

@keyframes signal-turn {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(7deg);
  }
}

@keyframes icon-draw {
  0% {
    stroke-dashoffset: 30;
  }
  45%,
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes dot-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes button-pop {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.contact-section .eyebrow {
  color: var(--gold);
}

.contact-section h2 {
  max-width: 820px;
}

.contact-links a {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.simple-page {
  min-height: calc(100vh - 68px);
  padding: 96px 6vw 120px;
}

.simple-page section {
  max-width: 1040px;
}

.simple-page h1 {
  max-width: 760px;
}

.simple-page > section > p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.empty-state {
  max-width: 560px;
  margin-top: 42px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.empty-state h2 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
}

.travel-page {
  min-height: calc(100vh - 68px);
  background:
    linear-gradient(rgba(24, 24, 27, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 24, 27, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 40px 40px;
}

.travel-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 88px 6vw 34px;
}

.travel-hero p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.travel-timeline {
  position: relative;
  display: grid;
  gap: 54px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 42px 6vw 110px;
}

.travel-timeline::before {
  content: "";
  position: absolute;
  top: 42px;
  bottom: 110px;
  left: 50%;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(var(--clay), var(--sky), var(--gold), var(--clay));
  background-size: 100% 180px;
  transform: translateX(-50%);
  animation: timeline-flow 6s linear infinite;
}

.travel-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  animation: travel-rise 700ms ease both;
}

.travel-entry:nth-child(2) {
  animation-delay: 70ms;
}

.travel-entry:nth-child(3) {
  animation-delay: 140ms;
}

.travel-entry:nth-child(4) {
  animation-delay: 210ms;
}

.travel-entry:nth-child(5) {
  animation-delay: 280ms;
}

.travel-entry:nth-child(n+6) {
  animation-delay: 340ms;
}

.timeline-marker {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 5px rgba(255, 90, 61, 0.18);
  animation: marker-pulse 2.6s ease-in-out infinite;
}

.instax-card {
  --tilt: -2deg;
  position: relative;
  width: min(100%, 360px);
  margin: 0;
  padding: 14px 14px 48px;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(24, 24, 27, 0.16);
  transform: rotate(var(--tilt));
  animation: instax-sway 5.8s ease-in-out infinite;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.instax-card:hover {
  animation: none;
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 26px 48px rgba(24, 24, 27, 0.2);
}

.instax-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  object-fit: cover;
  background: #e9edf5;
}

.instax-card figcaption {
  position: absolute;
  right: 16px;
  bottom: 15px;
  left: 16px;
  overflow: hidden;
  color: #3f4654;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.travel-log {
  max-width: 420px;
  padding: 22px;
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 32px rgba(24, 24, 27, 0.08);
  backdrop-filter: blur(8px);
}

.travel-tag {
  margin-bottom: 8px;
  color: var(--clay);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.travel-log h2 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.travel-log p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.photo-left .instax-card {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

.photo-left .travel-log {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
}

.photo-right .instax-card {
  --tilt: 2deg;
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
}

.photo-right .travel-log {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  text-align: right;
}

@keyframes travel-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes timeline-flow {
  to {
    background-position: 0 180px;
  }
}

@keyframes marker-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 5px rgba(255, 90, 61, 0.18);
  }
  50% {
    transform: scale(1.18);
    box-shadow: 0 0 0 9px rgba(18, 168, 255, 0.14);
  }
}

@keyframes instax-sway {
  0%,
  100% {
    transform: rotate(var(--tilt)) translateY(0);
  }
  50% {
    transform: rotate(var(--tilt)) translateY(-5px);
  }
}

.cv-page {
  color: #111111;
  background: #ffffff;
  font-family: "Lato", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.cv-page a {
  color: #111111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cv-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
}

.cv-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.92rem;
}

.cv-document {
  max-width: 940px;
  margin: 0 auto;
  padding: 54px 28px 96px;
}

.cv-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 32px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 2px solid #111111;
}

.cv-headshot {
  width: 250px;
  height: 250px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid #e5e5e5;
}

.cv-title h1 {
  margin-bottom: 6px;
  font-size: 2.6rem;
  line-height: 1;
}

.cv-title p {
  margin-bottom: 8px;
}

.cv-title p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}

.cv-contact-icons a {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  text-decoration: none;
}

.cv-contact-icons svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.cv-document section {
  padding: 15px 0;
  border-bottom: 1px solid #e5e5e5;
}

.cv-document h2 {
  margin-bottom: 16px;
  font-size: 1.3rem;
  text-transform: uppercase;
}

.cv-document h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.cv-document ul {
  margin-top: 10px;
}

.cv-definition-list {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px 20px;
  margin: 0;
}

.cv-definition-list dt {
  font-weight: 700;
}

.cv-definition-list dd {
  margin: 0;
}

.cv-entry + .cv-entry {
  margin-top: 28px;
}

.cv-meta {
  margin-bottom: 8px;
  color: #555555;
  font-size: 0.95rem;
}

.certification-list li + li {
  margin-top: 14px;
}

.certification-list strong {
  display: block;
  font-weight: 700;
}

.certification-list span {
  display: block;
  margin-top: 4px;
  color: #555555;
}

@media (max-width: 980px) {
  .hero {
    min-height: 60vh;
    background: var(--paper);
    align-items: end;
  }

  h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .section,
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-grid,
  .skills-grid,
  .link-grid,
  .education-list,
  .skill-logo-grid {
    grid-template-columns: 1fr;
  }

  .motion-hero {
    min-height: auto;
    padding: 72px 6vw 82px;
  }

  .motion-copy {
    width: min(680px, 100%);
  }

  .motion-copy h1 {
    font-size: clamp(3rem, 11vw, 5.8rem);
  }

  .motion-stage {
    width: 72vw;
    min-width: 0;
    right: -18vw;
    opacity: 0.22;
  }

  .route-lab {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 72px 6vw;
  }

  .route-lab-copy {
    max-width: 640px;
  }

  .motion-link-grid {
    grid-template-columns: 1fr;
  }

  .motion-card {
    min-height: 230px;
  }

  .travel-timeline {
    gap: 42px;
  }

  .instax-card {
    width: min(100%, 320px);
  }

  .travel-log {
    padding: 20px;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 22px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 16px;
    font-size: 0.9rem;
  }

  .home-header {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .home-header .nav-links {
    justify-content: flex-end;
  }

  .hero {
    min-height: 78vh;
    padding: 58px 22px 64px;
  }

  .motion-hero {
    min-height: calc(100svh - 78px);
    align-items: start;
    padding: 48px 22px 56px;
  }

  .motion-kicker {
    margin-bottom: 12px;
    font-size: 0.72rem;
  }

  .motion-copy h1 {
    margin-bottom: 18px;
    font-size: 3.25rem;
    line-height: 0.96;
  }

  .motion-copy .hero-copy {
    max-width: 92%;
    font-size: 1rem;
  }

  .home-page .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: min(100%, 320px);
    margin-top: 24px;
  }

  .home-page .button {
    width: 100%;
  }

  .motion-stage {
    width: 115vw;
    height: 52%;
    min-width: 0;
    right: -52vw;
    bottom: -4%;
    opacity: 0.16;
  }

  .route-lab {
    padding: 56px 22px;
  }

  .motion-card {
    min-height: 214px;
    padding: 20px;
  }

  .motion-card-icon {
    width: 78px;
    height: 78px;
  }

  .home-contact {
    padding: 56px 22px 64px;
  }

  .home-contact h2 {
    font-size: 1.7rem;
  }

  .home-contact .contact-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }

  .skill-footer {
    margin-top: 30px;
    padding-top: 24px;
  }

  .travel-hero {
    padding: 56px 22px 20px;
  }

  .travel-hero p:last-child {
    font-size: 1rem;
  }

  .travel-timeline {
    gap: 32px;
    padding: 32px 22px 78px;
  }

  .travel-timeline::before {
    top: 32px;
    bottom: 78px;
    left: 31px;
    transform: none;
  }

  .travel-entry {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }

  .timeline-marker {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    width: 16px;
    height: 16px;
    margin-top: 18px;
  }

  .photo-left .instax-card,
  .photo-right .instax-card,
  .photo-left .travel-log,
  .photo-right .travel-log {
    grid-column: 2;
    justify-self: stretch;
  }

  .photo-left .instax-card,
  .photo-right .instax-card {
    grid-row: 1;
    width: min(100%, 340px);
  }

  .photo-left .travel-log,
  .photo-right .travel-log {
    grid-row: 2;
    max-width: none;
    text-align: left;
  }

  .instax-card {
    padding: 12px 12px 42px;
  }

  .travel-log h2 {
    font-size: 1.25rem;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .project-grid,
  .skills-grid,
  .link-grid,
  .education-list {
    grid-template-columns: 1fr;
  }

  .section,
  .contact-section {
    padding: 64px 22px;
  }

  .project-card,
  .skill-group,
  .education-list article {
    padding: 22px;
  }

  .simple-page {
    padding: 64px 22px 86px;
  }

  .cv-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 22px;
  }

  .cv-document {
    padding: 38px 22px 76px;
  }

  .cv-title h1 {
    font-size: 2.3rem;
  }

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

  .cv-headshot {
    order: -1;
  }

  .cv-definition-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
