/* ------------------------------------------------------------------
   Emanuel Raimundo — portfolio
   Dark editorial layout inspired by the ArtStation portfolio reference.
------------------------------------------------------------------- */

@font-face {
  font-family: "Quicksand";
  src: url("assets/fonts/quicksand-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("assets/fonts/quicksand-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("assets/fonts/quicksand-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("assets/fonts/quicksand-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #101114;
  --bg-deep: #0c0d0f;
  --panel: #1a1b1f;
  --panel-2: #222329;
  --bar: #1a1b1f;
  --text: #f4f4f6;
  --muted: #a2a2ab;
  --muted-2: #74747d;
  --accent: #3ecbd8;
  --accent-bright: #66dbe5;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --font-display: "Quicksand", "Varela Round", "Segoe UI", system-ui, sans-serif;
  --font-body: "Quicksand", "Segoe UI", system-ui, -apple-system, sans-serif;
  --shell: 1400px;
  --gap: 24px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 16% 2%, rgba(130, 148, 168, 0.14), transparent 70%),
    radial-gradient(1100px 640px at 82% 0%, rgba(80, 92, 112, 0.10), transparent 72%);
}

body.lightbox-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

::selection {
  background: var(--accent);
  color: #081014;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(var(--shell), calc(100% - 64px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: #081014;
  font-size: 13px;
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 14, 17, 0.82);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 0;
}

.brand {
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.015em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 15px;
  font-weight: 500;
}

.main-nav a {
  color: #c7c7cf;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #fff;
}

.main-nav .availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

.availability-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ddc91;
  box-shadow: 0 0 0 3px rgba(61, 220, 145, 0.13);
}

/* ------------------------------------------------------------------
   Category filter bar
------------------------------------------------------------------- */

.filters {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 4px;
  padding: 6px;
  margin-bottom: 30px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 999px;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter {
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9b9ba4;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.filter:hover {
  color: #fff;
}

.filter.is-active {
  background: #d9d9de;
  color: #16161a;
}

/* ------------------------------------------------------------------
   Work grid
------------------------------------------------------------------- */

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
  padding: clamp(48px, 7vw, 96px) 0 clamp(44px, 6vw, 84px);
}

.hero-copy h1 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 4.6vw, 4.2rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.hero-role {
  margin-top: 12px;
  color: #c6c6ce;
  font-size: clamp(1.3rem, 2.3vw, 1.95rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hero-lead {
  max-width: 34ch;
  margin-top: 28px;
  color: #a6a6b0;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.65;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-tags li {
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #d5d5dc;
  font-size: 13px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #0d0d10;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-media:hover img,
.hero-media:focus-visible img {
  transform: scale(1.035);
}

.hero-media-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 5, 7, 0.62) 0%,
    rgba(5, 5, 7, 0.05) 46%,
    transparent 70%
  );
}

.hero-play {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(8, 8, 10, 0.5);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.hero-play svg {
  width: 20px;
  height: 20px;
  margin-left: 3px;
}

.hero-media:hover .hero-play {
  background: var(--accent);
  color: #081416;
  transform: scale(1.06);
}

.hero-media-meta {
  position: absolute;
  right: 24px;
  bottom: 26px;
  color: #ececf0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------------
   Work grid
------------------------------------------------------------------- */

.work {
  padding: 0 0 110px;
  scroll-margin-top: 80px;
}

.work-head {
  margin-bottom: 26px;
}

.work-head h2 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.015em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  isolation: isolate;
  animation: card-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(min(var(--i), 12) * 22ms);
  transition: transform 0.35s, background 0.35s, border-color 0.35s;
}

.card[hidden] {
  display: none;
}

.card:hover,
.card:focus-visible {
  background: #242429;
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #0d0d10;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.01);
  transition: transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s;
}

.card:hover img,
.card:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.02);
}

.card-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 14px 6px 4px;
  line-height: 1.3;
}

.card-title {
  color: #fff;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.card-sep {
  color: #66666f;
}

.card-kicker {
  color: #9d9da6;
  font-size: 14px;
  font-weight: 400;
}

.play-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(8, 8, 10, 0.55);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.play-badge svg {
  width: 15px;
  height: 15px;
  margin-left: 2px;
}

.card:hover .play-badge {
  background: var(--accent);
  color: #081416;
  transform: scale(1.08);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------
   Buttons
------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #07191b;
}

.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 52px 0 26px;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 48px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-name {
  color: #fff;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.footer-role {
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.footer-cta p {
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-cta a {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--accent);
  color: #fff;
  font-size: 16px;
  transition: color 0.2s;
}

.footer-cta a:hover {
  color: var(--accent);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------------
   About page
------------------------------------------------------------------- */

.about-hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
  padding: 80px 0 70px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.about-copy h1 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6.4vw, 5.6rem);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: 0.008em;
  text-wrap: balance;
}

.about-copy h1 .accent {
  color: var(--accent);
}

