/* /styles.css */

main {
  margin: 0;
  padding: 0;
}

main > *:first-child {
  margin-top: 0 !important;
}

.hero,
.hero-section,
.home-hero,
.page-hero {
  margin-top: 0 !important;
}

@font-face {
  font-family: "Eurofurence Light";
  src: url("assets/fonts/eurof35.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Eurofurence";
  src: url("assets/fonts/eurof55.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Lazy Dog";
  src: url("assets/fonts/lazy_dog.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #f8f6ff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --surface-soft: #ece7ff;
  --surface-soft-2: #ffe8ef;
  --surface-alt: #fcfaff;
  --text: #2d2740;
  --muted: #6f6a86;
  --accent: #9f9cff;
  --accent-2: #f4b7c8;
  --accent-3: #7d7ae6;
  --accent-4: #ffd6e2;
  --accent-5: #efeaff;
  --border: rgba(45, 39, 64, 0.1);
  --dark-1: #4a436f;
  --dark-2: #2d2740;
  --shadow: 0 20px 50px rgba(125, 122, 230, 0.12);
  --shadow-hover: 0 28px 65px rgba(125, 122, 230, 0.18);
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 999px;
  --container: 1180px;
  --font-heading: "Eurofurence", Arial, sans-serif;
  --font-body: "Eurofurence Light", Arial, sans-serif;
  --font-accent: "Lazy Dog", "Eurofurence", cursive;
  --cursor-default: url("assets/cursors/cursor-default.png") 4 3, auto;
  --cursor-pointer: url("assets/cursors/cursor-pointer.png") 4 3, pointer;
}

* {
  box-sizing: border-box;
  cursor: var(--cursor-default);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 10% 10%, rgba(244, 183, 200, 0.18), transparent 24%),
    radial-gradient(circle at 90% 12%, rgba(159, 156, 255, 0.18), transparent 20%),
    radial-gradient(circle at 40% 95%, rgba(125, 122, 230, 0.14), transparent 22%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  position: relative;
  overflow-x: hidden;
}

::selection {
  background: rgba(244, 183, 200, 0.3);
  color: var(--text);
}

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

a,
button,
.button,
.filter-button,
.menu-toggle {
  cursor: var(--cursor-pointer);
}

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

button,
input,
textarea {
  font: inherit;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.site-bg-decoration {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.55;
  pointer-events: none;
}

.site-bg-decoration-1 {
  top: 90px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(244, 183, 200, 0.35), transparent 70%);
}

.site-bg-decoration-2 {
  bottom: 40px;
  left: -50px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(159, 156, 255, 0.3), transparent 70%);
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: rgba(252, 250, 255, 0.78);
  border-top: 1px solid rgba(45, 39, 64, 0.06);
  border-bottom: 1px solid rgba(45, 39, 64, 0.06);
  backdrop-filter: blur(14px);
}

.section-label {
  margin: 0 0 14px;
  color: var(--accent-3);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-label-light {
  color: rgba(255, 255, 255, 0.8);
}

h1,
h2,
h3,
.brand,
.project-category,
.project-year,
.contact-type,
.fun-badge,
.sticker,
.button,
.site-nav a {
  font-family: var(--font-heading);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(2.3rem, 4.8vw, 4.1rem);
  line-height: 0.96;
  letter-spacing: 0.01em;
  margin-bottom: 0;
}

h3 {
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
}

strong {
  color: inherit;
}

.inline-code {
  display: inline-block;
  background: #f4efff;
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
  border: 1px solid transparent;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(159, 156, 255, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border-color: rgba(45, 39, 64, 0.1);
  backdrop-filter: blur(12px);
}

.button-wiggle:hover {
  animation: wiggle 0.35s ease-in-out;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248, 246, 255, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(45, 39, 64, 0.06);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  position: relative;
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.site-nav a.active {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(45, 39, 64, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  backdrop-filter: blur(10px);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  display: block;
  border-radius: 999px;
}

.hero-grid,
.two-column,
.contact-shell,
.contact-page-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: start;
}

.hero-grid {
  align-items: center;
  grid-template-columns: 1.08fr 0.92fr;
}

.available-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(45, 39, 64, 0.08);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}

.available-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
  flex-shrink: 0;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.1); }
}

.available-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(34, 197, 94, 0.35);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 14px;
  backdrop-filter: blur(10px);
}

.available-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.08); }
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #ece7ff, #ffe8ef);
  color: #5e5ab8;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.03em;
  margin-bottom: 22px;
  box-shadow: 0 10px 24px rgba(159, 156, 255, 0.12);
}

.hero-text,
.page-description {
  max-width: 760px;
  font-size: 1.16rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.page-title {
  max-width: 980px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 1rem;
  margin-top: 20px;
}

.floating-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fun-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px dashed rgba(159, 156, 255, 0.45);
  color: var(--accent-3);
  box-shadow: var(--shadow);
  font-size: 1rem;
  letter-spacing: 0.03em;
  transform: rotate(-1deg);
}

