:root {
  --bg: #0a0a0a;
  --bg-soft: #141414;
  --panel: rgba(20, 20, 20, 0.8);
  --panel-strong: rgba(30, 30, 30, 0.95);
  --text: #f0f0f0;
  --muted: #a0a0a0;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #ffffff;
  --accent-strong: #aaaaaa;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
  cursor: none;
}

a, button, .lightbox-image, .turnaround-card, input, textarea {
  cursor: none !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent);
  pointer-events: none;
}

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 56px;
}

.hero {
  padding: 24px 0 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 44px;
}

.brand {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.hero-fullscreen {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid var(--line);
  margin-top: -100px; /* pull up behind nav */
  padding-top: 100px;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('assets/model-01.png'); /* Placeholder */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: 0;
  filter: grayscale(30%);
}

.hero-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg) 5%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-shadow: 0 0 16px rgba(86, 240, 198, 0.4);
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy h1,
.section-heading h2,
.contact-panel h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  line-height: 1.06;
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 5vw, 5.1rem);
  max-width: 8.5ch;
  text-wrap: balance;
}

.hero-text,
.section-heading p,
.project-card p,
.pipeline-step p,
.note-card p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 50ch;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 32px;
}

.button {
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.button.primary:hover {
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px) scale(1.02);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 700px;
}

.hero-stats li,
.project-card,
.note-card,
.pipeline-step {
  border: 1px solid rgba(86, 240, 198, 0.15);
  background: linear-gradient(145deg, rgba(14, 28, 40, 0.85), rgba(11, 23, 33, 0.95));
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.hero-stats li:hover {
  border-color: rgba(86, 240, 198, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(86, 240, 198, 0.15);
  transform: translateY(-4px);
}

.hero-stats li {
  padding: 18px;
  will-change: transform;
}

.project-card {
  content-visibility: auto;
  contain-intrinsic-size: 300px;
  will-change: transform, opacity;
}

.hero-stats li strong,
.project-card h3,
.note-card h3,
.pipeline-step h3 {
  display: block;
  margin-bottom: 6px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at center, rgba(86, 240, 198, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 35%, transparent 65%, rgba(255, 255, 255, 0.04)),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 6px
    );
  opacity: 0.35;
  mix-blend-mode: screen;
  pointer-events: none;
}

.energy-grid,
.beam,
.shockwave,
.particle {
  position: absolute;
  pointer-events: none;
}

.energy-grid {
  inset: 8%;
  border-radius: 24px;
  border: 1px solid rgba(86, 240, 198, 0.1);
  background-image:
    linear-gradient(rgba(86, 240, 198, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 240, 198, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  transform: perspective(900px) rotateX(68deg) translateY(28%);
  transform-origin: center;
  opacity: 0.4;
}

.beam {
  width: 180px;
  height: 180%;
  top: -30%;
  background: linear-gradient(180deg, transparent, rgba(86, 240, 198, 0.22), transparent);
  filter: blur(16px);
  transform: rotate(24deg);
  animation: drift 8s linear infinite;
}

.beam-a {
  left: 18%;
}

.beam-b {
  right: 14%;
  animation-duration: 10s;
  animation-direction: reverse;
  background: linear-gradient(180deg, transparent, rgba(255, 133, 95, 0.2), transparent);
}

.shockwave {
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 24px rgba(86, 240, 198, 0.04),
    0 0 0 52px rgba(255, 133, 95, 0.03);
  animation: pulse-wave 4.8s ease-in-out infinite;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
}

.orb-large {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(86, 240, 198, 0.45), transparent 70%);
  top: 18%;
  left: 20%;
  animation: float 6s ease-in-out infinite;
}

.orb-small {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 133, 95, 0.35), transparent 68%);
  right: 12%;
  bottom: 14%;
  animation: float 7s ease-in-out infinite reverse;
}

.model-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  perspective: 1000px;
  animation: stage-float 7s ease-in-out infinite;
}

