:root {
  --page-background: #f6f1e8;
  --accent-gold: #e9aa0d;
  --text-color: #333;
  --muted-color: #764c75;
  --subtle-border: rgba(23,22,26,.15);
  --accent-violet: #7b709e;
  --accent-rose: #d270aa;
  --accent-peach: #ffd9c8;
  --accent-mint: #94ce83;
  --accent-sky: #6dbef3;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --content-width: 1240px;
  --shadow: 0 24px 70px rgba(23,22,26,.13), 0 7px 24px rgba(23,22,26,.08);
  --ease-out: cubic-bezier(.2,.8,.2,1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text-color);
  background: var(--page-background);
  line-height: 1.55;
}

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

a:focus-visible, button:focus-visible {
  outline: 3px dashed #333;
  border-radius: 8px;
  outline-offset: 4px;
}

img, iframe {
  display: block;
}

svg.lucide {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}

.skip-link {
  position: fixed;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #111;
}

.scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  min-width: 300px;
}

.scene > * {
  position: relative;
  z-index: 4;
}

.scene::before, .scene::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

/* Hero */

.scene-hero {
  min-height: calc(100vh - 65px);
  background: linear-gradient(130deg, rgba(233,170,13,.12), transparent 35%),
    radial-gradient(circle at 86% 22%, rgba(109,190,243,.28), transparent 28%),
    radial-gradient(circle at 72% 72%, rgba(210,112,170,.18), transparent 30%),
    var(--page-background);
}

/* .scene-hero::before {
  width: min(70vw, 880px);
  aspect-ratio: 1;
  border-radius: 50%;
  right: max(-26vw, -360px);
  top: clamp(80px, 10vw, 150px);
  border: 2px solid rgba(123,112,158,.24);
  box-shadow: 0 0 0 68px rgba(123,112,158,.08),
    0 0 0 138px rgba(109,190,243,.07),
    0 0 0 210px rgba(210,112,170,.055);
  animation: drift-orbit 14s ease-in-out infinite alternate;
} */

.hero-portrait-image {
  position: absolute;
  left: 31%;
  top: 8%;
  width: 84%;
  max-width: 680px;
  object-fit: contain;
  mix-blend-mode: darken;
  opacity: .86;
  filter: saturate(.88) contrast(1.02);
}

.hero-portrait-overlay-image {
  position: absolute;
  left: 63%;
  top: 1%;
  width: 90%;
  max-width: 720px;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: .8;
  transition: 1s opacity linear;
}

/* Selected work */