.hero-card,
.info-card,
.resume-card,
.project-card,
.service-card,
.contact-card-light,
.project-detail-artwork,
.project-meta-card,
.gallery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-card,
.info-card,
.resume-card {
  border-radius: var(--radius-xl);
  padding: 34px;
}

.sticker-card {
  position: relative;
}

.sticker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  background: linear-gradient(135deg, var(--accent-4), #ffeef4);
  color: #7e5670;
  border-radius: 999px;
  font-family: var(--font-accent);
  font-size: 1.05rem;
  box-shadow: 0 12px 24px rgba(244, 183, 200, 0.2);
  transform: rotate(7deg);
}

.sticker-top-right {
  top: -16px;
  right: 20px;
}

.hero-card-text {
  line-height: 1.75;
  margin-bottom: 24px;
}

.hero-feature-grid,
.contact-grid,
.cards-grid,
.service-grid {
  display: grid;
  gap: 16px;
}

.hero-feature-grid {
  grid-template-columns: repeat(2, 1fr);
}

.hero-feature {
  background: linear-gradient(135deg, rgba(236, 231, 255, 0.92), rgba(255, 232, 239, 0.96));
  border-radius: 22px;
  padding: 20px;
}

.hero-feature p {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.tilt-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tilt-card:hover {
  transform: rotate(-1deg) translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.stack p:last-child,
.resume-copy p:last-child {
  margin-bottom: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(45, 39, 64, 0.08);
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 34px;
}

.section-description {
  max-width: 500px;
  margin-bottom: 0;
}

/* projects */

.cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.project-card-link {
  display: block;
  color: inherit;
}

.project-card {
  border-radius: 28px;
  padding: 20px;
  transition:
    transform 140ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateY(0);
}

.project-card > * {
  transform: translateZ(0);
  transition: transform 140ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(
      circle at var(--mx, 50%) var(--my, 50%),
      rgba(255, 255, 255, 0.34),
      rgba(255, 255, 255, 0.06) 24%,
      rgba(255, 255, 255, 0) 58%
    );
  opacity: 0;
  transition: opacity 180ms ease;
}

.project-card:hover {
  box-shadow: var(--shadow-hover);
}

.project-card.is-parallax-active {
  box-shadow: 0 30px 70px rgba(125, 122, 230, 0.2);
}

.project-card.is-parallax-active::after {
  opacity: 1;
}

.project-card.is-parallax-active .project-category,
.project-card.is-parallax-active h3,
.project-card.is-parallax-active .project-link {
  transform: translateZ(28px);
}

.project-card.is-parallax-active .project-year {
  transform: translateZ(38px);
}

.project-card.is-parallax-active p {
  transform: translateZ(18px);
}

.project-media {
  margin: -20px -20px 14px;
  overflow: hidden;
  border-radius: 20px 20px 16px 16px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--surface-soft), var(--surface-soft-2));
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-media.project-media-dark {
  background: var(--dark-2);
}

.project-image.project-image-contain {
  object-fit: contain;
  padding: 20px;
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin: 10px 0 12px;
}

.project-category {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-3);
}

.project-card h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.1;
}

.project-year {
  white-space: nowrap;
  background: linear-gradient(135deg, #efeaff, #ffe8ef);
  color: #5f5aa8;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.project-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-link {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  color: var(--text);
}

.projects-toolbar {
  margin: 10px 0 24px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-button {
  border: 1px solid rgba(45, 39, 64, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: all 0.18s ease;
  backdrop-filter: blur(12px);
}

.filter-button.active,
.filter-button:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  border-color: transparent;
}

.section-cta-row {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

.service-card {
  border-radius: 24px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.94)),
    linear-gradient(135deg, rgba(159, 156, 255, 0.08), rgba(244, 183, 200, 0.1));
}

.service-card p {
  margin-bottom: 0;
}

.resume-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.resume-card-large {
  min-height: 280px;
}

.resume-copy {
  max-width: 760px;
}

.contact-section {
  background:
    radial-gradient(circle at 15% 20%, rgba(244, 183, 200, 0.16), transparent 20%),
    radial-gradient(circle at 80% 18%, rgba(159, 156, 255, 0.14), transparent 18%),
    linear-gradient(180deg, var(--dark-1) 0%, var(--dark-2) 100%);
  color: #ffffff;
}

.contact-section h2,
.contact-section p,
.contact-section a {
  color: inherit;
}

.contact-intro {
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin-top: 18px;
}

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

.contact-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 22px;
  transition: transform 0.18s ease, background 0.18s ease;
  backdrop-filter: blur(12px);
}

.contact-card:hover {
  transform: translateY(-3px) rotate(-0.6deg);
  background: rgba(255, 255, 255, 0.12);
}

.contact-card-light {
  border-radius: 24px;
  padding: 22px;
}

.contact-grid-light {
  align-items: start;
}

.contact-type {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 10px;
}

.contact-type-light {
  color: var(--accent-3);
}

.site-footer {
  background: #26213a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-name {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.footer-title,
.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}