.hero-model-card {
  position: absolute;
  width: 250px;
  height: 360px;
  border-radius: 28px;
  border: 1px solid rgba(86, 240, 198, 0.35);
  background:
    radial-gradient(circle at top right, rgba(86, 240, 198, 0.15), transparent 60%),
    radial-gradient(circle at bottom left, rgba(255, 133, 95, 0.1), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35), 0 0 20px rgba(86, 240, 198, 0.1);
  overflow: hidden;
  backdrop-filter: blur(12px);
  background-color: rgba(12, 22, 32, 0.7);
  transition: box-shadow 0.4s ease, border-color 0.4s ease, filter 0.4s ease;
}

.hero-model-card:hover {
  border-color: var(--accent);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(86, 240, 198, 0.4);
  filter: brightness(1.15);
}

.hero-model-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  padding: 10px;
}

.project-image img,
.mini-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.gallery-card img {
  width: 100%;
  height: auto;
  display: block;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

.lightbox-image {
  cursor: zoom-in;
}

.image-top {
  object-position: center top !important;
}

.image-center {
  object-position: center center !important;
}

.image-bottom {
  object-position: center bottom !important;
}

.hero-model-card::after,
.project-image::after,
.gallery-card::after,
.portrait-card::after,
.spotlight-frame::after,
.turnaround-card::after,
.lineup-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 17, 26, 0) 65%, rgba(7, 17, 26, 0.4) 100%),
    linear-gradient(135deg, transparent 0 35%, rgba(255, 255, 255, 0.03) 50%, transparent 65%);
  pointer-events: none;
}

.hero-model-left {
  transform: rotateY(-20deg) rotateZ(-6deg);
  left: 3%;
  bottom: 3%;
  width: 210px;
  height: 300px;
  opacity: 0.92;
}

.hero-model-center {
  width: 340px;
  height: 470px;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(86, 240, 198, 0.25);
  border: 1px solid rgba(86, 240, 198, 0.5);
}

.hero-model-right {
  transform: rotateY(18deg) rotateZ(5deg);
  right: 2%;
  top: 8%;
  width: 220px;
  height: 320px;
  opacity: 0.9;
}

.particle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(86, 240, 198, 0.35));
  box-shadow: 0 0 18px rgba(86, 240, 198, 0.4);
}

.particle-a {
  top: 18%;
  left: 18%;
  animation: sparkle 4.2s ease-in-out infinite;
}

.particle-b {
  top: 72%;
  right: 18%;
  animation: sparkle 5.1s ease-in-out infinite 0.8s;
}

.particle-c {
  bottom: 14%;
  left: 56%;
  animation: sparkle 4.6s ease-in-out infinite 1.2s;
}

.section {
  padding: 54px 0 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 20px;
}

.section-heading h2,
.contact-panel h2 {
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  line-height: 1.05;
}

.project-grid,
.pipeline-grid {
  display: grid;
  gap: 22px;
}

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

.project-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  min-height: 280px;
}

.project-card.featured {
  grid-column: span 2;
  min-height: 420px;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer !important;
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.project-info {
  padding-top: 16px;
}

.project-stats {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
}

.project-stats .stat span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.card-glow {
  position: absolute;
  inset: auto -10% -18% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(86, 240, 198, 0.22), transparent 70%);
  pointer-events: none;
}

.project-image {
  position: relative;
  height: 220px;
  margin: -24px -24px 18px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at top, rgba(86, 240, 198, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(5, 16, 25, 0.84));
  padding: 14px;
}

.featured .project-image {
  height: 320px;
}

.wide-card {
  grid-column: span 2;
}

.project-type {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-row span {
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--muted);
}

.viewer-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  border-radius: 28px;
  padding: 24px;
}

.viewer-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
  padding: 18px;
}

.viewer-screen {
  position: relative;
  min-height: 380px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 45%, rgba(86, 240, 198, 0.12), transparent 30%),
    linear-gradient(180deg, #0b1823, #08111a);
  cursor: grab;
}

.viewer-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 26%, rgba(255, 255, 255, 0.05) 27%, transparent 28%),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 5px
    );
  opacity: 0.4;
  pointer-events: none;
}

.viewer-screen.is-dragging {
  cursor: grabbing;
}

.viewer-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.08) 48%, transparent 100%);
  transform: translateX(-100%);
  animation: sweep 5s linear infinite;
}

.viewer-object {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%);
}

