/* Layout: an indigo "evening aarti" band for the hero and the buy section, cool paper for reading,
   paintings carry the colour; the Devanagari signature name is the one bold typographic moment. */
:root {
  --indigo: #1E2250;         /* hero + buy band, both themes */
  --indigo-ink: #EEEAF8;     /* text on indigo */
  --saffron: #E8891C;
  --saffron-ink: #241405;    /* text on saffron */
  --kumkum: #B3202A;
  --bg: #F5F4F9;
  --surface: #FFFFFF;
  --tint: #ECEAF4;
  --fg: #1B1D33;
  --muted: #565A78;
  --line: #D9D8E6;
  --shadow: 0 18px 40px -22px rgba(30, 34, 80, .45);
  --font-display: "Rozha One", "Noto Serif Devanagari", Georgia, serif;
  --font-body: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-5: clamp(4.2rem, 2.4rem + 8vw, 8.5rem);
  --radius: 6px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --indigo: #191C44; --indigo-ink: #EEEAF8;
    --saffron: #F29A33; --saffron-ink: #241405; --kumkum: #E0545C;
    --bg: #111327; --surface: #1A1D38; --tint: #161934;
    --fg: #ECEAF6; --muted: #A4A7C6; --line: #2D3159;
    --shadow: 0 18px 40px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --indigo: #191C44; --indigo-ink: #EEEAF8;
  --saffron: #F29A33; --saffron-ink: #241405; --kumkum: #E0545C;
  --bg: #111327; --surface: #1A1D38; --tint: #161934;
  --fg: #ECEAF6; --muted: #A4A7C6; --line: #2D3159;
  --shadow: 0 18px 40px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--indigo);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--saffron); color: var(--saffron-ink); padding: 8px 14px; border-radius: var(--radius); }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }

.wrap { max-width: 1160px; margin-inline: auto; }
.muted { color: var(--muted); }
.h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--step-3); line-height: 1.1; margin: 0 0 .6em;
  text-wrap: balance; letter-spacing: .005em;
}
.h3 { font-weight: 600; font-size: var(--step-1); margin: 0 0 .5em; line-height: 1.3; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .55em 1.25em; border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--saffron { background: var(--saffron); color: var(--saffron-ink); }
.btn--saffron:hover { background: color-mix(in srgb, var(--saffron) 86%, #fff); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn--small { min-height: 38px; padding: .35em 1em; font-size: .95rem; }
.btn--block { width: 100%; }

/* Nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--indigo); color: var(--indigo-ink);
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  border-bottom: 1px solid color-mix(in srgb, var(--indigo-ink) 12%, transparent);
}
.nav__inner { max-width: 1160px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: baseline; gap: .55em; text-decoration: none; }
.brand__deva { font-family: var(--font-display); font-size: 1.7rem; color: var(--saffron); line-height: 1; }
.brand__latin { font-weight: 500; letter-spacing: .04em; opacity: .85; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a:not(.btn) { text-decoration: none; padding: .45em .8em; border-radius: 999px; font-weight: 500; opacity: .85; }
.nav__links a:not(.btn):hover, .nav__links a.is-active { opacity: 1; background: color-mix(in srgb, var(--indigo-ink) 12%, transparent); }
.nav__links .btn { margin-left: 8px; }
.nav__toggle { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; cursor: pointer; }
.nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 22px; height: 2px; background: currentColor; margin: auto; position: relative; transition: transform .2s ease; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -7px; } .nav__bars::after { top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  background: var(--indigo); color: var(--indigo-ink);
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.hero__inner { max-width: 1160px; margin-inline: auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__text { min-width: 0; }
.hero__name { margin: 0; font-weight: 400; }
.hero__deva {
  display: block; font-family: var(--font-display); font-size: var(--step-5);
  line-height: 1.05; color: var(--saffron); letter-spacing: .01em;
}
.hero__latin { display: block; font-family: var(--font-body); font-weight: 500; font-size: var(--step-2); line-height: 1.25; margin-top: .35em; text-wrap: balance; }
.hero__lede { margin-top: 1rem; max-width: 46ch; font-size: var(--step-1); font-weight: 300; opacity: .9; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.75rem; }

.hero__art { position: relative; aspect-ratio: 1 / .86; max-width: 100%; min-height: 0; }
.hero__frame {
  position: absolute; width: 56%; aspect-ratio: 1; padding: 0; border: 0; cursor: pointer;
  background: #2a1a10; box-shadow: 0 0 0 6px #6b4a2a, 0 0 0 8px #c9a26a, 0 26px 50px -18px rgba(0,0,0,.65);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), z-index 0s;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame:nth-child(1) { left: 0; top: 14%; transform: rotate(-6deg); z-index: 1; }
.hero__frame:nth-child(2) { left: 22%; top: 0; transform: rotate(1.5deg); z-index: 3; }
.hero__frame:nth-child(3) { right: 0; top: 20%; transform: rotate(7deg); z-index: 2; }
.hero__frame:hover, .hero__frame:focus-visible { z-index: 4; transform: rotate(0) scale(1.04); }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section--tint { background: var(--tint); }
.section--indigo { background: var(--indigo); color: var(--indigo-ink); }
.section--indigo .muted { color: color-mix(in srgb, var(--indigo-ink) 75%, transparent); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.about__text p { max-width: 62ch; }
.about__text p + p { margin-top: 1em; }
.milestone {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); border-top: 4px solid var(--kumkum);
}
.milestone__label { font-weight: 600; color: var(--kumkum); }
.milestone__text { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.25; margin-top: .4em; }
.milestone__note { color: var(--muted); margin-top: .8em; }
.milestone__path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 1.4em; font-size: var(--step--1); }
.milestone__path span { padding: .2em .7em; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.milestone__path span:not(:last-child)::after { content: ""; }
.milestone__path .is-now { background: var(--saffron); border-color: var(--saffron); color: var(--saffron-ink); font-weight: 600; }

/* Style / qualities */
.style__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(20px, 4vw, 64px); align-items: start; }
.style__intro { max-width: 62ch; font-size: var(--step-1); font-weight: 300; }
.qualities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(32px, 5vw, 56px); }
.quality { background: var(--surface); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); }
.quality h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); line-height: 1.1; }
.quality p { color: var(--muted); }
.quality__thumbs { display: flex; gap: 10px; margin-top: auto; padding-top: 6px; }
.quality__thumbs button { padding: 0; border: 0; background: none; cursor: pointer; width: 64px; height: 64px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform .15s ease; }
.quality__thumbs button:hover { transform: translateY(-2px); }
.quality__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Works */
.works__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: 32px; }
.works__head .h2 { margin-bottom: .25em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 500 .95rem/1 var(--font-body); padding: .65em 1.05em; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--fg); border: 1px solid var(--line);
}
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip__n { opacity: .6; margin-left: .35em; font-variant-numeric: tabular-nums; }

