:root {
  --bg: #16040d;
  --bg-soft: #2a0a1a;
  --panel: rgba(42, 11, 30, 0.82);
  --panel-strong: rgba(62, 13, 36, 0.92);
  --text: #fff2f7;
  --muted: #e5b8c9;
  --hot: #ff5ca8;
  --hot-deep: #ff2c83;
  --glow: #ffb3d4;
  --glow-strong: #ffd6e8;
  --line: rgba(255, 182, 215, 0.18);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  --depth-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --chrome-line: rgba(255, 233, 243, 0.2);
  --panel-edge: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  perspective: 1400px;
  transform-style: preserve-3d;
  background:
    radial-gradient(circle at top, rgba(255, 76, 154, 0.32), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(255, 182, 213, 0.25), transparent 20%),
    radial-gradient(circle at 50% 120%, rgba(255, 36, 114, 0.25), transparent 35%),
    linear-gradient(180deg, #270615 0%, #12020a 55%, #090106 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  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: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 117, 183, 0.16), transparent 18%),
    radial-gradient(circle at 86% 78%, rgba(255, 117, 183, 0.18), transparent 16%),
    radial-gradient(circle at 65% 30%, rgba(255, 210, 231, 0.08), transparent 14%);
  filter: blur(12px);
  animation: ambientShift 16s ease-in-out infinite alternate;
}

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

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

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

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 28px;
  padding: 16px 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 35%),
    linear-gradient(180deg, rgba(34, 7, 19, 0.84), rgba(15, 2, 9, 0.76));
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0.55;
  mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.8), transparent);
}

.topbar::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.topbar:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 182, 215, 0.28);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 192, 220, 0.25);
  background: linear-gradient(135deg, rgba(255, 137, 192, 0.18), rgba(255, 213, 230, 0.08));
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.04),
    0 0 0 8px rgba(255, 92, 168, 0.05);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.nav a {
  position: relative;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--hot), transparent);
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  text-shadow: 0 0 18px rgba(255, 179, 212, 0.35);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

main {
  display: grid;
  gap: 28px;
}

section {
  --mx: 50%;
  --my: 50%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 164, 210, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(42, 11, 30, 0.78), rgba(18, 4, 12, 0.92));
  box-shadow: var(--shadow);
  scroll-margin-top: 152px;
  transform-style: preserve-3d;
}

section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 30%, transparent 70%, rgba(255, 255, 255, 0.03));
}

section::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 28px;
  padding: 42px;
  min-height: 78vh;
  transform-style: preserve-3d;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 18% auto auto -5%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 150, 204, 0.14), transparent 70%);
  filter: blur(10px);
  animation: pulseGlow 8s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -22% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 92, 168, 0.32), transparent 65%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--glow);
  font-size: 0.86rem;
  line-height: 1.25;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Averia Serif Libre", serif;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
  text-wrap: balance;
  text-shadow: 0 4px 24px rgba(255, 145, 200, 0.08);
}

.hero-copy h1,
.detail-copy h1 {
  background: linear-gradient(180deg, #fff7fb 0%, #ffd9ea 48%, #ffeef6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  max-width: 15ch;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

h3 {
  font-size: 1.4rem;
}

.hero-text,
.about p,
.service-card p,
.gallery-card p,
.contact p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 58ch;
  margin: 18px 0 0;
  font-size: 1.05rem;
}

.hero-copy .eyebrow,
.detail-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 196, 224, 0.14);
}

.hero-copy .eyebrow::before,
.detail-copy .eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 16px rgba(255, 92, 168, 0.65);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 38%);
  opacity: 0.72;
  pointer-events: none;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--hot), #ffcadf);
  color: #340410;
  box-shadow: 0 12px 30px rgba(255, 92, 168, 0.22);
}

.button.primary:hover,
.button.primary:focus-visible {
  box-shadow: 0 18px 38px rgba(255, 92, 168, 0.34);
}