.footer-ged {
  margin: 2px 0 0;
  font-size: 0.9rem;
}

.footer-ged a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-note {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.inline-link {
  color: var(--accent-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: var(--font-heading);
  color: var(--accent-3);
}

.project-detail-hero {
  padding-top: 48px;
  padding-bottom: 32px;
}

.project-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 28px;
  align-items: start;
}

.project-detail-artwork {
  border-radius: var(--radius-xl);
  padding: 18px;
}

.project-full-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--surface-soft), var(--surface-soft-2));
}

.project-meta-card {
  border-radius: var(--radius-xl);
  padding: 28px;
  position: sticky;
  top: 110px;
}

.project-meta-list {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.project-meta-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(45, 39, 64, 0.08);
}

.project-meta-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-3);
}

.project-meta-value {
  color: var(--text);
}

.project-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.project-supporting-copy {
  max-width: 840px;
  margin-top: 28px;
}

.project-pagination {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.project-pagination-link {
  flex: 1 1 260px;
  display: block;
  padding: 18px 20px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.project-pagination-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.project-pagination-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-3);
}

.project-pagination-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  border-radius: 28px;
  overflow: hidden;
}

.gallery-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--surface-soft), var(--surface-soft-2));
  border: 1px dashed var(--border);
  color: var(--muted);
}

.gallery-placeholder-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.gallery-placeholder-label small {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.gallery-image {
  width: 100%;
  height: auto;
  display: block;
  background: linear-gradient(135deg, var(--surface-soft), var(--surface-soft-2));
}

.gallery-caption {
  padding: 16px 18px 18px;
}

.gallery-caption h3 {
  margin-bottom: 6px;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.palette-swatch {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.palette-swatch-color {
  height: 88px;
  width: 100%;
}

.palette-swatch-info {
  padding: 12px 14px;
}

.palette-swatch-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 2px;
}

.palette-swatch-hex {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.gallery-caption p {
  margin-bottom: 0;
}

.sparkle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

.sparkle {
  position: fixed;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.6) rotate(0deg);
  will-change: transform, opacity;
}

.sparkle::before,
.sparkle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.sparkle::before {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 55%),
    radial-gradient(circle at 70% 70%, rgba(244, 183, 200, 0.9), rgba(244, 183, 200, 0) 60%),
    radial-gradient(circle at 50% 50%, rgba(159, 156, 255, 0.95), rgba(159, 156, 255, 0) 70%);
  filter: blur(0.3px);
}

.sparkle::after {
  inset: 3px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0)),
    linear-gradient(315deg, rgba(125, 122, 230, 0.9), rgba(125, 122, 230, 0));
  mix-blend-mode: screen;
}

.sparkle.is-animating {
  animation: sparkle-pop 700ms ease-out forwards;
}

@keyframes sparkle-pop {
  0% {
    opacity: 0;
    transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(0.2) rotate(0deg);
  }
  12% {
    opacity: 1;
    transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(1) rotate(24deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(
        calc(var(--x, 0) + var(--dx, 0px)),
        calc(var(--y, 0) + var(--dy, 0px)),
        0
      )
      scale(0.35) rotate(120deg);
  }
}

@keyframes wiggle {
  0% {
    transform: translateY(-1px) rotate(0deg);
  }
  25% {
    transform: translateY(-2px) rotate(-1deg);
  }
  50% {
    transform: translateY(-2px) rotate(1deg);
  }
  100% {
    transform: translateY(-2px) rotate(0deg);
  }
}

@media (max-width: 1120px) {
  .hero-grid,
  .two-column,
  .contact-shell,
  .contact-page-grid,
  .section-head,
  .resume-card,
  .project-detail-layout {
    grid-template-columns: 1fr;
  }

  .section-head,
  .resume-card,
  .footer-inner {
    align-items: start;
  }

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

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

  .project-meta-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(45, 39, 64, 0.08);
    border-radius: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
  }

  .site-nav.open {
    display: flex;
  }

  .hero-feature-grid,
  .contact-grid,
  .cards-grid,
  .service-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 76px 0;
  }

  .sticker-top-right {
    right: 14px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 1.25rem));
  }

  .hero-card,
  .resume-card,
  .project-card,
  .contact-card,
  .contact-card-light,
  .service-card,
  .info-card,
  .project-detail-artwork,
  .project-meta-card {
    padding: 20px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .brand {
    font-size: 1.15rem;
  }

  .project-media {
    margin: -20px -20px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sparkle,
  .sparkle.is-animating {
    animation: none !important;
    display: none !important;
  }

  .project-card,
  .project-card > * {
    transition: none !important;
  }

  .project-card,
  .project-card.is-parallax-active {
    transform: none !important;
  }

  .project-card::after {
    display: none !important;
  }
}

/* CONTACT PAGE */

.contact-hero {
  padding: 6rem 0 3rem;
  background: var(--bg);
}

body[data-page="contact"] .contact-section {
  padding: 5rem 0;
  background: var(--surface-alt);
}

body[data-page="contact"] .contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  background: var(--bg);
  border: 1px solid rgba(45, 39, 64,0.14);
  border-radius: 28px;
  padding: 2rem;
}

