/* ============================================
   ONLINE SHOPS - akiraishi.com/shop.html
   A clean, professional storefront that still
   carries the Reliquary's gold-and-parchment hand.
   ============================================ */

:root {
  --gold: #c9a227;
  --gold-deep: #8b6914;
  --gold-soft: #e8d48b;
  --ink: #2b1c0c;
  --ink-soft: #5c4a33;
  --ink-faint: #8a7960;
  --paper: #faf5e8;
  --paper-warm: #f2e9d6;
  --paper-edge: #e3d7bd;
  --brown-dark: #1a0f05;

  --font-display: 'Cinzel Decorative', serif;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Cormorant Garamond', serif;
  --font-ui: 'Cinzel', serif;

  --radius: 2px;
  --shadow-soft: 0 10px 30px rgba(43, 28, 12, 0.08);
  --shadow-lift: 0 18px 40px rgba(43, 28, 12, 0.16);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold-deep);
}

.wrap {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}

/* ============================================
   HEADER
   ============================================ */

.shop-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--paper-edge);
  transition: box-shadow var(--transition);
}

.shop-header.scrolled {
  box-shadow: 0 2px 20px rgba(43, 28, 12, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.15;
}

.wordmark-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 2px;
}

.wordmark-role {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--ink-faint);
}

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

.shop-nav a {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.shop-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

.nav-crossing {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem !important;
  border: 1px solid var(--gold-deep) !important;
  color: var(--gold-deep) !important;
  background: transparent;
  transition: background var(--transition), color var(--transition);
}

.nav-crossing:hover {
  background: var(--gold-deep);
  color: var(--paper) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--paper-edge);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
}

/* ============================================
   SHARED SECTION FURNITURE
   ============================================ */

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-alt {
  background: var(--paper-warm);
  border-top: 1px solid var(--paper-edge);
  border-bottom: 1px solid var(--paper-edge);
}

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold-deep);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  letter-spacing: 1px;
  color: var(--ink);
}

.section-title::after {
  content: '❧';
  display: block;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--gold);
}

.section-lede {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(ellipse at 50% -10%, rgba(201, 162, 39, 0.16) 0%, transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--paper-edge);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: 1px;
}

.hero-title em {
  font-style: normal;
  color: var(--gold-deep);
}

.hero-text {
  margin-top: 1.25rem;
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--gold-deep);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--gold-deep);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

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

.btn-ghost:hover {
  background: rgba(201, 162, 39, 0.12);
  transform: translateY(-2px);
}

.hero-figure {
  position: relative;
  padding: 0.9rem;
  border: 1px solid var(--gold-deep);
  background: var(--paper-warm);
  box-shadow: var(--shadow-soft);
}

.hero-figure::before {
  content: '';
  position: absolute;
  inset: 0.35rem;
  border: 1px solid rgba(201, 162, 39, 0.45);
  pointer-events: none;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.hero-figure figcaption {
  margin-top: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-faint);
  text-align: center;
}

/* ============================================
   SHOP BLOCKS
   ============================================ */

.shop-block + .shop-block {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--paper-edge);
}

.shop-card {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  box-shadow: var(--shadow-soft);
}

.section-alt .shop-card {
  background: var(--paper);
}

.shop-card-figure {
  position: relative;
  border: 1px solid var(--gold-deep);
  padding: 0.5rem;
}

.shop-card-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.shop-platform {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-deep);
}

.shop-name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  margin: 0.35rem 0 0.6rem;
}

.shop-desc {
  color: var(--ink-soft);
  max-width: 58ch;
}

.shop-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  list-style: none;
}

.shop-facts li {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-soft);
  border: 1px solid var(--paper-edge);
  background: var(--paper-warm);
  padding: 0.35rem 0.7rem;
}

/* ============================================
   WORK GRID
   ============================================ */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.work {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.work:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lift);
}

.work-figure {
  position: relative;
  overflow: hidden;
  background: var(--paper-warm);
}

.work-figure img {
  display: block;
  width: 100%;
  height: auto;          /* the painting's own shape, whole: nothing is cropped */
  transition: transform 0.5s ease;
}

.work:hover .work-figure img {
  transform: scale(1.04);
}

.work-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.3rem 0.6rem;
  background: rgba(250, 245, 232, 0.92);
  border: 1px solid var(--gold-deep);
  color: var(--gold-deep);
}

.work-body {
  padding: 1rem 1.1rem 1.2rem;
}