.button.secondary {
  border: 1px solid rgba(255, 196, 224, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.button.full {
  width: 100%;
  margin-top: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.stats li,
.panel,
.service-card,
.gallery-card,
.contact-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 202, 224, 0.14);
  border-radius: 24px;
}

.service-card {
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 194, 221, 0.24);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.26);
}

.stats li {
  padding: 18px;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.stats li::after {
  content: "";
  position: absolute;
  inset: auto -25% -40% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 133, 192, 0.12), transparent 68%);
}

.stats strong {
  display: block;
  margin-bottom: 6px;
  color: var(--glow);
  font-size: 1.3rem;
}

.hero-art {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
  z-index: 1;
}

.hero-card {
  position: relative;
  width: min(100%, 430px);
  padding: 24px;
  border-radius: 36px;
  background:
    radial-gradient(circle at top, rgba(255, 204, 228, 0.28), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 95, 171, 0.22), rgba(33, 4, 18, 0.88));
  border: 1px solid rgba(255, 201, 224, 0.22);
  box-shadow: var(--depth-shadow);
  transform-style: preserve-3d;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -12% auto auto -10%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 198, 224, 0.18), transparent 68%);
  filter: blur(10px);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 28px;
  border: 1px solid var(--panel-edge);
  pointer-events: none;
}

.hero-card:hover {
  transform: translateY(-8px) rotateX(6deg) rotateY(-6deg) rotate(-1deg);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 213, 232, 0.34);
}

.profile-ring {
  padding: 12px;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 104, 174, 0.12));
  position: relative;
  transform: translateZ(30px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 34px rgba(0, 0, 0, 0.28);
}

.profile-ring::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 24px;
  border: 1px solid rgba(255, 215, 231, 0.16);
  pointer-events: none;
}

.profile-ring img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  border-radius: 22px;
}

.hero-badge,
.floating-note {
  position: absolute;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 202, 224, 0.18);
  background: rgba(33, 5, 18, 0.78);
  color: var(--text);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  transform: translateZ(48px);
}

.hero-badge {
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
}

.floating-note {
  font-size: 0.92rem;
  color: var(--glow);
  animation: floaty 4.5s ease-in-out infinite;
}

.note-one {
  top: 10%;
  right: 0;
}

.note-two {
  left: 0;
  bottom: 18%;
  animation-delay: 1.2s;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
  position: relative;
  z-index: 1;
}

.portfolio .section-heading h2 {
  max-width: 22ch;
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.portfolio .section-heading {
  padding-top: 10px;
}

.portfolio {
  padding: 34px;
}

.portfolio-intro {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.about,
.home-teaser,
.refsheet-gallery,
.services,
.gallery,
.contact {
  padding: 34px;
}

.about-grid,
.card-grid,
.portfolio-grid {
  display: grid;
  gap: 18px;
}

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

.panel,
.service-card,
.portfolio-card,
.contact-panel {
  padding: 22px;
  backdrop-filter: blur(10px);
}

.panel,
.service-card,
.contact-panel,
.teaser-card,
.refsheet-item,
.detail-spotlight {
  position: relative;
}

.panel::after,
.service-card::after,
.contact-panel::after,
.teaser-card::after,
.detail-spotlight::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 32%, transparent 70%, rgba(255, 255, 255, 0.04));
  opacity: 0.75;
}

.panel.accent,
.portfolio-card.large {
  background:
    radial-gradient(circle at top right, rgba(255, 148, 198, 0.2), transparent 45%),
    rgba(255, 255, 255, 0.05);
}

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

.card-number {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 92, 168, 0.16);
  color: var(--glow);
}

.portfolio-grid {
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  grid-auto-rows: minmax(280px, auto);
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  overflow: hidden;
  position: relative;
  border-radius: 28px;
  border: 1px solid rgba(255, 202, 224, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.07)),
    radial-gradient(circle at top, rgba(255, 92, 168, 0.18), transparent 40%);
  transform-style: preserve-3d;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.portfolio-link {
  isolation: isolate;
}

.has-card-image {
  min-height: 360px;
}

