@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/exo2.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/jetbrains-mono.woff2') format('woff2');
}

:root {
  --bg: #0e0f10;
  --fg: #f0ece6;
  --card: #1c1e20;
  --secondary: #34393b;
  --muted: #242729;
  --muted-fg: #8a9099;
  --primary: #ef7d17;
  --primary-fg: #ffffff;
  --border: rgba(239, 125, 23, 0.15);
  --ring: rgba(239, 125, 23, 0.4);
  --container: min(1280px, calc(100vw - 3rem));
  --display: "Exo 2", sans-serif;
  --sans: "Inter", sans-serif;
  --mono: "JetBrains Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.page-shell:focus {
  outline: none;
}

.display,
.display * {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
  text-transform: uppercase;
}

.heading-xxl {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.heading-xl {
  margin: 0 0 1.75rem;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
}

.heading-lg {
  margin: 0 0 1.75rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.heading-md {
  margin: 0 0 2rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.display span,
.text-link,
.mono-label,
.section-label strong {
  color: var(--primary);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  background: rgba(14, 15, 16, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-route="home"] .site-header:not(.is-visible):not(.is-open) {
  opacity: 0;
  transform: translateY(-80px);
  pointer-events: none;
}

.header-inner {
  width: 100%;
  max-width: 1400px;
  height: 80px;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 2.5rem);
}

.brand {
  flex: 0 0 auto;
  cursor: pointer;
  pointer-events: auto;
}

.brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  flex: 1 1 auto;
  margin-left: clamp(1rem, 3vw, 3rem);
}

.main-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 2.5vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  padding-block: 0.35rem;
  color: var(--muted-fg);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active {
  color: var(--primary);
}

.main-nav a.is-active::after {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  content: "";
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-socials a {
  display: flex;
  align-items: center;
  color: var(--muted-fg);
  transition: color 0.2s ease;
}

.header-socials a:hover {
  color: var(--primary);
}

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
}

.lang-switch button {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted-fg);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  padding: 0.4rem 0.65rem;
  text-transform: uppercase;
  cursor: pointer;
}

.lang-switch button + button {
  border-left: 1px solid var(--border);
}

.lang-switch button.is-active {
  background: var(--primary);
  color: var(--primary-fg);
}

.contact-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 0;
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact-button {
  background: var(--primary);
  color: var(--primary-fg);
  padding: 0.62rem 1.25rem;
}

.contact-button:hover,
.button--primary:hover {
  background: #cf6710;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  overflow: hidden;
  background: #06141a;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100svh;
  object-fit: cover;
}

.starfield,
.starfield svg,
.hero__shade,
.hero__content {
  position: absolute;
  inset: 0;
}

.starfield {
  z-index: 1;
  pointer-events: none;
}

.hero__shade {
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 15, 16, 0.495) 0%, rgba(14, 15, 16, 0) 45%, rgba(14, 15, 16, 0.45) 100%),
    radial-gradient(circle at 50% 52%, rgba(0, 0, 0, 0.072), rgba(0, 0, 0, 0.342));
}

.hero__content {
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 2rem;
}

.hero__logo {
  width: auto;
  height: clamp(6rem, 18vw, 14rem);
  margin-bottom: 2rem;
  object-fit: contain;
  filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.65));
}

