:root {
  --bg: #07090d;
  --bg-2: #0d121a;
  --ink: #f4f6f8;
  --muted: #8d97a8;
  --line: rgba(244, 246, 248, 0.1);
  --accent: #5ef2c3;
  --accent-2: #8aff6b;
  --warm: #ffb86b;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Bricolage Grotesque", sans-serif;
  --body: "Onest", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(94, 242, 195, 0.12), transparent 55%),
    radial-gradient(700px 420px at 0% 30%, rgba(138, 255, 107, 0.06), transparent 50%),
    radial-gradient(800px 500px at 70% 100%, rgba(255, 184, 107, 0.05), transparent 50%),
    linear-gradient(180deg, #07090d 0%, #0a0f16 50%, #07090d 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 2;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.stage-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

.scroll-line {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 70;
}

.scroll-line span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--warm));
  box-shadow: 0 0 12px rgba(94, 242, 195, 0.45);
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(7, 9, 13, 0.55);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.header.is-on {
  border-bottom-color: var(--line);
  background: rgba(7, 9, 13, 0.82);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-wordmark {
  display: block;
  height: 1.85rem;
  width: auto;
  max-width: min(42vw, 8.5rem);
  object-fit: contain;
}

.nav {
  display: none;
  gap: 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a {
  position: relative;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}

@media (min-width: 860px) {
  .nav {
    display: flex;
  }
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vh, 5rem);
}

.hero-meta {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.2rem, 11vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.hero-name span {
  display: block;
}

.hero-name span:last-child {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244, 246, 248, 0.75);
  text-shadow: 0 0 40px rgba(94, 242, 195, 0.12);
}

.hero-role {
  margin: 1.5rem 0 0;
  max-width: 32rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
}

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

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.4rem;
  margin-top: 2.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.hero-links a {
  border-bottom: 1px solid rgba(94, 242, 195, 0.35);
  color: var(--ink);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease, color 0.25s ease;
  will-change: transform;
}

.btn-solid {
  background: linear-gradient(120deg, var(--accent), #7dffb0 55%, var(--accent-2));
  color: #06110c;
  box-shadow: 0 0 28px rgba(94, 242, 195, 0.22);
}

.btn-solid:hover {
  box-shadow: 0 0 40px rgba(138, 255, 107, 0.35);
}

.btn-line {
  border: 1px solid rgba(244, 246, 248, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
}

.btn-line:hover {
  border-color: rgba(94, 242, 195, 0.5);
  color: var(--accent);
}

.section {
  padding: clamp(4.5rem, 12vh, 7.5rem) clamp(1.25rem, 4vw, 3rem);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.section-lead {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 34rem;
}

.school {
  padding-top: 0;
}

.school-panel {
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid rgba(94, 242, 195, 0.28);
  border-radius: 1.6rem;
  background:
    radial-gradient(700px 280px at 10% 0%, rgba(94, 242, 195, 0.14), transparent 55%),
    rgba(13, 18, 26, 0.88);
}

.school-title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.school-text {
  margin: 1.1rem 0 0;
  max-width: 40rem;
  color: var(--muted);
}

.school-points {
  display: grid;
  gap: 0.55rem;
  margin: 1.4rem 0 1.8rem;
  padding: 0;
  color: var(--ink);
}

.school-points li {
  position: relative;
  padding-left: 1.1rem;
}

.school-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.pillars {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.pillar {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.5rem 1.4rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 55%),
    rgba(13, 18, 26, 0.65);
  transition: transform 0.4s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}

.pillar:hover {
  transform: translateY(-6px);
  border-color: rgba(94, 242, 195, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 30px rgba(94, 242, 195, 0.08);
}

.pillar-index {
  font-family: var(--display);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.pillar h3 {
  margin: 1.1rem 0 0;
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.pillar p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  flex: 1;
}

.pillar-url {
  margin-top: 1.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

.games {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 18, 26, 0.55), transparent);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.folio {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  background: #0d121a;
  color: inherit;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.35s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}

.folio img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
  image-rendering: auto;
}

.folio-meta {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 0.35rem;
  padding: 2.4rem 1rem 0.95rem;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 9, 13, 0.88) 42%, rgba(7, 9, 13, 0.96) 100%);
}

.folio-tag {
  width: fit-content;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #07110c;
  background: var(--accent);
}

.folio-title {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.folio-count {
  font-size: 0.74rem;
  color: rgba(244, 246, 248, 0.55);
}

.folio:hover,
.folio:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(94, 242, 195, 0.38);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
  outline: none;
}

.folio:hover img,
.folio:focus-visible img {
  transform: scale(1.035);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  padding:
    max(0.75rem, env(safe-area-inset-top, 0px))
    max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px))
    max(0.75rem, env(safe-area-inset-left, 0px));
  overflow: hidden;
  overscroll-behavior: contain;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(3, 5, 8, 0.82);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  width: min(860px, 100%);
  max-height: min(90dvh, 920px);
  margin: 0;
  border: 1px solid rgba(94, 242, 195, 0.22);
  border-radius: 1.15rem;
  background: #0d121a;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.lightbox-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.lightbox-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(244, 246, 248, 0.22);
  border-radius: 999px;
  background: rgba(7, 9, 13, 0.92);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.lightbox-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lightbox-close span,
.lightbox-close span::before,
.lightbox-close span::after {
  display: block;
}

.lightbox-close span {
  position: relative;
  width: 12px;
  height: 12px;
  margin: 0 auto;
}

.lightbox-close span::before,
.lightbox-close span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
}

.lightbox-close span::before {
  transform: translateY(-50%) rotate(45deg);
}

.lightbox-close span::after {
  transform: translateY(-50%) rotate(-45deg);
}

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  background: #07090d;
}

