/* ==========================================================================
   Saikriti Arts
   One stylesheet, one palette. Folk colour: violet, magenta, saffron, teal.
   Every text/ground pair in here is checked against WCAG AA.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Grounds */
  --shell: #fff4e6;
  --stage: #241038;
  --violet: #43106e;
  --violet-mid: #83165c;
  --violet-deep: #280a44;
  --magenta: #a81a52;
  --magenta-deep: #8f1042;
  --teal: #096260;
  --teal-deep: #085856;
  --saffron: #ef8a1a;
  --saffron-lt: #f0a020;
  --ember: #a8390c;

  /* Inks */
  --ink: #2a1836;        /* 15.08:1 on shell */
  --ink-soft: #52405e;   /* 8.58:1 on shell */
  --ink-warm: #2b1205;   /* for use on saffron grounds */
  --cream: #fff8ef;      /* on dark grounds only */
  --cream-soft: rgba(255, 248, 239, 0.92);
  --amber: #ffd980;      /* on dark grounds only */

  /* Lines and lifts */
  --rule: #7d6889;       /* 4.59:1 on shell, clears the 3:1 UI minimum */
  --rule-soft: rgba(42, 24, 54, 0.14);
  --lift: 0 14px 32px rgba(42, 16, 58, 0.10);
  --lift-high: 0 26px 54px rgba(74, 18, 110, 0.22);

  /* The focus ring is redefined on dark sections, so one rule serves both */
  --ring: var(--magenta);

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --hindi: "Tiro Devanagari Hindi", "Fraunces", serif;

  /* Metrics */
  --pad: clamp(1.1rem, 3vw, 2.4rem);
  --max: 1180px;
  --r-panel: 1.5rem;
  --r-tile: 1.1rem;
  --r-field: 0.5rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------- reset --- */

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

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

body {
  margin: 0;
  background: var(--shell);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

/* Grid children must be allowed to shrink or long words push the track */
.hero,
.studio-grid,
.order-layout,
.visit-grid,
.class-grid,
.section-head,
.facts-row,
.hours,
.order-list li,
.form-row {
  min-width: 0;
}

.prose,
.card,
.fact,
.order-list span,
.hours p {
  overflow-wrap: break-word;
}

/* ------------------------------------------------------------ utilities --- */

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  border-radius: var(--r-field);
  background: var(--violet);
  color: var(--cream);
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

/* ---------------------------------------------------------------- type --- */

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1;
}

h1 {
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  font-variation-settings: "opsz" 144;
  line-height: 0.96;
}

h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  font-variation-settings: "opsz" 96;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.65rem;
  font-variation-settings: "opsz" 48;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 34rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.hindi {
  font-family: var(--hindi);
  letter-spacing: 0;
  line-height: 1.5;
}

/* Sentence case, no tracking, no middle dots. It reads as a sentence
   because it is one. */
.eyebrow {
  display: block;
  margin: 0 0 0.9rem;
  color: var(--magenta);
  font-size: 0.95rem;
  font-weight: 500;
}

.pull {
  margin: 1.5rem 0 0;
  font-family: var(--serif);
  font-weight: 520;
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  font-variation-settings: "opsz" 72;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--violet);
}

.fine {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* -------------------------------------------------------------- header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem var(--pad);
  background: rgba(255, 244, 230, 0.92);
  backdrop-filter: blur(14px);
}

/* The one rainbow in the design, and it lives here */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--magenta-deep), var(--saffron) 34%, var(--teal) 68%, var(--violet));
}

.site-header.scrolled {
  box-shadow: 0 6px 20px rgba(42, 16, 58, 0.09);
}

.logo {
  display: grid;
  gap: 0.1rem;
  font-family: var(--serif);
  line-height: 0.85;
  text-decoration: none;
}

.logo strong {
  font-size: 1.5rem;
  font-weight: 640;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.035em;
  color: var(--violet);
}

.logo span {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--magenta);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  position: relative;
  padding: 0.7rem 0.6rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-field);
  font-size: 1rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="true"] {
  color: var(--violet);
}

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.45rem;
  height: 2px;
  border-radius: 2px;
  background: var(--magenta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:not(.nav-cta):hover::after,
.nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

/* Written as .nav a.nav-cta so it outranks .nav a:hover without !important */
.nav a.nav-cta {
  margin-left: 0.5rem;
  padding-inline: 1.1rem;
  border-radius: 999px;
  background: var(--violet);
  color: var(--cream);
}

.nav a.nav-cta:hover {
  background: var(--magenta);
  color: var(--cream);
}

.menu-btn {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--violet);
}

