/* Shiva Skanda Vel — shivaskandavel.com
   FF Meta Serif (body/display) + Brandon Grotesque (labels/nav)
   served via Adobe Fonts kit fvv5bro. */

:root {
  --paper: #FAF7F1;
  --ink: #211C17;
  --ink-soft: #75695C;
  --umber: #2B221B;       /* deep warm dark — reflection + footer */
  --umber-text: #EDE4D7;
  --umber-soft: #BCAE9C;
  --kumkum: #B0481E;
  --kumkum-light: #DB8E5C;
  --hairline: #E5DFD4;

  --serif: "ff-meta-serif-web-pro", "Meta Serif Pro", Georgia, serif;
  --sans: "brandon-grotesque", "Brandon Grotesque", "Avenir Next", "Segoe UI", Helvetica, sans-serif;

  --space-section: clamp(5rem, 11vw, 9rem);
  --space-block: clamp(3rem, 6vw, 5rem);
}

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

body {
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--kumkum); outline-offset: 3px; }

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

/* ---------- Grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1.5rem, 3vw, 3rem);
  row-gap: 2rem;
}

.col-label { grid-column: 1 / 4; }
.col-body  { grid-column: 4 / 11; }

@media (max-width: 860px) {
  .col-label, .col-body { grid-column: 1 / -1; }
  .grid { row-gap: 1rem; }
}

/* ---------- Label / eyebrow ---------- */

.label {
  font-family: var(--sans);
  font-weight: 420;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

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

.site-header { padding-block: clamp(1.5rem, 3vw, 2.25rem); }

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.wordmark { display: block; }
.wordmark .word { height: 1.7rem; width: auto; display: block; }
@media (max-width: 600px) { .wordmark .word { height: 1.25rem; } }

.site-nav { display: flex; flex-wrap: wrap; gap: 1.1rem 1.9rem; }

.site-nav a {
  font-family: var(--sans);
  font-weight: 420;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 3px;
}
.site-nav a:hover, .site-nav a:focus { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom: 1px solid var(--kumkum); }

@media (max-width: 600px) {
  .site-header .container { justify-content: center; text-align: center; }
  .site-nav { justify-content: center; }
}

/* ---------- Hero (home): the mountain at dawn ---------- */

.hero-photo { position: relative; }

.hero-photo > img {
  width: 100%;
  height: min(86vh, 50rem);
  object-fit: cover;
  object-position: center 38%;
  display: block;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20,15,11,0) 50%, rgba(20,15,11,0.45) 100%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding-bottom: clamp(2.2rem, 6vw, 4.5rem);
}

.hero-overlay .label { color: #C9BCA6; margin-bottom: 1.2rem; }
.hero-overlay .display { color: #F4EDE0; }
.hero-overlay .descriptor { color: #C9BCA6; max-width: 38ch; margin-top: 1.2rem; }

@media (max-width: 560px) {
  .hero-photo > img { height: 70vh; }
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
}

.descriptor {
  margin-top: 1.6rem;
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 26ch;
}


/* ---------- Page title block (inner pages) ---------- */

.page-title { margin-top: clamp(2rem, 6vw, 5rem); }
.page-title .label { margin-bottom: 1.4rem; }
.page-title .display { max-width: 14ch; }

/* ---------- The record — mounted documentary figures ---------- */

.record {
  background: #F1EADD;
  padding: clamp(0.45rem, 0.9vw, 0.75rem);
  box-shadow: 0 1px 0 rgba(33, 28, 23, 0.06);
}
.record figcaption { padding-inline: 0.15rem; }

.record a { display: block; }
.record a:hover img, .record a:focus img { filter: sepia(0.1) saturate(0.95) contrast(1.04); }

.record img {
  width: 100%;
  filter: sepia(0.22) saturate(0.78) contrast(1.04) brightness(1.01);
  outline: 1px solid rgba(33, 28, 23, 0.09);
  outline-offset: -1px;
  transition: filter 0.25s ease;
}

.record figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-soft);
  padding-top: 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.9rem;
}
.record figcaption .credit {
  font-size: 0.66rem;
  opacity: 0.75;
  white-space: nowrap;
}
.record figcaption .when {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 420;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--kumkum);
  white-space: nowrap;
}

/* The gallery: staggered stacks, like plates laid on a desk.
   Three uneven columns; the middle sits lower, the third lower still.
   Records keep their natural heights, so the edges stay ragged. */

.gallery {
  display: grid;
  grid-template-columns: 7fr 6fr 4fr;
  column-gap: clamp(1.1rem, 2.2vw, 2.2rem);
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3.2rem);
}

.stack { display: flex; flex-direction: column; gap: clamp(1.2rem, 2.4vw, 2.2rem); }
.stack:nth-child(2) { margin-top: clamp(2rem, 5vw, 4rem); }
.stack:nth-child(3) { margin-top: clamp(3.5rem, 8vw, 7rem); }

/* scale modulation: minors pull in, keys fill the wide first column */
.record--minor { width: 78%; }
.record--minor.alt { align-self: flex-end; }

