:root {
  color-scheme: light;
  --paper: #f6f5fa;
  --ink: #19172a;
  --muted: #545169;
  --line: #d9d5e5;
  --accent: #422bbe;
  --display: "Space Grotesk", "Arial", sans-serif;
  --body: "Manrope", "Arial", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 1rem/1.65 var(--body); }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid #7760f4; outline-offset: 5px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.06; text-wrap: balance; }
.container { width: min(100% - 6rem, 72rem); margin-inline: auto; }
.label { font-size: .875rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 800; }
.skip { position: absolute; z-index: 2; top: .75rem; left: .75rem; background: #fff; padding: .6rem 1rem; transform: translateY(-200%); }
.skip:focus { transform: none; }

.top { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand, nav { display: flex; align-items: center; }
.brand { gap: .75rem; font: 700 1.05rem var(--display); text-decoration: none; white-space: nowrap; }
.monogram { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; background: var(--ink); color: #fff; border-radius: .5rem; font-size: .95rem; }
nav { gap: clamp(1rem, 3vw, 2.5rem); font-size: .9rem; font-weight: 800; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.nav-contact { padding: .5rem .95rem; border: 1px solid var(--line); border-radius: .4rem; }

.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5.25rem); align-items: center; padding-block: clamp(3.2rem, 6vw, 5.75rem); }
.hero-label { color: var(--accent); display: flex; align-items: center; gap: .75rem; margin-bottom: 1.4rem; }
.hero-label::before { content: ""; width: 1.5rem; height: 2px; background: currentColor; flex: none; }
h1 { font-size: clamp(5rem, 8.2vw, 8.65rem); line-height: .83; letter-spacing: -.085em; }
h1 span { display: block; color: var(--accent); }
.intro { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 32rem; margin-top: 1.8rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.7rem; }
.button { display: inline-flex; justify-content: center; align-items: center; padding: .78rem 1.18rem; border-radius: .45rem; text-decoration: none; font-weight: 800; border: 1px solid transparent; transition: background-color .2s, color .2s; }
.primary { color: #fff; background: var(--accent); }
.primary:hover { background: #34219c; }
.outline { border-color: #bab4cc; }
.outline:hover { background: #eae6f6; }
.portrait { min-width: 0; }
.portrait-frame { border: 1px solid #ccc6e3; padding: .6rem; background: #ebe6fa; }
.portrait img { width: 100%; height: auto; aspect-ratio: 1 / 1.12; object-fit: cover; object-position: center 24%; background: #d2c8e6; }
figcaption { display: flex; justify-content: space-between; gap: .5rem; color: var(--muted); font-size: .875rem; padding-top: .6rem; }

.work { background: #1e1932; color: #fcfaff; padding-block: clamp(3.25rem, 6vw, 5rem); }
.work .label { color: #d5c9ff; }
h2 { font-size: clamp(2.6rem, 5vw, 4.2rem); letter-spacing: -.065em; margin-top: .35rem; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin-top: 2rem; }
.project { min-height: 17rem; border-radius: .75rem; border: 1px solid #5a4d7d; padding: clamp(1.15rem, 3vw, 2rem); position: relative; overflow: hidden; isolation: isolate; }
.project .label { margin-bottom: 2.4rem; }
.project h3 { font-size: clamp(1.65rem, 3vw, 2.6rem); max-width: 23rem; letter-spacing: -.035em; }
.project p:last-of-type { max-width: 29rem; margin-top: .85rem; color: #eeebf9; }
.project-alex { background: #362665; }
.project-access { background: #292447; }
.orbit { position: absolute; right: -5rem; bottom: -6rem; z-index: -1; width: 15rem; height: 15rem; border: 1px solid #a99be338; border-radius: 50%; box-shadow: 0 0 0 1.8rem #a99be315, 0 0 0 3.6rem #a99be312; }
.project-access .orbit { right: -5rem; bottom: -7rem; border-radius: 1.4rem; transform: rotate(36deg); }

.experience { padding-block: clamp(3.5rem, 7vw, 6.5rem); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.45fr); gap: clamp(1.5rem, 5vw, 4.5rem); }
.experience .label { color: var(--accent); }
.role { display: grid; grid-template-columns: 7.4rem minmax(0,1fr); gap: 1rem; border-top: 1px solid var(--line); padding: 1.2rem 0; }
.role:last-child { border-bottom: 1px solid var(--line); }
.date { color: var(--muted); font-size: .875rem; padding-top: .2rem; font-weight: 800; }
.role h3, .toolkit h3 { font-size: 1.3rem; text-wrap: initial; }
.role .organization { font-weight: 800; color: var(--accent); margin: .3rem 0 .35rem; }
.role p, .toolkit p, .toolkit li { color: var(--muted); }

.toolkit { padding-block: 3rem 4rem; border-top: 1px solid var(--line); }
.toolkit-grid { margin-top: 1.65rem; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; }
.toolkit-grid > div { border-top: 2px solid #c4b6f1; padding-top: 1rem; }
.toolkit p { margin-top: .55rem; }
.toolkit ul { margin: .55rem 0 0; padding-left: 1.2rem; }
.toolkit li + li { margin-top: .25rem; }

.contact { background: #e8e1fa; padding-block: 3.25rem; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.65rem; }
.contact .label { color: var(--accent); }
.contact h2 + p { color: var(--muted); margin-top: .7rem; }
.contact-links { max-width: 100%; }
.contact-links .button { overflow-wrap: anywhere; }
.socials { margin-top: .9rem; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 1.25rem; font-weight: 800; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; min-height: 4.5rem; align-items: center; color: var(--muted); font-size: .875rem; font-weight: 800; }

@media (max-width: 760px) {
  .container { width: calc(100% - 2.5rem); }
  .hero { grid-template-columns: minmax(0,1fr) minmax(0,.85fr); gap: 1.25rem; }
  h1 { font-size: clamp(3.3rem, 11vw, 6rem); }
  .experience { grid-template-columns: 1fr; }
  .toolkit-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 530px) {
  .header-inner { flex-wrap: wrap; padding-block: .7rem; gap: .5rem 1rem; }
  nav { width: 100%; justify-content: space-between; }
  nav a { min-height: 2.75rem; display: inline-flex; align-items: center; }
  .hero { grid-template-columns: 1fr; gap: 1.9rem; }
  h1 { font-size: clamp(3.8rem, 14vw, 5.7rem); }
  .portrait { max-width: 24rem; width: 100%; }
  .portrait img { aspect-ratio: 1.12; }
  .project-grid, .toolkit-grid { grid-template-columns: 1fr; }
  .project { min-height: 13.5rem; }
  .project .label { margin-bottom: 1.25rem; }
  .role { grid-template-columns: 1fr; gap: .35rem; }
  .contact-inner { align-items: flex-start; flex-direction: column; }
  .socials { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