.kicker,
.quote cite,
.stat span,
.section-label strong,
.mono-label,
.project-card__label,
.chip-row em,
.pub-meta,
.footer-label,
.footer-bottom,
.footer-nav a {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.kicker {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.6875rem;
  letter-spacing: 0.4em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.quote {
  margin: 0 0 2.5rem;
}

.quote p {
  margin: 0 0 0.25rem;
  font-family: var(--display);
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  font-style: italic;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.quote cite {
  color: var(--primary);
  font-size: 0.625rem;
  font-style: normal;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.actions--center {
  justify-content: center;
  margin-top: 0;
}

.button {
  min-height: 3rem;
  padding: 0.95rem 1.9rem;
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(14, 15, 16, 0.12);
  color: #fff;
  backdrop-filter: blur(6px);
}

.button--ghost:hover {
  border-color: rgba(239, 125, 23, 0.7);
  color: var(--primary);
}

.button--outline {
  border: 1px solid rgba(239, 125, 23, 0.5);
  background: transparent;
  color: var(--primary);
}

.button--outline:hover {
  background: rgba(239, 125, 23, 0.1);
}

.button--small {
  min-height: auto;
  padding: 0.72rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.625rem;
}

.stats-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--primary);
  color: var(--primary-fg);
}

.stat {
  padding: 1.5rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.stat:last-child {
  border-right: 0;
}

.stat strong,
.orange-grid strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
}

.stat span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.625rem;
}

.hero-fade {
  position: relative;
  height: 7rem;
  background: linear-gradient(180deg, rgba(239, 125, 23, 0.25), rgba(239, 125, 23, 0.08), transparent);
  pointer-events: none;
}

.section,
.page-hero {
  position: relative;
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.page-hero {
  padding-top: 9rem;
}

.section--compact {
  padding: 4rem 0;
}

.section--card {
  background: var(--card);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4rem;
}

.two-col--center {
  align-items: center;
}

.two-col--start {
  align-items: start;
}

.two-col p,
.page-hero p,
.project-card__body > span:not(.project-card__tagline),
.publication p,
.document-card p,
.company-box p {
  color: var(--muted-fg);
  font-size: 0.95rem;
  line-height: 1.75;
}

.page-hero .container > p {
  max-width: 760px;
  margin-top: 1.75rem;
  font-size: 1rem;
}

.page-hero--project {
  display: grid;
  min-height: min(78vh, 760px);
  align-items: end;
  overflow: hidden;
  padding: clamp(8rem, 14vw, 12rem) 0 clamp(4.5rem, 8vw, 7rem);
  border-top: 0;
  background: var(--bg);
}

.page-hero__bg,
.page-hero__shade {
  position: absolute;
  inset: 0;
}

.page-hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
}

.page-hero__bg--logo {
  top: 50%;
  right: clamp(-4rem, 4vw, 5rem);
  left: auto;
  width: min(62vw, 760px);
  height: min(62vw, 760px);
  object-fit: contain;
  opacity: 0.32;
  filter: drop-shadow(0 34px 48px rgba(0, 0, 0, 0.62));
  transform: translateY(-50%);
}

.page-hero__shade {
  background:
    linear-gradient(90deg, rgba(14, 15, 16, 0.96), rgba(14, 15, 16, 0.64) 48%, rgba(14, 15, 16, 0.32)),
    linear-gradient(0deg, rgba(14, 15, 16, 0.98), rgba(14, 15, 16, 0.24) 48%, rgba(14, 15, 16, 0.5));
}

.project-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}

.project-hero-copy p {
  max-width: 760px;
  color: rgba(245, 247, 248, 0.86);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.section-label span {
  width: 2rem;
  height: 1px;
  background: var(--primary);
}

.section-label strong,
.mono-label {
  font-size: 0.625rem;
}

.check-list,
.diamond-list {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.diamond-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--muted-fg);
  font-size: 1rem;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--primary);
  content: ">";
}

.diamond-list li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  background: var(--primary);
  content: "";
  transform: rotate(45deg);
}

.diamond-list--columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: gap 0.2s ease, transform 0.2s ease;
}

.text-link:hover {
  gap: 0.75rem;
}

.globe {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.mini-stats div,
.spec-grid div {
  background: var(--secondary);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
}

.mini-stats strong {
  display: block;
  color: var(--primary);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.mini-stats span,
.spec-grid span {
  display: block;
  color: var(--muted-fg);
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.image-card,
.image-panel {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--secondary);
  border: 1px solid var(--border);
}

.image-card {
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
}

.image-card img,
.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-card::after,
.project-card__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(14, 15, 16, 0.66), transparent 55%);
  content: "";
  pointer-events: none;
}

