:root {
  --bg: #f5f1e9;
  --bg-deep: #e9e1d5;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 253, 249, 0.92);
  --text: #171613;
  --muted: #676157;
  --line: rgba(23, 22, 19, 0.12);
  --line-strong: rgba(23, 22, 19, 0.22);
  --accent: #ab4e4f;
  --accent-ink: #873332;
  --accent-soft: rgba(171, 78, 79, 0.12);
  --shadow: 0 24px 60px rgba(29, 22, 15, 0.1);
  --header-height: clamp(4.5rem, 7vw, 5.75rem);
  --section-pad-y: clamp(1rem, 2.2vw, 1.75rem);
  --shell-width: min(60rem, calc(100vw - 2 * clamp(8.5rem, 12vw, 11.5rem)));
  --section-shell-pad-top: calc(var(--header-height) + clamp(1.1rem, 2.4vh, 1.85rem));
  --section-shell-pad-bottom: clamp(2rem, 4vh, 3rem);
  --card-gap: clamp(0.9rem, 1.5vw, 1.15rem);
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 0;
  scrollbar-width: none;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  scrollbar-width: none;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(171, 78, 79, 0.11), transparent 28%),
    radial-gradient(circle at top right, rgba(23, 22, 19, 0.08), transparent 24%),
    linear-gradient(180deg, #fcfaf6 0%, var(--bg) 46%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.62;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 26%),
    repeating-linear-gradient(90deg, rgba(23, 22, 19, 0.025) 0 1px, transparent 1px 120px);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.hero-grid::-webkit-scrollbar,
.focus-grid::-webkit-scrollbar,
.tools-grid::-webkit-scrollbar,
.project-grid::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

::selection {
  background: rgba(171, 78, 79, 0.22);
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 5.8ch;
  font-size: clamp(3rem, 6.2vw, 5.2rem);
  line-height: 0.88;
}

h2 {
  max-width: 10ch;
  font-size: clamp(2.15rem, 4.3vw, 3.75rem);
  line-height: 0.95;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.05;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.35rem clamp(1.1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(23, 22, 19, 0.08);
  background: rgba(250, 247, 241, 0.94);
  box-shadow: 0 10px 24px rgba(29, 22, 15, 0.04);
  animation: fade-up 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-brand {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  width: auto;
  aspect-ratio: auto;
  color: var(--text);
  line-height: 1;
}

.site-brand::before,
.site-brand::after {
  display: none;
}

.site-brand__mark {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  white-space: nowrap;
}

.site-brand__letter {
  position: static;
  display: inline-block;
  font-family: "Snell Roundhand", "Apple Chancery", "URW Chancery L", "Times New Roman", cursive;
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.12em;
  color: #12110f;
  text-shadow: none;
}

.site-brand__letter--j {
  font-size: clamp(3rem, 3.7vw, 4.1rem);
}

.site-brand__letter--k {
  margin-left: -0.72rem;
  transform: translateY(0.18rem) scale(0.96);
  font-size: clamp(2.95rem, 3.5vw, 3.9rem);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.7rem);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  padding-bottom: 0.24rem;
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle,
.mobile-menu,
.mobile-menu__close {
  display: none;
}

.page-indicator,
.social-rail {
  animation: fade-up 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-indicator {
  --indicator-index: 0;
  --indicator-step: 1.8rem;
  position: fixed;
  top: 50%;
  left: clamp(1rem, 2.5vw, 2.5rem);
  z-index: 10;
  display: grid;
  gap: 0.55rem;
  padding-block: 0.15rem;
  transform: translateY(-50%);
}

.page-indicator::after {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.15rem + ((1.25rem - 2px) / 2));
  width: 2.15rem;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(171, 78, 79, 0.06);
  transform: translateY(calc(var(--indicator-index) * var(--indicator-step)));
  transition: transform 220ms cubic-bezier(0.2, 1.1, 0.36, 1), background 180ms ease;
}

.page-indicator__item {
  position: relative;
  display: block;
  width: 2.8rem;
  height: 1.25rem;
}

.page-indicator__item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1.55rem;
  height: 2px;
  border-radius: 999px;
  background: rgba(23, 22, 19, 0.12);
  transform: translateY(-50%);
  transition: background 180ms ease, opacity 180ms ease;
}

.page-indicator__item::after {
  display: none;
}

.page-indicator__item:hover,
.page-indicator__item:focus-visible,
.page-indicator__item.is-active {
  outline: none;
}

.page-indicator__item:hover::before,
.page-indicator__item:focus-visible::before {
  background: rgba(23, 22, 19, 0.24);
}

.social-rail {
  position: fixed;
  top: 50%;
  right: clamp(1rem, 2.5vw, 2.5rem);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transform: translateY(-50%);
}

.social-rail a {
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  background: transparent;
  box-shadow: none;
  color: rgba(23, 22, 19, 0.48);
  transition: color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.social-rail a:hover,
.social-rail a:focus-visible {
  color: var(--text);
  transform: translateX(-1px);
}

.page-indicator__item.is-active::before {
  background: rgba(23, 22, 19, 0.2);
}

.portfolio {
  padding-top: 0;
}

.section-block {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 100svh;
  min-height: 100svh;
  overflow: clip;
  padding: 0;
  scroll-margin-top: 0;
}

.section-block--hero {
  align-items: stretch;
}

.section-shell {
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  row-gap: clamp(1rem, 2vh, 1.4rem);
  width: var(--shell-width);
  height: 100%;
  margin: 0 auto;
  padding: var(--section-shell-pad-top) 0 var(--section-shell-pad-bottom);
}

.section-block:not(.section-block--hero) .section-shell {
  row-gap: clamp(1rem, 2vh, 1.35rem);
}

.section-shell--hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(18rem, 0.84fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  row-gap: clamp(1rem, 2.2vh, 1.5rem);
  column-gap: clamp(2.6rem, 5vw, 5.5rem);
}

.hero-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: visible;
  max-width: 100%;
  scrollbar-width: none;
}

.section-heading--hero {
  max-width: 28rem;
  min-width: 0;
}

.hero-intro {
  min-width: 0;
}

.section-heading--hero > * {
  opacity: 0;
  animation: fade-up 820ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.section-heading--hero > :nth-child(1) {
  animation-delay: 60ms;
}

.section-heading--hero > :nth-child(2) {
  animation-delay: 140ms;
}

.section-heading--hero > :nth-child(3) {
  animation-delay: 220ms;
}

.section-heading--hero > :nth-child(4) {
  animation-delay: 300ms;
}

.section-heading--hero > :nth-child(5) {
  animation-delay: 380ms;
}

.section-heading--hero > :nth-child(6) {
  animation-delay: 460ms;
}

.section-kicker,
.section-label,
.card-index,
.detail-label {
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-kicker {
  margin-top: 0.15rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.hero-tagline {
  margin-top: 0.95rem;
  max-width: 100%;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.08rem, 1.28vw, 1.38rem);
  line-height: 1.18;
}

.hero-copy p,
.section-intro,
.focus-card h3 + p,
.tool-card h3 + p,
.project-card h3 + p,
.contact-card h3 + p {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--muted);
}

.hero-copy {
  display: grid;
  gap: 0.8rem;
  max-width: 29rem;
  margin-top: 1.25rem;
}

.meta-list {
  list-style: none;
}

.meta-list li {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.74rem;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 22, 19, 0.06);
  font-size: 0.8rem;
  color: var(--text);
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 0.9rem;
  margin-top: 1.65rem;
  align-items: stretch;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(10rem, 15vw, 11.5rem);
  min-height: 3.2rem;
  padding: 0.82rem 1.4rem;
  border: 0;
  border-radius: 0.8rem;
  color: #faf8f3;
  background: var(--text);
  box-shadow: 0 18px 30px rgba(23, 22, 19, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  white-space: nowrap;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px rgba(23, 22, 19, 0.15);
}

.button--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: none;
  border: 1px solid rgba(23, 22, 19, 0.28);
}

.profile-card {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 25rem;
  margin: 0 auto;
  min-height: 0;
  opacity: 0;
  animation: fade-up 900ms cubic-bezier(0.22, 1, 0.36, 1) 260ms forwards;
  position: relative;
}

.profile-card::before {
  content: "";
  position: absolute;
  right: clamp(-1.15rem, -1vw, -0.75rem);
  bottom: clamp(-1.15rem, -1vw, -0.75rem);
  width: min(100%, clamp(14rem, 24vw, 19rem));
  aspect-ratio: 4 / 5;
  border-radius: 1.6rem;
  background: rgba(23, 22, 19, 0.08);
  z-index: -1;
}

.profile-card__portrait {
  width: min(100%, clamp(15.5rem, 26vw, 21rem));
  aspect-ratio: 4 / 5;
  border-radius: 1.6rem;
  background:
    linear-gradient(180deg, rgba(18, 17, 15, 0.02), rgba(18, 17, 15, 0.1)),
    url("../images/PFP.jpeg") center 16% / cover no-repeat;
  box-shadow: 0 20px 42px rgba(29, 22, 15, 0.12);
}

.detail-label {
  margin-bottom: 0.25rem;
  color: var(--muted);
}

.section-label,
.card-index {
  color: var(--accent);
}

.section-heading {
  max-width: 42rem;
  padding-top: 0;
  align-self: start;
}

.section-heading--inline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
}

.section-heading h2 {
  margin-top: 0.2rem;
}

.section-intro {
  max-width: 36rem;
  margin-top: 0.75rem;
}

.focus-grid,
.tools-grid,
.project-grid,
.contact-grid {
  display: grid;
  align-items: stretch;
  align-content: start;
  gap: var(--card-gap);
  margin-top: 0;
  grid-auto-rows: auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0;
  scrollbar-width: none;
}

.focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tools-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.projects-content {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1.35rem;
  min-height: 0;
}

.projects-footer {
  display: flex;
  justify-content: center;
}

.projects-footer .button {
  min-width: clamp(13rem, 19vw, 15rem);
}

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.focus-card,
.tool-card,
.project-card,
.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 13.75rem;
  padding: 1.2rem 1.2rem 1.3rem;
  border: 0;
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72));
  box-shadow: 0 18px 40px rgba(29, 22, 15, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.focus-card:hover,
.focus-card:focus-within,
.tool-card:hover,
.tool-card:focus-within,
.project-card:hover,
.project-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(29, 22, 15, 0.12);
}

