/* ==========================================================================
   Pretty Pitara — core stylesheet
   Design language adapted from the "AI Art Museum" reference:
   near-black stage, light stone sections, asymmetric offset card grid,
   oversized light-weight grotesque display type, pill controls,
   numbered index labels, stacked hairline dividers.
   Recoloured to the Pretty Pitara mark: wine #8E4052 -> plum #884C81
   on the logo's dusty-pink #DCC8D2.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Ink / stage */
  --ink:          #0B0709;
  --ink-2:        #120C10;
  --ink-3:        #1A1216;
  --ink-line:     rgba(220, 200, 210, .14);

  /* Light sections (from the logo backdrop) */
  --bone:         #DCC8D2;
  --bone-2:       #EFE6EA;
  --bone-3:       #C9B2BE;
  --bone-line:    rgba(11, 7, 9, .12);

  /* Brand gradient (sampled from the mark) */
  --wine:         #8E4052;
  --plum:         #884C81;
  --rose:         #C4576F;
  --rose-soft:    #D98BA0;
  --grad:         linear-gradient(145deg, var(--wine) 0%, #94446A 48%, var(--plum) 100%);
  --grad-flat:    linear-gradient(90deg, var(--wine), var(--plum));

  /* Type on ink */
  --fg:           #F4EBEF;
  --fg-2:         rgba(244, 235, 239, .62);
  --fg-3:         rgba(244, 235, 239, .38);
  /* Type on bone */
  --on-bone:      #180F14;
  --on-bone-2:    rgba(24, 15, 20, .62);
  --on-bone-3:    rgba(24, 15, 20, .40);

  /* Families */
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rhythm */
  --gut:      clamp(1.25rem, 4vw, 2.5rem);
  --bay:      clamp(4.5rem, 11vw, 11rem);   /* section padding block */
  --radius:   26px;
  --radius-sm: 16px;
  --maxw:     1560px;

  /* Motion */
  --ease:     cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur:      .7s;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(.95rem, .35vw + .86rem, 1.0625rem);
  line-height: 1.62;
  letter-spacing: -.005em;
  color: var(--fg);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--rose); color: #fff; }

:focus-visible {
  outline: 2px solid var(--rose-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.pp-skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--bone); color: var(--on-bone);
  padding: .75rem 1.25rem; border-radius: 0 0 12px 0;
}
.pp-skip:focus { left: 0; }

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

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.shell--tight { max-width: 1200px; }
.shell--text  { max-width: 900px; }

.bay { padding-block: var(--bay); position: relative; }

.stage { background: var(--ink);  color: var(--fg); }
.stone { background: var(--bone); color: var(--on-bone); }
.stone-2 { background: var(--bone-2); color: var(--on-bone); }

/* Stone sections re-map the text tokens so shared components invert cleanly */
.stone, .stone-2 {
  --fg: var(--on-bone);
  --fg-2: var(--on-bone-2);
  --fg-3: var(--on-bone-3);
  --ink-line: var(--bone-line);
}

/* Stacked hairline divider — the reference's signature section break */
.rules { display: grid; gap: 3px; padding-block: 2px; }
.rules span { display: block; height: 1px; background: currentColor; opacity: .28; }
.rules span:nth-child(2) { opacity: .2; }
.rules span:nth-child(3) { opacity: .14; }
.rules span:nth-child(4) { opacity: .08; }

/* --------------------------------------------------------------------------
   4. Type
   -------------------------------------------------------------------------- */
/*
 * Display type is bound to viewport height as well as width. On a short
 * laptop window the vh term wins, which keeps the hero from growing taller
 * than the screen it has to fit inside.
 */
.display {
  font-weight: 200;
  font-size: clamp(2.4rem, min(7vw, 9.5vh), 7rem);
  line-height: .95;
  letter-spacing: -.038em;
  text-wrap: balance;
}
.display--xl { font-size: clamp(2.6rem, min(9.5vw, 12vh), 9.5rem); line-height: .92; }
.display--sm { font-size: clamp(1.9rem, 4.4vw, 3.75rem); line-height: 1.02; letter-spacing: -.03em; }

