/* ============================================================
   Rajny Krishnan — Sculptor · Painter · Educator
   Dark gallery aesthetic
   ============================================================ */

:root {
  --bg: #12100d;
  --bg-2: #191511;
  --bg-3: #201a14;
  --ink: #ece5da;
  --muted: #cabfb0;
  --faint: #9d9284;
  --gold: #c9a15a;
  --gold-bright: #e0bd7d;
  --gold-soft: rgba(201, 161, 90, 0.4);
  --line: rgba(201, 161, 90, 0.16);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'Jost', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--bg); }

img {
  max-width: 100%; display: block;
  -webkit-user-drag: none; user-select: none; -webkit-user-select: none;
}
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 6vw; }

/* ---------------- header ---------------- */

.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 4vw;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.site-head.scrolled {
  background: rgba(18, 16, 13, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.8rem 4vw;
  box-shadow: 0 1px 0 var(--line);
}
.logo img { height: 46px; width: auto; transition: height 0.4s ease; }
.site-head.scrolled .logo img { height: 38px; }

.site-nav ul { list-style: none; display: flex; gap: 2.2rem; align-items: center; }
.site-nav a {
  font-size: 0.74rem; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #e4dccf; transition: color 0.3s ease;
  padding: 0.4rem 0; position: relative;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--gold); transition: right 0.35s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--gold-bright); }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }

.burger {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; position: relative; z-index: 120;
}
.burger span {
  display: block; width: 24px; height: 1px; background: var(--ink);
  margin: 7px auto; transition: transform 0.35s ease, opacity 0.35s ease;
}
body.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 980px) {
  .burger { display: block; }
  .site-nav {
    position: fixed; inset: 0; background: rgba(15, 13, 10, 0.98);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
  }
  body.nav-open .site-nav { opacity: 1; pointer-events: auto; }
  .site-nav ul { flex-direction: column; gap: 2rem; text-align: center; }
  .site-nav a { font-size: 0.95rem; }
}

/* ---------------- hero ---------------- */

.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -4%;
  background-size: cover; background-position: center 40%;
  filter: brightness(0.55) saturate(0.95);
  animation: heroDrift 26s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(18,16,13,0.15) 0%, rgba(18,16,13,0.72) 100%),
    linear-gradient(to bottom, rgba(18,16,13,0.55) 0%, rgba(18,16,13,0.1) 35%, rgba(18,16,13,0.92) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 8rem 6vw 6rem; }

.hero-kicker, .kicker {
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--gold-bright); display: inline-flex; align-items: center; gap: 1.2rem;
}
.hero-kicker::before, .hero-kicker::after,
.kicker::before, .kicker::after {
  content: ''; width: 44px; height: 1px; background: var(--gold-soft);
}

.hero h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.2rem, 9vw, 6.8rem);
  letter-spacing: 0.04em; line-height: 1.05;
  margin: 1.6rem 0 1.2rem;
}
.hero-roles {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.15rem, 2.5vw, 1.6rem); color: #ece5da;
  margin-bottom: 3rem;
}
.hero-cta { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 2.4rem; left: 50%; transform: translateX(-50%);
  z-index: 2; width: 1px; height: 64px; overflow: hidden;
}
.scroll-cue::before {
  content: ''; position: absolute; left: 0; top: -50%;
  width: 1px; height: 50%; background: var(--gold);
  animation: cueDrop 2.2s ease-in-out infinite;
}
@keyframes cueDrop {
  from { top: -50%; } to { top: 110%; }
}

/* ---------------- buttons ---------------- */

.btn {
  display: inline-block; padding: 0.95em 2.6em;
  border: 1px solid var(--gold-soft);
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink); transition: all 0.35s ease; background: transparent;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: #14100a; }
.btn.solid { background: var(--gold); border-color: var(--gold); color: #14100a; }
.btn.solid:hover { background: var(--gold-bright); border-color: var(--gold-bright); }

/* ---------------- sections ---------------- */

.section { padding: 7rem 0; position: relative; }
.section.tint { background: var(--bg-2); }

.sec-head { text-align: center; margin-bottom: 4rem; }
.sec-head h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: 0.03em;
  margin-top: 1.1rem;
}
.sec-head p.lead {
  max-width: 620px; margin: 1.2rem auto 0; color: var(--muted);
  font-size: 1rem; font-weight: 300;
}

.page-hero {
  padding: 12rem 0 5rem; text-align: center;
  background:
    radial-gradient(ellipse 70% 90% at 50% -20%, rgba(201,161,90,0.09), transparent),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: 0.04em;
  margin-top: 1.1rem;
}
.page-hero p.lead {
  max-width: 640px; margin: 1.4rem auto 0; color: var(--muted); font-size: 1.02rem;
}

/* ---------------- sub-nav pills ---------------- */