.project-card {
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 0.36rem;
  background: var(--project-accent, var(--accent));
}

.project-card:nth-child(1) {
  --project-accent: #5a7ff0;
  background: linear-gradient(180deg, rgba(90, 127, 240, 0.12), rgba(255, 255, 255, 0.94) 28%, rgba(255, 255, 255, 0.74));
}

.project-card:nth-child(2) {
  --project-accent: #d38a2a;
  background: linear-gradient(180deg, rgba(211, 138, 42, 0.13), rgba(255, 255, 255, 0.94) 28%, rgba(255, 255, 255, 0.74));
}

.project-card:nth-child(3) {
  --project-accent: #b45d73;
  background: linear-gradient(180deg, rgba(180, 93, 115, 0.13), rgba(255, 255, 255, 0.94) 28%, rgba(255, 255, 255, 0.74));
}

.project-card .card-index {
  color: var(--project-accent, var(--accent));
}

.focus-card h3,
.tool-card h3,
.project-card h3,
.contact-card h3 {
  margin-top: 0.55rem;
}

.focus-card h3 + p,
.tool-card h3 + p,
.project-card h3 + p,
.contact-card h3 + p {
  margin-top: 0.7rem;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

#tools.section-block {
  position: relative;
  height: auto;
  min-height: 100svh;
  overflow: visible;
  isolation: isolate;
}

