:root {
  --ink: #172026;
  --muted: #5e6a71;
  --paper: #f7f8f5;
  --panel: #ffffff;
  --line: #dce2dd;
  --accent: #0d766e;
  --accent-dark: #07524c;
  --gold: #d99d29;
  --blue: #275c8f;
  --shadow: 0 18px 45px rgba(23, 32, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.image-loader {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: clamp(240px, 40vw, 520px);
  padding-bottom: clamp(42px, 7vw, 74px);
  overflow: hidden;
  background:
    radial-gradient(circle at 62% 38%, rgba(217, 157, 41, 0.18), transparent 30%),
    linear-gradient(115deg, rgba(13, 118, 110, 0.16), rgba(39, 92, 143, 0.12)),
    var(--paper);
}

.image-loader {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.loader-object {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: clamp(66px, 8vw, 118px);
  height: auto;
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 14px 18px rgba(23, 32, 38, 0.12));
  animation: orbitLoaderObject 8s ease-in-out infinite;
}

.loader-object-big {
  animation-delay: 0s;
}

.loader-object-left {
  animation-delay: -6s;
}

.loader-object-right {
  animation-delay: -2s;
}

.loader-object-bottom {
  animation-delay: -4s;
}

.image-loader .loading-text {
  position: relative;
  z-index: 1;
}

.click-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  place-items: center;
  background:
    radial-gradient(circle at 62% 38%, rgba(217, 157, 41, 0.18), transparent 30%),
    linear-gradient(115deg, rgba(13, 118, 110, 0.16), rgba(39, 92, 143, 0.12)),
    var(--paper);
}

.click-loader.is-visible {
  display: grid;
}

.loading-text {
  color: var(--accent-dark);
  font-weight: 800;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(247, 248, 245, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand {
  flex: 0 0 auto;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: var(--accent-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  min-height: 82vh;
  gap: clamp(32px, 6vw, 72px);
  padding: clamp(56px, 9vw, 112px) clamp(20px, 5vw, 72px) 48px;
  background:
    linear-gradient(115deg, rgba(13, 118, 110, 0.16), rgba(217, 157, 41, 0.12) 45%, rgba(39, 92, 143, 0.13)),
    var(--paper);
}

.home-hero {
  position: relative;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "copy copy copy copy copy copy photo photo photo photo photo photo";
  align-items: center;
  min-height: calc(100vh - 74px);
  margin: 0;
  padding: clamp(18px, 2.5vw, 34px) clamp(18px, 3.5vw, 48px) clamp(32px, 4vw, 52px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 72% 36%, rgba(217, 157, 41, 0.24), transparent 30%),
    radial-gradient(circle at 86% 72%, rgba(39, 92, 143, 0.2), transparent 28%),
    linear-gradient(115deg, rgba(13, 118, 110, 0.18), rgba(217, 157, 41, 0.13) 45%, rgba(39, 92, 143, 0.16)),
    var(--paper);
  box-shadow: none;
  row-gap: clamp(34px, 5vw, 64px);
}

.home-hero .hero-copy {
  grid-area: copy;
  position: relative;
  z-index: 4;
}

.home-hero .profile-panel {
  grid-area: photo;
  position: relative;
  z-index: 2;
  align-self: start;
  justify-self: end;
  width: min(100%, 600px);
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: start;
  position: relative;
  z-index: 4;
}

.stats-section {
  padding: clamp(18px, 3vw, 32px) clamp(20px, 5vw, 72px);
  background: var(--paper);
}

.stats-section .hero-stats {
  max-width: 760px;
  margin: 0 auto;
}

.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
  overflow: hidden;
  padding: clamp(56px, 9vw, 104px) clamp(20px, 5vw, 72px);
  background:
    radial-gradient(circle at 80% 38%, rgba(217, 157, 41, 0.18), transparent 28%),
    linear-gradient(115deg, rgba(13, 118, 110, 0.14), rgba(217, 157, 41, 0.1) 48%, rgba(39, 92, 143, 0.12)),
    var(--paper);
}

.page-hero-copy {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 920px;
  margin-bottom: 20px;
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 1;
}

.page-hero-cutouts {
  position: relative;
  min-height: clamp(220px, 28vw, 360px);
  z-index: 1;
}

.page-cutout {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 20px 24px rgba(23, 32, 38, 0.18));
}

.page-cutout-main {
  right: 8%;
  bottom: 2%;
  width: clamp(180px, 23vw, 330px);
  animation: floatObject 9s ease-in-out infinite;
}

.page-cutout-small {
  top: 6%;
  left: 2%;
  width: clamp(92px, 12vw, 158px);
  animation: floatObject 8s ease-in-out -3s infinite;
}

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

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

h1 {
  max-width: 960px;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 8vw, 6.9rem);
  line-height: 0.96;
}

.typing-heading {
  position: relative;
  display: grid;
  gap: 0;
  width: max-content;
  min-height: 2.22em;
  line-height: 1.05;
  padding-bottom: 0.08em;
}

.typing-line {
  display: flex;
  min-width: 0;
  min-height: 1.05em;
  line-height: 1.05;
  padding-bottom: 0.08em;
}

.typing-line span {
  visibility: hidden;
}

.typing-line span.is-visible {
  visibility: visible;
}

.typing-cursor {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 0.08em;
  height: 0.88em;
  background: var(--accent-dark);
  animation: blinkCursor 0.8s step-end infinite;
}

.typing-heading.is-typing .typing-cursor {
  opacity: 1;
  animation: none;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.intro {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-role {
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
}

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

.button {
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--accent-dark);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: var(--accent-dark);
}

.button.secondary {
  color: var(--accent-dark);
  background: transparent;
}

.status-panel {
  display: grid;
  gap: 16px;
}

.profile-panel {
  display: grid;
  gap: 18px;
}

.photo-frame {
  position: relative;
  height: clamp(560px, 76vh, 760px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 54% 42%, rgba(255, 255, 255, 0.44), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(217, 157, 41, 0.18), transparent 28%),
    transparent;
  box-shadow: none;
}

.home-loading-active body {
  overflow: hidden;
}

.home-loading-active body > :not(.home-loading-screen) {
  visibility: hidden;
}

.home-loading-screen.image-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  place-items: center;
  min-height: 100vh;
  padding: 0;
  opacity: 1;
  transition: opacity 0.45s ease;
}

.home-loading-active .home-loading-screen.image-loader {
  display: grid;
}

.home-loading-screen.image-loader.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.floating-objects,
.floating-object {
  position: absolute;
}

.floating-objects {
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.floating-object {
  width: clamp(82px, 9vw, 148px);
  height: auto;
  object-fit: contain;
  opacity: 0.96;
  filter: drop-shadow(0 18px 22px rgba(23, 32, 38, 0.18));
  animation: floatObject 9s ease-in-out infinite;
}

.object-1 {
  inset: 8% auto auto 16%;
  width: clamp(96px, 10vw, 166px);
}

.object-2 {
  inset: 32% auto auto 1%;
  width: clamp(78px, 8vw, 132px);
  animation-delay: -2s;
}

.object-3 {
  inset: auto auto 18% 8%;
  width: clamp(112px, 12vw, 188px);
  animation-delay: -4s;
}

.object-4 {
  inset: 34% 4% auto auto;
  width: clamp(86px, 9vw, 150px);
  animation-delay: -6s;
}

.object-5 {
  inset: 4% 16% auto auto;
  width: clamp(70px, 7vw, 118px);
  animation-delay: -8s;
}

.profile-cutout {
  position: absolute;
  inset: auto 8% 0 auto;
  z-index: 3;
  width: min(72%, 520px);
  height: 94%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 26px 28px rgba(23, 32, 38, 0.25));
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 28px;
  text-align: center;
  color: var(--accent-dark);
}

.photo-placeholder span {
  font-size: 1.35rem;
  font-weight: 800;
}

.photo-placeholder small {
  color: var(--muted);
  font-weight: 700;
}

@keyframes floatObject {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(14px, -18px, 0) rotate(8deg);
  }
}

