/* ==========================================================================
   CHARCOAL GOLF — Design System
   Modern editorial · museum-quality fine-art golf prints by Mark Rivard
   Palette: ink charcoal + warm gallery paper + antique brass
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Ink + charcoal */
  --ink: #0c0a09;
  --charcoal: #16130f;           /* hero black — the two mid-page dark breaks match it exactly */
  --charcoal-2: #221d18;
  --charcoal-3: #2e2822;

  /* Warm paper / gallery */
  --paper: #f7f4ef;
  --paper-deep: #efeae1;         /* deeper paper: alternates against --paper for section rhythm */
  --paper-2: #efe9df;
  --paper-3: #e6ddcf;

  /* Section seams */

  /* Neutrals / text */
  --stone-700: #443d35;
  --stone-600: #5f574c;
  --stone-500: #6d6459;
  --line: #e2d9ca;
  --line-dark: rgba(247, 243, 236, 0.14);

  /* Antique brass accent */
  --brass: #a87c4a;
  --brass-soft: #bf9a63;
  --brass-text: #8a6132;   /* brass darkened for small text on paper: 4.5:1+ on both papers */
  --brass-tint: rgba(168, 124, 74, 0.12);

  /* Surfaces */
  --surface: #ffffff;

  /* Type */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 480ms;

  /* z-scale */
  --z-nav: 50;
  --z-overlay: 80;
  --z-lightbox: 90;
  --z-cart: 95;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* anchor jumps land clear of the fixed nav */
[id] { scroll-margin-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--stone-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

::selection { background: var(--brass); color: var(--paper); }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.display {
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
.h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-text);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}
.eyebrow.center::after {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

.lede {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.6;
  color: var(--stone-600);
  font-weight: 300;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; }
.section-pad { padding-block: clamp(4.5rem, 11vw, 9rem); }

.dark-section { background: var(--charcoal); color: var(--paper-2); }
.dark-section h1, .dark-section h2, .dark-section h3, .dark-section h4 { color: var(--paper); }
.dark-section .lede { color: rgba(247, 243, 236, 0.72); }
.dark-section .eyebrow { color: var(--brass); }

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

/* Surface utilities — home background rhythm: no two neighbors share a bg */
.bg-paper { background: var(--paper); }
.bg-paper-deep { background: var(--paper-deep); }
/* primary button on dark grounds: ink-on-charcoal would vanish — invert */
.dark-section .btn-primary { background: var(--paper); color: var(--ink); }
.dark-section .btn-primary:hover { background: var(--brass); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform 200ms var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--brass); color: var(--ink); }

.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-soft); }