.lightbox-image {
  display: block;
  width: 100%;
  max-height: min(52svh, 480px);
  height: min(52svh, 480px);
  object-fit: contain;
  background: #07090d;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(244, 246, 248, 0.18);
  border-radius: 999px;
  background: rgba(7, 9, 13, 0.78);
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.lightbox-nav.is-hidden {
  display: none;
}

.lightbox-prev {
  left: 0.65rem;
}

.lightbox-next {
  right: 0.65rem;
}

.lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 0.65rem;
  z-index: 3;
  transform: translateX(-50%);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(244, 246, 248, 0.9);
  background: rgba(7, 9, 13, 0.78);
  border: 1px solid rgba(244, 246, 248, 0.12);
}

.lightbox-counter[hidden] {
  display: none !important;
}

.lightbox-thumbs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.7rem 0.9rem 0;
  scrollbar-width: thin;
}

.lightbox-thumbs:empty {
  display: none;
}

.lightbox-thumb {
  flex: 0 0 auto;
  width: 4.1rem;
  height: 2.55rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(244, 246, 248, 0.12);
  border-radius: 0.4rem;
  overflow: hidden;
  background: #07090d;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-thumb.is-active,
.lightbox-thumb:hover {
  opacity: 1;
  border-color: rgba(94, 242, 195, 0.55);
}

.lightbox-body {
  padding: 1.1rem 1.15rem 1.35rem;
}

.lightbox-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.lightbox-tag {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #07110c;
  background: var(--accent);
}

.lightbox-role {
  font-size: 0.82rem;
  color: var(--muted);
}

.lightbox-body h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.lightbox-body p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 62ch;
}

.lightbox-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.lightbox-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid rgba(94, 242, 195, 0.3);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(94, 242, 195, 0.06);
}

.lightbox-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