.contact-details {
  margin-top: 2rem;
}

.contact-details a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-form,
.testimonial-form {
  display: grid;
  gap: 1.25rem;
}

.contact-form label,
.testimonial-form label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.testimonial-form input,
.testimonial-form textarea,
.testimonial-form select {
  width: 100%;
  border: 1px solid rgba(45, 39, 64,0.25);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  font-family: inherit;
  background: #ffffff;
  color: var(--text);
}

.contact-form textarea,
.testimonial-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.testimonial-form input:focus,
.testimonial-form textarea:focus,
.testimonial-form select:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(45, 39, 64,0.08);
}

.contact-form-conditional {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.contact-form-conditional.is-open {
  grid-template-rows: 1fr;
}

.contact-form-conditional-inner {
  display: grid;
  gap: 1.25rem;
  min-height: 0;
  overflow: hidden;
}

.testimonial-submit-section {
  padding: 5rem 0;
  background: var(--surface-soft-2);
}

.testimonial-submit-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.testimonial-form {
  background: var(--surface-alt);
  border: 1px solid rgba(45, 39, 64,0.14);
  border-radius: 28px;
  padding: 2rem;
}

body[data-page="contact"] .footer-inner {
  gap: 1rem;
  padding: 2rem 0;
  font-size: 0.9rem;
}

body[data-page="contact"] .site-footer {
  background: var(--text);
  color: #ffffff;
}

body[data-page="contact"] .site-footer a {
  color: #ffffff;
}

/* MOBILE */

@media (max-width: 800px) {
  body[data-page="contact"] .contact-grid,
  .testimonial-submit-grid {
    grid-template-columns: 1fr;
  }

  .contact-hero {
    padding: 4rem 0 2rem;
  }

  .contact-section,
  .testimonial-submit-section {
    padding: 3.5rem 0;
  }

  .footer-inner {
    flex-direction: column;
  }
}

/* CONTACT PAGE READABILITY FIX */

body[data-page="contact"] {
  background: var(--bg);
  color: var(--text);
}

body[data-page="contact"] .contact-hero {
  background: var(--surface-soft);
  color: var(--text);
}

body[data-page="contact"] .contact-section {
  background: var(--bg);
}

body[data-page="contact"] .contact-info-card,
body[data-page="contact"] .testimonial-form {
  background: #ffffff;
  border: 1px solid rgba(45, 39, 64,0.22);
  box-shadow: 0 18px 40px rgba(45, 39, 64,0.08);
}

body[data-page="contact"] h1,
body[data-page="contact"] h2,
body[data-page="contact"] p,
body[data-page="contact"] label,
body[data-page="contact"] .eyebrow,
body[data-page="contact"] .hero-copy {
  color: var(--text);
}

body[data-page="contact"] .eyebrow {
  color: var(--accent-3);
  font-weight: 700;
}

body[data-page="contact"] .testimonial-submit-section {
  background: var(--surface-soft-2);
  color: var(--text);
}

body[data-page="contact"] input,
body[data-page="contact"] textarea,
body[data-page="contact"] select {
  background: #ffffff;
  color: var(--text);
  border: 1.5px solid rgba(45, 39, 64,0.35);
}

body[data-page="contact"] input::placeholder,
body[data-page="contact"] textarea::placeholder {
  color: rgba(45, 39, 64,0.55);
}

body[data-page="contact"] .btn {
  background: var(--text);
  color: #ffffff;
  border: 1px solid var(--text);
}

body[data-page="contact"] .btn:hover {
  background: var(--dark-1);
  color: #ffffff;
}

body[data-page="home"] main,
body[data-page="index"] main {
  margin-top: 0;
  padding-top: 0;
}

body[data-page="home"] .hero,
body[data-page="home"] .page-hero,
body[data-page="index"] .hero,
body[data-page="index"] .page-hero {
  margin-top: 0;
  padding-top: 0;
}

body[data-page="home"] h1:first-child,
body[data-page="home"] p:first-child,
body[data-page="index"] h1:first-child,
body[data-page="index"] p:first-child {
  margin-top: 0;
}

/* === CREATIVE STUDIO REFRAME === */

/* Gradient text accent for hero H1 */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-3) 0%, var(--accent-2) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero card gentle float */
.hero-card-float {
  animation: hero-float 7s ease-in-out infinite;
}

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

