/* ==========================================================================
   Chithra Stanley — Atelier Terracotta design system
   Tokens come from Stitch/atelier_terracotta/DESIGN.md
   ========================================================================== */

:root {
  /* Colour — white gallery walls, near-black ink, a little terracotta */
  --canvas: #ffffff;          /* page background */
  --linen: #f6f5f3;           /* soft panel / photo backdrop */
  --linen-deep: #efedea;
  --white: #ffffff;
  --rule: #ebe9e6;            /* hairline */
  --stone: #dcd8d2;           /* input border */
  --ink: #17181b;             /* text */
  --ink-soft: #45464b;
  --muted: #6d6e73;
  --umber: #725e4f;
  --umber-deep: #6e5a4c;
  --terracotta: #c86446;      /* accent */
  --terracotta-deep: #a4492c;
  --terracotta-soft: #f8dccf;
  --terracotta-tint: rgba(200, 100, 70, 0.07);
  --success: #3f6b4a;
  --error: #ba1a1a;

  /* Type */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --space-xs: 0.375rem;
  --space-sm: 0.75rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --gutter: 2rem;
  --margin: 4rem;

  /* Shape & depth */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-float: 0 18px 40px -18px rgba(23, 24, 27, 0.18), 0 4px 12px -4px rgba(23, 24, 27, 0.06);
  --header-h: 80px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (max-width: 1023px) {
  :root { --margin: 2rem; --gutter: 1.5rem; --space-2xl: 4.5rem; --space-xl: 3rem; }
}
@media (max-width: 767px) {
  :root { --margin: 1.25rem; --gutter: 1rem; --space-2xl: 3.5rem; --space-xl: 2.5rem; --header-h: 68px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--terracotta-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: var(--canvas); padding: .6rem 1rem; border-radius: var(--r-sm); }
.skip-link:focus { top: 1rem; }

/* ---------- Typography ---------- */
.display { font-family: var(--serif); font-size: clamp(2.75rem, 6.2vw, 4.75rem); line-height: 1.02; letter-spacing: -0.02em; }
.h-xl { font-family: var(--serif); font-size: clamp(2.1rem, 3.8vw, 3.25rem); line-height: 1.14; letter-spacing: -0.015em; }
.h-lg { font-family: var(--serif); font-size: clamp(1.75rem, 2.8vw, 2.25rem); line-height: 1.2; }
.h-md { font-family: var(--serif); font-size: 1.6rem; line-height: 1.3; font-weight: 500; }
.h-sm { font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; font-weight: 500; }
.body-xl { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.7; font-weight: 300; color: var(--ink-soft); }
.body-lg { font-size: 1.125rem; line-height: 1.75; font-weight: 300; color: var(--ink-soft); }
.body-sm { font-size: .875rem; line-height: 1.6; }
.muted { color: var(--muted); }
.label { font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; }
.label-sm { font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; }
.accent { color: var(--terracotta-deep); }
.italic { font-style: italic; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta-deep); margin-bottom: var(--space-sm); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); flex: none; }
.eyebrow.plain::before { display: none; }
.eyebrow.pulse::before { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--margin); }
.container.narrow { max-width: 920px; }
.section { padding-block: var(--space-2xl); }
.section.tight { padding-block: var(--space-xl); }
.section.white { background: var(--white); }
.section.linen { background: var(--linen); }
.section.ruled { border-top: 1px solid var(--rule); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-xl); }
.section-head > p { max-width: 30rem; color: var(--muted); }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center > p { max-width: 36rem; }
.grid { display: grid; gap: var(--gutter); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: center; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; }
.stack > * + * { margin-top: var(--space-md); }
.stack-sm > * + * { margin-top: var(--space-sm); }
.center { text-align: center; }
.mt-md { margin-top: var(--space-md); } .mt-lg { margin-top: var(--space-lg); } .mt-xl { margin-top: var(--space-xl); }

@media (max-width: 1023px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split > [class*="span-"] { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section-head { margin-bottom: var(--space-lg); }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.75rem; border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: .75rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; line-height: 1;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), letter-spacing .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap; min-height: 46px;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--terracotta-deep); color: #fff; }
.btn-primary:hover { background: var(--terracotta); letter-spacing: .11em; }
.btn-dark { background: var(--ink); color: var(--canvas); }
.btn-dark:hover { background: #34353a; letter-spacing: .11em; }
.btn-outline { border-color: var(--terracotta-deep); color: var(--terracotta-deep); background: transparent; }
.btn-outline:hover { background: var(--linen); }
.btn-outline.ink { border-color: var(--ink); color: var(--ink); }
.btn-soft { background: var(--linen-deep); color: var(--ink); }
.btn-soft:hover { background: var(--terracotta-soft); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); position: relative; padding-bottom: 3px; }
.link-arrow::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--terracotta); transition: width .35s var(--ease); }
.link-arrow:hover { color: var(--terracotta-deep); }
.link-arrow:hover::after { width: 100%; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow.accent { color: var(--terracotta-deep); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(250, 248, 245, 0.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule); transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-float); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; background: var(--terracotta-deep); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.05rem; font-style: italic; flex: none; transition: background .3s; }
.brand:hover .brand-mark { background: var(--terracotta); }
.brand-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; letter-spacing: .02em; line-height: 1; display: block; }
.brand-sub { display: block; font-size: .625rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: var(--space-lg); }
.nav a { font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding: .35rem 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--terracotta-deep); border-bottom-color: var(--terracotta-deep); }
.header-actions { display: flex; align-items: center; gap: var(--space-sm); }
.header-actions .btn { padding: .65rem 1.1rem; min-height: 40px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--rule); background: transparent; border-radius: var(--r-sm); align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-nav { display: none; }
@media (max-width: 1023px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav { display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--canvas); padding: var(--space-lg) var(--margin); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; overflow-y: auto; }
  .mobile-nav.open { opacity: 1; visibility: visible; transform: none; }
  .mobile-nav a { display: block; font-family: var(--serif); font-size: 2rem; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
  .mobile-nav a.active { color: var(--terracotta-deep); }
  .mobile-nav .btn { margin-top: var(--space-lg); font-family: var(--sans); font-size: .8rem; border: 0; width: 100%; }
}
@media (max-width: 560px) { .header-actions .btn { display: none; } .brand-sub { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--linen); border-top: 1px solid var(--rule); padding-block: var(--space-xl) var(--space-md); }
.footer-grid { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: var(--gutter); margin-bottom: var(--space-xl); }
.footer-grid h4 { font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--space-sm); }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem var(--space-md); }
.footer-links a, .footer-connect a { font-size: .9rem; color: var(--muted); transition: color .2s; }
.footer-links a:hover, .footer-connect a:hover { color: var(--terracotta-deep); }
.footer-connect { display: flex; flex-direction: column; gap: .45rem; word-break: break-word; }
.footer-bottom { border-top: 1px solid var(--rule); padding-top: var(--space-md); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-sm); font-size: .85rem; color: var(--muted); }
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Cards / mounts ---------- */
.mount { background: var(--linen); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: var(--space-md); }
.mount.white { background: var(--white); }
.mount.pad-lg { padding: var(--space-lg); }
@media (max-width: 767px) { .mount.pad-lg { padding: var(--space-md); } }
.frame { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--linen-deep); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ratio-43 { aspect-ratio: 4 / 3; } .ratio-11 { aspect-ratio: 1; } .ratio-45 { aspect-ratio: 4 / 5; } .ratio-hero { aspect-ratio: 21 / 10; }
@media (max-width: 767px) { .ratio-hero { aspect-ratio: 4 / 3.4; } }
.tag { position: absolute; z-index: 2; padding: .3rem .7rem; border-radius: var(--r-sm); font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; background: rgba(250, 248, 245, .92); backdrop-filter: blur(6px); color: var(--terracotta-deep); }
.tag.tl { top: .75rem; left: .75rem; } .tag.tr { top: .75rem; right: .75rem; }
.tag.br { bottom: .75rem; right: .75rem; } .tag.bl { bottom: .75rem; left: .75rem; }
.tag.dark { background: rgba(31, 32, 34, .82); color: var(--canvas); }
.tag.price { color: var(--ink); font-size: .8rem; letter-spacing: .04em; }
.tag.sold { background: var(--ink); color: var(--canvas); }
.chip { display: inline-flex; align-items: center; padding: .3rem .75rem; border-radius: var(--r-lg); border: 1px solid var(--stone); background: var(--canvas); font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chip.accent { border-color: var(--terracotta); color: var(--terracotta-deep); background: var(--terracotta-tint); }

/* Art card (portfolio + home) */
.art-card { display: flex; flex-direction: column; background: var(--linen); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: var(--space-md); cursor: pointer; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); text-align: left; width: 100%; color: inherit; }
.art-card:hover { border-color: rgba(200, 100, 70, .45); box-shadow: var(--shadow-float); }
.art-card:hover .frame img { transform: scale(1.04); }
.art-card .frame { margin-bottom: var(--space-md); }
.art-card .title-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-sm); margin-bottom: .25rem; }
.art-card h3 { transition: color .25s; }
.art-card:hover h3 { color: var(--terracotta-deep); }
.art-card .meta { color: var(--umber); white-space: nowrap; }
.art-card .card-foot { margin-top: auto; padding-top: var(--space-md); display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.art-card .card-foot svg { width: 16px; height: 16px; transition: transform .3s var(--ease), color .3s; }
.art-card:hover .card-foot svg { transform: translateX(4px); color: var(--terracotta); }

/* ---------- Home hero ---------- */
.hero-head { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gutter); align-items: end; margin-bottom: var(--space-lg); }
.hero-actions { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-md); }
.hero-actions .btns { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: flex-end; }
.hero-frame { background: var(--linen); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: var(--space-md); }
.hero-frame .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(31, 32, 34, .5), transparent 55%); pointer-events: none; }
.plaque-float { position: absolute; z-index: 2; left: var(--space-md); bottom: var(--space-md); max-width: 26rem; background: rgba(250, 248, 245, .92); backdrop-filter: blur(12px); border-radius: var(--r-md); padding: var(--space-md); box-shadow: var(--shadow-float); }
.plaque-float .row { display: flex; justify-content: space-between; gap: var(--space-md); margin-bottom: .3rem; }
@media (max-width: 1023px) {
  .hero-head { grid-template-columns: 1fr; }
  .hero-actions { align-items: flex-start; }
  .hero-actions .btns { justify-content: flex-start; }
}
@media (max-width: 767px) {
  .hero-frame { padding: .5rem; }
  .plaque-float { left: .75rem; right: .75rem; bottom: .75rem; padding: 1rem; }
  .plaque-float p.body-sm { display: none; }
}

