/* ─── True Color Creative · Main Stylesheet ─────────────────────────────── */

:root {
  /* warm palette (default) */
  --cream:      #f4ede0;
  --cream-2:    #ede3d0;
  --ink:        #1f1b16;
  --ink-2:      #4a423a;
  --ink-3:      #8a7f72;
  --terracotta: #c2603f;
  --sage:       #5a7a5a;
  --ochre:      #d8a23e;
  --rose:       #d8a290;
  --plum:       #5a3a4a;

  --display: 'Instrument Serif', 'Times New Roman', serif;
  --sans:    'Geist', system-ui, sans-serif;
  --hand:    'Caveat', cursive;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(20px, 4vw, 64px);
  --maxw:   1400px;
}

/* ─── Palette variants ───────────────────────────────────────────────────── */
[data-palette="cool"] {
  --cream: #eaeef0; --cream-2: #dde4e8;
  --ink: #14191c; --ink-2: #3a444a; --ink-3: #7a858c;
  --terracotta: #4a7a9c; --sage: #3e6b6b; --ochre: #b8a04a;
  --rose: #9ab0c2; --plum: #3a4a6a;
}
[data-palette="earth"] {
  --cream: #ece4d4; --cream-2: #ddd1bd;
  --ink: #2a1f14; --ink-2: #4a3a28; --ink-3: #8a7a5c;
  --terracotta: #a85530; --sage: #4e6240; --ochre: #c08838;
  --rose: #b88460; --plum: #5e3826;
}
[data-palette="dusk"] {
  --cream: #efe6e2; --cream-2: #e3d5d0;
  --ink: #1f1620; --ink-2: #4a3a4a; --ink-3: #8a7a8a;
  --terracotta: #c4585a; --sage: #6a6a8e; --ochre: #d4a06a;
  --rose: #d4a0b0; --plum: #5a2a4a;
}
[data-display="grotesk"] { --display: 'Bricolage Grotesque', system-ui, sans-serif; }
[data-density="cozy"]    { --section-y: clamp(80px, 12vw, 180px); }
[data-density="airy"]    { --section-y: clamp(140px, 18vw, 260px); }

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 400; }
::selection { background: var(--ochre); color: var(--ink); }

/* ─── Layout helpers ─────────────────────────────────────────────────────── */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ─── Nav ────────────────────────────────────────────────────────────────── */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--cream) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 8%, transparent);
}
nav.top .row {
  display: flex; align-items: center; justify-content: space-between;
  height: 100px;
}
nav.top .brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.01em;
}
nav.top .brand .mark {
  flex: 0 0 auto;
  display: block;
  height: 6rem;
  margin: -1rem 0;
  width: auto;
}
nav.top ul {
  display: flex; gap: 28px; align-items: center;
  list-style: none; margin: 0; padding: 0;
  font-size: 14px;
  color: var(--ink-2);
}
nav.top ul a:hover { color: var(--ink); }
nav.top .cta {
  background: var(--ink); color: var(--cream);
  padding: 10px 18px; border-radius: 999px;
  font-size: 12.6px; font-weight: 500;
  border: none;
  transition: transform .15s ease, background .2s ease;
}
nav.top .cta:hover { background: var(--terracotta); transform: translateY(-1px); }
@media (max-width: 720px) {
  nav.top ul li:not(.always) { display: none; }
  nav.top .brand .mark { height: 3.5rem; }
}

/* ─── Section base ───────────────────────────────────────────────────────── */
section {
  padding-top: var(--section-y, clamp(100px, 14vw, 8px));
  padding-bottom: var(--section-y, clamp(100px, 14vw, 80px));
  position: relative;
}