.work-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

.work-meta {
  font-size: 0.98rem;
  color: var(--ink-faint);
  margin-top: 0.15rem;
}

.work-cta {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-deep);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.work:hover .work-cta {
  border-bottom-color: var(--gold);
}

.grid-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 1rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* ============================================
   ABOUT
   ============================================ */

.about-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-portrait-frame {
  position: relative;
  padding: 0.9rem;
  border: 1px solid var(--gold-deep);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.about-portrait-frame::before {
  content: '';
  position: absolute;
  inset: 0.35rem;
  border: 1px solid rgba(201, 162, 39, 0.45);
  pointer-events: none;
}

.about-portrait-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.about-text p + p {
  margin-top: 1.1rem;
}

.about-text .lead {
  font-size: 1.28rem;
  color: var(--ink);
}

.about-signature {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-deep);
}

/* ============================================
   CONTACT
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  padding: 1.75rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.contact-card p {
  color: var(--ink-soft);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.contact-card a {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

.contact-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 0.75rem;
  object-fit: contain;
}

/* ============================================
   THE ATELIER - Nature Morte, painted live
   The generator is a page of its own; it is
   only fetched once the visitor asks for it.
   ============================================ */

button.btn {
  cursor: pointer;
}

button.btn[disabled] {
  opacity: 0.4;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* Once the painter is running, stop skipping the section's rendering */
#atelier.atelier-live {
  content-visibility: visible;
}

/* The studio takes the whole row; what you can do with the painting sits below it */
#atelier > .wrap {
  width: min(1680px, 100% - 3rem);
}

.atelier {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.atelier-stage {
  position: relative;
  height: clamp(480px, 82vh, 960px);
  padding: 0.9rem;
  border: 1px solid var(--gold-deep);
  background: var(--brown-dark);
  box-shadow: var(--shadow-soft);
}

/* full screen: the frame alone, either by the browser's own full screen or laid over the page (an iPhone has no
   full screen for anything but video) */
.atelier-stage:fullscreen { padding: 0; border: 0; background: #000; }
.atelier-stage.atelier-full {
  position: fixed;
  inset: 0;
  z-index: 2000;
  height: auto;
  padding: 0;
  border: 0;
  background: #000;
}
html.atelier-noscroll, html.atelier-noscroll body { overflow: hidden; }
/* a transformed ancestor (the reveal animation) would hold a fixed box inside itself */
html.atelier-noscroll .atelier { transform: none !important; transition: none !important; }

.atelier-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0f0d0b;
}

/* The closed atelier: one finished painting and the way in */
.atelier-poster {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #0f0d0b;
}

.atelier-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.atelier-poster-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 13, 11, 0.86) 55%);
}

.atelier-poster-body p {
  max-width: 44ch;
  margin: 0 auto 1.1rem;
  color: #e7dcc4;
  font-size: 1rem;
}

.atelier-poster-body .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--brown-dark);
}

.atelier-poster-body .btn-primary:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

/* Panel under the studio: what has just been painted on the left, how to own it on the right */
.atelier-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem 2.5rem;
  padding: 1.75rem;
  border: 1px solid var(--paper-edge);
  background: var(--paper-warm);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 900px) {
  .atelier-panel {
    grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  }

  /* the preview beside the choices, once there is room */
  .atelier-buy {
    display: grid;
    grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
    column-gap: 2.25rem;
  }

  .atelier-buy > * {
    grid-column: 2;
  }

  .atelier-buy > .atelier-mockup {
    grid-column: 1;
    grid-row: 1 / span 14;
    align-self: start;
    margin-top: 0;
  }
}

.atelier-panel h3 {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-faint);
}

.atelier-title {
  margin-top: 0.6rem;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
}

.atelier-meta {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.atelier-ref {
  margin: 1.1rem 0;
  padding: 0.7rem 0.85rem;
  border: 1px dashed var(--paper-edge);
  background: var(--paper);
}

.atelier-ref-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-faint);
}

.atelier-ref-value {
  display: block;
  margin-top: 0.3rem;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  word-break: break-all;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

/* nothing painted yet: no link */
.atelier-ref-value:not([href]) {
  text-decoration: none;
}

.atelier-ref-hint {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.atelier-actions {
  display: grid;
  gap: 0.55rem;
}

.atelier-actions .btn,
.atelier-order {
  justify-content: center;
  padding: 0.8rem 1rem;
  font-size: 0.72rem;
}

.atelier-order {
  display: flex;
  margin-top: 0.55rem;
}

.atelier-fineprint {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-faint);
}

/* Ordering through the Etsy Worker: size, price, the human check, then the button */
.atelier-buy {
  margin-top: 1.1rem;
}

.atelier-field {
  display: block;
  margin-top: 0.7rem;
}

.atelier-field[hidden] {
  display: none;
}

.atelier-field > span {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-faint);
}

