/* =========================================================
   GLOBAL FOUNDATION (CLEAN, SINGLE SOURCE OF TRUTH)
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Oxanium:wght@300;400;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Anta&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Audiowide&display=swap");

:root{
  --bg: #05060a;
  --panel: rgba(0,0,0,.45);
  --border: rgba(255,255,255,.14);

  --text: #ffba7d;           /* dusty orange */
  --pink: #ffd6d9;
  --pinkGlow: rgba(255,110,120,.55);
  --aquaGlow: rgba(160,255,255,.35);

  /* GitHub Pages-safe path (your repo is /Portfolio/) */
  --texture5: url("/Portfolio/Texture5.png");
  --homePurple: #a591aa;
}

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

html, body{
  margin:0;
  padding:0;
}

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

/* ---------- Global Type ---------- */
body{
  background: var(--bg);
  color: var(--text);
  font-family: "Oxanium", system-ui, sans-serif;
}

a, a:visited{
  color: var(--text);
}

/* =========================================================
   BACKGROUNDS (ONE SYSTEM ONLY)
   ========================================================= */

/* LANDING / INDEX (body class="landing home") */
body.landing.home{
  background: var(--homePurple);
}

/* Ensure the visible surface is also purple */
body.landing.home .landing-wrap{
  background: var(--homePurple);
  min-height: 100vh;
}

/* NON-LANDING PAGES: texture on body (NOT html) */
body:not(.landing){
  background-image: var(--texture5);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

/* readable veil ABOVE texture but BELOW content */
body:not(.landing)::before{
  content:"";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  pointer-events: none;
  z-index: 0;
}

/* Ensure page content sits above the veil */
body:not(.landing) > *{
  position: relative;
  z-index: 1;
}

/* =========================================================
   BUTTONS (shared across site)
   ========================================================= */

.nav-btn,
.btn,
.enter-hero{
  appearance:none;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,214,217,.35);
  color: var(--pink);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration:none;

  /* keep Audiowide just for buttons (optional) */
  font-family: "Audiowide", "Oxanium", system-ui, sans-serif;
  letter-spacing:.04em;

  text-shadow:
    0 0 3px var(--pink),
    0 0 10px var(--pinkGlow);

  box-shadow:
    0 0 0 1px rgba(255,214,217,.2),
    0 0 22px rgba(255,110,120,.35);

  transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
}

.nav-btn:hover,
.btn:hover,
.enter-hero:hover{
  background: rgba(0,0,0,.65);
  box-shadow:
    0 0 0 1px rgba(255,214,217,.4),
    0 0 30px rgba(255,110,120,.5);
  transform: translateY(-1px);
}

/* =========================================================
   LANDING PAGE (VIDEO INTRO)
   ========================================================= */

body.landing{
  height:100vh;
  overflow:hidden;
}

.landing-wrap{
  position:relative;
  width:100vw;
  height:100vh;
}

/* Video */
.intro-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:1;

  /* if you like this look, keep it */
  mix-blend-mode: screen;
  opacity: 0.92;
}

/* Overlay */
.overlay{
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;

  background:
    radial-gradient(ellipse at center, rgba(0,0,0,.05), rgba(0,0,0,.18)),
    linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,.18));

  transition: opacity .56s ease;
}

body.intro-finished .overlay{
  opacity:0;
}

/* Bottom control bubble (if you use it) */
.controls{
  position:absolute;
  left:50%;
  bottom:6vh;
  transform:translateX(-50%);
  width:min(720px,92vw);
  padding:14px 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;

  background: var(--panel);
  border:1px solid var(--border);
  border-radius:18px;
  backdrop-filter: blur(12px);

  box-shadow:
    0 0 30px rgba(0,0,0,.5),
    0 0 22px var(--aquaGlow);

  z-index:5;
}

/* Center Enter button container (if you use it) */
.center-enter{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  z-index:6;
  pointer-events:none;
}

.center-enter[aria-hidden="false"]{
  pointer-events:auto;
}

/* =========================================================
   LANDING: "VIEW PORTFOLIO" BUTTON (hide until intro finished)
   Your markup: <a class="enter-hero landing-enter" ...>
   ========================================================= */

