/* Sthiram Wellness. Tokens from brand-guide section 11. Mobile first. */
:root {
  --terracotta: #b34443;
  --terracotta-deep: #7b2f2e;
  --terracotta-tint: #eccccc;
  --ink: #000000;
  --ink-soft: #262626;
  --ink-muted: #2b2b2b;
  --surface-grey: #e1e1e1;
  --surface-white: #ffffff;
  --surface-warm: #f7f3f2;
  --sun-orange: #f7931e;
  --sun-orange-deep: #9b4b12;
  --radius-button: 10px;
  --radius-hero: 40px;
  --border-thin: 1px;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 20px;
}
@media (min-width: 768px) { :root { --radius-hero: 60px; --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-white);
  color: var(--ink);
  font: 500 15px/1.6 var(--font-sans);
  overflow-x: clip;
}
@media (min-width: 768px) { body { font-size: 16px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); }
a:hover { color: var(--terracotta-deep); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-weight: 800; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: 34px; line-height: 1.1; }
h2 { font-size: 28px; line-height: 1.15; }
h3 { font-size: 21px; line-height: 1.35; }
p { margin: 0; }
@media (min-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 36px; }
  h3 { font-size: 24px; }
}
@media (min-width: 1025px) {
  h1 { font-size: 52px; line-height: 1.2; }
  h3 { font-size: 26px; }
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface-white); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  display: inline-block; margin: 0 0 14px;
  font-weight: 800; font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--sun-orange-deep);
}
.lead { font-size: 18px; color: var(--ink-muted); max-width: 62ch; }
.prose p + p { margin-top: 16px; }
.prose { max-width: 66ch; }
.prose h3 { margin: 36px 0 12px; }
.muted { color: var(--ink-muted); }

/* TK: visible marker for missing facts */
.tk {
  display: inline-block; margin-top: 8px; padding: 3px 10px;
  border: 1px dashed var(--terracotta-deep); border-radius: 6px;
  background: #f6e9e9; color: var(--terracotta-deep);
  font-size: 13px; font-weight: 600; line-height: 1.5;
}
.dark .tk { border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.1); color: var(--surface-white); }