.portfolio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 1, 6, 0.08), rgba(10, 1, 6, 0.78));
}

.portfolio-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -25% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 182, 218, 0.16), transparent 68%);
  z-index: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.portfolio-card .card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 20%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 40%);
  z-index: 1;
  pointer-events: none;
}

.portfolio-card > * {
  position: relative;
  z-index: 1;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  margin-top: auto;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(25, 3, 13, 0.18), rgba(25, 3, 13, 0.74));
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  transform: translate3d(0, 0, 24px);
  transition: transform 220ms ease, background 220ms ease;
}

.card-content::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
}

.has-card-image::before {
  background:
    linear-gradient(180deg, rgba(11, 1, 6, 0.02) 0%, rgba(11, 1, 6, 0.35) 45%, rgba(11, 1, 6, 0.9) 100%);
}

.portfolio-card:hover {
  transform: translateY(-8px) rotateX(5deg) rotateY(-5deg);
  border-color: rgba(255, 194, 221, 0.26);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.36);
}

.portfolio-card:hover .card-content {
  transform: translate3d(0, -3px, 28px);
  background: linear-gradient(180deg, rgba(25, 3, 13, 0.26), rgba(25, 3, 13, 0.8));
}

.portfolio-card:hover::after {
  transform: scale(1.18);
}

.portfolio-link:hover h3 {
  color: var(--glow-strong);
}

.card-link {
  margin-top: 8px;
  color: var(--text);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.card-link:hover,
.card-link:focus-visible {
  color: var(--glow);
}

.card-link::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.portfolio-card.large {
  grid-row: span 2;
}

.card-tag {
  color: var(--glow);
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.partial-card {
  background:
    linear-gradient(180deg, rgba(10, 1, 6, 0.08), rgba(10, 1, 6, 0.78)),
    radial-gradient(circle at top left, rgba(255, 134, 194, 0.45), transparent 35%),
    linear-gradient(145deg, #6a163e, #1e0611);
}

.head-card {
  background:
    linear-gradient(180deg, rgba(10, 1, 6, 0.08), rgba(10, 1, 6, 0.78)),
    radial-gradient(circle at top, rgba(255, 188, 220, 0.4), transparent 40%),
    linear-gradient(145deg, #4a0e30, #17030d);
}

.full-card {
  background:
    linear-gradient(180deg, rgba(10, 1, 6, 0.08), rgba(10, 1, 6, 0.78)),
    radial-gradient(circle at top right, rgba(255, 88, 160, 0.4), transparent 35%),
    linear-gradient(145deg, #7f1443, #220611);
}

.ref-card {
  background:
    linear-gradient(180deg, rgba(10, 1, 6, 0.08), rgba(10, 1, 6, 0.78)),
    radial-gradient(circle at center, rgba(255, 213, 231, 0.32), transparent 40%),
    linear-gradient(145deg, #5b1735, #1c0610);
}

.char-card {
  background:
    linear-gradient(180deg, rgba(10, 1, 6, 0.08), rgba(10, 1, 6, 0.78)),
    radial-gradient(circle at bottom right, rgba(255, 135, 190, 0.36), transparent 35%),
    linear-gradient(145deg, #6d123d, #1a040d);
}

.refsheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  position: relative;
  z-index: 1;
}

.refsheet-item {
  aspect-ratio: 1 / 1;
}

.detail-hero,
.detail-gallery {
  padding: 34px;
}

.teaser-heading h2 {
  max-width: 18ch;
}

.teaser-showcase {
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 0.9fr;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.preview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.portfolio-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.wall-item {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 22px;
  border: 1px solid rgba(255, 202, 224, 0.14);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  transform-style: preserve-3d;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.wall-item::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1;
  pointer-events: none;
}

.wall-item.wide {
  grid-column: span 2;
}

.wall-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.wall-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 1, 6, 0.05), rgba(10, 1, 6, 0.82));
  z-index: 1;
}

.wall-item span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(20, 3, 11, 0.72);
  border: 1px solid rgba(255, 202, 224, 0.16);
  color: var(--text);
  font-weight: 600;
  transform: translateZ(24px);
}

.wall-item:hover {
  transform: translateY(-8px) rotateX(4deg) rotateY(-4deg);
  border-color: rgba(255, 194, 221, 0.28);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.3);
}

.wall-item:hover img {
  transform: scale(1.06);
}

.gallery-more {
  margin-top: 18px;
}

.gallery-toggle {
  margin-top: 18px;
}

.portfolio::after {
  content: "";
  position: absolute;
  inset: 12% auto auto -4%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 194, 0.12), transparent 70%);
  filter: blur(10px);
  animation: pulseGlow 9s ease-in-out infinite;
  pointer-events: none;
}