body.landing .landing-enter{
  position: absolute;
  left: 50%;
  bottom: 8vh;
  z-index: 10;

  /* centered */
  transform: translateX(-50%);
  will-change: transform, opacity;
  backface-visibility: hidden;

  /* hidden until .intro-finished gets added by JS */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

/* JS adds body.intro-finished (confirmed in your carousel-lightbox.js) */
body.landing.intro-finished .landing-enter{
  opacity: 1;
  pointer-events: auto;
}

/* Fix hover jitter: preserve translateX(-50%) */
body.landing .landing-enter:hover,
body.landing .landing-enter:focus-visible{
  transform: translateX(-50%) translateY(-1px);
}

/* =========================================================
   GENERIC CARD GRID
   ========================================================= */

.card-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:2rem;
  padding:2.5rem;
}

/* Individual card */
.card{
  display:flex;
  flex-direction:column;
  background: rgba(0,0,0,.35);
  border:1px solid var(--border);
  border-radius:18px;
  overflow:hidden;

  box-shadow:
    0 0 0 1px rgba(255,255,255,.05),
    0 0 22px rgba(0,0,0,.45);
}

/* Card content */
.card .card-body{
  padding:1rem 1.25rem;
}

/* Force Oxanium + dusty orange on card text */
.card h3,
.card h4,
.card p{
  font-family: "Oxanium", system-ui, sans-serif;
  color: var(--text);
}

.card h3{
  margin:.25rem 0 .5rem;
  letter-spacing: .04em;
}

.card p{
  margin:0;
  opacity:.9;
  font-size:.95rem;
}

/* =========================================================
   NAVIGATION PAGE CARDS (your body is class="page-home")
   ========================================================= */

.page-home .hero-section{
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.page-home .card-grid{
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.page-home .card{
  margin: 0;
}

/* Long skinny horizontal card */
.page-home .card__link{
  position: relative;
  display: flex;
  align-items: stretch;
  height: 140px;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  box-shadow: 0 12px 40px rgba(0,0,0,.40);
}

/* Image occupies left side */
.page-home .card__background{
  position: relative;
  flex: 0 0 46%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* vibrance */
  filter: saturate(1.55) contrast(1.22) brightness(1.10);
  transform: scale(1.02);
}

/* Gradient overlay to help text read */
.page-home .card__background::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.02) 0%,
    rgba(0,0,0,0.18) 55%,
    rgba(0,0,0,0.30) 100%
  );
}

/* Text area */
.page-home .card__content{
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;

  background: linear-gradient(to right, rgba(0,0,0,0.22), rgba(0,0,0,0));
  border-radius: 18px;
}

/* Heading: Oxanium + dusty orange */
.page-home .card__heading{
  margin: 0;
  font-family: "Oxanium", system-ui, sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.05;
  color: var(--text);
  letter-spacing: .04em;
  text-shadow:
    0 0 6px rgba(0,0,0,.75),
    0 0 18px rgba(0,0,0,.85);
}

/* Hover */
.page-home .card__link:hover .card__background{
  transform: scale(1.03);
  filter: saturate(1.75) contrast(1.25) brightness(1.12);
}

@media (max-width: 720px){
  .page-home .card__link{ height: 120px; }
  .page-home .card__background{ flex-basis: 40%; }
}

/* =========================================================
   FEATURED PROJECT PANEL (navigation page)
   ========================================================= */

.page-home .featured{
  width: min(1100px, 92vw);
  margin: 26px auto 60px;
}

.page-home .featured__panel{
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}

.page-home .featured__kicker,
.page-home .featured__title,
.page-home .featured__desc,
.page-home .fp__caption{
  color: var(--text);
  font-family: "Oxanium", system-ui, sans-serif;
}

.page-home .featured__kicker{
  margin: 0 0 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .85;
}

.page-home .featured__desc{
  margin: 0 0 16px;
  max-width: 75ch;
  line-height: 1.55;
}

.page-home .featured__strip{
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 2px 10px;
}

.page-home .fp__item{
  flex: 0 0 auto;
  width: 280px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
}

.page-home .fp__item img{
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.page-home .fp__caption{
  padding: 10px 12px 12px;
  opacity: .92;
}

/* =========================================================
   IMAGE CAROUSEL (NON-DESTRUCTIVE)
   ========================================================= */

.img-carousel{
  position:relative;
}

.img-slide{
  display:none;
}

.img-slide.is-active{
  display:block;
}

.img-carousel__dots{
  display:flex;
  gap:8px;
  justify-content:center;
  margin-top:10px;
}

.img-carousel__dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background: rgba(255,255,255,.2);
  border:1px solid rgba(255,255,255,.35);
}

