/* ---------- RESET / BASE ---------- */
[hidden] { display: none !important; }

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
}

:root {
    --bg: #e9efe8;
    --shadow-dark: #c6d2c4;
    --shadow-light: #ffffff;
    --ink: #1f2a1c;
    --muted: #566253;
    --accent: #4a9a50;
    --accent-soft: #7ebb80;
    --line: rgba(31, 70, 37, 0.14);
    --green-900: #0f2413;
    --green-800: #16331b;
    --green-700: #1f4625;
    --green-600: #25572c;
    --green-500: #2e6d36;
    --green-400: #4a9a50;
    --green-300: #7ebb80;
    --green-100: #dcede0;
    --green-50: #f1f7f1;
    --paper: #fbfdfb;
    --container: 1100px;
    --gray: #d9d9d9;

    --outline-green: rgba(74, 154, 80, 0.55);
    --placeholder-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23a3a3a3' stroke-width='3' stroke-linejoin='round' stroke-linecap='round'%3E%3Crect x='6' y='10' width='52' height='44' rx='4'/%3E%3Ccircle cx='22' cy='25' r='5'/%3E%3Cpath d='M6 46 L22 32 L34 42 L42 35 L58 48'/%3E%3C/svg%3E");
}

body {
  font-family: "Surt";
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ================= IMAGE PLACEHOLDER ================= */
.ph {
  position: relative;
  overflow: hidden;
  background: var(--gray) var(--placeholder-icon) center / 28% auto no-repeat;
  outline: 2px solid var(--outline-green);
  outline-offset: 8px;
}

.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- TOP BAR ---------- */
.topbar {
  height: 41px;
  background: var(--green-50);
  border-bottom: 1px solid var(--line);
  
}

/* ========================================= */
/* HERO & CAROUSEL                           */
/* ========================================= */
.hero {
  position: relative;
  width: 100%;
  padding-top: 48px;
  background: linear-gradient(to bottom, var(--paper) 0%, var(--green-50) 30%, var(--green-100) 70%, var(--green-300) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transition: padding-top 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero.has-cover { padding-top: 320px; }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #d3dcd1 var(--placeholder-icon) center 34% / 110px auto no-repeat;
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-bg img[hidden] { display: none; }

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(126, 187, 128, 0) 45%, rgba(126, 187, 128, 0.85) 100%);
  pointer-events: none;
}

.hero.has-cover .hero-bg::after {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), rgba(15, 36, 19, 0.78));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ================= CAROUSEL ================= */
.carousel {
  position: relative;
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  --card-w: clamp(180px, 18vw, 330px);
  --gap: 24px;
  --step: calc((var(--card-w) + var(--gap)) * 0.92);
  height: calc(var(--card-w) * 1.4 + 150px);
  touch-action: pan-y;
}

.carousel-track { position: absolute; inset: 0; cursor: grab; }
.carousel-track.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }

/* ================= CARD DESIGN ================= */
.card {
  position: absolute;
  left: 50%;
  bottom: 36px;
  width: var(--card-w);
  margin-left: calc(var(--card-w) / -2);
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  padding: 22px;
  overflow: hidden;
  cursor: grab;
  background: var(--gray);
  border: 1px solid rgba(31, 70, 37, 0.2);
  box-shadow: 10px 10px 18px rgba(31, 70, 37, 0.12), -6px -6px 14px rgba(255, 255, 255, 0.9);
  --s: 1;
  --lift: 0px;
  transform: translateX(calc(var(--d, 0) * var(--step))) translateY(var(--lift)) scale(var(--s));
  transform-origin: 50% 100%;
  transition: transform 0.7s cubic-bezier(0.22, 0.8, 0.28, 1), opacity 0.5s ease, box-shadow 0.5s ease;
  will-change: transform, opacity;
}

.card[data-dist="0"] { --s: 1.04; --lift: -96px; z-index: 3; box-shadow: 14px 16px 28px rgba(31, 70, 37, 0.2), -6px -6px 14px rgba(255, 255, 255, 0.9); }
.card[data-dist="1"] { --s: 0.9;  --lift: -48px; z-index: 2; }
.card[data-dist="2"] { --s: 0.78; --lift: 0px;   z-index: 1; opacity: 0.95; }
.card[data-dist="3"] { --s: 0.7;  --lift: 0px;   z-index: 0; opacity: 0; pointer-events: none; }

