@font-face {
  font-family: "Familjen Grotesk";
  src: url("/fonts/familjen-grotesk-normal-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Familjen Grotesk";
  src: url("/fonts/familjen-grotesk-normal-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --violet: #6e52bd;
  --violet-deep: #62519e;
  --violet-track: #d9d1f2;
  --lavender: #9f84e8;
  --lavender-soft: #f1ecfd;
  --cream: #f9e0c7;
  --yellow: #f8d692;
  --blue: #1759a2;
  --orange: #ef831a;
  --ink: #141218;
  --muted: #4d4859;
  --paper: #ffffff;
  --content-width: 1200px;
  --wide-width: 1440px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 22px;
  --shadow: 0 18px 40px -24px rgba(40, 24, 90, 0.55);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: "Familjen Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

p {
  margin: 0;
}

h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--violet);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 12px var(--gutter);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(110, 82, 189, 0.12);
}

.site-header__name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--violet);
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  list-style: none;
}

.site-nav a {
  font-weight: 600;
  color: var(--violet-deep);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.site-nav a:hover {
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--cream {
  background: var(--cream);
  color: var(--violet-deep);
}

.button--outline {
  border-color: var(--cream);
  color: var(--cream);
}

.button--outline:hover {
  background: var(--cream);
  color: var(--violet-deep);
}

.button--violet {
  background: var(--violet);
  color: var(--paper);
}

.button--violet:hover {
  background: var(--violet-deep);
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

/* Hero */

.hero {
  background: var(--violet);
  color: var(--cream);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.hero picture {
  display: block;
  max-width: var(--wide-width);
  margin: 0 auto;
}

.hero__cover {
  width: 100%;
}

.hero__intro {
  display: grid;
  gap: 10px;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) var(--gutter) 0;
}

.hero__role {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
}

.hero__lead,
.hero__availability {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 46ch;
}

.hero__availability strong {
  color: var(--yellow);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

/* Generic sections */

.section {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) var(--gutter);
}

.section-title {
  width: min(560px, 82vw);
}

.subheading {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--violet-deep);
}

.subheading--large {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  margin-bottom: 18px;
}

/* About */

.about {
  overflow-x: hidden;
  overflow-x: clip;
}

.title-stack {
  position: relative;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.title-stack__tagline {
  margin-top: clamp(-34px, -3vw, -14px);
  padding-left: clamp(40px, 9vw, 120px);
  position: relative;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--blue);
}

.about__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.about__text {
  display: grid;
  gap: 22px;
}

.about__bio {
  padding-left: 18px;
  border-left: 8px solid var(--lavender);
  border-radius: 4px;
  font-size: 1.1rem;
}

.about__languages {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
}

.about__languages li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.about__languages img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.education {
  display: grid;
  gap: 16px;
  list-style: none;
}

.education__title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--violet);
}

.education p:not(.education__title) {
  color: var(--muted);
}

.about__portrait {
  margin: 0;
  align-self: end;
}

.about__portrait img {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.about__traits {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  padding-top: 24px;
}

.about__map {
  position: absolute;
  top: -70px;
  right: -40px;
  z-index: -1;
  width: min(360px, 100%);
  opacity: 0.55;
  pointer-events: none;
}

.traits {
  display: grid;
  gap: 14px;
  list-style: none;
}

.traits li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.traits li::before {
  content: "";
  width: 26px;
  height: 26px;
  background: url("/images/trait-dot.webp") center / contain no-repeat;
}

.traits__note {
  flex-basis: 100%;
  padding-left: 38px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

.travel {
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
  list-style: none;
  padding-left: 10px;
}

.travel li {
  width: 72px;
  margin-left: -10px;
  transform: rotate(calc(var(--tilt, 0) * 1deg));
}

.travel li:nth-child(odd) {
  --tilt: -5;
}

.travel li:nth-child(even) {
  --tilt: 4;
}

.travel img {
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px solid var(--paper);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* Design */

.design .section-title {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.design__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: clamp(36px, 5vw, 60px);
}

.design__disciplines {
  width: min(320px, 100%);
}

.instruments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
}

.instruments__group h4 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: var(--violet);
}

.instruments__group ul {
  display: grid;
  gap: 12px;
  list-style: none;
}

.skill {
  display: grid;
  gap: 6px;
}

.skill__bar {
  display: block;
  max-width: 220px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet-deep) 0 var(--skill-level), var(--violet-track) var(--skill-level) 100%);
}