.ring,
.core {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.ring {
  border: 1px solid rgba(86, 240, 198, 0.45);
}

.ring-1 {
  width: 180px;
  height: 180px;
}

.ring-2 {
  width: 120px;
  height: 120px;
  border-color: rgba(255, 133, 95, 0.55);
}

.core {
  width: 72px;
  height: 72px;
  background: radial-gradient(circle at 30% 30%, #95ffe0, #2ad4aa 58%, #0c6c5c 100%);
  box-shadow: 0 0 30px rgba(86, 240, 198, 0.35);
}

.project-card,
.note-card,
.pipeline-step,
.contact-panel,
.viewer-panel {
  position: relative;
}

.project-card::after,
.note-card::after,
.pipeline-step::after,
.contact-panel::after,
.viewer-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 35%, transparent 65%, rgba(86, 240, 198, 0.05));
  pointer-events: none;
}

.viewer-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  color: var(--muted);
}

.viewer-notes {
  display: grid;
  gap: 18px;
}

.note-card,
.pipeline-step {
  padding: 22px;
}

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

.gallery-strip .gallery-card:first-child {
  grid-column: span 2;
}

.portrait-grid,
.turnaround-grid,
.spotlight-layout,
.lineup-grid {
  display: grid;
  gap: 18px;
}

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

.lineup-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.portrait-card,
.spotlight-frame,
.turnaround-card,
.lineup-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(255, 133, 95, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(5, 16, 25, 0.9));
  box-shadow: var(--shadow);
}

.portrait-card {
  min-height: 420px;
  padding: 18px;
}

.portrait-feature {
  min-height: 560px;
  grid-column: span 7;
  grid-row: span 2;
}

.portrait-grid .portrait-card:not(.portrait-feature) {
  grid-column: span 5;
  min-height: 270px;
}

.portrait-card img,
.spotlight-frame img,
.turnaround-card img,
.lineup-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.lineup-card {
  min-height: 460px;
  padding: 18px;
}

.lineup-tall {
  min-height: 620px;
}

.spotlight-layout {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
}

.spotlight-frame {
  min-height: 640px;
  padding: 18px;
}

.spotlight-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 80%, rgba(255, 32, 92, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  pointer-events: none;
}

.spotlight-copy {
  display: grid;
  gap: 18px;
}

.turnaround-grid {
  display: flex;
  gap: 16px;
  height: 520px;
}

.turnaround-card {
  flex: 1;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  background: rgba(12, 22, 32, 0.8);
}

.turnaround-card:hover {
  flex: 3.5;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(86, 240, 198, 0.2);
  border-color: rgba(86, 240, 198, 0.5);
  z-index: 2;
}

.turnaround-card img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
  filter: brightness(0.5) grayscale(40%);
}

.turnaround-card:hover img {
  transform: scale(1.05);
  filter: brightness(1.1) grayscale(0%);
}

.turnaround-card figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 30px 20px 20px;
  background: linear-gradient(0deg, rgba(5, 16, 25, 0.95) 0%, rgba(5, 16, 25, 0.7) 50%, transparent 100%);
  color: #fff;
  text-align: center;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.95rem;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
  opacity: 0;
}

.turnaround-card:hover figcaption {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 860px) {
  .turnaround-grid {
    flex-direction: column;
    height: 700px;
  }
}

.gallery-card {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.mini-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-gallery img {
  height: 150px;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at top, rgba(255, 133, 95, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(5, 16, 25, 0.84));
  padding: 10px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(2, 8, 14, 0.92);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

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

.lightbox-stage {
  position: relative;
  width: min(100%, 1200px);
  max-height: calc(100vh - 80px);
  display: grid;
  gap: 14px;
  justify-items: center;
}

.lightbox-stage img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(5, 16, 25, 0.94));
}

.lightbox-caption {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}

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

.angles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.angle-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
  height: 300px;
}

.angle-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.angle-card:hover img {
  transform: scale(1.05);
}