.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.card { min-width: 0; }
.card__btn { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; cursor: zoom-in; font: inherit; }
.card__img {
  position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 3px; background: var(--tint);
  box-shadow: var(--shadow);
}
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card__btn:hover .card__img img { transform: scale(1.035); }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; }
.card__title { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.2; }
.card__tag { font-size: var(--step--1); color: var(--muted); white-space: nowrap; }
.card__excerpt { color: var(--muted); font-size: .98rem; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__actions { display: flex; gap: 14px; margin-top: 10px; }
.linkbtn { background: none; border: 0; padding: 0; font: 600 .95rem var(--font-body); color: var(--kumkum); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Buy */
.buy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.steps { list-style: none; counter-reset: s; margin: 8px 0 0; padding: 0; display: grid; gap: 22px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
.steps li::before {
  content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.3rem;
  border: 2px solid var(--saffron); color: var(--saffron);
}
.steps strong { font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
.steps span { color: color-mix(in srgb, var(--indigo-ink) 75%, transparent); }
.upi { margin-top: 32px; padding: 20px; border-radius: var(--radius); border: 1px dashed color-mix(in srgb, var(--indigo-ink) 35%, transparent); display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.upi__qr { background: #fff; padding: 8px; border-radius: 4px; }
.upi__qr img, .upi__qr canvas { width: 132px; height: 132px; }
.upi__text { min-width: 0; flex: 1 1 200px; }
.upi__id { font-weight: 600; font-size: var(--step-1); word-break: break-all; }

.buyform { background: var(--surface); color: var(--fg); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-weight: 500; font-size: .95rem; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: 400 1rem/1.4 var(--font-body); color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 4px; padding: .7em .8em; width: 100%; min-width: 0;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--saffron); outline-offset: 0; border-color: var(--saffron); }
.field [aria-invalid="true"] { border-color: var(--kumkum); }
.field__error { color: var(--kumkum); font-size: var(--step--1); }
.buyform__result { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.buyform__ok { font-weight: 600; }
.msg { white-space: pre-wrap; font: 400 .95rem/1.5 var(--font-body); background: var(--tint); border-radius: 4px; padding: 14px; margin: 10px 0 14px; max-height: 220px; overflow: auto; }
.buyform__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.contact__card { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); background: var(--surface); }
.contact__label { color: var(--muted); }
.contact__num { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); line-height: 1.15; margin-top: .1em; user-select: all; font-variant-numeric: tabular-nums; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); padding-left: var(--gutter-l); padding-right: var(--gutter-r); color: var(--muted); font-size: .95rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer__link { font-weight: 500; }

/* Lightbox */
.lb, .sheet { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
.lb__backdrop, .sheet__backdrop { position: absolute; inset: 0; background: rgba(10, 11, 30, .82); backdrop-filter: blur(4px); }
.lb__panel {
  position: relative; width: min(1180px, 100%); max-height: 100%; overflow: auto;
  background: var(--surface); color: var(--fg); border-radius: 8px;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  animation: lbIn .28s cubic-bezier(.2,.7,.2,1);
}
@keyframes lbIn { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.lb__stage { position: relative; background: #0f1024; overflow: hidden; display: grid; place-items: center; min-height: 0; aspect-ratio: 1; touch-action: pan-y; }
.lb__stage img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; transition: transform .3s ease; transform-origin: center; user-select: none; -webkit-user-drag: none; }
.lb__stage.is-zoomed img { cursor: zoom-out; transform: scale(2.2); transition: transform .3s ease, transform-origin .05s linear; }
.lb__nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.88); color: #1B1D33; font-size: 2rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding-bottom: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.lb__nav--prev { left: 14px; } .lb__nav--next { right: 14px; }
.lb__stage.is-zoomed .lb__nav, .lb__stage.is-zoomed .lb__hint { opacity: 0; pointer-events: none; }
.lb__hint { position: absolute; bottom: 12px; left: 50%; translate: -50% 0; background: rgba(0,0,0,.55); color: #fff; font-size: .85rem; padding: .25em .8em; border-radius: 999px; pointer-events: none; transition: opacity .2s; }
.lb__close {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--tint); color: var(--fg); font-size: 1.7rem; line-height: 1; cursor: pointer;
}
.lb__info { padding: clamp(24px, 3vw, 40px); padding-top: 56px; display: flex; flex-direction: column; min-width: 0; }
.lb__count { color: var(--muted); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.lb__title { font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); line-height: 1.1; margin: .15em 0 0; text-wrap: balance; }
.lb__sub { color: var(--muted); margin-top: .3em; }
.lb__quote { margin: 1.3em 0 0; padding-left: 16px; border-left: 3px solid var(--saffron); font-size: var(--step-1); font-weight: 300; line-height: 1.55; }
.lb__by { color: var(--muted); font-size: var(--step--1); margin-top: .6em; padding-left: 19px; }
.lb__details { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 1.6em 0 0; padding-top: 1.2em; border-top: 1px solid var(--line); }
.lb__details dt { color: var(--muted); }
.lb__details dd { margin: 0; font-weight: 500; }
.lb__details .is-pending { font-weight: 400; color: var(--muted); font-style: italic; }
.lb__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 1.6em; }

/* Privacy sheet */
.sheet__panel {
  position: relative; width: min(760px, 100%); max-height: 100%; overflow: auto; background: var(--surface); color: var(--fg);
  border-radius: 8px; padding: clamp(24px, 4vw, 48px); animation: lbIn .28s cubic-bezier(.2,.7,.2,1);
}
.sheet__panel p, .sheet__panel ul { max-width: 64ch; }
.sheet__panel p + p, .sheet__panel ul + p { margin-top: .8em; }
.sheet__panel .h3 { margin-top: 1.6em; }
.sheet__panel ul { margin: .6em 0; padding-left: 1.2em; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); translate: -50% 20px; z-index: 90;
  background: var(--fg); color: var(--bg); padding: .7em 1.2em; border-radius: 999px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, translate .2s ease; max-width: calc(100% - 32px);
}
.toast.is-on { opacity: 1; translate: -50% 0; }

body.is-locked { overflow: hidden; }

/* Responsive */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qualities { grid-template-columns: minmax(0, 1fr); }
  .quality { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .quality > div:first-child { flex: 1 1 260px; min-width: 0; }
  .quality__thumbs { margin-top: 0; padding-top: 0; }
  .lb__panel { grid-template-columns: minmax(0, 1fr); }
  .lb__stage { aspect-ratio: auto; height: min(62vh, 100vw); }
  .lb__info { padding-top: 24px; }
}
@media (max-width: 860px) {
  .nav__toggle { display: grid; place-items: center; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--indigo); padding: 8px var(--gutter-r) 20px var(--gutter-l); gap: 2px;
    border-bottom: 1px solid color-mix(in srgb, var(--indigo-ink) 12%, transparent);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: .8em .6em; border-radius: 6px; }
  .nav__links .btn { margin: 10px 0 0; }
  .hero__inner, .about, .style__head, .buy, .contact { grid-template-columns: minmax(0, 1fr); }
  .hero__art { width: min(520px, 100%); margin-inline: auto; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .contact__actions .btn, .hero__cta .btn { flex: 1 1 auto; }
  .lb__nav { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================
   MOTION LAYER
   ============================================================ */
:root { --ease-out: cubic-bezier(.2, .7, .2, 1); --ease-back: cubic-bezier(.34, 1.56, .64, 1); }

/* Nav: compact on scroll + reading progress */
.nav { transition: box-shadow .3s ease; }
.nav__inner { transition: min-height .3s var(--ease-out); }
.nav.is-compact { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); }
.nav.is-compact .nav__inner { min-height: 54px; }
.nav__progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--saffron);
  transform: scaleX(0); transform-origin: left; pointer-events: none;
}
.nav__links a:not(.btn) { transition: background-color .2s ease, opacity .2s ease; }

/* Buttons: lift, glow, ripple */
.btn, .chip { position: relative; overflow: hidden; isolation: isolate; }
.btn { transition: transform .2s var(--ease-out), background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--saffron:hover { box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--saffron) 80%, transparent); }
.btn:active { transform: translateY(0) scale(.98); }
.ripple {
  position: absolute; border-radius: 50%; background: currentColor; opacity: .22; pointer-events: none; z-index: -1;
  transform: scale(0); animation: ripple .6s var(--ease-out) forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.btn.is-done { background: var(--saffron); color: var(--saffron-ink); border-color: var(--saffron); }
.tick { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tick path { stroke-dasharray: 20; stroke-dashoffset: 20; animation: draw .35s .05s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chip { transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .2s var(--ease-out); }
.chip:hover { transform: translateY(-1px); border-color: var(--fg); }

/* Hero: one orchestrated entrance */
.hero__art { transform: translateY(var(--sy, 0px)); }
.hero__frame { translate: calc(var(--px, 0) * var(--depth, 20px)) calc(var(--py, 0) * var(--depth, 20px)); transition: transform .35s var(--ease-out), translate .6s var(--ease-out); }
.hero__frame:nth-child(1) { --depth: 14px; }
.hero__frame:nth-child(2) { --depth: 30px; }
.hero__frame:nth-child(3) { --depth: 20px; }
html.motion .hero__deva { animation: inkIn 1.2s .1s var(--ease-out) backwards; }
html.motion .hero__latin { animation: rise .8s .55s var(--ease-out) backwards; }
html.motion .hero__lede { animation: rise .8s .7s var(--ease-out) backwards; }
html.motion .hero__cta { animation: rise .8s .85s var(--ease-out) backwards; }
html.motion .hero__frame:nth-child(1) { animation: fan1 1.1s .45s var(--ease-out) backwards; }
html.motion .hero__frame:nth-child(2) { animation: fan2 1.1s .3s var(--ease-out) backwards; }
html.motion .hero__frame:nth-child(3) { animation: fan3 1.1s .6s var(--ease-out) backwards; }
@keyframes inkIn { from { clip-path: inset(0 100% 0 0); opacity: .2; } to { clip-path: inset(0 -10% 0 0); opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fan1 { from { opacity: 0; transform: translate(40%, 6%) rotate(0deg) scale(.9); } }
@keyframes fan2 { from { opacity: 0; transform: translateY(30px) rotate(0deg) scale(.92); } }
@keyframes fan3 { from { opacity: 0; transform: translate(-40%, -4%) rotate(0deg) scale(.9); } }

/* Scroll reveal (only applied by script to elements below the first screen) */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .7s ease var(--d, 0ms), transform .9s var(--ease-out) var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.card.rv { transform: translateY(36px) scale(.97); }
.card.rv.in { transform: none; }

/* Gallery cards: tilt + lamp-light sheen */
.card__img { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s var(--ease-out), box-shadow .35s ease; will-change: transform; }
.card__img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 214, 140, .42), rgba(255, 214, 140, 0) 55%);
  mix-blend-mode: soft-light;
}
.card__btn:hover .card__img { box-shadow: 0 28px 50px -22px rgba(30, 34, 80, .6); }
.card__btn:hover .card__img::after { opacity: 1; }
.card__title { transition: color .25s ease; }
.card__btn:hover .card__title { color: var(--kumkum); }
.linkbtn { transition: text-underline-offset .2s ease, color .2s ease; }
.linkbtn:hover { text-underline-offset: 6px; }

/* Qualities: thumbnails fan on hover */
.quality { transition: transform .3s var(--ease-out), box-shadow .3s ease; }
.quality:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quality__thumbs button { transition: transform .3s var(--ease-back), box-shadow .2s ease; }
.quality:hover .quality__thumbs button:nth-child(1) { transform: rotate(-6deg) translateY(-2px); }
.quality:hover .quality__thumbs button:nth-child(3) { transform: rotate(6deg) translateY(-2px); }
.quality__thumbs button:hover, .quality:hover .quality__thumbs button:hover { transform: translateY(-6px) scale(1.12); box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .45); z-index: 1; position: relative; }

/* Milestone: career path lights up in order */
.milestone__path span { transition: border-color .3s ease, color .3s ease; }
html.motion .milestone__path.play span:not(.is-now) { animation: pathGlow .9s ease backwards; }
html.motion .milestone__path.play span:nth-child(2) { animation-delay: .25s; }
html.motion .milestone__path.play span:nth-child(3) { animation-delay: .5s; }
html.motion .milestone__path.play .is-now { animation: pop .6s .8s var(--ease-back) backwards; }
@keyframes pathGlow { 40% { border-color: var(--saffron); color: var(--fg); } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* Buy steps: numbers fill and the thread draws as you arrive */
.steps li { position: relative; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 21px; top: 50px; bottom: -18px; width: 2px;
  background: color-mix(in srgb, var(--saffron) 55%, transparent); transform-origin: top;
}
html.motion .steps li:not(:last-child)::after { transform: scaleY(0); transition: transform .5s var(--ease-out); }
html.motion .steps.play li:not(:last-child)::after { transform: scaleY(1); }
html.motion .steps.play li::before { animation: stepFill .55s var(--ease-back) forwards; }
.steps li:nth-child(2)::before, .steps li:nth-child(1)::after { animation-delay: .35s; transition-delay: .2s; }
.steps li:nth-child(3)::before, .steps li:nth-child(2)::after { animation-delay: .7s; transition-delay: .55s; }
.steps li:nth-child(4)::before, .steps li:nth-child(3)::after { animation-delay: 1.05s; transition-delay: .9s; }
.steps li:nth-child(2)::before { animation-delay: .35s; }
.steps li:nth-child(3)::before { animation-delay: .7s; }
.steps li:nth-child(4)::before { animation-delay: 1.05s; }
@keyframes stepFill {
  55% { transform: scale(1.18); }
  to { background: var(--saffron); color: var(--saffron-ink); transform: scale(1); }
}

/* Form feedback */
.field input, .field select, .field textarea { transition: border-color .2s ease, box-shadow .2s ease; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--saffron) 22%, transparent); }
.is-shake { animation: shake .4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.buyform__result:not([hidden]) { animation: rise .45s var(--ease-out); }

/* Contact number underline sweep */
.contact__num { background: linear-gradient(var(--saffron), var(--saffron)) left bottom / 100% 3px no-repeat; padding-bottom: 4px; display: inline-block; }
html.motion .contact__num { background-size: 0 3px; transition: background-size 1s .2s var(--ease-out); }
html.motion .contact__num.play { background-size: 100% 3px; }

/* Lightbox close */
.lb__close { transition: transform .3s var(--ease-out), background-color .2s ease; }
.lb__close:hover { transform: rotate(90deg); }
.lb__nav { transition: transform .2s var(--ease-out), background-color .2s ease; }
.lb__nav:hover { transform: scale(1.08); background: #fff; }
.sheet__backdrop, .lb__backdrop { animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } }

/* Back to top */
.totop {
  position: fixed; z-index: 45; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  background: var(--indigo); color: var(--saffron); display: grid; place-items: center;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6), 0 0 0 1px color-mix(in srgb, var(--indigo-ink) 18%, transparent);
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: opacity .3s ease, transform .35s var(--ease-back);
}
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { transform: translateY(-3px); }
.totop svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
  .hero__art, .card__img { transform: none !important; }
  .hero__frame { translate: none !important; }
}