.scene-work {
  background: radial-gradient(circle at 12% 22%, #764f881a 0 4px, transparent 5px) 0 0 / 64px 64px, linear-gradient(145deg, #261033 0%, #5e3858 48%, #0d0017 100%);
  border-top: 1px solid rgba(23, 22, 26, .08);
  border-bottom: 1px solid rgba(23, 22, 26, .08);
}

/* How I work */

.scene-about {
  background: linear-gradient(120deg, rgba(255,255,255,.16), transparent 36%),
    #ada6c1;
  color: #211d16;
}

.scene-about::before {
  width: 620px;
  height: 620px;
  left: -220px;
  top: -180px;
  border-radius: 50%;
  border: 3px solid #75577b1b;
  box-shadow: 0 0 0 72px rgb(172 165 193), 0 0 0 144px rgb(143 133 169 / 34%);
}

/* Career */

.scene-history {
  background: linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px), linear-gradient(90deg, #ffffff05 1px, transparent 1px), radial-gradient(circle at 80% 20%, rgba(123, 112, 158, .30), transparent 28%), #211f27;
  background-size: 74px 74px, 74px 74px, auto, auto;
  color: #f7f3eb;
}

.scene-history::before {
  width: 760px;
  height: 760px;
  right: -360px;
  top: -160px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 0 0 96px rgba(255,255,255,.025), 0 0 0 192px rgba(109,190,243,.035);
}

.scene-history::after {
  width: 260px;
  height: 260px;
  left: -70px;
  bottom: -70px;
  background: linear-gradient(135deg, rgb(210 112 170 / 39%), rgb(109 190 243 / 30%));
  border-radius: 50%;
  filter: blur(80px);
  opacity: .6;
}

/* About me */

.scene-personal {
  background:
    radial-gradient(circle at 88% 16%, rgba(210,112,170,.18), transparent 25%),
    radial-gradient(circle at 10% 88%, rgba(109,190,243,.16), transparent 24%),
    linear-gradient(145deg, #f5efe8 0%, #eee8f0 55%, #ebe5dd 100%);
  color: var(--text-color);
}

.scene-personal::before {
  width: min(46vw, 620px);
  aspect-ratio: 1;
  right: max(-18vw, -220px);
  top: -180px;
  border-radius: 50%;
  border: 1px solid rgba(123,112,158,.15);
  box-shadow: 0 0 0 72px rgba(123,112,158,.045), 0 0 0 144px rgba(210,112,170,.04);
}

.scene-contact {
    background: radial-gradient(circle at 12% 22%, #764f881a 0 4px, transparent 5px) 0 0 / 64px 64px, linear-gradient(145deg, #261033 0%, #5e3858 48%, #0d0017 100%);
}

.hero,
.work-intro,
.approach,
.career,
.about-me,
.contact,
.footer-content {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fef9f0e0;
  padding: 12px 74px;
  backdrop-filter: blur(4px);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .02em;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -.045em;
}

.wordmark b {
  color: var(--accent-violet);
  letter-spacing: -0.1em;
}

.wordmark small {
  font-size: .55em;
  font-weight: 600;
  color: var(--accent-violet);
  letter-spacing: 0.5px;
}

.wordmark-footer {
  font-size: 1.05rem;
  color: #efefef;
}

nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

nav a {
  font-size: .92rem;
  color: #5d585e;
}

nav a:hover {
  color: var(--text-color);
}

.contact-link {
  padding: .72rem 1rem;
  border: 1px solid rgba(23, 22, 26, .15);
  border-radius: 999px;
  background: #333;
  color: #fff;
  line-height: 1em;
  display: inline-flex;
  gap: 7px;
}

.contact-link:hover {
  color: #fff;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .48rem;
  margin: 1.2rem 0 0;
  padding: 0;
  align-items: center;
  list-style: none;
}

.tag-list li {
  padding: .38rem .65rem;
  border-radius: 999px;
  background: rgba(123,112,158,.11);
  font-size: .78rem;
  font-weight: 600;
  transition: 0.3s all;
}

.tag-list li:hover {
  background: rgb(123 112 158);
  color: #eee;
}

.tag-list--dark li {
  padding: .38rem .65rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  transition: 0.3s all;
  background: #884f7580;
  color: #ffd2f080;
}

.tag-list--dark li:hover {
  background: #884f75;
  color: #ffd2f0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr);
  gap: 3rem 4.5rem;
  align-items: center;
  min-height: calc(100vh - 80px);
}

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

.hero-greeting {
  margin: 0 0 1.4rem;
  color: var(--muted-color);
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 8vw, 6rem);
  line-height: .92;
  letter-spacing: -.065em;
  font-weight: 700;
}

.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -.035em;
  color: var(--accent-violet);
}

.hero h1 .amp {
  font-family: var(--sans);
  font-style: normal;
  color: var(--text-color);
}

.hero-summary {
  max-width: 61ch;
  margin: 1.7rem 0 0;
  font-size: 1.08rem;
  color: #3c383d;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 2rem;
}

.button, .google-meet button {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  padding: .92rem 1.22rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}

.button--dark {
  background: var(--text-color);
  color: #fffaf5;
  box-shadow: var(--shadow);
}

.button--dark svg {
  stroke: var(--accent-gold);
}

.text-link {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.text-link:hover {
  border-bottom: 1px solid #666;
}

.profile-card {
  position: relative;
  max-width: 390px;
  justify-self: end;
  padding: 2rem 1.8rem 1.7rem;
  border: 1px solid rgba(23,22,26,.12);
  border-radius: 26px;
  background: rgba(246,241,232,.72);
  box-shadow: 0 18px 55px rgba(23,22,26,.08);
  backdrop-filter: blur(12px);
  margin-bottom: 24px;
}

.profile-card::before {
  content: "";
  position: absolute;
  width: 76px;
  height: 6px;
  left: 1.8rem;
  top: 1.4rem;
  border-radius: 6px;
  background: linear-gradient(90deg,var(--accent-rose),var(--accent-sky));
}

.profile-card p {
  color: #413d45;
}

.profile-card p + p {
  margin-top: .8rem;
}

.experience-count {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 6vw, 5.2rem);
  font-style: italic;
  line-height: 1.25;
  letter-spacing: -.04em;
  color: var(--accent-violet) !important;
}

.availability-status {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  margin: 1.25rem 0 0;
  font-size: .9rem;
  font-weight: 600;
}

.availability-status > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-mint);
  box-shadow: 0 0 0 6px rgba(133,230,179,.18);
}

.scroll-hint {
  position: absolute;
  right: clamp(24px, 3.5vw, 64px);
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  color: var(--muted-color);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  pointer-events: none;
}

.scroll-hint-line {
  display: block;
  width: 1px;
  height: 72px;
  background: linear-gradient(180deg, rgba(23,22,26,.08), rgba(23,22,26,.42));
}