/* Fun badges — staggered rotation + hover */
.fun-badge {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fun-badge:nth-child(1) { transform: rotate(-1.5deg); }
.fun-badge:nth-child(2) { transform: rotate(1deg); }
.fun-badge:nth-child(3) { transform: rotate(-0.5deg); }
.fun-badge:nth-child(4) { transform: rotate(1.5deg); }
.fun-badge:nth-child(5) { transform: rotate(-1deg); }
.fun-badge:nth-child(6) { transform: rotate(0.75deg); }
.fun-badge:hover {
  transform: rotate(0deg) translateY(-3px) !important;
  box-shadow: 0 14px 32px rgba(159, 156, 255, 0.22);
}

/* Service icon in capability cards */
.service-icon {
  display: block;
  font-size: 1.5rem;
  color: var(--accent-3);
  margin-bottom: 12px;
  line-height: 1;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  margin: 0;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.testimonial-quote {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--text);
  position: relative;
  padding-left: 20px;
}

.testimonial-quote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -4px;
  font-family: var(--font-accent);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent-2);
}

.testimonial-credit {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.88rem;
}

.testimonial-credit strong {
  color: var(--text);
  font-family: var(--font-heading);
}

.testimonial-context {
  color: var(--muted);
}

/* My Approach section */
.approach-section {
  background:
    radial-gradient(circle at 15% 25%, rgba(244, 183, 200, 0.1), transparent 35%),
    radial-gradient(circle at 85% 75%, rgba(159, 156, 255, 0.12), transparent 38%),
    linear-gradient(180deg, var(--dark-2) 0%, #1a1628 100%);
  color: #ffffff;
}

.approach-inner {
  text-align: center;
}

.approach-label {
  color: rgba(255, 255, 255, 0.55) !important;
  text-align: center;
}

.approach-quote {
  font-family: var(--font-accent);
  font-size: clamp(1.55rem, 3.5vw, 2.75rem);
  line-height: 1.35;
  color: #ffffff;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
  font-style: normal;
  border: none;
}

.approach-divider {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  margin: 24px auto 56px;
}

.approach-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  text-align: left;
}

.approach-pillar {
  padding: 26px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
  transition: transform 0.22s ease, background 0.22s ease;
}

.approach-pillar:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.approach-pillar-featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(159, 156, 255, 0.16), rgba(244, 183, 200, 0.14));
  border-color: rgba(255, 255, 255, 0.16);
}

.approach-pillar-featured:hover {
  background: linear-gradient(135deg, rgba(159, 156, 255, 0.22), rgba(244, 183, 200, 0.2));
}

.approach-pillar-featured h3 {
  font-size: 1.4rem;
}

.pillar-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 10px;
}

.approach-pillar h3 {
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.approach-pillar p {
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.68;
}

/* Scroll reveal — visible by default. Content must never depend on JS to be seen.
   Only when script.js confirms IntersectionObserver works (and motion isn't reduced)
   does it add .js-reveal-ready to <html>, opting in to the hide-then-animate-in effect. */
.reveal {
  opacity: 1;
  transform: none;
}

html.js-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s ease var(--reveal-delay, 0s),
    transform 0.6s ease var(--reveal-delay, 0s);
}

html.js-reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Approach + capabilities responsive */
@media (max-width: 1120px) {
  .approach-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .approach-pillar-featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .approach-pillars {
    grid-template-columns: 1fr;
  }

  .approach-quote {
    font-size: 1.5rem;
  }
}

/* Reduced motion overrides */
@media (prefers-reduced-motion: reduce) {
  .hero-card-float {
    animation: none !important;
  }
}

/* === CV PAGE === */

.cv-hero-stats {
  margin-top: 22px;
  margin-bottom: 28px;
}

.cv-stat-pill strong {
  margin-right: 5px;
  color: var(--text);
}

.cv-hero-actions {
  margin-bottom: 0;
}

.cv-subnav {
  position: sticky;
  top: 82px;
  z-index: 900;
  background: rgba(248, 246, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(45, 39, 64, 0.06);
}

.cv-subnav-inner {
  display: flex;
  gap: 10px;
  padding: 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.cv-subnav-inner::-webkit-scrollbar {
  display: none;
}

.cv-subnav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  border: 1px solid rgba(45, 39, 64, 0.08);
  background: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  transition: all 0.18s ease;
}

.cv-subnav a:hover {
  color: var(--text);
  border-color: rgba(159, 156, 255, 0.45);
}

.cv-subnav a.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  border-color: transparent;
}

/* Chapter spine nav */

.cv-spine {
  position: relative;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 4px 30px;
  margin-bottom: 56px;
  scrollbar-width: none;
}

.cv-spine::-webkit-scrollbar {
  display: none;
}

.cv-spine::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 27px;
  height: 2px;
  background: linear-gradient(90deg, rgba(159, 156, 255, 0.45), rgba(244, 183, 200, 0.45));
  z-index: 0;
}

.cv-spine-node {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 168px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.cv-spine-node:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(159, 156, 255, 0.4);
}

.cv-spine-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(45, 39, 64, 0.18);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.cv-spine-year {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-3);
}

.cv-spine-role {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.25;
}

.cv-spine-node.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.cv-spine-node.active .cv-spine-year,
.cv-spine-node.active .cv-spine-role {
  color: #ffffff;
}

.cv-spine-node.active .cv-spine-dot {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35);
}

/* Timeline */

.cv-timeline {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.cv-year-group {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  align-items: start;
}

.cv-year-label {
  position: sticky;
  top: 150px;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--accent-3);
  margin: 0;
}

