/*
Theme Name: Lauma Vinslava
Theme URI: https://lauma-vinslava.com/
Author: Lauma Vinslava
Author URI: https://lauma-vinslava.com/
Description: Personal portfolio website for Lauma Vinslava.
Version: 1.0.0
Text Domain: lauma-vinslava
*/

@font-face {
  font-family: "Tanker";
  src: url("Assets/fonts/Tanker-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("Assets/fonts/SF-Pro-Display-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("Assets/fonts/SF-Pro-Display-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Sometype Mono";
  src: url("Assets/fonts/SometypeMono-Latin-400-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  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;
}

/* Complete the existing font family with its Latvian/Latin Extended glyphs. */
@font-face {
  font-family: 'Sometype Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(Assets/fonts/SometypeMono-LatinExt-400-700.woff2) format('woff2');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Figma design values */
:root {
  --black-100: #0c0a0a;
  --black-20: rgba(23, 25, 26, 0.2);
  --white-100: #ffffff;
  --white-80: rgba(255, 255, 255, 0.8);
  --white-60: rgba(255, 255, 255, 0.6);
  --white-40: rgba(255, 255, 255, 0.4);
  --white-30: rgba(255, 255, 255, 0.3);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-10: rgba(255, 255, 255, 0.1);
  --white-5: rgba(255, 255, 255, 0.05);
  --font-display: "Tanker", "Arial Narrow", sans-serif;
  --font-mono: "Sometype Mono", "Courier New", monospace;
  --font-body:
    "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --content-width: 720px;
}

/* Basic page setup */
* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 1440px;
  max-width: 100%;
  overflow-x: hidden;
  background: #050505;
  color: var(--white-60);
  font-family: var(--font-body);
}

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

button,
input,
textarea {
  font: inherit;
}

p,
h1,
h2 {
  margin: 0;
}

.desktop-page {
  position: relative;
  z-index: 1;
  width: 1440px;
  margin: 0 auto;
  overflow: hidden;
  background: transparent;
}

.video-background {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #070707;
  pointer-events: none;
}

.video-background::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(5, 5, 5, 0.36);
  pointer-events: none;
  content: "";
}

.background-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  pointer-events: none;
}

.site-column {
  position: relative;
  z-index: 2;
  width: var(--content-width);
  margin: 0 auto;
}

.framed-section {
  position: relative;
  width: 100%;
  border-right: 1px solid var(--white-10);
  border-bottom: 1px solid var(--white-10);
  border-left: 1px solid var(--white-10);
  background: var(--black-20);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.framed-section::before,
.framed-section::after {
  position: absolute;
  bottom: -1px;
  width: 5px;
  height: 6px;
  background: var(--white-80);
  content: "";
}

.framed-section::before {
  left: -1px;
}

.framed-section::after {
  right: -1px;
}

.section-label,
.eyebrow,
.tab,
.meta-list,
.project-date,
.results-label,
.site-footer {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  text-transform: uppercase;
}

.section-label {
  color: var(--white-60);
  font-weight: 400;
  text-align: center;
}

.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;
}

/* Header */
.site-header {
  --header-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-height);
  padding: 48px;
}

.site-header::before,
.site-header::after {
  top: 0;
  bottom: auto;
  box-shadow: 0 calc(var(--header-height) - 6px) 0 var(--white-80);
}

.site-logo {
  min-width: 0;
  flex: 1 1 auto;
  color: var(--white-80);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
  white-space: normal;
}

.eyebrow {
  min-width: 0;
  flex: 0 1 auto;
  text-align: right;
  color: var(--white-60);
}

.language-switcher {
  /* Figma White/5 over Black/100, flattened to avoid doubling the alpha
     where the outer stroke overlaps the moving fill. */
  --language-selection: color-mix(in srgb, var(--white-100) 5%, var(--black-100));
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 0 0 auto;
  height: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--black-100);
  outline: 1px solid var(--language-selection);
  outline-offset: -1px;
}