.btn-ghost { border: 1px solid currentColor; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dark-section .btn-ghost,
.hero .btn-ghost { color: var(--paper); }
.dark-section .btn-ghost:hover,
.hero .btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

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

/* subtle inline link inside body copy: hairline brass underline, no shouting */
.body-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--brass);
  transition: color 200ms var(--ease);
}
.body-link:hover { color: var(--brass); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.text-link:hover { border-color: var(--brass); color: var(--brass); }
.dark-section .text-link { color: var(--paper); border-color: var(--line-dark); }
.dark-section .text-link:hover { color: var(--brass-soft); border-color: var(--brass-soft); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--gutter);
  transition: padding var(--dur) var(--ease), background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding-block: 0.85rem;
  background: rgba(247, 243, 236, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
/* On dark hero, nav text is light until scrolled */
.nav[data-theme="light"]:not(.scrolled) { color: var(--paper); }
.nav[data-theme="light"]:not(.scrolled) .brand-mark { color: var(--paper); }

/* Brand = the CHARCOAL wordmark logo. The source is black-on-white, so we use
   blend modes: multiply drops the white box on light surfaces (black logo);
   on dark surfaces (hero nav + footer) we invert to a white logo via screen. */
.brand {
  display: block;
  flex: none;
  width: 176px;
  height: 32px;
  background: url('../assets/charcoal-logo.png') left center / contain no-repeat;
}
.brand > * {  /* keep text/SVG for screen readers, hide visually */
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* White logo on dark surfaces (hero nav before scroll + footer) */
.nav[data-theme="light"]:not(.scrolled) .brand,
.footer .brand { filter: invert(1) brightness(1.6); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding-block: 0.4rem;
  transition: color 200ms var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links a:hover { color: var(--brass); }
.nav-links .btn { padding: 0.7rem 1.3rem; }

.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--charcoal);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 500;
  padding-block: 0.5rem;
  color: var(--paper);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease), color 200ms var(--ease);
}
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu a:hover { color: var(--brass-soft); }
/* Shop Prints stands apart from the page links: brass button, not a menu item */
.mobile-menu .mm-shop {
  margin-top: 2.2rem;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 1.9rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  background: var(--brass);
  color: var(--ink);
}
.mobile-menu .mm-shop:hover { background: var(--brass-soft); color: var(--ink); }
.mobile-menu .mm-close { position: absolute; top: 1.4rem; right: var(--gutter); width: 44px; height: 44px; color: var(--paper); }
.mobile-menu .mm-close svg { width: 26px; height: 26px; }
.mobile-menu .mm-foot { position: absolute; bottom: 2rem; font-size: 0.8rem; letter-spacing: 0.08em; color: rgba(247,243,236,0.5); text-transform: uppercase; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background: var(--charcoal);
  color: var(--paper);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* Replace with hero photo: assets/hero.jpg */
  background-image: var(--hero-image, none);
}
/* Hero artwork layer: piece fits fully within the right panel with breathing
   room — never flush to an edge, so titles/signature at the margins don't clip */
.hero-art {
  background-image:
    linear-gradient(100deg, rgba(12,10,9,0.92) 0%, rgba(12,10,9,0.6) 38%, rgba(12,10,9,0.12) 70%, rgba(12,10,9,0.04) 100%),
    url("../assets/te-arai.jpg");
  background-size: cover, auto 84%;
  /* art layer: top edge clears the nav; horizontally centered in the zone
     between the hero text column's right edge (gutter + 39.4rem, --maxw
     centered) and the hero's right edge — art is 63.2svh wide at 84% height */
  background-position: center, right clamp(1.5rem, 5vw, 5rem) top 6.5rem;
  background-position: center, right max(1.5rem, calc((100vw - 63.2svh - var(--gutter) - 39.4rem - max(0px, (100vw - var(--maxw)) / 2)) / 2)) top 6.5rem;
  background-repeat: no-repeat;
}
@media (max-width: 700px) {
  .hero-art { background-size: cover, 88% auto; background-position: center, right 1rem center; }
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,10,9,0.4) 0%, rgba(12,10,9,0.08) 28%, rgba(12,10,9,0.08) 55%, rgba(12,10,9,0.72) 100%);
}
.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3rem, 8vw, 6rem);
}
.hero .eyebrow { color: var(--brass-soft); margin-bottom: 1.5rem; }
.hero .eyebrow::before { background: var(--brass-soft); }
.hero h1 { color: var(--paper); max-width: 14ch; }
.hero .lede { color: rgba(247,243,236,0.82); max-width: 48ch; margin-top: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

/* ==========================================================================
   ART FRAME / PLACEHOLDER (swap background-image for real print photos)
   ========================================================================== */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);            /* warm mat behind the artwork */
  aspect-ratio: 3 / 4;                   /* matches the 18×24 scans */
  border-radius: var(--radius);
}
.frame img {
  width: 100%; height: 100%;
  object-fit: contain;                   /* show the WHOLE piece, never crop */
  transition: transform 900ms var(--ease);
}
.frame .art {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}
/* CSS placeholder art — charcoal gradient + paper grain. Remove when real <img> is added. */
.art {
  display: block;
  background:
    radial-gradient(120% 90% at 70% 15%, rgba(191,154,99,0.12), transparent 55%),
    linear-gradient(165deg, #2b251f 0%, #1b1714 55%, #0f0c0a 100%);
}
.art .horizon {
  position: absolute; left: 0; right: 0; bottom: 26%;
  height: 1px; background: rgba(247,243,236,0.16);
}
.art .hill {
  position: absolute; left: -10%; right: -10%; bottom: 18%;
  height: 42%;
  background: radial-gradient(120% 140% at 40% 100%, rgba(247,243,236,0.10), transparent 60%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.art .flag { position: absolute; left: 22%; bottom: 30%; width: 1px; height: 22%; background: rgba(247,243,236,0.5); }
.art .flag::after { content:""; position:absolute; top:0; left:1px; width: 16px; height: 11px; background: var(--brass); clip-path: polygon(0 0, 100% 22%, 0 50%); }
.art .grain { position:absolute; inset:0; opacity:0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"); }
.art .label { position:absolute; left:0; right:0; bottom:1.4rem; text-align:center; font-family:var(--font-display); font-style:italic; font-size:1.05rem; color: rgba(247,243,236,0.65); }

.frame-hover { cursor: pointer; }
/* hover-capable devices only: on touch, sticky :hover from a swipe would zoom
   the artwork and crop its painted frame edge under the overflow:hidden */
@media (hover: hover) {
  .frame-hover:hover img, .frame-hover:hover .art { transform: scale(1.03); }
}

.frame-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 40%, rgba(12,10,9,0.78) 100%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.frame-hover:focus-within .frame-overlay { opacity: 1; }
@media (hover: hover) {
  .frame-hover:hover .frame-overlay { opacity: 1; }
}
.frame-overlay .ov-view {
  align-self: flex-end;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(247,243,236,0.5);
  display: flex; align-items: center; justify-content: center;
  color: var(--paper);
  transform: translateY(10px);
  transition: transform var(--dur) var(--ease), background 200ms var(--ease);
}
.frame-hover:hover .ov-view { transform: none; }
.frame-overlay .ov-view:hover { background: var(--brass); color: var(--ink); border-color: var(--brass); }

/* ==========================================================================
   GALLERY GRID
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.75rem, 2.5vw, 2.25rem);   /* 28 to 36px gutters */
}
.gallery .item { grid-column: span 4; }          /* collection: 3 across */
.gallery.featured .item { grid-column: span 3; }  /* home featured: 4 across, uniform */
/* extra prints once used by the retired ≤560px mobile strip; kept out of the grid */
.gallery.featured .item--strip-only { display: none; }
/* featured card anatomy: image, title, note, rule, price. Stacked, so the
   price holds its own row no matter how short the title runs. */
.gallery.featured .art-meta { display: block; }
.gallery.featured .art-meta .t { display: block; }
.gallery.featured .frame img { object-fit: cover; }   /* identical boxes edge to edge */
.gallery.featured .frame { box-shadow: 0 8px 20px -14px rgba(12, 10, 9, 0.28); }
.gallery.featured .frame-overlay { display: none; }
.gallery.featured .art-note {
  margin-top: 0.4rem;
  font-family: var(--font-display); font-style: italic;
  font-size: 0.98rem; line-height: 1.45;
  color: rgba(22, 19, 15, 0.62);
}
.gallery.featured .art-rule {
  display: block; width: 2rem; height: 1px;
  background: var(--brass); opacity: 0.7;
  margin: 0.85rem 0 0.7rem;
}
@media (hover: hover) {
  .gallery.featured .item { transition: transform 250ms ease-out; }
  .gallery.featured .item:hover { transform: translateY(-3px); }
  .gallery.featured .frame { transition: box-shadow 250ms ease-out; }
  .gallery.featured .item:hover .frame { box-shadow: 0 16px 32px -14px rgba(12, 10, 9, 0.4); }
  .gallery.featured .frame-hover:hover img { transform: none; }   /* lift only, no zoom */
}

.art-meta { padding-top: 1rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 1rem; }
/* featured grid (desktop): titles reserve two lines so one- and two-line
   titles bottom out level across the row; mobile strip keeps natural height */
@media (min-width: 561px) {
  .gallery.featured .art-meta .t { min-height: 2lh; }
  .gallery.featured .art-note { min-height: 2lh; }
}
.art-meta .t { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.art-meta .loc { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-500); }
.art-meta .price { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-500); white-space: nowrap; }

/* collection header — shown when a named collection is opened */
.collection-head { display: flex; align-items: center; gap: 1.6rem; margin-bottom: 3rem; padding-bottom: 2.2rem; border-bottom: 1px solid var(--line); }
.collection-head[hidden] { display: none; }
.collection-head img { width: 84px; height: 84px; object-fit: contain; flex-shrink: 0; }
.collection-head .ch-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.15; color: var(--ink); }
.collection-head .ch-club { margin-top: 0.4rem; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-500); }