.cv-year-cards {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-left: 56px;
}

.cv-year-cards::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(159, 156, 255, 0.4), rgba(244, 183, 200, 0.4));
}

.cv-also-list {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.cv-also-label {
  margin-bottom: 18px;
}

.cv-also-items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.cv-also-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cv-also-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.cv-also-role {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  color: var(--text);
}

.cv-also-meta {
  font-size: 0.86rem;
  color: var(--muted);
}

.cv-also-blurb {
  font-size: 0.92rem;
  color: var(--muted);
}

.cv-chapter {
  position: relative;
}

.cv-chapter-number {
  position: absolute;
  left: -56px;
  top: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(159, 156, 255, 0.35), 0 0 0 4px var(--bg);
  z-index: 1;
}

.cv-chapter-main {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.cv-chapter-toggle {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 28px 0;
  background: none;
  border: none;
  text-align: left;
  font: inherit;
  color: inherit;
}

.cv-chapter-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cv-chapter-dates {
  align-self: flex-start;
  margin-bottom: 4px;
}

.cv-chapter-role {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text);
}

.cv-chapter-company {
  font-size: 0.92rem;
  color: var(--muted);
}

.cv-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(45, 39, 64, 0.14);
  flex-shrink: 0;
  position: relative;
  margin-top: 4px;
  transition: transform 0.25s ease, background 0.18s ease;
}

.cv-card-icon::before,
.cv-card-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--accent-3);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.cv-card-icon::before {
  width: 12px;
  height: 2px;
}

.cv-card-icon::after {
  width: 2px;
  height: 12px;
}

.cv-chapter.is-open .cv-card-icon {
  transform: rotate(45deg);
  background: rgba(159, 156, 255, 0.14);
}

.cv-chapter-pitch {
  margin: 18px 28px 0;
  padding: 16px 22px;
  border-left: 3px solid var(--accent-3);
  background: linear-gradient(135deg, rgba(159, 156, 255, 0.08), rgba(244, 183, 200, 0.08));
  border-radius: 0 18px 18px 0;
  font-family: var(--font-heading);
  font-size: 1.14rem;
  line-height: 1.5;
  color: var(--text);
}

.cv-chapter-pitch::before {
  content: "“";
  display: block;
  font-family: var(--font-accent);
  font-size: 2.4rem;
  line-height: 0;
  margin-bottom: -2px;
  color: var(--accent-2);
}

.cv-chapter-cue {
  margin: 14px 28px 24px;
  font-size: 0.86rem;
  color: var(--muted);
}

.cv-chapter.is-open .cv-chapter-cue {
  display: none;
}

.cv-chapter-body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.cv-chapter.is-open .cv-chapter-body-wrap {
  grid-template-rows: 1fr;
}

.cv-chapter-body {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 4px 28px 28px;
  border-top: 1px solid rgba(45, 39, 64, 0.07);
  margin-top: 6px;
}

.cv-chapter-block-label {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-3);
}

.cv-chapter-block-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.cv-highlights {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.6;
}

.cv-tag-tech {
  border-color: rgba(159, 156, 255, 0.35);
}

.cv-tag-skill {
  background: rgba(255, 232, 239, 0.55);
  border-color: rgba(244, 183, 200, 0.45);
}

.cv-chapter-takeaway {
  padding: 18px 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(236, 231, 255, 0.6), rgba(255, 232, 239, 0.6));
}

.cv-takeaway-text {
  margin: 0;
  font-family: var(--font-accent);
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--text);
}

.cv-chapter-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.cv-chapter-project-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(45, 39, 64, 0.08);
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

a.cv-chapter-project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(159, 156, 255, 0.4);
}

.cv-chapter-project-media {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface-soft), var(--surface-soft-2));
}

.cv-chapter-project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cv-chapter-project-media.is-placeholder {
  padding: 4px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.66rem;
  color: var(--accent-3);
}

.cv-chapter-project-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cv-chapter-project-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  color: var(--text);
}

.cv-chapter-project-tagline {
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--muted);
}

/* Education */

.cv-education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cv-edu-card .project-category {
  margin-bottom: 8px;
}

.cv-edu-institution {
  color: var(--text);
  margin-bottom: 14px;
}

.cv-edu-details {
  padding-left: 20px;
  margin-bottom: 0;
}

/* Skills */

.cv-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cv-skill-group h3 {
  margin-bottom: 16px;
}

/* Featured project */

.cv-feature-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.cv-feature-image {
  margin-bottom: 14px;
}