/* Buttons and links */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  border: var(--border-thin) solid var(--terracotta); border-radius: var(--radius-button);
  background: var(--surface-white); color: var(--terracotta);
  font: 800 14px/1.2 var(--font-sans); letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
  overflow: hidden; isolation: isolate; cursor: pointer;
  transition: color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--terracotta); transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease);
}
.btn:hover, .btn:focus-visible { color: var(--surface-white); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn .arr { transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn-hdr { min-height: 44px; padding: 10px 18px; font-size: 13px; border-color: var(--terracotta-deep); color: var(--terracotta-deep); background: transparent; }
.btn-hdr::before { background: var(--terracotta-deep); }
.btn-light { border-color: var(--surface-white); color: var(--surface-white); background: transparent; }
.btn-light::before { background: var(--surface-white); }
.btn-light:hover, .btn-light:focus-visible { color: var(--terracotta-deep); }
.tlink {
  font-weight: 700; color: var(--ink); text-decoration: none; padding-bottom: 3px;
  background: linear-gradient(var(--terracotta), var(--terracotta)) left bottom / 0% 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
.tlink:hover, .tlink:focus-visible { background-size: 100% 1px; color: var(--terracotta-deep); }
.dark .tlink { color: var(--surface-white); background-image: linear-gradient(#fff, #fff); }

/* Header */
.hdr-wrap {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--surface-grey); border-bottom: 1px solid var(--terracotta-tint);
  transition: background .5s;
}
.hdr-wrap.scrolled { background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo img { width: 124px; }
.nav { display: none; }
.hdr-right { display: flex; align-items: center; gap: 12px; }
.hdr-right .btn-hdr { display: none; }
.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: var(--radius-button);
  background: transparent; cursor: pointer; padding: 0;
}
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .4s var(--ease), background .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }
.mnav { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.menu-open .mnav { max-height: 460px; }
.mnav ul { list-style: none; margin: 0; padding: 0 0 20px; }
.mnav a { display: block; padding: 12px 0; font-size: 19px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--terracotta-tint); }
.mnav a[aria-current="page"] { color: var(--terracotta-deep); }
.mnav .btn { margin-top: 18px; width: 100%; }
@media (min-width: 560px) { .hdr-right .btn-hdr { display: inline-flex; } }
@media (min-width: 1025px) {
  .hdr { height: 84px; }
  .logo img { width: 150px; }
  .nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
  .nav a { position: relative; display: block; padding: 8px 14px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
  .nav a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1px; background: var(--terracotta-deep);
    transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
  }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
  .nav a[aria-current="page"] { color: var(--terracotta-deep); }
  .burger, .mnav { display: none; }
}

/* Sections */
.sec { padding: 72px 0; }
.sec-tight { padding-top: 0; }
.band { background: var(--surface-grey); }
.sec-head { display: grid; gap: 18px; margin-bottom: 40px; }
.sec-head > p { font-size: 18px; color: var(--ink-muted); max-width: 520px; }
@media (min-width: 768px) { .sec { padding: 104px 0; } }
@media (min-width: 1025px) {
  .sec { padding: 128px 0; }
  .sec-head { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; align-items: end; margin-bottom: 64px; }
}

/* Page hero (inner pages) */
.phero { background: var(--surface-grey); padding: 56px 0 64px; }
.phero h1 { max-width: 18ch; }
.phero .lead { margin-top: 20px; }
@media (min-width: 1025px) { .phero { padding: 88px 0 96px; } }

/* Home hero */
.hero { position: relative; background: var(--surface-grey); padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 40px; }
.hero h1 { font-size: 40px; line-height: 1.04; letter-spacing: -0.035em; max-width: 13ch; }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: block; animation: rise 1.1s var(--ease) both; animation-delay: var(--d, 0ms); }
.hero-sub { margin-top: 24px; max-width: 500px; font-size: 18px; color: var(--ink-muted); animation: fade 1s ease .55s both; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; animation: fade 1s ease .75s both; }
.hero .eyebrow { animation: fade .9s ease both; }
.hero-media { position: relative; animation: fade 1.2s ease .2s both; }
.hero-img { border-radius: var(--radius-hero) 0 var(--radius-hero) 0; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-soft); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; animation: kenburns 2.6s var(--ease) both, drift 28s ease-in-out 2.6s infinite alternate; }
.sun { position: absolute; top: -22px; right: 16px; width: 110px; height: 110px; pointer-events: none; }
.sun .disc { position: absolute; inset: 32px; border-radius: 50%; background: var(--sun-orange); animation: sunrise 1.6s var(--ease) .9s both; }
.sun .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--sun-orange-deep); opacity: 0; animation: breathe 8s ease-in-out 2.2s infinite; }
.sun .ring.r2 { inset: 14px; animation-delay: 2.5s; }
.sun .ring.r3 { inset: -16px; animation-delay: 2.8s; }
.breath {
  position: absolute; left: 12px; bottom: 16px; display: flex; align-items: center; gap: 12px;
  background: var(--surface-white); border-radius: 999px; padding: 10px 18px 10px 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .5px; animation: fade 1s ease 1.4s both;
}
.breath .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sun-orange-deep); animation: pulse 8s ease-in-out infinite; }
.breath .w { position: relative; display: inline-block; min-width: 54px; }
.breath .in { animation: swapA 8s ease-in-out infinite; }
.breath .ex { position: absolute; left: 0; top: 0; animation: swapB 8s ease-in-out infinite; }
@media (min-width: 768px) {
  .hero h1 { font-size: 58px; }
  .sun { top: -34px; right: -34px; width: 150px; height: 150px; }
  .sun .disc { inset: 44px; }
  .sun .ring.r2 { inset: 18px; }
  .sun .ring.r3 { inset: -20px; }
  .breath { left: -20px; bottom: 44px; }
}
@media (min-width: 1025px) {
  .hero { padding: 64px 0 0; }
  .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: var(--surface-white); }
  .hero-grid { position: relative; z-index: 1; grid-template-columns: minmax(0,1.02fr) minmax(0,1fr); gap: 64px; align-items: end; }
  .hero-copy { padding-bottom: 172px; }
  .hero h1 { font-size: 72px; }
}