.section-label {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent-violet);
}

.work-intro,
.approach-header,
.career-header {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: start;
}

.work-intro {
  padding: 11rem 0 3rem;
}

.work-intro h2,
.career h2 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 700;
  color: #d4b8da;
}

.work-intro h2 em, .contact h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -.03em;
  color: #884f75;
}

.work-intro-copy p {
  max-width: 48ch;
  margin-top: 1rem;
  color: #ffffff70;
}

.project-list {
  width: min(calc(100% - 48px), 1380px);
  margin: 0 auto;
  padding: 3rem 0 8rem;
  display: grid;
  gap: 8rem;
}

.project {
  display: grid;
  grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr);
  gap: 2.5rem 2.8rem;
  align-items: center;
}

.project:nth-child(even) {
  grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr);
}

.project-details {
  max-width: 460px;
}

.project-number {
  font-size: 2rem;
  font-style: italic;
  font-weight: 600;
  color: #884f75;
  line-height: 2rem;
}

.project h3 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: .95;
  letter-spacing: -.05em;
  color: #d5b9da;
}

.project-details p:last-of-type {
  color: #ffffff70;
}

.project-details a {
  display: inline-block;
  margin-top: .9rem;
  font-weight: 700;
  color: #884f75;
  display: flex;
  align-items: center;
}

/* Project previews */

.browser-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid #34313a;
  border-radius: 22px;
  background: #1211164d;
  box-shadow: 0 0 40px rgba(23,22,26,.22);
  transform-style: preserve-3d;
  transition: transform .25s ease;
}

.browser-toolbar {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: .7rem;
  align-items: center;
  min-height: 48px;
  padding: .68rem .8rem;
  background: #17161a80;
  border-bottom: 1px solid #302e35;
}

.window-dots {
  display: inline-flex;
  gap: .36rem;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) {
  background: #d270aa;
}

.window-dots span:nth-child(2) {
  background: #e9aa0d;
}

.window-dots span:nth-child(3) {
  background: #85e6b3;
}

.browser-url {
  min-width: 0;
  padding: .37rem .7rem;
  border: 1px solid #33313a;
  border-radius: 7px;
  background: #88597a30;
  color: #b7b1ba;
  font-size: .82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-toggle {
  border: 1px solid #88597a;
  border-radius: 12px;
  padding: .35rem .6rem;
  background: #88597a30;
  color: #ffd2f0;
  font: inherit;
  font-size: .7rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 0;
}

.preview-toggle.active {
  background: #88597acc;
}

.preview-toggle:hover {
  background: #88597a;
}

.preview-toggle svg.lucide {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

.browser-viewport {
  position: relative;
  height: clamp(360px, 40vw, 560px);
  overflow: hidden;
  background: #0d0c10;
}

.browser-viewport iframe {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 1440px;
  height: 900px;
  margin: 0;
  border: 0;
  transform-origin: top left;
  transform: scale(var(--frame-scale,.55));
  pointer-events: none;
}

.browser-shell.interactive iframe {
  pointer-events: auto;
}

.preview-link {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: .62rem .86rem;
  border: 1px solid rgb(59 42 59);
  border-radius: 12px;
  background: rgb(21 0 21 / 58%);
  color: #fdf1ff;
  font-size: .82rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
}

.approach {
  padding: 7rem 0 8rem;
}

.approach h2 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 700;
  color: #333;
}

.approach h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -.03em;
  color: var(--accent-violet);
}

.scene-about .section-label {
  color: rgba(23,22,26,.62);
}

.career {
  padding: 7rem 0 8rem;
}

.scene-history .career h2 {
  color: #fffaf5;
}

.about-me {
  padding: 8.5rem 0 9rem;
}

.about-me-header {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.about-me h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.9rem);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 700;
  color: #3b303b;
}

.about-me h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--accent-violet);
}

.about-me-intro {
  max-width: 62ch;
  margin: 1.25rem 0 0;
  color: #575057;
  font-size: 1.02rem;
}

.about-me-grid {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6.5rem);
  align-items: center;
  margin-top: 4.5rem;
}

.about-me-photo-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .85rem;
  min-height: clamp(360px, 48vw, 620px);
  overflow: hidden;
  border: 1px solid rgba(75, 62, 78, .15);
  border-radius: 28px 6px 28px 6px;
  background: linear-gradient(135deg, rgba(210, 112, 170, .16), rgba(109, 190, 243, .12));
  color: #6f6371;
  text-align: center;
  box-shadow: 0 28px 70px rgba(57, 43, 59, .10);
}

.about-me-photo-placeholder::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, .54);
  border-radius: 19px 3px 19px 3px;
  pointer-events: none;
  background: url(Family.webp);
  background-size: cover;
  background-position: center;
}