.img-carousel__dot.is-active{
  background: rgba(255,255,255,.6);
}

/* =========================================================
   GALLERY GRID + LIGHTBOX (kept from your original)
   ========================================================= */

.page-gallery .page-subtitle{
  margin: 10px 0 0;
  opacity: .85;
}

.gallery-wrap{
  width: min(1200px, 94vw);
  margin: 0 auto 80px;
}

.gallery-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 18px;
}

.gallery-card{
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0,0,0,.35);
}

.gallery-thumb{
  border: 0;
  padding: 0;
  background: transparent;
  display: block;
  width: 100%;
  cursor: pointer;
}

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

.gallery-info{
  padding: 14px 14px 16px;
  background: rgba(0,0,0,.35);
  color: var(--text);
}

.gallery-info h3{
  margin: 0 0 6px;
  font-family: "Oxanium", system-ui, sans-serif;
  font-weight: 600;
  color: var(--text);
}

.gallery-info .meta{
  margin: 0;
  font-size: .95rem;
  opacity: .8;
}

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.lightbox[aria-hidden="false"]{
  display: block;
}

.lightbox__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
}

.lightbox__panel{
  position: relative;
  width: min(1100px, 94vw);
  margin: 5vh auto;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 70px rgba(0,0,0,.55);
}

.lightbox__close{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.lightbox__figure{
  margin: 0;
  background: rgba(0,0,0,.35);
}

.lightbox__figure img{
  width: 100%;
  height: min(62vh, 680px);
  object-fit: contain;
  display: block;
}

.lightbox__text{
  padding: 18px 18px 22px;
  color: var(--text);
  font-family: "Oxanium", system-ui, sans-serif;
}

.lightbox__text h2{
  margin: 0 0 6px;
  font-family: "Oxanium", system-ui, sans-serif;
  font-weight: 600;
  color: var(--text);
}

.lightbox__text .meta{
  margin: 0 0 14px;
  opacity: .85;
}

.lightbox__text .notes{
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 12px;
}

.header-anta-neon {
  font-family: "Anta", "Oxanium", system-ui, sans-serif;
  color: #a86a91;
  letter-spacing: 0.06em;
  line-height: 1.05;

  /* neon glow */
  text-shadow:
    0 0 4px rgba(168, 106, 145, 0.80),
    0 0 10px rgba(168, 106, 145, 0.55),
    0 0 22px rgba(168, 106, 145, 0.40),
    0 0 44px rgba(168, 106, 145, 0.25);
}

/* =========================================================
   DARKER BACKGROUND OVERLAY (ALL PAGES EXCEPT INDEX)
   ========================================================= */

/* Darken the texture overlay on non-landing pages */
body:not(.landing)::before {
  background: rgba(0, 0, 0, 0.70); /* increase from ~0.55 to 0.70 */
}

/* =========================================================
   ABSOLUTE FINAL BACKGROUND LOCK
   This overrides ALL earlier background rules.
   ========================================================= */

/* 1) NEVER let <html> paint a background */
html {
  background: #05060a !important;
}

/* 2) INDEX / LANDING PAGE — FORCE OPAQUE PURPLE */
body.landing.home {
  background-color: #a591aa !important;
  background-image: none !important;
}

/* The visible surface on index */
body.landing.home .landing-wrap {
  background-color: #a591aa !important;
  background-image: none !important;
  min-height: 100vh;
}

/* 3) PREVENT ANY OVERLAY OR VEIL ON INDEX */
body.landing.home::before,
body.landing.home::after {
  content: none !important;
}

/* 4) NON-LANDING PAGES ONLY: texture + dark veil */
body:not(.landing) {
  background-image: url("/Portfolio/Texture5.png") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  background-color: #05060a !important;
  position: relative;
}

/* Dark overlay ONLY on non-landing pages */
body:not(.landing)::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.70);
  pointer-events: none;
  z-index: 0;
}

/* Keep page content above overlay */
body:not(.landing) > * {
  position: relative;
  z-index: 1;
}

/* =========================================================
   HEADER — ANTA NEON (FORCED, OVERRIDE-SAFE)
   ========================================================= */