.skill[data-skill="rhinoceros"] { --skill-level: 77%; }
.skill[data-skill="blender"] { --skill-level: 53%; }
.skill[data-skill="3ds-max"] { --skill-level: 32%; }
.skill[data-skill="adobe-suite"] { --skill-level: 88%; }
.skill[data-skill="figma"] { --skill-level: 56%; }
.skill[data-skill="autocad"] { --skill-level: 83%; }
.skill[data-skill="solidworks"] { --skill-level: 30%; }
.skill[data-skill="davinci-resolve"] { --skill-level: 58%; }

.approach {
  display: grid;
  gap: 20px;
  list-style: none;
}

.approach li {
  padding-left: 16px;
  border-left: 7px solid var(--lavender);
  border-radius: 4px;
  color: var(--muted);
}

.approach strong {
  display: block;
  font-size: 1.15rem;
  color: var(--violet);
}

.awards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px 48px;
  list-style: none;
}

.awards li {
  display: flex;
  align-items: center;
  gap: 18px;
}

.awards img {
  width: 92px;
  flex: none;
}

.awards__name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--violet);
}

/* Projects */

.projects {
  padding-bottom: clamp(40px, 6vw, 80px);
}

.projects-index {
  position: relative;
  max-width: var(--wide-width);
  margin: 0 auto clamp(40px, 6vw, 80px);
}

.projects-index img {
  width: 100%;
}

.projects-index__link {
  position: absolute;
  border-radius: 14px;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.projects-index__link:hover,
.projects-index__link:focus-visible {
  background: rgba(110, 82, 189, 0.1);
  box-shadow: 0 0 0 3px var(--violet);
  outline: none;
}

.projects-index__link--flow { left: 14.2%; top: 16.5%; width: 16.3%; height: 9.6%; }
.projects-index__link--ally { left: 34.8%; top: 29.7%; width: 15.8%; height: 9.8%; }
.projects-index__link--tua { left: 59.7%; top: 50.2%; width: 15.6%; height: 11%; }
.projects-index__link--cin { left: 78.8%; top: 72.5%; width: 18%; height: 11.4%; }

.project {
  max-width: var(--wide-width);
  margin: 0 auto clamp(56px, 8vw, 110px);
}

.project__cover {
  position: relative;
  overflow: hidden;
  background: var(--project-panel);
  color: var(--project-text);
}

.project__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--project-scrim, none);
  pointer-events: none;
}

.project__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project__intro {
  position: absolute;
  z-index: 1;
  top: clamp(20px, 3.4vw, 48px);
  left: clamp(20px, 3.4vw, 48px);
  display: grid;
  gap: clamp(8px, 1.2vw, 16px);
  width: min(40%, 480px);
}

.project__logo {
  width: clamp(110px, 13vw, 190px);
}

.project__summary {
  font-size: clamp(0.98rem, 1.25vw, 1.15rem);
}

.project__year {
  font-weight: 700;
}

.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.project__tags li {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  font-size: 0.9rem;
  font-weight: 600;
}

.project--flow {
  --project-panel: #5c6f96;
  --project-text: #ffffff;
  --project-scrim: linear-gradient(90deg, rgba(42, 52, 84, 0.55) 0%, rgba(42, 52, 84, 0.3) 32%, rgba(42, 52, 84, 0) 52%);
}

.project--ally {
  --project-panel: #e1fdfd;
  --project-text: #13202b;
}

.project--tua {
  --project-panel: var(--violet);
  --project-text: #ffffff;
}

.project--cin {
  --project-panel: #a9520b;
  --project-text: #ffffff;
  --project-scrim: linear-gradient(90deg, rgba(120, 50, 0, 0.6) 0%, rgba(120, 50, 0, 0.38) 34%, rgba(120, 50, 0, 0) 55%);
}

.project__body {
  display: grid;
  gap: clamp(24px, 3vw, 36px);
  max-width: var(--content-width);
  margin: 0 auto;
  padding: clamp(24px, 3.4vw, 40px) var(--gutter) 0;
}

