/* ============================================================
   Aleshanee Karan — Artist Portfolio (gallery-white edition)
   aleshaneekaran.com
   ============================================================ */
:root {
  --white: #ffffff;
  --paper: #faf9f5;
  --ink: #1c1b18;
  --muted: #6f6a60;
  --hair: #e7e4dc;
  --gold: #b8862f;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--white); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem clamp(1.25rem, 4vw, 3.5rem);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.brand {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.35rem; letter-spacing: .01em; color: var(--ink); white-space: nowrap;
}

.main-nav { display: flex; align-items: center; flex-wrap: wrap; }
.main-nav a {
  font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); padding: .2rem 1.1rem; transition: color .25s;
  position: relative;
}
.main-nav a + a { border-left: 1px solid var(--hair); }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }

.header-social { display: flex; align-items: center; color: var(--ink); }
.header-social svg { width: 20px; height: 20px; transition: color .25s, transform .25s; }
.header-social:hover svg { color: var(--gold); transform: scale(1.1); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; z-index: 110; width: 42px; height: 42px; position: relative; }
.nav-toggle span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--ink); transition: .3s ease; }
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero: one large work ---------- */
.hero {
  padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem);
  background: var(--white);
}
.hero-kicker {
  text-align: center; margin-bottom: 1.6rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted);
}
.hero-kicker b { color: var(--ink); font-weight: 600; }
.hero-work { max-width: 1200px; margin: 0 auto; }
.hero-work img {
  width: 100%; height: min(76vh, 780px); object-fit: cover;
  border: 1px solid var(--hair);
}
.hero-work figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-top: .9rem;
  font-size: .82rem; color: var(--muted);
}
.hero-cap-title { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--ink); }
.hero-cap-meta { letter-spacing: .14em; text-transform: uppercase; font-size: .7rem; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 6vw, 6rem); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .9rem;
}
.section-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.12; letter-spacing: -0.01em;
}
.section-title em { font-style: italic; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 42rem; margin-top: 1rem; }

.hairline { border: none; border-top: 1px solid var(--hair); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.about-copy p { margin-bottom: 1.15rem; font-size: 1rem; color: #3a382f; }
.about-copy p strong { color: var(--ink); }
.drop-quote {
  border-left: 2px solid var(--gold); padding: .3rem 0 .3rem 1.3rem; margin: 1.6rem 0;
  font-family: var(--font-display); font-style: italic; font-size: 1.3rem; line-height: 1.5; color: var(--ink);
}
.stats { display: flex; margin-top: 2.4rem; border-top: 1px solid var(--hair); }
.stat { flex: 1; padding: 1.2rem 1rem 0; text-align: left; }
.stat + .stat { border-left: 1px solid var(--hair); padding-left: 1.4rem; }
.stat b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; line-height: 1.15; }
.stat small { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.about-art figcaption {
  padding-top: .8rem; font-size: .8rem; color: var(--muted);
  font-family: var(--font-display); font-style: italic; font-size: .95rem;
}
.about-art figcaption b { font-style: normal; font-family: var(--font-body); font-weight: 600; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: .2rem; }
.about-art img { border: 1px solid var(--hair); }

/* ---------- Gallery ---------- */
.gallery-section { background: var(--paper); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }
.art-card { cursor: zoom-in; }
.art-card figure { overflow: hidden; aspect-ratio: 4/5; background: var(--white); border: 1px solid var(--hair); }
.art-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.3,1); }
.art-card:hover img { transform: scale(1.045); }
.art-meta { padding-top: .9rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.art-meta h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; }
.art-meta .medium { color: var(--muted); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
.art-note { font-size: .84rem; color: var(--muted); margin-top: .3rem; font-style: italic; }
.gallery-note { margin-top: 3rem; text-align: center; color: var(--muted); font-size: .92rem; }
.gallery-note a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--gold); transition: color .25s; }
.gallery-note a:hover { color: var(--gold); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; background: rgba(255,255,255,.97); backdrop-filter: blur(6px); align-items: center; justify-content: center; padding: 2rem; }
.lightbox.open { display: flex; animation: fadeIn .3s ease; }
@keyframes fadeIn { from {opacity:0} to {opacity:1} }
.lightbox figure { max-width: min(640px, 92vw); text-align: center; }
.lightbox img { max-height: 74vh; width: auto; max-width: 100%; margin: 0 auto; border: 1px solid var(--hair); box-shadow: 0 30px 80px rgba(0,0,0,.18); }
.lightbox figcaption { color: var(--ink); margin-top: 1.1rem; }
.lightbox figcaption b { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; display: block; }
.lightbox figcaption span { color: var(--muted); font-size: .82rem; }
.lightbox-close { position: absolute; top: 1.2rem; right: 1.5rem; background: none; border: none; cursor: pointer; color: var(--ink); font-size: 2.2rem; line-height: 1; opacity: .7; transition: opacity .2s, transform .2s; }
.lightbox-close:hover { opacity: 1; transform: rotate(90deg); }