.gallery--sprawl { grid-template-columns: 7fr 6fr; }
.gallery--sprawl .stack:nth-child(2) { margin-top: clamp(3rem, 7vw, 6rem); }

@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .stack { display: contents; }
  .stack .record { width: 100% !important; margin-bottom: 1rem; }
}

/* ---------- Prose sections — ruled like a ledger ---------- */

.section { margin-top: var(--space-section); }
.section > .container > .grid {
  border-top: 1px solid var(--hairline);
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
}

.prose p { margin-bottom: 1.5rem; max-width: 36rem; }
.prose p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.5;
  max-width: 32rem !important;
}

.prose a { color: var(--kumkum); text-decoration: none; border-bottom: 1px solid currentColor; }
.prose a:hover { border-bottom-width: 2px; }

/* ---------- Onward links ---------- */

.onward { list-style: none; margin-top: var(--space-block); }
.onward li { border-top: 1px solid var(--hairline); }
.onward li:last-child { border-bottom: 1px solid var(--hairline); }
.onward a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  padding: 1.4rem 0.25rem;
  text-decoration: none;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}
.onward a .label { transition: color 0.15s ease; }
.onward a:hover, .onward a:focus { color: var(--kumkum); }
.onward a:hover .label { color: var(--kumkum); }

/* ---------- Figures within pages ---------- */

.figure { margin-top: var(--space-block); }
.figure img { width: 100%; }
.figure figcaption {
  font-family: var(--sans);
  font-weight: 420;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.9rem;
}

.figure--left  { grid-column: 4 / 9; }
.figure--right { grid-column: 7 / 12; }
.figure--wide  { grid-column: 4 / 11; }

@media (max-width: 860px) {
  .figure--left, .figure--right, .figure--wide { grid-column: 1 / -1; }
}

/* ---------- Reflection (Swami Suryananda) — signature section ---------- */

.reflection {
  background: linear-gradient(160deg, #352A21 0%, #2B221B 48%, #231B15 100%);
  color: var(--umber-text);
  margin-top: var(--space-section);
  padding-block: var(--space-section);
  position: relative;
  overflow: hidden;
}
.reflection::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' fill='%23EDE4D7' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}
.reflection::after {
  content: "";
  position: absolute;
  right: -5rem;
  bottom: -6rem;
  width: 26rem;
  height: 27rem;
  background: url("../images/sd-cream.svg") no-repeat center / contain;
  opacity: 0.055;
  pointer-events: none;
}
.reflection .container { position: relative; z-index: 1; }

.reflection .attribution {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--kumkum-light);
  grid-column: 1 / 4;
}

.reflection .words { grid-column: 4 / 10; }

.reflection p {
  font-style: normal;
  font-size: clamp(1.1rem, 1.7vw, 1.25rem);
  line-height: 1.7;
  margin-bottom: 1.8rem;
  max-width: 34rem;
}
.reflection p:last-child { margin-bottom: 0; }

.reflection .lead {
  font-size: clamp(1.5rem, 2.7vw, 2rem);
  line-height: 1.5;
  max-width: 28ch;
  margin-bottom: 2.6rem;
}

.reflection .accent { color: var(--kumkum-light); }

.aside-record {
  grid-column: 10 / 13;
  align-self: start;
  margin-top: 0.5rem;
  transform: rotate(-0.7deg);
}
@media (max-width: 860px) {
  .aside-record { grid-column: 1 / -1; max-width: 16rem; }
}

.reflection .reflection-aside {
  grid-column: 10 / 13;
  align-self: end;
  margin-bottom: 0.5rem;
  transform: rotate(0.8deg);
}
.reflection .reflection-aside--top {
  align-self: start;
  margin-bottom: 0;
  margin-top: 1rem;
  transform: rotate(-0.7deg);
}
.reflection .reflection-aside figcaption { color: #BCAE9C; }
.reflection .reflection-aside figcaption .when { color: var(--kumkum-light); }

@media (max-width: 860px) {
  .reflection .attribution { grid-column: 1 / -1; margin-bottom: 0.5rem; }
  .reflection .words { grid-column: 1 / -1; }
  .aside-record {
  grid-column: 10 / 13;
  align-self: start;
  margin-top: 0.5rem;
  transform: rotate(-0.7deg);
}
@media (max-width: 860px) {
  .aside-record { grid-column: 1 / -1; max-width: 16rem; }
}

.reflection .reflection-aside { grid-column: 1 / -1; max-width: 17rem; margin-top: 1rem; }
}

/* ---------- Pull-quote: the founder's voice ---------- */

.pullquote {
  margin-top: var(--space-section);
  background: #F1EADD;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  box-shadow: inset 0 1px 0 rgba(33, 28, 23, 0.05), inset 0 -1px 0 rgba(33, 28, 23, 0.05);
}
.pullquote blockquote::before {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--kumkum);
  margin-bottom: 2.2rem;
}
.pullquote blockquote p {
  font-style: italic;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.5;
  max-width: 26ch;
  margin-bottom: 1.6rem;
}
.pullquote--long blockquote p {
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  line-height: 1.65;
  max-width: 52ch;
  margin-bottom: 1.5rem;
}
.pullquote--long blockquote p:last-of-type { margin-bottom: 1.6rem; }