.project__highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 40px;
}

.project__highlights div {
  padding-left: 16px;
  border-left: 6px solid var(--lavender);
  border-radius: 4px;
}

.project__highlights dt {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--violet-deep);
}

.project__highlights dd {
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(230px, 78vw), 300px);
  gap: 16px;
  padding: 4px 4px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
}

.gallery li {
  scroll-snap-align: start;
}

.gallery__item {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.gallery__item:hover {
  transform: translateY(-4px);
}

/* Contact */

.contact {
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--violet);
  color: var(--ink);
  padding: clamp(56px, 8vw, 110px) var(--gutter) clamp(72px, 10vw, 130px);
}

.contact__thanks img {
  width: min(520px, 86vw);
  margin: 0 auto clamp(36px, 5vw, 56px);
}

.contact__stack {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.contact__card-image {
  position: absolute;
  width: 100%;
  max-width: none;
  border-radius: 28px;
  pointer-events: none;
}

.contact__card-image--back {
  top: -26px;
  left: -14px;
  transform: rotate(-5deg);
}

.contact__card-image--middle {
  bottom: -30px;
  right: -16px;
  transform: rotate(4deg);
}

.contact__card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.contact__card .subheading--large {
  margin-bottom: 0;
}

.contact__intro {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form__field {
  display: grid;
  gap: 6px;
}

.contact-form label {
  font-weight: 600;
  color: var(--violet-deep);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--violet-track);
  border-radius: 12px;
  font: inherit;
  color: var(--ink);
  background: var(--lavender-soft);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--violet);
  background: var(--paper);
}

.contact-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .button {
  justify-self: start;
}

.contact-form__status {
  min-height: 1.5em;
  font-weight: 600;
  color: var(--violet-deep);
}

.contact-form__status[data-state="error"] {
  color: #b3261e;
}

.contact__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-weight: 600;
  color: var(--violet);
  text-decoration: none;
}

.contact__linkedin:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 22px var(--gutter);
  background: var(--violet-deep);
  color: var(--cream);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--cream);
  font-weight: 600;
}

/* Lightbox */

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
}

.lightbox::backdrop {
  background: rgba(20, 14, 38, 0.92);
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox__figure {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin: 0;
  padding: 64px 72px 24px;
}

.lightbox__image {
  width: auto;
  max-width: min(92vw, 1600px);
  max-height: 80vh;
  border-radius: 10px;
  background: var(--paper);
}

.lightbox__caption {
  font-weight: 600;
  text-align: center;
}

.lightbox__button {
  position: fixed;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--paper);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__button:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox__button--previous {
  left: 14px;
  top: 50%;
  translate: 0 -50%;
}

.lightbox__button--next {
  right: 14px;
  top: 50%;
  translate: 0 -50%;
}

.lightbox__button--close {
  top: 14px;
  right: 14px;
}

/* 404 page */

.not-found {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  min-height: 100vh;
  padding: var(--gutter);
  text-align: center;
  background: var(--violet);
  color: var(--cream);
}

.not-found__code {
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 700;
  line-height: 1;
}

/* Responsive */

@media (max-width: 1024px) {
  .about__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .about__traits {
    grid-column: 1 / -1;
  }

  .design__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .design__layout > :nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

@media (max-width: 720px) {
  .site-header {
    gap: 2px;
    padding-block: 8px;
  }

  .site-header__name {
    font-size: 1rem;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav ul {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 12px;
    overflow-x: auto;
  }

  .site-nav a {
    font-size: 0.8rem;
  }

  .about__layout,
  .design__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .design__layout > :nth-child(2) {
    grid-row: auto;
  }

  .about__portrait {
    order: -1;
  }

  .instruments,
  .project__highlights {
    grid-template-columns: minmax(0, 1fr);
  }

  .project__cover::after {
    display: none;
  }

  .project__intro {
    position: static;
    width: auto;
    padding: 22px var(--gutter) 26px;
  }

  .lightbox__figure {
    padding: 72px 12px 24px;
  }

  .lightbox__button--previous,
  .lightbox__button--next {
    top: auto;
    bottom: 18px;
    translate: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