/* Marquee */
.marquee { border-top: 1px solid var(--terracotta-tint); border-bottom: 1px solid var(--terracotta-tint); overflow: hidden; white-space: nowrap; padding: 18px 0; }
.marquee-track { display: inline-flex; gap: 40px; animation: marq 48s linear infinite; font-size: 22px; font-weight: 600; color: #3a3a3a; }
.marquee-track span { display: inline-flex; align-items: center; gap: 40px; }
.marquee-track i { width: 10px; height: 10px; border-radius: 50%; background: var(--sun-orange); display: inline-block; }
@media (min-width: 768px) { .marquee-track { font-size: 30px; } }

/* Feature image with the two-corner radius */
.fimg { border-radius: var(--radius-hero) 0 var(--radius-hero) 0; overflow: hidden; background: var(--ink-soft); }
.fimg img { width: 100%; height: 100%; object-fit: cover; }
.fimg.alt { border-radius: 0 var(--radius-hero) 0 var(--radius-hero); }
.r-43 { aspect-ratio: 4 / 3; }
.r-169 { aspect-ratio: 16 / 9; }
.r-11 { aspect-ratio: 1 / 1; }
.r-45 { aspect-ratio: 4 / 5; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1025px) {
  .split { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 80px; }
  .split.wide-left { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); }
  .split.flip > :first-child { order: 2; }
}

/* Steps */
.steps { display: grid; gap: 16px; counter-reset: s; }
.step { padding: 28px 22px 26px; border-top: 1px solid var(--ink); transition: background .5s; }
.step:hover { background: var(--surface-warm); }
.step .num { display: block; font-size: 48px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--sun-orange-deep); margin-bottom: 22px; transition: color .5s; }
.step:hover .num { color: var(--sun-orange-deep); }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--ink-muted); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; } }
@media (min-width: 1025px) { .steps.s3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .steps.s4 { grid-template-columns: repeat(4, minmax(0,1fr)); } }

/* Cards: who it is for, offerings */
.cards { display: grid; gap: 32px; }
.card .fimg { aspect-ratio: 4 / 3; }
.card .fimg img { transition: transform 1.4s var(--ease); }
.card:hover .fimg img { transform: scale(1.05); }
.card .body { padding: 24px 4px 0; }
.card .tag { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--sun-orange-deep); }
.card h3 { margin: 8px 0 10px; font-size: 21px; }
.card p { color: var(--ink-muted); }
.card .tlink { display: inline-block; margin-top: 24px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1025px) { .cards.c3 { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; } }

.quote { padding: 32px; background: var(--surface-grey); border-radius: 0 40px 0 40px; }
.quote .big { font-size: 22px; font-weight: 800; line-height: 1.35; letter-spacing: -0.01em; }
.quote .small { margin-top: 14px; color: var(--ink-muted); }

/* Timeline */
.tl { position: relative; margin: 32px 0; padding-left: 28px; }
.tl-line { position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--sun-orange-deep); transform-origin: top; }
.tl-item { position: relative; padding-bottom: 20px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -28px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface-grey); border: 1px solid var(--sun-orange-deep); }
.tl-item .yr { font-weight: 800; font-size: 15px; color: var(--terracotta-deep); }

/* Interlude */
.interlude { padding: 88px 0; text-align: center; }
.interlude .pat { width: 120px; margin: 0 auto 32px; mix-blend-mode: multiply; filter: grayscale(1); }
.interlude .mantra { font-size: 34px; line-height: 1.1; }
.interlude .gloss { margin-top: 14px; font-size: 19px; color: var(--ink-muted); font-weight: 700; }
.interlude .body { margin: 24px auto 28px; max-width: 560px; color: var(--ink-muted); }
@media (min-width: 768px) { .interlude { padding: 120px 0; } .interlude .mantra { font-size: 56px; } .interlude .pat { width: 150px; } }