.image-card figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  background: var(--primary);
  color: var(--primary-fg);
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  text-transform: uppercase;
}

.dept-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.image-panel {
  height: 100%;
  min-height: 420px;
}

.image-panel img {
  opacity: 0.8;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.image-panel:hover img {
  opacity: 1;
  transform: scale(1.025);
}

.dept-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}

.dept-list--wide {
  margin-top: 2.5rem;
}

.dept-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-height: 3.7rem;
  padding: 0.8rem 1.25rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dept-list--wide .dept-row {
  display: grid;
  grid-template-columns: auto 220px 1fr;
}

.dept-row:hover,
.dept-row:focus-visible {
  border-color: rgba(239, 125, 23, 0.45);
  color: var(--primary);
  transform: translateX(2px);
}

.dept-row strong {
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dept-row > span:last-child {
  margin-left: auto;
  color: var(--muted-fg);
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(239, 125, 23, 0.28);
  color: var(--primary);
}

.icon-box svg {
  width: 1rem;
  height: 1rem;
}

.orange-band {
  background: var(--primary);
  color: var(--primary-fg);
  padding: 4rem 0;
}

.orange-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.orange-grid div {
  padding: 2rem;
  background: var(--primary);
  text-align: center;
}

.orange-grid span {
  display: block;
  max-width: 18ch;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.35;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.section-intro {
  max-width: 760px;
  margin: 1rem 0 0;
  color: var(--muted-fg);
  font-size: 0.95rem;
  line-height: 1.75;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    var(--card);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: rgba(239, 125, 23, 0.55);
  transform: translateY(-2px);
}

.project-grid--home .project-card__media {
  min-height: clamp(18rem, 31vw, 27rem);
}

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(239, 125, 23, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    var(--secondary);
}

.project-card__media img {
  position: absolute;
  inset: 0;
  width: min(68%, 23rem);
  height: min(68%, 23rem);
  margin: auto;
  object-fit: contain;
  opacity: 0.96;
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.46));
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.project-card__media--mission::before {
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(239, 125, 23, 0.16);
  content: "";
  pointer-events: none;
}

.project-card__media--mission::after {
  z-index: 1;
  background:
    linear-gradient(0deg, rgba(14, 15, 16, 0.9), rgba(14, 15, 16, 0.2) 56%, rgba(14, 15, 16, 0.44)),
    linear-gradient(90deg, rgba(14, 15, 16, 0.58), rgba(14, 15, 16, 0.08));
}

.project-card:hover .project-card__media > img:first-child {
  opacity: 1;
  transform: scale(1.04);
}

.project-card__label,
.project-card__media strong {
  position: absolute;
  left: 1rem;
  z-index: 3;
}

.project-card__label {
  top: 1rem;
  bottom: auto;
  color: var(--primary);
  font-size: 0.5625rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.68);
}

.project-card__media strong {
  right: 1rem;
  bottom: 1rem;
  color: var(--fg);
  font-family: var(--display);
  font-size: clamp(2.25rem, 7vw, 4.7rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 18px 36px rgba(0, 0, 0, 0.72);
}

.project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
}