/* ─── Typography components ──────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }

h1.display, h2.display {
  font-family: var(--display);
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2.display em { font-style: italic; color: var(--terracotta); }

.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
  max-width: 56ch;
  margin: 0;
}
.hand {
  font-family: var(--hand);
  font-size: 1.4em;
  color: var(--terracotta);
  line-height: 1;
}

/* ─── Paint chips ────────────────────────────────────────────────────────── */
.chip {
  border-radius: 4px;
  padding: 18px 18px 20px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03), 0 8px 24px -12px rgba(0,0,0,0.12);
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 4;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 200px;
}
.chip .chip-header { display: flex; justify-content: space-between; align-items: flex-start; }
.chip .chip-code, .chip .chip-idx {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7;
}
.chip .chip-name { font-family: var(--display); font-size: 22px; line-height: 1.05; margin-top: 8px; }
.chip .chip-feel { font-size: 12px; margin-top: 14px; opacity: 0.75; }
.chip.dark  { color: var(--cream); }
.chip.light { color: var(--ink); }

.chip { cursor: pointer; transition: box-shadow .2s ease; }
.chip:hover { box-shadow: 0 4px 28px -6px rgba(0,0,0,0.28); }
.chip-toggle {
  font-size: 18px; line-height: 1; opacity: 0.55;
  transition: transform .25s ease, opacity .2s ease;
  user-select: none; flex-shrink: 0;
}
.chip.expanded .chip-toggle { transform: rotate(45deg); opacity: 0.8; }
.chip.expanded { aspect-ratio: unset; grid-column: 1 / -1; }
.chip-description {
  font-size: 14px; line-height: 1.7; margin-top: 0;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .35s ease, opacity .3s ease, margin-top .3s ease;
}
.chip.expanded .chip-description {
  max-height: 600px; opacity: 0.85; margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in oklab, currentColor 22%, transparent);
}

/* Desktop: row layout inside expanded chip */
@media (min-width: 761px) {
  .chip.expanded {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
  }
  .chip.expanded .chip-header {
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
    width: 180px;
    padding-right: 40px;
    border-right: 1px solid color-mix(in oklab, currentColor 18%, transparent);
  }
  .chip.expanded .chip-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-left: 40px;
  }
  .chip.expanded .chip-description {
    max-height: none; opacity: 0.85; margin-top: 16px;
    padding-top: 14px; overflow: visible;
    border-top: 1px solid color-mix(in oklab, currentColor 22%, transparent);
    border-left: none;
  }
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--cream);
  padding: 16px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 500; border: none;
  transition: transform .15s ease, background .2s ease;
  text-decoration: none; cursor: pointer;
}
.btn-primary:hover { background: var(--terracotta); transform: translateY(-1px); }
.btn-primary .arrow {
  width: 16px; height: 1px; background: currentColor; position: relative;
  transition: width .2s ease;
}
.btn-primary .arrow::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.btn-primary:hover .arrow { width: 22px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--ink);
  padding: 14px 22px; border-radius: 999px; font-size: 15px;
  border: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
  transition: background .2s ease; text-decoration: none;
}
.btn-ghost:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }

/* ─── Misc ───────────────────────────────────────────────────────────────── */
.rule { height: 1px; background: color-mix(in oklab, var(--ink) 12%, transparent); }
.squiggle { display: inline-block; position: relative; }
.squiggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.18em; height: 8px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'><path d='M0 4 Q 12.5 0 25 4 T 50 4 T 75 4 T 100 4' fill='none' stroke='%23c2603f' stroke-width='2'/></svg>");
  background-repeat: no-repeat; background-size: 100% 100%;
}
.frame { background: var(--cream-2); border-radius: 4px; overflow: hidden; position: relative; }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── Hero triptych ──────────────────────────────────────────────────────── */
.hero-triptych {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
  height: min(62vh, 560px);
}
.hero-triptych .frame-tall { grid-row: 1 / span 2; }
.hero-triptych .frame-wide { grid-column: 2 / span 2; }
@media (max-width: 640px) {
  .hero-triptych { grid-template-columns: 1fr 1fr; height: auto; }
  .hero-triptych .frame-tall { grid-row: auto; }
  .hero-triptych .frame-wide { grid-column: auto; }
  .hero-triptych .frame:nth-child(2) { display: none; } /* hide quote card on mobile */
}