html.lightbox-open,
body.lightbox-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.stack {
  border-top: 1px solid var(--line);
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.stack-list li {
  padding: 0.75rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(13, 18, 26, 0.7);
  font-weight: 500;
  transition: transform 0.3s var(--ease), border-color 0.25s ease, color 0.25s ease,
    box-shadow 0.25s ease;
}

.stack-list li:hover,
.stack-list li:focus-visible {
  transform: translateY(-4px);
  color: var(--accent);
  border-color: rgba(94, 242, 195, 0.4);
  box-shadow: 0 0 24px rgba(94, 242, 195, 0.12);
  outline: none;
}

.contact {
  padding-bottom: clamp(5rem, 12vh, 8rem);
}

.contact-panel {
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid rgba(94, 242, 195, 0.22);
  border-radius: 1.6rem;
  background:
    radial-gradient(600px 280px at 80% 0%, rgba(138, 255, 107, 0.12), transparent 55%),
    radial-gradient(500px 260px at 0% 100%, rgba(94, 242, 195, 0.1), transparent 55%),
    rgba(13, 18, 26, 0.85);
}

.contact-title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.contact-text {
  margin: 1rem 0 0;
  max-width: 34rem;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-brand img {
  height: 1.45rem;
  width: auto;
  object-fit: contain;
}

@media (min-width: 700px) {
  .footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer p {
  margin: 0;
}

.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(1.4rem);
}

html.js .reveal {
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.hero .reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.hero .reveal:nth-child(2) {
  transition-delay: 0.14s;
}
.hero .reveal:nth-child(3) {
  transition-delay: 0.26s;
}
.hero .reveal:nth-child(4) {
  transition-delay: 0.38s;
}
.hero .reveal:nth-child(5) {
  transition-delay: 0.5s;
}

/* Mobile layout — even buttons and clean blocks */
@media (max-width: 720px) {
  :root {
    --header-h: 4rem;
  }

  body {
    font-size: 1rem;
  }

  .header {
    gap: 0.75rem;
    padding: 0 1rem;
  }

  .brand-wordmark {
    height: 1.65rem;
    max-width: 7.5rem;
  }

  .header-link {
    flex-shrink: 0;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 100svh;
    padding: calc(var(--header-h) + 1.25rem) 1rem 2.25rem;
  }

  .hero-meta {
    letter-spacing: 0.08em;
    font-size: 0.72rem;
  }

  .hero-name {
    font-size: clamp(2.6rem, 14vw, 3.6rem);
  }

  .hero-name span:last-child {
    -webkit-text-stroke-width: 1px;
  }

  .hero-role {
    margin-top: 1.1rem;
    font-size: 1.02rem;
  }

  .hero-actions,
  .contact-actions,
  .school-panel .btn {
    width: 100%;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .hero-actions .btn,
  .contact-actions .btn,
  .school-panel > .btn {
    width: 100%;
    min-height: 3.15rem;
    padding: 0.85rem 1rem;
    white-space: normal;
    line-height: 1.25;
  }

  .hero-links {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.75rem;
  }

  .hero-links li {
    width: 100%;
  }

  .hero-links a {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .section {
    padding: 3.5rem 1rem;
  }

  .section-head {
    margin-bottom: 1.75rem;
  }

  .school-panel,
  .contact-panel,
  .pillar {
    padding: 1.25rem;
    border-radius: 1.1rem;
  }

  .school-panel > .btn {
    margin-top: 0.25rem;
  }

  .school-title,
  .contact-title {
    max-width: none;
  }

  .pillars,
  .portfolio-grid {
    gap: 0.85rem;
  }

  .pillar h3 {
    font-size: 1.35rem;
  }

  .folio {
    border-radius: 1rem;
  }

  .folio-title {
    font-size: 1.05rem;
  }

  .lightbox {
    padding:
      max(0.35rem, env(safe-area-inset-top, 0px))
      0.4rem
      max(0.35rem, env(safe-area-inset-bottom, 0px));
    justify-content: flex-end;
    align-items: stretch;
  }

  .lightbox-panel {
    width: 100%;
    max-height: calc(
      100dvh - 0.7rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
    );
    border-radius: 1.05rem 1.05rem 0.75rem 0.75rem;
  }

  .lightbox-close {
    top: 0.45rem;
    right: 0.45rem;
    width: 2.9rem;
    height: 2.9rem;
  }

  .lightbox-stage {
    min-height: 160px;
  }

  .lightbox-image {
    height: min(34dvh, 280px);
    max-height: min(34dvh, 280px);
  }

  .lightbox-body {
    padding: 0.9rem 1rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
  }

  .lightbox-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .lightbox-links a {
    width: 100%;
  }

  .lightbox-nav {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.3rem;
  }

  .lightbox-thumbs {
    padding-right: 3.4rem;
  }

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

  .stack-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.7rem 0.55rem;
    text-align: center;
    font-size: 0.9rem;
    border-radius: 0.85rem;
  }

  .footer {
    padding: 1.35rem 1rem 1.75rem;
    gap: 0.5rem;
  }
}

@media (max-width: 380px) {
  .stack-list {
    grid-template-columns: 1fr;
  }

  .hero-name {
    font-size: 2.35rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .magnetic {
    transform: none !important;
  }

  .pillar:hover,
  .folio:hover,
  .stack-list li:hover {
    transform: none;
  }
}

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

  html.js .reveal,
  html.js .reveal:not(.is-in) {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .pillar:hover,
  .folio:hover,
  .stack-list li:hover {
    transform: none;
  }
}