.about-me-photo-placeholder svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.25;
}

.about-me-photo-placeholder span {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.about-me-copy {
  display: grid;
  gap: 2rem;
}

.about-me-copy article {
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(75,62,78,.12);
}

.about-me-kicker {
  margin: 0 0 .45rem;
  color: var(--accent-violet);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.about-me-copy h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  letter-spacing: -.035em;
}

.about-me-copy article > p:last-child {
  max-width: 58ch;
  margin: .7rem 0 0;
  color: #5f5760;
}

.tag-list.about-me-list li {
  background: rgba(255,255,255,.48);
}
.tag-list.about-me-list li:hover {
  background: rgb(123 112 158);
  color: #eee;
}

.contact {
  padding: 6rem 0 4rem;
}

.contact-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(300px,.8fr);
  gap: 2rem 2.6rem;
  min-height: 420px;
  padding: 3rem clamp(1.4rem,3vw,3.2rem);
  border-radius: 34px;
  background: #201d29;
  color: #fff;
  box-shadow: var(--shadow);
}

.contact-card::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: -170px;
  top: -210px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 68px rgba(255,255,255,.038), 0 0 0 138px rgba(255,255,255,.025);
}

.contact-card .section-label {
  margin-bottom: 1.2rem;
}

.contact-card h2 {
  position: relative;
  z-index: 2;
  font-size: clamp(3.2rem,6vw,6.2rem);
}

.contact-form-area {
  position: relative;
  z-index: 2;
  align-self: center;
  color: #d8d0df;
  text-align: center;
}

.contact-form-area p {
  color: #d8d0df;
}

.contact-form-area .button, .google-meet button {
  background: #fffaf3;
  color: #201d29;
  border: none;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans';
}

.contact-form-area .button svg {
  color: var(--accent-rose);
}

.contact-orbit {
  position: absolute;
  right: clamp(2.4rem,4vw,4.6rem);
  top: clamp(2.6rem,4vw,4.2rem);
  width: clamp(230px,17vw,300px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  animation: orbitspin 18s linear infinite;
}

.contact-orbit::before {
  content: "";
  position: absolute;
  inset: 26%;
  border: 1px dashed rgba(255,255,255,.13);
  border-radius: 50%;
}

.contact-orbit span {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  transform: translate(-50%,-50%);
}

.contact-orbit span:first-child {
  left: 50%;
  top: 0;
  background: var(--accent-mint);
}

.contact-orbit span:nth-child(2) {
  left: 88.5%;
  top: 82%;
  background: #f4d55d;
}

.contact-orbit span:nth-child(3) {
  left: 11.5%;
  top: 82%;
  background: #ef7a63;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s var(--ease-out),
    transform .75s var(--ease-out);
  transition-delay: 0.15s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes orbitspin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slow-spin {
  to {
    transform: rotate(360deg);
  }
}

/* @keyframes drift-orbit {
  from {
    transform: translate3d(0,0,0) rotate(-3deg);
  }
  to {
    transform: translate3d(-24px,16px,0) rotate(3deg);
  }
} */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1760px) {
  .scene-hero > .hero-portrait-overlay-image {
    opacity: 0.4;
  }
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 4.5rem;
  }
  .profile-card {
    justify-self: start;
    max-width: 620px;
  }
  .project,
  .project:nth-child(even),
  .contact-card {
    grid-template-columns: 1fr;
  }
  .project:nth-child(even) .project-details {
    order: -1;
  }
  .project-details {
    max-width: 650px;
  }
  .scroll-hint {
    display: none;
  }
  .scene-hero::before {
    width: 720px;
    right: -420px;
  }
}

