/* Upstream Lion Art & Publishing
   Single dark theme by design: the brand (black + gold logo) lives in the dark. */

:root {
  --bg: #0d0c0b;
  --bg-2: #151311;
  --bg-3: #1d1a16;
  --line: rgb(236 228 212 / 0.12);
  --text: #ece4d4;
  --muted: #a99f8e;
  --gold: #d4a53c;
  --gold-hi: #e6bd5c;
  --ink-on-gold: #16120b;

  --f-mark: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-display: "Cormorant Garamond", "Garamond", Georgia, serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 68px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Paper grain, fixed and non-interactive so it never repaints on scroll */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
em { font-style: italic; }
h1, h2 { font-family: var(--f-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 em, h2 em { color: var(--gold); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--gold); color: var(--ink-on-gold); padding: 8px 14px; }
.skip:focus { left: 8px; }

.eyebrow {
  font-family: var(--f-mark); font-weight: 500;
  font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.1rem;
}

/* ---------- Buttons (all-sharp corners, site-wide) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font: 600 0.95rem/1 var(--f-body); letter-spacing: 0.02em; white-space: nowrap;
  padding: 0.95em 1.6em; text-decoration: none; border: 1px solid transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--gold { background: var(--gold); color: var(--ink-on-gold); }
.btn--gold:hover { background: var(--gold-hi); }
.btn--ghost { border-color: rgb(236 228 212 / 0.35); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--sm { padding: 0.75em 1.2em; font-size: 0.875rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4em;
  color: var(--gold); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgb(212 165 60 / 0.4); padding-bottom: 2px;
  transition: border-color .3s var(--ease);
}
.link-arrow:hover { border-color: var(--gold); }
.link-arrow i { transition: transform .3s var(--ease); }
.link-arrow:hover i { transform: translate(2px, -2px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgb(13 12 11 / 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand__main { font: 700 1.05rem/1 var(--f-mark); letter-spacing: 0.12em; text-transform: uppercase; }
.brand__main em { font-style: normal; color: var(--gold); }
.brand__sub { font: 500 0.62rem/1 var(--f-mark); letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-size: 0.92rem; color: var(--muted); transition: color .25s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); width: 42px; height: 42px; font-size: 1.3rem; cursor: pointer; }

@media (max-width: 860px) {
  .nav__toggle { display: inline-grid; place-items: center; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 18px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { display: block; padding: 12px 0; font-size: 1.05rem; color: var(--text); }
}
@media (max-width: 420px) { .nav .btn--sm { display: none; } }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100dvh - var(--nav-h));
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding-block: clamp(40px, 6vw, 88px);
}
.hero h1 { font-size: clamp(2.4rem, 4.2vw, 4.1rem); max-width: 20ch; padding-bottom: 0.08em; }
.hero h1 em { font-weight: 500; }
.hero__sub { margin-top: 1.4rem; font-size: 1.15rem; color: var(--muted); max-width: 44ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.2rem; }
.hero__art { position: relative; justify-self: end; width: min(100%, 470px); }
.hero__art::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px;
  border: 1px solid rgb(212 165 60 / 0.45); pointer-events: none;
}
.hero__art img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 30px 80px rgb(0 0 0 / 0.55); }
@media (min-width: 861px) {
  .hero__art { width: min(100%, 470px, calc((100dvh - var(--nav-h) - 96px) * 0.8)); }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__art { justify-self: center; width: min(100%, 420px); margin-top: 12px; }
}

/* Hero entry */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise .9s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .08s; }
  .hero__copy > :nth-child(3) { animation-delay: .16s; }
  .hero__copy > :nth-child(4) { animation-delay: .24s; }
  .hero__art { animation: rise 1.1s .2s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Section rhythm ---------- */
main > section { padding-block: clamp(72px, 10vw, 140px); }
.section-head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2, .live h2, .books h2, .bento__text h2, .events h2, .about h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
.section-head p { margin-top: 1rem; color: var(--muted); }

/* ---------- Work: masonry ---------- */
.masonry { columns: 3 280px; column-gap: 18px; }
.tile {
  display: block; width: 100%; margin: 0 0 18px; padding: 0; border: 0; background: var(--bg-2);
  cursor: zoom-in; overflow: hidden; break-inside: avoid;
}
.tile img { width: 100%; transition: transform .8s var(--ease), filter .6s var(--ease); filter: saturate(0.92); }
.tile:hover img { transform: scale(1.035); filter: saturate(1.05); }

/* ---------- Live painting ---------- */
.live { background: var(--bg-2); border-block: 1px solid var(--line); }
.live__grid { display: grid; grid-template-columns: 0.8fr 2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.live__copy p { margin-top: 1.2rem; color: var(--muted); max-width: 40ch; }
.live__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.live__steps li:nth-child(2) { margin-top: 48px; }
.live__steps li:nth-child(3) { margin-top: 96px; }
.live__steps img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.live__steps span { display: block; margin-top: 10px; font: 500 0.8rem/1 var(--f-mark); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 860px) {
  .live__grid { grid-template-columns: 1fr; }
  .live__steps { gap: 10px; }
  .live__steps li:nth-child(2) { margin-top: 24px; }
  .live__steps li:nth-child(3) { margin-top: 48px; }
  .live__steps span { font-size: 0.68rem; letter-spacing: 0.14em; }
}

/* ---------- Books ---------- */
.books__feature { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.books__cover img { width: 100%; box-shadow: 0 30px 80px rgb(0 0 0 / 0.6); }
.books__copy p { color: var(--muted); max-width: 52ch; }
.books__copy h2 + p { margin-top: 1.4rem; }
.books__copy p + p { margin-top: 1rem; }
.books__copy em { color: var(--text); }
.books__copy .link-arrow { margin-top: 2rem; }
.books__pages {
  display: grid; grid-template-columns: 1.1fr 1fr 0.8fr; gap: 18px; align-items: end;
  margin-top: clamp(48px, 7vw, 96px);
}
.books__pages img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.books__pages figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--muted); }
@media (max-width: 860px) {
  .books__feature { grid-template-columns: 1fr; }
  .books__cover { max-width: 420px; }
  .books__pages { grid-template-columns: 1fr 1fr; }
  .books__pages figure:last-child { display: none; }
}

/* ---------- Resin bento (6 cells: text + 5 images) ---------- */
.bento {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, clamp(240px, 26vw, 380px));
  grid-template-areas:
    "text text a b"
    "c d a e";
}
.bento__a img { object-position: 50% 40%; }
.bento > * { min-height: 0; overflow: hidden; background: var(--bg-2); }
.bento figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.bento figure:hover img { transform: scale(1.04); }
.bento__text {
  grid-area: text; padding: clamp(24px, 3vw, 44px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.1rem;
  background:
    radial-gradient(120% 90% at 0% 0%, rgb(212 165 60 / 0.14), transparent 60%),
    var(--bg-3);
  border: 1px solid var(--line);
}
.bento__text p { color: var(--muted); max-width: 46ch; }
.bento__a { grid-area: a; } .bento__b { grid-area: b; } .bento__c { grid-area: c; } .bento__d { grid-area: d; } .bento__e { grid-area: e; }
@media (max-width: 960px) {
  .bento {
    grid-template-columns: 1fr 1fr; grid-template-rows: auto;
    grid-template-areas: "text text" "a b" "c d" "e e";
  }
  .bento figure { aspect-ratio: 3 / 4; }
  .bento__e { aspect-ratio: 16 / 10 !important; }
}

/* ---------- Marquee (the only one on the page) ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 22px; }
.marquee__track { display: flex; width: max-content; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li {
  font: 500 clamp(1.1rem, 2vw, 1.5rem)/1 var(--f-display); font-style: italic; white-space: nowrap; color: var(--muted);
  padding-inline: 1.4em; position: relative;
}
.marquee li::after { content: "\2726"; position: absolute; right: -0.35em; color: var(--gold); font-style: normal; font-size: 0.7em; top: 0.15em; }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: slide 60s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee ul[aria-hidden] { display: none; }
  .marquee ul { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Events: horizontal snap strip ---------- */
.events__head { max-width: calc(var(--wrap)); }
.events__head p:not(.eyebrow) { margin-top: 1rem; color: var(--muted); max-width: 56ch; }
.events__head .link-arrow { margin-top: 1.6rem; }
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 30vw, 400px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-top: clamp(32px, 5vw, 56px);
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  padding-bottom: 18px;
  scrollbar-color: rgb(212 165 60 / 0.5) transparent;
}
.strip figure { scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.strip figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--muted); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__img { aspect-ratio: 4 / 5; overflow: hidden; }
.about__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.about__copy p { color: var(--muted); max-width: 50ch; margin-top: 1.2rem; }
.about__copy h2 + p { margin-top: 1.6rem; }
.about__note { font-size: 0.95rem; border-left: 2px solid var(--gold); padding-left: 14px; }
.about__note em { color: var(--text); }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__img { max-width: 420px; }
}