.subnav {
  position: sticky; top: 62px; z-index: 60;
  background: rgba(18, 16, 13, 0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 4vw;
  display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap;
}
.subnav a {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); padding: 0.45em 1.3em;
  border: 1px solid transparent; border-radius: 100px;
  transition: all 0.3s ease;
}
.subnav a:hover { color: var(--gold-bright); border-color: var(--gold-soft); }

/* ---------------- galleries ---------------- */

.gallery-block { padding: 5rem 0 2rem; }
.gallery-block .sec-head { margin-bottom: 3rem; }

.masonry {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2.6rem 1.8rem; align-items: start;
}
@media (max-width: 1080px) { .masonry { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .masonry { grid-template-columns: 1fr; } }

.art { margin: 0; }
.art a {
  display: block; overflow: hidden; border-radius: 2px; position: relative;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow);
}
.art img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), filter 0.5s ease;
  filter: brightness(0.94);
}
.art a:hover img { transform: scale(1.035); filter: brightness(1.05); }

.art.cutout a {
  background: radial-gradient(ellipse at 50% 42%, #2a2119 0%, #16120e 78%);
  padding: 1.6rem 1.4rem 1rem;
}
.art.cutout img { object-fit: contain; filter: none; }
.art.cutout a:hover img { transform: scale(1.03); }

.art figcaption { padding: 1rem 0.2rem 0; }
.art .t {
  display: block; font-family: var(--serif); font-style: italic;
  font-weight: 500; font-size: 1.18rem; letter-spacing: 0.02em;
}
.art .s {
  display: block; font-size: 0.68rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--muted); margin-top: 0.3rem;
}

/* ---------------- home features ---------------- */

.features { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.8rem; }
.feature {
  position: relative; overflow: hidden; border-radius: 2px;
  min-height: 340px; display: flex; align-items: flex-end;
  box-shadow: var(--shadow);
}
.feature.big { grid-column: span 7; min-height: 480px; }
.feature.small { grid-column: span 5; min-height: 480px; }
.feature.half { grid-column: span 6; min-height: 380px; }
@media (max-width: 900px) {
  .feature.big, .feature.small, .feature.half { grid-column: span 12; min-height: 320px; }
}
.feature-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1), filter 0.6s ease;
  filter: brightness(0.62);
}
.feature:hover .feature-bg { transform: scale(1.05); filter: brightness(0.8); }
.feature::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,12,9,0.88) 0%, transparent 55%);
}
.feature-label { position: relative; z-index: 2; padding: 2.2rem 2.4rem; }
.feature-label .k {
  font-size: 0.66rem; font-weight: 400;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold-bright);
}
.feature-label h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 2rem; letter-spacing: 0.03em; margin-top: 0.4rem;
}
.feature-label .go {
  display: inline-block; margin-top: 0.7rem; font-size: 0.68rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
  transition: color 0.3s ease, transform 0.3s ease;
}
.feature:hover .go { color: var(--gold-bright); transform: translateX(6px); }

/* ---------------- quote ---------------- */

.quote { text-align: center; max-width: 820px; margin: 0 auto; }
.quote .mark {
  font-family: var(--serif); font-size: 5.5rem; line-height: 0.4;
  color: var(--gold); display: block; margin-bottom: 2.2rem; opacity: 0.7;
}
.quote blockquote {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.5;
}
.quote cite {
  display: block; margin-top: 2rem; font-style: normal;
  font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted);
}

/* ---------------- credentials strip ---------------- */

.creds {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.cred { background: var(--bg); padding: 2.6rem 2rem; text-align: center; }
.cred .n {
  font-family: var(--serif); font-weight: 300; font-size: 2.6rem;
  color: var(--gold-bright); line-height: 1.1;
}
.cred .l {
  font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--muted); margin-top: 0.7rem;
}

/* ---------------- about / prose ---------------- */

.about-grid {
  display: grid; grid-template-columns: 5fr 6fr; gap: 4.5rem; align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-photo img { border-radius: 2px; box-shadow: var(--shadow); }
.about-photo figcaption {
  font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--faint); margin-top: 1rem; text-align: center;
}

.prose { max-width: 66ch; }
.prose p { margin-bottom: 1.5rem; color: #d8d0c4; font-size: 1.05rem; }
.prose p.intro {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.45rem; line-height: 1.55; color: var(--ink);
}
.prose .sig {
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--gold-bright);
}

/* ---------------- photo slider ---------------- */

.slider {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: 2px; box-shadow: var(--shadow);
  background: radial-gradient(ellipse at 50% 40%, #2a2119 0%, #16120e 80%);
}
.slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.1s ease;
}
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.cut img { object-fit: contain; padding: 2rem 1.5rem; box-sizing: border-box; }
.sl-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  background: rgba(18, 16, 13, 0.45); border: none; cursor: pointer;
  color: var(--ink); font-size: 2rem; line-height: 1; font-weight: 200;
  width: 44px; height: 56px; border-radius: 2px;
  transition: background 0.3s ease, color 0.3s ease;
}
.sl-btn:hover { background: rgba(18, 16, 13, 0.75); color: var(--gold-bright); }
.sl-prev { left: 0.7rem; }
.sl-next { right: 0.7rem; }
.sl-dots {
  position: absolute; bottom: 1rem; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: center; gap: 0.55rem;
}
.sl-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(236, 229, 218, 0.4); padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}
.sl-dots button.on { background: var(--gold-bright); transform: scale(1.25); }