/* ---------- Passions ---------- */
.passion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.passion-card { border-top: 1px solid var(--ink); padding-top: 1.6rem; transition: border-color .3s; }
.passion-card:hover { border-top-color: var(--gold); }
.passion-icon { width: 56px; height: 56px; margin-bottom: 1.2rem; }
.passion-icon img { width: 100%; height: 100%; border-radius: 10px; }
.passion-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; margin-bottom: .5rem; }
.passion-card p { color: var(--muted); font-size: .95rem; }
.passion-card .kicker { font-size: .68rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: .5rem; }

/* ---------- Coffee ---------- */
.coffee-band { background: var(--white); }
.coffee-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.coffee-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.coffee-photos img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--hair); transition: transform .4s cubic-bezier(.2,.7,.3,1); }
.coffee-photos img:first-child { aspect-ratio: 3/4; }
.coffee-photos img:last-child { aspect-ratio: 4/3; align-self: end; }
.coffee-photos img:hover { transform: translateY(-4px); }
.coffee-band h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.15; }
.coffee-band h2 em { font-style: italic; }
.coffee-band p { margin-top: 1rem; color: var(--muted); font-size: .99rem; }
.coffee-band p strong { color: var(--ink); }
.coffee-visit { font-size: .7rem !important; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--gold) !important; margin-top: 1.3rem !important; }

/* ---------- Timeline ---------- */
.timeline-section { background: var(--paper); border-top: 1px solid var(--hair); }
.timeline { margin-top: 2.5rem; border-top: 1px solid var(--hair); }
.tl-item {
  display: grid; grid-template-columns: 220px 1fr; gap: 2rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--hair); align-items: baseline;
}
.tl-item h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; }
.tl-item h4 span { display: block; font-family: var(--font-body); font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: .25rem; }
.tl-item p { color: var(--muted); font-size: .96rem; max-width: 38rem; }
.tl-item p em { color: var(--ink); }

/* ---------- Instagram band ---------- */
.insta-band { text-align: center; background: var(--white); }
.insta-band h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.insta-band h2 em { font-style: italic; }
.insta-band p { color: var(--muted); margin: .8rem auto 1.8rem; max-width: 32rem; }
.btn-outline-gold {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .95rem 1.9rem; border: 1px solid var(--ink); color: var(--ink);
  transition: background .25s, color .25s, border-color .25s;
}
.btn-outline-gold svg { width: 17px; height: 17px; }
.btn-outline-gold:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Contact ---------- */
.contact-section { text-align: center; }
.contact-section .lead { margin-left: auto; margin-right: auto; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .95rem 1.9rem; cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn-dark { background: var(--ink); color: var(--white); border: 1px solid var(--ink); }
.btn-dark:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hair); padding: 2rem clamp(1.25rem, 6vw, 6rem); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.site-footer .brand { font-size: 1.15rem; color: var(--ink); }
.site-footer nav { display: flex; gap: 1.3rem; }
.site-footer nav a:hover { color: var(--gold); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.65,.3,1), transform .8s cubic-bezier(.2,.65,.3,1); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-art { max-width: 460px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .passion-grid { grid-template-columns: 1fr; max-width: 460px; }
  .coffee-inner { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: .4rem; }
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .stats { flex-wrap: wrap; }
  .stat { flex: 1 1 40%; padding: 1rem .6rem 0; }
  .stat + .stat { border-left: none; padding-left: .6rem; }
  .nav-toggle { display: block; }
  .header-social { display: none; }
  .main-nav {
    position: fixed; inset: 0; background: rgba(255,255,255,.98); backdrop-filter: blur(14px);
    flex-direction: column; justify-content: center; gap: 1.6rem;
    transform: translateY(-100%); transition: transform .45s cubic-bezier(.7,0,.3,1);
  }
  .main-nav a { color: var(--ink) !important; font-size: 1rem; border-left: none !important; padding: .4rem 1rem; }
  .nav-open .main-nav { transform: none; }
}