/* ---------- Contact ---------- */
.contact { text-align: center; border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 18ch; margin-inline: auto; }
.contact__email {
  display: inline-block; margin-top: 2rem;
  font: 600 clamp(1.3rem, 3.2vw, 2.2rem)/1.2 var(--f-display); color: var(--gold);
  text-decoration: none; border-bottom: 1px solid rgb(212 165 60 / 0.4); overflow-wrap: anywhere;
  transition: border-color .3s var(--ease), color .3s;
}
.contact__email:hover { color: var(--gold-hi); border-color: var(--gold-hi); }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; padding: 0; margin: 2.4rem 0 0; }
.socials a {
  display: inline-flex; align-items: center; gap: 0.5em; padding: 0.7em 1.2em;
  border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 0.95rem;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.socials a:hover { border-color: var(--gold); color: var(--gold); }
.socials i { font-size: 1.2em; }

/* ---------- Footer ---------- */
.footer {
  display: flex; align-items: center; gap: 18px; justify-content: center;
  padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; text-align: left;
}
.footer img { width: 56px; height: 56px; object-fit: cover; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92dvh;
  color: var(--text);
}
.lightbox::backdrop { background: rgb(8 7 6 / 0.92); backdrop-filter: blur(4px); }
.lightbox img { max-width: 100%; max-height: 82dvh; width: auto; margin-inline: auto; }
.lightbox__caption { text-align: center; margin: 12px auto 0; color: var(--muted); font-size: 0.95rem; max-width: 60ch; }
.lightbox__close {
  position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; z-index: 1;
  width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.4rem;
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line); cursor: pointer;
}
.lightbox__close:hover { border-color: var(--gold); color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: rise .45s var(--ease); }
}

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Lightbox process strip ---------- */
.lightbox img { max-height: 72dvh; }
.lightbox__steps {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-top: 14px;
}
.lightbox__steps button {
  padding: 0; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer;
  width: 64px; height: 64px; opacity: 0.55; transition: opacity .25s, border-color .25s;
}
.lightbox__steps button:hover { opacity: 0.85; }
.lightbox__steps button[aria-current="true"] { opacity: 1; border-color: var(--gold); }
.lightbox__steps img { width: 100%; height: 100%; max-height: none; object-fit: cover; }