@media (max-width: 760px) {
  .hero,
  .work-intro,
  .approach,
  .career,
  .about-me,
  .contact,
  .footer-content {
    width: min(calc(100% - 48px), var(--content-width));
  }
  .site-header {
    padding: 12px 24px;
  }
  nav a:not(.contact-link) {
    display: none;
  }
  .hero {
    padding: 12.3rem 0 4.5rem;
  }
  .hero h1 {
    font-size: clamp(3.5rem, 16vw, 5.8rem);
  }
  .work-intro,
  .approach-header,
  .career-header {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .work-intro {
    padding-top: 5.5rem;
  }
  .project-list {
    width: min(calc(100% - 48px),1380px);
    gap: 6rem;
    padding-bottom: 6rem;
  }
  .browser-toolbar {
    grid-template-columns: 58px 1fr auto;
  }
  .browser-viewport {
    height: min(68vw,470px);
  }
  .approach, .career {
    padding: 5.5rem 0 6rem;
  }
  .about-me {
    padding: 5.5rem 0 6rem;
  }
  .about-me-header,
  .about-me-grid {
    grid-template-columns: 1fr;
  }
  .about-me-header {
    gap: 1rem;
  }
  .about-me-grid {
    gap: 2.4rem;
    margin-top: 3rem;
  }
  .about-me-photo-placeholder {
    min-height: min(120vw, 520px);
  }
  .contact-card {
    min-height: 560px;
  }
  .contact-orbit {
    right: -100px;
    top: 18px;
  }
  .scene-work::before {
    width: 390px;
    height: 390px;
    right: -210px;
  }
}

@media (max-width: 430px) {
  .contact-link {
    padding: .5rem .72rem;
  }
  .hero-greeting {
    margin-bottom: 1rem;
  }
  .browser-url {
    display: none;
  }
  .browser-toolbar {
    grid-template-columns: 1fr auto;
  }
  .profile-card {
    padding: 1.8rem 1.35rem 1.4rem;
  }
}

.scene {
  isolation: isolate;
}

.scene-shards {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  margin-bottom: -100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
  contain: layout paint style;
}

@supports (height: 100dvh) {
  .scene-shards {
    height: 100dvh;
    margin-bottom: -100dvh;
  }
}

/* The hero layer belongs to the portrait scene rather than the viewport. It
   therefore scrolls naturally with the portrait without any scroll handler. */
.scene-hero > .scene-shards {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  z-index: 2;
}

.scene-hero > .hero-portrait-image {
  position: absolute;
  z-index: 1;
}

.scene-hero > .hero-portrait-overlay-image {
  position: absolute;
  z-index: 1;
}

.scene-hero > main,
.scene-hero main,
.scene-hero .site-header,
.scene-hero .hero-content,
.scene-hero .profile-card,
.scene-hero .hero {
  position: relative;
  z-index: 3;
}

/* A shard is one clipped DOM box. There is no SVG subtree, filter, blend mode,
   or JavaScript position update. Only transform + opacity animate. */
.shard {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  aspect-ratio: 1;
  background: var(--shard-fill);
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) rotate(var(--rot-a)) scale(var(--scale));
  transform-origin: center;
  animation: shardDrift var(--duration) ease-in-out infinite alternate;
  animation-delay: var(--delay);
  will-change: auto;
  contain: paint;
  backface-visibility: hidden;
}

.shard--narrow {
  clip-path: polygon(0 0, 0 100%, 34% 100%);
}

.shard--wide {
  clip-path: polygon(0 0, 0 100%, 54% 0);
}

.scene-hero .shard {
  /* Size and travel are recalculated only on layout changes so the shard field
     grows and shrinks with the portrait without introducing per-frame JS. */
  animation-name: heroShardEmit;
  animation-timing-function: cubic-bezier(.22,.58,.28,1);
  animation-direction: normal;
}

@keyframes shardDrift {
  0% {
    transform: translate3d(-50%, -50%, 0) rotate(var(--rot-a)) scale(var(--scale));
    opacity: calc(var(--alpha) * .34);
  }
  50% {
    opacity: calc(var(--alpha) * .78);
  }
  100% {
    transform: translate3d(calc(-50% + var(--dx)), calc(-50% + var(--dy)), 0) rotate(var(--rot-b)) scale(calc(var(--scale) * 1.05));
    opacity: calc(var(--alpha) * .24);
  }
}

@keyframes heroShardEmit {
  0% {
    transform: translate3d(-50%, -50%, 0) rotate(var(--rot-a)) scale(calc(var(--scale) * .72));
    opacity: 0;
  }
  12% {
    opacity: calc(var(--alpha) * .9);
  }
  68% {
    opacity: calc(var(--alpha) * .68);
  }
  100% {
    transform: translate3d(calc(-50% + var(--dx)), calc(-50% + var(--dy)), 0) rotate(var(--rot-b)) scale(calc(var(--scale) * 1.08));
    opacity: 0;
  }
}

/* Off-screen sections retain their small set of shard nodes, but their
   animations consume no animation time until the section approaches view. */
.scene.shards-visible .shard {
  will-change: transform, opacity;
}

.scene:not(.shards-visible) .shard {
  animation-play-state: paused;
}

/* The game gets the whole visual budget. Decorative page animation is removed
   while Phaser is mounted and resumes automatically when the game closes. */
body.ship-it-game-open .scene-shards {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .shard {
    animation: none;
    opacity: .32;
  }
}

.site-header {
  z-index: 50;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
}

.nav-links a > svg.lucide {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  transition: transform .32s var(--ease-out), opacity .32s var(--ease-out);
  stroke: var(--accent-gold);
}

/* Project preview hover area. */