#tools.section-block::before,
#tools.section-block::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

#tools.section-block::before {
  inset: clamp(0.9rem, 1.8vw, 1.6rem) clamp(0.8rem, 2vw, 1.8rem) clamp(1rem, 2vw, 1.8rem);
  border: 1px solid rgba(23, 22, 19, 0.07);
  border-radius: clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 12% 18%, rgba(171, 78, 79, 0.14), transparent 24%),
    radial-gradient(circle at 82% 78%, rgba(194, 145, 61, 0.12), transparent 22%),
    linear-gradient(90deg, rgba(23, 22, 19, 0.03) 0 1px, transparent 1px 10rem),
    linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(242, 233, 220, 0.95));
  box-shadow: 0 28px 60px rgba(29, 22, 15, 0.1);
}

#tools.section-block::after {
  right: clamp(1rem, 5vw, 4rem);
  bottom: clamp(2rem, 5vw, 4rem);
  width: clamp(12rem, 24vw, 20rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(171, 78, 79, 0.12), transparent 68%);
}

#tools .section-shell {
  position: relative;
  z-index: 1;
  width: min(84rem, calc(100vw - 2 * clamp(1.75rem, 4vw, 3.5rem)));
  height: auto;
  padding-inline: clamp(1.35rem, 2.3vw, 2rem);
}

#tools .section-heading {
  max-width: min(74rem, 100%);
}

#tools .section-intro {
  max-width: 46rem;
}

.tools-overview {
  position: relative;
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  padding: clamp(1.1rem, 2.2vw, 1.8rem) 0 0;
  background: transparent;
}

.tools-overview__lede {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem clamp(1.4rem, 3vw, 2.5rem);
  align-items: start;
  padding-bottom: clamp(1rem, 2vw, 1.35rem);
  border-bottom: 1px solid var(--line-strong);
}

.tools-overview__copy {
  max-width: 44rem;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--muted);
}

.tools-clusters {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.2rem);
}

.tool-cluster {
  display: grid;
  align-content: start;
  gap: 1.1rem;
  min-height: 100%;
  padding: clamp(1rem, 2vw, 1.3rem);
  border: 1px solid rgba(23, 22, 19, 0.08);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
}

.tool-cluster--languages {
  background: linear-gradient(180deg, rgba(253, 245, 230, 0.92), rgba(255, 255, 255, 0.58));
}

.tool-cluster--runtime {
  background: linear-gradient(180deg, rgba(237, 243, 252, 0.92), rgba(255, 255, 255, 0.58));
}