/* ---------- Gallery page ---------- */
.gallery-page > section { padding-block: 0; }
.g-head { padding-block: clamp(48px, 7vw, 96px) clamp(28px, 4vw, 44px) !important; }
.g-head h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); }
.g-head p { margin-top: 1rem; color: var(--muted); max-width: 56ch; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2rem; }
.filters button {
  font: 500 0.92rem/1 var(--f-body); color: var(--muted); background: transparent;
  border: 1px solid var(--line); padding: 0.75em 1.2em; cursor: pointer;
  transition: color .25s, border-color .25s, background-color .25s;
}
.filters button:hover { color: var(--text); border-color: rgb(236 228 212 / 0.35); }
.filters button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink-on-gold); }
.g-item { break-inside: avoid; margin-bottom: 26px; }
.g-item .tile { margin-bottom: 10px; }
.g-item figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 0.88rem; color: var(--muted); }
.g-item figcaption strong { font: 600 1.25rem/1.2 var(--f-display); color: var(--text); }
.g-steps { color: var(--gold); }
.g-medium { font-style: italic; color: var(--text); opacity: 0.8; margin-top: 2px; }
.g-cta { text-align: center; padding-block: clamp(72px, 10vw, 120px) !important; }
.g-cta h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 20ch; margin-inline: auto; }
.g-cta p { margin: 1rem auto 2rem; color: var(--muted); max-width: 48ch; }
.nav__links a[aria-current="page"] { color: var(--text); }