/* filter bar */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 3rem; }
.filters button {
  padding: 0.5rem 1.1rem; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 100px; color: var(--stone-600);
  transition: all 200ms var(--ease);
}
.filters button:hover { border-color: var(--brass); color: var(--brass); }
.filters button.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Full-bleed gallery-wall banner on the Art page */
.collection-banner {
  width: 100vw; max-width: 100vw;
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  margin-top: clamp(1rem, 3vw, 2.5rem); margin-bottom: clamp(3rem, 7vw, 5.5rem);
  background: var(--paper-2);
}
.collection-banner img { display: block; width: 100%; height: auto; }
/* print story lines: a quiet static caption on every tile, between the
   title/course block and the price. Wraps to two lines; every card reserves
   the same two-line height so rows stay aligned. Clamp only past two lines. */
.art-meta > div { min-width: 0; }
.story-m {
  flex: 1 1 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-top: 0.35rem;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.8125rem;
  color: rgba(22, 19, 15, 0.65);
  line-height: 1.5;
  min-height: 3em;
  overflow: hidden;
}

/* editorial feature rows: every 4th piece, full width, in the flat All Works
   view only. The same articles render as standard tiles everywhere else.
   Column 2 stacks the caption over the piece's own live price row. */
.feature-caption { display: none; }
.gallery--flat-all .item--feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 1fr auto auto 1fr;
  column-gap: clamp(1.75rem, 4vw, 4rem);
  margin-block: clamp(1.5rem, 3vw, 2.5rem);
}
.gallery--flat-all .item--feature .frame { grid-column: 1; grid-row: 1 / -1; }
.gallery--flat-all .item--feature .feature-caption { display: block; grid-column: 2; grid-row: 2; }
.gallery--flat-all .item--feature .art-meta { grid-column: 2; grid-row: 3; display: flex; align-items: baseline; gap: 1.4rem; padding-top: 1.2rem; }
.gallery--flat-all .item--feature .art-meta > div { display: none; }
.gallery--flat-all .item--feature .price { font-size: 0.85rem; }
.gallery--flat-all .item--feature-right { grid-template-columns: 2fr 3fr; }
.gallery--flat-all .item--feature-right .frame { grid-column: 2; }
.gallery--flat-all .item--feature-right .feature-caption,
.gallery--flat-all .item--feature-right .art-meta { grid-column: 1; }
.fc-title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; color: var(--ink); }
.fc-course { margin-top: 0.5rem; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-500); }
.fc-story { margin-top: 1rem; font-family: var(--font-display); font-style: italic; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--stone-600); }
.fc-link { display: none; }
.gallery--flat-all .item--feature .fc-link { display: inline-block; border-bottom-color: var(--brass); }
@media (max-width: 860px) {
  /* tablet: features stay full width, stacked image over caption */
  .gallery--flat-all .item.item--feature { grid-column: 1 / -1; }
  .gallery--flat-all .item--feature { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 1.2rem; }
  .gallery--flat-all .item--feature .frame,
  .gallery--flat-all .item--feature-right .frame { grid-column: 1; grid-row: auto; }
  .gallery--flat-all .item--feature .feature-caption,
  .gallery--flat-all .item--feature .art-meta,
  .gallery--flat-all .item--feature-right .feature-caption,
  .gallery--flat-all .item--feature-right .art-meta { grid-column: 1; grid-row: auto; }
  .gallery--flat-all .item--feature .art-meta { padding-top: 0; }
}
@media (max-width: 560px) {
  /* mobile: features render exactly like standard tiles */
  .gallery--flat-all .item--feature { display: block; margin-block: 0; }
  .gallery--flat-all .item--feature .feature-caption { display: none; }
  .gallery--flat-all .item--feature .fc-link { display: none; }
  .gallery--flat-all .item--feature .art-meta { display: flex; flex-wrap: wrap; padding-top: 1rem; }
  .gallery--flat-all .item--feature .art-meta > div { display: block; }
  .gallery--flat-all .item--feature .art-meta .story-m { display: -webkit-box; }
  .gallery--flat-all .item--feature .price { font-size: 0.78rem; }
}