.language-switcher-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Two 0.58em monospaced glyphs plus the approved horizontal padding. */
  width: calc(24px + 1.16em);
  flex: 0 0 auto;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  color: var(--white-40);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  white-space: nowrap;
  transition:
    color 380ms cubic-bezier(0.22, 1, 0.36, 1),
    font-weight 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.language-switcher:not(.is-interactive) .language-switcher-item {
  transition: none;
}

.language-switcher-item.active {
  background: var(--language-selection);
  color: var(--white-60);
  font-weight: 700;
}

.language-switcher.has-moving-indicator .language-switcher-item.active {
  background: transparent;
}

.language-switcher .moving-indicator {
  --indicator-width: 50%;
  --indicator-height: 100%;
  --indicator-x: 0%;
  --indicator-y: 0%;
  background: var(--language-selection);
}

.language-switcher:has(.language-switcher-item.active:last-child) .moving-indicator {
  --indicator-x: 100%;
}

.language-switcher-item:focus-visible {
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* About */
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 687px;
  padding: 48px;
  gap: 48px;
}

.portrait-wrap {
  position: relative;
  width: min(100%, clamp(240px, calc(5.78vw + 216.77px), 300px));
  height: auto;
  aspect-ratio: 1;
}

.portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.signature {
  position: absolute;
  left: 50%;
  bottom: -29px;
  width: min(260px, calc(100vw - 96px));
  height: auto;
  transform: translateX(-50%);
}

.about-copy,
.contact-intro {
  width: 100%;
  color: var(--white-60);
  font-size: 19px;
  line-height: 1.6;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 12px;
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--white-5);
}

.icon-button::after {
  grid-area: 1 / 1;
  width: 36px;
  height: 36px;
  background: var(--white-20);
  content: "";
  -webkit-mask: var(--social-icon) center / 36px 36px no-repeat;
  mask: var(--social-icon) center / 36px 36px no-repeat;
  transition: background-color 180ms ease;
}

.icon-button[href*="linkedin.com"] {
  --social-icon: url("Assets/icons/linkedin.svg");
}

.icon-button[href*="dribbble.com"] {
  --social-icon: url("Assets/icons/dribbble.svg");
}

.icon-button:hover::after,
.icon-button:focus-visible::after {
  background: var(--white-40);
}

/* Shared category tabs */
.tabs {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  height: 69px;
  padding: 12px;
  background: var(--black-100);
}

.tab {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  padding: 12px;
  border: 0;
  border-radius: 40px;
  background: transparent;
  color: var(--white-40);
  cursor: pointer;
}

.tab-heading {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  font: inherit;
}

.tab.active {
  border-radius: 0;
  background: var(--white-5);
  color: var(--white-60);
  font-weight: 700;
}

.moving-indicator {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: var(--indicator-width);
  height: var(--indicator-height);
  background: var(--white-5);
  transform: translate3d(var(--indicator-x), var(--indicator-y), 0);
  pointer-events: none;
}