/* ─── Signals ("You might like this if") ────────────────────────────────── */
.signal-list { list-style: none; margin: 0; padding: 0; }
.signal-item {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 20px;
  align-items: baseline; padding: 22px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
  cursor: default; transition: padding-left .2s ease;
}
.signal-item:hover { padding-left: 12px; }
.signal-num { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; }
.signal-text {
  font-family: var(--display); font-size: clamp(20px, 2.35vw, 31px);
  line-height: 1.2; color: var(--ink); transition: color .2s ease;
}
.signal-item:hover .signal-text { color: var(--terracotta); }
.signal-check {
  width: 22px; height: 22px; border-radius: 4px;
  border: 1.5px solid var(--ink); background: transparent;
  position: relative; transition: background .2s ease, border-color .2s ease;
  flex-shrink: 0;
}
.signal-item:hover .signal-check { background: var(--terracotta); border-color: var(--terracotta); }
.signal-item:hover .signal-check::after {
  content: "✓"; position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--cream); font-size: 14px; font-weight: 600;
}

/* ─── Gallery ────────────────────────────────────────────────────────────── */
.gallery-toggle {
  display: inline-flex; border-radius: 999px; padding: 4px;
  background: color-mix(in oklab, var(--cream) 10%, transparent);
}
.gallery-toggle-btn {
  padding: 8px 18px; border-radius: 999px;
  background: transparent; color: var(--cream);
  border: none; font-size: 13px; font-weight: 500; text-transform: capitalize;
  transition: all .2s ease; cursor: pointer;
}
.gallery-toggle-btn.active { background: var(--cream); color: var(--ink); }
.gallery-slideshow { display: grid; }
.gallery-grid-view { display: none; }
.gallery-section.view-grid .gallery-slideshow { display: none; }
.gallery-section.view-grid .gallery-grid-view { display: grid; }
.gallery-main-img {
  position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3;
  background: color-mix(in oklab, var(--cream) 6%, transparent);
}
.gallery-main-img img { width: 100%; height: 100%; object-fit: cover; }
.gallery-controls {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: flex; justify-content: space-between; align-items: center; color: var(--cream);
}
.gallery-counter {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  padding: 6px 12px; border-radius: 999px;
  background: color-mix(in oklab, var(--ink) 60%, transparent);
  backdrop-filter: blur(8px);
}
.gallery-nav-btns { display: flex; gap: 8px; }
.gallery-nav-btn {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: color-mix(in oklab, var(--cream) 90%, transparent);
  color: var(--ink); font-size: 18px; cursor: pointer; transition: transform .15s ease;
}
.gallery-nav-btn:hover { transform: scale(1.1); }
.gallery-thumb-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: start; }
.gallery-thumb-btn {
  padding: 0; border: none; border-radius: 4px; overflow: hidden; cursor: pointer;
  aspect-ratio: 1; background: color-mix(in oklab, var(--cream) 6%, transparent);
  outline: none; opacity: 0.7; transition: all .2s ease;
}
.gallery-thumb-btn:hover,
.gallery-thumb-btn.active { opacity: 1; outline: 2px solid var(--ochre); outline-offset: 2px; }
.gallery-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Event cards ────────────────────────────────────────────────────────── */
.event-card {
  display: grid; grid-template-columns: minmax(120px, 180px) 1fr auto;
  gap: 32px; align-items: start;
  padding: 36px 0;
  border-top: 1px solid color-mix(in oklab, var(--ink) 14%, transparent);
}
.event-date-chip {
  padding: 18px 20px; border-radius: 4px;
  display: flex; flex-direction: column; gap: 4px;
  min-height: 110px; justify-content: space-between;
}
.event-date-chip .chip-kind { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.event-date-chip .chip-date { font-family: var(--display); font-size: 32px; line-height: 1; }
.event-date-chip .chip-time { font-family: var(--mono); font-size: 11px; opacity: 0.85; margin-top: 4px; }
.event-detail h3 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; margin: 0; }
.event-detail { display: flex; flex-direction: column; gap: 10px; }
.event-blurb { margin: 0; color: var(--ink-2); font-size: 16px; max-width: 52ch; }
.event-meta { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 8px; color: var(--ink-3); font-size: 13px; font-family: var(--mono); letter-spacing: 0.04em; }
.event-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.event-seats-left { font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
@media (max-width: 700px) {
  .event-card { grid-template-columns: 1fr; gap: 16px; }
  .event-cta { align-items: flex-start; }
}

/* ─── Contact / interest pills ───────────────────────────────────────────── */
.field-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); display: block; }
.field-underline {
  display: block; width: 100%; background: transparent; border: none;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 22%, transparent);
  padding: 16px 0; font-size: 17px; font-family: var(--sans); color: var(--ink);
  outline: none; transition: border-color .2s ease; resize: vertical;
}
.field-underline:focus { border-bottom-color: var(--ink); }
.field-underline::placeholder { color: var(--ink-3); }
.pill-radio { display: none; }
.pill-label {
  display: inline-block; padding: 10px 16px; border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
  background: transparent; color: var(--ink-2); font-size: 13px;
  cursor: pointer; transition: all .15s ease; user-select: none;
}
.pill-radio:checked + .pill-label { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pill-label:hover { background: color-mix(in oklab, var(--ink) 8%, transparent); }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
footer.bottom { background: var(--ink); color: var(--cream); padding: 80px var(--gutter) 40px; }
footer.bottom .wrap { padding: 0; max-width: var(--maxw); margin: 0 auto; }
footer.bottom a { color: color-mix(in oklab, var(--cream) 85%, transparent); }
footer.bottom a:hover { color: var(--cream); }

/* ─── Hero image offset ──────────────────────────────────────────────────── */
.hero-img-top { margin-top: 64px; }
@media (max-width: 760px) { .hero-img-top { margin-top: 0; } }

/* ─── Section bg helpers ─────────────────────────────────────────────────── */
.bg-cream-2 { background: var(--cream-2); }
.bg-ink     { background: var(--ink); color: var(--cream); }

/* ─── Responsive two-column layouts ─────────────────────────────────────── */

/* Generic split — column proportions added via inline style per section */
.section-two-col {
  display: grid;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

/* Hero main grid: text left, image right */
.hero-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.75fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.hero-acrylic {
  border-radius: 6px;
}
.hero-quote-bar {
  width: 50%;
}

/* Hero lede + CTA sub-row */
.hero-lede-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
}

/* Section intro header: heading | description */
.section-intro-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  margin-bottom: 56px;
  align-items: end;
}