/* all-collections view (#collections): stacked collection groups */
.collection-group + .collection-group { margin-top: clamp(4rem, 8vw, 6rem); }
/* club headers link to their own collection inside the grouped view;
   hover matches the card-title treatment (title warms to brass) */
.collection-head-link { display: block; color: inherit; }
.collection-head-link .ch-title { transition: color 200ms; }
.collection-head-link:hover .ch-title,
.collection-head-link:focus-visible .ch-title { color: var(--brass); }
/* featured collection (home) — one centered, stacked copy block, gallery wall wide below */
.coll-feature { }
.cf-head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 560px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}
.cf-wall { display: block; }
.cf-wall img { display: block; width: 100%; height: auto; background: var(--paper-2); transition: opacity 200ms var(--ease); }
.cf-wall:hover img,
.cf-wall:focus-visible img { opacity: 0.94; }

/* teeing up — upcoming clubs, a quiet centered pair */
.teeup { text-align: center; }
.teeup-line { margin-top: 1rem; font-family: var(--font-display); font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.2; color: var(--ink); }
.teeup-logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(2.5rem, 8vw, 6.5rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.teeup-logo { width: auto; display: block; }
/* optically balanced, not height-matched: the thin-line Tennessee mark needs
   more physical size to carry the same visual weight as the dense Streamsong lockup */
.teeup-logo--streamsong { height: clamp(76px, 8.5vw, 104px); }
.teeup-logo--gct { height: clamp(94px, 10.5vw, 130px); }
/* club logo: original club colors (identity — never recolor) */
.cr-logo { display: block; height: 68px; width: auto; max-width: 190px; object-fit: contain; margin-bottom: 1.4rem; }
.cr-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; color: var(--ink); }
.cr-club { margin-top: 0.5rem; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-500); }

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 2.5vw, 2.2rem); max-width: 800px; margin: 0 auto; }
@media (max-width: 560px) { .duo { grid-template-columns: 1fr; } }

/* Process filmstrip — one hole, sketch → finished */
.process { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.7rem; align-items: start; }
.process figure { margin: 0; }
.process img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: block; }
.process figcaption { text-align: center; margin-top: 0.55rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; color: var(--brass-text); }
@media (max-width: 900px) {
  .process { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.7rem;
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 0.5rem; -webkit-overflow-scrolling: touch; }
  .process figure { flex: 0 0 36%; scroll-snap-align: start; }
}
@media (max-width: 560px) { .process figure { flex: 0 0 60%; } }
.section-head .eyebrow { margin-bottom: 1.2rem; }
.section-head h2 { margin-bottom: 1.2rem; }

.split-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.split-head .section-head { margin-bottom: 0; }

/* ==========================================================================
   STORY / SPLIT
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media .frame { aspect-ratio: 4 / 5; }
/* Artist photo: fill its frame (no mat), use the photo's natural landscape shape */
.split-media .artist-frame { aspect-ratio: auto; background: transparent; }
.split-media .artist-frame img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
/* Portrait piece: reshape the frame to the artwork's own proportions, full
   piece visible (never cropped), even mat margin on all sides via padding. */
.split-media .artist-frame--portrait {
  aspect-ratio: 0.72;
  background: var(--paper-2);
  padding: clamp(1rem, 3vw, 2rem);
}
.split-media .artist-frame--portrait img {
  width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain;
}
/* Give the now-narrower portrait column less width so the text column
   doesn't feel lopsided next to it. (The existing 860px breakpoint already
   collapses .split to one column on mobile — no override needed here.) */
.split--portrait-media { grid-template-columns: 0.8fr 1.2fr; }

/* Photograph in a portrait frame: crop to fill, no mat (unlike artwork, photos may crop) */
.photo-frame img { object-fit: cover; }
/* clubs & courses: photo overhangs the text column by an equal 3rem above the
   eyebrow and below the CTA. Top inset is 0.625rem shy of the bottom's to
   absorb the line-box leading above the inline-flex eyebrow. */
.split-media--fill { align-self: stretch; position: relative; }
.split-media--fill .frame { position: absolute; inset: -2.375rem 0 -3rem; aspect-ratio: auto; }
@media (max-width: 860px) {
  /* single-column: no row height to fill — back in flow at the standard ratio */
  .split-media--fill .frame { position: static; aspect-ratio: 4 / 5; }
}

/* retail-led offerings (home clubs & courses split) — Retail is the hero */
.offer { margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.offer h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.offer p { font-size: 0.94rem; color: var(--stone-600); }
.offer-lead { margin-top: 1.6rem; }
.offer-lead h3 { font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.2; margin-bottom: 0.5rem; color: var(--ink); }
.offer-lead p { font-size: 1.02rem; color: var(--stone-700); }
/* the program loop: original first, prints follow */
.offer-loop { margin-top: 1rem; display: grid; gap: 1rem; counter-reset: loop; list-style: none; padding-left: 0; }
.offer-loop li { position: relative; padding-left: 2.1rem; font-size: 0.97rem; color: var(--stone-600); counter-increment: loop; }
.offer-loop li::before { content: "0" counter(loop); position: absolute; left: 0; top: 0.05em; font-family: var(--font-display); font-size: 0.95rem; color: var(--brass-text); }
.offer-loop li b { color: var(--ink); font-weight: 600; }
.offer-rest .rest-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone-500); margin-bottom: 0.35rem; }
/* dark-ground variant (home: Clubhouse Program sits on the hero charcoal) */
.dark-section .offer { border-top-color: var(--line-dark); }
.dark-section .offer-lead h3,
.dark-section .offer-loop li b { color: var(--paper); }
.dark-section .offer p,
.dark-section .offer-loop li { color: rgba(247, 243, 236, 0.72); }
.dark-section .offer-lead p { color: rgba(247, 243, 236, 0.78); }
.dark-section .offer-rest .rest-label { color: rgba(247, 243, 236, 0.55); }
.split-copy h2 { margin-bottom: 1.5rem; }
.split-copy p + p { margin-top: 1.2rem; }
.signature { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--ink); margin-top: 2rem; }
.signature small { display:block; font-family:var(--font-body); font-style: normal; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone-500); margin-top: 0.4rem; }