/* ---------------- CV ---------------- */

.cv-section { margin-bottom: 4.5rem; }
.cv-section h3 {
  font-family: var(--serif); font-weight: 400; font-size: 1.9rem;
  letter-spacing: 0.03em; margin-bottom: 0.4rem;
}
.cv-section h4 {
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin: 2.4rem 0 0.6rem;
}
.cv-rule { width: 56px; height: 1px; background: var(--gold-soft); margin: 1rem 0 1.8rem; }
.cv-list { list-style: none; }
.cv-list li {
  display: grid; grid-template-columns: 130px 1fr; gap: 1.6rem;
  padding: 0.85rem 0; border-bottom: 1px solid rgba(201, 161, 90, 0.08);
  color: #d8d0c4; font-size: 0.98rem;
}
.cv-list li:last-child { border-bottom: none; }
.cv-list .y {
  font-family: var(--serif); font-style: italic; color: var(--gold-bright);
  font-size: 1.05rem; white-space: nowrap;
}
@media (max-width: 560px) {
  .cv-list li { grid-template-columns: 1fr; gap: 0.2rem; }
}
.cv-plain { list-style: none; }
.cv-plain li {
  padding: 0.7rem 0 0.7rem 1.6rem; position: relative;
  color: #d8d0c4; font-size: 0.98rem;
  border-bottom: 1px solid rgba(201, 161, 90, 0.08);
}
.cv-plain li::before {
  content: ''; position: absolute; left: 0; top: 1.45rem;
  width: 7px; height: 1px; background: var(--gold);
}
.cv-plain li:last-child { border-bottom: none; }

/* ---------------- contact ---------------- */

.contact-hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 10rem 6vw 6rem; position: relative;
  background:
    radial-gradient(ellipse 60% 70% at 50% 110%, rgba(201,161,90,0.1), transparent),
    var(--bg);
}
.contact-hero h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.8rem, 7vw, 5rem); margin-top: 1.4rem;
}
.contact-hero .lead { color: var(--muted); max-width: 520px; margin: 1.6rem auto 3rem; }
.email-link {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2.6rem); color: var(--gold-bright);
  border-bottom: 1px solid var(--gold-soft); padding-bottom: 0.2em;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.email-link:hover { color: var(--ink); border-color: var(--ink); }
.contact-meta {
  margin-top: 3.4rem; font-size: 0.7rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--faint);
}

/* ---------------- footer ---------------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 4.5rem 6vw 3rem; text-align: center;
  background: var(--bg-2);
}
.site-foot .logo img { height: 40px; margin: 0 auto 2rem; opacity: 0.9; }
.foot-nav {
  display: flex; justify-content: center; gap: 1.8rem; flex-wrap: wrap;
  margin-bottom: 2.2rem;
}
.foot-nav a {
  font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); transition: color 0.3s ease;
}
.foot-nav a:hover { color: var(--gold-bright); }
.foot-line {
  font-size: 0.72rem; letter-spacing: 0.12em; color: var(--faint);
}
.foot-line a { color: var(--muted); }
.foot-line a:hover { color: var(--gold-bright); }

/* ---------------- lightbox ---------------- */

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(12, 10, 8, 0.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 90vw; max-height: 82vh; object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
.lb-cap { position: absolute; bottom: 3.2rem; left: 0; right: 0; text-align: center; padding: 0 8vw; }
.lb-cap .t {
  font-family: var(--serif); font-style: italic; font-size: 1.4rem;
}
.lb-cap .s {
  font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--muted); margin-top: 0.4rem;
}
.lb-count {
  position: absolute; top: 1.6rem; left: 2rem;
  font-size: 0.7rem; letter-spacing: 0.24em; color: var(--faint);
}
.lb-btn {
  position: absolute; background: none; border: none; cursor: pointer;
  color: var(--muted); transition: color 0.3s ease; z-index: 210;
  font-family: var(--sans); font-weight: 200;
}
.lb-btn:hover { color: var(--gold-bright); }
.lb-close { top: 1.2rem; right: 1.6rem; font-size: 2.2rem; line-height: 1; }
.lb-prev, .lb-next {
  top: 50%; transform: translateY(-50%); font-size: 3rem; padding: 1rem;
}
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
@media (max-width: 700px) {
  .lb-prev { left: 0.1rem; } .lb-next { right: 0.1rem; }
  .lightbox img { max-height: 70vh; }
}

/* ---------------- reveal ---------------- */

.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-bg { animation: none; }
  html { scroll-behavior: auto; }
}