.moving-indicator.is-ready {
  transition:
    width 380ms cubic-bezier(0.22, 1, 0.36, 1),
    height 380ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tabs.has-moving-indicator .tab.active,
.floating-nav.has-moving-indicator a.active {
  background: transparent;
}

.tab:not(.active):hover,
.tab:not(.active):focus-visible {
  font-weight: 700;
}

.tab:focus-visible {
  outline: 1px solid var(--white-40);
  outline-offset: -1px;
}

.tab-panel[hidden] {
  display: none;
}

/* Experience */
.experience {
  padding: 48px;
}

.experience-tabs {
  width: fit-content;
  max-width: 100%;
  margin: 48px auto;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.experience-tabs::-webkit-scrollbar {
  display: none;
}

.experience-tabs .tab {
  flex: 0 0 auto;
}

.experience-list {
  display: flex;
  flex-direction: column;
  container-type: inline-size;
}

.experience-card {
  padding: 0 0 48px;
  border-bottom: 1px solid var(--white-10);
}

.experience-card + .experience-card {
  padding-top: 48px;
}

.experience-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.experience-card .experience-title {
  width: 573px;
  color: var(--white-80);
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

.experience-panel:not([data-experience-panel="work"]) .experience-title {
  width: 100%;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 12px;
  color: var(--white-40);
}

.meta-list span {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  white-space: normal;
}

.meta-list span::before {
  flex: 0 0 5px;
  width: 5px;
  height: 6px;
  background: var(--white-40);
  content: "";
}

.experience-card > p:not(.experience-title),
.body-stack {
  margin-top: 24px;
  color: var(--white-60);
  font-size: 19px;
  line-height: 1.6;
}

.body-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.body-stack strong {
  color: var(--white-60);
  font-weight: 700;
}

.course-list {
  display: flex;
  flex-direction: column;
  container-type: inline-size;
}

.course-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 61px;
}

.course-row:not(:last-child) {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--white-10);
}

.course-title {
  max-width: 489px;
  color: var(--white-80);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

.course-row .meta-list {
  margin-top: 12px;
}

.certificate-link {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 45px;
  padding: 12px;
  color: var(--white-40);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease;
}

.certificate-link img {
  width: 17px;
  height: 16px;
  opacity: 0.1;
  transition: opacity 180ms ease;
}

.certificate-link[download] img {
  width: 16px;
}

.certificate-link:not([download]) img {
  transform: rotate(-90deg);
}

.certificate-link:hover,
.certificate-link:focus-visible {
  color: var(--white-60);
  font-weight: 700;
}

.certificate-link:hover img,
.certificate-link:focus-visible img {
  opacity: 0.3;
}

.certificate-link:focus-visible {
  outline: 1px solid var(--white-40);
  outline-offset: -1px;
}

/* Projects */
.projects {
  padding: 48px;
}

.project-tabs {
  width: fit-content;
  max-width: 100%;
  margin: 48px auto;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.project-tabs::-webkit-scrollbar {
  display: none;
}

.project-tabs .tab {
  flex: 0 0 auto;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
  container-type: inline-size;
}

.project-panels {
  container-type: inline-size;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding: 24px;
  border: 1px solid var(--white-5);
  background: var(--black-100);
  color: var(--white-60);
  font-size: 19px;
  line-height: 1.6;
}

.project-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.project-image,
.project-summary {
  width: 276px;
}

.project-image {
  flex: 0 0 276px;
  height: 160px;
  background: var(--white-5);
}

.project-image:has(> img) {
  height: auto;
  aspect-ratio: 69 / 40;
  overflow: hidden;
}

:is(.project-image, .design-project-image) > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

:is(.project-card, .design-project-card)
  :is(.project-image, .design-project-image)
  img {
  filter: grayscale(100%);
  transition: filter 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

:is(.project-card, .design-project-card):focus-within
  :is(.project-image, .design-project-image)
  img {
  filter: grayscale(0%);
}

@media (hover: hover) and (pointer: fine) {
  :is(.project-card, .design-project-card):hover
    :is(.project-image, .design-project-image)
    img {
    filter: grayscale(0%);
  }
}

@media (hover: none), (pointer: coarse) {
  :is(.project-card, .design-project-card).is-in-view
    :is(.project-image, .design-project-image)
    img {
    filter: grayscale(0%);
  }
}

.project-summary {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.project-heading-image-right .project-summary {
  align-self: stretch;
  justify-content: space-between;
}

.project-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white-80);
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms ease;
}

.project-title:hover,
.project-title:focus-visible {
  color: var(--white-100);
  text-decoration: underline;
}

.project-title img {
  width: 24px;
  height: 24px;
}

.project-subtitle {
  margin-top: 12px;
  color: var(--white-40);
  font-size: 16px;
  line-height: 1.6;
}

.project-details {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-details .tag-list {
  min-width: 0;
  flex: 1 1 0;
}

.tag-list {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tag-list.is-marquee-ready {
  display: block;
  min-width: 0;
  overflow: hidden;
}

.tag-marquee-track,
.tag-marquee-set {
  display: flex;
  width: max-content;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
}

.tag-list.is-overflowing .tag-marquee-track {
  animation: tag-marquee var(--tag-marquee-duration) linear infinite;
  will-change: transform;
}

.tag-list span {
  flex: 0 0 auto;
  padding: 4px 8px;
  background: var(--white-5);
  color: var(--white-20);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}

@keyframes tag-marquee {
  to {
    transform: translate3d(calc(-1 * var(--tag-marquee-distance)), 0, 0);
  }
}

.project-date {
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: right;
  color: var(--white-20);
  font-weight: 700;
}

.results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.results-label {
  color: var(--white-30);
}

.results-label strong {
  font-weight: 700;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.result-item {
  display: flex;
  align-items: center;
  min-height: 86px;
  gap: 12px;
  padding: 12px;
  background: var(--white-5);
}

.result-item img {
  width: 44px;
  height: 44px;
}

.result-item div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-item strong {
  color: var(--white-60);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.2;
}

.result-item span {
  color: var(--white-30);
  font-size: 19px;
  line-height: 1.6;
}

.design-project-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
  container-type: inline-size;
}

.design-project-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding: 24px;
  border: 1px solid var(--white-5);
  background: var(--black-100);
  color: var(--white-60);
  font-size: 19px;
  line-height: 1.6;
}

.design-project-image {
  width: 100%;
  height: 160px;
  flex: 0 0 160px;
  background: var(--white-5);
}

:is(
    .design-project-card-sports,
    .design-project-card-app,
    .design-project-card-vpn
  )
  > .design-project-image:has(> img) {
  height: auto;
  flex-basis: auto;
  aspect-ratio: 143 / 40;
  overflow: hidden;
}

.merch-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.merch-image-grid .design-project-image {
  min-width: 0;
}

.design-project-meta {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  color: var(--white-20);
  font-size: 16px;
  line-height: 1.6;
}

.design-project-meta > span {
  flex: 0 1 auto;
  margin-left: auto;
}

.design-project-meta .tag-list {
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}

.design-project-meta .tag-list span {
  max-width: 100%;
  white-space: nowrap;
}

.design-project-meta [data-project-marquee] {
  width: 100%;
  flex: 1 1 0;
}

.design-project-card-vpn .design-project-meta {
  flex-wrap: nowrap;
}


.design-project-card-vpn .design-project-meta > span {
  flex: 0 0 auto;
}

.design-project-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white-80);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

.design-project-title img {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

:is(.project-card, .design-project-card) .body-stack {
  margin-top: 0;
}

.design-project-card .project-subtitle {
  margin-top: 4px;
}

.design-project-card strong {
  font-weight: 700;
}

/* Contact */
.contact {
  min-height: 620px;
  padding: 48px;
}

.contact-intro {
  margin-top: 48px;
  color: var(--white-60);
}

.form-notification {
  --notification-x: 0%;

  position: absolute;
  z-index: 6;
  top: 48px;
  right: 48px;
  display: flex;
  width: fit-content;
  max-width: calc(100% - 96px);
  min-height: 45px;
  height: auto;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: var(--white-5);
  color: var(--white-60);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
  text-transform: uppercase;
  white-space: normal;
  opacity: 0;
  transform: translate(var(--notification-x), -4px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.form-notification-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.form-notification-icon {
  flex-shrink: 0;
}

.form-notification[hidden] {
  display: none;
}

.form-notification.is-visible {
  opacity: 1;
  transform: translate(var(--notification-x), 0);
}

.form-notification-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 117px;
  padding: 48px;
  color: var(--white-20);
}

/* Floating navigation */
.floating-nav {
  position: fixed;
  z-index: 5;
  top: 300px;
  left: min(
    calc(100vw - 43px),
    calc(
      50% + (var(--content-width) / 2) +
        clamp(12px, calc(24.76vw - 172.54px), 184px)
    )
  );
  display: flex;
  width: 38px;
  height: 182px;
  margin-left: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--white-10);
  background: var(--black-100);
}

.floating-nav a {
  position: relative;
  z-index: 1;
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.floating-nav a.active {
  background: var(--white-5);
}

.floating-nav a[data-nav-section="about"] {
  --nav-outline-icon: url("Assets/icons/home-outline.svg");
  --nav-filled-icon: url("Assets/icons/home.svg");
}

.floating-nav a[data-nav-section="experience"] {
  --nav-outline-icon: url("Assets/icons/briefcase.svg");
  --nav-filled-icon: url("Assets/icons/experience-filled.svg");
}

.floating-nav a[data-nav-section="projects"] {
  --nav-outline-icon: url("Assets/icons/folder.svg");
  --nav-filled-icon: url("Assets/icons/projects-filled.svg");
}

.floating-nav a[data-nav-section="contact"] {
  --nav-outline-icon: url("Assets/icons/mail.svg");
  --nav-filled-icon: url("Assets/icons/contact-filled.svg");
}

.floating-nav a::before,
.floating-nav a::after {
  grid-area: 1 / 1;
  width: 16px;
  height: 16px;
  content: "";
  transition:
    opacity 180ms ease,
    background-color 180ms ease;
}

.floating-nav a::before {
  background: var(--white-10);
  -webkit-mask: var(--nav-outline-icon) center / 16px 16px no-repeat;
  mask: var(--nav-outline-icon) center / 16px 16px no-repeat;
}

.floating-nav a::after {
  background: var(--white-20);
  opacity: 0;
  -webkit-mask: var(--nav-filled-icon) center / 16px 16px no-repeat;
  mask: var(--nav-filled-icon) center / 16px 16px no-repeat;
}

.floating-nav a.active::before,
.floating-nav a:not(.active):hover::before,
.floating-nav a:not(.active):focus-visible::before {
  opacity: 0;
}

.floating-nav a.active::after {
  background: var(--white-60);
  opacity: 1;
}

.floating-nav a:not(.active):hover::after,
.floating-nav a:not(.active):focus-visible::after {
  opacity: 1;
}

/* Fluid Desktop-to-Tablet layout */
@media (max-width: 1439px) {
  :root {
    --content-width: clamp(624px, calc(23.077vw + 387.692px), 720px);
  }

  body {
    min-width: 0;
  }

  .desktop-page {
    width: 100%;
    min-width: 0;
  }

  .site-header,
  .about,
  .experience,
  .projects,
  .contact,
  .site-footer {
    padding: 47px;
  }

  .experience-card .experience-title {
    width: 100%;
  }

  .course-row > div {
    min-width: 0;
    flex: 1 1 auto;
  }

  .course-title {
    width: auto;
  }

  .design-project-card-sports,
  .design-project-card-merch,
  .design-project-card-app,
  .design-project-card-vpn {
    height: auto;
  }

  .project-card,
  .design-project-card {
    padding: 23px;
  }

  .project-image,
  .project-summary {
    width: auto;
    min-width: 0;
    flex: 1 1 0;
  }

  .project-image {
    flex-basis: 0;
  }

  .contact {
    height: auto;
  }

}

/* Fluid Tablet-to-Mobile layout */
@media (max-width: 1024px) {
  :root {
    --content-width: min(624px, calc(100vw - 48px));
    --section-padding: clamp(24px, calc(3.698vw + 9.134px), 47px);
  }

  .background-video {
    inset: auto;
    top: 50%;
    left: 50%;
    width: 100vh;
    height: 100vw;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center center;
  }

  .site-header,
  .about,
  .experience,
  .projects,
  .contact,
  .site-footer {
    padding: var(--section-padding);
  }

  .contact-intro {
    color: var(--white-40);
  }

  .about {
    height: auto;
    min-height: clamp(532px, calc(24.92vw + 431.82px), 687px);
    gap: clamp(24px, calc(3.858vw + 8.49px), 48px);
  }

  .portrait-wrap {
    margin-bottom: calc(48px - clamp(24px, calc(3.858vw + 8.49px), 48px));
  }

  .project-details {
    flex-direction: column;
    align-items: stretch;
  }

  .project-details .tag-list {
    width: 100%;
    flex: 0 0 auto;
  }

  .project-date {
    align-self: flex-start;
    text-align: left;
  }

  .form-notification {
    top: var(--section-padding);
    right: var(--section-padding);
    max-width: calc(100% - (var(--section-padding) * 2));
  }

  .floating-nav {
    top: clamp(174px, calc(20.257vw + 92.56px), 300px);
  }
}

/* Mobile layout from the Figma Mobile frame */
@media (max-width: 700px) {
  .site-header {
    --header-height: 84px;
  }

  .experience,
  .projects,
  .contact {
    height: auto;
  }

  .experience-tabs {
    margin: 24px auto;
  }

  .project-tabs {
    margin: 24px auto;
  }

  .project-card,
  .design-project-card {
    padding: 24px;
  }

  .project-title,
  .design-project-title {
    min-width: 0;
    white-space: normal;
  }

  .project-title img,
  .design-project-title img {
    flex: 0 0 auto;
  }

  .design-project-title {
    overflow-wrap: anywhere;
  }

  /* Multi-tag cards stack their static duration/status; Merch stays on one row. */
  :is(.design-project-card-sports, .design-project-card-app, .design-project-card-vpn)
    .design-project-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .design-project-card-vpn [data-project-marquee] {
    flex: 0 0 auto;
  }

  :is(.design-project-card-sports, .design-project-card-app, .design-project-card-vpn)
    .design-project-meta > span {
    margin-left: 0;
  }

  :is(
      .design-project-card-sports,
      .design-project-card-app,
      .design-project-card-vpn
    )
    .design-project-image:has(> img) {
    aspect-ratio: 69 / 40;
  }

  .contact-intro {
    margin-top: 24px;
  }

  .contact-intro {
    min-height: 0;
  }

  .form-notification {
    right: var(--section-padding);
    left: auto;
  }

  .contact.toast-visible > .form-notification {
    z-index: 7;
  }

  .site-footer {
    height: auto;
    min-height: 69px;
    text-align: center;
  }
}

/* Layout changes based on the space inside each component */
@container (max-width: 350px) {
  .experience-list .meta-list,
  .course-list .meta-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
}

@container (max-width: 460px) {
  .experience-card {
    padding-bottom: 24px;
  }

  .experience-card + .experience-card {
    padding-top: 24px;
  }

  .course-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .course-row:not(:last-child) {
    padding-bottom: 24px;
    margin-bottom: 24px;
  }

  .certificate-link {
    margin-left: -12px;
  }
}

@container (max-width: 520px) {
  .project-list,
  .design-project-list {
    gap: 24px;
  }

  .project-card {
    height: auto;
  }

  .project-card:has(.project-image img) {
    padding: 0 0 24px;
  }

  :is(
    .design-project-card-sports,
    .design-project-card-app,
    .design-project-card-vpn
  ):has(.design-project-image img) {
    padding: 0 0 24px;
  }

  .project-card:has(.project-image img) .project-image {
    order: -1;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  :is(
      .design-project-card-sports,
      .design-project-card-app,
      .design-project-card-vpn
    ):has(.design-project-image img)
    .design-project-image {
    order: -1;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .project-card:has(.project-image img) .project-summary,
  .project-card:has(.project-image img) > p,
  .project-card:has(.project-image img) > .body-stack,
  .project-card:has(.project-image img) > .results {
    width: auto;
    margin-right: 24px;
    margin-left: 24px;
  }

  :is(
      .design-project-card-sports,
      .design-project-card-app,
      .design-project-card-vpn
    ):has(.design-project-image img)
    > :not(.design-project-image) {
    width: auto;
    margin-right: 24px;
    margin-left: 24px;
  }

  .project-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .project-image,
  .project-summary {
    width: 100%;
    flex: 0 0 auto;
  }

  .project-image {
    height: 160px;
  }

  .project-heading-image-right .project-summary {
    height: auto;
    overflow: visible;
  }

  .project-card .body-stack {
    margin-top: 0;
  }

  .project-title {
    min-width: 0;
    white-space: normal;
  }

  .project-title span {
    overflow-wrap: anywhere;
  }

  .result-item {
    min-height: 112px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .result-item img {
    width: 24px;
    height: 24px;
  }

  .result-item div {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-switcher-item {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  .tag-list.is-overflowing .tag-marquee-track {
    animation: none;
    transform: none;
  }

  :is(.project-details .tag-list, [data-project-marquee]).is-marquee-ready {
    overflow: visible;
  }

  :is(.project-details, [data-project-marquee]) :is(.tag-marquee-track, .tag-marquee-set) {
    width: 100%;
    flex-wrap: wrap;
  }

  :is(.project-details .tag-list, [data-project-marquee]) span {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .form-notification {
    transform: translate(var(--notification-x), 0);
    transition: none;
  }

  :is(.project-card, .design-project-card)
    :is(.project-image, .design-project-image)
    img {
    transition: none;
  }

  .moving-indicator.is-ready {
    transition: none;
  }

  .floating-nav a,
  .floating-nav a::before,
  .floating-nav a::after,
  .icon-button::after {
    transition: none;
  }
}

/* Contact: Fluent Forms 3 uses the original form spacing and field styles. */
.contact .fluentform_wrapper_3 { width: 100%; }

#fluentform_3 { margin-top: 48px; width: 100%; }

#fluentform_3 > fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

#fluentform_3 > fieldset > .ff-name-field-wrapper[data-name="names"] {
  grid-column: 1;
}

#fluentform_3 > fieldset > .ff-el-group:has(> .ff-el-input--content > #ff_3_email) {
  grid-column: 2;
}

#fluentform_3 > fieldset > .ff-el-group:has(> .ff-el-input--content > #ff_3_description),
#fluentform_3 > fieldset > .ff_submit_btn_wrapper {
  grid-column: 1 / -1;
}

#fluentform_3 .ff-name-field-wrapper,
#fluentform_3 .ff-el-group,
#fluentform_3 .ff-t-cell {
  min-width: 0;
  margin: 0;
  padding: 0;
}

#fluentform_3 .ff-t-container { gap: 0; }

/* Security fields remain untouched and outside the visual grid. */
#fluentform_3 input[type="hidden"],
#fluentform_3 .ff-hpsf-container { display: none !important; }

#fluentform_3 :is(#ff_3_names_first_name_, #ff_3_email, #ff_3_description) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 12px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: var(--black-100);
  color: var(--white-30);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: none;
}

#fluentform_3 #ff_3_description { height: 200px; resize: none; }

#fluentform_3 :is(#ff_3_names_first_name_, #ff_3_email, #ff_3_description)::placeholder {
  color: var(--white-30);
  font: inherit;
  opacity: 1;
  text-transform: uppercase;
}

#fluentform_3 :is(#ff_3_names_first_name_, #ff_3_email, #ff_3_description):focus {
  box-shadow: inset 0 0 0 1px var(--white-20);
}

#fluentform_3 .ff_submit_btn_wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

#fluentform_3 .ff_submit_btn_wrapper > button[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 45px;
  margin: 0;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--white-60);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: none;
  cursor: pointer;
}

#fluentform_3 .ff-btn-submit::after {
  content: "";
  width: 16px;
  height: 16px;
  background: url("Assets/icons/arrow-right.svg") center / contain no-repeat;
}

#fluentform_3 .ff-btn-submit:disabled { cursor: default; }

#fluentform_3 .ff_submit_btn_wrapper > button[type="submit"]:not(:disabled) {
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

#fluentform_3 .ff_submit_btn_wrapper > button[type="submit"]:not(:disabled):is(:hover, :focus-visible) {
  background: var(--white-5);
  color: var(--white-80);
  opacity: 1;
}