/* Dark panel */
.dark { background: var(--terracotta-deep); color: var(--surface-white); }
.panel { position: relative; overflow: hidden; border-radius: var(--radius-hero) 0 var(--radius-hero) 0; padding: 40px 24px; }
.dark .eyebrow { color: var(--terracotta-tint); }
.facts { margin-top: 36px; display: grid; border-top: 1px solid rgba(236,204,204,.45); }
.fact { padding: 22px 20px 24px 0; border-bottom: 1px solid rgba(236,204,204,.45); }
.fact .k { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--terracotta-tint); }
.fact .v { margin-top: 8px; font-size: 18px; font-weight: 600; }
.panel-foot { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between; }
.panel-foot p { color: #f3e3e3; max-width: 460px; }
.orb { position: absolute; right: -90px; top: -90px; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(236,204,204,.35); animation: breathe2 8s ease-in-out infinite; pointer-events: none; }
.orb.o2 { right: -40px; top: -40px; width: 200px; height: 200px; animation-delay: .6s; }
@media (min-width: 768px) {
  .panel { padding: 64px; }
  .facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 1025px) { .facts { grid-template-columns: repeat(3, minmax(0,1fr)); } }

/* FAQ */
.faq-wrap { display: grid; gap: 40px; }
.faq { border-top: 1px solid var(--ink); }
.faq:last-child { border-bottom: 1px solid var(--ink); }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; cursor: pointer; font-size: 18px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.pm { position: relative; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--terracotta); transition: background .4s, transform .5s var(--ease); }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--terracotta); transform: translate(-50%,-50%); transition: background .4s; }
.pm::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq[open] .pm { transform: rotate(45deg); background: var(--terracotta); }
.faq[open] .pm::before, .faq[open] .pm::after { background: var(--surface-white); }
.faq .ans { padding: 0 48px 24px 0; color: var(--ink-muted); }
.faq .ans p + p { margin-top: 12px; }
.faq[open] .ans { animation: fade .5s ease both; }
@media (min-width: 1025px) { .faq-wrap { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 80px; } }

/* Closing */
.closing { position: relative; background: var(--surface-grey); padding: 104px 0 96px; text-align: center; overflow: hidden; }
.closing h2 { position: relative; font-size: 36px; line-height: 1.05; letter-spacing: -0.035em; }
.closing p { position: relative; margin: 20px auto 36px; font-size: 18px; color: var(--ink-muted); max-width: 520px; }
.closing .btn { position: relative; }
.rising { position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; margin: -260px 0 0 -260px; pointer-events: none; }
.rising .disc { position: absolute; inset: 200px; border-radius: 50%; background: var(--sun-orange); opacity: .9; }
.rising .ring { position: absolute; border-radius: 50%; border: 1px solid var(--surface-white); }
.rising .a { inset: 150px; } .rising .b { inset: 90px; } .rising .c { inset: 20px; }
@media (min-width: 768px) { .closing { padding: 150px 0 140px; } .closing h2 { font-size: 64px; } }

/* Strip of other offerings */
.offer-grid { display: grid; gap: 20px; margin-top: 32px; }
.offer { padding: 28px 26px; border: 1px solid var(--terracotta-tint); border-radius: 0 30px 0 30px; transition: border-color .4s, transform .5s var(--ease); }
.offer:hover { border-color: var(--sun-orange-deep); transform: translateY(-4px); }
.offer .tag { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--sun-orange-deep); }
.offer h3 { font-size: 20px; margin: 8px 0 8px; }
.offer p { color: var(--ink-muted); margin-bottom: 16px; }
@media (min-width: 768px) { .offer-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; } }