.header-anta-neon {
  font-family: "Anta", "Oxanium", system-ui, sans-serif !important;
  color: #a86a91 !important;

  letter-spacing: 0.08em;
  line-height: 1.05;

  /* Neon glow */
  text-shadow:
    0 0 4px rgba(168, 106, 145, 0.9),
    0 0 10px rgba(168, 106, 145, 0.7),
    0 0 22px rgba(168, 106, 145, 0.5),
    0 0 42px rgba(168, 106, 145, 0.35);
}

/* =========================================================
   NAVIGATION: RETURN TO VERTICAL CARDS (override horizontal)
   ========================================================= */

/* Back to a multi-column grid */
.page-home .card-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
  width: min(1100px, 92vw);
}

/* Responsive: 2 columns then 1 */
@media (max-width: 1100px){
  .page-home .card-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .page-home .card-grid{ grid-template-columns: 1fr; }
}

/* Make each card a vertical tile again */
.page-home .card__link{
  position: relative;
  display: block;              /* overrides flex */
  height: 200px;               /* vertical tile height (tweak this) */
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  box-shadow: 0 12px 40px rgba(0,0,0,.40);
}

/* Background image fills the card */
.page-home .card__background{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  flex: none;                  /* disables the old 46% split */
  transform: scale(1.02);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.35) contrast(1.12) brightness(1.05);
}

/* Gentle dark overlay so text reads */
.page-home .card__background::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.10) 0%,
    rgba(0,0,0,0.55) 100%
  );
}

/* Text sits on top of the image */
.page-home .card__content{
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 16px 16px;
  background: none;            /* removes the horizontal text panel */
}

/* Card title styling */
.page-home .card__heading{
  margin: 0;
  font-family: "Oxanium", system-ui, sans-serif;
  color: #ffba7d;
  letter-spacing: 0.04em;
  font-size: 1.35rem;
  line-height: 1.05;
  text-shadow: 0 0 10px rgba(0,0,0,0.75);
}

/* Hover: subtle zoom + pop */
.page-home .card__link:hover .card__background{
  transform: scale(1.05);
  filter: saturate(1.55) contrast(1.18) brightness(1.08);
}

/* =========================================================
   CENTER ANTA NEON HEADER
   ========================================================= */