/* Two-tone statement type, straight from the reference */
.display .dim { color: var(--fg-3); }

.eyebrow {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: .6;
  flex: none;
}
.eyebrow--plain::before { display: none; }

/* (01) style index label */
.idx {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  color: var(--fg-3);
}

.section-title {
  font-weight: 200;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -.032em;
  text-transform: lowercase;
}

.lede {
  font-size: clamp(1.0625rem, .55vw + .95rem, 1.375rem);
  line-height: 1.5;
  font-weight: 300;
  color: var(--fg-2);
  letter-spacing: -.012em;
  max-width: 60ch;
}

.body-muted { color: var(--fg-2); max-width: 62ch; }

.mono-note {
  font-family: var(--mono);
  font-size: .75rem;
  line-height: 1.6;
  letter-spacing: .01em;
  color: var(--fg-3);
}

.grad-text {
  background: var(--grad-flat);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   5. Controls
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-bd: color-mix(in srgb, currentColor 30%, transparent);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: -.005em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad);
  transform: translateY(101%);
  transition: transform .55s var(--ease-out);
  z-index: -1;
}
.btn:hover { color: #fff; border-color: transparent; }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(.98); }

.btn--fill {
  --btn-bg: var(--grad);
  --btn-fg: #fff;
  --btn-bd: transparent;
  background-image: var(--grad);
}
.btn--fill::before { background: #fff; }
.btn--fill:hover { color: var(--wine); }

.btn--solid {
  --btn-bg: var(--fg);
  --btn-fg: var(--ink);
  --btn-bd: transparent;
}

.btn .arrow { transition: transform .45s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* Circular gradient arrow button — the reference's orange dot */
.dot-btn {
  width: 46px; height: 46px;
  border-radius: 999px;
  border: 0;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease);
}
.dot-btn:hover {
  transform: scale(1.08) rotate(45deg);
  box-shadow: 0 10px 34px -8px rgba(142, 64, 82, .8);
}
.dot-btn svg { width: 17px; height: 17px; }

/* Text link with animated rule */
.ulink {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  position: relative;
  padding-bottom: 2px;
  color: var(--fg);
}
.ulink::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform .5s var(--ease-out);
}
.ulink:hover::after { transform-origin: left; animation: ulink-wipe .6s var(--ease-out); }
@keyframes ulink-wipe {
  0%   { transform: scaleX(1); transform-origin: right; }
  49%  { transform: scaleX(0); transform-origin: right; }
  50%  { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

/* --------------------------------------------------------------------------
   6. Floating nav pill (no fixed header — appears past the hero)
   -------------------------------------------------------------------------- */
.pill-nav {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: clamp(1rem, 2.4vw, 1.75rem);
  transform: translate(-50%, 140%);
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .4rem .4rem .4rem .95rem;
  border-radius: 999px;
  background: rgba(18, 12, 16, .72);
  border: 1px solid rgba(244, 235, 239, .12);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 18px 60px -20px rgba(0, 0, 0, .9);
  transition: transform .7s var(--ease-out), opacity .5s var(--ease);
  opacity: 0;
  max-width: calc(100vw - 2rem);
}
.pill-nav.is-in { transform: translate(-50%, 0); opacity: 1; }

.pill-nav__mark {
  width: 26px; height: 26px;
  border-radius: 999px;
  margin-right: .45rem;
  flex: none;
}
.pill-nav a.pill-nav__item {
  font-size: .8125rem;
  color: rgba(244, 235, 239, .68);
  padding: .5rem .85rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .35s var(--ease), background-color .35s var(--ease);
}
.pill-nav a.pill-nav__item:hover { color: #F4EBEF; background: rgba(244, 235, 239, .08); }
.pill-nav a.pill-nav__item[aria-current="page"] { color: #F4EBEF; }

.pill-nav__cart {
  position: relative;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  flex: none;
  transition: transform .4s var(--ease-out);
}
.pill-nav__cart:hover { transform: scale(1.07); }
.pill-nav__cart svg { width: 16px; height: 16px; }
.pill-nav__count {
  position: absolute; top: -3px; right: -3px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .5625rem;
  line-height: 17px;
  text-align: center;
  border: 2px solid var(--ink);
}

@media (max-width: 700px) {
  .pill-nav { padding-left: .55rem; gap: .1rem; }
  .pill-nav__mark { margin-right: .2rem; }
  .pill-nav a.pill-nav__item { padding: .5rem .6rem; font-size: .75rem; }
  .pill-nav .hide-sm { display: none; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: end;
  padding-block: clamp(5rem, 12vh, 8rem) clamp(2rem, 5vh, 4rem);
  overflow: hidden;
  isolation: isolate;
}
/* The hero lede is capped so it never pushes the fold on a short window */
.hero .lede { max-width: 52ch; font-size: clamp(1rem, .4vw + .9rem, 1.25rem); }

/* WebGL canvas / fallback still both live here */
.hero__stage {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 85% at 50% 8%, #2A1A22 0%, #140D11 42%, var(--ink) 78%);
}
.hero__stage canvas { width: 100% !important; height: 100% !important; display: block; }

.hero__fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(58% 42% at 50% 34%, rgba(196, 87, 111, .34), transparent 68%),
    radial-gradient(90% 60% at 50% 100%, rgba(136, 76, 129, .30), transparent 70%),
    radial-gradient(120% 85% at 50% 8%, #2A1A22 0%, #140D11 45%, var(--ink) 80%);
}
/* Reflective floor line, echoing the reference's gallery render */
.hero__fallback::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background: linear-gradient(to bottom, transparent, rgba(196, 87, 111, .10) 55%, rgba(11, 7, 9, .9));
  mask-image: linear-gradient(to bottom, transparent, #000 40%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%);
}

/* Keeps the gallery legible behind bottom-aligned hero copy: light hand in
   the upper half where the canvases hang, heavy from the horizon down. */
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(11, 7, 9, .55) 0%,
    rgba(11, 7, 9, .04) 16%,
    rgba(11, 7, 9, .04) 44%,
    rgba(11, 7, 9, .55) 58%,
    rgba(11, 7, 9, .90) 72%,
    var(--ink) 92%
  );
  pointer-events: none;
}

.hero__mark {
  width: clamp(56px, min(7vw, 9vh), 92px);
  border-radius: 999px;
  margin-bottom: clamp(1rem, 2.4vh, 1.75rem);
  box-shadow: 0 22px 70px -22px rgba(142, 64, 82, .9);
}

.hero__title { margin-bottom: clamp(.9rem, 2vh, 1.5rem); }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(1.25rem, 3vh, 2.5rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero__scroll {
  position: absolute;
  right: var(--gut); bottom: clamp(2.5rem, 6vh, 4.5rem);
  display: flex; align-items: center; gap: .6rem;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.hero__scroll i {
  display: block; width: 1px; height: 54px;
  background: linear-gradient(to bottom, currentColor, transparent);
  animation: scroll-tick 2.4s var(--ease) infinite;
}
@keyframes scroll-tick {
  0%, 100% { transform: scaleY(.35); transform-origin: top; opacity: .5; }
  50%      { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}
@media (max-width: 900px) { .hero__scroll { display: none; } }

/* Hero stat trio */
.stat-row { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem); }
.stat__n {
  font-weight: 200;
  font-size: clamp(1.75rem, 2.6vw, 2.75rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.stat__l {
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: .45rem;
}

/* --------------------------------------------------------------------------
   8. Marquee
   -------------------------------------------------------------------------- */
.marquee {
  --speed: 44s;
  overflow: hidden;
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-block: 1px solid var(--ink-line);
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee var(--speed) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-right: clamp(1.75rem, 4vw, 3.5rem);
}
.marquee__word {
  font-weight: 200;
  font-size: clamp(1.75rem, 4.4vw, 4rem);
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--fg-3);
  white-space: nowrap;
  transition: color .4s var(--ease);
}
.marquee__word:hover { color: var(--fg); }
.marquee__sep { color: var(--rose); font-size: clamp(1.25rem, 2.4vw, 2rem); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   9. Offset card grid (highlights)
   -------------------------------------------------------------------------- */
/*
 * Masonry, via columns. Once every frame is the true shape of its artwork,
 * cards can no longer share a row height — a grid would leave ragged gaps
 * under every short piece. Columns let each card sit directly beneath the
 * one above it, which is also how work actually gets hung.
 *
 * The asymmetry the reference gets from staggered spans now comes for free
 * from the artwork itself: portrait beside square beside landscape.
 */
.offset-grid {
  columns: 3;
  column-gap: clamp(1rem, 2vw, 1.75rem);
}
.offset-grid > * {
  break-inside: avoid;
  page-break-inside: avoid; /* Safari */
  margin-bottom: clamp(1.25rem, 2.5vw, 2.25rem);
  display: block;
}
@media (max-width: 900px) { .offset-grid { columns: 2; } }
@media (max-width: 560px) { .offset-grid { columns: 1; } }

/* --------------------------------------------------------------------------
   10. Art card (3D tilt)
   -------------------------------------------------------------------------- */
.art-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  transform-style: preserve-3d;
  transition: box-shadow .6s var(--ease), border-color .6s var(--ease);
  will-change: transform;
}
.art-card:hover {
  border-color: color-mix(in srgb, var(--rose) 40%, transparent);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(196, 87, 111, .12);
}

/*
 * The frame takes the shape of the artwork, not the other way round.
 *
 * Priti's photographs run from 600×1200 to 1200×597 — a fourfold spread of
 * aspect ratios. Forcing them into one box would mean either cropping (which
 * would slice the gilt edge off a Tanjore panel) or letterboxing every
 * portrait piece inside a landscape hole. So the media box has no aspect of
 * its own: the image sets the height, and each card ends up exactly as tall
 * as the piece it holds.
 *
 * Nothing is ever displayed larger than it was shot either — `--nw` carries
 * the file's true pixel width and caps the image there, so a 621px-wide
 * photograph is never stretched across a 750px card and softened.
 */
.art-card__media {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(.6rem, 2%, 1.35rem);
  background:
    radial-gradient(120% 90% at 50% 0%, #241820, #140D12 72%);
}

.art-card__media img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: auto;
  max-width: min(100%, calc(var(--nw, 1200) * 1px));
  border-radius: 3px;
  box-shadow: 0 24px 60px -22px rgba(0, 0, 0, .95);
  transform: scale(1);
  transition: transform 1.1s var(--ease-out);
}
.art-card:hover .art-card__media img { transform: scale(1.035); }

/* Cards still awaiting photography take their shape from the placeholder
   itself rather than from the box, so the height doesn't depend on :has(). */

/*
 * Fixed-shape variant, used only where a tidy row matters more than true
 * proportion — the discipline rail. Still contain, still never cropped.
 */
.art-card__media--fixed { aspect-ratio: 16 / 11; padding: clamp(1rem, 4%, 2rem); }
.art-card__media--fixed img {
  width: auto;
  height: auto;
  max-width: min(100%, calc(var(--nw, 1200) * 1px));
  max-height: 100%;
  object-fit: contain;
}
/* Optional set shapes, should a future section want a uniform row.
   Apply to the media element, alongside --fixed. */
.art-card__media--tall   { aspect-ratio: 3 / 4; }
.art-card__media--square { aspect-ratio: 1 / 1; }

/* Placeholder shown until real photography lands */
.art-card__ph {
  position: relative;
  grid-area: 1 / 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  display: grid;
  place-content: center;
  gap: .6rem;
  text-align: center;
  border-radius: 3px;
  background:
    radial-gradient(80% 60% at 30% 20%, rgba(142, 64, 82, .40), transparent 60%),
    radial-gradient(70% 70% at 80% 90%, rgba(136, 76, 129, .40), transparent 62%),
    linear-gradient(145deg, #241820, #140D12);
}
.art-card__ph::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(244,235,239,.03) 0 2px, transparent 2px 9px);
}
.art-card__ph b {
  font-family: var(--mono);
  font-weight: 400;
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(244, 235, 239, .5);
}
.art-card__ph i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 1.375rem;
  color: rgba(244, 235, 239, .28);
}

/* Caption chip pinned top-left, as in the reference gallery cards */
.art-card__chip {
  position: absolute;
  top: 1rem; left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .75rem;
  border-radius: 999px;
  background: rgba(11, 7, 9, .62);
  border: 1px solid rgba(244, 235, 239, .14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(244, 235, 239, .82);
}
.art-card__no {
  position: absolute;
  top: 1rem; right: 1.1rem;
  font-family: var(--mono);
  font-size: .625rem;
  color: rgba(244, 235, 239, .45);
}

/* Wraps rather than collides: in a narrow masonry column the price drops to
   its own line and stays right-aligned instead of crushing the title. */
.art-card__body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .35rem 1rem;
  padding: 1.05rem 1.15rem 1.2rem;
}
.art-card__body > div { flex: 1 1 8.5rem; min-width: 0; }
.art-card__name {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -.018em;
  line-height: 1.3;
  text-wrap: balance;
}
.art-card__sub {
  font-family: var(--mono);
  font-size: .6875rem;
  color: var(--fg-3);
  margin-top: .3rem;
}
.art-card__price {
  font-weight: 300;
  font-size: 1.0625rem;
  letter-spacing: -.02em;
  white-space: nowrap;
  margin-left: auto;
  text-align: right;
}
.art-card__price small {
  display: block;
  font-family: var(--mono);
  font-size: .5625rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: .25rem;
  text-align: right;
}

/* Slide-up "view" affordance */
.art-card__hover {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem .7rem .7rem 1.1rem;
  border-radius: 999px;
  background: rgba(11, 7, 9, .72);
  border: 1px solid rgba(244, 235, 239, .14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: .8125rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .55s var(--ease-out);
  pointer-events: none;
}
.art-card:hover .art-card__hover,
.art-card:focus-visible .art-card__hover { opacity: 1; transform: translateY(0); }
.art-card__hover .dot-btn { width: 32px; height: 32px; }
.art-card__hover .dot-btn svg { width: 13px; height: 13px; }

/* On stone sections */
.stone .art-card, .stone-2 .art-card {
  background: rgba(255, 255, 255, .5);
  border-color: rgba(24, 15, 20, .12);
}
.stone .art-card:hover, .stone-2 .art-card:hover {
  box-shadow: 0 40px 80px -44px rgba(24, 15, 20, .55);
}

/* --------------------------------------------------------------------------
   11. Discipline cards (the "art forms" rail)
   -------------------------------------------------------------------------- */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(.9rem, 1.6vw, 1.35rem);
}
.craft {
  position: relative;
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  border-radius: var(--radius);
  border: 1px solid var(--ink-line);
  background: linear-gradient(160deg, rgba(244,235,239,.045), rgba(244,235,239,.012));
  overflow: hidden;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  transition: border-color .5s var(--ease), transform .5s var(--ease-out), background-color .5s var(--ease);
}
.craft::before {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 260px; height: 260px;
  border-radius: 999px;
  background: var(--grad);
  filter: blur(60px);
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.craft:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--rose) 34%, transparent); }
.craft:hover::before { opacity: .38; }
.craft__n { font-family: var(--mono); font-size: .6875rem; color: var(--fg-3); }
.craft__t {
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  font-weight: 300;
  letter-spacing: -.026em;
  line-height: 1.14;
  margin-bottom: .6rem;
}
.craft__d { font-size: .875rem; color: var(--fg-2); line-height: 1.6; }
.stone .craft, .stone-2 .craft {
  background: linear-gradient(160deg, rgba(255,255,255,.6), rgba(255,255,255,.2));
  border-color: rgba(24, 15, 20, .12);
}

/* --------------------------------------------------------------------------
   12. Split feature blocks
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.split__media { grid-column: 1 / span 6; }
.split__text  { grid-column: 8 / span 5; }
.split--flip .split__media { grid-column: 7 / span 6; order: 2; }
.split--flip .split__text  { grid-column: 1 / span 5; order: 1; }
@media (max-width: 900px) {
  .split__media, .split__text,
  .split--flip .split__media, .split--flip .split__text {
    grid-column: 1 / -1; order: initial;
  }
}

.portrait {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(70% 55% at 25% 18%, rgba(142, 64, 82, .5), transparent 62%),
    radial-gradient(75% 65% at 82% 88%, rgba(136, 76, 129, .48), transparent 62%),
    linear-gradient(150deg, #2A1C24, #150E13);
  border: 1px solid var(--ink-line);
  display: grid;
  place-content: center;
  text-align: center;
  gap: .75rem;
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Numbered fact list */
.facts { display: grid; gap: 0; margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.facts li {
  list-style: none;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--ink-line);
  align-items: baseline;
}
.facts li:last-child { border-bottom: 1px solid var(--ink-line); }
.facts span { font-family: var(--mono); font-size: .6875rem; color: var(--fg-3); }
.facts p { font-size: .9375rem; color: var(--fg-2); }
.facts strong { color: var(--fg); font-weight: 500; }

/* --------------------------------------------------------------------------
   13. Category rail (horizontal scroll)
   -------------------------------------------------------------------------- */
.rail {
  display: flex;
  gap: clamp(.9rem, 1.6vw, 1.35rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: var(--gut);
  padding-block: .5rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--rose) transparent;
}
.rail::-webkit-scrollbar { height: 3px; }
.rail::-webkit-scrollbar-track { background: var(--ink-line); }
.rail::-webkit-scrollbar-thumb { background: var(--grad-flat); border-radius: 99px; }
.rail > * { scroll-snap-align: start; flex: 0 0 clamp(230px, 26vw, 340px); }

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  border-radius: clamp(var(--radius), 3vw, 44px);
  overflow: hidden;
  padding: clamp(2.75rem, 7vw, 6rem) clamp(1.5rem, 5vw, 5rem);
  background: var(--grad);
  color: #fff;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute; inset: -40%;
  background:
    radial-gradient(45% 45% at 22% 28%, rgba(255,255,255,.24), transparent 62%),
    radial-gradient(45% 45% at 78% 76%, rgba(255,255,255,.16), transparent 62%);
  z-index: -1;
  animation: band-drift 22s var(--ease) infinite alternate;
}
@keyframes band-drift {
  to { transform: translate3d(4%, -3%, 0) rotate(6deg); }
}
.cta-band .display { color: #fff; }
.cta-band .dim { color: rgba(255, 255, 255, .5); }
.cta-band .btn { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.4); }
.cta-band .btn::before { background: #fff; }
.cta-band .btn:hover { color: var(--wine); }

/* --------------------------------------------------------------------------
   15. Footer (with enquiry form) — the only chrome on the site
   -------------------------------------------------------------------------- */
.foot { background: var(--ink-2); color: var(--fg); padding-top: clamp(3.5rem, 8vw, 7rem); }
.foot__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2.25rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.foot__intro { grid-column: 1 / span 5; }
.foot__form  { grid-column: 7 / span 6; }
@media (max-width: 980px) {
  .foot__intro, .foot__form { grid-column: 1 / -1; }
}

.foot__mark { width: 62px; border-radius: 999px; margin-bottom: 1.5rem; }

.foot__contacts { display: grid; gap: .85rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.foot__contacts a, .foot__contacts span {
  display: flex; align-items: center; gap: .75rem;
  font-size: .9375rem; color: var(--fg-2);
  transition: color .35s var(--ease);
}
.foot__contacts a:hover { color: var(--fg); }
.foot__contacts svg { width: 15px; height: 15px; flex: none; opacity: .6; }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { position: relative; display: grid; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: .55rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-line);
  padding: .7rem 0;
  font-size: .9375rem;
  color: var(--fg);
  border-radius: 0;
  transition: border-color .4s var(--ease);
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23C4576F' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .25rem center;
  padding-right: 1.5rem;
  cursor: pointer;
}
.field select option { background: var(--ink-2); color: var(--fg); }
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--rose);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .75rem;
}
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.form-note { font-family: var(--mono); font-size: .6875rem; color: var(--fg-3); }
.form-status {
  grid-column: 1 / -1;
  font-size: .875rem;
  padding: .85rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink-line);
  display: none;
}
.form-status.is-ok   { display: block; border-color: color-mix(in srgb, var(--rose) 50%, transparent); color: var(--rose-soft); }
.form-status.is-err  { display: block; border-color: #a3444d; color: #e79ba3; }

/* Bottom bar — required credit line */
.foot__bar {
  border-top: 1px solid var(--ink-line);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  font-size: .8125rem;
  color: var(--fg-3);
}
.foot__bar a {
  color: var(--fg-2);
  border-bottom: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  padding-bottom: 1px;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.foot__bar a:hover { color: var(--rose-soft); border-color: var(--rose-soft); }

/* --------------------------------------------------------------------------
   16. Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity .9s var(--ease-out) var(--reveal-delay, 0ms),
    transform 1s var(--ease-out) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

[data-reveal="scale"] { transform: translate3d(0, 34px, 0) scale(.97); }
[data-reveal="left"]  { transform: translate3d(-28px, 0, 0); }
[data-reveal="right"] { transform: translate3d(28px, 0, 0); }

/* Per-line display type reveal.
   The padding/negative-margin pair widens the clipping box past the tight
   0.92 line-height so ascenders and descenders aren't sliced off. The parent
   is a flex column purely so those margins can't collapse into each other —
   collapsing would make the cancellation inexact and the heading would eat
   into whatever follows it. */
[data-lines] { display: flex; flex-direction: column; }

.line-wrap {
  display: block;
  overflow: hidden;
  padding-block: .1em .22em;
  margin-block: -.1em -.22em;
}
.line-wrap > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1.05s var(--ease-out) var(--reveal-delay, 0ms);
}
.is-in .line-wrap > span, .line-wrap.is-in > span { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .line-wrap > span { transform: none !important; }
  .marquee__track { animation: none; }
}

/* --------------------------------------------------------------------------
   17. WooCommerce — shop archive & single
   -------------------------------------------------------------------------- */
.shop-head { padding-block: clamp(6.5rem, 14vh, 10rem) clamp(2rem, 4vw, 3.5rem); }

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding-bottom: clamp(1.75rem, 3vw, 2.75rem);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--ink-line);
  font-size: .8125rem;
  color: var(--fg-2);
  cursor: pointer;
  background: transparent;
  transition: color .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease);
}
.chip:hover { color: var(--fg); border-color: color-mix(in srgb, var(--rose) 45%, transparent); }
.chip.is-on { background: var(--grad); border-color: transparent; color: #fff; }
.chip em { font-style: normal; font-family: var(--mono); font-size: .625rem; opacity: .7; }

/* WooCommerce writes ul.products — normalise it to the same masonry hang */
ul.products {
  list-style: none;
  margin: 0; padding: 0;
  columns: 4;
  column-gap: clamp(1.1rem, 2vw, 1.9rem);
}
ul.products::before, ul.products::after { content: none !important; }
ul.products li.product {
  margin: 0 0 clamp(1.1rem, 2vw, 1.9rem) !important;
  width: auto !important;
  float: none !important;
  break-inside: avoid;
  page-break-inside: avoid;
  display: block;
}
@media (max-width: 1200px) { ul.products { columns: 3; } }
@media (max-width: 820px)  { ul.products { columns: 2; } }
@media (max-width: 520px)  { ul.products { columns: 1; } }

.woocommerce-result-count,
.woocommerce-ordering { display: inline-block; vertical-align: middle; }
.woocommerce-result-count { font-family: var(--mono); font-size: .6875rem; color: var(--fg-3); }
.woocommerce-ordering select {
  background: transparent;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  padding: .5rem 1rem;
  font-size: .8125rem;
  color: var(--fg-2);
}
.woocommerce-ordering select option { background: var(--ink-2); }

.shop-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding-bottom: 1.5rem;
}

