/* ============================================================
   DAYA — Master Artist Website
   style.css
   ============================================================ */

/* ── RESET & VARIABLES ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0C0804;
  --bg2:      #140E06;
  --ink:      #F4ECD8;
  --muted:    #9A8A6A;
  --gold:     #C8961A;
  --saffron:  #D4651C;
  --border:   rgba(200, 150, 26, 0.18);
  --border2:  rgba(244, 236, 216, 0.10);

  --playfair:  'Playfair Display', Georgia, serif;
  --cormorant: 'Cormorant Garamond', Georgia, serif;
  --cinzel:    'Cinzel', serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--cormorant);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ─────────────────────────────────────────── */
#cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--gold);
  transition: width 0.25s, height 0.25s;
  mix-blend-mode: screen;
}
#cursor.hover {
  width: 52px;
  height: 52px;
  background: rgba(200, 150, 26, 0.2);
  border: 1px solid var(--gold);
}
#cursor-trail {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border: 1px solid rgba(200, 150, 26, 0.3);
  transition: left 0.1s ease, top 0.1s ease;
}

/* ── CANVAS NOISE TEXTURE ──────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 500;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
}

/* ── LOADER ────────────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 28px;
  transition: opacity 0.9s, visibility 0.9s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-logo { opacity: 0; animation: fadeIn 1s 0.3s forwards; }
.loader-bar-wrap { width: 180px; height: 1px; background: var(--border); }
.loader-bar {
  height: 1px;
  background: linear-gradient(to right, var(--saffron), var(--gold));
  width: 0;
  animation: loadBar 2.4s ease-out forwards;
}

/* ── NAVIGATION ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 60px 44px;
  background: linear-gradient(
    to bottom,
    rgba(12, 8, 4, 0.92) 0%,
    rgba(12, 8, 4, 0.72) 60%,
    transparent 100%
  );
  transition: background 0.4s, padding 0.3s;
}
nav.scrolled {
  background: rgba(12, 8, 4, 0.97);
  border-bottom: 1px solid var(--border);
  padding-bottom: 22px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
  opacity: 0;
  animation: fadeUp 1s 2.6s forwards;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--cinzel);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.25s;
  cursor: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
.nav-links a:hover { color: var(--gold); text-shadow: none; }

/* ── HERO ──────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,8,4,1) 0%, rgba(12,8,4,0.55) 40%, rgba(12,8,4,0.2) 100%);
}
.hero-content { position: relative; z-index: 10; padding: 0 60px 80px; width: 100%; }
.hero-eyebrow {
  font-family: var(--cinzel);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 1s 2.7s forwards;
}
.hero-name { opacity: 0; animation: fadeUp 1s 2.8s forwards; margin-bottom: 20px; }
.hero-divider {
  width: 60px; height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: 20px 0;
  opacity: 0;
  animation: fadeIn 1s 3.1s forwards;
}
.hero-tagline {
  font-family: var(--cormorant);
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 300;
  font-style: italic;
  color: rgba(244, 236, 216, 0.72);
  max-width: 520px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 1s 3.2s forwards;
}
.hero-stats {
  display: flex;
  gap: 44px;
  align-items: center;
  margin-top: 36px;
  opacity: 0;
  animation: fadeUp 1s 3.4s forwards;
}
.stat-num {
  font-family: var(--playfair);
  font-size: 36px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-family: var(--cinzel);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}
.stat-sep { width: 1px; height: 40px; background: var(--border); }
.hero-scroll {
  position: absolute;
  bottom: 36px;
  right: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--cinzel);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fadeIn 1s 4s forwards;
  cursor: none;
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── MARQUEE ───────────────────────────────────────────────── */
.marquee-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 14px 0;
  background: var(--bg2);
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.marquee-item {
  font-family: var(--cinzel);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 44px;
}
.marquee-item .dot { color: var(--gold); margin-right: 5px; }

