/* Teri Levine Art & Design: shared styles for every page except the 3D gallery (index.html).
   Gallery-paper pages with a night-dark footer, matching the cream panels of the 3D experience. */
:root {
  --paper: #F3EEE4;
  --paper-2: #E9E2D5;
  --card: #FBF8F2;
  --ink: #1C1B18;
  --ink-2: #3E3B35;
  --muted: #6B675E;
  --line: rgba(28, 27, 24, .14);
  --night: #0E1013;
  --night-text: #F4EFE6;
  --night-dim: rgba(244, 239, 230, .66);
  --blush: #F2C9D1;
  --rose: #9E4457;
  --sold: #B8402F;
  --ok: #2F7D55;

  --display: "Cormorant", "Cormorant Garamond", Didot, "Bodoni 72", Georgia, serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --script: "Allura", "Snell Roundhand", "Segoe Script", cursive;

  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
  /* Same edge spacing and header height as the 3D home page's top bar */
  --edge-l: calc(var(--gl) + clamp(0px, 2vw, 24px));
  --edge-r: calc(var(--gr) + clamp(0px, 2vw, 24px));
  --head-pad: clamp(16px, 2.4vw, 28px); /* the home page's top-bar offset */
  --head-h: calc(var(--head-pad) + 64px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: var(--gl); padding-right: var(--gr); }
.narrow { max-width: 760px; }
.sc { font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 16px; }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--paper); z-index: 41; }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(243, 238, 228, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 20px; height: var(--head-h); padding: var(--head-pad) var(--edge-r) 14px var(--edge-l); }
.brand { display: inline-grid; text-decoration: none; line-height: 1; margin-right: auto; }
.brand .sig { font-family: var(--script); font-size: clamp(2rem, 3vw, 2.5rem); line-height: .9; }
.brand .sub { font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 4px; padding-left: 2px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .drop > button { text-decoration: none; padding: 10px 12px; border-radius: 999px; font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav > a:hover, .nav .drop > button:hover, .nav a[aria-current="page"] { background: var(--paper-2); }
.drop { position: relative; }
.drop svg { width: 10px; height: 10px; transition: transform .2s ease; }
.drop[data-open] svg { transform: rotate(180deg); }
.drop-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); min-width: 250px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 8px;
  box-shadow: 0 24px 50px -24px rgba(28, 27, 24, .35); display: none;
}
.drop[data-open] .drop-menu { display: grid; }
.drop-menu a { text-decoration: none; padding: 10px 14px; border-radius: 12px; display: grid; }
.drop-menu a:hover { background: var(--paper); }
.drop-menu a span { font-family: var(--display); font-size: 1.25rem; line-height: 1.2; }
.drop-menu a small { color: var(--muted); font-size: .78rem; }
.drop-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 8px; }
.head-tools { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  display: inline-grid; place-items: center; cursor: pointer; text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }
.count { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .66rem; font-weight: 600; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.count:empty, .count[data-n="0"] { display: none; }
.pill-3d {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
}
.pill-3d svg { width: 15px; height: 15px; }
.pill-3d:hover { background: #000; }
.menu-btn { display: none; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .pill-3d span { display: none; }
  .pill-3d { width: 40px; padding: 0; justify-content: center; }
}
.mobile-nav {
  position: fixed; inset: 0; z-index: 60; background: var(--paper); overflow-y: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) var(--gr) calc(env(safe-area-inset-bottom, 0px) + 24px) var(--gl);
  display: grid; align-content: start; gap: 8px;
}
.mobile-nav .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mobile-nav a { text-decoration: none; font-family: var(--display); font-size: 2rem; line-height: 1.25; }
.mobile-nav .sub-links { display: grid; gap: 4px; padding-left: 16px; margin-bottom: 8px; }
.mobile-nav .sub-links a { font-size: 1.35rem; color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn, .btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; cursor: pointer; text-decoration: none;
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 1.2;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn:hover { background: #000; transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--ink); border: 1px solid rgba(28, 27, 24, .35); }
.btn-line:hover { border-color: var(--ink); }
.btn[disabled], .btn-line[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg, .btn-line svg { width: 16px; height: 16px; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--blush); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-color: var(--rose); }

/* ---------- Page hero ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(28px, 4vw, 48px); display: grid; gap: 16px; }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 300; text-transform: uppercase; letter-spacing: -.01em; line-height: .95; }
.page-hero .lede { max-width: 62ch; color: var(--ink-2); font-size: 1.08rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------- Product grid ---------- */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; padding-block: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: .82rem; font-weight: 500; text-decoration: none; }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sort { display: flex; align-items: center; gap: 10px; }
.sort select { padding: 9px 36px 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.result-count { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; } }
.card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; position: relative; }
/* Every card in a row ends on the same line, even when a name wraps onto two lines */
.card .price { margin-top: auto; }
.card .mat { position: relative; aspect-ratio: 4 / 5; background: var(--paper-2); display: grid; place-items: center; padding: 10%; overflow: hidden; border-radius: 4px; }
.card .mat img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(28, 27, 24, .22)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.card:hover .mat img { transform: scale(1.04); }
.badge { position: absolute; top: 10px; left: 10px; padding: 5px 10px; border-radius: 999px; font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; background: var(--card); }
.badge.sold { color: var(--sold); }
.badge.sale { background: var(--rose); color: #FFF; }
.card h3 { font-size: 1.35rem; line-height: 1.15; }
.card .meta { color: var(--muted); font-size: .82rem; }
.card .price { font-weight: 600; font-variant-numeric: tabular-nums; display: flex; gap: 8px; align-items: baseline; }
.card .price s, .p-price s { color: var(--muted); font-weight: 400; }
.wish {
  position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--card); cursor: pointer;
  display: grid; place-items: center; opacity: 0; transition: opacity .2s ease; z-index: 2;
}
.card:hover .wish, .wish[aria-pressed="true"], .wish:focus-visible { opacity: 1; }
@media (hover: none) { .wish { opacity: 1; } }
.wish svg { width: 16px; height: 16px; }
.wish[aria-pressed="true"] svg { fill: var(--rose); stroke: var(--rose); }
.empty { padding: 48px 0; text-align: center; color: var(--muted); display: grid; gap: 14px; justify-items: center; }
.empty b { font-family: var(--display); font-weight: 400; font-size: 1.9rem; color: var(--ink); }

/* ---------- Prose ---------- */
.prose { display: grid; gap: 18px; color: var(--ink-2); font-size: 1.04rem; }
.prose > * { max-width: 68ch; }
.prose h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--ink); margin-top: 18px; }
.prose h3 { font-size: 1.55rem; color: var(--ink); margin-top: 8px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--blush); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a.btn { color: var(--paper); text-decoration: none; }
.prose a.btn-line { text-decoration: none; }
.prose figure { margin: 8px 0; max-width: 100%; }
.prose figure img { border-radius: 8px; width: 100%; max-width: 100%; }
.prose blockquote { margin: 0; padding-left: 20px; border-left: 2px solid var(--blush); font-family: var(--display); font-style: italic; font-size: 1.5rem; line-height: 1.3; color: var(--ink); }
.about-collection { margin-top: clamp(64px, 8vw, 110px); padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 40px; }
.about-collection > h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); position: sticky; top: 110px; align-self: start; }
@media (max-width: 860px) { .about-collection { grid-template-columns: minmax(0, 1fr); } .about-collection > h2 { position: static; } }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); padding-block: 24px clamp(48px, 7vw, 96px); align-items: start; }
@media (max-width: 900px) { .product { grid-template-columns: minmax(0, 1fr); } }
.p-gallery { display: grid; gap: 12px; position: sticky; top: 100px; }
@media (max-width: 900px) { .p-gallery { position: static; } }
.p-stage { background: var(--paper-2); border-radius: 6px; aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 7%; overflow: hidden; }
.p-stage img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 20px 26px rgba(28, 27, 24, .25)); cursor: zoom-in; }
.p-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.p-thumbs button { width: 74px; height: 74px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper-2); padding: 6px; cursor: pointer; }
.p-thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.p-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.p-info { display: grid; gap: 18px; }
.p-info h1 { font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; }
.p-price { font-family: var(--display); font-size: 2rem; font-weight: 500; display: flex; gap: 12px; align-items: baseline; font-variant-numeric: tabular-nums; }
.status { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 7px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.available { color: var(--ok); }
.status.sold { color: var(--sold); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0; }
.specs dt { color: var(--muted); font-size: .86rem; }
.specs dd { margin: 0; font-size: .94rem; }
.p-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.p-actions .btn { flex: 1 1 220px; }
.p-note { display: flex; gap: 12px; align-items: start; padding: 16px 18px; background: var(--card); border-radius: 14px; font-size: .9rem; color: var(--ink-2); }
.p-note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(14, 16, 19, .92); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 110px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split img { border-radius: 8px; width: 100%; }
.quote { font-family: var(--display); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.25; max-width: 30ch; }
.quote cite { display: block; margin-top: 14px; font-family: var(--body); font-style: normal; }
.band { background: var(--paper-2); }

/* CV */
.cv { display: grid; gap: 0; }
.cv details { border-top: 1px solid var(--line); }
.cv details:last-child { border-bottom: 1px solid var(--line); }
.cv summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; }
.cv summary::-webkit-details-marker { display: none; }
.cv summary h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cv summary span { color: var(--muted); font-size: .86rem; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 12px; }
.cv summary span::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--ink); }
.cv details[open] summary span::after { content: "–"; }
.cv ul { list-style: none; margin: 0; padding: 0 0 26px; columns: 2 320px; column-gap: 40px; }
.cv li { break-inside: avoid; padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .posts { grid-template-columns: minmax(0, 1fr); } }
.post-card { text-decoration: none; display: grid; gap: 12px; align-content: start; }
.post-card .img { aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; background: var(--paper-2); }
.post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover img { transform: scale(1.04); }
.post-card h3 { font-size: 1.6rem; line-height: 1.12; }
.post-card p { color: var(--ink-2); font-size: .95rem; }
.article-hero { aspect-ratio: 2 / 1; border-radius: 10px; overflow: hidden; background: var(--paper-2); margin-bottom: 40px; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

/* Forms */
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 620px) { .form .row2 { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; }
.field label { font-size: .8rem; font-weight: 600; letter-spacing: .04em; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--rose); outline-offset: 0; border-color: transparent; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 14px 16px; border-radius: 12px; font-size: .92rem; }
.form-msg.ok { background: #E3F0E8; color: #1E5A3B; }
.form-msg.err { background: #F7E2DE; color: #8A2E21; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { padding: 20px 22px; background: var(--card); border-radius: 16px; display: grid; gap: 4px; }
.contact-card b { font-family: var(--display); font-weight: 500; font-size: 1.35rem; }

/* Cart */
.cart { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: clamp(56px, 8vw, 110px); }
@media (max-width: 900px) { .cart { grid-template-columns: minmax(0, 1fr); } }
.cart-items { display: grid; }
.cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item:first-child { border-top: 1px solid var(--line); }
.cart-item .thumb { width: 96px; height: 96px; background: var(--paper-2); border-radius: 6px; padding: 8px; }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-item h3 { font-size: 1.4rem; }
.cart-item h3 a { text-decoration: none; }
.cart-item .meta { color: var(--muted); font-size: .85rem; }
.remove { background: none; border: 0; padding: 0; color: var(--muted); font-size: .82rem; text-decoration: underline; cursor: pointer; justify-self: start; }
.summary { background: var(--card); border-radius: 22px; padding: 26px; display: grid; gap: 14px; position: sticky; top: 100px; }
.summary .line { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.summary .total { padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--display); font-size: 1.6rem; font-weight: 500; }
.summary .note { font-size: .84rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-foot { background: var(--night); color: var(--night-text); padding-block: clamp(56px, 7vw, 90px) calc(env(safe-area-inset-bottom, 0px) + 32px); margin-top: clamp(56px, 8vw, 110px); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 36px; }
@media (max-width: 1080px) { .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 700px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foot-brand .sig { font-family: var(--script); font-size: 2.6rem; line-height: .9; }
.foot-brand p { color: var(--night-dim); margin-top: 14px; max-width: 34ch; font-size: .92rem; }
.site-foot h2 { font-family: var(--body); font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--night-dim); margin-bottom: 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .92rem; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-contact a { overflow-wrap: anywhere; }

/* ---------- Newsletter: the dark opening of the footer ---------- */
.newsletter { background: var(--night); color: var(--night-text); margin-top: clamp(56px, 8vw, 110px); padding-block: clamp(56px, 8vw, 100px) clamp(40px, 5vw, 64px); }
.nl-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.nl-arch { position: relative; width: min(100%, 340px); aspect-ratio: 3 / 4; justify-self: center; border-radius: 999px 999px 0 0; overflow: hidden; border: 1px solid rgba(196, 154, 78, .7); box-shadow: 0 0 0 10px var(--night), 0 0 0 11px rgba(196, 154, 78, .35); }
.nl-arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.newsletter:hover .nl-arch img { transform: scale(1); }
.nl-arch figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; background: linear-gradient(transparent, rgba(14, 16, 19, .8)); font-family: var(--display); font-style: italic; font-size: 1.05rem; }
.nl-body { display: grid; gap: 18px; max-width: 560px; }
.nl-body .sc { color: var(--blush); }
.nl-body h2 { font-family: var(--display); font-weight: 300; text-transform: uppercase; font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: .95; letter-spacing: -.01em; }
.nl-body p { color: var(--night-dim); max-width: 46ch; }
.nl-form { display: grid; gap: 12px; margin-top: 8px; }
.nl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.nl-form input { min-width: 0; height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(244, 239, 230, .3); background: rgba(244, 239, 230, .04); color: var(--night-text); font-size: .95rem; }
.nl-form input::placeholder { color: var(--night-dim); }
.nl-form input:focus { outline: 2px solid var(--blush); outline-offset: 0; border-color: transparent; }
.nl-row #nl-email { flex: 1 1 260px; }
.nl-check { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 18px; border-radius: 999px; border: 1px solid rgba(244, 239, 230, .3); font-variant-numeric: tabular-nums; }
.nl-check label { font-size: .86rem; color: var(--night-dim); white-space: nowrap; }
.nl-check label b { color: var(--night-text); font-weight: 500; }
.nl-check input { width: 64px; height: 40px; padding: 0; text-align: center; border-radius: 999px; }
.nl-form button { height: 52px; padding: 0 28px; border-radius: 999px; border: 0; background: var(--night-text); color: var(--night); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
.nl-form button:hover { background: #FFFFFF; transform: translateY(-1px); }
.nl-form button[disabled] { opacity: .6; cursor: wait; transform: none; }
.nl-note { font-size: .8rem; color: var(--night-dim); }
.newsletter .form-msg.ok { background: rgba(47, 125, 85, .2); color: #BFE6CF; }
.newsletter .form-msg.err { background: rgba(184, 64, 47, .2); color: #F4C9C1; }
@media (max-width: 820px) {
  .nl-grid { grid-template-columns: minmax(0, 1fr); }
  .nl-arch { width: min(62%, 240px); }
  .nl-check, .nl-form button { flex: 1 1 auto; }
  .nl-check { justify-content: space-between; }
}
.newsletter + .site-foot { margin-top: 0; padding-top: 0; }
.newsletter + .site-foot .foot-grid { border-top: 1px solid rgba(244, 239, 230, .14); padding-top: clamp(40px, 5vw, 64px); }
.foot-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(244, 239, 230, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--night-dim); font-size: .82rem; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); transform: translate(-50%, 16px); opacity: 0; z-index: 80; background: var(--ink); color: var(--paper); padding: 13px 20px; border-radius: 999px; font-size: .9rem; transition: opacity .3s ease, transform .3s ease; pointer-events: none; max-width: calc(100% - 32px); display: flex; gap: 12px; align-items: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--blush); font-weight: 600; }

/* ---------- Dark gallery theme (every page except the 3D home): the look of the Contact page ---------- */
/* Remapping the palette flips every component to night colours at once */
body.dark {
  --paper: #0E1013; --paper-2: #171A1F; --card: #1A1D23;
  --ink: #F4EFE6; --ink-2: #D6D0C4; --muted: #9D978B; --line: rgba(244, 239, 230, .14);
  --ok: #5FD39A; --sold: #F08A78; --rose: #E98DA0;
  background: var(--night); color: var(--night-text);
}
/* Cream islands keep the light palette: form panels, menus */
.c-panel, .drop-menu, .mobile-nav {
  --paper: #F3EEE4; --paper-2: #E9E2D5; --card: #FBF8F2;
  --ink: #1C1B18; --ink-2: #3E3B35; --muted: #6B675E; --line: rgba(28, 27, 24, .14);
  --ok: #2F7D55; --sold: #B8402F; --rose: #9E4457;
  color: var(--ink);
}
body.dark .btn-line { border-color: rgba(244, 239, 230, .35); }
body.dark .btn-line:hover { border-color: var(--ink); }
body.dark .c-panel .btn-line { border-color: rgba(28, 27, 24, .35); }
body.dark .eyebrow { color: var(--blush); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
body.dark .section-head h2, body.dark .about-collection > h2 { font-weight: 300; text-transform: uppercase; letter-spacing: -.005em; }

/* Paintings lit like a dark gallery: a soft warm spotlight on each mat */
body.dark .card .mat, body.dark .p-stage { background: radial-gradient(ellipse at 50% 28%, rgba(255, 226, 180, .13), transparent 62%), var(--paper-2); box-shadow: inset 0 0 0 1px rgba(244, 239, 230, .06); }
body.dark .card .mat img, body.dark .p-stage img { filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .6)); }
body.dark .card:hover .mat { box-shadow: inset 0 0 0 1px rgba(196, 154, 78, .5); }
body.dark .toolbar { border-color: var(--line); }
body.dark .summary { background: rgba(244, 239, 230, .05); border: 1px solid var(--line); }
body.dark .cart-item .thumb { background: var(--paper-2); }

/* Painting page: the painting itself, blurred, glows behind the page */
.p-hero { position: relative; isolation: isolate; }
.p-hero::before { content: ""; position: absolute; left: 0; right: 0; top: -80px; height: min(110vh, 1000px); z-index: -1; background: var(--bg) center / cover no-repeat; filter: blur(48px) saturate(1.25) brightness(.42); opacity: .9; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.related { padding-bottom: clamp(24px, 4vw, 48px); }

/* Framed images with the gold edge used on the arches */
.framed { margin: 0; border-radius: 6px; overflow: hidden; border: 1px solid rgba(196, 154, 78, .7); box-shadow: 0 0 0 10px var(--night), 0 0 0 11px rgba(196, 154, 78, .35), 0 30px 60px -20px rgba(0, 0, 0, .7); }
.framed img { width: 100%; display: block; }
.framed.light-mat { background: #F3EEE4; }
.split .c-arch { margin: 0 auto; }
.prose-panel { padding: clamp(24px, 4vw, 48px); }
.prose-panel .prose { color: var(--ink-2); }

/* Short hero variant and long titles */
.c-hero.short { min-height: min(60vh, 600px); padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 80px); }
.rise-title.single .line:nth-child(1) { justify-self: center; padding-left: 0; padding-right: 0; }
.post-title { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; max-width: 22ch; text-wrap: balance; text-shadow: 0 6px 40px rgba(0, 0, 0, .35); }
body.dark::before { background: var(--night); }
/* Header floats over the opening painting like the home page's top bar, then turns to dark glass on scroll */
body.dark .site-head { background: transparent; border-bottom-color: transparent; color: var(--night-text); backdrop-filter: none; -webkit-backdrop-filter: none; transition: background-color .35s ease, border-color .35s ease; }
body.dark.scrolled .site-head { background: rgba(14, 16, 19, .78); border-bottom-color: rgba(244, 239, 230, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
body.dark::before { background: transparent; }
body.dark.scrolled::before { background: var(--night); }
body.dark main > .c-hero:first-child, body.dark main > .p-hero:first-child { margin-top: calc(-1 * var(--head-h)); padding-top: calc(var(--head-h) + clamp(32px, 6vw, 80px)); }
body.dark main > .p-hero:first-child { padding-top: var(--head-h); }
body.dark .icon-btn { background: rgba(14, 16, 19, .25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
body.dark .icon-btn:hover { background: rgba(244, 239, 230, .14); }
body.dark .brand .sub, body.dark .crumbs { color: var(--night-dim); }
body.dark .nav > a:hover, body.dark .nav .drop > button:hover, body.dark .nav a[aria-current="page"] { background: rgba(244, 239, 230, .1); }
body.dark .drop-menu, body.dark .mobile-nav { color: var(--ink); }
body.dark .icon-btn { border-color: rgba(244, 239, 230, .3); color: var(--night-text); }
body.dark .mobile-nav .icon-btn { border-color: var(--line); color: var(--ink); }
body.dark .icon-btn:hover { border-color: var(--night-text); }
body.dark .count { background: var(--night-text); color: var(--night); }
body.dark .pill-3d { background: var(--night-text); color: var(--night); }
body.dark .pill-3d:hover { background: #FFFFFF; }
body.dark .newsletter { margin-top: 0; border-top: 1px solid rgba(244, 239, 230, .12); }

/* Hero: a slowly drifting, darkened painting behind a split serif title */
.c-hero { position: relative; overflow: hidden; isolation: isolate; min-height: min(78vh, 760px); display: grid; align-items: center; padding-block: clamp(56px, 9vw, 120px); }
.c-hero::before { content: ""; position: absolute; inset: -6%; z-index: -2; background: var(--bg) center / cover no-repeat; filter: blur(3px) saturate(1.1) brightness(.55); animation: drift 40s ease-in-out infinite alternate; }
.c-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 50% 45%, rgba(10, 11, 14, .2) 0%, rgba(10, 11, 14, .85) 100%), linear-gradient(transparent 70%, var(--night)); }
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -2%); } }
.c-hero-inner { display: grid; gap: clamp(14px, 2.2vh, 24px); justify-items: center; text-align: center; }
.c-kicker { font-family: var(--display); font-style: italic; font-size: clamp(1.1rem, 1.8vw, 1.5rem); }
.rise-title { font-family: var(--display); font-weight: 300; text-transform: uppercase; font-size: clamp(2.6rem, min(calc(var(--k, 17) * 1vw), 24vh), 14rem); line-height: .78; letter-spacing: -.01em; display: grid; width: min(100%, 900px); transform: scaleY(1.28); padding-block: .14em; text-shadow: 0 6px 40px rgba(0, 0, 0, .35); }
.rise-title .line { display: block; overflow: hidden; padding: .06em .02em 0; }
.rise-title .line:nth-child(1) { justify-self: start; padding-left: 8%; }
.rise-title .line:nth-child(2) { justify-self: end; padding-right: 8%; }
.rise-title .ch { display: inline-block; animation: rise 1.25s cubic-bezier(.16, .8, .14, 1) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes rise { from { transform: translateY(108%); } }
.c-lede { max-width: 52ch; color: var(--night-dim); font-size: 1.05rem; }
.c-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.c-pill { display: inline-flex; align-items: center; height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid rgba(244, 239, 230, .38); background: rgba(14, 16, 19, .35); color: var(--night-text); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-pill:hover { border-color: var(--night-text); }
.c-pill.solid { background: rgba(244, 239, 230, .94); color: var(--night); border-color: transparent; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.c-pill.solid:hover { background: #FFFFFF; }

/* Form panel and side column */
.c-main { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-block: clamp(24px, 4vw, 48px) clamp(56px, 8vw, 100px); scroll-margin-top: 90px; }
@media (max-width: 900px) { .c-main { grid-template-columns: minmax(0, 1fr); } .c-arch { width: min(64%, 240px); } }
.c-panel { background: var(--paper); color: var(--ink); border-radius: 24px; padding: clamp(24px, 4vw, 48px); display: grid; gap: 14px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); min-width: 0; }
.c-panel .c-step { color: var(--muted); }
.c-panel h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; }
.c-form { display: grid; gap: 16px; margin-top: 8px; }
.c-topics { border: 0; padding: 0; margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.c-topics legend { color: var(--muted); margin-bottom: 10px; padding: 0; }
.c-topic { position: relative; }
.c-topic input { position: absolute; opacity: 0; pointer-events: none; }
.c-topic span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: .86rem; font-weight: 500; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.c-topic span:hover { border-color: var(--ink); }
.c-topic input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.c-topic input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }
.c-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 620px) { .c-row { grid-template-columns: minmax(0, 1fr); } }
.c-field { display: grid; gap: 6px; }
.c-field label { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.c-field label span { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.c-field input, .c-field textarea { width: 100%; min-width: 0; padding: 15px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.c-field textarea { min-height: 170px; resize: vertical; }
.c-field input:focus, .c-field textarea:focus { outline: 2px solid var(--rose); outline-offset: 0; border-color: transparent; }
.c-send { justify-self: start; height: 54px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; position: relative; overflow: hidden; }
.c-send::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(242, 201, 209, .45) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 3.2s ease-in-out infinite; }
@keyframes sheen { 60%, 100% { transform: translateX(100%); } }
.c-send[disabled] { opacity: .6; cursor: wait; }
.c-side { display: grid; gap: 14px; min-width: 0; }
.c-arch { position: relative; width: min(100%, 300px); aspect-ratio: 3 / 4; justify-self: center; margin: 0 0 18px; border-radius: 999px 999px 0 0; overflow: hidden; border: 1px solid rgba(196, 154, 78, .7); box-shadow: 0 0 0 10px var(--night), 0 0 0 11px rgba(196, 154, 78, .35); }
.c-arch img { width: 100%; height: 100%; object-fit: cover; }
.c-arch figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; background: linear-gradient(transparent, rgba(14, 16, 19, .8)); font-family: var(--display); font-style: italic; font-size: 1.05rem; }
.c-glass { display: grid; gap: 6px; padding: 20px 22px; border-radius: 20px; border: 1px solid rgba(244, 239, 230, .14); background: rgba(244, 239, 230, .05); }
.c-glass .sc { color: var(--blush); }
.c-glass b { font-family: var(--display); font-weight: 500; font-size: 1.45rem; line-height: 1.15; }
.c-glass p { color: var(--night-dim); font-size: .92rem; }
.c-glass > a { font-family: var(--display); font-size: 1.4rem; text-decoration: none; overflow-wrap: anywhere; }
.c-glass > a:hover { text-decoration: underline; text-decoration-color: var(--blush); text-underline-offset: 4px; }
.c-copy, .c-glass > .c-link { justify-self: start; font-family: var(--body); background: none; border: 0; padding: 0; color: var(--night-dim); font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.c-copy:hover, .c-glass > .c-link:hover { color: var(--night-text); text-decoration-color: currentColor; }
.c-panel .form-msg.ok { background: #E3F0E8; color: #1E5A3B; }
.c-panel .form-msg.err { background: #F7E2DE; color: #8A2E21; }
.order-done { max-width: 760px; margin: 0 auto 40px; }
.order-done:focus { outline: none; }
.order-done .order-no { font-family: var(--display); font-size: 1.35em; font-weight: 500; letter-spacing: .02em; font-variant-numeric: lining-nums; }
.order-done .cart-item { grid-template-columns: 72px minmax(0, 1fr) auto; }
.order-done .cart-item .thumb { width: 72px; height: 72px; }
.order-done .order-total { display: flex; justify-content: space-between; gap: 16px; font-family: var(--display); font-size: 1.5rem; font-variant-numeric: lining-nums tabular-nums; }

/* Recognition logos (same tiles and animation as the 3D home) */
.c-logos { display: grid; justify-items: center; gap: 12px; padding-bottom: clamp(56px, 8vw, 96px); }
.c-logos > .sc { color: var(--night-dim); }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(8px, 1.4vw, 16px); perspective: 700px; }
.logo-tile { width: clamp(72px, 9vw, 118px); aspect-ratio: 3 / 2; padding: 8px 10px; border: 0; border-radius: 14px; cursor: pointer; background: #FFFFFF; display: grid; place-items: center; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55); transform-style: preserve-3d; position: relative; overflow: hidden; transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; animation: tile-float 5s ease-in-out infinite; animation-delay: calc(var(--n) * -1.2s); }
.logo-tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; pointer-events: none; }
.logo-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(242, 201, 209, .75) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
.logo-tile:hover { animation: none; transform: translateY(-4px) scale(1.05); }
.logo-tile.spin { animation: tile-spin 1s cubic-bezier(.3, .7, .2, 1) both; }
.logo-tile.spin::after { animation: tile-glint .9s .25s ease both; }
@keyframes tile-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes tile-spin { 0% { transform: translateY(0) rotateY(0) scale(1); } 30% { transform: translateY(-22px) rotateY(180deg) scale(1.18); } 60% { transform: translateY(0) rotateY(340deg) scale(.94); } 80% { transform: translateY(-6px) rotateY(360deg) scale(1.04); } 100% { transform: translateY(0) rotateY(360deg) scale(1); } }
@keyframes tile-glint { to { transform: translateX(120%); } }
.logo-name { min-height: 1.4em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