.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.8s ease;
}

.card-logo { object-fit: contain; }
.carousel-track.is-dragging .card { cursor: grabbing; }

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

.card-all { background: linear-gradient(160deg, var(--green-100) 0%, var(--green-300) 100%); }
.card-all .card-img { object-fit: contain; padding: 24% 18% 26%; }
.card-all h3, .card-all .card-link { color: var(--ink); text-shadow: none; }

.card h3 {
  position: relative;
  z-index: 1;
  font-family: "SurtBold";
  font-size: clamp(0.95rem, 1.5vw, 1.35rem);
  font-weight: 800;
  line-height: 1.2;
  padding-right: 40px;
  text-align: left;
  color: #ffffff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  margin: 0;
}

.card-logo { position: absolute; top: 18px; right: 20px; width: 38px; height: 38px; z-index: 1; }

.card-link {
  position: absolute;
  left: 22px;
  bottom: 22px;
  font-size: clamp(0.9rem, 1.4vw, 1.25rem);
  font-weight: 700;
  z-index: 1;
  color: #ffffff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.card-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 5px 5px 12px rgba(15, 36, 19, 0.35), -3px -3px 8px rgba(255, 255, 255, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.2s ease;
  z-index: 1;
}

.card-btn:hover { background: var(--green-300); transform: scale(1.1); }
.card-btn:active { transform: scale(0.94); box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.25), inset -3px -3px 6px rgba(255, 255, 255, 0.4); }
.card-btn svg { width: 36px; height: 36px; }

/* ================= CAROUSEL CONTROLS ================= */
.carousel-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 5;
}

.progress {
  position: relative;
  width: 220px;
  height: 8px;
  background: var(--bg);
  border-radius: 10px;
  box-shadow: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
  cursor: pointer;
  touch-action: pan-y;
}

.progress-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 100%;
  background: var(--green-600);
  border-radius: 10px;
  transition: left 0.7s cubic-bezier(0.22, 0.8, 0.28, 1);
  box-shadow: 2px 2px 4px rgba(31, 70, 37, 0.25);
  cursor: grab;
}

.progress.dragging .progress-thumb { cursor: grabbing; transition: none; }

.arrows { display: flex; gap: 14px; }

.arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.2s ease, color 0.2s ease;
}

.arrow svg { width: 18px; height: 18px; }
.arrow:hover { background: var(--green-600); color: #fff; transform: translateY(-2px) scale(1.1); }
.arrow:active { transform: scale(0.94); box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.2), inset -3px -3px 6px rgba(255, 255, 255, 0.5); }
.arrow:disabled { opacity: 0.4; pointer-events: none; }

/* ========================================= */
/* PROFILE SECTION                           */
/* ========================================= */
.profile { width: 100%; border-bottom: 1px solid var(--line); }

.profile-inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  min-height: 520px;
  display: flex;
}

.profile-left { position: relative; width: 50%; padding: 56px 24px 64px; z-index: 2; }
.profile-label { font-size: 28px; font-weight: 300; line-height: 1.2; margin-bottom: 16px; color: var(--muted); }
.profile-name { font-family: "Pinsans"; font-size: clamp(32px, 4vw, 44px); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); overflow-wrap: anywhere; }
.profile-role { font-size: 28px; font-weight: 300; line-height: 1.2; margin-top: 2px; margin-bottom: 18px; color: var(--accent); }

.profile-bio {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
  max-width: 400px;
  overflow-wrap: anywhere;
  text-align: justify;
  text-align-last: left;
  border-left: 3px solid var(--green-400);
  padding-left: 16px;
}

.socials { display: flex; gap: 16px; margin-top: 20px; }
.social { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--bg); box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light); transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.2s ease; }
.social:hover { background: var(--green-100); transform: translateY(-2px) scale(1.1); }
.social:active { transform: scale(0.94); box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.15), inset -3px -3px 6px rgba(255, 255, 255, 0.6); }

.social { display: inline-flex; align-items: center; justify-content: center; }
.social img { width: 22px; height: 22px; object-fit: contain; display: block; }
.social-extra { width: auto; padding: 0 16px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--accent); }