.header-anta-neon {
  text-align: center;
  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   CENTER NAV BAR (ALL PAGES)
   ========================================================= */

/* Center the nav container itself */
.nav-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Ensure parent headers don’t force left alignment */
.page-header,
.header-wrap,
.hero-header {
  text-align: center;
}

/* =========================================================
   NAVIGATION: TALLER VERTICAL CARDS
   ========================================================= */

.page-home .card__link {
  height: 280px;   /* was ~200px — adjust to taste */
}

.page-home .card__content {
  padding: 20px 20px;
}

.page-home .card__background {
  background-position: center 35%;
}

.digital-painting .card-grid {
  grid-template-columns: repeat(5, 1fr);
  max-width: 1800px;
  margin: 0 auto;
}

.digital-painting .card-grid {
  grid-template-columns: repeat(5, 1fr);
  max-width: 1800px;
  margin: 0 auto;
}

/* 1.5x bigger neon page titles */
.page-header h1,
.page-header h2,
.page-header .neon-soft,
.page-header .neon-title {
  font-size: 150%;
}

/* Fullscreen lightbox overlay */
#lightbox,
.lightbox,
.lightbox-overlay {
  position: fixed;
  inset: 0;                 /* top/right/bottom/left: 0 */
  width: 100vw;
  height: 100vh;
  display: none;            /* toggled on via class/JS */
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

/* When open */
#lightbox.is-open,
.lightbox.is-open,
.lightbox-overlay.is-open,
#lightbox.active,
.lightbox.active {
  display: flex;
}

/* The image should scale to the viewport */
#lightbox img,
.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Prevent ancestors from clipping the overlay */
body { overflow-x: hidden; }
body.lightbox-open { overflow: hidden; } /* optional if you toggle it in JS */

.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
  background: rgba(0,0,0,0.75);
}

.lightbox.is-open{ display: flex; }

.lightbox__img{
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox__close{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10000;
}

.lightbox[aria-hidden="true"] {
  display: none;
}

.lightbox[aria-hidden="false"] {
  display: flex;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.75);
  align-items: center;
  justify-content: center;
}

/* Make Anta neon headers bigger */
.header-anta-neon {
  font-size: 1.5em;   /* 1.5x */
  line-height: 1.1;
}

.header-anta-neon{
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
}

.header-anta-neon {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
}

/* About Me hero layout */
.about-me .about-hero {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem;

  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .about-me .about-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Neon social buttons – About Me */
.about-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin: 2.5rem 0 3rem;
}

.social-neon__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;
  border-radius: 999px;

  font-size: 1.6rem;
  color: #ffeefc;
  text-decoration: none;

  text-shadow:
    0 0 4px rgba(255, 220, 248, 0.9),
    0 0 10px rgba(255, 170, 210, 0.9),
    0 0 18px rgba(255, 120, 160, 0.7);

  transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.social-neon__btn:hover {
  transform: translateY(-2px) scale(1.08);
  text-shadow:
    0 0 6px rgba(255, 240, 255, 1),
    0 0 14px rgba(255, 190, 220, 1),
    0 0 26px rgba(255, 150, 190, 0.95);
}

/* Letter badges (Scratch, Notion) */
.social-neon__badge {
  font-weight: 700;
  font-family: "Anta", system-ui, sans-serif;
}

/* =========================
   ARTWORK IMAGE FIX
   ========================= */

.artwork-figure {
  margin: 0;
}

.artwork-image-link {
  display: block;
}

/* CRITICAL: prevent cropping */
.artwork-figure img {
  width: 100%;
  height: auto;           /* <-- do NOT force height */
  max-height: none;
  object-fit: contain;    /* <-- prevents weird crop */
  display: block;
  border-radius: 18px;
}

.tools-list {
  margin-left: 1.2rem;
}

.tools-list li {
  margin-bottom: 0.3rem;
}

/* =========================
   INTRO VIDEO — HARD FIX
   ========================= */

.intro-video {
  display: block !important;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 1;
}

/* Make sure the wrapper actually has height */
.hero,
.intro-wrap,
.landing-hero,
.video-wrap {
  position: relative;
  min-height: 60vh;
  overflow: visible;
}

.tap-to-play {
  position: absolute;
  inset: 0;
  display: none;            /* JS will toggle */
  align-items: center;
  justify-content: center;
  pointer-events: none;     /* IMPORTANT */
  z-index: 3;
}

.tap-to-play .tap-pill {
  pointer-events: auto;
}

.tap-to-play {
  position: absolute;
  inset: 0;
  display: none;            /* JS will toggle */
  align-items: center;
  justify-content: center;
  pointer-events: none;     /* IMPORTANT */
  z-index: 3;
}

.tap-to-play .tap-pill {
  pointer-events: auto;
}

.intro-wrapper {
  position: relative;
  width: 100%;
  height: 100vh; /* Full screen */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.intro-wrapper video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.enter-btn {
  position: relative;
  z-index: 2;
  padding: 16px 40px;
  font-family: 'Anta', sans-serif;
  font-size: 1.2rem;
  text-decoration: none;
  color: white;
  background: #a86a91;
  border-radius: 40px;
  box-shadow: 0 0 15px #a86a91, 0 0 30px #a86a91;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.enter-btn.show {
  opacity: 1;
}

/* Thumbnail image should show entire image */
.gallery-grid img,
.gallery-thumb img,
.thumb img {
  width: 100%;
  height: auto;
  object-fit: contain; /* key */
  display: block;
}

/* If a wrapper is forcing a fixed height + clipping, remove/override it */
.gallery-thumb,
.thumb,
.thumb-wrap,
.image-frame {
  height: auto;
  overflow: visible;
}

/* Thumbnail image should show entire image */
.gallery-grid img,
.gallery-thumb img,
.thumb img {
  width: 100%;
  height: auto;
  object-fit: contain; /* key */
  display: block;
}

/* If a wrapper is forcing a fixed height + clipping, remove/override it */
.gallery-thumb,
.thumb,
.thumb-wrap,
.image-frame {
  height: auto;
  overflow: visible;
}

/* PROCESS MODAL */

.process-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}

.process-modal.active {
  display: flex;
}

.process-content {
  background: #111;
  padding: 40px;
  max-width: 700px;
  width: 90%;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(168,106,145,0.4);
  color: #f4e9f2;
  position: relative;
}

.process-close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #a86a91;
}

.process-btn {
  margin-top: 12px;
  background: transparent;
  border: 1px solid #a86a91;
  color: #a86a91;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
}