/* ---------- Shop cards ---------- */
.shop-card { display: flex; flex-direction: column; background: var(--linen); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: var(--space-md); transition: background .3s, box-shadow .3s, border-color .3s; }
.shop-card:hover { box-shadow: var(--shadow-float); border-color: rgba(200, 100, 70, .35); }
.shop-card .frame { margin-bottom: var(--space-md); display: block; }
.shop-card:hover .frame img { transform: scale(1.04); }
.shop-card .title-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-sm); }
.shop-card .price { font-weight: 600; color: var(--terracotta-deep); white-space: nowrap; font-size: .95rem; }
.shop-card .specs { display: flex; flex-wrap: wrap; gap: .35rem .75rem; color: var(--umber); margin-top: .5rem; }
.shop-card .card-actions { margin-top: auto; padding-top: var(--space-md); display: flex; gap: var(--space-sm); }
.shop-card .card-actions .btn { flex: 1; padding-inline: 1rem; }
.shop-card.is-sold .frame img { filter: grayscale(.55) brightness(.97); opacity: .8; }
.shop-card.is-sold .price { color: var(--muted); text-decoration: line-through; }

/* Filter tabs */
.filters { display: inline-flex; flex-wrap: wrap; gap: .4rem; padding: .35rem; background: var(--linen); border: 1px solid var(--rule); border-radius: var(--r-md); }
.filters button { border: 0; background: transparent; padding: .6rem 1.1rem; border-radius: var(--r-sm); font-size: .72rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); transition: background .2s, color .2s; }
.filters button:hover { color: var(--ink); background: var(--linen-deep); }
.filters button[aria-pressed="true"] { background: var(--terracotta-deep); color: #fff; }

/* Info strip */
.info-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); background: var(--linen); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: var(--space-md) var(--space-lg); }
.info-strip .lead { display: flex; align-items: center; gap: var(--space-md); }
.icon-badge { width: 48px; height: 48px; border-radius: 50%; background: var(--terracotta-tint); color: var(--terracotta-deep); display: grid; place-items: center; flex: none; }
.icon-badge svg { width: 22px; height: 22px; }
.icon-inline { width: 18px; height: 18px; color: var(--terracotta-deep); flex: none; }

/* ---------- Courses ---------- */
.course-card { position: relative; display: flex; flex-direction: column; background: var(--linen); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: var(--space-lg); overflow: hidden; transition: box-shadow .3s; }
.course-card:hover { box-shadow: var(--shadow-float); }
.course-card::before { content: ""; position: absolute; top: 0; right: 0; width: 110px; height: 110px; border-bottom-left-radius: 100%; background: rgba(255, 212, 190, .35); pointer-events: none; }
.course-card.featured { border-color: rgba(200, 100, 70, .45); background: var(--white); }
.course-card.featured::before { display: none; }
.ribbon { position: absolute; top: 0; right: 0; background: var(--terracotta-deep); color: #fff; padding: .4rem 1rem; border-bottom-left-radius: var(--r-md); font-size: .65rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.course-card .top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: var(--space-md); position: relative; }
.course-card .price-line { display: flex; align-items: baseline; gap: .5rem; margin: var(--space-md) 0 var(--space-sm); }
.course-card .price-line strong { font-family: var(--serif); font-size: 2.25rem; font-weight: 400; color: var(--terracotta-deep); line-height: 1; }
.course-card .schedule { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; background: var(--canvas); border: 1px solid var(--rule); border-radius: var(--r-md); font-size: .875rem; color: var(--ink-soft); }
.batches { display: grid; gap: .5rem; }
.batch { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; padding: .7rem .9rem; background: var(--canvas); border: 1px solid var(--rule); border-radius: var(--r-md); text-align: left; font-size: .875rem; color: var(--ink-soft); transition: border-color .2s, background .2s; }
button.batch:hover { border-color: var(--terracotta); background: var(--white); }
.batch-when { display: flex; gap: .55rem; align-items: flex-start; min-width: 0; }
.batch-when .icon-inline { margin-top: 2px; }
.batch-when strong { display: block; font-weight: 500; color: var(--ink); }
.batch-when small { display: block; font-size: .78rem; color: var(--muted); }
.batch .seat-chip { margin-left: calc(18px + .55rem); }
.seat-chip { flex: none; padding: .25rem .6rem; border-radius: var(--r-lg); font-size: .65rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; border: 1px solid transparent; }
.seat-chip.ok { background: #edf4ee; color: #2f5a3a; border-color: #cfe1d2; }
.seat-chip.low { background: var(--terracotta-tint); color: var(--terracotta-deep); border-color: rgba(200,100,70,.3); }
.seat-chip.full { background: var(--ink); color: var(--canvas); }
.seat-chip.open { background: var(--linen-deep); color: var(--ink-soft); }
.field select:disabled { opacity: .6; cursor: not-allowed; }
.course-card .curriculum { margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--rule); }
.course-card .curriculum li, .check-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); padding: .3rem 0; }
.course-card .curriculum li svg, .check-list li svg { width: 18px; height: 18px; color: var(--terracotta); flex: none; margin-top: 3px; }
.course-card .actions { margin-top: auto; padding-top: var(--space-lg); }