@keyframes blinkCursor {
  50% {
    opacity: 0;
  }
}

@keyframes orbitLoaderObject {
  0%,
  100% {
    transform: translate(-50%, -165%) scale(1.28) rotate(-4deg);
  }

  25% {
    transform: translate(95%, -35%) scale(0.58) rotate(5deg);
  }

  50% {
    transform: translate(-75%, 95%) scale(0.76) rotate(-5deg);
  }

  75% {
    transform: translate(-210%, -35%) scale(0.94) rotate(4deg);
  }
}

.status-panel.compact {
  grid-template-columns: 1fr;
}

.status-panel > div {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 22px;
  height: 22px;
  color: #fff;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.stat-icon-box {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--accent-dark);
}

.metric {
  display: block;
  color: var(--accent-dark);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.summary-band,
.palette-band {
  background:
    radial-gradient(circle at 88% 18%, rgba(217, 157, 41, 0.16), transparent 28%),
    linear-gradient(115deg, rgba(13, 118, 110, 0.28), rgba(39, 92, 143, 0.2)),
    var(--ink);
  color: #fff;
}

.two-column.palette-band {
  background:
    radial-gradient(circle at 88% 18%, rgba(217, 157, 41, 0.16), transparent 28%),
    linear-gradient(115deg, rgba(13, 118, 110, 0.28), rgba(39, 92, 143, 0.2)),
    var(--ink);
}

.summary-band {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(280px, 1.55fr);
  gap: clamp(48px, 9vw, 132px);
}

.summary-band > p {
  max-width: 900px;
  margin-top: 30px;
  color: #d9e1df;
  font-size: 1.15rem;
}

.summary-band h2 {
  max-width: 820px;
}

.summary-band .section-kicker,
.palette-band .section-kicker {
  color: #82d5cd;
}

.palette-band .muted {
  color: #d9e1df;
}

.palette-band .timeline-list::before {
  background: rgba(130, 213, 205, 0.36);
}

.palette-band .timeline-list p {
  color: #d9e1df;
}

.palette-band .timeline-list article::before {
  border-color: var(--ink);
  background: #82d5cd;
  box-shadow: 0 0 0 2px rgba(130, 213, 205, 0.3);
}

.palette-band .timeline-list article:nth-child(even)::before {
  background: #82d5cd;
  box-shadow: 0 0 0 2px rgba(130, 213, 205, 0.3);
}

.palette-band .date {
  color: #9de4dc;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading h2 {
  font-size: clamp(1.55rem, 3vw, 2.5rem);
}

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

.compact-grid {
  max-width: 415px;
  grid-template-columns: minmax(0, 1fr);
}

.work-category {
  padding-top: 28px;
}

.project-detail-section {
  display: grid;
  gap: 28px;
  padding-top: clamp(32px, 5vw, 56px);
}

.project-detail-hero .page-cutout {
  animation: none;
}

.project-detail-hero {
  padding-top: clamp(28px, 5vw, 54px);
  padding-bottom: clamp(28px, 5vw, 54px);
}

.project-detail-hero .page-hero-cutouts {
  display: grid;
  min-height: clamp(180px, 24vw, 300px);
  place-items: center;
}

.project-detail-hero .project-hero-logo {
  position: static;
  width: clamp(180px, 22vw, 320px);
  max-height: 220px;
  object-fit: contain;
}

.project-detail-hero .project-hero-logo-large {
  width: min(100%, clamp(240px, 30vw, 420px));
  max-height: 280px;
}

.project-detail-brand {
  display: flex;
  align-items: center;
}

.project-logo {
  display: block;
  max-width: min(280px, 70vw);
  max-height: 120px;
  object-fit: contain;
}

.text-logo {
  padding: 18px 22px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent-dark);
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 800;
}