.tool-cluster--systems {
  background: linear-gradient(180deg, rgba(240, 248, 239, 0.92), rgba(255, 255, 255, 0.58));
}

.tool-cluster__header {
  display: grid;
  gap: 0.4rem;
}

.tool-cluster__header h3 {
  margin-top: 0;
  font-size: clamp(1.55rem, 2vw, 1.95rem);
  line-height: 0.98;
}

.tool-cluster__header p:last-child {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.tool-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 4rem;
  min-height: 3rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid rgba(23, 22, 19, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  box-shadow: 0 10px 22px rgba(29, 22, 15, 0.06);
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  font: inherit;
  appearance: none;
  transition:
    max-width 240ms ease,
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.tool-badge:hover,
.tool-badge:focus-visible,
.tool-badge[aria-expanded="true"] {
  max-width: 14rem;
  border-color: var(--badge-glow, rgba(23, 22, 19, 0.16));
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 28px rgba(29, 22, 15, 0.09);
  transform: translateY(-1px);
  outline: none;
}

.tool-badge__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: var(--badge-surface, rgba(23, 22, 19, 0.12));
  color: var(--badge-ink, var(--text));
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tool-badge__icon--image {
  padding: 0.38rem;
}

.tool-badge__icon-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tool-badge__label {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-0.25rem);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: max-width 240ms ease, opacity 180ms ease, transform 180ms ease;
}

.tool-badge:hover .tool-badge__label,
.tool-badge:focus-visible .tool-badge__label,
.tool-badge[aria-expanded="true"] .tool-badge__label {
  max-width: 10rem;
  opacity: 1;
  transform: translateX(0);
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: max-content;
  margin-top: 1.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.2rem;
  left: 0;
  height: 1px;
  opacity: 0.7;
  background: currentColor;
  transform: scaleX(0.38);
  transform-origin: left;
  transition: transform 180ms ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
}

.status-note {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-top: 1.25rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.84rem;
  font-weight: 600;
}

.contact-shell {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 1.4rem;
}

.contact-main {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  row-gap: 0.95rem;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.85rem;
  list-style: none;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 22px rgba(29, 22, 15, 0.08);
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.88);
}

.site-footer {
  width: min(34rem, 100%);
  margin: 0 auto;
  padding-top: 0.75rem;
  border-top: 0;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(23, 22, 19, 0.62);
  transition: color 180ms ease;
}

.site-footer p + p {
  margin-top: 0.12rem;
}

.site-footer a {
  opacity: 0.72;
  text-decoration: underline;
  text-underline-offset: 0.16rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  opacity: 1;
}