.cv-feature-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cv-feature-gallery-slot {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  border-radius: 20px;
  border: 1px dashed rgba(159, 156, 255, 0.4);
  background: rgba(255, 255, 255, 0.5);
  color: var(--accent-3);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.cv-feature-copy h3 {
  margin-bottom: 10px;
}

.cv-feature-tagline {
  color: var(--text);
  font-size: 1.08rem;
  margin-bottom: 14px;
}

.cv-feature-role {
  margin-bottom: 18px;
}

.cv-feature-copy .cv-highlights {
  padding-left: 20px;
  margin-top: 18px;
}

.cv-feature-copy .tag-list {
  margin-top: 18px;
}

.cv-feature-actions {
  margin-top: 26px;
  margin-bottom: 0;
}

/* CTA */

.cv-cta-shell {
  max-width: 720px;
}

.cv-cta-actions {
  margin-top: 28px;
  margin-bottom: 0;
}

@media (max-width: 1120px) {
  .cv-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .cv-year-group {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cv-year-label {
    position: static;
  }

  .cv-education-grid,
  .cv-skills-grid {
    grid-template-columns: 1fr;
  }

  .cv-year-cards {
    padding-left: 44px;
  }

  .cv-year-cards::before {
    left: 15px;
  }

  .cv-chapter-number {
    left: -44px;
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .cv-chapter-toggle {
    padding: 20px 20px 0;
  }

  .cv-chapter-pitch {
    margin: 14px 20px 0;
    padding: 14px 18px;
  }

  .cv-chapter-cue {
    margin: 12px 20px 20px;
  }

  .cv-chapter-body {
    padding: 4px 20px 22px;
  }

  .cv-chapter-block-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cv-chapter-body-wrap,
  .cv-card-icon {
    transition: none !important;
  }
}

/* Wedding Pricing */

#pricing {
  position: relative;
  overflow: hidden;
}

#pricing > .container {
  position: relative;
  z-index: 1;
}

.pricing-decoration {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  color: var(--accent-3);
  opacity: 0.18;
}

.pricing-decoration-1 {
  top: -12px;
  right: -16px;
  width: 170px;
  height: auto;
}

.pricing-decoration-2 {
  bottom: 6px;
  left: -24px;
  width: 130px;
  height: auto;
  transform: scaleX(-1) rotate(8deg);
}

.pricing-callout {
  max-width: 620px;
  margin: 4px auto 36px;
  text-align: center;
}

.pricing-callout-mark {
  display: block;
  color: var(--accent-3);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.pricing-callout p {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}

.pricing-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 30px;
  margin: 8px 0 44px;
  padding: 22px 0;
  border-top: 1px solid rgba(45, 39, 64, 0.08);
  border-bottom: 1px solid rgba(45, 39, 64, 0.08);
}

.pricing-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--text);
}

.pricing-trust-item::before {
  content: "✓";
  color: var(--accent-3);
  font-family: var(--font-heading);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transition: transform 0.25s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.pricing-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: var(--shadow-hover), 0 0 34px rgba(159, 156, 255, 0.16);
  border-color: rgba(159, 156, 255, 0.3);
}

.pricing-card-featured {
  border-color: rgba(159, 156, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.96)),
    linear-gradient(135deg, rgba(159, 156, 255, 0.1), rgba(244, 183, 200, 0.12));
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  z-index: 1;
}

.pricing-card-featured:hover {
  transform: translateY(-16px) rotate(-0.5deg);
  box-shadow: var(--shadow-hover), 0 0 40px rgba(159, 156, 255, 0.22);
}

.pricing-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(159, 156, 255, 0.1);
  border: 1px solid rgba(159, 156, 255, 0.22);
  color: var(--accent-3);
  font-family: var(--font-heading);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.pricing-card-blurb {
  margin-bottom: 20px;
}

.pricing-card-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text);
  margin: 0 0 20px;
}

.pricing-card-price-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.pricing-card-includes {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.pricing-card-includes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.4;
}

.pricing-card-includes li::before {
  content: "✓";
  color: var(--accent-3);
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.pricing-card-includes li.pricing-card-includes-inherit {
  font-weight: 600;
  color: var(--accent-3);
}

.pricing-card-includes li.pricing-card-includes-inherit::before {
  content: "↳";
}

.pricing-card .project-link {
  margin-top: auto;
}

.pricing-note {
  margin: 28px 0 56px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed rgba(45, 39, 64, 0.16);
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 720px;
}

.pricing-note p {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.pricing-note p + p {
  margin-top: 8px;
}

.pricing-subhead {
  margin: 0 0 28px;
}

.pricing-subhead h3 {
  margin-top: 6px;
}

.pricing-subhead-intro {
  max-width: 620px;
  margin: 12px 0 0;
}

.pricing-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 56px;
}

.pricing-accordion-item {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.pricing-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  background: none;
  border: none;
  text-align: left;
  font: inherit;
  color: inherit;
}

.pricing-accordion-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
}

.pricing-accordion-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text);
}

.pricing-accordion-price {
  font-size: 0.92rem;
  color: var(--accent-3);
  letter-spacing: 0.02em;
}

.pricing-accordion-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(45, 39, 64, 0.14);
  flex-shrink: 0;
  position: relative;
  transition: transform 0.25s ease, background 0.18s ease;
}

.pricing-accordion-icon::before,
.pricing-accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--accent-3);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.pricing-accordion-icon::before {
  width: 12px;
  height: 2px;
}