.portfolio-strip {
  margin-top: 22px;
}

.preview-thumb {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  border-radius: 20px;
  border: 1px solid rgba(255, 202, 224, 0.14);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
  transition: transform 220ms ease, border-color 220ms ease;
}

.preview-thumb {
  aspect-ratio: 1 / 1;
}

.preview-thumb:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 194, 221, 0.24);
}

.preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%);
  pointer-events: none;
}

.teaser-preview {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: 28px;
  border: 1px solid rgba(255, 202, 224, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.24);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.teaser-preview:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 194, 221, 0.28);
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.3);
}

.teaser-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 2, 8, 0.05), rgba(15, 2, 8, 0.86));
  z-index: 1;
}

.teaser-preview-image,
.teaser-preview-copy {
  position: relative;
  z-index: 2;
}

.teaser-preview-image {
  position: absolute;
  inset: 0;
}

.teaser-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teaser-preview-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 22px;
}

.teaser-preview-copy h3 {
  max-width: 16ch;
}

.teaser-partial {
  background:
    radial-gradient(circle at top right, rgba(255, 120, 186, 0.2), transparent 35%),
    linear-gradient(145deg, #57102e, #1b040d);
}

.teaser-character {
  background:
    radial-gradient(circle at top right, rgba(255, 143, 201, 0.2), transparent 35%),
    linear-gradient(145deg, #632041, #19030d);
}

.teaser-head::after,
.teaser-refsheet::after,
.teaser-partial::after {
  content: "Open";
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(26, 4, 14, 0.72);
  border: 1px solid rgba(255, 202, 224, 0.16);
  color: var(--glow);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: stretch;
}

.detail-copy,
.detail-spotlight {
  position: relative;
  z-index: 1;
}

.detail-spotlight {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 202, 224, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.detail-spotlight::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.has-spotlight-image {
  isolation: isolate;
}

.spotlight-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.has-spotlight-image::before {
  background:
    linear-gradient(180deg, rgba(11, 1, 6, 0.06) 0%, rgba(11, 1, 6, 0.35) 42%, rgba(11, 1, 6, 0.9) 100%);
}

.has-spotlight-image > * {
  position: relative;
  z-index: 1;
}

.detail-spotlight::before {
  content: "";
  position: absolute;
  inset: auto -12% -24% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 203, 228, 0.16), transparent 70%);
  filter: blur(12px);
}

.detail-spotlight h3,
.teaser-card h3 {
  margin-bottom: 10px;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  position: relative;
  z-index: 1;
}

.teaser-card {
  min-height: 180px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 202, 224, 0.14);
  background:
    radial-gradient(circle at top right, rgba(255, 136, 191, 0.18), transparent 36%),
    rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  transform-style: preserve-3d;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.teaser-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.teaser-card:hover {
  transform: translateY(-8px) rotateX(4deg) rotateY(-4deg);
  border-color: rgba(255, 194, 221, 0.24);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}

.teaser-card span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--glow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.84rem;
}

.refsheet-item {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 202, 224, 0.14);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transform-style: preserve-3d;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.refsheet-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 16%);
  pointer-events: none;
  z-index: 1;
}

.lightbox-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.refsheet-item:hover {
  transform: translateY(-8px) rotateX(4deg) rotateY(-4deg);
  border-color: rgba(255, 194, 221, 0.3);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.3);
}