.thumbs { display: flex; gap: 30px; margin: 44px 0 0 10px; position: relative; }
.thumbs .ph { width: 124px; height: 187px; flex: 0 0 auto; box-shadow: 1px 2px 1px rgba(0, 0, 0, 0.5); }
.thumbs .profile-avatar-frame { height: auto; aspect-ratio: 1; border-radius: 50%; }
.thumbs .profile-avatar { border-radius: 50%; object-fit: cover; }

.profile-right {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  padding: 0 24px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

.mcol { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; max-width: 375px; padding-top: 18px; will-change: transform; }
.mcol-a { animation: scrollUp 40s linear infinite; }
.mcol-b { animation: scrollDown 40s linear infinite; }
.profile-right:hover .mcol { animation-play-state: paused; }
.mcol .ph { width: 100%; aspect-ratio: 3 / 4; flex: 0 0 auto; margin-bottom: 30px; box-shadow: 1px 2px 1px rgba(0, 0, 0, 0.5); }

@keyframes scrollUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes scrollDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }

/* ---------- COMMISSIONS ---------- */
.commissions { width: 100%; padding-bottom: 80px; }
.commissions-title { text-align: right; font-size: 38px; font-weight: 700; letter-spacing: 0.2px; line-height: 1; padding-top: 26px; color: var(--ink); }
.commissions-line { border: 0; border-top: 1px solid var(--ink); margin: 18px 0 14px; }
.commission-grid { display: flex; gap: 22px; align-items: flex-start; }
.ccol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ccard { width: 100%; border-radius: 4px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.cimg { width: 100%; display: block; outline: none; outline-offset: 0; }
.cimg--square { aspect-ratio: 1 / 1; }
.cimg--portrait { aspect-ratio: 4 / 5; }
.cimg--landscape { aspect-ratio: 3 / 2; }
.cbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 64px; padding: 0 14px; background: var(--bg); }
.cbar h3 { font-size: 36px; font-weight: 700; line-height: 1; color: var(--ink); }
.cbtns { display: flex; gap: 12px; flex-shrink: 0; }

.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 18px; border: 1px solid rgba(31, 70, 37, 0.12); border-radius: 999px; background: var(--bg); color: var(--accent); font-family: "Surt"; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light); transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.2s ease, color 0.2s ease; }
.pill-sm { padding: 8px 14px; font-size: 11px; letter-spacing: 0.06em; }
.pill:hover { transform: translateY(-2px) scale(1.06); background: var(--green-600); color: #fff; box-shadow: 7px 7px 14px var(--shadow-dark), -7px -7px 14px var(--shadow-light); }
.pill:active { transform: scale(0.95); box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.2), inset -3px -3px 6px rgba(255, 255, 255, 0.5); }

.ccard .cbtns .pill {
  border-color: rgba(31, 70, 37, 0.16);
  box-shadow: 4px 4px 8px rgba(31, 70, 37, 0.12), -3px -3px 7px rgba(255, 255, 255, 0.62);
}

.ccard .cbtns .pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(31, 70, 37, 0.2), -2px -2px 6px rgba(255, 255, 255, 0.4);
}

html[data-theme="dark"] .thumbs .profile-avatar-frame {
  outline-color: rgba(126, 187, 128, 0.55);
}