.work__more { margin-top: clamp(24px, 4vw, 40px); }

/* ---------- Web design ---------- */
.webdesign { background: var(--bg-2); border-block: 1px solid var(--line); }
.webdesign__head { max-width: 60ch; margin-bottom: clamp(36px, 5vw, 64px); }
.webdesign__head h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
.webdesign__head p:not(.eyebrow) { margin-top: 1rem; color: var(--muted); }
.project { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.project__shots { position: relative; display: block; padding: 0 0 8% 0; }
.project__desktop {
  width: 88%; border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgb(0 0 0 / 0.5);
  transition: transform .8s var(--ease);
}
.project__mobile {
  position: absolute; right: 0; bottom: 0; width: 27%;
  border: 6px solid #1d1a16; outline: 1px solid var(--line);
  box-shadow: 0 24px 50px rgb(0 0 0 / 0.6);
  transition: transform .8s var(--ease);
}
.project__shots:hover .project__desktop { transform: translateY(-4px); }
.project__shots:hover .project__mobile { transform: translateY(-8px); }
.project h3 { font: 600 clamp(1.6rem, 2.6vw, 2.2rem)/1.1 var(--f-display); }
.project__where { margin-top: 0.5rem; font-size: 0.9rem; color: var(--gold); }
.project__copy p:not(.project__where) { margin-top: 1.1rem; color: var(--muted); max-width: 48ch; }
.project__copy .link-arrow { margin-top: 1.6rem; }
@media (max-width: 860px) {
  .project { grid-template-columns: 1fr; }
}

/* ---------- Book shelf ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.books__cover figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--muted); }
.books__cover img { max-height: 640px; width: auto; max-width: 100%; }
.shelf {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 32px);
  margin-top: clamp(56px, 8vw, 104px);
}
.shelf__cover { display: block; overflow: hidden; box-shadow: 0 24px 50px rgb(0 0 0 / 0.55); }
.shelf__cover img { width: 100%; aspect-ratio: 618 / 800; object-fit: cover; transition: transform .8s var(--ease); }
.shelf__cover:hover img { transform: scale(1.03); }
.shelf__series { margin-top: 1.1rem; font: 500 0.7rem/1.3 var(--f-mark); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.shelf h3 { margin: 0.35rem 0 0; font: 600 1.45rem/1.15 var(--f-display); }
.shelf__blurb { margin-top: 0.5rem; font-size: 0.92rem; color: var(--muted); }
.shelf .link-arrow { margin-top: 0.9rem; font-size: 0.92rem; }
@media (max-width: 960px) { .shelf { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .shelf { grid-template-columns: 1fr; } }

/* ---------- Etsy links ---------- */
.events__links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 1.6rem; }
.events__links .link-arrow { margin-top: 0; }
.g-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Progress strips under paintings ---------- */
.g-process {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px;
  position: relative;
}
.g-process li { position: relative; }
.g-process li + li::before {
  content: ""; position: absolute; left: -6px; top: 50%; width: 6px; height: 1px;
  background: rgb(212 165 60 / 0.5);
}
.g-process button {
  display: block; width: 100%; padding: 0; cursor: zoom-in;
  border: 1px solid var(--line); background: var(--bg-2);
  aspect-ratio: 1; overflow: hidden;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.g-process button:hover { border-color: var(--gold); transform: translateY(-2px); }
.g-process li:last-child button { border-color: rgb(212 165 60 / 0.6); }
.g-process img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); transition: filter .25s; }
.g-process button:hover img { filter: none; }

