/* ==========================================================
   Classic fine-art gallery — warm charcoal, cream & gold leaf
   ========================================================== */
/* LIGHT is the default theme. Dark is applied with <html data-theme="dark">. */
:root {
  --night: #ebe1cb;      /* deeper panels / footer */
  --charcoal: #f7f2e6;   /* page background */
  --umber: #e3d7bf;
  --sage: #a3a28a;
  --sage-deep: #8b8a72;
  --cream: #1c1611;      /* headings / strong text */
  --cream-soft: #342b22; /* body text */
  --muted: #55493c;
  --gold: #6e5112;
  --gold-soft: rgba(110, 81, 18, .45);
  --rule: rgba(42, 35, 27, .18);
  --red-dot: #b3261e;
  --red-text: #a3261d;
  --accent: #5a5d49;
  --texture-alpha: .09;
  color-scheme: light;

  --walnut: #5a3a24;
  --maple: #e0bf8b;      /* pale golden maple */
  --fir: #c18c52;        /* reclaimed fir — warmer, orange-red */
  --mahogany: #703020;
  --oak: #b08a55;

  /* Realistic wood grain: fine straight streaks + broad soft figure, drawn as vector noise so it stays crisp on any screen.
     h = grain runs left-right (top/bottom strips), v = top-bottom (side strips); the "b" versions use a different seed so opposite sides differ. */
  --grain-h2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='400'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0018 0.38' numOctaves='4' seed='4' result='a'/%3E%3CfeColorMatrix in='a' values='0 0 0 0 0.33 0 0 0 0 0.19 0 0 0 0 0.07 2.8 0 0 0 -1.12' result='streak'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.003 0.045' numOctaves='3' seed='11' result='b'/%3E%3CfeColorMatrix in='b' values='0 0 0 0 0.45 0 0 0 0 0.27 0 0 0 0 0.1 1.5 0 0 0 -0.55' result='cloud'/%3E%3CfeMerge%3E%3CfeMergeNode in='cloud'/%3E%3CfeMergeNode in='streak'/%3E%3C/feMerge%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --grain-h2b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='400'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0022 0.42' numOctaves='4' seed='19' result='a'/%3E%3CfeColorMatrix in='a' values='0 0 0 0 0.33 0 0 0 0 0.19 0 0 0 0 0.07 2.8 0 0 0 -1.12' result='streak'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0035 0.05' numOctaves='3' seed='23' result='b'/%3E%3CfeColorMatrix in='b' values='0 0 0 0 0.45 0 0 0 0 0.27 0 0 0 0 0.1 1.5 0 0 0 -0.55' result='cloud'/%3E%3CfeMerge%3E%3CfeMergeNode in='cloud'/%3E%3CfeMergeNode in='streak'/%3E%3C/feMerge%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --grain-v2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='1200'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.38 0.0018' numOctaves='4' seed='7' result='a'/%3E%3CfeColorMatrix in='a' values='0 0 0 0 0.33 0 0 0 0 0.19 0 0 0 0 0.07 2.8 0 0 0 -1.12' result='streak'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.045 0.003' numOctaves='3' seed='13' result='b'/%3E%3CfeColorMatrix in='b' values='0 0 0 0 0.45 0 0 0 0 0.27 0 0 0 0 0.1 1.5 0 0 0 -0.55' result='cloud'/%3E%3CfeMerge%3E%3CfeMergeNode in='cloud'/%3E%3CfeMergeNode in='streak'/%3E%3C/feMerge%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --grain-v2b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='1200'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.42 0.0022' numOctaves='4' seed='31' result='a'/%3E%3CfeColorMatrix in='a' values='0 0 0 0 0.33 0 0 0 0 0.19 0 0 0 0 0.07 2.8 0 0 0 -1.12' result='streak'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.05 0.0035' numOctaves='3' seed='37' result='b'/%3E%3CfeColorMatrix in='b' values='0 0 0 0 0.45 0 0 0 0 0.27 0 0 0 0 0.1 1.5 0 0 0 -0.55' result='cloud'/%3E%3CfeMerge%3E%3CfeMergeNode in='cloud'/%3E%3CfeMergeNode in='streak'/%3E%3C/feMerge%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='260'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0035 0.11' numOctaves='4' seed='8'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.06 0 0 0 0 0.02 1.1 0 0 0 -0.32'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");

  --caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif: "Cormorant Garamond", Garamond, Georgia, serif;
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* DARK theme */
:root[data-theme="dark"] {
  --night: #1b1815;
  --charcoal: #24201c;
  --umber: #2f2a24;
  --cream: #f3e4cc;
  --cream-soft: #cdbca5;
  --muted: #9d8f7d;
  --gold: #c8a96a;
  --gold-soft: rgba(200, 169, 106, .35);
  --rule: rgba(243, 228, 204, .14);
  --red-text: #e0675e;
  --accent: #a3a28a;
  --texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

/* Theme switch (sun / moon) */
/* Sits at the end of the menu row, vertically centred with the links */
.theme-toggle { position: relative; align-self: center; width: 40px; height: 40px; margin: 0 4px 0 6px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--cream); cursor: pointer; display: grid; place-items: center; transition: color .2s; }
.theme-toggle::before { content: ""; position: absolute; left: -7px; top: 22%; bottom: 22%; width: 1px; background: var(--rule); }
.theme-toggle:hover { color: var(--gold); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle svg { grid-area: 1 / 1; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1), opacity .35s ease; }
.theme-toggle .i-sun { opacity: 0; transform: rotate(-120deg) scale(.3); }
:root[data-theme="dark"] .theme-toggle .i-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: rotate(120deg) scale(.3); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--texture), var(--charcoal); color: var(--cream-soft); font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--cream); line-height: 1.08; margin: 0 0 .3em; }
h2 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); }
/* Safe areas: keep content clear of the iPhone notch / Dynamic Island and the home bar */
:root { --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px); --safe-side: max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
.wrap { width: min(1180px, 100% - 40px - var(--safe-side) * 2); margin-inline: auto; }
.eyebrow { font-family: var(--sans); font-weight: 400; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }

/* Ornamental divider */
.flourish { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 6px auto 0; max-width: 260px; }
.flourish::before, .flourish::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.flourish::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }
.flourish span { font-size: 1.25rem; line-height: 1; }

/* Masthead */
.masthead { text-align: center; padding: calc(40px + var(--safe-top)) calc(20px + var(--safe-side)) 0; background: linear-gradient(var(--night), transparent 85%), var(--texture), var(--charcoal); }
.name { font-family: var(--caps); font-weight: 400; font-size: clamp(1.7rem, 5.2vw, 3.1rem); letter-spacing: .14em; text-transform: uppercase; color: var(--cream); text-decoration: none; display: inline-block; line-height: 1.2; }
.tagline { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.2rem; color: var(--muted); margin: 6px 0 22px; }
.nav { display: flex; justify-content: center; flex-wrap: wrap; border-block: 1px solid var(--rule); max-width: 760px; margin: 0 auto; }
.nav a { font-family: var(--caps); font-size: .86rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--cream); padding: 14px 20px; position: relative; }
.nav a + a::before { content: ""; position: absolute; left: 0; top: 30%; bottom: 30%; width: 1px; background: var(--rule); }
.nav a:hover { color: var(--gold); }
.nav a { white-space: nowrap; }
@media (max-width: 560px) {
  .masthead { padding-top: calc(30px + var(--safe-top)); }
  .name { font-size: clamp(1.25rem, 6.3vw, 1.7rem); letter-spacing: .1em; white-space: nowrap; }
  .tagline { font-size: 1.05rem; }
  .masthead { padding-left: calc(10px + var(--safe-side)); padding-right: calc(10px + var(--safe-side)); }
  .nav { flex-wrap: nowrap; justify-content: space-between; }
  .nav a { padding: 15px 9px; font-size: .8rem; letter-spacing: .06em; }
  .theme-toggle { width: 46px; height: 46px; margin: 0 0 0 4px; }
  .theme-toggle svg { width: 24px; height: 24px; }
  .theme-toggle::before { left: -2px; }
}
/* very narrow phones (iPhone SE, small Androids): slightly tighter so the row still fits */
@media (max-width: 360px) {
  .nav a { padding: 15px 6px; font-size: .72rem; letter-spacing: .04em; }
  .theme-toggle { width: 42px; height: 42px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 30px; font-family: var(--caps); font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: #23201b; background: var(--sage); border: 1px solid var(--sage-deep); border-radius: 0; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.35); transition: background .2s, color .2s; }
.btn:hover { filter: brightness(1.1); }
.btn-wide { width: 100%; padding: 16px 22px; }
/* Venmo brand blue with a white logo, in both themes */
.btn-venmo { background: #008cff; border-color: #0074d4; color: #fff; text-shadow: none; }
.btn-venmo:hover { background: #0a95ff; filter: none; }
.btn-venmo svg { color: #fff; }
.btn-venmo[aria-disabled="true"] { background: #008cff; }
.btn svg { width: 18px; height: 18px; }
.btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* Frames — thin hand-built wood with a gold liner */
/* Each frame is four mitred wood strips (top, bottom, left, right), each with its own grain direction and lighting */
.frame { --wood: var(--walnut); --fw: 13px; display: block; position: relative; padding: var(--fw);
  background: var(--wood);
  background: color-mix(in srgb, var(--wood) 72%, #000); /* the dark seam you see along each mitre joint */
  box-shadow: 0 24px 40px -18px rgba(0,0,0,.8), 0 4px 10px rgba(0,0,0,.3); }
.frame::before, .frame::after, .frame .mat::before, .frame .mat::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-size: 100% 100%; }
/* top strip: lit from above, grain runs left-right */
.frame::before { clip-path: polygon(0 0, 100% 0, calc(100% - var(--fw)) var(--fw), var(--fw) var(--fw));
  background: linear-gradient(180deg, rgba(255,255,255,.55) 0, rgba(255,255,255,0) 1.5px), linear-gradient(180deg, rgba(255,250,235,.26), rgba(255,250,235,0) 70%), var(--grain-h2), var(--wood); background-size: 100% 100%, 100% 100%, 100% 100%, auto; }
/* bottom strip: in shade */
.frame::after { clip-path: polygon(0 100%, 100% 100%, calc(100% - var(--fw)) calc(100% - var(--fw)), var(--fw) calc(100% - var(--fw)));
  background: linear-gradient(0deg, rgba(0,0,0,.5) 0, rgba(0,0,0,0) 1.5px), linear-gradient(0deg, rgba(0,0,0,.26), rgba(0,0,0,0) 75%), var(--grain-h2b), var(--wood); background-size: 100% 100%, 100% 100%, 100% 100%, auto; }
/* left strip: lightly lit, grain runs top-bottom */
.frame .mat::before { clip-path: polygon(0 0, var(--fw) var(--fw), var(--fw) calc(100% - var(--fw)), 0 100%);
  background: linear-gradient(90deg, rgba(255,255,255,.45) 0, rgba(255,255,255,0) 1.5px), linear-gradient(90deg, rgba(255,250,235,.12), rgba(255,250,235,0) 70%), var(--grain-v2), var(--wood); background-size: 100% 100%, 100% 100%, 100% 100%, auto; }
/* right strip: in shade */
.frame .mat::after { clip-path: polygon(100% 0, 100% 100%, calc(100% - var(--fw)) calc(100% - var(--fw)), calc(100% - var(--fw)) var(--fw));
  background: linear-gradient(270deg, rgba(0,0,0,.45) 0, rgba(0,0,0,0) 1.5px), linear-gradient(270deg, rgba(0,0,0,.24), rgba(0,0,0,0) 75%), var(--grain-v2b), var(--wood); background-size: 100% 100%, 100% 100%, 100% 100%, auto; }
/* gold liner + a thin shadow line where the wood meets the painting */
.frame .mat { display: block; padding: 2px; background: linear-gradient(135deg, #ecd493, #a8843f 50%, #e2c27d); box-shadow: 0 0 0 1px rgba(30,15,5,.55), 0 0 6px 1px rgba(0,0,0,.35); }
.frame img { width: 100%; height: auto; }
@media (max-width: 520px) { .frame { --fw: 10px; } }
.detail-media .frame { --fw: 15px; }
.w-maple { --wood: var(--maple); }
.w-fir { --wood: var(--fir); }
.w-mahogany { --wood: var(--mahogany); }
.w-walnut { --wood: var(--walnut); }
.w-oak { --wood: var(--oak); }

/* Featured painting */
.opening { text-align: center; padding: clamp(40px, 6vw, 72px) 0 clamp(44px, 6vw, 72px); }
.opening .intro { margin-top: 0; }
.intro-title { margin: 0 0 18px; } /* same type as the other section headings (h2) */
.opening .flourish { margin-top: 34px; }
.intro { max-width: 640px; margin: 28px auto 0; font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 500; line-height: 1.6; color: var(--cream); }
.exhibition { margin: 30px auto 0; display: inline-block; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-soft); border-block: 1px solid var(--gold-soft); padding: 12px 24px; line-height: 1.8; }
.exhibition strong { display: block; font-family: var(--serif); font-size: 1.35rem; letter-spacing: .02em; text-transform: none; font-weight: 500; color: var(--gold); }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-deep { background: var(--texture), var(--night); border-block: 1px solid var(--rule); }
.section-sage { background: var(--texture), var(--sage); color: #2b2822; }
.section-sage h2, .section-sage h3 { color: #23201b; }
.section-sage .eyebrow { color: #2f2e24; }
.section-sage .flourish { color: #4d4b3e; }
.section-sage .flourish::before { background: linear-gradient(90deg, transparent, rgba(35,32,27,.4)); }
.section-sage .flourish::after { background: linear-gradient(90deg, rgba(35,32,27,.4), transparent); }
.section-head { text-align: center; margin-bottom: clamp(44px, 6vw, 72px); }
.section-lede { max-width: 640px; margin: 22px auto 0; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; line-height: 1.6; color: #1f1d17; }
.filters { display: flex; justify-content: center; gap: 6px 28px; flex-wrap: wrap; margin-top: 26px; }
.chip { font-family: var(--caps); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; padding: 6px 2px; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; }
.chip:hover { color: var(--cream); }
.chip span { font-family: var(--sans); letter-spacing: 0; opacity: .7; margin-left: 4px; }
.chip.is-active { color: var(--gold); border-bottom-color: var(--gold); }

/* Gallery grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(52px, 6vw, 80px) clamp(32px, 4vw, 56px); align-items: start; }
.card { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: center; cursor: pointer; }
.card .frame { transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s; }
.card:hover .frame { transform: translateY(-6px); box-shadow: inset 1px 1px 0 rgba(255,255,255,.14), inset -1px -1px 0 rgba(0,0,0,.5), 0 34px 50px -18px rgba(0,0,0,.9), 0 6px 14px rgba(0,0,0,.4); }
.card:focus-visible { outline: 1px solid var(--gold); outline-offset: 14px; }
.card .frame img { opacity: 0; transition: opacity .6s; }
.card .frame img.loaded { opacity: 1; }
.caption { display: block; margin-top: 22px; }
.caption .ttl { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--cream); line-height: 1.2; transition: color .2s; }
.card:hover .ttl { color: var(--gold); }
.caption .meta { display: block; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.caption .price { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.1rem; color: var(--cream-soft); }
.red-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red-dot); box-shadow: 0 0 0 2px rgba(179,38,30,.25); }
.skeleton { height: 340px; background: var(--umber); animation: pulse 1.4s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .45; } }
.error { text-align: center; color: var(--cream); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 7vw, 96px); align-items: center; }
.about .frame { width: 100%; }
.about h2 { margin-bottom: 22px; }
.about p { font-size: 1.08rem; color: var(--cream-soft); }
.about p:first-of-type::first-letter { font-family: var(--serif); float: left; font-size: 4.2em; line-height: .8; padding: 8px 12px 0 0; color: var(--gold); }
@media (max-width: 780px) { .about { grid-template-columns: 1fr; } .about .frame { max-width: 440px; margin: 0 auto; } }

/* Process */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: clamp(32px, 4vw, 52px); }
.step { text-align: center; }
.process { align-items: start; }
.step .frame { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.step .frame:hover { transform: translateY(-4px); }
.step-body { padding: 22px 6px 0; }
.step-num { font-family: var(--caps); font-size: .78rem; letter-spacing: .2em; color: #4d4b3e; }
.step h3 { font-size: 1.7rem; margin: 6px 0 10px; }
.step p { margin: 0; font-size: 1rem; font-weight: 400; color: #1f1d17; }

/* Full-screen photo viewer */
.step img { cursor: zoom-in; }
.lightbox { --cream: #f3e4cc; --cream-soft: #cdbca5; --muted: #9d8f7d; --gold: #c8a96a; --charcoal: #1b1815; --rule: rgba(243, 228, 204, .14); border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(10, 8, 6, .96); color: var(--cream); overflow: hidden; }
.lightbox::backdrop { background: #000; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: fade .25s ease-out; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 100%; max-height: 100%; padding: calc(56px + var(--safe-top)) calc(clamp(8px, 7vw, 96px) + var(--safe-side)) calc(24px + var(--safe-bottom)); }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.7); cursor: zoom-out; }
.lightbox figcaption { margin-top: 16px; text-align: center; font-family: var(--serif); font-size: 1.2rem; max-width: 760px; color: var(--cream); }
.lightbox figcaption small { display: block; margin-top: 4px; font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 64px; border: 0; background: none; color: var(--cream); font-size: 3rem; line-height: 1; cursor: pointer; opacity: .75; }
.lb-arrow:hover { color: var(--gold); opacity: 1; }
.lb-prev { left: clamp(2px, 1.5vw, 20px); }
.lb-next { right: clamp(2px, 1.5vw, 20px); }
.lb-arrow[hidden] { display: none; }

/* Contact */

/* Contact / Bring a View Home */
.contact { text-align: center; max-width: 680px; }
.contact p:not(.eyebrow) { font-family: var(--serif); font-size: 1.3rem; color: var(--cream); margin: 26px 0 34px; }

/* Text from the sheet is shown exactly as typed, including line breaks and spacing */
#about-inner p, .step p, #intro-text, #process-text, #contact-text, #detail-desc { white-space: pre-wrap; }

/* Slideshow inside a frame: photos stacked, cross-fading. The first photo sets the frame size. */
.slides { display: block; position: relative; overflow: hidden; background: #16120e; }
.slides img { transition: opacity 1.2s ease; }
.slides img + img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.slides img:not(.on), .card .frame .slides img:not(.on) { opacity: 0; pointer-events: none; }
.slides img.on, .card .frame .slides img.on { opacity: 1; }
.dots { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; gap: 2px; z-index: 2; }
.dot { width: 20px; height: 20px; display: grid; place-items: center; cursor: pointer; }
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); box-shadow: 0 0 3px rgba(0,0,0,.8); }
.dot.on::before { background: #fff; }
.detail-media .slides { width: min(100%, 640px); }
.detail-media .slides img:first-child { width: 100%; }

/* Easter egg: flying Jeff */
.footer-name { user-select: none; -webkit-user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.flyer { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; will-change: transform; }
.flyer img { position: absolute; left: 50%; top: 50%; max-width: none; transform: translate(-50%, -50%); filter: drop-shadow(0 0 6px rgba(255,225,150,.95)) drop-shadow(0 0 16px rgba(200,169,106,.7)); }
.flyer i { position: absolute; font-style: normal; color: var(--gold); font-size: 18px; animation: twinkle .6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .2; transform: scale(.6); } to { opacity: 1; transform: scale(1.15); } }

.venmo-fallback { font: 400 .88rem/1.5 var(--sans) !important; margin: 14px 0 0 !important; color: var(--muted) !important; }
.venmo-fallback a { color: #008cff; font-weight: 700; }

/* Footer */
.site-footer { background: var(--night); border-top: 1px solid var(--rule); text-align: center; padding: 48px 0 calc(40px + var(--safe-bottom)); font-size: .9rem; color: var(--muted); }
.site-footer p { margin: 4px 0; }
.footer-name { font-family: var(--caps); letter-spacing: .16em; text-transform: uppercase; font-size: 1.05rem; color: var(--cream); }
.copy { font-size: .78rem; margin-top: 16px !important; opacity: .7; }

/* Detail dialog */
.detail { border: 1px solid var(--rule); padding: 0; width: min(1140px, 100% - 28px); max-height: calc(100dvh - 28px); background: var(--texture), var(--charcoal); color: var(--cream-soft); box-shadow: 0 40px 100px rgba(0,0,0,.7); overflow: auto; }
.detail::backdrop { background: rgba(10, 8, 6, .86); }
.detail[open] { animation: fade .35s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }
.detail-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.detail-media { background: var(--night); display: flex; align-items: center; justify-content: center; padding: clamp(24px, 4vw, 56px); min-height: 320px; }
.detail-media .frame { width: fit-content; max-width: 100%; }
.detail-media img { max-height: calc(100dvh - 170px); width: auto; max-width: 100%; }
.detail-info { padding: clamp(26px, 4vw, 48px); display: flex; flex-direction: column; }
.detail-info h3 { font-size: clamp(2.1rem, 4vw, 3rem); margin-bottom: 12px; }
.status { align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 22px; color: var(--accent); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.sold { color: var(--red-text); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; margin: 0 0 22px; padding: 18px 0; border-block: 1px solid var(--rule); font-size: .96rem; }
.specs dt { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.specs dd { margin: 0; color: var(--cream); }
.desc { margin: 0 0 24px; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; color: var(--cream); }
.desc:empty { display: none; }
.note { font-size: .82rem; margin: 14px 0 0; color: var(--muted); }
.note:empty { display: none; }
.detail-nav { margin-top: auto; padding-top: 28px; display: flex; justify-content: space-between; gap: 8px; }
.link-btn { background: none; border: 0; font-family: var(--caps); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-soft); cursor: pointer; padding: 6px 0; }
.link-btn:hover { color: var(--gold); }
.close { position: absolute; top: calc(12px + var(--safe-top)); right: calc(14px + var(--safe-side)); z-index: 3; width: 42px; height: 42px; border: 1px solid var(--rule); background: var(--charcoal); color: var(--cream); font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: 50%; }
.close:hover { color: var(--gold); border-color: var(--gold); }
@media (max-width: 820px) {
  .detail { width: 100%; max-height: 100dvh; height: 100dvh; max-width: 100%; margin: 0; border: 0; }
  .detail-body { grid-template-columns: 1fr; padding: var(--safe-top) var(--safe-side) var(--safe-bottom); background: var(--night); }
  .detail-info { background: var(--charcoal); }
  .detail-media img { max-height: 52dvh; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