.menu-btn span { top: 50%; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

/* --------------------------------------------------------------- focus --- */

.btn:focus-visible,
.menu-btn:focus-visible,
.chip:focus-visible,
.frame:focus-visible,
.close-btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

/* Dark grounds need a light ring. One token, redefined. */
.stage,
.visit,
.ribbon,
.site-footer,
.card.young,
.card.tradition,
.card.project,
.tone-violet,
.tone-teal,
.tone-ember {
  --ring: var(--amber);
}

/* ------------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.3rem;
  border: 2px solid var(--violet);
  border-radius: 999px;
  background: var(--violet);
  color: var(--cream);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  background: var(--magenta);
  border-color: var(--magenta);
  color: var(--cream);
}

.btn.ghost {
  background: transparent;
  color: var(--violet);
}

.btn.ghost:hover {
  background: var(--violet);
  color: var(--cream);
}

.btn.gold {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--ink-warm);
}

.btn.gold:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--violet);
}

/* ---------------------------------------------------- stage, the hero --- */

.stage {
  background:
    radial-gradient(720px 420px at 0% 0%, rgba(239, 138, 26, 0.30), transparent 62%),
    radial-gradient(640px 380px at 100% 100%, rgba(168, 26, 82, 0.34), transparent 60%),
    var(--stage);
  padding: clamp(0.7rem, 2vw, 1.25rem) clamp(0.7rem, 2vw, 1.25rem) 1rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(1rem, 2.5vw, 1.6rem);
  align-items: stretch;
  width: min(1240px, 100%);
  margin-inline: auto;
  /* .hero is a <section>, so the global section padding has to be undone */
  padding: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 3.4vw, 2.8rem);
  border-radius: var(--r-panel);
  /* Violet to magenta only. No light stop, so cream and amber text
     clear AA at every point across the panel. */
  background: linear-gradient(158deg, var(--violet) 0%, var(--violet-mid) 52%, var(--magenta) 100%);
  color: var(--cream);
  box-shadow: var(--lift-high);
}

.hero-copy .eyebrow {
  color: var(--cream-soft);
}

.hero-copy h1 {
  max-width: 16ch;
  color: var(--cream);
}

.hero-copy .lede {
  margin-top: 1.2rem;
  max-width: 30rem;
  color: var(--cream-soft);
  font-size: 1.14rem;
}

.hero-hindi {
  margin: 1.1rem 0 0;
  font-size: 1.35rem;
  color: var(--amber);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

.hero .btn {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--ink-warm);
}

.hero .btn:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--violet);
}

.hero .btn.ghost {
  background: transparent;
  border-color: rgba(255, 248, 239, 0.75);
  color: var(--cream);
}

.hero .btn.ghost:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--violet);
}

.hero-painting {
  position: relative;
  margin: 0;
  min-height: clamp(300px, 46vh, 500px);
  border-radius: var(--r-panel);
  box-shadow: var(--lift-high);
}

/* Taken out of flow on purpose. The image is a tall portrait, so with the
   width and height attributes set it would otherwise dictate the row
   height and leave the copy panel half empty. */
.hero-painting img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: inherit;
}

.hero-painting figcaption {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  margin: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(36, 12, 64, 0.82);
  color: var(--amber);
  font-size: 0.88rem;
}

/* ---------------------------------------------------------- paint strip --- */

.paint-strip {
  display: grid;
  grid-template-columns: 1fr 1.28fr 1fr;
  gap: clamp(0.5rem, 1.6vw, 0.75rem);
  width: min(1240px, 100%);
  margin: clamp(0.5rem, 1.6vw, 0.75rem) auto 0;
}

.paint-strip a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-tile);
  text-decoration: none;
}

.paint-strip img {
  width: 100%;
  height: clamp(150px, 19vw, 230px);
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.paint-strip a:hover img {
  transform: scale(1.05);
}

.paint-strip span {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  padding: 0.33rem 0.72rem;
  border-radius: 999px;
  background: rgba(20, 8, 28, 0.82);
  color: var(--cream);
  font-size: 0.86rem;
}

/* -------------------------------------------------------------- ribbon --- */

.ribbon {
  overflow: hidden;
  /* Every stop is dark enough for cream text */
  background: linear-gradient(90deg, var(--magenta-deep), var(--ember) 34%, var(--teal-deep) 68%, var(--violet));
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ribbon-track {
  display: flex;
  width: max-content;
  padding: 0.9rem 0;
  animation: drift 48s linear infinite;
}

.ribbon span {
  padding-inline: 1.1rem;
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}

.ribbon span::before {
  content: "\2022";
  margin-right: 1.1rem;
  color: var(--amber);
}

/* The track holds three copies of the list, so a third of it is always
   wider than the viewport and no gap can open at the right edge. */
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-33.3333%); }
}

