/* ==========================================================================
   ArtsDiva — Deep Kim Singh
   Shared stylesheet
   ========================================================================== */

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

:root {
  --black:      #070504;
  --ink:        #0c0907;
  --ink-2:      #110d0a;
  --burgundy:   #3e1010;
  --gold:       #c4a35a;
  --gold-soft:  rgba(196, 163, 90, 0.42);
  --gold-faint: rgba(196, 163, 90, 0.14);
  --cream:      #ede0cc;
  --cream-mid:  rgba(237, 224, 204, 0.72);
  --cream-low:  rgba(237, 224, 204, 0.46);
  --grey:       #8a7f74;

  --display: "Cinzel", "Times New Roman", serif;
  --serif:   "Cormorant Garamond", Georgia, serif;
  --sans:    "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --measure: 62ch;
  --gutter: clamp(24px, 6vw, 96px);
  --rule: 1px solid var(--gold-faint);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(17px, 1.15vw, 19px);
  line-height: 1.75;
  overflow-x: clip; /* clip, not hidden — keeps position:sticky working */
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Type primitives
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--sans);
  font-size: clamp(9px, 0.72vw, 10px);
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.6;
}

.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.005em;
  color: var(--cream);
  text-wrap: balance;
}

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.1vw, 27px);
  line-height: 1.62;
  color: var(--cream-mid);
  text-wrap: pretty;
}

.prose p {
  max-width: var(--measure);
  margin-bottom: 1.35em;
  color: var(--cream-mid);
  text-wrap: pretty;
}
.prose p:last-child { margin-bottom: 0; }
.prose em { color: var(--cream); font-style: italic; }
.prose strong { font-weight: 400; color: var(--cream); }

.rule {
  width: 44px;
  height: 1px;
  background: var(--gold);
  border: 0;
}

.hairline {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 880px; }

.section { padding-block: clamp(72px, 11vw, 148px); }
.section--tight { padding-block: clamp(52px, 7vw, 92px); }
.section--ink { background: var(--ink); }
.section--burgundy { background: var(--burgundy); }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 5, 4, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: var(--rule);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 62px;
  flex-wrap: wrap;
  padding-block: 10px;
}

.mark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.26em;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}
.mark em { color: var(--gold); font-style: normal; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 34px);
  flex-wrap: wrap;
}

.nav a {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream-low);
  text-decoration: none;
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.nav a:hover,
.nav a:focus-visible { color: var(--cream); border-bottom-color: var(--gold); }
.nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold-soft); }

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

.cover {
  position: relative;
  min-height: clamp(560px, 92svh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-block: clamp(80px, 14vw, 140px);
  background:
    radial-gradient(ellipse 72% 56% at 50% 36%, rgba(62, 16, 16, 0.34) 0%, transparent 66%),
    var(--black);
}

.cover::after {
  content: "";
  position: absolute;
  inset-inline: 10%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(44px, 10.5vw, 108px);
  letter-spacing: clamp(6px, 1.6vw, 16px);
  line-height: 1;
  color: var(--cream);
  /* letter-spacing adds trailing space; pull it back so it optically centres */
  margin-inline-end: calc(-1 * clamp(6px, 1.6vw, 16px));
}
.wordmark em { color: var(--gold); font-style: normal; }

.cover__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 2vw, 23px);
  letter-spacing: 0.16em;
  color: var(--grey);
  margin-top: 18px;
}

.cover__stmt {
  max-width: 33rem;
  margin: clamp(36px, 5vw, 56px) auto 0;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.85;
  color: var(--cream-mid);
}

/* --------------------------------------------------------------------------
   Figures
   -------------------------------------------------------------------------- */

.plate {
  position: relative;
  background: var(--black);
}

.plate img {
  width: 100%;
  object-fit: contain;
  max-height: 84svh;
}

.plate--bleed img {
  object-fit: cover;
  max-height: none;
  aspect-ratio: 16 / 10;
}

@media (min-width: 900px) {
  .plate--bleed img { aspect-ratio: 21 / 9; }
}

.plate figcaption {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  padding: 20px var(--gutter) 0;
  line-height: 2;
}

.plate figcaption span {
  color: var(--cream-low);
  letter-spacing: 0.22em;
}

/* --------------------------------------------------------------------------
   Split blocks
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}

.split__media { position: relative; background: var(--ink); min-height: 320px; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--contain { display: grid; place-items: center; padding: clamp(28px, 4vw, 56px); }
.split__media--contain img { height: auto; object-fit: contain; max-height: 62svh; }

.split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 6vw, 84px) var(--gutter);
  background: var(--ink);
}

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

.quote {
  text-align: center;
  padding-block: clamp(64px, 9vw, 112px);
  padding-inline: var(--gutter);
}

.quote::before,
.quote::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  background: var(--gold-soft);
  margin-inline: auto;
}
.quote::before { margin-bottom: clamp(28px, 4vw, 48px); }
.quote::after  { margin-top: clamp(28px, 4vw, 48px); }

.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(19px, 2.5vw, 33px);
  line-height: 1.6;
  color: var(--cream);
  max-width: 42rem;
  margin-inline: auto;
  text-wrap: balance;
}
.quote em { color: var(--gold); }

/* --------------------------------------------------------------------------
   Index cards (landing → documents)
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  gap: 1px;
  background: var(--gold-faint);
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--ink);
  padding: clamp(36px, 4.5vw, 60px);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 0.4s ease;
}
.card:hover,
.card:focus-visible { background: var(--ink-2); }

.card__title {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.2;
  color: var(--cream);
}

.card p {
  color: var(--cream-mid);
  font-size: 17px;
  line-height: 1.7;
  max-width: 34ch;
}

.card__more {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: auto;
  padding-top: 12px;
}
.card__more::after { content: " \2192"; }

/* --------------------------------------------------------------------------
   Service list (what ArtsDiva manages)
   -------------------------------------------------------------------------- */