/* ==========================================================================
   STATS / CREDIBILITY
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat { border-top: 1px solid var(--line-dark); padding-top: 1.4rem; }
.dark-section .stat { border-color: var(--line-dark); }
.stat .num { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: var(--paper); }
.stat .num .unit { color: var(--brass-soft); }
.stat .lbl { margin-top: 0.7rem; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(247,243,236,0.6); }
/* light-ground variant (home: Museum Quality sits on paper-deep) */
.bg-paper-deep .stat { border-color: var(--line); }
.bg-paper-deep .stat .num { color: var(--ink); }
.bg-paper-deep .stat .num .unit { color: var(--brass); }
.bg-paper-deep .stat .lbl { color: var(--stone-600); }

/* logos / club marquee */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(2rem, 5vw, 4.5rem); }
.logos .logo {
  font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.04em;
  color: var(--stone-500); opacity: 0.8; transition: opacity 200ms, color 200ms;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.logos .logo svg { width: 26px; height: 26px; color: var(--brass); opacity: 0.85; }
.logos .logo:hover { opacity: 1; color: var(--stone-700); }

/* ==========================================================================
   PROCESS / STEPS (partnerships)
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); counter-reset: step; }
.step { position: relative; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.step .n { font-family: var(--font-display); font-size: 1rem; color: var(--brass-text); position: absolute; top: 1rem; left: 0; }
.step h3 { font-size: 1.3rem; margin-bottom: 0.7rem; }

/* story: the team — clearly secondary to the artist block above it
   (narrower container, smaller photo, tighter type) */
.team-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  max-width: 940px;
}
.team-block .team-photo { aspect-ratio: 3 / 2; }
.team-block .team-photo img { object-fit: cover; }
.team-member { margin-top: 1.4rem; }
.team-member h3 { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; color: var(--ink); }
.team-role { margin-top: 0.3rem; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-500); }
@media (max-width: 860px) {
  .team-block { grid-template-columns: 1fr; max-width: 460px; }
}

/* partnerships: two-tier ways-to-partner — flagship pair, then a lighter menu */
.partner-lead { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
/* four offerings sit as a balanced 2×2, not three-and-an-orphan */
.partner-more { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.2rem) clamp(2rem, 4vw, 3rem); }
@media (max-width: 860px) {
  .partner-lead, .partner-more { grid-template-columns: 1fr; }
}