#fluentform_3 .ff-btn-submit:focus-visible {
  outline: 1px solid var(--white-40);
  outline-offset: -1px;
}

/* Plugin feedback may be inserted beside the form, after the AJAX response. */
.contact .fluentform_wrapper_3 .error,
.contact .fluentform_wrapper_3 .ff-errors-in-stack,
.contact .fluentform_wrapper_3 .ff-message-success,
.contact .fluentform_wrapper_3 .ff-message-error {
  display: none !important;
}

@media (max-width: 1439px) {
  #fluentform_3 :is(#ff_3_names_first_name_, #ff_3_email) {
    height: clamp(45px, calc(2.164vw + 22.846px), 54px);
  }
}

@media (max-width: 700px) {
  #fluentform_3 { margin-top: 24px; }
  #fluentform_3 > fieldset { grid-template-columns: minmax(0, 1fr); }
  #fluentform_3 > fieldset > .ff-el-group:has(> .ff-el-input--content > #ff_3_email) {
    grid-column: 1;
  }
  #fluentform_3 :is(#ff_3_names_first_name_, #ff_3_email) { height: 45px; }
}

/* Only intentional language transfers fade; direct visits remain fully visible. */
html:is(.language-leaving, .language-arriving, .language-revealing) {
  background: #050505;
}
@media (prefers-reduced-motion: no-preference) {
  html.language-leaving body,
  html.language-revealing body {
    transition: opacity 90ms ease;
  }
  html.language-leaving body,
  html.language-arriving body {
    opacity: 0;
  }
}