.atelier-field select {
  width: 100%;
  padding: 0.6rem 0.7rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
}

.atelier-price {
  margin-top: 0.7rem;
  min-height: 1.4em;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* The price, line by line: the painting, the printing, the delivery, the total */
.price-rows {
  display: grid;
  gap: 0.25rem;
  margin: 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.price-row dt {
  margin: 0;
}

.price-row dd {
  margin: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.price-row.total {
  margin-top: 0.3rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--paper-edge);
  font-weight: 600;
  color: var(--ink);
}

.price-note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ink-faint);
}

/* In partnership with Gelato */
.atelier-partner {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--paper-edge);
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ink-faint);
}

.atelier-partner svg {
  flex: none;
  margin-top: 0.1rem;
}

.atelier-captcha {
  margin-top: 0.4rem;
  min-height: 0;
}

.atelier-order[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.atelier-status {
  margin-top: 0.6rem;
  min-height: 1.3em;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink);
}

/* The preview of the chosen print: the painting in its frame, on a wall */
.atelier-mockup {
  margin: 1.1rem 0 0.4rem;
}

.atelier-mockup canvas {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--paper-edge);
  background: var(--paper);
}

.atelier-mockup figcaption {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--ink-faint);
  text-align: center;
}

/* A short word on what the painter can do */
.atelier-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem 1.75rem;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--paper-edge);
}

.atelier-facts strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-deep);
  margin-bottom: 0.35rem;
}

.atelier-facts span {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Three finished paintings, as a taste of the range */
.atelier-examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.atelier-example {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--paper-edge);
  background: var(--brown-dark);
}

.atelier-example img {
  width: 100%;
  /* height:auto so the width/height attributes stop overriding the ratio */
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  transition: transform var(--transition);
}

.atelier-example:hover img {
  transform: scale(1.03);
}

.atelier-example span {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.45rem 0.7rem;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--paper);
  background: rgba(15, 13, 11, 0.72);
}

.atelier-examples figcaption {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-faint);
}

/* ============================================
   CROSSING TO THE RELIQUARY
   ============================================ */

.crossing {
  background:
    radial-gradient(ellipse at center, rgba(201, 162, 39, 0.18) 0%, transparent 65%),
    linear-gradient(180deg, #241608 0%, var(--brown-dark) 100%);
  color: var(--paper);
  text-align: center;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.crossing h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  color: var(--gold);
}

.crossing p {
  margin: 0.75rem auto 1.75rem;
  max-width: 54ch;
  color: #e7dcc4;
}

.crossing .btn {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.crossing .btn:hover {
  background: var(--gold);
  color: var(--brown-dark);
}

/* ============================================
   FOOTER
   ============================================ */

.shop-footer {
  padding: 2.5rem 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--paper-edge);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--ink-faint);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--gold-deep);
}

/* Sections further down the page are skipped by the renderer until needed */
#atelier,
#about,
#contact,
.crossing,
.shop-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 1200px;
}

/* ============================================
   REVEAL ON SCROLL
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .hero-inner,
  .about-inner {
    grid-template-columns: 1fr;
  }

  .hero-figure,
  .about-portrait-frame {
    max-width: 380px;
    margin-inline: auto;
  }

  .shop-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .shop-card-figure {
    max-width: 320px;
  }

  .atelier {
    grid-template-columns: 1fr;
  }

  .atelier-stage {
    height: clamp(360px, 60vh, 600px);
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(1180px, 100% - 2rem);
  }

  .nav-toggle {
    display: block;
  }

  .shop-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--paper-edge);
    box-shadow: var(--shadow-soft);
    display: none;
  }

  .shop-nav.open {
    display: flex;
  }

  .shop-nav a {
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid var(--paper-edge);
  }

  .nav-crossing {
    margin: 0.9rem 1.5rem;
    justify-content: center;
  }

  .atelier-examples {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .work,
  .work-figure img,
  .btn,
  .contact-card,
  .atelier-example img {
    transition: none;
  }
}