/* Stats */
.stat { background: var(--linen); border: 1px solid var(--rule); border-radius: var(--r-md); padding: var(--space-md); text-align: center; }
.stat strong { display: block; font-family: var(--serif); font-size: 1.85rem; font-weight: 400; line-height: 1.2; }
.stat span { display: block; margin-top: .3rem; color: var(--umber); }
.stat-row { display: flex; flex-wrap: wrap; gap: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--rule); }
.stat-row strong { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1.1; }
.stat-row span { color: var(--umber); }
@media (max-width: 560px) { .stat-row { gap: 1rem 1.5rem; } .stat-row strong { font-size: 1.6rem; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 1px; background: var(--stone); }
.step { position: relative; text-align: center; padding: 0 var(--space-sm); }
.step .num { width: 56px; height: 56px; margin: 0 auto var(--space-md); border-radius: 50%; background: var(--canvas); border: 1px solid var(--terracotta); color: var(--terracotta-deep); display: grid; place-items: center; font-family: var(--serif); font-size: 1.25rem; position: relative; }
@media (max-width: 767px) {
  .steps { grid-template-columns: 1fr; gap: var(--space-lg); }
  .steps::before { top: 0; bottom: 0; left: 28px; right: auto; width: 1px; height: auto; }
  .step { text-align: left; display: grid; grid-template-columns: 56px 1fr; gap: var(--space-md); padding: 0; }
  .step .num { margin: 0; }
}

/* Testimonials */
.quote-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-md); }
.quote-card blockquote { margin: 0; font-family: var(--serif); font-size: 1.1rem; font-style: italic; line-height: 1.65; color: var(--ink); }
.quote-card .who { margin-top: auto; padding-top: var(--space-sm); border-top: 1px solid var(--rule); }
.quote-card .who strong { display: block; font-weight: 500; }
.quote-mark { width: 32px; height: 32px; color: var(--terracotta); }

/* FAQ */
.faq { border-bottom: 1px solid var(--rule); }
.faq:first-child { border-top: 1px solid var(--rule); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); padding: var(--space-md) 0; cursor: pointer; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--terracotta-deep); transition: transform .3s var(--ease); }
.faq[open] summary svg { transform: rotate(180deg); }
.faq summary:hover { color: var(--terracotta-deep); }
.faq .answer { padding: 0 0 var(--space-md); color: var(--ink-soft); max-width: 46rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-md); }
.field { display: grid; gap: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field label, .field .label-text { font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.field label .opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.input, .field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--canvas); border: 1px solid var(--stone); border-radius: var(--r-sm);
  padding: .8rem .95rem; min-height: 48px; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field input, .field select { height: 50px; line-height: 1.2; padding-block: 0; }
.field textarea { resize: vertical; min-height: 110px; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23994126' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; background-size: 18px; padding-right: 2.5rem; }
.field input::placeholder, .field textarea::placeholder { color: rgba(140, 106, 88, .6); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px var(--terracotta-tint); }
.field input[readonly] { background: var(--linen-deep); color: var(--ink-soft); }
.field .hint { font-size: .8rem; color: var(--muted); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); }
.field .error-msg { font-size: .8rem; color: var(--error); display: none; }
.field.is-invalid .error-msg { display: block; }
.field.is-muted { opacity: .5; }
.checkbox { display: flex; gap: .75rem; align-items: flex-start; font-size: .875rem; color: var(--ink-soft); line-height: 1.5; }
.checkbox input { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin: 2px 0 0; flex: none; border: 1px solid var(--umber); border-radius: 3px; background: var(--canvas); display: grid; place-items: center; cursor: pointer; }
.checkbox input:checked { background: var(--terracotta-deep); border-color: var(--terracotta-deep); }
.checkbox input:checked::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.form-note { display: flex; gap: .75rem; align-items: flex-start; padding: var(--space-md); border-radius: var(--r-md); background: var(--terracotta-tint); border: 1px solid rgba(200, 100, 70, .2); font-size: .875rem; color: var(--ink-soft); }
.form-note svg { width: 20px; height: 20px; color: var(--terracotta-deep); flex: none; margin-top: 2px; }
.form-status { display: none; gap: .75rem; align-items: flex-start; padding: var(--space-md); border-radius: var(--r-md); font-size: .9rem; }
.form-status.show { display: flex; }
.form-status.success { background: #edf4ee; border: 1px solid #c8dccb; color: #24402c; }
.form-status.info { background: var(--linen); border: 1px solid var(--stone); color: var(--ink-soft); }
.form-status.error { background: #fdeceb; border: 1px solid #f3c4c0; color: var(--error); }
.form-status svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.form-status strong { display: block; margin-bottom: .15rem; }
.honeypot { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; }
.inline-form { display: flex; gap: var(--space-xs); max-width: 30rem; margin-inline: auto; width: 100%; }
.inline-form input { flex: 1; }
@media (max-width: 560px) { .inline-form { flex-direction: column; } }

/* ---------- Work page: masonry + lightbox ---------- */
.masonry { columns: 3 320px; column-gap: var(--gutter); }
.masonry > * { break-inside: avoid; margin-bottom: var(--gutter); }
.masonry .art-card .frame img { height: auto; aspect-ratio: auto; }
.masonry .art-card .frame { aspect-ratio: auto; }
.masonry [hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(31, 32, 34, .78); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; padding: var(--space-md); }
.lightbox.open { display: flex; animation: fadeIn .25s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-panel { background: var(--canvas); border-radius: var(--r-lg); width: min(1240px, 100%); max-height: calc(100vh - 2 * var(--space-md)); display: grid; grid-template-columns: 1.6fr 1fr; overflow: hidden; position: relative; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .4); }
.lightbox-view { background: #ebe5db; display: flex; align-items: center; justify-content: center; position: relative; min-height: 320px; }
.lightbox-view img { max-width: 100%; max-height: calc(100vh - 6rem); object-fit: contain; }
.lightbox-info { padding: var(--space-lg); overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-md); }
.lightbox-info dl { margin: 0; display: grid; gap: var(--space-sm); padding-block: var(--space-md); border-block: 1px solid var(--rule); }
.lightbox-info dt { font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--umber); }
.lightbox-info dd { margin: .15rem 0 0; }
.lb-close, .lb-nav { position: absolute; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); background: rgba(250, 248, 245, .92); display: grid; place-items: center; transition: background .2s, color .2s; }
.lb-close:hover, .lb-nav:hover { background: var(--terracotta-deep); color: #fff; border-color: var(--terracotta-deep); }
.lb-close svg, .lb-nav svg { width: 20px; height: 20px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-nav.prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-nav.next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-actions { margin-top: auto; display: grid; gap: var(--space-sm); }
@media (max-width: 900px) {
  .lightbox { padding: 0; }
  .lightbox-panel { grid-template-columns: 1fr; max-height: 100vh; height: 100%; border-radius: 0; overflow-y: auto; }
  .lightbox-view { min-height: 50vh; }
  .lightbox-view img { max-height: 60vh; }
  .lightbox-info { overflow: visible; padding: var(--space-md) var(--margin) var(--space-lg); }
}

/* ---------- Painting detail ---------- */
.detail-grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--space-xl); align-items: start; }
.detail-main { cursor: zoom-in; }
.detail-main img { transition: transform .5s var(--ease); transform-origin: var(--zx, 50%) var(--zy, 50%); }
.detail-main.zoomed { cursor: zoom-out; }
.detail-main.zoomed img { transform: scale(2); }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); margin-top: var(--space-sm); }
.thumb { border: 1px solid var(--rule); background: var(--linen); border-radius: var(--r-md); padding: .4rem; text-align: left; transition: border-color .2s; }
.thumb[aria-pressed="true"] { border-color: var(--terracotta); box-shadow: inset 0 0 0 1px var(--terracotta); }
.thumb .frame { aspect-ratio: 4 / 3; }
.thumb span { display: block; margin-top: .4rem; padding: 0 .2rem .1rem; font-size: .7rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.plaque { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--linen); margin-top: var(--space-md); }
.plaque > div { padding: var(--space-sm) var(--space-md); border-right: 1px solid var(--rule); }
.plaque > div:last-child { border-right: 0; }
.plaque .k { display: block; font-size: .65rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--umber); margin-bottom: .2rem; }
.plaque .v { display: block; font-size: .9rem; line-height: 1.4; }
.sticky-panel { position: sticky; top: calc(var(--header-h) + var(--space-md)); }
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); padding-top: var(--space-md); border-top: 1px solid var(--rule); }
.trust div { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--ink-soft); }
.trust svg { width: 18px; height: 18px; color: var(--terracotta-deep); flex: none; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-md); }
.breadcrumb a:hover { color: var(--terracotta-deep); }
.mobile-cta { display: none; }
@media (max-width: 1023px) {
  .detail-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .sticky-panel { position: static; }
  .plaque { grid-template-columns: 1fr 1fr; }
  .plaque > div:nth-child(2) { border-right: 0; }
  .plaque > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: var(--space-sm); align-items: center; justify-content: space-between; padding: .75rem var(--margin); background: rgba(250, 248, 245, .95); backdrop-filter: blur(12px); border-top: 1px solid var(--rule); transform: translateY(100%); transition: transform .3s var(--ease); }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { flex: none; }
}