/* offering cards */

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
/* press-logo strip: centered row of outlet links, quiet until hovered */
.press-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.8rem, 5vw, 4rem); }
.press-row a { display: block; opacity: 0.75; transition: opacity 200ms var(--ease); }
.press-row a:hover,
.press-row a:focus-visible { opacity: 1; }
.press-row img { display: block; height: 56px; width: auto; object-fit: contain; border-radius: var(--radius); }
@media (max-width: 560px) {
  .press-row { gap: 1.4rem; }
  .press-row img { height: 46px; }
}

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 18ch; margin: 0 auto 1.4rem; }
.cta-band .lede { max-width: 52ch; margin: 0 auto 2.4rem; }
.cta-band .hero-actions { justify-content: center; }

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-600); }
.field label .req { color: var(--brass-text); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 0.85rem 1rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px var(--brass-tint);
}
.field .err { font-size: 0.8rem; color: #b4451f; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c2562c; }
.field.invalid .err { display: block; }
.form-note { font-size: 0.85rem; color: var(--stone-500); }
.form-success {
  display: none; text-align: center; padding: 3rem 1rem;
}
.form-success.show { display: block; }
.form-success .check { width: 64px; height: 64px; margin: 0 auto 1.4rem; color: var(--brass); }

/* contact aside */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 5rem); }
.contact-aside .line-item { padding: 1.3rem 0; border-top: 1px solid var(--line); }
.contact-aside .line-item:first-of-type { border-top: none; }
.contact-aside .line-item .k { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-text); margin-bottom: 0.4rem; }
.contact-aside .line-item .v { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--charcoal); color: rgba(247,243,236,0.7); padding-block: clamp(4rem, 7.5vw, 6rem) 2.5rem; }
.footer a { transition: color 200ms; }
.footer a:hover { color: var(--brass-soft); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
/* footer brand carries the tagline lockup (1800x395), taller than the nav
   wordmark; same dark-on-transparent asset whitened by the invert above */
.footer .brand {
  color: var(--paper); margin-bottom: 1.2rem;
  width: 220px; height: 48px;
  background-image: url('../assets/charcoal-logo-tagline.png');
}
.footer-col h3 { color: var(--paper); font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1.2rem; font-weight: 600; }
.footer-col li { margin-bottom: 0.7rem; font-size: 0.95rem; }
.footer-blurb { font-size: 0.98rem; max-width: 34ch; }
.footer-sub { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-sub input { flex: 1; padding: 0.75rem 0.9rem; background: var(--charcoal-2); border: 1px solid var(--line-dark); border-radius: var(--radius); color: var(--paper); font-size: 0.95rem; }
.footer-sub input:focus { outline: none; border-color: var(--brass); }
.footer-sub button { padding: 0.75rem 1.1rem; background: var(--brass); color: var(--ink); border-radius: var(--radius); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; transition: background 200ms; }
.footer-sub button:hover { background: var(--brass-soft); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2rem; font-size: 0.82rem; color: rgba(247,243,236,0.5); }
.footer-bottom .social { display: flex; gap: 1.2rem; }
.footer-bottom .social a { width: 22px; height: 22px; }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox);
  background: rgba(12,10,9,0.94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-stage { max-width: 720px; width: 100%; transform: scale(0.96); transition: transform var(--dur) var(--ease); }
.lightbox.open .lightbox-stage { transform: none; }
.lightbox .frame { aspect-ratio: 3/4; max-height: 64vh; background: transparent; box-shadow: none; margin-inline: auto; }
.lightbox .lb-thumbs { display: flex; gap: 0.55rem; justify-content: center; flex-wrap: wrap; margin-top: 1.1rem; }
.lightbox .lb-thumbs[hidden] { display: none; }
.lightbox .lb-thumbs button {
  width: 58px; height: 74px; flex: 0 0 auto; padding: 0;
  background-color: rgba(247,243,236,0.06); background-size: cover; background-position: center; background-repeat: no-repeat;
  border: 1px solid rgba(247,243,236,0.22); cursor: pointer;
  opacity: 0.5; transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.lightbox .lb-thumbs button:hover { opacity: 0.85; }
.lightbox .lb-thumbs button.active { opacity: 1; border-color: var(--brass); }
.lightbox .lb-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.2rem; color: var(--paper); flex-wrap: wrap; }
.lightbox .lb-meta .t { font-family: var(--font-display); font-size: 1.5rem; }
.lightbox .lb-meta .loc { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(247,243,236,0.6); }
.lightbox .lb-close { position: absolute; top: 1.4rem; right: 1.4rem; width: 48px; height: 48px; color: var(--paper); display:flex; align-items:center; justify-content:center; }
.lightbox .lb-close svg { width: 28px; height: 28px; }

/* ==========================================================================
   COMMERCE — cart button, cart drawer, size picker (our design; Shopify only
   at checkout). Injected by js/shopify.js.
   ========================================================================== */
.cart-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  color: currentColor;
  transition: color var(--dur) var(--ease);
}
.cart-btn:hover { color: var(--brass); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 3px; right: 1px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 100px;
  background: var(--brass); color: var(--ink);
  font-family: var(--font-body); font-size: 0.66rem; font-weight: 700; line-height: 17px;
  text-align: center;
}
.cart-btn--mobile { display: none; }

/* Shared backdrop for drawer + picker */
.cg-overlay {
  position: fixed; inset: 0; z-index: calc(var(--z-cart) - 1);
  background: rgba(12, 10, 9, 0.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.cg-overlay.open { opacity: 1; visibility: visible; }

.cg-close {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--stone-600);
  transition: color var(--dur) var(--ease);
}
.cg-close:hover { color: var(--ink); }
.cg-close svg { width: 22px; height: 22px; }

.cg-note {
  font-size: 0.88rem; line-height: 1.5; color: var(--brass-text);
}
.cg-foot-note { font-size: 0.78rem; color: var(--stone-500); line-height: 1.5; }

/* ---- Cart drawer ---- */
.cg-cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-cart);
  width: min(440px, 100vw);
  display: flex; flex-direction: column;
  background: var(--paper);
  box-shadow: -30px 0 60px -30px rgba(12, 10, 9, 0.4);
  transform: translateX(103%);
  transition: transform var(--dur) var(--ease);
}
.cg-cart.open { transform: none; }
.cg-cart.busy { pointer-events: none; opacity: 0.7; }
.cg-cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.6rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.cg-cart-head h2 { font-size: 1.6rem; }
.cg-cart > .cg-note { padding: 0.9rem 1.6rem 0; }
.cg-cart-lines { flex: 1; overflow-y: auto; padding: 0 1.6rem; }
.cg-line {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem;
  align-items: start;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.cg-line img {
  width: 64px; height: 82px; object-fit: contain;
  background: var(--paper-2);
}
.cg-line-title { font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); line-height: 1.3; }
.cg-line-size { font-size: 0.8rem; color: var(--stone-500); margin-top: 0.25rem; }
.cg-line-total { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.cg-line-controls { display: flex; align-items: center; gap: 1rem; margin-top: 0.7rem; }
.cg-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.cg-qty button {
  width: 30px; height: 30px; font-size: 1rem; color: var(--stone-600);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.cg-qty button:hover { background: var(--paper-2); color: var(--ink); }
.cg-qty b { min-width: 26px; text-align: center; font-size: 0.85rem; }
.cg-line-remove {
  font-size: 0.75rem; letter-spacing: 0.04em; color: var(--stone-500);
  text-decoration: underline; text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}
.cg-line-remove:hover { color: var(--ink); }
.cg-empty { padding: 3.5rem 0; text-align: center; }
.cg-empty p { color: var(--stone-600); margin-bottom: 1.6rem; }
.cg-cart-foot {
  padding: 1.3rem 1.6rem calc(1.4rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.cg-subtotal {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 1.1rem;
}
.cg-subtotal span { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone-600); }
.cg-subtotal b { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); }
.cg-checkout { width: 100%; justify-content: center; margin-bottom: 0.8rem; }

/* ---- Size picker ---- */
.cg-picker {
  position: fixed; inset: 0; z-index: var(--z-cart);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.cg-picker.open { opacity: 1; visibility: visible; }
.cg-picker-card {
  position: relative;
  width: min(960px, 100%);
  max-height: 90vh; overflow-y: auto;
  /* artwork column dominates — the picker doubles as the large view of the piece */
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(270px, 1fr); gap: 1.8rem;
  background: var(--paper);
  padding: 2rem;
  box-shadow: 0 40px 80px -30px rgba(12, 10, 9, 0.5);
}
.cg-picker-card .cg-close { position: absolute; top: 0.6rem; right: 0.6rem; }
.cg-zoom { display: block; width: 100%; padding: 0; cursor: zoom-in; }
.cg-picker-media img {
  display: block;
  width: 100%; aspect-ratio: 3 / 4; object-fit: contain;
  /* image + thumb row must fit the 90vh card without scrolling */
  max-height: calc(90vh - 11rem);
  background: var(--paper-2);
}
/* closeup gallery: thumbnails swap the large image */
.cg-thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.cg-thumb {
  width: 56px; height: 56px; padding: 0; flex: none;
  background-size: cover; background-position: center; background-color: var(--paper-2);
  border: 1px solid var(--line); opacity: 0.75;
  transition: opacity 200ms var(--ease), border-color 200ms var(--ease);
}
.cg-thumb:hover { opacity: 1; }
.cg-thumb[aria-pressed="true"] { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass); opacity: 1; }

/* click/tap-to-zoom: artwork fills the viewport for close inspection */
.cg-picker.cg-zoomed .cg-picker-media {
  position: fixed; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem;
  background: rgba(12, 10, 9, 0.94);
  padding: clamp(1rem, 4vmin, 3rem);
}
.cg-picker.cg-zoomed .cg-thumbs { margin-top: 0; justify-content: center; }
/* leave vertical room for the thumb row when the piece has closeups */
.cg-picker.cg-zoomed .cg-picker-media:has(.cg-thumbs:not([hidden])) .cg-zoom img { max-height: calc(100vh - 10rem); }
.cg-picker.cg-zoomed .cg-zoom { width: auto; max-width: 100%; cursor: zoom-out; }
.cg-picker.cg-zoomed .cg-zoom img {
  aspect-ratio: auto; width: auto; height: auto;
  max-width: 100%; max-height: calc(100vh - 4rem);
  background: transparent;
}
.cg-picker-body { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.cg-picker-body h3 { font-size: 1.45rem; line-height: 1.25; padding-right: 1.6rem; }
.cg-sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.cg-size {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem;
  padding: 0.72rem 0.95rem;
  border: 1px solid var(--line);
  font-size: 0.85rem; color: var(--stone-700);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.cg-size b { font-weight: 600; }
.cg-size:hover:not([disabled]) { border-color: var(--brass); }
.cg-size[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cg-size[disabled] { opacity: 0.4; cursor: not-allowed; }
.cg-add { justify-content: center; }
.cg-add[disabled] { opacity: 0.55; cursor: not-allowed; }

/* size-to-scale diagram: thin charcoal line drawing, print rect animates between sizes */
.cg-scale-toggle { display: none; }
.cg-scale svg { display: block; width: min(100%, 300px); height: auto; }
.cg-scale-print { transition: x 240ms var(--ease), y 240ms var(--ease), width 240ms var(--ease), height 240ms var(--ease); }
.cg-scale-dims { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.04em; fill: var(--stone-600); }
.cg-scale-cap { font-size: 0.72rem; letter-spacing: 0.02em; color: var(--stone-500); margin-top: 0.3rem; }

@media (max-width: 860px) {
  .cart-btn--mobile { display: flex; margin-right: 0.25rem; }
  /* group cart + hamburger on the right (brand pushes them over) */
  .nav { justify-content: flex-start; }
  .nav .brand { margin-right: auto; }
}
@media (max-width: 560px) {
  .cg-picker { padding: 0.8rem; }
  /* image stacks full-width above the size controls */
  .cg-picker-card { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.4rem; }
  /* scale diagram folds behind a disclosure to keep the stacked picker short */
  .cg-scale-toggle { display: inline-flex; align-self: flex-start; }
  .cg-scale-body { display: none; }
  .cg-scale.open .cg-scale-body { display: block; margin-top: 0.8rem; }
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
/* Hidden ONLY when JS is active (html.reveal-on). With no JS, content shows. */
.reveal-on .reveal { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

/* trust strip: one quiet line of gallery credibility under the shop intro */
.trust-strip {
  display: flex; flex-wrap: wrap; align-items: center;
  row-gap: 0.45rem;
  margin-top: 1.8rem;
  font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--stone-500);
}
.trust-strip li { display: inline-flex; align-items: center; white-space: nowrap; }
.trust-strip li + li::before {
  content: ""; flex: none;
  width: 0.875rem; height: 1px;
  background: var(--brass); opacity: 0.55;
  margin: 0 0.75rem;
}
@media (max-width: 1259px) {
  /* below one-line width the strip wraps; wrapped lines read cleaner without leading rules */
  .trust-strip { gap: 0.45rem 1.5rem; }
  .trust-strip li + li::before { display: none; }
}

/* ==========================================================================
   BUILD YOUR WALL — set discounts
   ========================================================================== */
/* band between intro and grid */
.set-band {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.8rem 2rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.sb-head { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.sb-copy { margin-top: 0.3rem; font-size: 0.95rem; color: var(--stone-600); }
.sb-start { color: var(--brass-text); border-bottom-color: var(--brass); }

/* per-tile control: brass plus, top right of the artwork. Hover-revealed on
   desktop, always present on touch; selected cards keep it filled. */
.set-add {
  position: absolute; top: 0.6rem; right: 0.6rem; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  padding: 0; font-size: 1.15rem; line-height: 1;
  background: var(--paper); color: var(--brass);
  border: 1px solid var(--brass);
  box-shadow: 0 2px 12px rgba(12, 10, 9, 0.22);
  transition: opacity 200ms var(--ease), background 200ms var(--ease), color 200ms var(--ease);
}
body.set-mode .set-add { display: flex; }
@media (hover: hover) {
  body.set-mode .set-add { opacity: 0; }
  body.set-mode .frame:hover .set-add,
  body.set-mode .set-add:focus-visible,
  body.set-mode .item.in-set .set-add { opacity: 1; }
}
.item.in-set .set-add { background: var(--brass); color: var(--paper); }
body.set-mode .item.in-set .frame { outline: 2px solid var(--brass); outline-offset: -2px; }

/* sticky selection bar */
.set-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.6rem 1.1rem;
  padding: 0.65rem var(--gutter);
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -14px 34px -20px rgba(12, 10, 9, 0.45);
}
.set-bar[hidden] { display: none; }
body.set-mode { padding-bottom: 5.5rem; }   /* keep the footer reachable above the bar */
.set-bar-thumbs { display: flex; gap: 0.35rem; }
.set-bar-thumbs:empty { display: none; }
.set-bar-thumbs img { width: 34px; height: 43px; object-fit: cover; border: 1px solid var(--line); background: var(--paper-2); }
.set-bar-state { flex: 1; min-width: 180px; font-size: 0.85rem; color: var(--stone-600); }
.set-bar-sizes { display: flex; gap: 0.35rem; }
.set-size {
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  font-size: 0.72rem; letter-spacing: 0.04em; color: var(--stone-700);
  transition: border-color 200ms var(--ease), background 200ms var(--ease), color 200ms var(--ease);
}
.set-size:hover { border-color: var(--brass); }
.set-size[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.set-bar-total { font-size: 0.95rem; color: var(--ink); white-space: nowrap; }
.set-bar-total s { color: var(--stone-500); margin-right: 0.45rem; font-size: 0.82rem; }
.set-bar-done { padding: 0.55rem 1.2rem; font-size: 0.74rem; }
@media (max-width: 700px) {
  .set-bar { padding-block: 0.55rem; }
  .set-bar-thumbs img { width: 26px; height: 33px; }
  .set-bar-state { min-width: 130px; font-size: 0.78rem; }
  body.set-mode { padding-bottom: 8rem; }
}

/* complete-collection module: one per collection, shown with its wall in the
   Collections and single-collection views. The whole module is the buy button
   (wired like the print cards); prices are live from the set product. */
.collection-set {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
  padding: 1.3rem 1.6rem;
  border: 1px solid var(--line);
  background: var(--paper-2);
  transition: border-color 200ms var(--ease);
}
.collection-set[hidden] { display: none; }
.collection-set:hover, .collection-set:focus-visible { border-color: var(--brass); }
.cs-head { font-size: clamp(1.15rem, 2vw, 1.45rem); }
.cs-copy { margin-top: 0.3rem; font-size: 0.92rem; color: var(--stone-600); }
.cs-buy { display: flex; align-items: baseline; gap: 1.2rem; white-space: nowrap; }
.cs-buy .price { font-size: 1rem; font-weight: 600; color: var(--ink); }
.cs-hint {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brass-text);
}
.collection-set:hover .cs-hint .arrow { transform: translateX(4px); }
.cs-hint .arrow { display: inline-block; transition: transform var(--dur) var(--ease); }
/* "Complete set available" tag on the collection hero head */
.cs-avail {
  display: inline-block;
  margin-top: 0.55rem;
  padding: 0.22rem 0.55rem;
  font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brass-text);
  border: 1px solid var(--brass);
  border-radius: var(--radius);
}
/* set-bar checkout button */
.set-bar-checkout { padding: 0.55rem 1.2rem; font-size: 0.74rem; }

/* page hero (interior) */
.page-hero { padding-top: clamp(8rem, 14vw, 11rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.page-hero .eyebrow { margin-bottom: 1.4rem; }
.page-hero h1 { max-width: 16ch; margin-bottom: 1.4rem; }
.page-hero .lede { max-width: 56ch; }
.breadcrumb { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-500); margin-bottom: 2rem; }
.breadcrumb a:hover { color: var(--brass); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media { max-width: 460px; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery .item,
  .gallery.featured .item { grid-column: span 6; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .gallery .item,
  .gallery.featured .item { grid-column: span 12; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(12,10,9,0.45) 0%, rgba(12,10,9,0.4) 45%, rgba(12,10,9,0.62) 100%); }
  .split-head { flex-direction: column; align-items: flex-start; }
}

/* Reduced motion: show everything, kill transforms */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal-on .reveal { opacity: 1 !important; transform: none !important; }
  .frame-hover:hover img, .frame-hover:hover .art { transform: none; }
}