.angle-card figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.7);
  padding: 12px;
  font-size: 0.85rem;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-shot {
  grid-column: span 2;
  grid-row: span 2;
  height: auto;
  min-height: 400px;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-soft);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--line);
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.about-lead {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.skill-group h3 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

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

.skill-group li {
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.pipeline-step span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  font-weight: 700;
}

.gallery-masonry {
  column-count: 3;
  column-gap: 16px;
  margin-top: 40px;
}

.gallery-masonry img {
  width: 100%;
  display: block;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  transition: transform 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.gallery-masonry img:hover {
  transform: translateY(-5px);
  border-color: var(--text);
}

@media (max-width: 1024px) {
  .gallery-masonry { column-count: 2; }
}

@media (max-width: 600px) {
  .gallery-masonry { column-count: 1; }
}

.contact-section {
  padding-bottom: 18px;
}

.contact-panel {
  border-radius: 28px;
  padding: 34px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.contact-links a {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 360px);
  font-weight: 700;
  background: linear-gradient(135deg, rgba(86, 240, 198, 0.18), rgba(255, 133, 95, 0.12));
}

.contact-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- CUSTOM CURSOR --- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  transition: transform 0.1s ease;
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(86, 240, 198, 0.5);
  border-radius: 50%;
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.cursor-ring.hover {
  width: 56px;
  height: 56px;
  border-color: var(--accent-strong);
  background: rgba(255, 133, 95, 0.1);
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Override transform for VanillaTilt elements so they don't break */
.js-tilt-glare {
  border-radius: inherit;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

@keyframes drift {
  0% {
    transform: rotate(24deg) translateX(-40px);
  }
  50% {
    transform: rotate(24deg) translateX(30px);
  }
  100% {
    transform: rotate(24deg) translateX(-40px);
  }
}

@keyframes pulse-wave {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
    opacity: 1;
  }
}

@keyframes stage-float {
  0%, 100% {
    transform: translateY(0) rotateX(var(--rotX, 0deg)) rotateY(var(--rotY, 0deg));
  }
  50% {
    transform: translateY(-10px) rotateX(var(--rotX, 0deg)) rotateY(var(--rotY, 0deg));
  }
}

@keyframes sparkle {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(0.8);
    opacity: 0.35;
  }
  50% {
    transform: translate3d(0, -18px, 0) scale(1.2);
    opacity: 1;
  }
}

@keyframes sweep {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .viewer-layout,
  .project-grid,
  .pipeline-grid,
  .gallery-strip,
  .portrait-grid,
  .turnaround-grid,
  .spotlight-layout,
  .lineup-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .project-card.featured {
    grid-column: span 2;
  }

  .wide-card {
    grid-column: span 2;
  }

  .gallery-card.wide {
    grid-column: span 2;
  }

  .portrait-feature,
  .spotlight-frame {
    grid-column: span 2;
  }

  .portrait-grid .portrait-card:not(.portrait-feature) {
    grid-column: span 1;
    min-height: 320px;
  }

  .hero-fullscreen {
    min-height: 500px;
  }
  .about-container {
    grid-template-columns: 1fr;
  }
  .angles-grid {
    grid-template-columns: 1fr 1fr;
  }
  .detail-shot {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .topbar,
  .nav-links,
  .hero-actions,
  .hero-stats,
  .project-grid,
  .viewer-layout,
  .pipeline-grid,
  .contact-links,
  .gallery-strip,
  .mini-gallery,
  .portrait-grid,
  .turnaround-grid,
  .spotlight-layout,
  .lineup-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .topbar {
    align-items: flex-start;
  }

  .hero-fullscreen {
    padding: 24px;
    height: auto;
    padding-top: 120px;
  }

  .project-card.featured {
    grid-column: auto;
  }

  .wide-card {
    grid-column: auto;
  }

  .project-image,
  .featured .project-image,
  .gallery-card,
  .gallery-card.tall,
  .gallery-card.wide,
  .portrait-card,
  .portrait-feature,
  .turnaround-card,
  .spotlight-frame,
  .lineup-card,
  .lineup-tall {
    height: auto;
    min-height: 260px;
  }

  .portrait-grid .portrait-card:not(.portrait-feature) {
    grid-column: auto;
    min-height: 260px;
  }

  .viewer-layout,
  .contact-panel {
    padding: 18px;
  }

  .contact-mail {
    min-width: 100%;
    text-align: center;
  }

  .viewer-screen {
    min-height: 300px;
  }

  .lightbox {
    padding: 18px;
  }

  .lightbox-stage img {
    max-height: calc(100vh - 120px);
  }
}
