/* ==========================================================================
   Frame House Gallery
   Design system derived from the supplied reference (screen.jpg):
   warm cream ground, earthy terracotta / olive accents, high-contrast
   letterspaced serif display type, soft-rounded cards with offset colour
   blocks, organic blob shapes.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --cream:        #faf5ec;
  --cream-deep:   #f3ecdf;
  --sand:         #e6d8c3;
  --sand-soft:    #efe5d6;
  --ink:          #2e2b26;
  --ink-soft:     #57514a;
  --muted:        #7d756a;
  --terracotta:   #c0663e;
  --terracotta-d: #a5522f;
  --olive:        #79815a;
  --olive-d:      #626a46;
  --clay:         #b08968;
  --line:         rgba(46, 43, 38, .14);
  --white:        #fffdf9;

  --display: "Cormorant Garamond", "Times New Roman", serif;
  --body:    "Jost", "Helvetica Neue", Arial, sans-serif;

  --r-sm: 8px;
  --r:    16px;
  --r-lg: 26px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(46, 43, 38, .06);
  --shadow:    0 12px 34px rgba(46, 43, 38, .10);
  --shadow-lg: 0 26px 60px rgba(46, 43, 38, .16);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shell: 1200px;
  --gutter: clamp(18px, 5vw, 48px);
  --header-h: 74px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Kill the grey/blue flash browsers paint over a tapped element. */
a, button, [role="button"], input, label, select, textarea {
  -webkit-tap-highlight-color: rgba(192, 102, 62, .12);
  touch-action: manipulation;
}
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.12; letter-spacing: .01em; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

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