.process-btn:hover {
  background: #a86a91;
  color: #05060a;
}

.process-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
}

.process-content {
  background: #111;
  padding: 2rem;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 16px;
}

.process-close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 2rem;
  cursor: pointer;
}

/* =========================================================
   DIGITAL PAINTING — make card background images render
   ========================================================= */

.digital-painting .card__link{
  position: relative;
  display: block;
  height: 280px;           /* adjust to taste */
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  box-shadow: 0 12px 40px rgba(0,0,0,.40);
}

.digital-painting .card__background{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 35%; /* tweak per card if needed */
  background-repeat: no-repeat;
  transform: scale(1.02);
  filter: saturate(1.35) contrast(1.12) brightness(1.05);
}

.digital-painting .card__background::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.10) 0%,
    rgba(0,0,0,0.55) 100%
  );
}

.digital-painting .card__content{
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 20px 20px;
}

.digital-painting .card__heading{
  margin: 0;
  color: var(--text);
  text-shadow: 0 0 10px rgba(0,0,0,0.75);
}

/* =========================================================
   PROCESS MODAL
   ========================================================= */

.process-notes.is-hidden { display: none; }

.process-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.process-modal.is-open{ display: block; }

.process-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

/* The panel */
.process-modal__panel{
  position: absolute;
  top: 120px;
  right: 48px;               /* "next to" the grid area */
  width: min(520px, calc(100vw - 96px));
  max-height: calc(100vh - 180px);
  overflow: auto;

  border-radius: 20px;
  padding: 18px 18px 16px;

  background: rgba(10, 10, 16, .86);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);

  backdrop-filter: blur(10px);
}

.process-modal__title{
  margin: 0 44px 10px 0;
}

.process-modal__body{
  line-height: 1.45;
}

.process-modal__body p{ margin: 0 0 12px; }

.process-modal__close{
  position: absolute;
  top: 10px;
  right: 10px;

  width: 38px;
  height: 38px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  color: inherit;
  cursor: pointer;
}

/* Mobile: center it */
@media (max-width: 820px){
  .process-modal__panel{
    top: 80px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(560px, calc(100vw - 40px));
  }
}

/* =========================================================
   PROCESS POPUP (CodePen-style overlay + fixed panel)
   ========================================================= */

.process-overlay{
  position: fixed;
  inset: 0;
  background: rgba(8, 0, 20, 0.72); /* deep purple veil */
  backdrop-filter: blur(6px);
  z-index: 9998;
}

.process-popup{
  position: fixed;
  z-index: 9999;

  /* “next to the image” default: right side */
  top: 140px;
  right: 48px;

  width: min(560px, calc(100vw - 96px));
  max-height: calc(100vh - 200px);
  overflow: auto;

  border-radius: 22px;
  padding: 18px 18px 16px;

  background: rgba(5, 6, 10, 0.88);
  border: 1px solid rgba(168, 106, 145, 0.45); /* #a86a91 glow edge */
  box-shadow:
    0 24px 80px rgba(0,0,0,.60),
    0 0 28px rgba(255, 214, 217, .22); /* soft pink glow */

  color: rgba(255,255,255,.92);
}

.process-popup__title{
  margin: 0 40px 12px 0;
  color: #ffd6d9; /* soft neon pink */
  text-shadow: 0 0 10px rgba(255, 214, 217, .28);
}

.process-popup__body{
  line-height: 1.55;
  font-size: 0.98rem;
}