/* ── ABOUT ─────────────────────────────────────────────────── */
#about {
  padding: 130px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
  background: var(--bg); /* ensure no text bleeds behind */
}
.about-img-wrap { position: relative; }
.about-img {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  /* Taller frame to show more of the beach portrait */
  max-height: 580px;
}
.about-img img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 0.7s ease;
}
.about-img:hover img { transform: scale(1.03); }
.about-corner {
  position: absolute;
  width: 22px; height: 22px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.6;
}
.about-corner.tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.about-corner.tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.about-corner.bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.about-corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.about-caption {
  margin-top: 14px;
  font-family: var(--cinzel);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.label {
  font-family: var(--cinzel);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 18px;
}
.about-text h2 {
  font-family: var(--playfair);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 26px;
}
.about-text h2 em { font-style: italic; color: var(--gold); }
.about-text p {
  font-family: var(--cormorant);
  font-size: 18px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 16px;
}
.about-text p strong { color: var(--ink); font-weight: 400; }
.art-forms {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.art-form-item {
  padding: 11px 0;
  border-bottom: 1px solid var(--border2);
  font-family: var(--cormorant);
  font-size: 16px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s;
}
.art-form-item:hover { color: var(--ink); }
.art-form-item::before { content: '—'; color: var(--gold); font-size: 11px; }

/* ── DEVOTION ──────────────────────────────────────────────── */
#devotion {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Background image is truly behind the content — no fixed height */
.devotion-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.devotion-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.5) saturate(0.5);
}

/* Content sits in normal flow — section height is driven by content */
.devotion-overlay {
  position: relative;   /* ← normal flow, not absolute */
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 40px;  /* generous top/bottom so it looks full on desktop too */
  min-height: 620px;    /* keeps it tall on desktop, but expands if needed on mobile */
}

.dq-mark {
  font-family: var(--playfair);
  font-size: 180px;
  line-height: 0.5;
  color: rgba(200, 150, 26, 0.09);
  user-select: none;
  margin-bottom: 12px;
}
#devotion h2 {
  font-family: var(--playfair);
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  max-width: 800px;
  margin: 0 auto 26px;
}
#devotion h2 em { font-style: italic; color: var(--gold); }
.devotion-body {
  font-family: var(--cormorant);
  font-size: 20px;
  font-style: italic;
  font-weight: 300;
  color: rgba(244, 236, 216, 0.65);
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.8;
}
.devotion-numbers { display: flex; justify-content: center; flex-wrap: wrap; }
.devo-num-item { padding: 30px 60px; border: 1px solid var(--border); }
.devo-num-item + .devo-num-item { border-left: none; }
.devo-big { font-family: var(--playfair); font-size: 58px; font-weight: 400; color: var(--gold); line-height: 1; }
.devo-lbl { font-family: var(--cinzel); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 7px; }

/* ── GALLERY ───────────────────────────────────────────────── */
#gallery { padding: 130px 60px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 60px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.section-head h2 { font-family: var(--playfair); font-size: clamp(32px, 4vw, 50px); font-weight: 400; }
.section-head .count { font-family: var(--cinzel); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* Masonry columns — each painting shown at its natural full height */
.gallery-grid {
  columns: 3;
  column-gap: 16px;
}
.gcard {
  break-inside: avoid;        /* never split a card across columns */
  display: inline-block;      /* required for columns layout */
  width: 100%;
  margin-bottom: 16px;
  position: relative;
  border: 1px solid var(--border);
  cursor: none;
  background: var(--bg2);
  overflow: hidden;
}

/* Image shows at natural aspect ratio — zero cropping */
.gcard-img { position: relative; overflow: hidden; }
.gcard-img img {
  width: 100%;
  height: auto;               /* ← full painting, never cropped */
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gcard:hover .gcard-img img { transform: scale(1.04); }

/* Overlay fades in on hover */
.gcard-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(12, 8, 4, 0.88) 0%,
    rgba(12, 8, 4, 0.18) 45%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.gcard:hover .gcard-overlay { opacity: 1; }
.gcard-overlay-text { font-family: var(--cormorant); font-style: italic; font-size: 14px; color: var(--ink); }

/* Card label strip */
.gcard-info { padding: 12px 16px; background: var(--bg2); }
.gcard-medium {
  font-family: var(--cinzel);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 4px;
}
.gcard-title { font-family: var(--playfair); font-size: 15px; font-weight: 400; font-style: italic; }
.gallery-cta { text-align: center; margin-top: 56px; }

/* ── PHILOSOPHY ────────────────────────────────────────────── */
#philosophy {
  padding: 130px 60px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 90px;
  align-items: start;
}
#philosophy .left { position: sticky; top: 90px; }
#philosophy .left h2 { font-family: var(--playfair); font-size: clamp(32px, 3.5vw, 48px); font-weight: 400; line-height: 1.1; }
#philosophy .left h2 em { font-style: italic; color: var(--gold); }
.phi-item {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 26px;
  align-items: start;
}
.phi-num { font-family: var(--playfair); font-size: 38px; font-style: italic; color: rgba(200, 150, 26, 0.3); line-height: 1; }
.phi-body h3 { font-family: var(--playfair); font-size: 22px; font-weight: 400; margin-bottom: 10px; }
.phi-body p { font-family: var(--cormorant); font-size: 17px; font-weight: 300; color: var(--muted); line-height: 1.9; }

/* ── FEATURED QUOTE ────────────────────────────────────────── */
#featured { position: relative; overflow: hidden; border-top: 1px solid var(--border); }
.featured-img { width: 100%; height: 500px; position: relative; }
.featured-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.42) saturate(0.65);
}
.featured-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
}
#featured blockquote {
  font-family: var(--playfair);
  font-size: clamp(20px, 3vw, 38px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  max-width: 780px;
  margin: 0 auto 18px;
  color: var(--ink);
}
#featured blockquote em { color: var(--gold); }
#featured cite { font-family: var(--cinzel); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