/* Paint chip grid */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

/* Gallery slideshow: big image + thumb rail */
.gallery-slideshow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* Footer four columns */
.footer-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

/* ─── Mobile breakpoints ─────────────────────────────────────────────────── */
@media (max-width: 760px) {
  /* Collapse all two-column layouts to single column */
  .hero-main-grid           { grid-template-columns: 1fr !important; }
  .hero-acrylic             { max-height: 320px; aspect-ratio: 16 / 9; }
  .hero-quote-bar           { width: 100%; }
  .section-two-col          { grid-template-columns: 1fr !important; }
  .hero-lede-row            { grid-template-columns: 1fr !important; }
  .section-intro-two-col    { grid-template-columns: 1fr !important; gap: 24px; margin-bottom: 32px; }
  .gallery-slideshow-layout { grid-template-columns: 1fr !important; }
  .footer-cols              { grid-template-columns: 1fr 1fr !important; gap: 24px; }

  /* Remove sticky sidebar positioning when stacked */
  .sticky-on-desktop {
    position: static !important;
    align-self: auto !important;
    min-height: 0 !important;
  }

  /* Signal hover nudge doesn't apply on touch */
  .signal-item:hover { padding-left: 0; }
}

@media (max-width: 500px) {
  /* Chips: always exactly 2 columns, never collapse to 1 */
  .chip-grid   { grid-template-columns: repeat(2, 1fr) !important; }
  /* Footer: single column on very narrow screens */
  .footer-cols { grid-template-columns: 1fr !important; }
}