.project-ui-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(23, 32, 38, 0.08);
}

.project-ui-frame > img {
  display: none;
  width: 100%;
  height: auto;
}

.project-ui-frame.is-loaded .image-loader {
  display: none;
}

.project-ui-frame.is-loaded > img {
  display: block;
}

.image-loader .loader-object {
  display: block;
  height: auto;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(23, 32, 38, 0.08);
}

.palette-band .project-card {
  color: var(--ink);
}

.project-cover-link {
  display: block;
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.linked-project-card {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.linked-project-card:hover,
.linked-project-card:focus-within {
  border-color: rgba(7, 82, 76, 0.36);
  box-shadow: 0 16px 34px rgba(23, 32, 38, 0.12);
}

.project-cover-link img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #dfe8e2;
  transition: transform 0.24s ease;
}

.project-cover-link:hover img,
.project-cover-link:focus-visible img {
  transform: scale(1.035);
}

.project-cover-link:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 3px;
}

.project-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-topline span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: #e4f2ef;
  font-size: 0.78rem;
  font-weight: 800;
}

.project-card p,
.skill-groups p,
.timeline-list p,
.contact p,
.muted {
  color: var(--muted);
}

.project-card h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.project-card ul {
  padding-left: 20px;
  margin: 24px 0 0;
}