.refsheet-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 0, 4, 0.92);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

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

.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 78vh;
  border-radius: 20px;
  border: 1px solid rgba(255, 202, 224, 0.18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 196, 224, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
}

.lightbox-note {
  margin: 14px 0 0;
  color: var(--muted);
}

@keyframes ambientShift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(0, -10px, 0) scale(1.04);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes chromeSweep {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  100% {
    transform: translateX(220%);
    opacity: 0;
  }
}

.guard-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  transform: translateX(-50%) translateY(18px);
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 196, 224, 0.24);
  background: rgba(24, 4, 13, 0.92);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.guard-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.guard-active {
  user-select: none;
  -webkit-user-select: none;
}

.contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: center;
}

.contact-panel {
  background:
    radial-gradient(circle at top right, rgba(255, 92, 168, 0.16), transparent 45%),
    var(--panel-strong);
  transform-style: preserve-3d;
}

.hero-card,
.portfolio-card,
.wall-item,
.teaser-card,
.refsheet-item,
.detail-spotlight,
.contact-panel,
.topbar {
  will-change: transform;
}

.tilt-3d {
  transform-style: preserve-3d;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.tilt-3d::after {
  transition: transform 220ms ease, opacity 220ms ease;
}

.tilt-3d .card-content,
.tilt-3d .profile-ring,
.tilt-3d .hero-badge,
.tilt-3d .floating-note,
.tilt-3d span,
.tilt-3d h3,
.tilt-3d p,
.tilt-3d .eyebrow {
  transform: translateZ(22px);
}

.tilt-3d:hover {
  box-shadow: 0 38px 95px rgba(0, 0, 0, 0.42);
}

.hero-card:hover::before,
.portfolio-card:hover .card-media::before,
.teaser-card:hover::before,
.refsheet-item:hover::before {
  animation: chromeSweep 1.15s ease;
}

body.is-3d::before {
  opacity: 0.9;
}

body.is-3d .page-shell {
  transform-style: preserve-3d;
}

body.performance-mode {
  perspective: none;
  transform-style: flat;
  background-attachment: scroll;
}

body.performance-mode::before,
body.performance-mode::after {
  display: none;
}

body.performance-mode section {
  background: linear-gradient(180deg, rgba(42, 11, 30, 0.88), rgba(18, 4, 12, 0.96));
  transform-style: flat;
}

body.performance-mode section::after,
body.performance-mode .topbar::after,
body.performance-mode .hero-card::after,
body.performance-mode .card-content::before,
body.performance-mode .teaser-card::before,
body.performance-mode .refsheet-item::before,
body.performance-mode .preview-thumb::before,
body.performance-mode .detail-spotlight::after {
  display: none;
}

body.performance-mode .topbar,
body.performance-mode .stats li,
body.performance-mode .hero-card,
body.performance-mode .portfolio-card,
body.performance-mode .card-content,
body.performance-mode .teaser-card,
body.performance-mode .refsheet-item,
body.performance-mode .detail-spotlight,
body.performance-mode .contact-panel,
body.performance-mode .button,
body.performance-mode .hero-badge,
body.performance-mode .floating-note {
  backdrop-filter: none;
  transform-style: flat;
  will-change: auto;
}

body.performance-mode .hero::before,
body.performance-mode .hero::after,
body.performance-mode .portfolio::after,
body.performance-mode .detail-spotlight::before,
body.performance-mode .hero-card::before {
  display: none;
}

body.performance-mode .floating-note,
body.performance-mode .reveal,
body.performance-mode .tilt-3d,
body.performance-mode .hero-card,
body.performance-mode .portfolio-card,
body.performance-mode .wall-item,
body.performance-mode .teaser-card,
body.performance-mode .refsheet-item {
  animation: none;
}

body.performance-mode .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

body.performance-mode .hero-card:hover,
body.performance-mode .portfolio-card:hover,
body.performance-mode .wall-item:hover,
body.performance-mode .teaser-card:hover,
body.performance-mode .refsheet-item:hover,
body.performance-mode .topbar:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .tilt-3d,
  .tilt-3d::after,
  .hero-card,
  .portfolio-card,
  .wall-item,
  .teaser-card,
  .refsheet-item {
    transition: none;
  }
}