/* ---------- About ---------- */
.portrait-wrap { position: relative; }
.portrait-plaque { position: absolute; right: -1rem; bottom: -1.5rem; max-width: 18rem; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-md); padding: var(--space-md); box-shadow: var(--shadow-float); }
@media (max-width: 767px) { .portrait-plaque { position: static; margin-top: var(--space-sm); max-width: none; } }
.pull-quote { border-left: 2px solid var(--terracotta); padding: var(--space-sm) 0 var(--space-sm) var(--space-md); font-family: var(--serif); font-size: 1.4rem; font-style: italic; line-height: 1.5; }
.practice-card ul li { display: flex; gap: .6rem; padding: .45rem 0; border-bottom: 1px dashed var(--rule); font-size: .92rem; color: var(--ink-soft); }
.practice-card ul li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); flex: none; margin-top: .55rem; }
.contact-list { display: grid; gap: var(--space-md); }
.contact-item { display: flex; gap: var(--space-md); align-items: flex-start; }
.contact-item a { color: var(--terracotta-deep); font-weight: 500; word-break: break-word; }
.contact-item a:hover { text-decoration: underline; }
.social-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: var(--space-xl) var(--space-lg); }
.page-hero .lede { max-width: 40rem; margin-top: var(--space-md); }
.page-hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-lg); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Empty state */
.empty { padding: var(--space-xl); text-align: center; color: var(--muted); border: 1px dashed var(--stone); border-radius: var(--r-lg); }

@media print {
  .site-header, .site-footer, .mobile-cta { display: none; }
  body { padding-top: 0; }
}

/* Header: keep brand on one line; tighter menu on small laptops */
.brand-name, .brand-sub { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav { gap: 1.6rem; }
  .header-actions .btn { padding: .6rem .9rem; letter-spacing: .06em; }
}

/* Cloudflare Turnstile box (usually invisible; appears only when a click is needed) */
.turnstile-box:empty { display: none; }
.turnstile-box { min-height: 0; }
.inline-form + .turnstile-box { max-width: 30rem; margin: var(--space-sm) auto 0; }

/* ---------- Videos page ---------- */
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--space-md); }
@media (max-width: 767px) { .video-grid { grid-template-columns: 1fr; } }
.video-grid > .empty { grid-column: 1 / -1; }
.video-card { display: flex; flex-direction: column; gap: var(--space-sm); }
.video-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--r-md); overflow: hidden; background: var(--ink); cursor: pointer; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: transform .8s var(--ease), opacity .3s; }
.video-frame:hover img, .video-frame:focus-visible img { transform: scale(1.03); opacity: 1; }
.video-frame:focus-visible { outline: 2px solid var(--terracotta-deep); outline-offset: 3px; }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.video-play svg { width: 4.25rem; height: 4.25rem; padding: .9rem; border-radius: 50%; background: rgba(153, 65, 38, .92); stroke-width: 1.4; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.video-frame:hover .video-play svg { transform: scale(1.08); }
.video-frame.playing { cursor: default; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-text { display: flex; flex-direction: column; gap: .35rem; }
.video-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--terracotta-deep); width: fit-content; }
.video-link:hover { text-decoration: underline; }
.video-link .icon-inline { width: 14px; height: 14px; }

/* ---------- Form errors: checkbox, security check, summary, email tip ---------- */
.checkbox.is-invalid { color: var(--error); }
.checkbox.is-invalid input { border-color: var(--error); box-shadow: 0 0 0 3px rgba(186, 26, 26, .12); }
.turnstile-box.is-invalid { outline: 2px solid var(--error); outline-offset: 4px; border-radius: 6px; }
.fix-list { margin: .35rem 0 0 1.1rem; padding: 0; list-style: disc; }
.fix-list li + li { margin-top: .15rem; }
.email-tip { display: block; margin-top: .35rem; font-size: .8rem; color: var(--ink-soft); }
.email-tip .link-fix { border: 0; background: none; padding: 0; font: inherit; color: var(--terracotta-deep); text-decoration: underline; cursor: pointer; }