/* =========================================================
   MULTI-PAGE LAYOUT
   ========================================================= */
main > section:first-child, main > .gallery-page:first-child > section:first-child { padding-top: clamp(40px, 6vw, 88px); }
.nav__links a[aria-current="page"] { color: var(--text); border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.inline-link { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.inline-link:hover { color: var(--gold-hi); }
.books h1, .events h1, .about h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); }

/* Page heads */
.page-head { max-width: 880px; padding-bottom: clamp(32px, 5vw, 56px) !important; }
.page-head h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.page-head p:not(.eyebrow) { margin-top: 1.2rem; color: var(--muted); font-size: 1.12rem; max-width: 60ch; }
.page-head .creds { font-size: 1rem; padding-left: 16px; border-left: 2px solid var(--gold); }
.page-head .creds strong { color: var(--text); font-weight: 600; }

/* Home hero with website screenshots */
.hero--web { grid-template-columns: 1fr 1.05fr; }
.hero__shots { justify-self: end; width: 100%; max-width: 640px; }
@media (prefers-reduced-motion: no-preference) {
  .hero__shots { animation: rise 1.1s .2s var(--ease) both; }
}
@media (max-width: 860px) {
  .hero--web { grid-template-columns: 1fr; gap: 40px; padding-block: 40px 56px; }
  .hero--web h1 { font-size: clamp(2.5rem, 10vw, 3.4rem); max-width: 14ch; }
  .hero__shots { justify-self: stretch; max-width: 560px; margin: 0 auto; }
}

/* Art band on home */
.artband { background: var(--bg-2); border-block: 1px solid var(--line); }
.artband__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.artband h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.artband h2 em { font-weight: 500; }
.artband__copy p { margin-top: 1.2rem; color: var(--muted); max-width: 46ch; }
.artband__copy .link-arrow { margin-top: 1.6rem; }
.artband__trio { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; align-items: end; }
.artband__trio a { display: block; overflow: hidden; }
.artband__trio a:nth-child(2) { margin-bottom: 32px; }
.artband__trio img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s var(--ease); }
.artband__trio a:first-child img { aspect-ratio: 5 / 4.6; }
.artband__trio a:hover img { transform: scale(1.04); }
@media (max-width: 860px) {
  .artband__grid { grid-template-columns: 1fr; }
  .artband__trio a:nth-child(2) { margin-bottom: 16px; }
}

/* Home hub: 4 link cards */
.hub {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, clamp(200px, 22vw, 300px));
  grid-template-areas: "books events etsy" "books about about";
}
.hub__card { position: relative; display: block; overflow: hidden; text-decoration: none; background: var(--bg-2); }
.hub__card:nth-child(1) { grid-area: books; }
.hub__card:nth-child(2) { grid-area: events; }
.hub__card:nth-child(3) { grid-area: etsy; }
.hub__card:nth-child(4) { grid-area: about; }
.hub__card img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.hub__card:hover img { transform: scale(1.04); }
.hub__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(13 12 11 / 0.92), rgb(13 12 11 / 0.15) 60%); }
.hub__label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(16px, 2vw, 24px); display: flex; flex-direction: column; gap: 4px; }
.hub__label strong { font: 600 clamp(1.4rem, 2.2vw, 1.8rem)/1.1 var(--f-display); color: var(--text); }
.hub__label span { font-size: 0.92rem; color: var(--muted); }
.hub__card:hover .hub__label strong { color: var(--gold); }
.hub__card--wide img { object-position: 50% 22%; }
@media (max-width: 860px) {
  .hub { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-template-areas: "books events" "books etsy" "about about"; grid-auto-rows: 200px; }
  .hub__card { min-height: 200px; }
}
@media (max-width: 480px) {
  .hub { grid-template-columns: 1fr; grid-template-areas: "books" "events" "etsy" "about"; grid-auto-rows: auto; }
  .hub__card { height: 220px; }
  .hub__card--tall { height: 320px; }
}