.project-card__tagline {
  color: var(--primary);
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.35;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-row em {
  display: inline-flex;
  border: 1px solid var(--border);
  color: var(--muted-fg);
  font-size: 0.5625rem;
  font-style: normal;
  padding: 0.25rem 0.55rem;
}

.center {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.sponsor-card {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  min-height: 8rem;
  padding: 0.75rem;
  border: 2px dashed var(--border);
  background: rgba(52, 57, 59, 0.42);
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.sponsor-card:hover,
.sponsor-card:focus-visible {
  border-color: rgba(239, 125, 23, 0.5);
  background: var(--secondary);
  transform: translateY(-2px);
}

.sponsor-logo {
  width: 75%;
  height: 75%;
  object-fit: contain;
  filter: grayscale(1) brightness(1.15);
  transition: filter 0.2s ease;
}

.sponsor-card:hover .sponsor-logo {
  filter: grayscale(1) brightness(1.15);
}

.sponsor-fallback {
  display: none;
}

.research-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  border: 1px solid var(--border);
}

.research-panel::before {
  grid-column: 2;
  grid-row: 1;
  background: var(--border);
  content: "";
}

.publication-carousel {
  padding: clamp(2rem, 4vw, 3rem);
}

.publication {
  display: none;
  min-height: 280px;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.publication.is-active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.pub-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.5625rem;
}

.pub-meta span {
  background: var(--primary);
  color: var(--primary-fg);
  padding: 0.25rem 0.55rem;
}

.pub-meta em {
  color: var(--muted-fg);
  font-style: normal;
}

.publication h3,
.document-card h3,
.company-box h3 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.18;
}

.pub-authors {
  color: var(--primary) !important;
  font-family: var(--mono);
  font-size: 0.6875rem !important;
  letter-spacing: 0.05em;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.carousel-controls button {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted-fg);
  cursor: pointer;
}

.carousel-controls button:hover,
.carousel-controls button:focus-visible {
  border-color: rgba(239, 125, 23, 0.5);
  color: var(--primary);
}

.carousel-controls [data-publication-dots] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-controls [data-publication-dots] button {
  width: 0.5rem;
  height: 0.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--border);
  padding: 0;
}

.carousel-controls [data-publication-dots] button.is-active {
  width: 1.25rem;
  background: var(--primary);
}

.carousel-controls [data-publication-count] {
  margin-left: auto;
  color: var(--muted-fg);
  font-family: var(--mono);
  font-size: 0.625rem;
}

.research-side {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: clamp(2rem, 4vw, 3rem);
  background: rgba(52, 57, 59, 0.32);
}

.social-list {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.75rem;
}

.social-list a {
  border: 1px solid rgba(239, 125, 23, 0.5);
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  padding: 0.6rem 1rem;
  text-transform: uppercase;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.document-card,
.empty-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--card);
}

.document-card p,
.empty-card {
  color: var(--muted-fg);
  font-size: 0.9rem;
  line-height: 1.65;
}

.document-card .button {
  margin-top: auto;
  align-self: flex-start;
}

.work-section {
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(239, 125, 23, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    var(--card);
}

.work-section::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 4rem 4rem;
  content: "";
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 78%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 78%);
  opacity: 0.34;
  pointer-events: none;
}

.work-section .container,
.work-apply-section .container {
  position: relative;
  z-index: 1;
}

.work-section__head {
  max-width: 780px;
}

.work-paths {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.work-card {
  position: relative;
  display: flex;
  min-height: 26rem;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012)),
    var(--secondary);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.work-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--primary);
  content: "";
  opacity: 0.78;
}

.work-card::after {
  position: absolute;
  top: 1.5rem;
  right: -4rem;
  width: 13rem;
  aspect-ratio: 1;
  border: 1px solid rgba(239, 125, 23, 0.24);
  content: "";
  opacity: 0.55;
  pointer-events: none;
  transform: rotate(27deg);
}

.work-card:hover,
.work-card:focus-within {
  border-color: rgba(239, 125, 23, 0.48);
  transform: translateY(-3px);
}

.work-card--student {
  grid-column: 1 / 8;
}