.process-popup__body p{ margin: 0 0 12px; }
.process-popup__body a{ color: #ffd6d9; }

.process-popup__close{
  position: absolute;
  top: 10px;
  right: 10px;

  width: 38px;
  height: 38px;
  border-radius: 999px;

  border: 1px solid rgba(168, 106, 145, 0.55);
  background: rgba(0,0,0,.35);
  color: #ffd6d9;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(168,106,145,.25);
}

/* Mobile: center it */
@media (max-width: 900px){
  .process-popup{
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    top: 90px;
    width: min(620px, calc(100vw - 32px));
    max-height: calc(100vh - 140px);
  }
}

/* Patch: allow navigation bar to wrap on smaller screens */
.nav-bar {
  flex-wrap: wrap;
}

.gallery-text-section {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 1.5rem 2rem;
}

.gallery-text-section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.gallery-text-section p {
  line-height: 1.6;
  font-size: 1rem;
}

.hero-section {
  width: 100%;
  display: block;
  margin: 2rem auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 520px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.card {
  height: 245px;
}

.card__link {
  display: block;
  height: 100%;
}

.card__background {
  height: 100%;
  background-size: cover;
  background-position: center;
}

.featured {
  width: 100%;
  max-width: 1200px;
  margin: 3rem auto;
}

/* HOME PAGE LAYOUT FIX */

.page-home main {
  display: block;
  width: 100%;
}

.page-home .hero-section {
  width: 100%;
  display: block;
  margin: 2rem auto 3rem auto;
}

.page-home .card-grid {
  display: grid;
  grid-template-columns: repeat(2, 170px);
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.page-home .card {
  width: 170px;
  height: 245px;
}

.page-home .card__link {
  display: block;
  width: 100%;
  height: 100%;
}

.page-home .card__background {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.page-home .featured {
  display: block;
  width: min(1200px, calc(100% - 3rem));
  margin: 3rem auto;
  clear: both;
}

.page-home .featured__panel {
  width: 100%;
}

.page-home .header-anta-neon {
  text-align: center;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1.05;
  margin: 1rem auto 2rem auto;
}

.page-home .card-grid {
  grid-template-columns: repeat(2, 220px);
  max-width: 500px;
}

.page-home .card {
  width: 220px;
  height: 245px;
}

.page-home .card-grid {
  grid-template-columns: repeat(2, 330px);
  max-width: 740px;
  gap: 3rem;
}

.page-home .card {
  width: 330px;
  height: 420px;
}

@media (max-width: 760px) {
  .page-home .card-grid {
    grid-template-columns: 1fr;
    max-width: 330px;
  }

  .page-home .card {
    width: 100%;
    height: 420px;
  }
}

/* Force larger home-page cards */

body.page-home .hero-section .card-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 340px) !important;
  justify-content: center !important;
  gap: 3.5rem !important;
  max-width: 780px !important;
  width: 100% !important;
  margin: 2rem auto 4rem auto !important;
  padding: 0 !important;
  list-style: none !important;
}

body.page-home .hero-section .card {
  width: 340px !important;
  height: 430px !important;
  max-width: none !important;
  min-height: 0 !important;
}

body.page-home .hero-section .card__link {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

body.page-home .hero-section .card__background {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  background-size: cover !important;
  background-position: center !important;
}

/* Home page title refinement */

body.page-home .header-anta-neon {
  font-size: clamp(3rem, 6vw, 6.5rem) !important;
  line-height: 1.05 !important;
  text-align: center !important;
  margin: 1rem auto 2.5rem auto !important;

  text-shadow:
    0 0 6px rgba(255, 150, 220, 0.95),
    0 0 14px rgba(255, 120, 210, 0.85),
    0 0 28px rgba(255, 90, 200, 0.65),
    0 0 48px rgba(255, 70, 190, 0.45) !important;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;

  width: 100%;
  max-width: 1000px;
  margin: 30px auto 0 auto;
}

.card {
  width: 145px;
  height: 185px;
  flex: 0 0 auto;
}

/* Force smaller home-page title */

html body.page-home header.home-header h1.header-anta-neon {
  font-size: clamp(2.4rem, 4.5vw, 4.8rem) !important;
  line-height: 1.05 !important;
  text-align: center !important;
  margin: 1rem auto 2rem auto !important;

  text-shadow:
    0 0 8px rgba(255, 150, 220, 1),
    0 0 18px rgba(255, 120, 210, 0.95),
    0 0 36px rgba(255, 90, 200, 0.75),
    0 0 60px rgba(255, 70, 190, 0.55) !important;
}

.card-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 0;
  margin: 0 auto;
  max-width: 1200px;
}

.card {
  width: 210px;
  height: 320px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.card__link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.card__background {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
}

.card:hover .card__background {
  transform: scale(1.06);
}

.card__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.05)
  );
}

.card__heading {
  margin: 0;
  color: white;
}

.page-home .card-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 180px);
  gap: 1.25rem;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  margin: 0 auto;
  max-width: none;
}

.page-home .card {
  width: 180px;
  height: 300px;
}

.page-home .card__link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.page-home .card__background {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.page-home .card__content {
  position: absolute;
  inset: 0;
}