.about-role {
  margin-top: 24px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-copy .lead {
  max-width: 58ch;
  margin-top: 32px;
  color: #e6e6ea;
  font-size: 19px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.about-copy > p:not(.eyebrow):not(.about-role):not(.lead) {
  max-width: 62ch;
  margin-top: 16px;
  color: #b4b4bd;
  font-size: 14.5px;
  line-height: 1.8;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.about-portrait {
  display: flex;
  justify-content: flex-end;
}

.portrait-frame {
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 4 / 5;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
}

.portrait-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: saturate(0.95) contrast(1.02);
}

.avatar-chip {
  position: absolute;
  left: -34px;
  bottom: 30px;
  width: 104px;
  height: 104px;
  border: 4px solid var(--bg);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.years-badge {
  position: absolute;
  top: 26px;
  right: -24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 15px 13px;
  background: var(--accent);
  color: #081014;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.years-number {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 0.85;
}

.years-label {
  max-width: 80px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-section {
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 28px;
}

.section-head .eyebrow {
  margin-bottom: 10px;
}

.section-head h2 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.skill-list li {
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: #c7c7cf;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.skill-list li:hover {
  border-color: var(--accent);
  background: rgba(91, 200, 232, 0.06);
  color: #fff;
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.software-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 126px;
  padding: 20px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}

.software-item:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 200, 232, 0.45);
  background: #191a1c;
}

.software-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: grayscale(0.15);
  transition: filter 0.25s;
}

.software-item:hover img {
  filter: none;
}

.software-item span {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: 0.03em;
}

.credits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.credit {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 26px 30px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.25s;
}

.credit::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}

.credit:hover {
  border-color: rgba(91, 200, 232, 0.35);
  transform: translateY(-2px);
}

.credit:hover::after {
  transform: scaleX(1);
}

.credit-year {
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.credit h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.credit p {
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.03em;
}

.contact-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 60px;
  margin-bottom: 84px;
  padding: 46px 48px;
  overflow: hidden;
  background: linear-gradient(120deg, #1b292e 0%, #161618 55%);
  border: 1px solid rgba(62, 203, 216, 0.22);
  border-radius: var(--radius-lg);
  scroll-margin-top: 80px;
}

.contact-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/projects/2026-showreel.jpg") center / cover;
  opacity: 0.16;
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 72%);
  mask-image: linear-gradient(to left, #000 0%, transparent 72%);
  pointer-events: none;
}

.contact-copy,
.contact-actions {
  position: relative;
  z-index: 1;
}

.contact-band .eyebrow {
  margin-bottom: 12px;
}

.contact-band h2 {
  max-width: 16ch;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.contact-band p:not(.eyebrow) {
  max-width: 48ch;
  margin-top: 12px;
  color: #b7b7c0;
  font-size: 13px;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* ------------------------------------------------------------------
   Scroll reveal
------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .about-hero {
    grid-template-columns: 1fr 0.7fr;
    gap: 48px;
  }
  .software-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .credits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-band {
    padding: 38px 34px;
  }
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 48px;
  }
  .hero-copy h1 {
    font-size: clamp(3rem, 8vw, 4.4rem);
  }
}