/* Pausing on hover is pointless where there is no hover */
@media (hover: hover) {
  .ribbon:hover .ribbon-track {
    animation-play-state: paused;
  }
}

/* Stopped by script when the band scrolls out of view */
.ribbon.at-rest .ribbon-track {
  animation-play-state: paused;
}

/* ------------------------------------------------------------ sections --- */

section {
  padding: clamp(3.6rem, 7vw, 6rem) 0;
  scroll-margin-top: 4.4rem;
}

/* No arbitrary 01/02/03. A coloured rule carries the break instead, and
   the heading leads. Real numbering is kept only for the one sequence. */
.section-head {
  max-width: 44rem;
  margin-bottom: 2.4rem;
  padding-top: 1.3rem;
  border-top: 3px solid var(--magenta);
}

.section-head p {
  margin: 0.8rem 0 0;
  max-width: 40rem;
  color: var(--ink-soft);
}

#classes .section-head { border-top-color: var(--teal); }
#saturday .section-head { border-top-color: var(--ember); }
#wall .section-head { border-top-color: var(--violet); }
#order .section-head { border-top-color: var(--saffron); }

/* ------------------------------------------------------------- studio --- */

.studio-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3.4rem);
  align-items: start;
}

.prose p {
  margin: 0 0 1rem;
  max-width: 36rem;
  color: var(--ink-soft);
}

.prose p:last-child {
  margin-bottom: 0;
}

.studio-collage {
  display: grid;
  grid-template-rows: minmax(0, 1.35fr) minmax(0, 0.75fr);
  gap: 0.7rem;
  height: clamp(320px, 38vw, 470px);
}

.studio-collage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: var(--r-tile);
}

.facts-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.fact {
  padding: 1.1rem 1.15rem;
  border-radius: var(--r-tile);
  border-left: 4px solid var(--magenta);
}

.fact b {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 560;
  font-variation-settings: "opsz" 48;
  letter-spacing: -0.02em;
}

.fact span {
  color: var(--ink-soft);
  font-size: 1rem;
}

.facts-row .fact:nth-child(1) { border-left-color: var(--magenta); background: #fff0f5; }
.facts-row .fact:nth-child(2) { border-left-color: var(--teal); background: #e7f7f6; }
.facts-row .fact:nth-child(3) { border-left-color: var(--saffron); background: #ffeacb; }

/* ------------------------------------------------------------ classes --- */

.class-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-areas:
    "young tradition"
    "adult project";
  gap: 0.8rem;
}

.card {
  padding: 1.5rem 1.4rem;
  border-radius: var(--r-tile);
  min-height: 100%;
}

.card.young     { grid-area: young;     background: var(--violet); color: var(--cream); }
.card.tradition { grid-area: tradition; background: var(--teal);   color: var(--cream); }
.card.adult     { grid-area: adult;     background: #ffe3b5; }
.card.project   { grid-area: project;   background: var(--magenta); color: var(--cream); }

/* Sentence case, full opacity. The old uppercase 12px at 0.75 opacity
   failed contrast on every card. */
.card .kicker {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.card.young .kicker,
.card.tradition .kicker,
.card.project .kicker { color: var(--amber); }

.card.adult .kicker { color: var(--magenta); }

.card p {
  margin: 0;
  max-width: 34rem;
}

.card.young p,
.card.tradition p,
.card.project p { color: var(--cream-soft); }

.card.adult p { color: var(--ink-soft); }

.card ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  color: var(--ink-soft);
}

.card li {
  padding-left: 1rem;
  text-indent: -1rem;
}

.card li::before {
  content: "\2014\00a0";
  color: var(--magenta);
}

/* ----------------------------------------------------- the hour, a flow --- */

.saturday {
  background:
    linear-gradient(to right, rgba(74, 18, 120, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(74, 18, 120, 0.07) 1px, transparent 1px),
    #ffd98a;
  background-size: 28px 28px, 28px 28px, auto;
}

/* This content genuinely is a sequence, so it genuinely gets numbers. */
.hours {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hour;
}

.hours li {
  counter-increment: hour;
  padding-top: 0.9rem;
  border-top: 2px solid var(--violet);
}

.hours li::before {
  content: counter(hour, decimal-leading-zero);
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ember);
}

/* Was a <time> element holding "The table", "Looking" and so on, which is
   not a time and not valid markup. Now a plain <b>. */
.hours b {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 560;
  font-variation-settings: "opsz" 48;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--violet);
}

.hours p {
  margin: 0;
  color: #4a3320;
}

/* --------------------------------------------------------------- wall --- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.3rem;
}

.chip {
  min-height: 44px;
  padding: 0.4rem 1.05rem;
  border: 2px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.chip:hover {
  border-color: var(--violet);
  color: var(--violet);
}

.chip[aria-pressed="true"] {
  background: var(--violet);
  border-color: var(--violet);
  color: var(--cream);
}

.wall-count {
  margin: 0 0 1.3rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Auto-flow rows, so hiding a frame never leaves a hole in the grid */
.wall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(230px, 26vw, 330px);
  gap: 0.7rem;
}

.frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: var(--r-tile);
  text-align: left;
  box-shadow: var(--lift);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.frame[hidden] {
  display: none;
}

.frame:hover {
  transform: translateY(-4px);
  box-shadow: var(--lift-high);
}

.frame.tall { grid-row: span 2; }
.frame.wide { grid-column: span 2; }

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.frame:hover img {
  transform: scale(1.045);
}

.tone-violet  { background: var(--violet); }
.tone-teal    { background: var(--teal); }
.tone-saffron { background: var(--saffron-lt); }
.tone-ember   { background: var(--ember); }

.frame-meta {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  width: max-content;
  max-width: calc(100% - 1.3rem);
  padding: 0.35rem 0.78rem;
  border-radius: 999px;
  background: rgba(16, 6, 22, 0.82);
  color: var(--cream);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------- order --- */

.order-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.4rem, 4vw, 3.4rem);
  align-items: start;
}