/* A sibling overlay stays sharp while only the field surfaces blur. */
.contact .fluentform_wrapper_3 { position: relative; }
.contact .fluentform_wrapper_3 > .form-notification {
  --notification-x: -50%;
  left: 50%;
  right: auto;
  width: max-content;
  max-width: calc(100% - 24px);
  transform: translate(-50%, calc(-50% - 4px));
}
.contact .fluentform_wrapper_3 > .form-notification.is-visible {
  transform: translate(-50%, -50%);
}
#fluentform_3 > fieldset > :not(.ff_submit_btn_wrapper) {
  transition: filter 180ms ease;
}
.contact.toast-visible #fluentform_3 > fieldset > :not(.ff_submit_btn_wrapper) {
  filter: blur(4px);
}
@media (prefers-reduced-motion: reduce) {
  #fluentform_3 > fieldset > :not(.ff_submit_btn_wrapper) {
    transition: none;
  }
  .contact .fluentform_wrapper_3 > .form-notification {
    transform: translate(-50%, -50%);
  }
}

/* 404 page: exact responsive composition from the dedicated Figma frames. */
.error404-page .site-column {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  grid-template-rows: auto minmax(min-content, 1fr) auto;
}

.error404-content {
  display: flex;
  min-height: 0;
  padding: 48px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  text-align: center;
}