@media (max-width: 860px) {
  .main-nav {
    gap: 24px;
  }
  .about-hero {
    grid-template-columns: 1fr;
    padding: 54px 0 46px;
  }
  .about-portrait {
    justify-content: flex-start;
    margin-top: 10px;
  }
  .portrait-frame {
    width: min(340px, 100%);
  }
  .contact-band {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  .shell {
    width: calc(100% - 32px);
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 15px 0;
  }
  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
    font-size: 13.5px;
  }
  .main-nav .availability {
    display: none;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero {
    gap: 32px;
    padding: 36px 0 44px;
  }
  .hero-copy h1 {
    font-size: clamp(2.6rem, 12vw, 3.4rem);
  }
  .hero-role {
    font-size: 1.2rem;
  }
  .hero-lead {
    margin-top: 20px;
  }
  .hero-tags {
    margin-top: 20px;
  }
  .hero-actions {
    margin-top: 24px;
  }
  .filters {
    width: 100%;
    padding: 5px;
    margin-bottom: 22px;
  }
  .filter {
    padding: 9px 14px;
    font-size: 11px;
  }
  .work {
    padding: 0 0 70px;
  }
  .work-head {
    margin-bottom: 20px;
  }
  .work-head h2 {
    font-size: 1.7rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-links {
    align-items: flex-start;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
  .software-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .credits {
    grid-template-columns: 1fr;
  }
  .about-copy h1 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }
  .about-copy .lead {
    font-size: 17px;
  }
  .contact-band {
    padding: 30px 22px;
  }
  .avatar-chip {
    left: -14px;
    bottom: 18px;
    width: 84px;
    height: 84px;
  }
  .years-badge {
    right: -10px;
    top: 18px;
  }
}

@media (max-width: 460px) {
  .brand {
    font-size: 19px;
  }
  .main-nav {
    gap: 10px;
    font-size: 12.5px;
  }
  .hero-tags li {
    padding: 7px 12px;
    font-size: 12px;
  }
  .filter {
    padding: 8px 12px;
    font-size: 10.5px;
  }
  .software-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .software-item {
    min-height: 108px;
  }
  .about-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------
   Project pages
------------------------------------------------------------------- */

.project {
  padding-bottom: 40px;
}

.project-crumb {
  padding-top: 34px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-crumb a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  transition: color 0.2s;
}

.project-crumb a:hover {
  color: var(--accent);
}

.project-crumb span {
  font-size: 15px;
  letter-spacing: 0;
}

.project-head {
  padding: 26px 0 38px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.project-head .eyebrow {
  justify-content: center;
}

.project-head h1 {
  max-width: 22ch;
  margin-inline: auto;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.project-intro {
  padding: 48px 0 58px;
  text-align: center;
}

.project-description {
  max-width: 68ch;
  margin-inline: auto;
  color: #c4c4cc;
  font-size: 16px;
  line-height: 1.8;
}

.project-description p {
  margin: 0;
}

.project-description p + p {
  margin-top: 1em;
}

.project-description a {
  color: var(--accent);
  border-bottom: 1px solid rgba(91, 200, 232, 0.35);
}

.project-description a:hover {
  color: var(--accent-bright);
}

.project-description ul,
.project-description ol {
  margin: 1em 0 0;
  padding-left: 1.25em;
  list-style: disc;
}

.project-description ol {
  list-style: decimal;
}

.project-description li {
  margin-top: 0.4em;
}

.project-details {
  display: grid;
  gap: 26px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.project-details .tag-list {
  justify-content: center;
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 32px;
  margin: 0;
}

.fact {
  display: grid;
  gap: 4px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.fact dt {
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.fact dd {
  margin: 0;
  color: #e4e4e8;
  font-size: 13.5px;
  line-height: 1.5;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #b9b9c1;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 54px);
  max-width: 1180px;
  margin-inline: auto;
  padding-bottom: 24px;
  text-align: center;
}

.asset {
  margin: 0;
}

.asset-media {
  --media-h: 86vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.asset-media img {
  width: auto;
  height: auto;
  max-width: min(100%, calc(var(--media-h) * var(--ar, 1)));
  max-height: var(--media-h);
  object-fit: contain;
  cursor: zoom-in;
  transition: opacity 0.3s;
}

.asset-media img:hover {
  opacity: 0.92;
}

.asset-caption {
  max-width: 74ch;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
  text-align: center;
}

.asset-caption p {
  margin: 0;
}

.asset-caption p + p {
  margin-top: 0.6em;
}

.asset-caption a {
  color: var(--accent);
}

.asset--video .asset-media {
  display: flex;
}

.asset--embed .asset-media,
.asset--pano .asset-media {
  display: block;
  overflow: hidden;
  background: #0b0b0d;
  border: 1px solid var(--line);
}

.asset-video {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, calc(var(--media-h, 86vh) * var(--ar, 1)));
  max-height: var(--media-h, 86vh);
  background: #000;
}

.embed-frame {
  position: relative;
  width: 100%;
  background: #000;
}

.embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pano {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #0b0b0d;
  cursor: grab;
  touch-action: none;
}

.pano canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.pano.is-grabbing {
  cursor: grabbing;
}

.pano::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.35));
}

.pano-hint {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.6);
  color: #dcdce2;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.pano--fallback {
  display: grid;
  place-items: center;
}

.pano--fallback canvas {
  display: none;
}

.project-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.pager-link {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.pager-link:hover {
  border-color: rgba(91, 200, 232, 0.4);
  background: #191a1c;
  transform: translateY(-2px);
}

.pager-next {
  grid-column: 2;
  justify-content: flex-end;
  text-align: right;
}

.pager-arrow {
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}

.pager-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pager-label {
  color: var(--muted-2);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pager-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}

/* Lightbox ------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 3vmin;
  background: rgba(6, 6, 8, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 100%;
  max-height: 94vh;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(8, 8, 10, 0.7);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.lightbox-close:hover {
  background: var(--accent);
  color: #081014;
  transform: rotate(90deg);
}

@media (max-width: 860px) {
  .project-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
  }
  .project-pager {
    grid-template-columns: 1fr;
  }
  .pager-next {
    grid-column: 1;
  }
}

@media (max-width: 700px) {
  .project-intro {
    padding: 32px 0 40px;
  }
  .project-head {
    padding: 20px 0 28px;
  }
  .project-head h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }
  .asset-media {
    --media-h: 70vh;
  }
  .pano {
    aspect-ratio: 4 / 3;
  }
  .project-crumb {
    padding-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
  }
  .pager-link:hover {
    transform: none;
  }
}