/* Pagination */
.woocommerce-pagination ul {
  list-style: none; display: flex; gap: .4rem; padding: 0;
  justify-content: center; margin-top: clamp(2.5rem, 5vw, 4rem);
}
.woocommerce-pagination a, .woocommerce-pagination span {
  display: grid; place-items: center;
  min-width: 40px; height: 40px; padding: 0 .6rem;
  border-radius: 999px;
  border: 1px solid var(--ink-line);
  font-size: .8125rem;
  color: var(--fg-2);
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.woocommerce-pagination a:hover { color: var(--fg); border-color: var(--rose); }
.woocommerce-pagination .current { background: var(--grad); border-color: transparent; color: #fff; }

/* Single product */
.product-single {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.75rem, 4vw, 4.5rem);
  padding-block: clamp(6.5rem, 14vh, 10rem) clamp(3rem, 7vw, 6rem);
  align-items: start;
}
.product-single__media { grid-column: 1 / span 7; }
.product-single__info  { grid-column: 9 / span 4; position: sticky; top: 3rem; }
@media (max-width: 980px) {
  .product-single__media, .product-single__info { grid-column: 1 / -1; position: static; }
}
.product-single__media .woocommerce-product-gallery__image img,
.product-single__frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--ink-line);
}
.product-single .price {
  font-weight: 200;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -.035em;
  display: block;
  margin-block: 1rem 1.5rem;
}
.product-single .price del { opacity: .35; font-size: .6em; margin-right: .5rem; }
.product-single .price ins { text-decoration: none; }