.skip-link {
  position: absolute; left: 12px; top: -70px; z-index: 200;
  background: var(--ink); color: var(--cream);
  padding: 10px 18px; border-radius: var(--r-pill);
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.shell--narrow { max-width: 880px; }
.section { position: relative; padding: clamp(56px, 9vw, 108px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--cream { background: var(--cream-deep); }
.section--sand  { background: var(--sand-soft); }

/* ---------- Typography ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.08;
}
.h-xl { font-size: clamp(2.1rem, 6.4vw, 4.15rem); }
.h-lg { font-size: clamp(1.85rem, 4.6vw, 3.1rem); }
.h-md { font-size: clamp(1.45rem, 3.2vw, 2.15rem); }
.h-sm { font-size: clamp(1.2rem, 2.3vw, 1.5rem); letter-spacing: .07em; }

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.05rem;
}
.eyebrow--olive { color: var(--olive-d); }
.eyebrow--light { color: var(--sand); }

.lead {
  font-size: clamp(1.02rem, 1.7vw, 1.16rem);
  color: var(--ink-soft);
  line-height: 1.8;
}
.body-text { color: var(--ink-soft); }
.body-text p { margin-bottom: 1.2em; }
.center { text-align: center; }
.rule {
  width: 62px; height: 1px; background: var(--terracotta);
  margin: 1.4rem 0; border: 0;
}
.center .rule, .rule--center { margin-inline: auto; }

.section-head { max-width: 720px; margin-inline: auto; margin-bottom: clamp(34px, 5vw, 58px); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  display: inline-flex; align-items: center; gap: .7em;
  padding: 14px 28px;
  background: var(--btn-bg); color: var(--btn-fg);
  border-radius: var(--r-pill);
  font-size: .76rem; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase;
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn .arw { transition: transform .35s var(--ease); }
.btn:hover .arw { transform: translateX(5px); }
.btn--terracotta { --btn-bg: var(--terracotta); --btn-fg: var(--white); }
.btn--terracotta:hover { --btn-bg: var(--terracotta-d); }
.btn--olive { --btn-bg: var(--olive); --btn-fg: var(--white); }
.btn--olive:hover { --btn-bg: var(--olive-d); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--cream); }
.btn--light { --btn-bg: var(--cream); --btn-fg: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ---------- Organic blobs ---------- */
.blob {
  position: absolute; z-index: 0; pointer-events: none;
  opacity: .5;
  animation: drift 22s ease-in-out infinite alternate;
}
.blob--tl { top: -70px; left: -110px; width: 340px; }
.blob--br { right: -120px; bottom: -90px; width: 380px; animation-delay: -8s; }
.blob--r  { right: -140px; top: 12%; width: 300px; animation-delay: -14s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  to   { transform: translate3d(22px, -26px, 0) rotate(7deg) scale(1.06); }
}
.section > .shell, .section > .shell-wide { position: relative; z-index: 1; }

/* ==========================================================================
   Announcement bar
   ========================================================================== */
.announce {
  background: var(--terracotta);
  color: var(--white);
  text-align: center;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 9px var(--gutter);
  position: relative; z-index: 60;
}
.announce a { border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 1px; }
.announce a:hover { border-color: var(--white); }
/* .2em tracking on a 360px screen pushes this to three lines */
@media (max-width: 480px) {
  .announce { font-size: .66rem; letter-spacing: .1em; line-height: 1.5; padding: 8px 14px; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(250, 245, 236, .92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 26px rgba(46, 43, 38, .07);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: var(--header-h);
}
.brand { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.brand__name {
  font-family: var(--display);
  font-size: clamp(1.02rem, 2.3vw, 1.32rem);
  letter-spacing: .17em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__sub {
  font-size: .55rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); margin-top: 6px;
}

/* Desktop nav */
.nav { display: none; }
@media (min-width: 1024px) { .nav { display: block; } }
.nav__list { display: flex; align-items: center; gap: 30px; }
.nav__link {
  position: relative;
  font-size: .74rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--ink-soft);
  padding: 26px 0;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .25s var(--ease);
}
.nav__link:hover, .nav__item[data-active] > .nav__link { color: var(--ink); }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 20px;
  height: 1px; background: var(--terracotta);
  transition: right .35s var(--ease);
}
.nav__link:hover::after, .nav__item[data-active] > .nav__link::after { right: 0; }
.nav__caret { width: 8px; height: 8px; transition: transform .3s var(--ease); }
.nav__item--has-sub:hover .nav__caret { transform: rotate(180deg); }

.nav__sub {
  position: absolute; top: 100%; left: -18px;
  min-width: 232px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 10px;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.nav__item { position: relative; }
.nav__item--has-sub:hover .nav__sub,
.nav__item--has-sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub a {
  display: block; padding: 10px 14px;
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); border-radius: var(--r-sm);
  transition: background-color .22s var(--ease), color .22s var(--ease), padding-left .22s var(--ease);
}
.nav__sub a:hover { background: var(--cream-deep); color: var(--ink); padding-left: 20px; }

.header-cta { display: none; }
@media (min-width: 1024px) { .header-cta { display: inline-flex; } }

/* Mobile toggle */
.burger {
  width: 46px; height: 46px; margin-right: -10px;
  display: grid; place-items: center; gap: 0;
}
@media (min-width: 1024px) { .burger { display: none; } }
.burger span {
  display: block; width: 24px; height: 1.5px; background: var(--ink);
  grid-area: 1 / 1;
  transition: transform .35s var(--ease), opacity .2s var(--ease);
}
.burger span:nth-child(1) { transform: translateY(-6px); }
.burger span:nth-child(3) { transform: translateY(6px); }
body.nav-open .burger span:nth-child(1) { transform: rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 80;
  background: var(--cream);
  /* --drawer-top is set from the header's real bottom edge on open, so the
     first item never slides under the sticky header (the announcement bar
     shifts it down by ~38px at the top of the page). */
  padding: calc(var(--drawer-top, var(--header-h)) + 26px) var(--gutter)
           calc(40px + env(safe-area-inset-bottom));
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  opacity: 0; visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
body.nav-open .mobile-nav { opacity: 1; visibility: visible; transform: translateY(0); }
body.nav-open { overflow: hidden; }
@media (min-width: 1024px) { .mobile-nav { display: none; } }

.mobile-nav__list > li { border-bottom: 1px solid var(--line); }
.mobile-nav__list > li > a,
.mobile-nav__group > button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 56px;
  padding: 17px 2px;
  font-family: var(--display); font-size: 1.32rem;
  letter-spacing: .1em; text-transform: uppercase;
  text-align: left;
}
.mobile-nav__group > button .nav__caret { transition: transform .3s var(--ease); }
.mobile-nav__group.is-open > button .nav__caret { transform: rotate(180deg); }
.mobile-nav__sub {
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease);
}
/* Open height is set inline from scrollHeight by main.js — a fixed value here
   clipped the 7-item Services list. */
.mobile-nav__sub a {
  display: flex; align-items: center; min-height: 46px;
  padding: 11px 0 11px 18px;
  font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft);
  border-left: 1px solid var(--sand);
  margin-left: 2px;
}
.mobile-nav__sub li:last-child a { padding-bottom: 20px; }
.mobile-nav__foot { margin-top: 32px; display: grid; gap: 12px; }
.mobile-nav__foot .btn { justify-content: center; }

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding: clamp(26px, 4vw, 40px) 0 clamp(48px, 7vw, 84px); }
.hero__frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: clamp(430px, 74vh, 640px);
  display: flex; align-items: flex-end;
  box-shadow: var(--shadow-lg);
}
/* vh on phones measures the toolbar-hidden viewport, so the hero overshoots
   the visible area on first paint; dvh tracks what is actually on screen. */
