/* ==========================================================================
   Bethany Fikouras — site styles
   Light & airy gallery. Edit the tokens below to retune colours and type.
   ========================================================================== */

:root {
  --bg: #fbfaf7;          /* page background, warm white */
  --wall: #f2f0ea;        /* "gallery wall" behind paintings */
  --surface: #ffffff;
  --ink: #23221f;         /* main text */
  --ink-2: #55524b;       /* secondary text */
  --muted: #8a867d;       /* captions, labels */
  --line: #e6e2da;        /* hairlines */
  --accent: #5d6f60;      /* moss green, used sparingly */
  --sold: #b5483a;        /* the gallery red dot */

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, system-ui, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font: 500 12px/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 400 12.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; padding: 17px 26px;
  border: 1px solid currentColor; background: transparent; color: inherit;
  cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-solid:hover { background: #000; border-color: #000; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-arrow {
  display: inline-block;
  font: 400 12.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  transition: border-color .3s var(--ease);
}
.link-arrow:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(251, 250, 247, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  box-shadow: 0 1px 0 var(--line);
  transition: background .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { font-family: var(--serif); font-size: 27px; line-height: 1; text-decoration: none; letter-spacing: .01em; white-space: nowrap; }

.nav { display: flex; gap: 36px; }
.nav a {
  position: relative;
  font: 400 12.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; padding: 8px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 1px; height: 1px;
  background: currentColor; transition: right .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }

/* transparent header over the home-page hero */
.site-header.is-overlay {
  background: transparent; box-shadow: none; color: #fff;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.site-header.is-overlay.is-solid,
body.nav-open .site-header {
  background: rgba(251, 250, 247, .96); color: var(--ink); box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
}

.menu-btn {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  border: 0; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.menu-btn span { display: block; width: 24px; height: 1px; background: currentColor; transition: transform .35s var(--ease); }
body.nav-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
body.nav-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .brand { font-size: 23px; }
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--bg); color: var(--ink);
    padding: 4px var(--gutter) 28px;
    box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .18);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav a { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  .nav a::after { display: none; }
  body.nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
}

/* ---------- Hero / Ken Burns ---------- */
.hero {
  position: relative; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 560px;
  background: #3a3c39; color: #fff;
}
.kb { position: absolute; inset: 0; }
.kb-slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.6s ease; }
.kb-slide.is-active { opacity: 1; }
.kb-slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; will-change: transform; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18, 18, 16, .42) 0%, rgba(18, 18, 16, 0) 24%),
    linear-gradient(0deg, rgba(18, 18, 16, .58) 0%, rgba(18, 18, 16, .12) 42%, rgba(18, 18, 16, 0) 60%);
}
.hero-content { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(48px, 10vh, 104px); }
.hero h1 {
  font-size: clamp(3.2rem, 8.4vw, 7rem); line-height: .92; letter-spacing: -.015em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .25);
}
.hero .tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.3rem, 2.3vw, 1.75rem); line-height: 1.3;
  margin: 18px 0 34px; max-width: 30ch; color: rgba(255, 255, 255, .94);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn-solid { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn-solid:hover { background: transparent; color: #fff; }

.hero-meta {
  position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(48px, 10vh, 104px);
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px; text-align: right;
}
.kb-caption {
  font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.3;
  text-decoration: none; color: rgba(255, 255, 255, .92); max-width: 34ch;
  transition: opacity .5s ease;
}
.kb-caption:hover { text-decoration: underline; text-underline-offset: 4px; }
.kb-caption.is-changing { opacity: 0; }
.kb-controls { display: flex; align-items: center; gap: 14px; }
.kb-dots { display: flex; gap: 8px; align-items: center; }
.kb-dots span { position: relative; width: 26px; height: 2px; background: rgba(255, 255, 255, .32); overflow: hidden; }
.kb-dots span.is-active::after {
  content: ""; position: absolute; inset: 0; background: #fff;
  transform-origin: left; animation: kbprog var(--hold, 7000ms) linear forwards;
}
.hero.is-paused .kb-dots span.is-active::after { animation-play-state: paused; }
@keyframes kbprog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.kb-toggle {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55); background: transparent; color: #fff;
  display: grid; place-items: center; cursor: pointer; transition: background .3s, color .3s;
}
.kb-toggle:hover { background: #fff; color: var(--ink); }
.kb-toggle svg { width: 12px; height: 12px; }
.kb-toggle .i-play { display: none; }
.hero.is-paused .kb-toggle .i-play { display: block; }
.hero.is-paused .kb-toggle .i-pause { display: none; }

@media (max-width: 760px) {
  .hero-content { bottom: 104px; }
  .hero-meta { left: var(--gutter); right: var(--gutter); bottom: 30px; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
  .kb-caption { font-size: 15px; max-width: 22ch; }
  .btn { padding: 15px 20px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 124px) 0; }
.section-tight { padding-top: 0; }
.section-flush { padding: 0 0 clamp(72px, 9vw, 124px); }
.band { background: var(--wall); }
.h-lg { font-size: clamp(2.2rem, 4.4vw, 3.5rem); margin-bottom: 20px; }

.intro { max-width: 720px; margin: 0 auto; text-align: center; }
.intro h2 { font-size: clamp(2.4rem, 5vw, 3.9rem); margin-bottom: 22px; }
.intro p { color: var(--ink-2); font-size: 18.5px; margin-bottom: 30px; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-size: clamp(2.2rem, 4vw, 3.1rem); }

.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 7vw, 110px); align-items: center; }
.split p { color: var(--ink-2); font-size: 18px; max-width: 42ch; margin-bottom: 30px; }
.split-media { margin: 0; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e9e6df; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-media { order: -1; } }

/* ---------- "Paintings on a wall" grid (home: latest work) ---------- */
.wall-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.6vw, 34px); }
@media (max-width: 900px) { .wall-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .wall-grid { grid-template-columns: 1fr; } }
.wall { display: block; text-decoration: none; color: inherit; }
.wall-frame { position: relative; aspect-ratio: 4 / 5; background: var(--wall); overflow: hidden; }
.wall-inner { position: absolute; inset: 12%; display: flex; align-items: center; justify-content: center; }
.wall-frame img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 14px 30px -12px rgba(0, 0, 0, .32);
  transition: transform .7s var(--ease), opacity .6s ease;
}
.wall:hover .wall-frame img { transform: translateY(-5px); }
.wall-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 16px 2px 0; }
.wall-cap strong { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; }
.wall-cap span { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* images fade in once loaded */
.js .wall img, .js .jg-item img, .js .split-media img, .js .about-media img { opacity: 0; }
.js img.is-loaded { opacity: 1 !important; }

/* ---------- Page headers (inner pages) ---------- */
.page-head { padding: calc(var(--header-h) + clamp(48px, 8vw, 104px)) 0 clamp(32px, 4vw, 52px); }
.page-head h1 { font-size: clamp(3rem, 6.4vw, 5.2rem); }
.page-head p { color: var(--ink-2); font-size: 19px; max-width: 52ch; margin-top: 18px; }

/* ---------- Portfolio: justified gallery (keeps every painting uncropped) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip {
  font: 400 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  padding: 11px 16px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer;
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.jg { --row-h: 310px; display: flex; flex-wrap: wrap; gap: clamp(10px, 1.4vw, 18px); }
.jg::after { content: ""; flex-grow: 999999; }
.jg-item {
  position: relative; display: block; margin: 0; padding: 0; border: 0;
  flex-grow: calc(var(--r, .8) * 100);
  flex-basis: calc(var(--r, .8) * var(--row-h));
  background: var(--wall); overflow: hidden; cursor: zoom-in; text-align: left;
}
.jg-item::before { content: ""; display: block; padding-bottom: calc(100% / var(--r, .8)); }
.jg-item img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease), opacity .6s ease;
}
.jg-item:hover img { transform: scale(1.035); }
.jg-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 48px 16px 14px; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
  opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.jg-item .cap strong { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.2; }
.jg-item .cap em { font-style: normal; font-size: 13px; opacity: .85; }
.jg-item:hover .cap, .jg-item:focus-visible .cap { opacity: 1; transform: none; }
@media (max-width: 900px) { .jg { --row-h: 220px; } }
@media (max-width: 560px) {
  .jg-item { flex-basis: 100%; }
  .jg-item .cap { opacity: 1; transform: none; }
}

.badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  font: 500 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 7px 10px;
}
.badge i, .sold-note i { width: 8px; height: 8px; border-radius: 50%; background: var(--sold); display: inline-block; }

.status-msg { color: var(--muted); padding: 40px 0; font-size: 16px; }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(251, 250, 247, .985);
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s;
}
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 70px clamp(60px, 8vw, 130px) 18px; min-height: 0; }
.lb-img {
  max-width: 100%; max-height: calc(100vh - 250px); max-height: calc(100svh - 250px);
  width: auto; height: auto; object-fit: contain;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 24px 50px -20px rgba(0, 0, 0, .35);
  opacity: 0; transition: opacity .4s ease;
}
.lb-img.is-loaded { opacity: 1; }
.lb-stage.is-loading::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px;
  border: 1px solid var(--line); border-top-color: var(--ink); border-radius: 50%;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.lb-info { padding: 6px var(--gutter) 30px; text-align: center; }
.lb-title { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.lb-meta { color: var(--muted); font-size: 14px; letter-spacing: .04em; margin: 6px 0 0; }
.lb-desc { max-width: 62ch; margin: 10px auto 0; color: var(--ink-2); font-size: 15.5px; }
.lb-desc:empty { display: none; }
.lb-actions { margin-top: 16px; display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; }
.sold-note { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.lb-count { position: absolute; top: 28px; left: 26px; font-size: 12px; letter-spacing: .22em; color: var(--muted); }
.lb-btn {
  position: absolute; width: 50px; height: 50px; border: 0; background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; opacity: .7; transition: opacity .2s;
}
.lb-btn:hover { opacity: 1; }
.lb-btn svg { width: 26px; height: 26px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 6px; top: 45%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 45%; transform: translateY(-50%); }
@media (max-width: 560px) {
  .lb-stage { padding: 64px 12px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-info { padding-bottom: 76px; }
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(36px, 7vw, 110px); align-items: start; }
.about-media { margin: 0; position: sticky; top: calc(var(--header-h) + 36px); }
.about-media .frame { background: var(--wall); padding: 11%; }
.about-media img { width: 100%; height: auto; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 18px 36px -14px rgba(0, 0, 0, .3); transition: opacity .6s ease; }
.about-media figcaption { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 17px; margin-top: 12px; }
.about-media figcaption:empty { display: none; }
.about-body p { color: var(--ink-2); font-size: 18px; }
.about-body .lede { font-family: var(--serif); color: var(--ink); font-size: clamp(1.6rem, 2.6vw, 2.05rem); line-height: 1.32; margin-bottom: 1em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; margin: 40px 0 40px; padding: 0; border-top: 1px solid var(--line); }
.fact { padding-top: 22px; }
.fact dt { font: 500 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 10px 0 0; font-family: var(--serif); font-size: 22px; line-height: 1.25; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-media { position: static; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .fact { padding: 18px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Commissions ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(22px, 3vw, 40px); counter-reset: step; }
.steps li { border-top: 1px solid var(--ink); padding-top: 20px; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 500 12px/1 var(--sans); letter-spacing: .22em; color: var(--muted); margin-bottom: 18px; }
.steps h3 { font-size: 26px; margin-bottom: 10px; }
.steps p { color: var(--ink-2); font-size: 16px; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.form-wrap { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(36px, 7vw, 110px); align-items: start; }
.form-intro p { color: var(--ink-2); font-size: 17.5px; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font: 500 11.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.field label small { font: inherit; color: var(--muted); letter-spacing: .1em; text-transform: none; }
.field input, .field select, .field textarea {
  width: 100%; font: 300 17px/1.5 var(--sans); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 0;
  padding: 14px 16px; -webkit-appearance: none; appearance: none;
  transition: border-color .2s ease;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2355524b' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.form-status { font-size: 15.5px; margin: 0; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: var(--sold); }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 46px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px 40px; flex-wrap: wrap; }
.footer-brand { font-family: var(--serif); font-size: 24px; color: var(--ink); line-height: 1.1; text-decoration: none; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Demo-mode note ---------- */
.demo-note {
  position: fixed; left: 16px; bottom: 16px; z-index: 90; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; font-size: 13px; line-height: 1.4; padding: 10px 10px 10px 16px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4);
}
.demo-note code { font-size: 12px; background: rgba(255, 255, 255, .12); padding: 1px 5px; }
.demo-note button { border: 0; background: transparent; color: #fff; opacity: .7; cursor: pointer; font-size: 18px; line-height: 1; padding: 4px 6px; }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: flex; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity .4s ease; }
  .kb-slide { transition-duration: .8s; }
  .wall:hover .wall-frame img, .jg-item:hover img { transform: none; }
}