.pullquote cite {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 420;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--kumkum);
}

main:has(> .pullquote:last-child) + .site-footer { margin-top: 0; }
main > .pullquote:last-child { margin-bottom: 0; }

/* ---------- Closing line ---------- */

.closing {
  margin-top: var(--space-section);
}
.closing p {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.45;
  max-width: 30ch;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  column-gap: clamp(2rem, 5vw, 5rem);
  row-gap: 3rem;
  margin-top: var(--space-block);
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form label {
  display: block;
  font-family: var(--sans);
  font-weight: 420;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-soft);
  padding: 0.35rem 0 0.6rem;
  margin-bottom: 2rem;
  border-radius: 0;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom: 2px solid var(--kumkum);
}
.contact-form textarea { min-height: 7.5rem; resize: vertical; }
.contact-form .hint {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-soft);
  margin: -1.4rem 0 2rem;
  max-width: 30rem;
}

button {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: 0;
  padding: 1.05rem 2.6rem;
  cursor: pointer;
}
button:hover, button:focus { background: var(--kumkum); }

address { font-style: normal; display: block; margin-bottom: 1.6rem; }
.trust-details p { margin-bottom: 1.4rem; max-width: 28rem; }
.trust-details strong { font-weight: 700; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--umber);
  color: var(--umber-text);
  margin-top: var(--space-section);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 3rem;
  align-items: start;
}
.site-footer .footer-body { grid-column: 1; }
.site-footer .footer-sd {
  grid-column: 2;
  height: clamp(10rem, 19vw, 15rem);
  width: auto;
  display: block;
  justify-self: end;
  opacity: 0.09;
}
.site-footer .footer-mark { margin-bottom: 2.4rem; }
.site-footer .footer-mark img { height: 1.6rem; width: auto; display: block; opacity: 0.72; }
@media (max-width: 640px) {
  .site-footer .container { grid-template-columns: 1fr; }
  .site-footer .footer-sd { grid-column: 1; justify-self: start; margin-top: 2.5rem; height: 6rem; }
}

.site-footer .footer-email {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-bottom: 2.2rem;
}
.site-footer .footer-email a { color: var(--umber-text); text-decoration: none; border-bottom: 1px solid var(--kumkum-light); }
.site-footer .footer-email a:hover { color: var(--kumkum-light); }

.site-footer .small {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #BCAE9C;
  max-width: 34rem;
  margin-bottom: 0.9rem;
}
.site-footer .small:last-child { margin-bottom: 0; }
.site-footer .small a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .small a:hover { color: var(--umber-text); }

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}


/* ---------- Video record ---------- */

.record--video .frame {
  aspect-ratio: 9 / 16;
  width: 100%;
  outline: 1px solid rgba(33, 28, 23, 0.09);
  outline-offset: -1px;
}
.record--video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Plate breakout: Guru bridging the page and the testimony ---------- */

.plate-breakout {
  max-width: clamp(15rem, 28vw, 22rem);
  margin-left: auto;
  margin-right: clamp(1.5rem, 8vw, 7rem);
  margin-top: clamp(2rem, 5vw, 4rem);
  margin-bottom: calc(-1 * clamp(4rem, 9vw, 7rem));
  position: relative;
  z-index: 2;
  transform: rotate(1.4deg);
  box-shadow: 0 16px 36px rgba(33, 28, 23, 0.22);
}
@media (max-width: 640px) {
  .plate-breakout {
    max-width: 14rem;
    margin-right: 1.25rem;
    margin-bottom: -3rem;
  }
}

/* ---------- Scroll to top ---------- */

.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 40;
  box-shadow: 0 4px 14px rgba(33, 28, 23, 0.25);
}
.to-top.show { opacity: 0.85; pointer-events: auto; }
.to-top:hover, .to-top:focus { opacity: 1; background: var(--kumkum); }

/* ---------- Skip link ---------- */

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.8rem 1.4rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- Lightbox ---------- */

.lb {
  position: fixed;
  inset: 0;
  background: rgba(33, 26, 20, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: clamp(1rem, 4vw, 3rem);
}
.lb[hidden] { display: none; }

.lb img {
  max-width: min(92vw, 70rem);
  max-height: 78vh;
  width: auto;
  height: auto;
  outline: 1px solid rgba(237, 228, 215, 0.12);
}

.lb .lb-caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--umber-text);
  margin-top: 1.1rem;
  text-align: center;
}
.lb .lb-caption .when {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 420;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--kumkum-light);
  margin-left: 0.9rem;
}

.lb button {
  position: absolute;
  background: transparent;
  color: var(--umber-text);
  border: 0;
  padding: 1rem;
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.lb button:hover, .lb button:focus { background: transparent; color: var(--kumkum-light); }
.lb .lb-close { top: 1rem; right: 1.25rem; }
.lb .lb-prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 0.75rem; top: 50%; transform: translateY(-50%); }