.project-card li + li {
  margin-top: 8px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}

.project-links .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 10px;
  font-size: 0.85rem;
  text-align: center;
  white-space: nowrap;
}

.compareloans-gallery {
  background: #eef2ec;
}

.compareloans-gallery-grid {
  display: grid;
  gap: 24px;
}

.compareloans-gallery-grid figure {
  margin: 0;
  padding: clamp(12px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(23, 32, 38, 0.08);
}

.compareloans-gallery-grid img {
  display: block;
  width: 75%;
  margin: 0 auto;
  height: auto;
}

.compareloans-gallery-grid .compareloans-gallery-compact img {
  width: 60%;
}

.compareloans-gallery-grid figcaption {
  padding-top: 14px;
  color: var(--accent-dark);
  font-weight: 800;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(300px, 1.25fr);
  gap: clamp(24px, 5vw, 72px);
  background: #eef2ec;
}

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

.skill-groups > div {
  padding: 24px;
  border-left: 4px solid var(--accent);
  background: var(--panel);
}

.palette-band .skill-groups > div {
  color: var(--ink);
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 0;
  max-width: 1160px;
  padding-left: 34px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 8px;
  width: 2px;
  background: rgba(7, 82, 76, 0.28);
}

.timeline-list article {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-top: 0;
}

.timeline-list article::before {
  content: "";
  position: absolute;
  top: 34px;
  left: -34px;
  width: 16px;
  height: 16px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--accent-dark);
  box-shadow: 0 0 0 2px rgba(7, 82, 76, 0.26);
}

.timeline-list article:nth-child(even)::before {
  background: var(--accent-dark);
  box-shadow: 0 0 0 2px rgba(7, 82, 76, 0.26);
}

.timeline-list h2 {
  margin-bottom: 10px;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  grid-column: 2;
  line-height: 1.18;
}

.timeline-list p {
  grid-column: 2;
  max-width: 900px;
  font-size: 1.02rem;
  line-height: 1.75;
}

.date {
  color: var(--accent-dark);
  font-weight: 800;
}

.certifications {
  background:
    linear-gradient(115deg, rgba(13, 118, 110, 0.1), rgba(217, 157, 41, 0.16) 52%, rgba(39, 92, 143, 0.12)),
    #f4f0e6;
}

.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cert-list span,
.cert-list a {
  display: inline-flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(23, 32, 38, 0.07);
}

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

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

.certificate-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(23, 32, 38, 0.08);
}

.certificate-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #dfe8e2;
}

.certificate-card div {
  padding: 22px;
}

.certificate-card h3 {
  margin-bottom: 14px;
}