.error-code {
  margin: 0;
  color: var(--white-10);
  font-family: var(--font-display);
  font-size: 272px;
  font-weight: 400;
  line-height: 0.76;
  text-transform: uppercase;
  white-space: nowrap;
}

@supports (text-box-trim: trim-both) {
  .error-code {
    line-height: 1.2;
    text-box-edge: cap alphabetic;
    text-box-trim: trim-both;
  }
}

.error-message,
.error-home-link {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  text-transform: uppercase;
}

.error-message {
  color: var(--white-60);
  font-weight: 400;
}

.error-home-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  color: var(--white-60);
  font-weight: 700;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.error-home-link img {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.error-home-link:is(:hover, :focus-visible) {
  background: var(--white-5);
  color: var(--white-80);
}

.error-home-link:focus-visible {
  outline: 1px solid var(--white-40);
  outline-offset: -1px;
}

@media (max-width: 1439px) {
  .error404-page .site-header,
  .error404-content,
  .error404-page .site-footer {
    padding: 48px;
  }
}

@media (max-width: 700px) {
  .error404-page .site-header,
  .error404-content,
  .error404-page .site-footer {
    padding: 24px;
  }

  .error404-content {
    gap: 24px;
  }

  .error-code {
    font-size: 136px;
    line-height: 1.2;
    text-box-trim: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #fluentform_3 .ff_submit_btn_wrapper > button[type="submit"]:not(:disabled),
  .error-home-link {
    transition: none;
  }
}