.work-card--company {
  grid-column: 6 / 13;
  margin-top: 3rem;
  background:
    linear-gradient(135deg, rgba(239, 125, 23, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    var(--card);
}

.work-card__marker {
  color: rgba(239, 125, 23, 0.28);
  font-family: var(--display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.8;
}

.work-card h3,
.company-contact h3 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.work-card p,
.company-contact p {
  color: var(--muted-fg);
  font-size: 0.95rem;
  line-height: 1.75;
}

.work-chip-row,
.company-contact__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.work-chip-row span,
.company-contact__grid span {
  border: 1px solid rgba(239, 125, 23, 0.28);
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  padding: 0.45rem 0.65rem;
  text-transform: uppercase;
}

.work-card__actions {
  display: flex;
  align-items: flex-end;
  margin-top: auto;
}

.work-card__actions .button,
.company-contact .button,
.form-submit {
  min-width: min(100%, 15rem);
}

.work-lines {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.45rem;
  width: min(34%, 13rem);
  pointer-events: none;
}

.work-lines span {
  display: block;
  height: 1px;
  background: rgba(239, 125, 23, 0.32);
}

.work-lines span:nth-child(2) {
  width: 72%;
  margin-left: auto;
}

.work-lines span:nth-child(3) {
  width: 44%;
  margin-left: auto;
}

.work-apply-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent),
    var(--bg);
}

.work-contact-grid,
.form-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.work-form-panel,
.company-contact {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    var(--card);
}

.work-form-panel::after,
.company-contact::after {
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: 11rem;
  aspect-ratio: 1;
  border: 1px solid rgba(239, 125, 23, 0.18);
  content: "";
  pointer-events: none;
  transform: rotate(28deg);
}

.work-form-panel::before,
.company-contact::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  content: "";
}

.mail-form {
  margin-top: 2rem;
}

.mail-form--company {
  margin-top: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.form-field {
  display: grid;
  gap: 0.5rem;
}

.form-field--wide {
  grid-column: 1 / -1;
}

.form-field span {
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(14, 15, 16, 0.46);
  color: var(--fg);
  min-height: 3rem;
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(239, 125, 23, 0.58);
  box-shadow: 0 0 0 3px var(--ring);
}

.form-submit {
  margin-top: 1.25rem;
}

.company-contact {
  position: relative;
  top: auto;
  background:
    linear-gradient(135deg, rgba(239, 125, 23, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.008)),
    var(--secondary);
}

.company-contact__grid {
  margin: 1.5rem 0 0;
}

.company-box {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--secondary);
  border: 1px solid var(--border);
}

.company-box::after {
  position: absolute;
  right: -4rem;
  bottom: -4rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  opacity: 0.08;
  content: "";
  pointer-events: none;
}

.department-quote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--primary);
}

.department-quote p {
  color: var(--fg);
  font-family: var(--display);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.35;
}

.spec-grid {
  display: grid;
  gap: 1rem;
}

.spec-grid strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--fg);
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.2;
}

/* GoFundMe banner */
.gfm-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2.5rem;
  padding: 2rem 2.5rem;
  border: 1px solid var(--primary);
  background: rgba(239, 125, 23, 0.06);
  border-radius: 4px;
}

.gfm-banner h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0.25rem 0 0.5rem;
}

.gfm-banner p {
  margin: 0;
  color: var(--muted-fg);
  font-size: 0.9rem;
}

.gfm-banner__text {
  flex: 1 1 auto;
}

.gfm-progress-wrap {
  margin-top: 1rem;
}

.gfm-progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.gfm-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.gfm-progress-label {
  font-size: 0.85rem !important;
  color: var(--muted-fg);
}

.gfm-progress-label strong {
  color: var(--fg);
}

/* Trasparenza page */
.section-desc {
  color: var(--muted-fg);
  font-size: 1rem;
  max-width: 640px;
  margin: 0.5rem 0 0;
}

.org-chart-wrap {
  margin-top: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  padding: 2rem;
}

.org-chart-img {
  max-width: 100%;
  height: auto;
}

.trasparenza-doc-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}

.trasparenza-doc-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--card);
}

.trasparenza-doc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border);
}

.trasparenza-doc-header h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0.25rem 0 0.5rem;
}

.trasparenza-doc-header p {
  margin: 0;
  color: var(--muted-fg);
  font-size: 0.9rem;
}

.pdf-preview-wrap {
  width: 100%;
  height: 600px;
  background: #1a1b1c;
}