@supports (height: 100dvh) {
  .hero__frame { min-height: clamp(430px, 74dvh, 640px); }
}
/* Phone in landscape: a 430px floor is taller than the whole screen. */
@media (max-height: 560px) and (orientation: landscape) {
  .hero__frame { min-height: 300px; }
  .page-banner__frame { min-height: 190px; }
}
/* The slow zoom lives on the wrapper, not the slides: on the slides it would
   restart with every crossfade and snap the outgoing photo back mid-fade. */
.hero__media {
  position: absolute; inset: 0;
  animation: heroZoom 16s var(--ease) forwards;
}
.hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.hero__media img.is-active { opacity: 1; }
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,27,23,.24) 0%, rgba(30,27,23,.16) 38%, rgba(30,27,23,.72) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  padding: clamp(26px, 5vw, 56px);
  color: var(--white);
  max-width: 720px;
}
.hero__title { font-size: clamp(2.15rem, 7vw, 4.4rem); text-shadow: 0 2px 26px rgba(0,0,0,.32); }
.hero__tag {
  margin: 1.1rem 0 1.7rem;
  font-size: clamp(.98rem, 2vw, 1.14rem);
  color: rgba(255, 253, 249, .93);
  max-width: 34em;
}
.hero__eyebrow { color: var(--sand); }

/* ==========================================================================
   Page banner (interior pages)
   ========================================================================== */
.page-banner { position: relative; overflow: hidden; padding: clamp(24px, 4vw, 36px) 0 0; }
.page-banner__frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  min-height: clamp(230px, 34vw, 330px);
  display: flex; align-items: center;
  box-shadow: var(--shadow);
}
.page-banner__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-banner__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30,27,23,.66) 0%, rgba(30,27,23,.4) 55%, rgba(30,27,23,.22) 100%);
}
/* Image-less variant: the frame is painted rather than photographed, so the
   darkening overlay that makes text legible over a photo is not wanted. */
.page-banner__frame--plain {
  min-height: clamp(170px, 22vw, 240px);
  background: linear-gradient(115deg, var(--terracotta) 0%, var(--terracotta-d) 58%, var(--clay) 100%);
}
.page-banner__frame--plain::after { display: none; }
.page-banner__content {
  position: relative; z-index: 2; color: var(--white);
  padding: clamp(24px, 4.5vw, 52px); max-width: 780px;
}
.page-banner__title { font-size: clamp(1.8rem, 5vw, 3.2rem); }
.breadcrumbs {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,253,249,.78); margin-bottom: 1rem;
}
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs span { opacity: .55; margin: 0 .5em; }