a:focus-visible {
  outline: 2px solid rgba(171, 78, 79, 0.45);
  outline-offset: 0.22rem;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 981px) {
  :root {
    --hero-portrait-width: clamp(19rem, 24vw, 22rem);
    --hero-backdrop-offset: clamp(0.95rem, 1.4vw, 1.35rem);
    --hero-frame-height: calc((var(--hero-portrait-width) * 1.25) + var(--hero-backdrop-offset));
    --hero-frame-width: calc(var(--hero-portrait-width) + var(--hero-backdrop-offset));
  }

  .section-shell--hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--hero-frame-width));
    align-items: center;
    justify-content: center;
    column-gap: clamp(3rem, 6vw, 6rem);
  }

  .section-heading--hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: center;
    min-height: var(--hero-frame-height);
    max-width: 33rem;
  }

  .hero-intro,
  .hero-copy {
    max-width: 30rem;
  }

  .section-heading--hero h1 {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(3.45rem, 5.7vw, 5.1rem);
    line-height: 0.92;
  }

  .hero-tagline {
    max-width: 100%;
    margin-top: 1.65rem;
  }

  .hero-copy {
    width: 100%;
    margin-top: 1.75rem;
  }

  .hero-actions {
    margin-top: auto;
    padding-top: clamp(1.4rem, 3vh, 2.15rem);
  }

  .hero-grid {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .profile-card {
    justify-content: flex-start;
    align-items: flex-start;
    width: var(--hero-frame-width);
    max-width: none;
    min-height: var(--hero-frame-height);
    margin: 0;
    padding: 0 var(--hero-backdrop-offset) var(--hero-backdrop-offset) 0;
  }

  .profile-card::before {
    right: 0;
    bottom: 0;
    width: var(--hero-portrait-width);
    aspect-ratio: 4 / 5;
    border-radius: 1.6rem;
  }

  .profile-card__portrait {
    width: var(--hero-portrait-width);
  }

  #focus.section-block {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  #focus .section-shell {
    width: min(86rem, calc(100vw - 2 * clamp(4rem, 6vw, 6.5rem)));
    height: auto;
    grid-template-rows: auto auto;
    row-gap: clamp(1.8rem, 3.2vw, 2.8rem);
    padding-top: calc(var(--header-height) + clamp(1.8rem, 3.4vh, 2.7rem));
    padding-bottom: clamp(3rem, 6vh, 4.5rem);
  }

  #focus .section-heading {
    display: grid;
    grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.35fr);
    column-gap: clamp(1.75rem, 4vw, 4rem);
    row-gap: 0.45rem;
    max-width: none;
    padding-bottom: clamp(1.2rem, 2.4vw, 1.85rem);
    border-bottom: 1px solid var(--line-strong);
  }

  #focus .section-label {
    grid-column: 1;
    align-self: end;
    margin-top: 0.35rem;
  }

  #focus .section-heading h2 {
    grid-column: 1;
    max-width: 6.5ch;
    margin-top: 0;
  }

  #focus .section-intro {
    grid-column: 2;
    grid-row: 1 / span 2;
    max-width: none;
    margin-top: 0;
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    line-height: 1.85;
    text-wrap: pretty;
  }

  #focus .focus-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.18fr) minmax(0, 1fr);
    align-items: start;
    gap: 0;
    overflow: visible;
  }

  #focus .focus-card {
    align-self: start;
    height: auto;
    min-height: 0;
    padding: 1.05rem clamp(1rem, 1.7vw, 1.4rem) 0 0;
    border-top: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  #focus .focus-card + .focus-card {
    padding-left: clamp(1.1rem, 2vw, 1.6rem);
    border-left: 1px solid var(--line);
  }

  #focus .focus-card:hover,
  #focus .focus-card:focus-within {
    transform: none;
    box-shadow: none;
    background: transparent;
  }

  #focus .card-index {
    display: block;
    margin-bottom: 0.55rem;
  }

  #focus .focus-card h3 {
    max-width: 11ch;
    margin-top: 0;
    font-size: clamp(1.45rem, 1.9vw, 1.95rem);
    line-height: 0.98;
  }

  #focus .focus-card h3 + p {
    margin-top: 0.85rem;
    font-size: clamp(1rem, 1.14vw, 1.1rem);
    line-height: 1.82;
    text-wrap: pretty;
  }
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: var(--header-height);
    scroll-snap-type: none;
  }

  .page-indicator,
  .social-rail {
    display: none;
  }

  .portfolio {
    padding-top: var(--header-height);
  }

  .section-block {
    height: auto;
    min-height: auto;
    overflow: visible;
    padding: var(--section-pad-y) 0 2rem;
    scroll-margin-top: var(--header-height);
  }

  .section-shell,
  .section-block:not(.section-block--hero) .section-shell {
    display: block;
    height: auto;
    padding: 0;
  }

  .section-shell--hero {
    grid-template-columns: none;
    grid-template-rows: none;
    align-items: stretch;
    row-gap: clamp(1rem, 2.2vh, 1.5rem);
    column-gap: 0;
  }

  .hero-grid {
    overflow: visible;
    padding-right: 0;
    justify-content: flex-start;
  }

  .section-heading--inline {
    align-items: flex-start;
    flex-direction: column;
  }

  .focus-grid,
  .tools-grid,
  .project-grid,
  .contact-grid {
    grid-template-columns: none;
    grid-auto-columns: minmax(72vw, 78vw);
    grid-auto-flow: column;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.35rem;
    padding-right: 0;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .focus-grid::-webkit-scrollbar,
  .tools-grid::-webkit-scrollbar,
  .project-grid::-webkit-scrollbar,
  .contact-grid::-webkit-scrollbar {
    display: none;
  }

  .focus-card,
  .tool-card,
  .project-card,
  .contact-card {
    scroll-snap-align: start;
  }

  .contact-shell {
    grid-template-rows: none;
  }

  .projects-content {
    gap: 1rem;
  }

  .profile-card {
    justify-content: flex-start;
    max-width: 19rem;
    margin: 0;
  }

  .profile-card::before {
    right: -0.75rem;
    bottom: -0.75rem;
    width: min(100%, 15rem);
  }

  #tools .section-shell {
    width: min(72rem, calc(100vw - 2.5rem));
    padding-inline: 1.1rem;
  }

  .tools-overview__lede {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .tools-clusters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-cluster--systems {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --section-pad-y: 0.95rem;
    --shell-width: min(68rem, calc(100vw - 2rem));
  }

  html,
  body {
    background-color: var(--bg);
  }

  body {
    background:
      radial-gradient(circle at top left, rgba(171, 78, 79, 0.08), transparent 30%),
      radial-gradient(circle at top right, rgba(23, 22, 19, 0.05), transparent 22%),
      linear-gradient(180deg, #f6f0e7 0%, var(--bg) 52%, #eee5d9 100%);
  }

  body::before {
    opacity: 0.48;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 26%),
      repeating-linear-gradient(90deg, rgba(23, 22, 19, 0.02) 0 1px, transparent 1px 120px);
  }

  h1 {
    max-width: 6.2ch;
    font-size: clamp(2.45rem, 10.8vw, 3.95rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .site-header {
    align-items: center;
    gap: 0;
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(245, 241, 233, 0.96);
  }

  .site-brand {
    width: auto;
  }

  .site-brand__letter--j {
    font-size: clamp(2.3rem, 11vw, 2.9rem);
  }

  .site-brand__letter--k {
    margin-left: -0.5rem;
    transform: translateY(0.14rem) scale(0.96);
    font-size: clamp(2.2rem, 10.4vw, 2.7rem);
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    position: relative;
    z-index: 31;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
  }

  .menu-toggle__line {
    position: absolute;
    width: 1.45rem;
    height: 1.5px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-toggle__line:first-of-type {
    transform: translateY(-4px);
  }

  .menu-toggle__line:last-of-type {
    transform: translateY(4px);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__line:first-of-type {
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__line:last-of-type {
    transform: rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(5rem, calc(var(--header-height) + 1rem)) 2rem 2rem;
    background:
      radial-gradient(circle at top left, rgba(171, 78, 79, 0.1), transparent 26%),
      linear-gradient(180deg, #f6f0e7 0%, var(--bg) 54%, var(--bg-deep) 100%);
  }

  .mobile-menu__close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 32;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: 2.2rem;
    line-height: 1;
  }

  .mobile-menu__close span {
    transform: translateY(-0.08rem);
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu__nav {
    display: grid;
    gap: 1.35rem;
    width: 100%;
    text-align: center;
  }

  .mobile-menu__nav a {
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
  }

  .mobile-menu__nav a.is-active {
    color: var(--accent-ink);
  }

  body.menu-open {
    overflow: hidden;
  }

  .portfolio {
    padding-top: var(--header-height);
  }

  .section-block {
    padding: var(--section-pad-y) 0 1.5rem;
  }

  .hero-grid,
  .focus-grid,
  .tools-grid,
  .project-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-tagline {
    max-width: none;
    font-size: 1.04rem;
    line-height: 1.22;
  }

  .hero-copy p,
  .section-intro,
  .focus-card h3 + p,
  .tool-card h3 + p,
  .project-card h3 + p,
  .contact-card h3 + p {
    font-size: 0.92rem;
    line-height: 1.62;
  }

  .hero-copy {
    gap: 0.7rem;
    margin-top: 0.9rem;
  }

  .section-shell--hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "intro visual"
      "copy copy"
      "actions actions";
    align-items: start;
    column-gap: 0.45rem;
    row-gap: 0.8rem;
  }

  .section-heading--hero {
    display: contents;
  }

  .hero-intro {
    grid-area: intro;
    align-self: start;
  }

  .hero-grid {
    grid-area: visual;
    align-self: start;
    justify-content: flex-start;
    margin-left: -0.5rem;
    margin-top: 0.05rem;
  }

  .hero-copy {
    grid-area: copy;
    max-width: none;
    margin-top: 0;
  }

  .hero-actions {
    grid-area: actions;
    max-width: 18rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    justify-self: center;
    width: min(100%, 18rem);
    margin-top: -0.05rem;
  }

  .hero-grid {
    margin-top: 0;
  }

  .profile-card {
    justify-content: flex-end;
    align-items: flex-start;
    width: auto;
    max-width: none;
  }

  .profile-card::before {
    display: block;
    right: -0.35rem;
    bottom: -0.35rem;
    width: clamp(6.2rem, 26vw, 8rem);
    border-radius: 0.95rem;
  }

  .button {
    min-width: 0;
    min-height: 3rem;
    width: auto;
    padding-inline: 1rem;
  }

  .profile-card__portrait {
    width: clamp(6.2rem, 26vw, 8rem);
    border-radius: 0.95rem;
  }

  .focus-grid,
  .tools-grid,
  .project-grid,
  .contact-grid {
    grid-auto-columns: auto;
    grid-auto-flow: row;
    overflow: visible;
    padding-bottom: 0;
    padding-right: 0;
    gap: 0.8rem;
    scroll-snap-type: none;
  }

  .contact-shell,
  .contact-main {
    gap: 0.8rem;
  }

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

  #tools .section-shell {
    width: min(68rem, calc(100vw - 2rem));
    padding-inline: 0.8rem;
  }

  #tools.section-block::before {
    inset: 0.45rem 0.35rem 0.7rem;
    border-radius: 1.5rem;
  }

  #tools.section-block::after {
    right: -1.5rem;
    bottom: 1.75rem;
    width: 9rem;
  }

  .tools-overview {
    gap: 1rem;
    padding-top: 0.8rem;
  }

  .tools-overview__copy,
  .tool-cluster__header p:last-child {
    font-size: 0.92rem;
    line-height: 1.62;
  }

  .tools-clusters {
    grid-template-columns: 1fr;
  }

  .tool-cluster--systems {
    grid-column: auto;
  }

  .tool-cluster {
    gap: 0.95rem;
    padding: 0.9rem;
    border-radius: 1.05rem;
  }

  .tool-badge-grid {
    gap: 0.55rem;
  }

  .tool-badge {
    max-width: 3.9rem;
    min-height: 2.85rem;
  }

  .tool-badge:hover,
  .tool-badge:focus-visible,
  .tool-badge[aria-expanded="true"] {
    max-width: min(100%, 12.5rem);
  }

  .contact-list {
    gap: 0.65rem;
  }

  .site-footer {
    width: min(68rem, calc(100vw - 2rem));
    margin: 0 auto;
    padding-top: 0.6rem;
  }
}

@media (max-width: 460px) {
  .hero-actions {
    max-width: 14rem;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}

/* Linear hero flow to reduce breakpoint fragility */
.section-block--hero {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.section-shell--hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: auto;
  gap: 0;
}

.section-heading--hero {
  display: block;
  width: 100%;
  min-height: 0;
  max-width: none;
  order: 1;
}

.section-heading--hero h1 {
  max-width: none;
}

.hero-intro {
  width: 100%;
  max-width: 46rem;
}

.hero-tagline {
  max-width: 46rem;
  margin-top: 1.2rem;
}

.hero-copy {
  width: 100%;
  max-width: 47rem;
  margin-top: 1.45rem;
}

.hero-grid {
  order: 3;
  width: min(100%, clamp(22rem, 52vw, 35rem));
  margin-top: 1.2rem;
  justify-content: flex-start;
}

.profile-card {
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0 clamp(0.9rem, 1.8vw, 1.25rem) clamp(0.9rem, 1.8vw, 1.25rem) 0;
  justify-content: flex-start;
  align-items: flex-start;
}

.profile-card::before {
  right: 0;
  bottom: 0;
  width: calc(100% - clamp(0.9rem, 1.8vw, 1.25rem));
  aspect-ratio: 5 / 4;
  border-radius: 1.45rem;
}

.profile-card__portrait {
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 1.45rem;
  background-position: center 22%;
}

.hero-actions {
  order: 2;
  width: min(100%, 24rem);
  margin-top: 1.5rem;
  align-self: flex-start;
  opacity: 0;
  animation: fade-up 820ms cubic-bezier(0.22, 1, 0.36, 1) 320ms forwards;
}

@media (min-width: 1101px) {
  .section-heading--hero h1 {
    white-space: nowrap;
  }
}

@media (min-width: 981px) {
  .section-block--hero {
    height: 100svh;
    min-height: 100svh;
    overflow: clip;
    align-items: center;
  }

  .section-shell--hero {
    width: min(68rem, calc(100vw - 2 * clamp(7rem, 10vw, 10.5rem)));
    justify-content: center;
    min-height: 0;
    padding-inline: clamp(0.4rem, 1.1vw, 0.9rem);
    padding-top: calc(var(--header-height) + clamp(1.8rem, 3.4vh, 2.7rem));
    padding-bottom: clamp(3rem, 6vh, 4.5rem);
  }
}

@media (min-width: 1260px) {
  .section-shell--hero {
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(21rem, 0.8fr);
    grid-template-areas:
      "heading image"
      "actions image";
    align-items: start;
    align-content: center;
    column-gap: clamp(2rem, 3.3vw, 3.5rem);
    row-gap: 0;
    width: min(72rem, calc(100vw - 2 * clamp(6.75rem, 8.5vw, 9.75rem)));
  }

  .section-heading--hero {
    grid-area: heading;
    max-width: none;
  }

  .hero-intro {
    max-width: 36rem;
  }

  .hero-tagline {
    max-width: 31rem;
  }

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

  .hero-actions {
    grid-area: actions;
    width: min(100%, 25rem);
    margin-top: 1.75rem;
    align-self: start;
    justify-self: start;
  }

  .hero-grid {
    grid-area: image;
    width: min(100%, clamp(23rem, 29vw, 28rem));
    margin-top: 0.35rem;
    justify-self: end;
    align-self: start;
  }

  .profile-card {
    padding: 0 1.1rem 1.1rem 0;
  }

  .profile-card::before {
    width: calc(100% - 1.1rem);
    aspect-ratio: 4 / 5;
    border-radius: 1.5rem;
  }

  .profile-card__portrait {
    aspect-ratio: 4 / 5;
    border-radius: 1.5rem;
    background-position: center 18%;
  }
}

@media (max-width: 1100px) {
  .hero-grid {
    width: min(100%, clamp(20rem, 62vw, 31rem));
  }
}

@media (min-width: 761px) and (max-width: 1259px) {
  .section-block--hero {
    height: 100svh;
    min-height: 100svh;
    overflow: clip;
    align-items: center;
  }

  .section-shell--hero {
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(14rem, 0.72fr);
    grid-template-areas:
      "heading image"
      "actions image";
    align-items: start;
    align-content: center;
    column-gap: clamp(1.4rem, 3.2vw, 2.4rem);
    row-gap: 0;
    width: min(58rem, calc(100vw - 2 * clamp(2.8rem, 5vw, 4.5rem)));
    min-height: 0;
    padding-top: calc(var(--header-height) + clamp(1.4rem, 3vh, 2.2rem));
    padding-bottom: clamp(2.2rem, 4.8vh, 3.4rem);
  }

  .section-heading--hero {
    grid-area: heading;
    max-width: none;
  }

  .hero-intro {
    max-width: 30rem;
  }

  .section-heading--hero h1 {
    max-width: none;
    font-size: clamp(3rem, 6.8vw, 4.45rem);
    line-height: 0.93;
    white-space: nowrap;
  }

  .hero-tagline {
    max-width: 26rem;
    margin-top: 1.1rem;
    font-size: clamp(1.02rem, 1.9vw, 1.28rem);
  }

  .hero-copy {
    max-width: 28rem;
    margin-top: 1.15rem;
  }

  .hero-copy p {
    font-size: clamp(0.98rem, 1.6vw, 1.08rem);
    line-height: 1.62;
  }

  .hero-actions {
    grid-area: actions;
    width: min(100%, 23rem);
    margin-top: 1.35rem;
    align-self: start;
    justify-self: start;
  }

  .hero-grid {
    grid-area: image;
    width: min(100%, clamp(15rem, 34vw, 18.5rem));
    margin-top: 0.25rem;
    justify-self: end;
    align-self: start;
  }

  .profile-card {
    padding: 0 0.8rem 0.8rem 0;
  }

  .profile-card::before {
    width: calc(100% - 0.8rem);
    aspect-ratio: 4 / 5;
    border-radius: 1.2rem;
  }

  .profile-card__portrait {
    aspect-ratio: 4 / 5;
    border-radius: 1.2rem;
    background-position: center 18%;
  }
}

@media (max-width: 760px) {
  .hero-tagline {
    margin-top: 1rem;
  }

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

  .hero-grid {
    width: 100%;
    margin-top: 1.15rem;
  }

  .profile-card {
    padding: 0 0.65rem 0.65rem 0;
  }

  .profile-card::before {
    width: calc(100% - 0.65rem);
    border-radius: 1rem;
  }

  .profile-card__portrait {
    aspect-ratio: 6 / 5;
    border-radius: 1rem;
    background-position: center 20%;
  }

  .hero-actions {
    width: min(100%, 18rem);
    align-self: center;
    margin-top: 1.15rem;
  }
}

@media (min-width: 700px) and (max-width: 760px) {
  .section-block--hero {
    height: 100svh;
    min-height: 100svh;
    overflow: clip;
    align-items: center;
  }

  .section-shell--hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(10.5rem, 12.5rem);
    grid-template-areas:
      "heading image"
      "actions image";
    align-items: start;
    align-content: center;
    column-gap: 1.2rem;
    row-gap: 0;
    width: min(40rem, calc(100vw - 2.3rem));
    min-height: 0;
    padding-top: calc(var(--header-height) + 1.35rem);
    padding-bottom: 2.4rem;
  }

  .section-heading--hero {
    display: block;
    grid-area: heading;
    max-width: none;
  }

  .hero-intro {
    max-width: 21rem;
  }

  .section-heading--hero h1 {
    max-width: none;
    font-size: clamp(2.75rem, 7.2vw, 4rem);
    line-height: 0.94;
    white-space: nowrap;
  }

  .hero-tagline {
    max-width: 19rem;
    margin-top: 0.95rem;
    font-size: 1rem;
    line-height: 1.2;
  }

  .hero-copy {
    max-width: 21rem;
    margin-top: 1rem;
  }

  .hero-copy p {
    font-size: 0.9rem;
    line-height: 1.58;
  }

  .hero-actions {
    grid-area: actions;
    width: min(100%, 18rem);
    align-self: start;
    justify-self: start;
    margin-top: 1.2rem;
  }

  .hero-grid {
    grid-area: image;
    width: 100%;
    margin-top: 0.15rem;
    justify-self: end;
    align-self: start;
  }

  .profile-card {
    padding: 0 0.65rem 0.65rem 0;
  }

  .profile-card::before {
    width: calc(100% - 0.65rem);
    aspect-ratio: 4 / 5;
    border-radius: 1rem;
  }

  .profile-card__portrait {
    aspect-ratio: 4 / 5;
    border-radius: 1rem;
    background-position: center 18%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