.project-preview {
  position: relative;
  padding: 12px;
  margin: -12px;
  border-radius: 32px;
  z-index: 2;
}

.project-preview::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 29px;
  border: 1px solid transparent;
  box-shadow: 0 0 0 0 rgba(210,112,170,0);
  opacity: 0;
  pointer-events: none;
  transition: opacity .42s var(--ease-out),
    border-color .42s var(--ease-out),
    box-shadow .42s var(--ease-out),
    transform .42s var(--ease-out);
}

.browser-shell {
  transition: transform .46s var(--ease-out),
    border-color .46s var(--ease-out),
    box-shadow .46s var(--ease-out),
    filter .46s var(--ease-out);
  will-change: transform;
}

.button,
.contact-link,
.preview-toggle,
.preview-link {
  transform-origin: center;
  transition: transform .32s var(--ease-out),
    border-color .32s var(--ease-out),
    background-color .32s var(--ease-out),
    box-shadow .32s var(--ease-out),
    color .32s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .project-preview:hover .browser-shell.interactive {
    transform: translateY(-2px);
  }
  .button:hover,
  .contact-link:hover,
  .preview-toggle:hover,
  .preview-link:hover, .google-meet button:hover {
    transform: translateY(-2px) scale(1.012);
  }
  .button:hover svg,
  .contact-link:hover svg,
  .preview-link:hover svg,
  .nav-links a:hover > svg.lucide {
    transform: translate(2px,-1px);
  }
  .button--dark:hover {
    box-shadow: 0 18px 40px rgba(23,22,26,.20), 0 0 0 1px rgba(123,112,158,.16);
  }
  .preview-link:hover {
    border-color: rgba(210,112,170,.6);
  }
}

.approach {
  padding: 8rem 0 8.5rem;
}

.approach-header {
  margin-bottom: 3.2rem;
}

.approach-header .approach-summary {
  max-width: 62ch;
  margin: 1.1rem 0 0;
  color: rgba(35,31,24,.70);
  font-size: 1rem;
}

.my-skills-section {
    margin: 64px 0;
    color: #333;
}

.my-skills-section h3 {
    margin: 0;
    font-size: clamp(1.5rem, 2.4vw, 2.2rem);
    letter-spacing: -.035em;
}