/* ==========================================================================
   Offset-block cards (reference: category tiles)
   ========================================================================== */
.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.tile { position: relative; display: block; }
.tile::before {
  content: ""; position: absolute;
  inset: 16px -14px -14px 16px;
  border-radius: var(--r);
  background: var(--olive);
  transition: transform .45s var(--ease);
  z-index: 0;
}
.tile--terracotta::before { background: var(--terracotta); }
.tile--clay::before { background: var(--clay); }
.tile--sand::before { background: var(--sand); }
.tile:hover::before { transform: translate(-7px, -7px); }
.tile__inner {
  position: relative; z-index: 1;
  border-radius: var(--r); overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.tile__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-soft); }
.tile__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.tile:hover .tile__media img { transform: scale(1.07); }
.tile__label {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--olive); color: var(--white);
  padding: 14px 18px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.tile--terracotta .tile__label { background: var(--terracotta); }
.tile--clay .tile__label { background: var(--clay); }
.tile__label h3 {
  font-family: var(--display); font-size: clamp(1.05rem, 2vw, 1.4rem);
  letter-spacing: .1em; text-transform: uppercase;
}
.tile__label span { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; opacity: .88; }
.tile__body { padding: 20px 20px 24px; }
.tile__body p { font-size: .92rem; color: var(--ink-soft); margin-bottom: 1em; }
.tile__more {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--terracotta);
}
.tile:hover .tile__more .arw { transform: translateX(5px); }
.tile__more .arw { transition: transform .35s var(--ease); }

/* ---------- Split feature (image + copy) ---------- */
.split {
  display: grid; gap: clamp(28px, 5vw, 64px);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split--flip .split__media { order: -1; }
@media (min-width: 900px) { .split--flip .split__media { order: 2; } }

.split__media { position: relative; }
.split__media::before {
  content: ""; position: absolute; inset: 20px -18px -18px 20px;
  border-radius: var(--r-lg); background: var(--sand); z-index: 0;
}
.split--olive .split__media::before { background: var(--olive); }
.split--terracotta .split__media::before { background: var(--terracotta); }
.split__media img {
  position: relative; z-index: 1;
  width: 100%; border-radius: var(--r-lg);
  aspect-ratio: 4 / 3; object-fit: cover;
  box-shadow: var(--shadow);
}
.split__media--tall img { aspect-ratio: 3 / 4; }

/* ---------- Ribbon / callout ---------- */
.ribbon {
  background: var(--ink); color: var(--cream);
  border-radius: var(--r-lg);
  padding: clamp(30px, 5vw, 54px);
  text-align: center;
  position: relative; overflow: hidden;
}
.ribbon .h-md { color: var(--white); }
.ribbon p { color: rgba(250, 245, 236, .78); max-width: 46em; margin-inline: auto; }
.ribbon--terracotta { background: var(--terracotta); }
.ribbon--terracotta p { color: rgba(255,253,249,.9); }
.ribbon--olive { background: var(--olive); }
.ribbon--olive p { color: rgba(255,253,249,.9); }

/* ---------- Quote / statement ---------- */
.statement {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.4vw, 2.35rem);
  line-height: 1.28; letter-spacing: .02em;
  color: var(--ink);
  max-width: 20em; margin-inline: auto;
}

/* ---------- Artisan list ---------- */
.artisans { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .artisans { grid-template-columns: repeat(2, 1fr); } }
.artisans li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 13px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: .92rem;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.artisans li:hover { transform: translateX(5px); border-color: var(--terracotta); box-shadow: var(--shadow-sm); }
.artisans .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); flex-shrink: 0; }
.artisans .who { font-weight: 400; }
.artisans .what { color: var(--muted); font-size: .82rem; letter-spacing: .04em; }

