:root {
  color-scheme: dark;
  --color-bg: #060710;
  --color-bg-soft: #0d1020;
  --color-surface: rgb(255 255 255 / 7%);
  --color-surface-strong: rgb(255 255 255 / 12%);
  --color-text: #f7f8ff;
  --color-muted: #a9b0c6;
  --color-border: rgb(255 255 255 / 14%);
  --color-accent: #7c5cff;
  --color-accent-2: #20d6ff;
  --color-accent-3: #c8ff5d;
  --color-focus: #ffda6b;
  --shadow-soft: 0 24px 90px rgb(0 0 0 / 38%);
  --shadow-glow: 0 0 70px rgb(124 92 255 / 28%);
  --radius-lg: 34px;
  --radius-md: 22px;
  --container: min(1160px, calc(100% - 36px));
  --font-base: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgb(124 92 255 / 32%), transparent 34rem),
    radial-gradient(circle at 80% 8%, rgb(32 214 255 / 18%), transparent 30rem),
    radial-gradient(circle at 50% 92%, rgb(200 255 93 / 10%), transparent 28rem),
    linear-gradient(180deg, #050610 0%, #0a0d1c 48%, #060710 100%);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(to bottom, black 0%, transparent 82%);
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--color-accent-2);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
}

h1 {
  max-width: 860px;
  margin-bottom: 1.1rem;
  font-size: clamp(3.1rem, 7.4vw, 6.9rem);
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 4.4vw, 4.25rem);
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.28rem, 1.55vw, 1.55rem);
  letter-spacing: -0.032em;
}

p {
  margin-bottom: 1rem;
  color: var(--color-muted);
  font-size: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  padding-left: 1.2rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--color-text);
  color: var(--color-bg);
  font-weight: 800;
  padding: 0.7rem 1rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--color-border);
  background: rgb(6 7 16 / 74%);
  backdrop-filter: blur(22px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  margin: 0 auto;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  box-shadow: var(--shadow-glow);
  color: #ffffff;
}

.nav__toggle {
  display: none;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0.6rem 0.95rem;
}

.nav__list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0.35rem;
  gap: 0.2rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgb(255 255 255 / 6%);
  list-style: none;
}

.nav__list a {
  display: inline-flex;
  border-radius: 999px;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
}

.nav__list a:hover {
  background: rgb(255 255 255 / 8%);
  color: var(--color-text);
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 8rem) 0;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding-top: clamp(3rem, 6vw, 6rem);
}

.hero__layout {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.hero__content {
  position: relative;
}

.hero__text {
  max-width: 680px;
  margin-bottom: 1.8rem;
  color: #c7ccda;
  font-size: clamp(1.05rem, 1.65vw, 1.24rem);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 12%), rgb(255 255 255 / 4%)),
    radial-gradient(circle at 30% 20%, rgb(32 214 255 / 24%), transparent 16rem);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  padding: clamp(1.4rem, 4vw, 2rem);
}

.hero-panel::before,
.hero-panel::after {
  position: absolute;
  border-radius: 999px;
  content: "";
}

.hero-panel::before {
  inset: 1rem 1rem auto auto;
  width: 8rem;
  height: 8rem;
  background: radial-gradient(circle, rgb(200 255 93 / 62%), transparent 68%);
  filter: blur(8px);
}

.hero-panel::after {
  left: -4rem;
  bottom: -5rem;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgb(124 92 255 / 42%), transparent 70%);
}

.hero-portrait {
  position: absolute;
  right: clamp(1rem, 6vw, 2.2rem);
  top: 7.5rem;
  z-index: 1;
  overflow: hidden;
  width: min(58%, 18rem);
  aspect-ratio: 4 / 5;
  margin: 0;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 16%), rgb(255 255 255 / 4%)),
    radial-gradient(circle at 40% 20%, rgb(32 214 255 / 24%), transparent 10rem);
  box-shadow: 0 32px 100px rgb(0 0 0 / 42%), 0 0 120px rgb(32 214 255 / 22%);
  transform: rotate(3deg);
}

.hero-portrait::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, transparent 48%, rgb(6 7 16 / 34%) 100%),
    radial-gradient(circle at 20% 10%, rgb(255 255 255 / 22%), transparent 8rem);
  content: "";
  pointer-events: none;
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
}

