:root {
  --bg: #102016;
  --bg-soft: #1b3321;
  --panel: #e8f5ce;
  --panel-2: #c3df8b;
  --ink: #14200f;
  --ink-soft: rgba(20, 32, 15, 0.75);
  --accent: #b7f000;
  --accent-2: #8edb35;
  --accent-3: #d7f45b;
  --gold: #e1ff6b;
  --line: #1b2a16;
  --shadow: #09120b;
  --card-shadow: 0 12px 0 var(--shadow);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(183, 240, 0, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(63, 155, 91, 0.2), transparent 25%),
    var(--bg);
  color: var(--panel);
  font-family: "Space Grotesk", sans-serif;
  transition: filter 200ms ease;
  overflow-x: hidden;
}

#smokeCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
  mix-blend-mode: screen;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 32px;
  transition: filter 220ms ease, transform 220ms ease;
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 8px;
}

.brand-block {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  gap: 10px;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--gold);
  color: var(--ink);
  border: 3px solid var(--line);
  box-shadow: 0 4px 0 var(--shadow);
}

.brand-name {
  font-size: 1.05rem;
}

.visibility-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.visibility-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.eye-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.eye-icon--closed {
  display: none;
}

body.content-hidden .topbar {
  justify-content: flex-end;
}

body.content-hidden .topbar .nav,
body.content-hidden main,
body.content-hidden .site-footer {
  display: none;
}

body.content-hidden .eye-icon--open {
  display: none;
}

body.content-hidden .eye-icon--closed {
  display: block;
}

.nav {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: rgba(232, 245, 206, 0.8);
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.section {
  margin-top: 12px;
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  align-items: center;
  gap: 20px;
  padding: 6px 0 6px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(2.9rem, 5vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-transform: lowercase;
}

.hero-copy h1 span {
  display: block;
  color: var(--accent-2);
}

.intro {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(232, 245, 206, 0.82);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  border: 3px solid var(--line);
  box-shadow: 0 6px 0 var(--shadow);
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--shadow);
}

.button.primary {
  background: var(--accent);
  color: var(--ink);
}

.button.secondary {
  background: transparent;
  color: var(--panel);
}

.stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
  margin: 32px 0 0;
}

.stats li {
  min-width: 110px;
  padding: 14px 16px;
  border: 3px solid rgba(232, 245, 206, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.stats strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 1.7rem;
  color: var(--gold);
}

.stats span {
  color: rgba(232, 245, 206, 0.72);
  font-size: 0.8rem;
  text-transform: lowercase;
  letter-spacing: 0.08em;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 500px;
}

.portrait-frame {
  position: relative;
  width: min(410px, 84%);
  aspect-ratio: 0.9;
  border: 4px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, #e1ff6b, #73b52c);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transform: rotate(2deg);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 3px dashed rgba(20, 32, 15, 0.5);
  border-radius: 24px;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 2.5vw, 3rem);
  letter-spacing: -0.05em;
  text-transform: lowercase;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.filter-button {
  border: 3px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--panel);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.filter-button.active {
  background: var(--gold);
  color: var(--ink);
}

.filter-button:hover,
.filter-button:focus-visible {
  transform: translateY(-2px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
  gap: 24px;
  perspective: 1500px;
}

.project-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(10px, 1.4vw, 16px);
  border-radius: 22px;
  border: 3px solid var(--line);
  background: var(--panel);
  box-shadow: var(--card-shadow);
  color: var(--ink);
  overflow: hidden;
  transform-style: preserve-3d;
  transform-origin: center center;
  transition:
    transform 380ms cubic-bezier(0, 0, 0.58, 1),
    box-shadow 380ms cubic-bezier(0, 0, 0.58, 1),
    filter 380ms cubic-bezier(0, 0, 0.58, 1);
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0) 28%
  );
  pointer-events: none;
  opacity: 0.6;
}

.card-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  transform: translateZ(40px);
  border-radius: inherit;
}

.card-overlay-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -6px;
}

.model-card .card-overlay-link {
  clip-path: polygon(
    0 0,
    calc(50% - 76px) 0,
    calc(50% - 76px) calc(130px + clamp(10px, 1.4vw, 16px)),
    calc(50% + 76px) calc(130px + clamp(10px, 1.4vw, 16px)),
    calc(50% + 76px) 0,
    100% 0,
    100% 100%,
    0 100%
  );
}

.project-card > .card-image,
.project-card > .card-meta,
.project-card > .card-copy {
  pointer-events: none;
}

.project-card:hover,
.project-card:focus-within {
  transition-duration: 190ms;
  transition-timing-function: cubic-bezier(0.42, 0, 1, 1);
  transform: perspective(1400px) translateY(-12px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(10px) scale(1.03);
  box-shadow: 0 20px 0 var(--shadow);
  filter: saturate(1.05);
}

.project-card.card-opened:hover,
.project-card.card-opened:focus-within {
  transform: none;
  box-shadow: var(--card-shadow);
  filter: none;
}


.card-image {
  position: relative;
  height: auto;
  border: 3px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #dff1b6, #c3df8b);
  transform: translateZ(24px);
}

.card-image--wide {
  aspect-ratio: 16 / 9;
}

.card-image img {
  display: block;
  width: 100%;
  height: auto;
}

.card-image iframe.card-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #c3df8b;
  pointer-events: auto;
  display: block;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}

.card-image .placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #c6f27a, #e5f3c8 55%, #8edb35);
  font-family: "Syne", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.card-meta .platform-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: rgba(20, 32, 15, 0.06);
}

.card-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateZ(18px);
}

.card-copy h3 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: lowercase;
}

.model-card {
  background: #e8f5ce;
}

.model-card .card-image {
  background: linear-gradient(135deg, #b9ee86, #eff8d9);
}

.about-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  margin-top: 16px;
  padding: 24px;
  border-radius: 24px;
  border: 3px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: rgba(232, 245, 206, 0.82);
  line-height: 1.8;
}

.about-copy p {
  margin: 0;
}

.about-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.note-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 14px;
  min-height: 120px;
  border: 3px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--ink);
}

.note-box span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.note-box strong {
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}

.site-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 3px solid rgba(232, 245, 206, 0.18);
}

.site-footer h3 {
  margin: 0;
  max-width: 540px;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
  text-transform: lowercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 3px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.hidden {
  display: none !important;
}

@media (max-width: 820px) {
  .hero,
  .about-panel,
  .site-footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .nav {
    display: none;
  }

  .section-heading,
  .site-footer {
    display: block;
  }

  .about-notes {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
    min-height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