/* CTA band */
.cta-band { text-align: center; border-top: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 22ch; margin-inline: auto; }
.cta-band p { margin: 1rem auto 2rem; color: var(--muted); max-width: 52ch; }

/* Web design page */
.built { margin-top: clamp(40px, 6vw, 72px); }
.built h3 { font: 600 1.5rem/1.2 var(--f-display); }
.built__list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; }
.built__list li { color: var(--muted); padding-left: 18px; border-left: 2px solid rgb(212 165 60 / 0.5); }
.built__list strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
@media (max-width: 760px) { .built__list { grid-template-columns: 1fr; } }

.services h2, .how h2, .thissite h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.services__grid { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--bg); padding: clamp(22px, 2.6vw, 32px); }
.service i { font-size: 1.7rem; color: var(--gold); }
.service h3 { margin: 0.8rem 0 0.4rem; font: 600 1.35rem/1.2 var(--f-display); }
.service p { color: var(--muted); font-size: 0.96rem; }
@media (max-width: 900px) { .services__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services__grid { grid-template-columns: 1fr; } }

.how { background: var(--bg-2); border-block: 1px solid var(--line); }
.how__list { list-style: none; padding: 0; margin: clamp(28px, 4vw, 44px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.how__list li { position: relative; padding-top: 22px; border-top: 1px solid rgb(212 165 60 / 0.5); }
.how__list strong { display: block; font: 600 1.5rem/1.1 var(--f-display); color: var(--gold); }
.how__list span { display: block; margin-top: 0.6rem; color: var(--muted); font-size: 0.96rem; }
@media (max-width: 860px) { .how__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .how__list { grid-template-columns: 1fr; } }

.thissite { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.thissite img { width: 100%; box-shadow: 0 30px 70px rgb(0 0 0 / 0.5); }
.thissite p { margin-top: 1.1rem; color: var(--muted); max-width: 48ch; }
.thissite .link-arrow { margin-top: 1.4rem; }
@media (max-width: 860px) { .thissite { grid-template-columns: 1fr; } }

/* Contact page */
.contact--page { border-top: 0; }
.contact--page h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.contact__lead { margin-top: 1rem; color: var(--muted); }
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 2.6rem auto 0; max-width: 820px; text-align: left; }
.lane { border: 1px solid var(--line); background: var(--bg-2); padding: clamp(20px, 2.6vw, 30px); }
.lane i { font-size: 1.6rem; color: var(--gold); }
.lane h2 { margin: 0.7rem 0 0.4rem; font: 600 1.4rem/1.2 var(--f-display); }
.lane p { color: var(--muted); font-size: 0.96rem; }
@media (max-width: 640px) { .lanes { grid-template-columns: 1fr; } }

/* About page */
.about__lead { font: 500 clamp(1.25rem, 2vw, 1.55rem)/1.4 var(--f-display); color: var(--text) !important; }
.bio { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.bio h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 1.4rem; }
.bio__story > p { color: var(--muted); max-width: 62ch; margin-top: 1.1rem; }
.bio__story em { color: var(--text); }
.pullquote { margin: 2.4rem 0; padding: 0 0 0 22px; border-left: 2px solid var(--gold); }
.pullquote p { font: 500 italic clamp(1.4rem, 2.4vw, 1.9rem)/1.3 var(--f-display); color: var(--text); max-width: 30ch; }
.pullquote cite { display: block; margin-top: 0.9rem; font-style: normal; font-size: 0.88rem; color: var(--gold); }
.timeline { list-style: none; margin: 0; padding: 0; position: sticky; top: calc(var(--nav-h) + 32px); border-left: 1px solid rgb(212 165 60 / 0.4); }
.timeline li { position: relative; padding: 0 0 22px 24px; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 0.45em; width: 7px; height: 7px; background: var(--gold); }
.timeline li:last-child { padding-bottom: 0; }
.timeline__when { display: block; font: 600 1.15rem/1.25 var(--f-display); color: var(--text); }
.timeline__what { display: block; margin-top: 2px; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 860px) {
  .bio { grid-template-columns: 1fr; }
  .timeline { position: static; }
}
.lanes-about { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lane-card { position: relative; display: block; overflow: hidden; text-decoration: none; min-height: clamp(220px, 26vw, 340px); background: var(--bg-2); }
.lane-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.lane-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(13 12 11 / 0.94), rgb(13 12 11 / 0.2) 65%); }
.lane-card:hover img { transform: scale(1.04); }
.lane-card > span { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(18px, 2.4vw, 28px); color: var(--muted); font-size: 0.95rem; max-width: 46ch; }
.lane-card strong { display: block; font: 600 clamp(1.5rem, 2.4vw, 2rem)/1.1 var(--f-display); color: var(--text); margin-bottom: 4px; }
.lane-card:hover strong { color: var(--gold); }
@media (max-width: 640px) { .lanes-about { grid-template-columns: 1fr; } }

/* Etsy shop preview */
.shop { border-top: 1px solid var(--line); }
.shop__head h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.shop__head p { margin-top: 0.8rem; color: var(--muted); max-width: 56ch; }
.shop__head .link-arrow { margin-top: 1.2rem; }
.shop__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 22vw, 280px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-top: clamp(28px, 4vw, 44px); padding-bottom: 18px;
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-color: rgb(212 165 60 / 0.5) transparent;
}
.shop__card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.shop__card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg-2); border: 1px solid var(--line); transition: transform .6s var(--ease), border-color .3s; }
.shop__card:hover img { transform: translateY(-3px); border-color: var(--gold); }
.shop__title { margin-top: 6px; font: 600 1.1rem/1.25 var(--f-display); color: var(--text); }
.shop__price { font-size: 0.9rem; color: var(--gold); }
.nav__links a .ph { font-size: 0.85em; vertical-align: -1px; }