.contact-panel p {
  margin: 0 0 12px;
}

.contact-actions {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.copy-discord {
  color: var(--text);
}

.footer {
  padding: 22px 10px 10px;
  text-align: center;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

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

@media (max-width: 960px) {
  body {
    background-attachment: scroll;
  }

  body::before,
  body::after {
    animation: none;
    filter: none;
  }

  .topbar,
  .hero,
  .detail-hero,
  .about-grid,
  .card-grid,
  .portfolio-grid,
  .teaser-showcase,
  .preview-strip,
  .portfolio-wall,
  .teaser-grid,
  .refsheet-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .topbar {
    border-radius: 28px;
    padding: 18px;
  }

  .hero {
    min-height: auto;
    gap: 18px;
    padding: 26px;
  }

  .hero-art {
    min-height: auto;
    place-items: start center;
  }

  .hero-card {
    margin-inline: auto;
  }

  .hero-card:hover,
  .portfolio-card:hover,
  .wall-item:hover,
  .teaser-card:hover,
  .refsheet-item:hover {
    transform: translateY(-6px);
  }

  .hero::after {
    width: 300px;
    height: 300px;
    inset: auto -14% -14% auto;
  }

  .detail-spotlight {
    min-height: 280px;
  }

  .topbar,
  .hero-card,
  .portfolio-card,
  .card-content,
  .teaser-card,
  .refsheet-item,
  .detail-spotlight,
  .contact-panel,
  .button {
    backdrop-filter: none;
  }

  .hero-copy h1,
  .section-heading h2 {
    max-width: none;
  }

  .portfolio-card.large {
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 18px, 100%);
  }

  .topbar {
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
    border-radius: 24px;
  }

  section {
    scroll-margin-top: 24px;
  }

  .nav {
    justify-content: center;
    gap: 12px;
    font-size: 0.95rem;
  }

  .brand {
    justify-content: center;
  }

  .hero,
  .about,
  .home-teaser,
  .detail-hero,
  .detail-gallery,
  .refsheet-gallery,
  .services,
  .gallery,
  .contact {
    padding: 22px;
    border-radius: 24px;
  }

  h1 {
    font-size: clamp(2.5rem, 15vw, 4rem);
    line-height: 0.98;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-art {
    min-height: auto;
    padding-top: 6px;
  }

  .hero-card {
    width: 100%;
    max-width: 320px;
    padding: 18px;
    border-radius: 26px;
  }

  .profile-ring {
    padding: 10px;
    border-radius: 22px;
  }

  .profile-ring::after {
    inset: 8px;
    border-radius: 18px;
  }

  .profile-ring img {
    border-radius: 16px;
  }

  .hero-badge {
    bottom: 10px;
    width: max-content;
    max-width: calc(100% - 24px);
    text-align: center;
  }

  .hero::after {
    width: 220px;
    height: 220px;
    inset: auto -12% -8% auto;
  }

  section::after {
    inset: 10px;
    border-radius: 18px;
  }

  .card-grid,
  .about-grid,
  .portfolio-grid,
  .teaser-grid,
  .refsheet-grid {
    gap: 14px;
  }

  .portfolio-card,
  .service-card,
  .panel,
  .contact-panel,
  .stats li {
    border-radius: 20px;
  }

  .footer {
    padding-top: 18px;
  }

  .floating-note {
    display: none;
  }

  .portfolio {
    padding: 22px;
  }

  .portfolio .section-heading {
    padding-top: 0;
  }

  section::after,
  .topbar::after,
  .hero-card::after,
  .card-content::before,
  .teaser-card::before,
  .refsheet-item::before,
  .preview-thumb::before {
    display: none;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox img {
    max-width: 100%;
    max-height: 72vh;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
  }
}