.pdf-preview {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-main {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding: 3.5rem 0;
}

.footer-label,
.footer-bottom,
.footer-nav a {
  color: var(--muted-fg);
  font-size: 0.625rem;
}

.footer-heading {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-logos {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.footer-logos img {
  max-width: 260px;
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
}

.footer-address {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--muted-fg);
  font-size: 0.92rem;
}

.footer-address a {
  color: var(--fg);
}

.footer-address a:hover,
.footer-nav a:hover {
  color: var(--primary);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.footer-nav img {
  width: auto;
  height: 40px;
}

.footer-nav div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1.2rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  padding: 1rem;
}

.footer-legal-link {
  font-size: 0.75rem;
  color: var(--muted-fg);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal-link:hover {
  color: var(--primary);
}

.legal-content {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-bottom: 4rem;
}

.legal-section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.legal-section p {
  color: var(--muted-fg);
  line-height: 1.7;
  margin: 0;
}

.section-meta {
  font-size: 0.8rem;
  color: var(--muted-fg);
  font-family: var(--mono);
  margin-top: 0.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1), transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal--late {
  transition-delay: 0.14s;
}

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

@media (max-width: 1120px) {
  .main-nav ul {
    gap: 1.15rem;
  }

  .main-nav a,
  .contact-button {
    font-size: 0.68rem;
  }
}

@media (max-width: 980px) {
  .header-actions,
  .main-nav {
    display: none;
  }

  .site-header.is-open .main-nav,
  .site-header.is-open .header-actions {
    display: flex;
  }

  .site-header.is-open .header-inner {
    height: auto;
    min-height: 62px;
    align-items: flex-start;
    padding-block: 0.85rem;
  }

  .site-header.is-open .main-nav,
  .site-header.is-open .header-actions {
    position: absolute;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
  }

  .site-header.is-open .main-nav {
    top: 62px;
    margin-left: 0;
  }

  .site-header.is-open .header-actions {
    top: calc(62px + 16.5rem);
    align-items: flex-start;
  }

  .main-nav ul,
  .site-header.is-open .header-actions {
    flex-direction: column;
  }

  .main-nav ul {
    align-items: flex-start;
    gap: 1rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .stats-strip,
  .two-col,
  .dept-grid,
  .project-grid,
  .research-panel,
  .work-contact-grid,
  .form-section-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .work-card--student,
  .work-card--company {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .project-hero-content {
    grid-template-columns: 1fr;
  }

  .company-contact {
    position: relative;
    top: auto;
  }

  .research-panel::before {
    display: none;
  }

  .sponsor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .document-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-nav {
    align-items: flex-start;
  }

  .footer-nav div {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 1.25rem, 1280px);
  }

  .hero__content {
    padding-inline: 1rem;
  }

  .actions,
  .actions .button,
  .center .button {
    width: 100%;
  }

  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .section,
  .page-hero {
    padding-block: 4.5rem;
  }

  .page-hero {
    padding-top: 7rem;
  }

  .mini-stats,
  .orange-grid,
  .diamond-list--columns,
  .document-grid,
  .sponsor-grid,
  .form-grid,
  .dept-list--wide .dept-row {
    grid-template-columns: 1fr;
  }

  .work-paths {
    grid-template-columns: 1fr;
  }

  .project-grid--home .project-card__media {
    min-height: 17rem;
  }

  .project-card__media strong {
    font-size: clamp(2rem, 14vw, 3.6rem);
  }

  .page-hero--project {
    min-height: 680px;
  }

  .page-hero__bg--logo {
    right: -4rem;
    width: min(92vw, 520px);
    height: min(92vw, 520px);
    opacity: 0.24;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 2rem;
  }

  .hide-mobile {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero__logo {
    height: clamp(5rem, 32vw, 8rem);
  }

  .kicker {
    letter-spacing: 0.24em;
  }

  .button {
    padding-inline: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