.services {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
  grid-template-columns: 1fr;
  margin-top: clamp(36px, 5vw, 56px);
}

@media (min-width: 700px)  { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .services { grid-template-columns: repeat(3, 1fr); } }

.service h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--cream);
  margin-bottom: 10px;
}

.service p {
  font-size: 16px;
  line-height: 1.72;
  color: var(--cream-mid);
  max-width: 40ch;
}

.service::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 18px;
}

/* --------------------------------------------------------------------------
   Terms grid (how it works)
   -------------------------------------------------------------------------- */

.terms {
  display: grid;
  gap: clamp(28px, 3.5vw, 40px);
  grid-template-columns: 1fr;
  max-width: 860px;
  margin-inline: auto;
  text-align: left;
}

@media (min-width: 640px)  { .terms { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .terms { grid-template-columns: repeat(4, 1fr); } }

.terms > * + * {
  border-top: var(--rule);
  padding-top: clamp(24px, 3vw, 32px);
}

@media (min-width: 640px) {
  .terms > * + * { border-top: 0; padding-top: 0; }
  .terms > :nth-child(n + 2) { border-left: var(--rule); padding-left: clamp(24px, 3vw, 34px); }
  .terms > :nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (min-width: 1000px) {
  .terms > :nth-child(3) { border-left: var(--rule); padding-left: clamp(24px, 3vw, 34px); }
}

.terms p { font-size: 16px; line-height: 1.7; color: var(--cream-mid); margin-top: 12px; }

/* --------------------------------------------------------------------------
   Gallery strip
   -------------------------------------------------------------------------- */

.strip {
  display: grid;
  gap: 1px;
  background: var(--gold-faint);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 900px) { .strip { grid-template-columns: repeat(5, 1fr); } }

.strip figure {
  position: relative;
  background: var(--ink);
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82) saturate(0.94);
  transition: filter 0.6s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.strip figure:hover img { filter: brightness(1) saturate(1); transform: scale(1.03); }

.strip figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 22px 18px 16px;
  background: linear-gradient(0deg, rgba(7, 5, 4, 0.94), transparent);
  font-family: var(--sans);
  font-size: 8.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.9;
}
.strip figcaption span { display: block; color: var(--cream-low); letter-spacing: 0.16em; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(88px, 13vw, 168px);
  background:
    radial-gradient(ellipse 60% 52% at 50% 50%, rgba(62, 16, 16, 0.26) 0%, transparent 72%),
    var(--black);
}

.contact__ghost {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(60px, 13vw, 176px);
  letter-spacing: 0.1em;
  color: rgba(196, 163, 90, 0.026);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.contact__inner { position: relative; }

.contact__lines {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 3.1;
}
.contact__lines .muted { color: var(--grey); }

.contact__lines a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 2px;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.contact__lines a:hover,
.contact__lines a:focus-visible { color: var(--cream); border-bottom-color: var(--cream); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: clamp(32px, 4vw, 46px);
}

.btn {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 30px;
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.btn:hover,
.btn:focus-visible { background: var(--gold); color: var(--black); border-color: var(--gold); }

.btn--solid { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn--solid:hover,
.btn--solid:focus-visible { background: transparent; color: var(--gold); }

.colophon {
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(138, 127, 116, 0.34);
  text-align: center;
  padding: 0 var(--gutter) clamp(40px, 6vw, 64px);
  line-height: 2.2;
}

.colophon a { color: inherit; text-decoration: none; }
.colophon a:hover { color: var(--grey); }

/* --------------------------------------------------------------------------
   Document header (pitch / collection pages)
   -------------------------------------------------------------------------- */

.dochead {
  padding-block: clamp(76px, 11vw, 132px);
  border-bottom: var(--rule);
  background:
    radial-gradient(ellipse 68% 60% at 50% 20%, rgba(62, 16, 16, 0.24) 0%, transparent 68%),
    var(--black);
}

.dochead h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 5.2vw, 62px);
  line-height: 1.12;
  color: var(--cream);
  margin-top: 22px;
  text-wrap: balance;
}

.dochead__meta {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: clamp(26px, 3.5vw, 40px);
  line-height: 2.4;
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip img { transition: none; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* Never let a no-JS visitor see a blank page */
.no-js .reveal { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.mt-s  { margin-top: clamp(16px, 2vw, 22px); }
.mt-m  { margin-top: clamp(22px, 3vw, 32px); }
.mt-l  { margin-top: clamp(32px, 4.5vw, 52px); }
.center { text-align: center; }
.center .prose p,
.center .lede { margin-inline: auto; }
.center .rule { margin-inline: auto; }

.gold { color: var(--gold); }
.italic-gold {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.7vw, 21px);
  color: var(--gold);
  opacity: 0.88;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--black);
  padding: 12px 20px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 100;
}
.skip:focus { left: 0; }