.woocommerce-product-details__short-description { color: var(--fg-2); }

form.cart { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-block: 1.75rem; }
form.cart .quantity input {
  width: 76px;
  background: transparent;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  padding: .8rem 1rem;
  text-align: center;
  color: var(--fg);
}
.button, button.button, a.button, .single_add_to_cart_button,
.woocommerce-Button, input[type="submit"].button {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .95rem 1.75rem;
  border-radius: 999px;
  border: 0;
  background-image: var(--grad);
  color: #fff;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease), filter .4s var(--ease);
}
.button:hover, button.button:hover, a.button:hover, .single_add_to_cart_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -14px rgba(142, 64, 82, .85);
  filter: brightness(1.06);
}
.added_to_cart { margin-left: .75rem; font-size: .8125rem; }

.product_meta {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink-line);
  font-family: var(--mono);
  font-size: .6875rem;
  color: var(--fg-3);
  display: grid;
  gap: .5rem;
}
.product_meta a { color: var(--fg-2); }
.product_meta a:hover { color: var(--rose-soft); }

/* Woo notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  list-style: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink-line);
  background: var(--ink-2);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: .875rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
}
.woocommerce-message { border-color: color-mix(in srgb, var(--rose) 50%, transparent); }
.woocommerce-error { border-color: #a3444d; color: #e79ba3; }

/* Cart / checkout tables */
.woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 1rem .75rem;
  border-bottom: 1px solid var(--ink-line);
  text-align: left;
}
.woocommerce table.shop_table th {
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 400;
}

/* Related products heading */
.related > h2, .upsells > h2 {
  font-weight: 200;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  letter-spacing: -.03em;
  text-transform: lowercase;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* Woo star ratings — hidden, not relevant to one-off originals */
.woocommerce .star-rating, .woocommerce-product-rating { display: none; }

/* --------------------------------------------------------------------------
   18. Utility
   -------------------------------------------------------------------------- */
.flow > * + * { margin-top: var(--flow, 1.25rem); }
.cluster { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.between { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.mt-s { margin-top: clamp(1rem, 2vw, 1.5rem); }
.mt-m { margin-top: clamp(1.75rem, 3.5vw, 3rem); }
.mt-l { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.tar { text-align: right; }
.nowrap { white-space: nowrap; }