/* Resources */
.toc { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; }
.limbs { display: grid; gap: 0; margin-top: 24px; border-top: 1px solid var(--terracotta-tint); }
.limb { padding: 18px 0; border-bottom: 1px solid var(--terracotta-tint); }
.limb strong { display: block; font-size: 18px; }
@media (min-width: 768px) { .limbs { grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 40px; } }
ol.guides { list-style: none; counter-reset: g; margin: 0; padding: 0; display: grid; gap: 0; }
ol.guides li { counter-increment: g; position: relative; padding: 22px 0 22px 64px; border-top: 1px solid var(--terracotta-tint); }
ol.guides li::before { content: counter(g, decimal-leading-zero); position: absolute; left: 0; top: 18px; font-size: 32px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--sun-orange-deep); }
.mantras { display: grid; gap: 40px; }
.mantra-block h3 { margin-bottom: 16px; }
.mantra-block .sa { font-size: 19px; line-height: 1.7; font-family: "Noto Serif Devanagari", var(--font-sans); }
.mantra-block .iast { margin-top: 6px; font-style: italic; color: var(--ink-muted); }
.mantra-block .en { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--terracotta-tint); }
.mantra-block .pair + .pair { margin-top: 14px; }
@media (min-width: 1025px) { .mantras { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 64px; } }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.gallery figure { margin: 0; }
.gallery .fimg { aspect-ratio: 4 / 5; }
.gallery .fimg img { transition: transform 1.4s var(--ease); }
.gallery figure:hover .fimg img { transform: scale(1.05); }
.gallery figcaption { margin-top: 10px; font-weight: 700; font-size: 14px; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; } }
@media (min-width: 1025px) { .gallery { grid-template-columns: repeat(4, minmax(0,1fr)); } }

/* Forms */
.form { display: grid; gap: 20px; max-width: 620px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { font-weight: 500; color: var(--ink-muted); }
.field input, .field textarea {
  width: 100%; font: 500 16px/1.5 var(--font-sans); color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--ink-soft); border-radius: var(--radius-button); background: var(--surface-white);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--terracotta-deep); outline-offset: 1px; }
.field .err { display: none; margin-top: 6px; color: var(--terracotta-deep); font-weight: 600; font-size: 14px; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea { border-color: var(--terracotta-deep); }
.count { margin-top: 6px; font-size: 13px; color: var(--ink-muted); }
.form-note { font-size: 14px; color: var(--ink-muted); }
.status { font-weight: 700; }
.status[data-state="error"] { color: var(--terracotta-deep); }

/* Policy page */
.policy h2 { font-size: 24px; margin: 48px 0 12px; }
.policy h2:first-child { margin-top: 0; }
.policy ul { margin: 12px 0 0; padding-left: 20px; }

/* Footer */
.foot { border-top: 1px solid var(--terracotta-tint); padding: 64px 0 36px; padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px)); }
.foot-grid { display: grid; gap: 36px; }
.foot .sig img { width: 140px; margin-bottom: 24px; }
.foot h4 { font-size: 22px; line-height: 1.4; }
.foot .sig p { margin-top: 4px; font-weight: 800; color: var(--ink-muted); }
.foot h5 { margin: 0 0 12px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--sun-orange-deep); font-weight: 800; }
.foot .col a { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; padding: 6px 0; }
.foot .col a:hover { color: var(--terracotta-deep); }
.foot-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--terracotta-tint); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: #3a3a3a; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1025px) { .foot-grid { grid-template-columns: minmax(0,1.4fr) repeat(3, minmax(0,1fr)); gap: 40px; } }