.hero-panel__label,
.project-card__tag,
.eyebrow {
  color: var(--color-accent-3);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-panel__label {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.hero-panel__title {
  position: relative;
  z-index: 1;
  max-width: 330px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.hero-panel__caption {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 1.5rem;
  z-index: 1;
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
}

.hero-stats {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 6rem;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.hero-stats div {
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: rgb(6 7 16 / 58%);
  padding: 0.9rem;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-stats span {
  color: var(--color-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.eyebrow {
  margin-bottom: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  box-shadow: 0 16px 46px rgb(32 214 255 / 18%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.85rem 1.25rem;
  text-decoration: none;
}

.button:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.button--secondary {
  border-color: var(--color-border);
  background: rgb(255 255 255 / 7%);
  box-shadow: none;
  color: var(--color-text);
}

.button--secondary:hover {
  background: rgb(255 255 255 / 12%);
  color: var(--color-text);
}

.section__header {
  max-width: 820px;
  margin-bottom: 2rem;
}

.section__header h2 {
  margin-bottom: 0;
}

.section__header--split {
  display: grid;
  align-items: end;
  max-width: none;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 2rem;
}

.section__header--split > p {
  margin-bottom: 0.4rem;
  max-width: 560px;
  font-size: 1.03rem;
  line-height: 1.7;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.projects-section {
  counter-reset: project;
}

.project-card,
.skill-grid article,
.legal-page section {
  border: 1px solid var(--color-border);
  background: linear-gradient(145deg, rgb(255 255 255 / 10%), rgb(255 255 255 / 4%));
  box-shadow: var(--shadow-soft);
}

.project-card,
.skill-grid article {
  padding: 1.35rem;
}

.project-card {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 365px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-md);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.project-card::before {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: rgb(255 255 255 / 10%);
  content: counter(project, decimal-leading-zero);
  counter-increment: project;
  font-size: 3rem;
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 1;
}

.project-card::after {
  position: absolute;
  inset: auto -30% -45% 20%;
  height: 12rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgb(124 92 255 / 24%), transparent 70%);
  content: "";
  pointer-events: none;
}

.project-card:hover {
  border-color: rgb(32 214 255 / 48%);
  background: linear-gradient(145deg, rgb(255 255 255 / 14%), rgb(255 255 255 / 5%));
  transform: translateY(-5px);
}

.project-card--featured {
  grid-column: span 2;
  background:
    linear-gradient(145deg, rgb(124 92 255 / 30%), rgb(255 255 255 / 7%)),
    radial-gradient(circle at 78% 16%, rgb(32 214 255 / 30%), transparent 16rem);
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-card p:not(.project-card__tag):not(.project-card__meta) {
  max-width: 46rem;
  font-size: 0.96rem;
  line-height: 1.62;
}

.project-card__media {
  position: relative;
  overflow: hidden;
  height: 176px;
  margin: -0.25rem -0.25rem 1.2rem;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 12%), rgb(255 255 255 / 3%)),
    radial-gradient(circle at 30% 20%, rgb(32 214 255 / 18%), transparent 12rem);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 14%);
}

.project-card--featured .project-card__media {
  height: 250px;
}

.project-card__media::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, transparent 45%, rgb(6 7 16 / 62%) 100%),
    radial-gradient(circle at 16% 14%, rgb(255 255 255 / 20%), transparent 6rem);
  content: "";
  pointer-events: none;
}

.project-card__media::after {
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  z-index: 3;
  width: 2.3rem;
  height: 0.65rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 0.32rem 50%, #ff6b6b 0.2rem, transparent 0.22rem),
    radial-gradient(circle at 1.1rem 50%, #ffd166 0.2rem, transparent 0.22rem),
    radial-gradient(circle at 1.88rem 50%, #74f0a7 0.2rem, transparent 0.22rem);
  content: "";
  opacity: 0.9;
}

.project-card__media img,
.project-card__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__media video {
  filter: saturate(1.08) contrast(1.04);
}

.project-card__media--duo,
.project-card__media--stack,
.project-card__media--mosaic,
.project-card__media--phones {
  display: grid;
  gap: 0.45rem;
  padding: 0.55rem;
}

.project-card__media--duo {
  grid-template-columns: 1.15fr 0.85fr;
}

.project-card__media--stack {
  grid-template-columns: 1fr 1fr;
}

.project-card__media--stack img:first-child {
  grid-row: span 2;
}

.project-card__media--mosaic {
  grid-template-columns: repeat(2, 1fr);
}

.project-card__media--phones {
  place-content: center;
  grid-template-columns: repeat(2, minmax(4.6rem, 6.8rem));
  background:
    radial-gradient(circle at 70% 18%, rgb(200 255 93 / 32%), transparent 9rem),
    linear-gradient(135deg, #07151f, #166dff 52%, #20d6ff);
}

.project-card__media--duo img,
.project-card__media--stack img,
.project-card__media--mosaic img,
.project-card__media--phones img {
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 12px;
}

.project-card__media--phones img {
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgb(0 0 0 / 32%);
}

.project-card__media--phones img:first-child {
  transform: translateY(0.35rem) rotate(-4deg);
}

.project-card__media--phones img:last-child {
  transform: translateY(-0.35rem) rotate(4deg);
}

.project-card__media--placeholder {
  display: grid;
  place-items: center;
}

.project-card__media--placeholder span {
  position: relative;
  z-index: 3;
  display: grid;
  width: 5rem;
  height: 5rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 26px;
  background: rgb(6 7 16 / 44%);
  box-shadow: 0 18px 60px rgb(0 0 0 / 28%);
  color: var(--color-text);
  font-size: 1.25rem;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.project-card__media--french {
  background:
    radial-gradient(circle at 18% 22%, rgb(32 214 255 / 30%), transparent 10rem),
    linear-gradient(135deg, #1b2bff, #ffffff 48%, #ff3158);
}

.project-card__media--english {
  background:
    radial-gradient(circle at 74% 24%, rgb(200 255 93 / 26%), transparent 10rem),
    linear-gradient(135deg, #151d52, #7c5cff 48%, #20d6ff);
}

.project-card__media--recipes {
  background:
    radial-gradient(circle at 24% 28%, rgb(255 218 107 / 42%), transparent 10rem),
    linear-gradient(135deg, #2b1538, #ff7a45);
}

.project-card__media--sport {
  background:
    radial-gradient(circle at 76% 20%, rgb(200 255 93 / 42%), transparent 10rem),
    linear-gradient(135deg, #07151f, #166dff 52%, #20d6ff);
}

.project-card__meta {
  color: #dfe3f3;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.project-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.project-card__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgb(255 255 255 / 7%);
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.project-card__links a:first-child {
  background: var(--color-text);
  color: var(--color-bg);
}

.project-card__links a:hover {
  border-color: rgb(32 214 255 / 45%);
  color: var(--color-accent-2);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  margin-block: 1.2rem 0;
  padding: 0;
  gap: 0.5rem;
  list-style: none;
}

.tag-list li {
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
  color: #d7dbee;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.36rem 0.64rem;
}

.section--muted {
  width: 100%;
  max-width: none;
  border-block: 1px solid var(--color-border);
  background:
    radial-gradient(circle at 20% 0%, rgb(32 214 255 / 10%), transparent 22rem),
    rgb(255 255 255 / 4%);
  padding-inline: max(18px, calc((100% - 1160px) / 2));
}

.skill-grid article {
  min-height: 210px;
  border-radius: var(--radius-md);
}

.skill-grid h3 {
  color: var(--color-text);
}

.skill-grid p {
  font-size: 0.96rem;
  line-height: 1.62;
}

.about-section {
  position: relative;
  display: grid;
  min-height: 620px;
  align-items: start;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgb(6 7 16 / 32%) 0%, rgb(6 7 16 / 12%) 50%, rgb(6 7 16 / 0%) 100%),
    linear-gradient(180deg, transparent 58%, rgb(6 7 16 / 24%) 100%),
    #090b17;
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  padding: clamp(1.2rem, 5vw, 3rem);
}

.about-section::before {
  position: absolute;
  inset: -24px;
  background:
    linear-gradient(90deg, rgb(6 7 16 / 18%), transparent 62%),
    url("../img/Joan_big.jpg") center center / cover no-repeat;
  content: "";
  filter: blur(18px) saturate(1.08);
  opacity: 0.72;
  pointer-events: none;
}

.about-section::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgb(32 214 255 / 10%), transparent 18rem),
    radial-gradient(circle at 78% 12%, rgb(200 255 93 / 7%), transparent 16rem),
    url("../img/Joan_big.jpg") center center / contain no-repeat;
  content: "";
  pointer-events: none;
}

.about-section__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 28px;
  background: rgb(6 7 16 / 76%);
  backdrop-filter: blur(22px);
  box-shadow: 0 24px 70px rgb(0 0 0 / 34%);
  padding: clamp(1.2rem, 4vw, 2.2rem);
}

.about-section__content h2 {
  margin-bottom: 1.15rem;
}

.about-section__content p:not(.eyebrow) {
  color: #eef2ff;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.75;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  margin-top: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 80% 20%, rgb(200 255 93 / 18%), transparent 20rem),
    linear-gradient(135deg, rgb(124 92 255 / 32%), rgb(32 214 255 / 12%));
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  padding-inline: clamp(1.4rem, 5vw, 3rem);
  gap: 2rem;
}

.contact p,
.contact .eyebrow {
  color: rgb(247 248 255 / 78%);
}

.contact h2 {
  max-width: 760px;
}

.legal-page {
  max-width: 900px;
}

.legal-note {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent-2);
  border-radius: 18px;
  background: rgb(32 214 255 / 9%);
  color: var(--color-text);
  padding: 1rem;
}

.legal-page section {
  margin-top: 1rem;
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0 2rem;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  gap: 1rem;
  list-style: none;
}

.site-footer a {
  color: var(--color-muted);
}

@media (max-width: 980px) {
  .hero__layout,
  .section__header--split,
  .about-section {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 430px;
  }

  .project-grid,
  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card--featured {
    grid-column: span 1;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100% - 28px, 1160px);
  }

  .nav {
    align-items: flex-start;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__list {
    position: absolute;
    inset: 100% 18px auto 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-md);
    background: rgb(10 13 28 / 94%);
    box-shadow: var(--shadow-soft);
    padding: 0.8rem;
  }

  .nav__list.is-open {
    display: flex;
  }

  .nav__list a {
    justify-content: center;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
    letter-spacing: -0.06em;
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
    letter-spacing: -0.05em;
  }

  h3 {
    font-size: 1.28rem;
  }

  .section {
    padding: 3.6rem 0;
  }

  .hero {
    min-height: auto;
    padding-top: 2.6rem;
  }

  .hero__text {
    font-size: 1rem;
    line-height: 1.68;
  }

  .hero__actions,
  .project-card__links {
    flex-direction: column;
  }

  .hero__actions .button,
  .project-card__links a {
    width: 100%;
  }

  .project-grid,
  .skill-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: grid;
    min-height: auto;
    padding: 1rem;
  }

  .hero-portrait {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-bottom: 1.1rem;
    border-radius: 24px;
    transform: none;
  }

  .hero-panel__label,
  .hero-panel__title,
  .hero-stats,
  .hero-panel__caption {
    position: relative;
    z-index: 3;
  }

  .hero-panel__title {
    max-width: none;
    font-size: clamp(1.55rem, 8vw, 2.25rem);
  }

  .hero-stats {
    position: static;
    margin-top: 1.2rem;
  }

  .hero-stats strong {
    font-size: 1.08rem;
  }

  .hero-panel__caption {
    position: static;
    margin-top: 1rem;
  }

  .project-card {
    min-height: auto;
    padding: 1rem;
  }

  .project-card p:not(.project-card__tag):not(.project-card__meta),
  .skill-grid p,
  .section__header--split > p {
    font-size: 0.95rem;
  }

  .project-card::before {
    font-size: 2.25rem;
  }

  .project-card__media,
  .project-card--featured .project-card__media {
    height: 168px;
    margin-bottom: 1rem;
  }

  .project-card__media--phones,
  .project-card--featured .project-card__media--phones {
    height: 240px;
    grid-template-columns: repeat(2, minmax(4.2rem, 6.2rem));
  }

  .about-section {
    min-height: 560px;
    align-items: start;
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgb(6 7 16 / 0%) 0%, rgb(6 7 16 / 48%) 78%),
      #090b17;
    padding: 1rem;
  }

  .about-section::before {
    background:
      linear-gradient(180deg, transparent, rgb(6 7 16 / 18%) 72%),
      url("../img/Joan_big.jpg") center top / cover no-repeat;
  }

  .about-section::after {
    background:
      linear-gradient(180deg, transparent 58%, rgb(6 7 16 / 18%) 100%),
      url("../img/Joan_big.jpg") center top / contain no-repeat;
  }

  .about-section__content {
    border-radius: 22px;
    background: rgb(6 7 16 / 82%);
    padding: 1.1rem;
  }

  .about-section__content p:not(.eyebrow) {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .contact {
    padding-block: 3rem;
  }

  .contact,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