.my-skills-list {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.my-skill {
  max-width: 248px;
  padding: 12px;
  border: 1px solid var(--accent-violet);
  border-radius: 12px;
  background: color-mix(var(--accent-violet), transparent 80%);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.my-skill strong {
    color: color-mix(in srgb, var(--accent-violet), #000 70%);
}

.my-skill-branch-icon {
  position: relative;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: color-mix(in srgb, var(--accent-violet), #000 70%);
  background: var(--accent-violet);
  z-index: 2;
  border: 1px solid
  color-mix(in srgb, var(--accent-violet), #333 35%);
}

.delivery-game {
  margin-top: 48px;
}

.game-console {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(41,28,47,.30);
  border-radius: 25px;
  background: #17131d;
  box-shadow: 0 28px 75px rgba(69,40,52,.22), inset 0 1px rgba(255,255,255,.06);
  transform: rotate(.35deg);
}

.game-console::after {
  content: "";
  position: absolute;
  inset: 44px 0 0;
  pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.018) 50%, transparent 50%);
  background-size: 100% 4px;
  mix-blend-mode: screen;
  opacity: .32;
  z-index: 5;
}

.game-console-header {
  position: relative;
  z-index: 6;
  min-height: 44px;
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  gap: .8rem;
  padding: .6rem .8rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #9f98aa;
  background: rgba(255,255,255,.025);
  font: 600 .68rem/1 var(--sans);
  letter-spacing: .08em;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d270aa;
}

.window-dots span:nth-child(2) {
  background: #e9aa0d;
}

.window-dots span:nth-child(3) {
  background: #85e6b3;
}

.game-status {
  color: #85e6b3;
  font-size: .62rem;
}

.game-container {
  position: relative;
  display: flex;
  min-height: 430px;
  color: #f8f3fb;
  background: radial-gradient(circle at 73% 24%, rgba(123,112,158,.18), transparent 25%),
    radial-gradient(circle at 25% 72%, rgba(210,112,170,.12), transparent 26%),
    #100d15;
}

.game-container a {
    color: #d270aa;
}

.game-intro {
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(2rem,5vw,4.2rem);
  overflow: hidden;
}

.game-background {
  position: absolute;
  inset: 0;
  opacity: .52;
  background-image: linear-gradient(rgba(123,112,158,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,112,158,.08) 1px, transparent 1px);
  background-size: 24px 24px;
}
.game-background:before {
    content: '';
    background: url(./game/assets/office-bg-desktop.png);
    background-position: top;
    width: 100%;
    display: block;
    height: 100%;
    opacity: 0.3;
}

.game-background span {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(210,112,170,.62);
  background: rgba(210,112,170,.15);
  box-shadow: 0 0 18px rgba(210,112,170,.18);
  transform: rotate(45deg);
}

.game-background span:nth-child(1) {
  left: 68%;
  top: 25%;
}

.game-background span:nth-child(2) {
  left: 82%;
  top: 46%;
  width: 16px;
  height: 16px;
  border-color: rgba(109,190,243,.58);
}

.game-background span:nth-child(3) {
  left: 60%;
  top: 69%;
  border-color: rgba(133,230,179,.58);
}

.game-background span:nth-child(4) {
  left: 88%;
  top: 76%;
  width: 7px;
  height: 7px;
}

.game-background span:nth-child(5) {
  left: 74%;
  top: 57%;
  width: 6px;
  height: 6px;
  border-color: rgba(233,170,13,.70);
}

.game-intro > :not(.game-background) {
  position: relative;
  z-index: 2;
}

.game-intro h3 {
  margin: 0;
  font-size: clamp(2.25rem,4.5vw,4.4rem);
  line-height: .88;
  letter-spacing: -.055em;
}

.game-intro h3 em {
  color: #bca5ce;
  font-family: var(--serif);
  font-weight: 300;
}

.game-intro > p:not(.game-eyebrow) {
  max-width: 41ch;
  margin: 1.25rem 0 1.5rem;
  color: #a9a3ae;
}

.play-game-button {
  display: inline-grid;
  grid-template-columns: auto 42px;
  min-height: 44px;
  align-items: stretch;
  gap: 0;
  border: 1px solid rgba(210,112,170,.62);
  border-radius: 5px;
  padding: 0;
  overflow: hidden;
  color: #ffd9ef;
  background: rgba(210,112,170,.08);
  font: 800 .76rem/1 var(--sans);
  letter-spacing: .12em;
  cursor: pointer;
  transition: transform .2s var(--ease-out), background .2s var(--ease-out), box-shadow .2s var(--ease-out);
}

.play-game-button span {
  padding: .9rem 1.05rem;
}

.play-game-button strong {
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(210,112,170,.45);
  color: #17131d;
  background: #d270aa;
}

.play-game-button:hover {
  transform: translateY(-2px);
  background: rgba(210,112,170,.16);
  box-shadow: 0 8px 30px rgba(210,112,170,.14);
}

.play-game-button:disabled {
  cursor: wait;
  opacity: .65;
}

.game-intro small {
  margin-top: .85rem;
  color: #6e6874;
  font-size: .68rem;
}

@media (max-width: 1100px) {
  .game-console {
    transform: none;
  }
}

@media (max-width: 620px) {
  .my-skill {
    max-width: 100%;
    width: 100%;
  }
  .game-intro {
    padding: 1.6rem;
  }
  .game-console-header {
    grid-template-columns: 48px 1fr;
  }
  .game-status {
    display: none;
  }
}

/* Career timeline */

.career {
  padding: 7.5rem 0 9rem;
}

.scene-history .career-header {
  margin-bottom: 4.2rem;
}

.career-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.career-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 190px) 72px minmax(0, 1fr);
  gap: 0 1.3rem;
  align-items: start;
}

.career-when {
  padding-top: .55rem;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: .38rem;
}

.career-when time {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-style: italic;
  line-height: 1;
  color: #e7a0cc;
}

.career-when span {
  color: #8e88a2;
  font-size: .72rem;
  line-height: 1.45;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.career-track {
  position: relative;
  min-height: 100%;
  display: flex;
  justify-content: center;
  z-index: 2;
}

.career-track::after {
  content: "";
  position: absolute;
  top: 42px;
  bottom: -2.6rem;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(210,112,170,.62), rgba(123,112,158,.34) 58%, rgba(109,190,243,.15));
  box-shadow: 0 0 16px rgba(210,112,170,.10);
}

.career-step:last-child .career-track::after {
  display: none;
}

.career-icon {
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #f6d8eb;
  border: 1px solid rgba(210,112,170,.42);
  background: #211f27;
  z-index: 2;
}

.career-icon img {
  width: 60%;
}

.career-card {
  position: relative;
  margin-bottom: 2.6rem;
  padding: 1.45rem 1.65rem 1.55rem;
  border: 1px solid rgba(255,255,255,.105);
  border-radius: 22px;
  background: #211f27;
  backdrop-filter: blur(8px);
  transition: transform .38s var(--ease-out), border-color .38s var(--ease-out), background-color .38s var(--ease-out), box-shadow .38s var(--ease-out);
}

.career-card::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 26px;
  width: 3.5rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(210,112,170,.55), rgba(210,112,170,.12));
}