.pricing-accordion-icon::after {
  width: 2px;
  height: 12px;
}

.pricing-accordion-item.is-open .pricing-accordion-icon {
  transform: rotate(45deg);
  background: rgba(159, 156, 255, 0.14);
}

.pricing-accordion-body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.pricing-accordion-item.is-open .pricing-accordion-body-wrap {
  grid-template-rows: 1fr;
}

.pricing-accordion-body {
  min-height: 0;
  overflow: hidden;
  padding: 0 26px 26px;
}

.pricing-accordion-body p {
  margin: 0 0 14px;
}

.pricing-line-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
}

.pricing-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dotted rgba(45, 39, 64, 0.22);
  font-size: 0.96rem;
}

.pricing-line:last-child {
  grid-column: 1 / -1;
}

.pricing-line span:first-child {
  color: var(--text);
}

.pricing-line span:last-child {
  color: var(--muted);
  white-space: nowrap;
}

.pricing-printing {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  border-radius: var(--radius-lg);
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  margin-bottom: 56px;
}

.pricing-printing-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(159, 156, 255, 0.1), rgba(244, 183, 200, 0.12));
  border: 1px solid rgba(159, 156, 255, 0.25);
  color: var(--accent-3);
  font-size: 1.6rem;
}

.pricing-printing-body {
  flex: 1 1 auto;
}

.pricing-printing-body h3 {
  margin-bottom: 12px;
}

.pricing-printing-factors-label {
  margin: 18px 0 10px;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-3);
}

.pricing-printing-factors {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pricing-printing-factors li {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(45, 39, 64, 0.1);
  font-size: 0.9rem;
  color: var(--text);
}

.pricing-printing-body p:last-child {
  margin-bottom: 0;
}

.pricing-giftcard {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 40px;
  background: linear-gradient(135deg, rgba(236, 231, 255, 0.92), rgba(255, 232, 239, 0.96));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 56px;
}

.pricing-giftcard h3 {
  max-width: 620px;
}

.pricing-giftcard-lead {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--accent-3);
  margin: 12px 0 16px;
}

.pricing-giftcard-intro {
  max-width: 620px;
}

.pricing-giftcard-includes {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

.pricing-giftcard-includes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--text);
}

.pricing-giftcard-includes li::before {
  content: "✓";
  color: var(--accent-3);
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.pricing-addon {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(45, 39, 64, 0.12);
  display: flex;
  align-items: flex-start;
  gap: 22px;
  flex-wrap: wrap;
}

.pricing-monogram-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(159, 156, 255, 0.14), rgba(244, 183, 200, 0.18));
  border: 1px solid rgba(159, 156, 255, 0.3);
  font-family: var(--font-accent);
  font-size: 1.6rem;
  color: var(--accent-3);
}

.pricing-addon-body {
  flex: 1 1 320px;
}

.pricing-addon-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 4px;
}

.pricing-addon-desc {
  max-width: 480px;
  margin-bottom: 16px;
}

.pricing-addon-perfect-for-label {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.pricing-addon-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pricing-addon-tags li {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(45, 39, 64, 0.1);
  font-size: 0.86rem;
  color: var(--text);
}

.pricing-addon-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--accent-3);
  white-space: nowrap;
  margin: 0 0 0 auto;
}

.pricing-custom-cta {
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  text-align: center;
  background: linear-gradient(135deg, rgba(159, 156, 255, 0.1), rgba(244, 183, 200, 0.12));
  border: 1px solid var(--border);
}

.pricing-custom-cta h3 {
  max-width: 560px;
  margin: 0 auto 16px;
}

.pricing-custom-cta-copy {
  max-width: 560px;
  margin: 0 auto 24px;
  font-size: 1.05rem;
  line-height: 1.6;
}

@media (max-width: 1120px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }

  .pricing-card-featured {
    transform: none;
  }

  .pricing-card-featured:hover {
    transform: translateY(-6px) rotate(-0.5deg);
  }
}

@media (max-width: 820px) {
  .pricing-decoration {
    display: none;
  }

  .pricing-printing {
    padding: 28px 24px;
  }

  .pricing-giftcard {
    padding: 30px 24px;
  }

  .pricing-giftcard-includes {
    grid-template-columns: 1fr;
  }

  .pricing-monogram-icon {
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
  }

  .pricing-addon-price {
    margin-left: 0;
  }

  .pricing-trust-row {
    gap: 10px 20px;
  }
}

@media (max-width: 560px) {
  .pricing-printing {
    flex-direction: column;
  }

  .pricing-line-grid {
    grid-template-columns: 1fr;
  }

  .pricing-line:last-child {
    grid-column: auto;
  }

  .pricing-accordion-toggle {
    padding: 18px 20px;
  }

  .pricing-accordion-body {
    padding: 0 20px 22px;
  }

  .pricing-custom-cta {
    padding: 32px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-accordion-body-wrap,
  .pricing-accordion-icon,
  .pricing-card,
  .contact-form-conditional {
    transition: none !important;
  }
}
