/* ==========================================================================
   Pragya by Somya — reset, typography, shared primitives
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-4);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: var(--lh-tight);
  margin: 0;
  text-wrap: pretty;
}

p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }

button {
  font: inherit; color: inherit; background: none;
  border: 0; padding: 0; margin: 0; cursor: pointer;
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 3px;
  border-radius: 1px;
}
.on-paper :focus-visible,
.paper :focus-visible { outline-color: var(--ink-4); }

::selection { background: var(--ivory); color: var(--ink); }

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

.band {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-y);
}
.band--ink   { background: var(--ink);  color: var(--ivory); }
.band--ink2  { background: var(--ink-2); color: var(--ivory); }
.band--paper { background: var(--paper); color: var(--ink-4); }
.band--sand  { background: var(--sand);  color: var(--ink-4); }

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* the recurring "label column + content" grid from the comp */
.split {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 62rem) {
  .split {
    grid-template-columns: var(--rail-col) minmax(0, 1fr);
    gap: var(--rail-gap);
    align-items: start;
  }
}
/* the empty spacer that holds the label column open on wide screens must not
   claim a row of its own once the grid collapses to one column */
@media (max-width: 61.99rem) {
  .split > div[aria-hidden="true"]:empty { display: none; }
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--ink-12);
}
.band--ink .rule, .band--ink2 .rule { background: var(--ivory-14); }

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

.eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  line-height: 1;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--taupe-text);
}
.band--ink .eyebrow,
.band--ink2 .eyebrow { color: var(--ivory-62); }

.h-display { font-size: var(--fs-h2); letter-spacing: -.015em; }
.h-section { font-size: var(--fs-h3); }
.h-sub     { font-size: var(--fs-h4); line-height: 1.1; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--ink-4);
}
.lead strong { font-weight: 500; }

.copy { color: var(--slate); }
.band--ink .copy, .band--ink2 .copy { color: var(--ivory-66); }

.numeral {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-num);
  line-height: 1;
  color: var(--numeral);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: 0 1.85rem;
  border-radius: 999px;
  font-size: .71875rem;
  line-height: 1;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-soft),
              color var(--dur-fast) var(--ease-soft),
              border-color var(--dur-fast) var(--ease-soft),
              transform var(--dur-fast) var(--ease-soft);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--solid {
  background: var(--ivory);
  color: var(--ink);
  border: 1px solid var(--ivory);
}
.btn--solid:hover { background: #fff; border-color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(232, 230, 200, .55);
}
.btn--ghost:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

.btn--ink {
  background: var(--ink);
  color: var(--ivory);
  border: 1px solid var(--ink);
}
.btn--ink:hover { background: var(--ink-4); border-color: var(--ink-4); }

.btn--sm { min-height: 40px; padding: 0 1.25rem; font-size: var(--fs-micro); }

/* quiet underlined text link */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: .71875rem;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: rgba(232, 230, 200, .7);
  border-bottom: 1px solid rgba(232, 230, 200, .3);
  padding-bottom: .35em;
  transition: color var(--dur-fast) var(--ease-soft),
              border-color var(--dur-fast) var(--ease-soft);
}
.tlink:hover { color: var(--ivory); border-bottom-color: var(--ivory); }

.tlink--ink {
  color: var(--taupe-text);
  border-bottom-color: var(--ink-16);
}
.tlink--ink:hover { color: var(--ink-4); border-bottom-color: var(--ink-4); }

/* --------------------------------------------------------------------------
   Decorative mandalas — always behind, never interactive
   -------------------------------------------------------------------------- */

.mandala {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: .05;
  will-change: transform;
  animation: spin 200s linear infinite;
}
.mandala--rev { animation-name: spinrev; }

@keyframes spin    { from { transform: rotate(0deg);   } to { transform: rotate(360deg);  } }
@keyframes spinrev { from { transform: rotate(0deg);   } to { transform: rotate(-360deg); } }

/* the shared ambient inhale / exhale */
@keyframes breathe {
  0%, 100% { opacity: .35; transform: scale(1); }
  50%      { opacity: .8;  transform: scale(1.06); }
}

/* --------------------------------------------------------------------------
   Scroll reveal — motion.js adds .is-in once the element enters the viewport
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-reveal) var(--ease-calm),
              transform var(--dur-reveal) var(--ease-calm);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* a hairline that draws itself in */
.draw {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1200ms var(--ease-calm);
  transition-delay: var(--d, 0ms);
}
.draw.is-in { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -110%);
  z-index: 200;
  background: var(--ivory); color: var(--ink);
  padding: .85rem 1.5rem;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  transition: transform var(--dur-mid) var(--ease-calm);
}
.skip:focus { transform: translate(-50%, 0); }

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Reduced motion — one place, covers everything
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
  .draw   { transform: scaleX(1); }
  .mandala { animation: none; }
  .btn:hover { transform: none; }
}