/* ---------- Several photos in one spot (dots, slideshow, lightbox strip) ---------- */
.photo-swap { transition: opacity .25s ease, transform 1s var(--ease); }
.photo-swap.swapping { opacity: 0; }
.photo-dots { position: absolute; z-index: 3; top: .6rem; right: .6rem; display: flex; gap: 2px; padding: 2px 4px; border-radius: 999px; background: rgba(31, 32, 34, .42); backdrop-filter: blur(6px); }
.photo-dots button { width: 22px; height: 22px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.photo-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: background .2s, transform .2s; }
.photo-dots button[aria-current="true"]::before { background: #fff; transform: scale(1.25); }
.photo-dots button:hover::before { background: #fff; }
.photo-dots button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: 50%; }
.photo-count { display: inline-flex; align-items: center; gap: .3rem; }
.photo-count svg { width: 12px; height: 12px; }
.lb-thumbs { position: absolute; z-index: 3; left: 50%; bottom: .75rem; transform: translateX(-50%); display: flex; gap: .4rem; padding: .35rem; border-radius: var(--r-md); background: rgba(250, 248, 245, .88); backdrop-filter: blur(8px); box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
.lb-thumbs .lb-thumb { width: 54px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: var(--linen-deep); cursor: pointer; opacity: .75; transition: opacity .2s, border-color .2s; }
.lb-thumbs .lb-thumb:hover { opacity: 1; }
.lb-thumbs .lb-thumb[aria-pressed="true"] { border-color: var(--terracotta-deep); opacity: 1; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; max-height: none; }
.lb-caption { max-width: calc(100% - 1.5rem); }
@media (max-width: 767px) { .lb-thumbs .lb-thumb { width: 46px; height: 46px; } }
.lb-thumbs { align-items: center; }
.lb-photo-arrow { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.lb-photo-arrow:hover { background: var(--linen-deep); }
.lb-photo-arrow svg { width: 18px; height: 18px; }
/* ‹ › arrows on photo spots with 2+ photos */
.photo-arrow { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(250, 248, 245, .88); color: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .15); cursor: pointer; opacity: 0; transition: opacity .2s, background .2s; }
.photo-arrow.prev { left: .6rem; } .photo-arrow.next { right: .6rem; }
.photo-arrow svg { width: 20px; height: 20px; }
.photo-arrow:hover { background: #fff; }
.has-photos:hover .photo-arrow, .photo-arrow:focus-visible { opacity: 1; }
.photo-arrow:focus-visible { outline: 2px solid var(--terracotta-deep); outline-offset: 2px; }
@media (hover: none) { .photo-arrow { opacity: .9; width: 34px; height: 34px; } }
.ratio-hero .photo-arrow { top: 42%; }

/* ---------- Paintings are never cropped (buyers must see the whole work) ----------
   Shop cards keep an even grid: the painting sits whole inside a soft "gallery mat".
   The painting page shows the photo in its real shape (height-limited so it fits the screen). */
.frame.mat { background: var(--linen-deep); }
.frame.mat img { object-fit: contain; padding: 7%; filter: drop-shadow(0 6px 14px rgba(31, 32, 34, .14)); }
.shop-card:hover .frame.mat img { transform: scale(1.03); }
.detail-main { display: flex; align-items: center; justify-content: center; min-height: 280px; background: var(--linen-deep); }
.detail-main img { width: auto; height: auto; max-width: 100%; max-height: min(78vh, 760px); object-fit: contain; }
.thumb .frame img { object-fit: contain; }

/* ==========================================================================
   2026 redesign — white gallery look
   White page, near-black type, a thin elegant serif (Cormorant Garamond) for headings,
   Inter for text, rounded photos, pill buttons and a little terracotta for prices/highlights.
   These rules come last on purpose and refine the components above.
   ========================================================================== */
body { background: var(--canvas); }
::selection { background: var(--terracotta-soft); }

/* Type */
.display { font-weight: 500; font-size: clamp(3rem, 7vw, 5.75rem); line-height: .98; letter-spacing: -0.015em; }
.h-xl { font-weight: 500; font-size: clamp(2.4rem, 4.4vw, 3.9rem); line-height: 1.04; letter-spacing: -0.01em; }
.h-lg { font-weight: 500; font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1.1; }
.h-md { font-weight: 600; font-size: 1.85rem; line-height: 1.15; }
.h-sm { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; line-height: 1.35; letter-spacing: -0.01em; }
.italic.accent, .display .accent, .h-xl .accent { font-style: italic; color: var(--terracotta-deep); }
.body-xl { font-weight: 400; color: var(--ink-soft); }
.body-lg { font-weight: 400; }
.eyebrow { color: var(--ink-soft); letter-spacing: .14em; }
.eyebrow::before { background: var(--terracotta); }

/* Sections: all white; spacing and hairlines carry the rhythm */
.section.white, .section.linen { background: var(--canvas); }
.section.ruled { border-top: 0; }

/* Buttons: pills */
.btn { border-radius: var(--r-pill); padding: .9rem 1.6rem; letter-spacing: .08em; font-weight: 500; }
.btn:hover { letter-spacing: .08em; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--terracotta-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-soft { background: var(--linen); color: var(--ink); border-color: var(--rule); }
.btn-soft:hover { background: var(--linen-deep); }
.btn-pill { background: #fff; color: var(--ink); border-color: #fff; }
.btn-pill:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.link-arrow::after { background: var(--ink); }
.link-arrow:hover { color: var(--ink); }

/* Header & footer */
.site-header { background: rgba(255, 255, 255, .9); border-bottom-color: transparent; }
.site-header.scrolled { border-bottom-color: var(--rule); box-shadow: none; }
.brand-mark { background: var(--ink); }
.brand:hover .brand-mark { background: var(--terracotta-deep); }
.brand-name { font-size: 1.3rem; font-weight: 600; letter-spacing: .06em; }
.nav { gap: 2rem; }
.nav a { text-transform: none; letter-spacing: 0; font-size: .92rem; font-weight: 500; color: var(--ink-soft); border-bottom-width: 1.5px; }
.nav a.active { color: var(--ink); border-bottom-color: var(--terracotta); }
.header-actions .btn { padding: .65rem 1.2rem; }
.mobile-nav { background: #fff; }
.mobile-nav a.active { color: var(--terracotta-deep); }
.site-footer { background: var(--linen); border-top: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.footer-grid h4 { color: var(--ink); }
.footer-links a:hover, .footer-connect a:hover { color: var(--ink); }

/* Panels, tags, chips */
.mount { background: #fff; border-color: var(--rule); }
.mount.white { background: #fff; }
.frame { border-radius: var(--r-md); background: var(--linen); }
.tag { border-radius: var(--r-pill); background: rgba(255, 255, 255, .94); color: var(--ink); letter-spacing: .08em; }
.tag.dark, .tag.sold { background: rgba(23, 24, 27, .82); color: #fff; }
.chip { border-radius: var(--r-pill); background: #fff; border-color: var(--rule); }
.chip.accent { border-color: transparent; background: var(--terracotta-tint); color: var(--terracotta-deep); }
.info-strip { background: var(--linen); border: 0; border-radius: var(--r-lg); }
.icon-badge { background: #fff; color: var(--terracotta-deep); }
.stat { background: var(--linen); border: 0; border-radius: var(--r-lg); padding: var(--space-lg) var(--space-md); }
.stat strong { font-size: 2.4rem; font-weight: 500; }
.quote-card { border: 0; background: var(--linen); }
.filters { background: transparent; border: 0; padding: 0; gap: .5rem; }
.filters button { border: 1px solid var(--rule); border-radius: var(--r-pill); text-transform: none; letter-spacing: 0; font-size: .9rem; padding: .55rem 1.15rem; color: var(--ink-soft); background: #fff; }
.filters button:hover { background: var(--linen); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Page heads: centred, like a gallery catalogue */
.page-hero { background: var(--canvas) !important; border-bottom: 0 !important; }

/* Forms */
.field input, .field select, .field textarea, .input { background: #fff; border-color: var(--stone); border-radius: var(--r-sm); }
.checkbox input { background: #fff; }
.checkbox input:checked { background: var(--ink); border-color: var(--ink); }
.form-note { background: var(--linen); border: 0; }

/* ---------- Home: photo collage ---------- */
.collage { display: grid; gap: 1rem; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: 3.5rem minmax(14rem, 19vw) minmax(13rem, 17vw);
  grid-template-areas: "a b badge" "a b c" "a d d"; }
.collage-tile { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--linen); min-height: 0; }
.collage-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.collage-tile:hover img { transform: scale(1.035); }
.collage .t1 { grid-area: a; } .collage .t2 { grid-area: b; } .collage .t3 { grid-area: c; } .collage .t4 { grid-area: d; }
.collage.n-3 { grid-template-areas: "a b badge" "a b c" "a b c"; }
.collage.n-2 { grid-template-columns: 1.3fr 1fr; grid-template-areas: "a badge" "a b" "a b"; }
.collage.n-1 { grid-template-columns: 1fr; grid-template-rows: auto minmax(18rem, 36vw); grid-template-areas: "badge" "a"; }
.collage-tile figcaption { position: absolute; left: .9rem; bottom: .9rem; max-width: calc(100% - 1.8rem); padding: .4rem .85rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); font-size: .78rem; font-weight: 500; color: var(--ink); opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease); pointer-events: none; }
.collage-tile:hover figcaption, .collage-tile:focus-within figcaption { opacity: 1; transform: none; }
.collage-arrow { position: absolute; z-index: 2; top: .85rem; right: .85rem; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 6px #fff; transition: background .25s, transform .25s var(--ease); }
.collage-arrow svg { width: 22px; height: 22px; }
.collage-arrow:hover { background: var(--terracotta-deep); transform: rotate(45deg); }
.collage-badge { grid-area: badge; align-self: center; justify-self: start; display: inline-flex; align-items: center; gap: .45rem; padding-left: .25rem; font-size: .95rem; color: var(--muted); }
.collage-badge .star { color: var(--ink); font-size: 1.05rem; }
.hero-actions .collage-badge { display: none; } /* until the script moves it beside the photos */
@media (max-width: 1023px) {
  .collage { grid-template-rows: 3rem 15rem 13rem; }
}
@media (max-width: 767px) {
  .collage, .collage.n-3, .collage.n-4 { grid-template-columns: 1fr 1fr; grid-template-rows: auto 24rem 11rem 12rem; grid-template-areas: "badge badge" "a a" "b c" "d d"; gap: .65rem; }
  .collage.n-3 { grid-template-rows: auto 24rem 11rem; }
  .collage.n-2 { grid-template-columns: 1fr; grid-template-rows: auto 22rem 14rem; grid-template-areas: "badge" "a" "b"; }
  .collage.n-1 { grid-template-rows: auto 22rem; }
  .collage-arrow { width: 44px; height: 44px; box-shadow: 0 0 0 5px #fff; }
  .collage-tile { border-radius: var(--r-md); }
}
.hero-head { margin-bottom: var(--space-lg); }

/* ---------- Home: "Her story" banner ---------- */
.story-banner { position: relative; overflow: hidden; border-radius: var(--r-lg); width: 100%; min-height: clamp(380px, 42vw, 620px); display: grid; place-items: center; background: var(--ink); isolation: isolate; }
.story-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: -2; transition: transform 1.6s var(--ease); }
.story-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 70%, rgba(10, 10, 12, .55), rgba(10, 10, 12, .18) 70%); }
.story-banner:hover > img { transform: scale(1.03); }
.story-inner { text-align: center; color: #fff; padding: var(--space-lg) var(--space-md); max-width: 40rem; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.story-kicker { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.story-title { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -0.01em; }
.story-title .accent { color: #fff; }
.story-text { font-size: 1.05rem; line-height: 1.6; opacity: .92; max-width: 32rem; }
.story-inner .btn { margin-top: .5rem; }
@media (max-width: 767px) { .story-banner { min-height: 30rem; } .story-inner { padding-inline: 1.25rem; } }

/* Newsletter panel */
.news-panel { background: var(--linen); border-radius: var(--r-lg); padding: var(--space-xl) var(--space-md); }

/* ---------- Work + Home "Selected works": free-size masonry ---------- */
.masonry { columns: 3 300px; column-gap: 1.5rem; }
.masonry > * { margin-bottom: 2rem; }
.art-card { background: none; border: 0; padding: 0; border-radius: 0; }
.art-card:hover { box-shadow: none; border-color: transparent; }
.art-card .frame { margin-bottom: .9rem; border-radius: var(--r-lg); }
.art-card .frame img { height: auto; }
.art-card .frame.ratio-43 img { height: 100%; }
.art-card .tag.tl { top: .8rem; left: .8rem; }
.art-card .tag.br { display: none; }
.art-card .title-row { margin-bottom: .15rem; }
.art-card h3 { font-size: 1.02rem; }
.art-card:hover h3 { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.art-card .meta { color: var(--muted); font-weight: 500; }
.art-card .card-foot { display: none; }

/* ---------- Shop: product cards in free-size columns ---------- */
.shop-grid { columns: 4 250px; column-gap: 1.5rem; }
.shop-grid > * { break-inside: avoid; margin-bottom: 1.75rem; }
.shop-grid > .empty { column-span: all; }
.shop-grid [hidden] { display: none; }
.shop-card { display: block; background: #fff; border: 0; border-radius: var(--r-lg); padding: 0; transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.shop-card:hover { box-shadow: var(--shadow-float); border-color: transparent; transform: translateY(-3px); }
.shop-photo { position: relative; display: block; background: var(--linen); border-radius: var(--r-lg); padding: 10% 11%; overflow: hidden; }
.shop-photo img { width: 100%; height: auto; box-shadow: 0 10px 22px -10px rgba(23, 24, 27, .35), 0 2px 5px rgba(23, 24, 27, .08); transition: transform .8s var(--ease); }
.shop-card:hover .shop-photo img { transform: scale(1.025); }
.shop-info { padding: 1.1rem .4rem 1.2rem; }
.shop-card:hover .shop-info { padding-inline: 1rem; }
.shop-info { transition: padding .35s var(--ease); }
.shop-title { font-family: var(--sans); font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.shop-title a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.shop-blurb { margin-top: .4rem; font-size: .875rem; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-specs { margin-top: .45rem; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--umber); }
.shop-rule { display: block; width: 28px; height: 1.5px; background: var(--stone); margin: .9rem 0 .7rem; }
.shop-foot { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.shop-card .price { font-size: 1.15rem; font-weight: 600; color: var(--terracotta-deep); }
.shop-link { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.shop-link svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.shop-link:hover svg { transform: translateX(3px); }
.shop-card.is-sold .shop-photo img { filter: grayscale(.5); opacity: .8; }
.shop-card.is-sold .price { color: var(--muted); text-decoration: none; }
@media (max-width: 560px) { .shop-grid { columns: 2 150px; column-gap: .9rem; } .shop-title { font-size: .98rem; } .shop-blurb { display: none; } .shop-card .price { font-size: 1rem; } .shop-link { font-size: .7rem; } .shop-link svg { display: none; } }

/* ---------- Classes: pricing-style course cards ---------- */
[data-render="courses"], [data-render="courses-summary"] { align-items: stretch; padding-top: 1rem; }
.course-card { --tint: #fdeee6; padding: 0; border: 1px solid var(--rule); border-radius: var(--r-lg); background: #fff; overflow: visible; display: flex; flex-direction: column; }
.course-card:nth-child(3n+2) { --tint: #eeeefb; }
.course-card:nth-child(3n+3) { --tint: #e5f3f1; }
.course-card::before { display: none; }
.course-card:hover { box-shadow: var(--shadow-float); }
.course-top { padding: 1.75rem 1.75rem 1.5rem; border-radius: var(--r-lg) var(--r-lg) 0 0; background: linear-gradient(180deg, var(--tint) 0%, rgba(255, 255, 255, 0) 100%); }
.course-top .top { margin-bottom: 1rem; }
.course-name { font-family: var(--sans); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.course-from { margin-top: 1.25rem; }
.course-card .price-line { margin: .3rem 0 .75rem; align-items: baseline; flex-wrap: wrap; }
.course-card .price-line strong { font-family: var(--sans); font-size: 2.35rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.course-summary { min-height: 3.2em; }
.course-card .actions { margin-top: 1.25rem; padding-top: 0; }
.course-body { padding: 1.5rem 1.75rem 1.75rem; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.course-list-title { font-size: .88rem; font-weight: 600; color: var(--ink); }
.course-card .curriculum { margin: 0 0 .5rem; padding: 0; border: 0; }
.course-card .curriculum li { padding: .25rem 0; font-size: .88rem; }
.course-card .curriculum li svg { color: var(--ink-soft); width: 16px; height: 16px; }
.course-card .schedule, .batch { background: var(--linen); border-color: transparent; border-radius: var(--r-md); }
button.batch:hover { background: #fff; border-color: var(--ink); }
.course-card.featured { border: 1.5px solid var(--terracotta); box-shadow: 0 24px 50px -28px rgba(164, 73, 44, .45); }
.course-card.featured .course-top { --tint: #fbe3d7; }
.course-card .ribbon { top: 0; right: auto; left: 50%; transform: translate(-50%, -50%); border-radius: var(--r-pill); padding: .45rem 1rem; background: var(--ink); color: #fff; font-size: .68rem; white-space: nowrap; z-index: 2; }
.course-card.featured .btn-primary { background: var(--terracotta-deep); }
.course-card.featured .btn-primary:hover { background: var(--ink); }
@media (max-width: 1023px) { [data-render="courses"].grid-3, [data-render="courses-summary"].grid-3 { grid-template-columns: minmax(0, 1fr); max-width: 34rem; margin-inline: auto; row-gap: 2.25rem; } }

/* Classes top banner */
.class-banner { min-height: clamp(420px, 40vw, 600px); }
.class-banner .story-title { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.class-banner .stat-row { border-top-color: rgba(255, 255, 255, .3); justify-content: center; color: #fff; }
.class-banner .stat-row span { color: rgba(255, 255, 255, .8); }
.class-banner .link-arrow { color: #fff; }
.class-banner .link-arrow::after { background: #fff; }

/* Steps, FAQ, painting page, lightbox */
.step .num { background: #fff; border-color: var(--stone); color: var(--ink); }
.steps::before { background: var(--rule); }
.faq summary { font-size: 1.4rem; }
.faq summary svg { color: var(--ink); }
.plaque { background: var(--linen); border: 0; }
.plaque > div { border-color: rgba(23, 24, 27, .06) !important; }
.thumb { background: #fff; border-radius: var(--r-md); }
.thumb[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.detail-main { background: var(--linen); border-radius: var(--r-lg); }
.lightbox { background: rgba(23, 24, 27, .7); }
.lightbox-panel { background: #fff; }
.lightbox-view { background: var(--linen); }
.lb-close:hover, .lb-nav:hover { background: var(--ink); border-color: var(--ink); }
.video-frame { border-radius: var(--r-lg); }
.video-play svg { background: rgba(23, 24, 27, .78); }
.mobile-cta { background: rgba(255, 255, 255, .96); }
.class-stats { justify-content: space-between; align-items: flex-start; border-top: 0; padding-top: var(--space-md); }
.class-stats .class-teacher { max-width: 26rem; }
.class-stats .class-teacher .label-sm { display: block; margin-bottom: .3rem; color: var(--umber); }
@media (max-width: 767px) { .class-stats .class-teacher { flex-basis: 100%; } }
/* Shop head: centred heading with the tabs underneath */
.center-head { flex-direction: column; align-items: center !important; text-align: center; gap: var(--space-md) !important; }
.center-head .lede { margin-inline: auto; }
.center-head .filters { justify-content: center; }
[data-render="featured-paintings"].shop-grid { columns: 3 250px; }
.class-stats .class-teacher strong { font-family: var(--sans); font-weight: 600; color: var(--ink); }
.course-card { min-width: 0; } .course-card .batch-when strong { overflow-wrap: anywhere; }

/* Hover in the free-size (column) layouts: no movement, zoom or size change.
   Chrome can stop drawing a card that moves or zooms inside CSS columns, and a card that grows
   on hover can jump to another column — both look like the painting "disappears". */
.shop-card, .shop-card:hover { transform: none; }
.shop-card:hover .shop-photo img, .masonry .art-card:hover .frame img, .art-card:hover .frame img { transform: none; }
.shop-card:hover .shop-info { padding-inline: .4rem; }
.shop-photo img, .masonry .art-card .frame img { transition: filter .3s var(--ease); }
.shop-card:hover .shop-photo img, .masonry .art-card:hover .frame img { filter: brightness(1.04) saturate(1.04); }
.shop-card.is-sold:hover .shop-photo img { filter: grayscale(.5); }
.masonry .art-card .frame { transition: box-shadow .3s var(--ease); }
.masonry .art-card:hover .frame { box-shadow: var(--shadow-float); }
.shop-card { transition: box-shadow .35s var(--ease); }

/* Hover: a soft wash with a "View" button fades in over the painting (fade only — nothing moves,
   so it is safe in the column layouts). Only on devices with a mouse. */
.hover-cta { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(23, 24, 27, .28); opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; border-radius: inherit; }
.hover-cta > span { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1.25rem; border-radius: var(--r-pill); background: #fff; color: var(--ink); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
.hover-cta svg { width: 15px; height: 15px; }
@media (hover: hover) {
  .shop-photo:hover .hover-cta, .shop-photo:focus-visible .hover-cta,
  .art-card:hover .hover-cta, .art-card:focus-visible .hover-cta { opacity: 1; }
}
@media (hover: none) { .hover-cta { display: none; } }
.shop-card .tag.sold { z-index: 3; }
.art-card .tag, .art-card .photo-count { z-index: 3; }
.shop-photo .hover-cta { background: rgba(23, 24, 27, .14); }

/* No grey mat around paintings: the painting itself fills the card, with rounded corners */
.shop-photo { background: none; padding: 0; border-radius: var(--r-lg); }
.shop-photo img { border-radius: var(--r-lg); box-shadow: 0 1px 0 rgba(23, 24, 27, .04), 0 10px 24px -16px rgba(23, 24, 27, .35); }
.shop-photo .hover-cta { background: rgba(23, 24, 27, .22); }
.shop-card .tag.tl { top: .8rem; left: .8rem; }
.detail-main { background: none; }
.detail-main img { border-radius: var(--r-lg); }
.thumb .frame { background: #fff; }

/* Collage: photos take turns in the 4 spots (cross-fade) */
.collage-tile img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.collage-tile img.on { opacity: 1; }
.collage-tile figcaption, .collage-arrow { z-index: 2; }

/* ---------- Home: sliding stack of photos ----------
   The front card is --w wide; cards behind are shifted right and a little smaller, so they peek out.
   Positions are set by data-pos (0 front, 1–2 peeking, 3+/"back" waiting, "out" leaving to the left). */
.deck, .hero-banner { --w: 78%; --h: clamp(340px, 42vw, 600px); }
.deck { position: relative; }
.deck-stage { position: relative; height: var(--h); }
.deck-card { position: absolute; top: 0; left: 0; width: var(--w); height: 100%; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--linen);
  transform-origin: left center; cursor: pointer;
  transition: transform .75s cubic-bezier(.65, 0, .35, 1), opacity .75s ease, filter .75s ease, box-shadow .75s ease; }
.deck-card img { width: 100%; height: 100%; object-fit: cover; }
.deck-card[data-pos="0"] { transform: translateX(0) scale(1); z-index: 5; opacity: 1; cursor: default; box-shadow: 0 30px 60px -30px rgba(23, 24, 27, .45); }
.deck-card[data-pos="1"] { transform: translateX(22.2%) scale(.9); z-index: 4; opacity: 1; filter: brightness(.94); }
.deck-card[data-pos="2"] { transform: translateX(44.4%) scale(.8); z-index: 3; opacity: 1; filter: brightness(.88); }
.deck-card[data-pos="3"], .deck-card[data-pos="4"], .deck-card[data-pos="5"], .deck-card[data-pos="6"], .deck-card[data-pos="7"], .deck-card[data-pos="back"] { transform: translateX(58.2%) scale(.7); z-index: 1; opacity: 0; pointer-events: none; }
.deck-card[data-pos="out"] { transform: translateX(-28%) scale(.94); z-index: 6; opacity: 0; pointer-events: none; }
.deck-card.jump { transition: none !important; }
.deck-card:not([data-pos="0"]):hover { filter: brightness(1); }
.deck-card figcaption { position: absolute; left: 1.1rem; bottom: 1.1rem; max-width: calc(100% - 2.2rem); padding: .5rem 1rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); font-size: .82rem; font-weight: 500; color: var(--ink); opacity: 0; transition: opacity .4s ease .35s; }
.deck-card[data-pos="0"] figcaption { opacity: 1; }
.deck.single .deck-card { width: 100%; }
.deck .deck-arrow { position: absolute; z-index: 7; top: 1rem; left: calc(var(--w) - 52px - 1rem); right: auto; }
.deck .collage-badge { position: absolute; z-index: 7; top: 1rem; left: 1rem; margin: 0; padding: .5rem .95rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); color: var(--ink-soft); font-size: .85rem; }
.deck .collage-badge[hidden] { display: none; }
.deck.single .deck-arrow { left: auto; right: 1rem; }
.deck-dots { display: flex; gap: .5rem; justify-content: center; margin-top: 1.25rem; }
.deck-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--r-pill); background: var(--stone); cursor: pointer; transition: width .4s var(--ease), background .4s; }
.deck-dots button[aria-current] { width: 26px; background: var(--ink); }
@media (max-width: 767px) {
  .deck, .hero-banner { --w: 82%; --h: 26rem; }
  .deck-card[data-pos="1"] { transform: translateX(19%) scale(.9); }
  .deck-card[data-pos="2"] { transform: translateX(22%) scale(.8); opacity: 0; }
  .deck-card { border-radius: var(--r-md); }
  .deck .collage-badge { font-size: .78rem; }
  .deck .deck-arrow { width: 44px; height: 44px; left: calc(var(--w) - 44px - .75rem); top: .75rem; }
  .deck .collage-badge { top: auto; bottom: 4.2rem; left: .75rem; }
}
.deck-section { overflow-x: clip; }

/* ---------- Home: photos on the left, intro text on the right ---------- */
.hero-banner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: clamp(2rem, 4.5vw, 4.5rem); align-items: center; --w: 80%; --h: clamp(420px, 40vw, 600px); }
.hero-banner .deck { --w: inherit; --h: inherit; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; order: -1; } /* text on the left, photos on the right */
.hero-name { margin-top: .9rem; font-size: clamp(3rem, 5.4vw, 5.4rem); }
.hero-intro { margin-top: 1.1rem; max-width: 30rem; }
.hero-text .btns { margin-top: 1.9rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-where { margin-top: 1.4rem; }
.hero-banner .deck-arrow { z-index: 9; }
.hero-banner .collage-badge { z-index: 9; }
.hero-banner > .collage-badge { display: none; } /* until the script puts it on the photos */
@media (max-width: 1023px) {
  .hero-banner { grid-template-columns: 1fr; gap: var(--space-lg); --w: 78%; --h: clamp(380px, 60vw, 520px); }
}
@media (max-width: 767px) {
  .hero-banner { --w: 86%; --h: 24rem; }
  .hero-name { font-size: 3rem; }
  .hero-text .btns { flex-direction: column; align-items: stretch; width: 100%; gap: .6rem; }
  .hero-text .btn { justify-content: center; }
  .hero-banner .collage-badge { top: .75rem; bottom: auto; left: .75rem; font-size: .7rem; padding: .4rem .75rem; max-width: calc(var(--w) - 5rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .hero-banner .collage-badge[hidden] { display: none; }
  .hero-banner .deck-card[data-pos="1"] { transform: translateX(17%) scale(.92); }
}
.shop-foot { flex-wrap: wrap; row-gap: .35rem; min-width: 0; } .shop-card { min-width: 0; } .shop-card .price { overflow-wrap: anywhere; }
/* Large view (Work page): white around the painting, no grey bars for tall or wide paintings */
.lightbox-view { background: #fff; padding: clamp(.75rem, 2vw, 1.5rem); }
.lightbox-view img { border-radius: var(--r-md); box-shadow: 0 14px 34px -18px rgba(23, 24, 27, .4); }
/* Large view: long artist notes scroll inside the right column; the painting stays in view */
@media (min-width: 901px) {
  .lightbox-panel { grid-template-rows: minmax(0, 1fr); }
  .lightbox-view, .lightbox-info { max-height: calc(100vh - 2 * var(--space-md)); }
  .lightbox-view { overflow: hidden; }
  .lightbox-view img { max-height: calc(100vh - 2 * var(--space-md) - 3rem); }
  .lightbox-info { overflow-y: auto; overscroll-behavior: contain; }
}

/* ---------- Home: black landing area (intro text + sliding photos) ---------- */
.deck-section { --hero-bg: #0d0d0f; background: var(--hero-bg); color: #fff; padding-bottom: var(--space-xl); }
.deck-section .eyebrow { color: rgba(255, 255, 255, .78); }
.deck-section .display, .deck-section .hero-name { color: #fff; }
.deck-section .display .accent, .deck-section .hero-name .accent { color: #e9a184; }
.deck-section .body-xl, .deck-section .hero-intro { color: rgba(255, 255, 255, .78); }
.deck-section .hero-where { color: rgba(255, 255, 255, .55) !important; }
.deck-section .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.deck-section .btn-primary:hover { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.deck-section .btn-soft { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.deck-section .btn-soft:hover { background: #fff; color: var(--ink); border-color: #fff; }
.deck-section .deck-card { background: #1b1b1f; }
.deck-section .deck-card[data-pos="0"] { box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9); }
.deck-section .deck-card[data-pos="1"] { filter: brightness(.8); }
.deck-section .deck-card[data-pos="2"] { filter: brightness(.65); }
.deck-section .deck-card:not([data-pos="0"]):hover { filter: brightness(.95); }
.deck-section .collage-arrow { background: #fff; color: var(--ink); box-shadow: 0 0 0 6px var(--hero-bg); }
.deck-section .collage-arrow:hover { background: var(--terracotta); color: #fff; }
.deck-section .deck-dots button { background: rgba(255, 255, 255, .28); }
.deck-section .deck-dots button[aria-current] { background: #fff; }
.deck-section :focus-visible { outline-color: #fff; }
.deck-section { overflow: clip; } /* keep the photo shadows inside the black area */

/* ---------- Logo (ChithrArt) ----------
   Two copies: dark ink for light backgrounds, white for dark ones. theme-grey.css swaps them. */
.brand-logo { display: block; height: 68px; width: auto; margin-block: -6px; }
.brand-logo.for-dark { display: none; }
.brand:hover .brand-logo { opacity: .85; }
.brand-footer .brand-logo { height: 96px; margin-block: 0; }
@media (max-width: 560px) { .brand-logo { height: 54px; margin-block: -4px; } }

/* Light / dark switch (header) */
.theme-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--rule); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s, transform .3s var(--ease); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle:hover { border-color: var(--ink); background: var(--linen); }
.theme-toggle:active { transform: rotate(20deg); }