/* ── CONTACT ───────────────────────────────────────────────── */
#contact {
  padding: 130px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
  border-top: 1px solid var(--border);
}
#contact h2 { font-family: var(--playfair); font-size: clamp(38px, 5vw, 68px); font-weight: 400; line-height: 1.05; }
#contact h2 em { font-style: italic; color: var(--gold); }
.contact-sub { font-family: var(--cormorant); font-size: 18px; font-weight: 300; font-style: italic; color: var(--muted); margin-top: 16px; line-height: 1.7; }
.contact-row { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--border); }
.contact-row:first-child { border-top: 1px solid var(--border); }
.clink-label { font-family: var(--cinzel); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.clink-value { font-family: var(--cormorant); font-size: 17px; color: var(--ink); text-decoration: none; transition: color 0.2s; cursor: none; }
.clink-value:hover { color: var(--gold); }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-family: var(--cinzel);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
  cursor: none;
  margin-top: 36px;
}
.btn-outline:hover { background: var(--gold); color: var(--bg); }
.btn-outline svg { width: 14px; height: 14px; fill: currentColor; }

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  padding: 34px 60px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg2);
}
.f-sub { font-family: var(--cormorant); font-size: 14px; color: var(--muted); font-style: italic; }
.f-copy { font-family: var(--cinzel); font-size: 9px; letter-spacing: 0.08em; color: rgba(154, 138, 106, 0.5); }

/* ── SCROLL REVEAL ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.15s; }
.reveal-d2 { transition-delay: 0.3s; }
.reveal-d3 { transition-delay: 0.45s; }

/* ── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes loadBar {
  to { width: 100%; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 960px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  #about, #contact, #philosophy {
    grid-template-columns: 1fr;
    padding: 80px 24px;
    gap: 44px;
  }
  /* On mobile, image goes below text */
  #about { display: flex; flex-direction: column; }
  .about-img img { height: 380px !important; }
  #gallery { padding: 80px 24px; }
  /* 2 columns on tablet — still full natural height */
  .gallery-grid { columns: 2; column-gap: 12px; }
  .gcard-img img { height: auto !important; }
  .hero-content { padding: 0 24px 60px; }
  footer { flex-direction: column; gap: 12px; text-align: center; padding: 26px 24px; }
  .devotion-numbers { flex-direction: column; align-items: center; }
  .devo-num-item { width: 100%; border-left: 1px solid var(--border) !important; border-top: none; padding: 24px 40px; }
  .devo-num-item + .devo-num-item { border-top: none; }
  /* Tighter overlay padding on mobile so text has full room */
  .devotion-overlay { padding: 60px 24px; min-height: unset; }
  /* Shrink the decorative quote mark — it eats space on mobile */
  .dq-mark { font-size: 80px; margin-bottom: 8px; }
  #philosophy .left { position: static; }
}

@media (max-width: 560px) {
  .gallery-grid { columns: 1; }
}