/* Scroll reveal: armed by script, so content is visible without it */
.armed [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.armed [data-reveal].in { opacity: 1; transform: none; }
.armed [data-reveal="img"] { transform: scale(.96); }
.armed [data-reveal="img"].in { transform: none; transition: opacity 1s, transform 1.6s var(--ease); }
.armed .tl .tl-line { transform: scaleY(0); transition: transform 1.8s var(--ease) .2s; }
.armed .tl.in .tl-line { transform: scaleY(1); }
.armed .rising .disc { transform: translateY(160px) scale(.7); opacity: 0; transition: transform 2s var(--ease), opacity 1.6s; }
.armed .rising.in .disc { transform: none; opacity: .9; }
.armed .rising .ring { transform: scale(.6); opacity: 0; transition: transform 2.2s var(--ease), opacity 2s; }
.armed .rising.in .ring { transform: none; opacity: 1; }
.armed .rising.in .a { transition-delay: .3s; } .armed .rising.in .b { transition-delay: .5s; } .armed .rising.in .c { transition-delay: .7s; }

@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.02); } }
@keyframes drift { from { transform: scale(1.02) translate(0,0); } to { transform: scale(1.08) translate(-1.5%,-1%); } }
@keyframes sunrise { from { transform: translateY(60px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes breathe { 0%, 100% { transform: scale(.86); opacity: .15; } 50% { transform: scale(1.08); opacity: .75; } }
@keyframes breathe2 { 0%, 100% { transform: scale(.92); } 50% { transform: scale(1.06); } }
@keyframes pulse { 0%, 100% { transform: scale(.7); } 50% { transform: scale(1.25); } }
@keyframes swapA { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes swapB { 0%, 45% { opacity: 0; } 50%, 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Visitors who set reduced motion get no animation at all */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .sun .ring { opacity: .5; }
  .breath .ex { display: none; }
  .armed [data-reveal], .armed .rising .disc, .armed .rising .ring, .armed .tl .tl-line { opacity: 1 !important; transform: none !important; }
}

/* Quiet Student Login link in the header */
.hdr-login { display: none; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.hdr-login:hover, .hdr-login[aria-current="page"] { color: var(--terracotta-deep); }
@media (min-width: 1025px) { .hdr-login { display: inline; } .hdr-right { gap: 20px; } }

/* Moon days widget (Resources) */
.moonw { margin-top: 32px; display: grid; gap: 24px; padding: 24px; background: var(--surface-white); border-radius: var(--radius-hero) 0 var(--radius-hero) 0; }
.moonw[hidden] { display: none; }
@media (min-width: 768px) { .moonw { grid-template-columns: 1fr 1fr; align-items: center; padding: 32px 40px; } }
.moonw-now { display: flex; gap: 20px; align-items: center; }
.moonw-disc { width: 96px; height: 96px; flex: none; }
.moonw-sky { fill: #141414; }
.moonw-dark { fill: #2e2e2e; }
.moonw-craters { fill: #cfc6b5; opacity: .45; }
.moonw-craters-dark { fill: #2a2a2a; opacity: 1; }
.moonw-k { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--sun-orange-deep); }
.moonw-v { margin: 0; font-size: 21px; font-weight: 800; }
.moonw-s { margin: 4px 0 0; color: var(--ink-muted); }
.moonw-next ul { list-style: none; margin: 0; padding: 0; }
.moonw-next li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: var(--border-thin) solid var(--surface-grey); }
.moonw-next li:first-child { border-top: 0; }

/* Class time checker (Mysore Programme) */
.ctime { margin-top: 18px; }
.ctime[hidden] { display: none; }
.ctime label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.ctime select { width: 100%; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--surface-white); border: var(--border-thin) solid #b9b9b9; border-radius: var(--radius-button); }
.ctime-out { margin: 12px 0 0; font-weight: 800; }
.ctime-out span { display: block; font-weight: 500; font-size: 14px; color: var(--ink-muted); }
/* Text-only hero (Mysore Programme page): the headline runs across the full width */
.hero.solo .hero-grid { grid-template-columns: minmax(0,1fr); }
.hero.solo h1 { max-width: none; }
.hero.solo .line { display: inline-block; vertical-align: top; margin-right: .18em; }
@media (min-width: 1025px) {
  .hero.solo { padding-bottom: 72px; }
  .hero.solo::after { display: none; }
  .hero.solo .hero-copy { padding-bottom: 0; }
}