.career-chapter {
  margin: 0 0 .5rem;
  color: #bb83aa !important;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.career-card h3 {
  margin: 0 0 .55rem;
  color: #fffaf5;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.05;
  letter-spacing: -.025em;
}

.career-card > p:not(.career-chapter) {
  margin: 0;
  max-width: 68ch;
  color: #aaa5b9;
}

.career-card > p strong {
  color: #ded9e6;
  font-weight: 600;
}

.career-skills {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.career-skills li {
  padding: .28rem .58rem;
  border: 1px solid rgba(210,112,170,.16);
  border-radius: 999px;
  background: rgba(210,112,170,.055);
  color: #a79fb9;
  font-size: .7rem;
  line-height: 1.2;
}

.download-cv {
    text-align: center;
}

.download-cv button {
    font-family: 'Plus Jakarta Sans';
}

@media (hover: hover) and (pointer: fine) {
  .career-step:hover .career-icon {
    border-color: rgba(210,112,170,.72);
  }
  .career-step:hover .career-card {
    transform: translateX(5px);
    border-color: rgba(210,112,170,.28);
    background: #2a212c;
  }
}

@media (max-width: 760px) {
  .career-step {
    grid-template-columns: 48px minmax(0,1fr);
    gap: 0 1rem;
  }
  .career-when {
    grid-column: 2;
    grid-row: 1;
    padding: 0 0 .8rem;
    text-align: left;
  }
  .career-when time {
    font-size: 1.35rem;
  }
  .career-when span {
    font-size: .67rem;
  }
  .career-track {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .career-track::after {
    top: 46px;
    bottom: -2.3rem;
  }
  .career-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }
  .career-icon svg {
    width: 18px;
    height: 18px;
  }
  .career-card {
    grid-column: 2;
    grid-row: 2;
    margin-bottom: 2.3rem;
    padding: 1.2rem 1.2rem 1.3rem;
  }
  .career-card::before {
    content: initial;
  }
}

@media (prefers-reduced-motion: reduce) {
  .browser-shell,
  .project-preview::before,
  .button,
  .contact-link,
  .preview-toggle,
  .preview-link,
  .career-card {
    transition: none !important;
  }
}

.game-console.game-live {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 600px;
  margin-top: 1rem;
  transform: none;
}

.game-console.game-live .game-container {
  width: 100%;
  min-height: 0;
}

@media (max-width: 640px) {
  .game-console.game-live {
    width: 100%;
    border-radius: 18px;
  }
}

.game-console.game-live::after {
  display: none;
}

/* Contact form */

.contact h2 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 5rem);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 700;
  color: #d4b8da;
}

.contact h2 .innovation {
  color: var(--accent-violet);
}

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

.contact-form {
  width: 100%;
  text-align: left;
}

.form-fields {
  display: grid;
  gap: 1.35rem;
}

.form-field input, .form-field textarea {
  width: 100%;
  padding: .75rem .15rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  border-radius: 0;
  outline: 0;
  color: rgba(255, 255, 255, .88);
  background: transparent;
  font: inherit;
  transition: border-color .2s ease, color .2s ease;
}

.form-field textarea {
  min-height: 7rem;
  resize: vertical;
}

.form-field input::placeholder, .form-field textarea::placeholder {
  color: rgba(255, 255, 255, .48);
}

.form-field input:focus, .form-field textarea:focus {
  border-bottom-color: rgba(255, 255, 255, .72);
  box-shadow: 0 2px 0 rgba(255, 255, 255, .16);
}

.form-field input[aria-invalid="true"], .form-field textarea[aria-invalid="true"] {
  border-bottom-color: #ef7a63;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 1.35rem;
  gap: 12px;
  align-items: center;
}

.button--light {
  border: 0;
  color: #201d29;
  background: #fffaf3;
  cursor: pointer;
}

.button--light svg {
  color: var(--accent-rose);
}

.button:disabled {
  cursor: wait;
  opacity: .72;
}

.button.is-sent {
  cursor: default;
  opacity: 1;
}

.toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 100;
  max-width: min(420px, calc(100vw - 2.5rem));
  padding: .85rem 1rem;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 12px;
  color: #fff;
  background: #201d29;
  box-shadow: var(--shadow);
}

.toast[data-type="success"] {
  border-color: rgba(148, 206, 131, .45);
}

.toast[data-type="error"] {
  border-color: rgba(239, 122, 99, .55);
}

/* Footer */

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0 3rem;
  color: var(--muted-color);
  font-size: .78rem;
}

.footer-content p {
  margin: 0;
}

@media (max-width: 430px) {
  .footer-content {
    flex-wrap: wrap;
  }
}