.order-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-list li {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.9rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-top: 1px solid var(--rule-soft);
}

.order-list li:last-child {
  border-bottom: 1px solid var(--rule-soft);
}

.order-list b {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 560;
  font-variation-settings: "opsz" 48;
  color: var(--violet);
}

.order-list span {
  color: var(--ink-soft);
}

/* --------------------------------------------------------------- visit --- */

.visit {
  background: var(--violet-deep);
  color: var(--cream);
}

.visit .eyebrow {
  color: var(--amber);
}

.visit .section-head {
  border-top-color: var(--amber);
}

.visit .section-head p,
.visit .fine {
  color: rgba(255, 248, 239, 0.82);
}

.visit-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: start;
}

.contact-points {
  display: grid;
  gap: 0.2rem;
  margin: 1.5rem 0;
}

.contact-points a {
  display: block;
  padding: 0.7rem 0;
  border-radius: var(--r-field);
  text-decoration: none;
}

.contact-points small {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--amber);
  font-size: 0.95rem;
}

.contact-points strong {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  font-weight: 520;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.03em;
}

.contact-points a:hover strong {
  color: var(--amber);
}

/* ---------------------------------------------------------------- form --- */

form {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  border: 1px solid rgba(255, 248, 239, 0.28);
  border-radius: var(--r-panel);
  background: rgba(255, 248, 239, 0.06);
}

/* Sentence case at a readable size. The old treatment was 13px uppercase
   with 0.08em tracking, which was the worst type on the page. */
label {
  display: grid;
  gap: 0.35rem;
  color: var(--cream);
  font-size: 1rem;
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.8rem 0.75rem;
  /* 3.4:1 against the panel, clearing the 3:1 UI minimum */
  border: 1px solid rgba(255, 248, 239, 0.55);
  border-radius: var(--r-field);
  background: rgba(20, 8, 28, 0.35);
  color: var(--cream);
  font-size: 1rem;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 248, 239, 0.62);
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--amber);
}

select option {
  color: var(--ink);
  background: var(--shell);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.form-note {
  margin: 0;
  min-height: 1.4rem;
  color: var(--amber);
  font-size: 1rem;
}

.form-note.is-error {
  color: #ffb3b3;
}

/* -------------------------------------------------------------- footer --- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.4rem;
  padding: 1.4rem var(--pad) 1.6rem;
  background: #190a28;
  color: rgba(255, 248, 239, 0.78);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--amber);
}

/* ------------------------------------------------------------ lightbox --- */

dialog {
  width: min(760px, calc(100% - 1.5rem));
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(20, 8, 28, 0.82);
}

.lightbox {
  padding: 0.85rem;
  border-radius: var(--r-panel);
  background: var(--shell);
  box-shadow: var(--lift-high);
}

.lightbox header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0.4rem 0.8rem;
}

.lightbox h3 {
  margin: 0;
  font-size: 1.45rem;
  color: var(--violet);
}