.certificate-card a {
  color: var(--accent-dark);
  font-weight: 800;
}

.text-certificate {
  display: grid;
  align-content: start;
  min-height: 190px;
}

.text-certificate div {
  height: auto;
  padding-top: 0;
}

.certificate-card .certificate-badge {
  width: 82px;
  height: 82px;
  margin: 22px auto 12px;
  aspect-ratio: 1;
  object-fit: contain;
  background: transparent;
}

.certificate-issuer {
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.text-certificate p:last-child {
  color: var(--muted);
  font-weight: 700;
}

.contact {
  width: min(100% - 40px, 1060px);
  margin: clamp(42px, 7vw, 72px) auto clamp(42px, 7vw, 72px);
  padding: clamp(40px, 7vw, 72px);
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(217, 157, 41, 0.18), transparent 28%),
    linear-gradient(115deg, rgba(13, 118, 110, 0.48), rgba(39, 92, 143, 0.3)),
    var(--ink);
  border-radius: 8px;
}

.contact-page {
  margin-top: clamp(42px, 6vw, 64px);
}

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

.contact p {
  max-width: 680px;
  color: #d9e1df;
}

.contact .section-kicker {
  color: #8be3da;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 24px;
  color: #fff;
  font-weight: 800;
}

.contact-details > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-details svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.contact-links {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.contact-links svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.footer-socials a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent-dark);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@media (min-width: 901px) and (max-width: 1100px) {
  .home-hero .profile-panel {
    width: min(100%, 520px);
  }

  .object-1 {
    inset: 10% auto auto 22%;
    width: clamp(86px, 9vw, 118px);
  }

  .object-2 {
    inset: 32% auto auto 7%;
    width: clamp(70px, 7vw, 96px);
  }

  .object-3 {
    inset: auto auto 22% 18%;
    width: clamp(92px, 10vw, 130px);
  }

  .object-4 {
    inset: 38% 8% auto auto;
    width: clamp(76px, 8vw, 106px);
  }

  .object-5 {
    inset: 9% 18% auto auto;
    width: clamp(64px, 7vw, 92px);
  }
}

@media (max-width: 900px) {
  .compact-grid {
    max-width: none;
  }

  .site-header,
  .summary-band,
  .two-column {
    grid-template-columns: 1fr;
  }

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

  .project-grid,
  .skill-groups,
  .certificate-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .page-hero {
    grid-template-columns: 1fr;
  }

  .page-hero-cutouts {
    min-height: clamp(180px, 42vw, 280px);
  }

  .home-hero {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "photo";
    margin: 0;
    padding: 32px 20px 42px;
  }

  .photo-frame {
    height: clamp(360px, 62vw, 520px);
  }

  .profile-cutout {
    right: 10%;
    width: min(72%, 430px);
  }
}

@media (max-width: 560px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding: 28px 20px 38px;
  }

  .home-hero h1 {
    margin-bottom: 14px;
    font-size: clamp(2.25rem, 15vw, 4rem);
  }

  .home-hero .intro {
    font-size: 1rem;
  }

  .home-hero .hero-role {
    font-size: clamp(1.15rem, 6vw, 1.6rem);
  }

  .home-hero .button {
    width: 100%;
    justify-content: center;
  }

  .photo-frame {
    height: clamp(330px, 90vw, 430px);
  }

  .profile-cutout {
    right: 4%;
    width: 82%;
    height: 86%;
  }

  .floating-object {
    width: clamp(54px, 18vw, 92px);
  }

  .object-3 {
    width: clamp(76px, 24vw, 126px);
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.86rem;
  }

  .timeline-list article {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }

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

  .timeline-list::before {
    top: 20px;
    bottom: 20px;
  }

  .timeline-list article::before {
    top: 30px;
  }

  .project-card {
    min-height: auto;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-socials {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-object {
    animation: none;
  }

  .loader-object {
    animation: none;
  }

  .typing-cursor {
    display: none;
  }

  .typing-line span {
    visibility: visible;
  }
}