/* FAQ blocks */
.faq h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.faq__list { margin-top: clamp(24px, 3vw, 36px); max-width: 860px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font: 600 clamp(1.15rem, 1.8vw, 1.35rem)/1.3 var(--f-display); color: var(--text);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 400 1.6rem/1 var(--f-body); color: var(--gold); transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item summary:hover { color: var(--gold); }
.faq__item p { padding: 0 40px 22px 0; color: var(--muted); max-width: 70ch; }

/* Footer (multi-page) */
.footer { border-top: 1px solid var(--line); padding-block: 44px calc(44px + env(safe-area-inset-bottom, 0px)); padding-inline: 0; display: block; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 14px; text-decoration: none; font: 700 1rem/1.3 var(--f-mark); letter-spacing: 0.1em; text-transform: uppercase; }
.footer__brand small { font: 400 0.82rem/1.3 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.footer__brand img { width: 56px; height: 56px; object-fit: cover; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; }
.footer__links a { text-decoration: none; color: var(--muted); font-size: 0.92rem; }
.footer__links a:hover { color: var(--gold); }
.footer__copy { color: var(--muted); font-size: 0.85rem; text-align: right; }
.footer__copy a { color: var(--gold); text-decoration: none; }
@media (max-width: 860px) {
  .footer__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer__copy { text-align: center; }
}