.lightbox p {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.close-btn {
  flex: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--rule);
  border-radius: 50%;
  background: transparent;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--violet);
}

.close-btn:hover {
  border-color: var(--magenta);
  background: var(--magenta);
  color: var(--cream);
}

.lightbox-art img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--r-tile);
  background: var(--stage);
}

/* -------------------------------------------------- scroll progress bar --- */

.scroll-ink {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--magenta), var(--saffron) 55%, var(--teal));
  pointer-events: none;
}

/* ------------------------------------------------------------- motion --- */

/* One orchestrated moment: the hero arrives once, on load. Everything
   else below the fold simply fades up as it is reached. */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
}

.word > span {
  display: inline-block;
  transform: translateY(115%);
  animation: word-in 0.9s var(--ease) forwards;
  animation-delay: calc(0.045s * var(--i) + 0.08s);
}

.hero-copy .eyebrow,
.hero-copy .lede,
.hero-copy .hero-hindi,
.hero-copy .hero-actions {
  animation: rise-in 0.9s var(--ease) both;
}

.hero-copy .eyebrow      { animation-delay: 0.02s; }
.hero-copy .lede         { animation-delay: 0.5s; }
.hero-copy .hero-hindi   { animation-delay: 0.62s; }
.hero-copy .hero-actions { animation-delay: 0.74s; }

.reveal {
  opacity: 0;
  translate: 0 24px;
}

.reveal.show {
  animation: unveil 0.8s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}

dialog[open] .lightbox {
  animation: pop-in 0.4s var(--ease);
}

dialog[open]::backdrop {
  animation: fade-in 0.3s ease;
}

@keyframes word-in {
  to { transform: translateY(0); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

@keyframes unveil {
  to { opacity: 1; translate: 0 0; }
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --------------------------------------------------------- responsive --- */

/* The nav needs the burger well before 760px: six items plus the logo
   run out of room around 900px. */
@media (max-width: 900px) {
  .menu-btn {
    display: inline-block;
  }

  .nav {
    position: fixed;
    inset: 4.4rem 0.8rem auto;
    z-index: 50;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.6rem;
    border-radius: var(--r-tile);
    background: var(--shell);
    box-shadow: var(--lift-high);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.8rem 0.75rem;
  }

  .nav a:not(.nav-cta)::after {
    display: none;
  }

  .nav a.nav-cta {
    margin: 0.3rem 0 0;
    justify-content: center;
  }
}

@media (max-width: 980px) {
  .hero,
  .studio-grid,
  .order-layout,
  .visit-grid,
  .class-grid,
  .hours {
    grid-template-columns: 1fr;
  }

  .class-grid {
    grid-template-areas: none;
  }

  .card.young,
  .card.adult,
  .card.tradition,
  .card.project {
    grid-area: auto;
  }

  .facts-row {
    grid-template-columns: 1fr;
  }

  .hero-painting img {
    min-height: clamp(300px, 44vh, 440px);
  }

  .wall-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(220px, 32vw, 280px);
  }

  .hours {
    gap: 1.4rem;
  }
}

@media (max-width: 760px) {
  h1 {
    font-size: clamp(2.5rem, 12vw, 3.8rem);
  }

  .paint-strip {
    grid-template-columns: 1fr;
  }

  .paint-strip img {
    height: 210px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* The label column was fixed at 11rem and never reset, which left about
     98px for the description on a 320px screen. */
  .order-list li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .wall-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 270px;
  }

  .frame.tall,
  .frame.wide {
    grid-row: auto;
    grid-column: auto;
  }

  .studio-collage {
    height: auto;
    grid-template-rows: none;
  }

  .studio-collage img {
    height: 240px;
  }
}

/* ------------------------------------------------------ reduced motion --- */

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

  .ribbon-track,
  .word > span,
  .hero-copy .eyebrow,
  .hero-copy .lede,
  .hero-copy .hero-hindi,
  .hero-copy .hero-actions,
  .reveal,
  .reveal.show,
  dialog[open] .lightbox,
  dialog[open]::backdrop {
    animation: none;
  }

  .word > span,
  .reveal {
    opacity: 1;
    transform: none;
    translate: 0 0;
  }

  .scroll-ink {
    display: none;
  }

  .btn,
  .chip,
  .frame,
  .frame img,
  .paint-strip img,
  .close-btn,
  .nav a:not(.nav-cta)::after {
    transition: none;
  }

  .frame:hover,
  .frame:hover img,
  .paint-strip a:hover img {
    transform: none;
  }
}