html[data-theme="dark"] .ccard .cbtns .pill {
  border-color: var(--line);
  box-shadow: 3px 4px 8px rgba(0, 0, 0, 0.24), -2px -2px 6px rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .ccard .cbtns .pill:hover {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #ffffff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.28), -2px -2px 5px rgba(255, 255, 255, 0.05);
}

/* ================= MODAL OVERLAY ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

/* ITO YUNG MALAKING BOX */
.modal-box {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 65vh; 
  min-height: 800px;
  display: flex;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
  background: #e5e5e5;
  opacity: 0;
  transform: translateY(8px) scale(0.99);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.modal-overlay.active .modal-box { opacity: 1; transform: none; }
/* KALIWA: Green Part (Image Placeholder) */
.modal-left {
  width: 33.33%;
  position: relative;
  background: #d9d9d9 var(--placeholder-icon) center / 30% auto no-repeat; /* Nilagyan ng image placeholder */
  overflow: hidden;
}

/* Dito lalapat yung image pag nilagay mo na */
.modal-left img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-left .commission-slideshow-image {
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.modal-left .commission-slideshow-image.is-fading { opacity: 0; }
.modal-left .inquire-profile-image { object-fit: cover; }

/* BACK BUTTON SA LOOB NG GREEN */
.back-btn-pill {
  position: absolute;
  top: 40px;
  left: 40px;
  width: 80px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  z-index: 10;
}

.back-btn-pill svg { width: 20px; height: 20px; stroke: currentColor; transition: stroke 0.2s ease; }
.back-btn-pill:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
  transform: translateY(-2px);
}
.back-btn-pill:active {
  transform: translateY(1px);
  box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.22), inset -3px -3px 6px rgba(255, 255, 255, 0.35);
}

.modal-logo {
  position: absolute;
  top: 28px;
  right: 32px;
  width: 40px;
  height: 40px;
  z-index: 10;
  pointer-events: none;
}

.modal-logo img { width: 100%; height: 100%; object-fit: contain; }

/* KANAN: Gray Part */
.modal-right {
  width: 66.66%;
  background: #e5e5e5;
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#generalCommissionGuidelines {
  list-style-position: outside;
  padding-left: 1.25rem;
  margin-top: 0.75rem;
}

#generalCommissionGuidelines li {
  padding-left: 0.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.modal-text-content { max-width: 500px; }

/* --- TEXT STYLES --- */
.m-subtitle { font-family: "Surt"; font-size: 24px; font-weight: 700; color: #111; margin-bottom: 10px; }
.m-title { font-family: "Pinsans"; font-size: clamp(36px, 5vw, 56px); font-weight: 500; color: #8ba891; line-height: 1.1; margin-bottom: 10px; overflow-wrap: anywhere; }
.m-artist { font-family: "Pinsans"; font-size: 26px; font-weight: 400; color: #333; margin-bottom: 30px; overflow-wrap: anywhere; }
.m-list { font-family: "Surt"; font-size: 16px; color: #444; line-height: 1.8; padding-left: 20px; margin-bottom: 40px; }
.m-lets-talk { font-family: "Surt"; font-size: 16px; color: #444; border-left: 2px solid #8ba891; padding-left: 10px; margin-bottom: 20px; }
.m-action-btn { padding: 12px 50px; border: 1.5px solid #333; border-radius: 30px; background: transparent; font-family: "Surt"; font-size: 18px; cursor: pointer; transition: 0.2s; }
.m-action-btn:hover { background: #333; color: #fff; }
.m-socials { display: flex; gap: 20px; }
.m-social-circle { width: 55px; height: 55px; border-radius: 50%; border: 1.5px solid #333; display: flex; align-items: center; justify-content: center; color: #333; transition: 0.2s; }
.m-social-circle:hover { background: #8ba891; color: #fff; border-color: #8ba891; }
.m-social-circle svg { width: 26px; height: 26px; }

/* Responsive */
@media (max-width: 900px) {
  .modal-box { flex-direction: column; height: auto; }
  .modal-left { width: 100%; height: 120px; }
  .modal-right { width: 100%; padding: 40px; }
  .modal-logo { top: 132px; right: 20px; width: 40px; height: 40px; }
  .back-btn-pill { top: 20px; left: 20px; }
}

body.artist-selected-state .site-header .buttonbar:hover,
body.artist-selected-state .site-header .buttonbar[aria-current="page"] {
  color: var(--nav-text);
  border-bottom-color: var(--green-500);
}

/* ---------- RESPONSIVE (OTHER) ---------- */
@media (max-width: 900px) {
  .card[data-dist="2"] { opacity: 0; pointer-events: none; }
}

@media (max-width: 860px) {
  .profile-inner { flex-direction: column; min-height: 0; }
  .profile-left { width: 100%; padding-bottom: 24px; }
  .profile-right { position: relative; width: 100%; height: 520px; }
  .cbar h3 { font-size: 26px; }
  .hero.has-cover { padding-top: 220px; }
}

@media (max-width: 640px) {
  .commission-grid { flex-direction: column; }
  .ccol { width: 100%; }
  .commissions-title { font-size: 28px; }
  .profile-name { font-size: 32px; }
  .thumbs { gap: 24px; }
  .thumbs .ph { width: 96px; height: 144px; }
  .thumbs .profile-avatar-frame { height: auto; }
  .cbar { height: auto; padding: 10px 14px; flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .carousel { --card-w: min(62vw, 300px); }
  .card[data-dist="1"] { opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .carousel-track, .progress-thumb, .hero, .pill, .arrow, .modal-overlay, .modal-box { transition-duration: 0.01ms; }
}