/* ---------- Info cards (contact) ---------- */
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.4vw, 34px);
  height: 100%;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.info-card__icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--cream-deep); color: var(--terracotta);
  display: grid; place-items: center; margin-bottom: 18px;
}
.info-card h3 {
  font-family: var(--display); font-size: 1.15rem;
  letter-spacing: .13em; text-transform: uppercase; margin-bottom: .7rem;
}
.info-card p, .info-card li { font-size: .95rem; color: var(--ink-soft); }
.hours-list li {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 8px 0; border-bottom: 1px dashed var(--line);
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list .day { color: var(--ink); }
.hours-list .time { color: var(--muted); white-space: nowrap; }
.hours-list .closed { color: var(--terracotta); }
.link-underline { border-bottom: 1px solid var(--terracotta); padding-bottom: 1px; transition: color .25s var(--ease); }
.link-underline:hover { color: var(--terracotta); }

/* ---------- Gallery grid + lightbox ---------- */
.gal { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gal { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1000px) { .gal--4 { grid-template-columns: repeat(4, 1fr); } }

.gal__item {
  position: relative; display: block;
  border-radius: var(--r); overflow: hidden;
  background: var(--sand-soft);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.gal--portrait .gal__item { aspect-ratio: 3 / 4; }
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gal__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gal__item:hover img { transform: scale(1.08); }
.gal__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(30,27,23,.5) 100%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.gal__item:hover::after { opacity: 1; }
.gal__zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 253, 249, .92); color: var(--ink);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.gal__item:hover .gal__zoom { opacity: 1; transform: translateY(0); }

/* Filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: clamp(28px, 4vw, 42px); }
.chip {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 10px 20px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--white);
  font-size: .7rem; letter-spacing: .17em; text-transform: uppercase; color: var(--ink-soft);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.chip:hover { transform: translateY(-2px); border-color: var(--terracotta); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.gal__item.is-hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(24, 22, 19, .93);
  display: grid; place-items: center;
  padding: max(clamp(16px, 4vw, 48px), env(safe-area-inset-top))
           clamp(16px, 4vw, 48px)
           calc(clamp(16px, 4vw, 48px) + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden;
  overscroll-behavior: contain;
  touch-action: none;
  transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%; max-height: 82vh;
  border-radius: var(--r); box-shadow: var(--shadow-lg);
  /* the backdrop is touch-action:none to stop the page scrolling behind it;
     re-allow pinch here so artwork detail can still be zoomed into */
  touch-action: pinch-zoom;
  transform: scale(.96); transition: transform .35s var(--ease);
}
@supports (height: 100dvh) { .lightbox img { max-height: 76dvh; } }
.lightbox.is-open img { transform: scale(1); }
.lightbox__bar {
  position: absolute; left: 0; right: 0; bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: 18px;
  color: rgba(250,245,236,.85); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
}
.lb-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(250, 245, 236, .12); color: var(--cream);
  display: grid; place-items: center;
  transition: background-color .25s var(--ease);
}
.lb-btn:hover { background: rgba(250, 245, 236, .26); }
.lightbox__close {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
}

/* ---------- Map ---------- */
.map-frame {
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  background: var(--sand-soft);
  aspect-ratio: 16 / 9;
}
@media (max-width: 700px) { .map-frame { aspect-ratio: 4 / 3; } }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Contact form ---------- */
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: repeat(2, 1fr); } }
.field label {
  display: block; font-size: .68rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px;
  font-family: var(--body); font-size: 1rem; font-weight: 300; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(192, 102, 62, .13);
}
.form-note { font-size: .8rem; color: var(--muted); }

/* Honeypot. Off-screen rather than display:none — some bots skip hidden
   fields, and this still keeps it out of the tab order and off the page. */
.hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 14px; padding: 12px 16px;
  font-size: .9rem; line-height: 1.6;
  border-radius: var(--r-sm); border: 1px solid transparent;
}
.form-status.is-ok  { color: var(--ink); background: rgba(121, 129, 90, .12); border-color: rgba(121, 129, 90, .35); }
.form-status.is-err { color: var(--ink); background: rgba(192, 102, 62, .10); border-color: rgba(192, 102, 62, .38); }

.btn[disabled] { opacity: .6; cursor: default; pointer-events: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink); color: var(--cream);
  padding: clamp(48px, 7vw, 82px) 0 0;
  position: relative; overflow: hidden;
}
.footer-grid {
  display: grid; gap: clamp(30px, 4vw, 48px);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.15fr; } }
.footer-brand__name {
  font-family: var(--display); font-size: 1.5rem;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: .3rem;
}
.footer-brand p { color: rgba(250, 245, 236, .62); font-size: .93rem; }
.footer-col h4 {
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--sand); margin-bottom: 1.1rem;
}
.footer-col li { margin-bottom: 11px; }
.footer-col a, .footer-col p {
  font-size: .9rem; color: rgba(250, 245, 236, .68);
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.footer-col a:hover { color: var(--white); padding-left: 5px; }
.footer-col address { font-style: normal; font-size: .9rem; color: rgba(250,245,236,.68); line-height: 1.85; }
.footer-hours li { display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; color: rgba(250,245,236,.68); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(250, 245, 236, .22);
  display: grid; place-items: center;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.social a:hover { background: var(--terracotta); border-color: var(--terracotta); transform: translateY(-3px); padding-left: 0; }
.footer-bottom {
  margin-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid rgba(250, 245, 236, .14);
  padding: 22px 0 calc(22px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  align-items: center; justify-content: space-between;
  font-size: .76rem; letter-spacing: .1em; color: rgba(250, 245, 236, .5);
}

/* ---------- Sticky mobile call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--ink);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(105%);
  transition: transform .4s var(--ease);
  box-shadow: 0 -8px 30px rgba(0,0,0,.2);
}
.callbar.is-visible { transform: translateY(0); }
@media (min-width: 1024px) { .callbar { display: none; } }
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 10px;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cream);
}
.callbar a + a { border-left: 1px solid rgba(250,245,236,.16); }
.callbar a:first-child { background: var(--terracotta); color: var(--white); }
@media (max-width: 1023px) { body { padding-bottom: 0; } .site-footer { padding-bottom: 58px; } }

/* ==========================================================================
   Touch devices
   A phone has no hover. Two consequences this block fixes:
   1. Anything revealed only on :hover is invisible — most importantly the
      gallery zoom badge, which is the cue that a photo opens in the lightbox.
   2. :hover latches after a tap and stays stuck until you tap elsewhere, so
      lift/slide effects leave the page visibly crooked.
   ========================================================================== */
@media (hover: none), (pointer: coarse) {
  /* 1 — make the lightbox affordance permanent. The gradient sits at .7 rather
     than the full hover value so thumbnails stay bright but the badge reads. */
  .gal__item::after { opacity: .7; }
  .gal__zoom { opacity: 1; transform: none; }

  /* 2 — drop the transforms that would otherwise stick after a tap */
  .btn:hover,
  .tile:hover .tile__media img,
  .artisans li:hover,
  .info-card:hover,
  .chip:hover,
  .gal__item:hover,
  .gal__item:hover img,
  .social a:hover { transform: none; }
  .tile:hover::before { transform: none; }
  .btn:hover .arw,
  .tile:hover .tile__more .arw { transform: none; }
  .footer-col a:hover,
  .nav__sub a:hover { padding-left: 0; }
  .btn:hover { box-shadow: none; }

  /* Footer links are the densest tap targets on the page. Scoped away from
     .footer-hours, whose rows are text spans and should keep their spacing. */
  .footer-col ul:not(.footer-hours) > li { margin-bottom: 2px; }
  .footer-col ul:not(.footer-hours) > li > a {
    display: flex; align-items: center; min-height: 44px;
  }
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
