/* ==========================================================================
   gallery.css — site-wide stylesheet for jeffgallery.com (replaces site.css).
   Colour is the system: white gallery field, walls painted in colours taken
   from the paintings (data/palettes.json), titles set like wall text, black
   close. Prefix g-. Sections:
   00 tokens · 01 base · 02 type & controls · 03 nav · 04 footer · 05 walls
   06 rooms & grids · 07 cards · 08 forms · 09 lightbox & video · 10 pages
   11 media queries
   ========================================================================== */

/* ---- 00 tokens ---------------------------------------------------------- */
:root {
  color-scheme: light;
  --g-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --g-sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --g-ink: #111111;
  --g-ink-2: #5d5a55;
  --g-line: #e6e4df;
  --g-paper: #ffffff;
  --g-black: #0a0a0a;
  --g-yellow: #f2c230;       /* the lion's mane: focus ring, play button */
  --g-signature: #e2261b;    /* Jeff's signature red: used only for the signature */
  --g-max: 1280px;
  --g-gutter: clamp(20px, 4vw, 56px);
  --g-nav-h: 68px;
  --g-s1: 8px; --g-s2: 16px; --g-s3: 24px; --g-s4: 40px; --g-s5: 64px; --g-s6: 104px; --g-s7: 144px;
  --g-display: clamp(2.6rem, 6.2vw, 6.4rem);
  --g-h1: clamp(2.2rem, 4.4vw, 4.2rem);
  --g-h2: clamp(1.8rem, 3vw, 2.8rem);
  --g-z-nav: 120; --g-z-sheet: 130; --g-z-lightbox: 900; --g-z-skip: 1000;
  /* breakpoints used below: 1060 (two columns → one), 820 (nav collapses), 600 (phones) */
}

/* ---- 01 base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--g-sans); font-size: 16px; line-height: 1.5; color: var(--g-ink); background: var(--g-paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
main { display: block; }
h1, h2, h3, h4 { font-family: var(--g-serif); font-weight: 400; letter-spacing: -0.015em; margin: 0; line-height: 1.1; }
p { margin: 0; }
img, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--g-yellow); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: var(--g-s2); top: var(--g-s2); z-index: var(--g-z-skip); transform: translateY(-200%); padding: 0.75rem 1rem; background: var(--g-ink); color: var(--g-paper); text-decoration: none; }
.skip-link:focus { transform: none; }
.g-container { width: min(calc(100% - var(--g-gutter) * 2), var(--g-max)); margin-inline: auto; }
/* any image inside a fixed box fills it completely: equal cards, no odd proportions */
.g-fill picture, .g-fill img { width: 100%; height: 100%; }
.g-fill img { object-fit: cover; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } html { scroll-behavior: auto; } }

/* ---- 02 type & controls ------------------------------------------------- */
.g-h1 { font-size: var(--g-h1); max-width: 18ch; }
.g-h2 { font-size: var(--g-h2); max-width: 22ch; }
.g-display { font-size: var(--g-display); font-style: italic; line-height: 0.95; }
.g-lede { font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.55; color: var(--g-ink-2); max-width: 50ch; margin-top: var(--g-s2); }
.g-kicker { font-size: 0.88rem; color: var(--g-ink-2); margin-bottom: var(--g-s2); }
.g-spec { font-size: 0.95rem; line-height: 1.6; color: var(--g-ink-2); }
.g-prose { max-width: 62ch; font-size: 1.05rem; line-height: 1.65; }
.g-prose p + p { margin-top: var(--g-s2); }
.g-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--g-s3); margin-top: var(--g-s4); }
.g-button { display: inline-block; padding: 0.95rem 1.5rem; background: var(--wall, var(--g-ink)); color: var(--wall-ink, var(--g-paper)); text-decoration: none; font-size: 0.95rem; font-weight: 500; border: 1px solid var(--wall, var(--g-ink)); cursor: pointer; }
.g-button:hover { filter: brightness(0.88); color: var(--wall-ink, var(--g-paper)); }
.g-button:disabled, .g-button[aria-disabled="true"] { background: var(--g-line); color: var(--g-ink-2); border-color: var(--g-line); cursor: default; }
.g-button--outline { background: transparent; color: var(--wall, var(--g-ink)); border-color: var(--wall, var(--g-ink)); }
.g-button--outline:hover { background: var(--wall, var(--g-ink)); color: var(--wall-ink, var(--g-paper)); filter: none; }
.g-button--onwall { background: var(--wall-ink, #fff); color: var(--wall, #111); border-color: var(--wall-ink, #fff); }
.g-button--onwall:hover { background: var(--wall-ink, #fff); color: var(--wall, #111); opacity: 0.92; }
.g-button--light { background: var(--g-paper); color: var(--g-black); border-color: var(--g-paper); }
.g-button--light:hover { background: var(--g-yellow); color: var(--g-black); border-color: var(--g-yellow); }
.g-link { color: var(--g-ink); font-size: 0.95rem; text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; text-decoration-color: var(--wall, var(--g-ink)); }
.g-link:hover { text-decoration-thickness: 2px; color: var(--wall, var(--g-ink)); }
.g-link--onwall { color: var(--wall-ink, #fff); }
.g-link--light { color: var(--g-paper); }
.g-chip { display: inline-block; padding: 7px 14px; border: 1px solid var(--g-line); border-radius: 999px; background: var(--g-paper); color: var(--g-ink); font-size: 0.9rem; text-decoration: none; cursor: pointer; }
.g-chip:hover { border-color: var(--g-ink); }
.g-chip.is-active, .g-chip[aria-pressed="true"] { background: var(--wall, var(--g-ink)); color: var(--wall-ink, var(--g-paper)); border-color: var(--wall, var(--g-ink)); }
.g-chip:hover { border-color: var(--wall, var(--g-ink)); }
.g-notice { padding: var(--g-s2) var(--g-s3); border-left: 3px solid var(--wall, var(--g-ink)); background: #fbfaf7; font-size: 0.95rem; line-height: 1.5; }

/* ---- 03 nav ------------------------------------------------------------- */
.g-nav { position: sticky; top: 0; z-index: var(--g-z-nav); height: var(--g-nav-h); background: var(--g-paper); border-bottom: 1px solid var(--g-line); }
.g-nav__inner { width: min(calc(100% - var(--g-gutter) * 2), var(--g-max)); margin-inline: auto; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--g-s4); }
.g-nav__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--g-ink); min-width: max-content; }
.g-nav__sun { width: 30px; height: 30px; object-fit: contain; }
.g-nav__name { font-family: var(--g-serif); font-size: 1.15rem; letter-spacing: -0.01em; }
.g-nav__links { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); }
.g-nav__links a { color: var(--g-ink); text-decoration: none; font-size: 0.94rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.g-nav__links a:hover, .g-nav__links a[aria-current="page"] { border-bottom-color: var(--wall, var(--g-ink)); }
.g-nav__close { display: none; }
.g-nav__contact { font-weight: 500; }
.g-nav__cart { display: inline-flex; align-items: center; gap: 6px; }
.g-nav__count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--wall, var(--g-ink)); color: var(--wall-ink, var(--g-paper)); font-size: 0.72rem; line-height: 20px; text-align: center; }
.g-nav__count:empty, .g-nav__count[data-cart-count="0"] { display: none; }
.g-nav__toggle { display: none; background: none; border: 1px solid var(--g-line); width: 44px; height: 44px; padding: 0; cursor: pointer; }
.g-nav__bars { display: grid; gap: 6px; width: 20px; margin-inline: auto; }
.g-nav__bars span { display: block; height: 2px; background: var(--g-ink); }

/* ---- 04 the close: one band painted in the page's colour ---------------- */
.g-foot { background: var(--wall, #1b5e66); color: var(--wall-ink, #fff); margin-top: var(--g-s7); }
.g-foot__inner { width: min(calc(100% - var(--g-gutter) * 2), var(--g-max)); margin-inline: auto; padding: var(--g-s5) 0; display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: var(--g-s3) var(--g-s6); align-items: center; }
.g-foot__signature { display: block; }
.g-foot__signature img { width: 100%; filter: brightness(0) invert(1); opacity: 0.95; }
.g-foot__links { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: flex-end; }
.g-foot__links a { color: var(--wall-ink, #fff); text-decoration: none; font-family: var(--g-serif); font-size: 1.15rem; border-bottom: 1px solid transparent; }
.g-foot__links a:hover { border-bottom-color: var(--wall-ink, #fff); }
.g-foot__line { grid-column: 1 / -1; font-size: 0.85rem; opacity: 0.75; color: var(--wall-ink, #fff); margin-top: var(--g-s2); }

/* ---- 05 walls: a work on a wall painted in its own colour --------------- */
.g-wall { background: var(--wall, #256772); color: var(--wall-ink, #fff); }
.g-wall h1, .g-wall h2, .g-wall p, .g-wall dt, .g-wall dd { color: var(--wall-ink, #fff); }
.g-wall__inner { width: min(calc(100% - var(--g-gutter) * 2), var(--g-max)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: var(--g-s6); align-items: center; padding: var(--g-s7) 0; }
.g-wall__inner--compact { padding: var(--g-s6) 0; }
.g-wall__image { display: block; }
.g-wall__image img { width: 100%; box-shadow: 0 50px 80px -30px rgba(0, 0, 0, 0.6), 0 12px 24px -12px rgba(0, 0, 0, 0.5); }
.g-wall__label .g-kicker { color: var(--wall-ink, #fff); opacity: 0.85; }
.g-wall__spec { margin-top: var(--g-s3); font-size: 1.05rem; line-height: 1.55; opacity: 0.9; }
.g-wall__price { margin-top: var(--g-s2); font-family: var(--g-serif); font-size: 1.6rem; }
.g-wall__note { margin-top: var(--g-s3); font-size: 1.05rem; line-height: 1.5; max-width: 38ch; opacity: 0.92; }
.g-wall--text .g-wall__inner { grid-template-columns: 1fr; padding: var(--g-s6) 0; }
/* objects (studio finds) are photographed small: show them at a natural size, not blown up */
.g-wall--object .g-wall__inner { grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr); }
.g-wall--object .g-wall__image, .g-wall--object .g-zoom { justify-self: center; width: min(100%, 440px); }
.g-wall--object .g-wall__image img, .g-wall--object .g-zoom img { box-shadow: 0 40px 60px -30px rgba(0, 0, 0, 0.55); }

/* page head (white): title set as wall text */
.g-head { width: min(calc(100% - var(--g-gutter) * 2), var(--g-max)); margin-inline: auto; padding: var(--g-s5) 0 var(--g-s4); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--g-s4); align-items: end; }
.g-head--stack { grid-template-columns: 1fr; }
.g-head h1 { font-size: var(--g-h1); max-width: 16ch; }
.g-head .g-lede { justify-self: end; max-width: 44ch; margin-top: 0; }

/* ---- 06 rooms & grids --------------------------------------------------- */
.g-section { width: min(calc(100% - var(--g-gutter) * 2), var(--g-max)); margin-inline: auto; padding: var(--g-s5) 0; }
.g-section--rule { border-top: 2px solid var(--wall, var(--g-line)); }
.g-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--g-s3); margin-bottom: var(--g-s4); }
.g-room { --room-h: clamp(300px, 56vh, 620px); display: flex; align-items: flex-end; gap: clamp(40px, 6vw, 112px); padding: var(--g-s3) var(--g-gutter) var(--g-s4); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--g-gutter); scrollbar-width: none; border-top: 1px solid var(--g-line); border-bottom: 1px solid var(--g-line); }
.g-room::-webkit-scrollbar { display: none; }
.g-piece { flex: 0 0 auto; margin: 0; scroll-snap-align: start; display: grid; gap: 14px; }
.g-piece__frame { display: block; height: calc(var(--room-h) * var(--scale, 1)); }
.g-piece__frame picture { height: 100%; }
.g-piece__frame img { height: 100%; width: auto; max-width: none; box-shadow: 0 30px 50px -28px rgba(0, 0, 0, 0.5); }
.g-piece figcaption { display: grid; gap: 2px; font-size: 0.9rem; color: var(--g-ink-2); max-width: 32ch; }
.g-piece__title { font-family: var(--g-serif); font-style: italic; font-size: 1.3rem; color: var(--g-ink); text-decoration: none; }
.g-piece__title:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.g-piece__price { color: var(--wall, var(--g-ink)); }
.g-piece--end { align-self: stretch; display: grid; place-items: center; min-width: 240px; padding: 0 var(--g-s4); border: 2px solid var(--wall, var(--g-ink)); color: var(--wall, var(--g-ink)); text-decoration: none; font-family: var(--g-serif); font-size: 1.4rem; }
.g-piece--end:hover { background: var(--wall, var(--g-ink)); color: var(--wall-ink, var(--g-paper)); }
.g-arrows { display: flex; gap: 8px; }
.g-arrow { width: 52px; height: 52px; border: 1px solid var(--wall, var(--g-ink)); background: var(--g-paper); color: var(--wall, var(--g-ink)); font-size: 1.3rem; cursor: pointer; }
.g-arrow:hover { background: var(--wall, var(--g-ink)); color: var(--wall-ink, var(--g-paper)); }

/* surfaces: identical boxes, image fills each one completely */
.g-surfaces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-surfaces--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-surfaces--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-surface { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; text-decoration: none; color: var(--g-paper); background: var(--g-black); border-right: 3px solid var(--card, var(--g-paper)); border-bottom: 6px solid var(--card, var(--g-paper)); }
.g-surface:last-child { border-right: 0; }
.g-surfaces--2 .g-surface { aspect-ratio: 16 / 10; }
.g-surface picture, .g-surface img { width: 100%; height: 100%; }
.g-surface img { object-fit: cover; transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.g-surface:hover img { transform: scale(1.04); }
.g-surface::after { content: ""; position: absolute; inset: auto 0 0 0; height: 50%; background: linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0)); }
.g-surface__word, .g-surface__count { position: absolute; bottom: var(--g-s3); z-index: 1; color: var(--g-paper); }
.g-surface__word { left: var(--g-s3); font-family: var(--g-serif); font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1; }
.g-surfaces--2 .g-surface__word { font-size: clamp(2.2rem, 4.5vw, 4.2rem); }
.g-surface__count { right: var(--g-s3); font-size: 0.85rem; opacity: 0.85; }

/* ---- 07 cards: works on a white wall, shown in their own proportions ---- */
.g-works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g-s5) var(--g-s4); align-items: end; }
.g-works--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-work { display: grid; gap: 12px; align-content: end; }
.g-work__image { display: block; }
.g-work__image img { width: 100%; box-shadow: 0 24px 40px -28px rgba(0, 0, 0, 0.5); }
.g-work--object .g-work__image img { box-shadow: none; aspect-ratio: 4 / 5; object-fit: contain; background: #f4f3ef; }
.g-work__meta { display: grid; gap: 2px; font-size: 0.9rem; color: var(--g-ink-2); }
.g-work__title { font-family: var(--g-serif); font-style: italic; font-size: 1.25rem; color: var(--g-ink); text-decoration: none; }
.g-work__title:hover { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--wall, var(--g-ink)); }
.g-work__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--g-s2); color: var(--g-ink); }
.g-work__add { background: none; border: 0; padding: 0; color: var(--g-ink); font-size: 0.9rem; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.g-work__add:disabled { color: var(--g-ink-2); text-decoration: none; cursor: default; }
.g-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.g-filter__status { margin-top: var(--g-s2); font-size: 0.9rem; color: var(--g-ink-2); }

/* ---- 08 forms ----------------------------------------------------------- */
.g-form { display: grid; gap: var(--g-s3); max-width: 760px; }
.g-form--wide { max-width: 920px; }
.g-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g-s3) var(--g-s4); }
.g-fields label, .g-form > label { display: grid; gap: 8px; font-size: 0.9rem; color: var(--g-ink-2); }
.g-fields .g-full { grid-column: 1 / -1; }
.g-form input:not([type="checkbox"]):not([type="file"]), .g-form select, .g-form textarea { width: 100%; padding: 0.85rem 0; border: 0; border-bottom: 1px solid var(--g-ink); background: transparent; font: inherit; color: var(--g-ink); border-radius: 0; }
.g-form textarea { resize: vertical; min-height: 120px; }
.g-form input:focus, .g-form select:focus, .g-form textarea:focus { outline: none; border-bottom: 2px solid var(--wall, var(--g-ink)); }
.g-form input[type="file"] { font-size: 0.9rem; color: var(--g-ink-2); }
.g-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.g-form legend { font-size: 0.9rem; color: var(--g-ink-2); margin-bottom: 8px; }
.g-form .g-check, .g-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--g-ink); }
.g-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--wall, var(--g-ink)); }
.g-form .g-hp { position: absolute; left: -9999px; }
.g-form__status { font-size: 0.95rem; min-height: 1.5em; }
.g-form__status:not(:empty) { padding: var(--g-s2) 0; border-top: 1px solid var(--g-line); }
.g-context { padding: var(--g-s2) var(--g-s3); border-left: 3px solid var(--wall, var(--g-ink)); display: grid; gap: 2px; font-size: 0.95rem; }
.g-context strong { font-family: var(--g-serif); font-style: italic; font-size: 1.2rem; font-weight: 400; }
.g-context span { color: var(--g-ink-2); }
.g-form details { border-top: 1px solid var(--g-line); padding-top: var(--g-s2); }
.g-form summary { cursor: pointer; font-size: 0.95rem; }

/* ---- 09 lightbox & video ------------------------------------------------ */
.lightbox { position: fixed; inset: 0; z-index: var(--g-z-lightbox); display: grid; place-items: center; padding: clamp(20px, 4vw, 56px); background: rgba(10, 10, 10, 0.92); }
.lightbox img { max-height: 90svh; max-width: 100%; width: auto; }
.lightbox__close { position: fixed; right: var(--g-s2); top: var(--g-s2); min-height: 48px; padding: 0.65rem 1rem; border: 0; background: var(--g-paper); color: var(--g-ink); cursor: pointer; }
.g-zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.g-zoom img { width: 100%; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55); }
.g-zoom__hint { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; background: rgba(255, 255, 255, 0.9); color: var(--g-ink); font-size: 0.8rem; }
.g-video { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--g-black); cursor: pointer; overflow: hidden; }
.g-video picture, .g-video img { width: 100%; height: 100%; }
.g-video img { aspect-ratio: 16 / 9; object-fit: cover; opacity: 0.9; }
.g-video--tall img { aspect-ratio: 4 / 5; }
.g-video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50%; background: var(--g-yellow); color: var(--g-black); font-size: 0.95rem; font-weight: 500; }
.g-video:hover .g-video__play { background: var(--g-paper); }
.g-video-wrap iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; display: block; }
.g-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--g-s5) var(--g-s4); }
.g-video-card { display: grid; gap: 12px; }
.g-video-card h3 { font-style: italic; font-size: 1.3rem; }
.g-video-card p { font-size: 0.95rem; color: var(--g-ink-2); }

/* ---- 10 pages ----------------------------------------------------------- */
/* artwork detail */
.g-detail { width: min(calc(100% - var(--g-gutter) * 2), var(--g-max)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: var(--g-s6); align-items: start; padding: var(--g-s5) 0 var(--g-s6); }
.g-detail__label { position: sticky; top: calc(var(--g-nav-h) + var(--g-s4)); }
.g-detail__label h1 { font-size: var(--g-display); font-style: italic; line-height: 0.95; }
.g-detail__swatch { height: 6px; width: 120px; background: var(--wall, var(--g-ink)); margin: 0 0 var(--g-s3); }
.g-specs { display: grid; grid-template-columns: max-content 1fr; gap: 10px var(--g-s3); margin: var(--g-s3) 0 0; font-size: 0.95rem; }
.g-specs dt { color: var(--g-ink-2); }
.g-specs dd { margin: 0; }
.g-detail__price { font-family: var(--g-serif); font-size: 1.8rem; margin-top: var(--g-s3); }
.g-detail__story { margin-top: var(--g-s4); max-width: 44ch; color: var(--g-ink-2); line-height: 1.6; }
.g-detail__story p + p { margin-top: var(--g-s2); }
.g-thumbs { display: flex; gap: 10px; margin-top: var(--g-s2); }
.g-thumbs button { padding: 0; border: 1px solid var(--g-line); background: none; cursor: pointer; width: 84px; }
.g-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* studio & artist */
.g-split { width: min(calc(100% - var(--g-gutter) * 2), var(--g-max)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.9fr); gap: var(--g-s6); padding: var(--g-s6) 0; align-items: start; }
.g-split--even { grid-template-columns: 1fr 1fr; align-items: center; }
.g-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g-s4); counter-reset: step; }
.g-step { padding-top: var(--g-s3); border-top: 2px solid var(--wall, var(--g-ink)); }
.g-step::before { counter-increment: step; content: counter(step); display: block; font-family: var(--g-serif); font-size: 2rem; line-height: 1; margin-bottom: var(--g-s2); }
.g-step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.g-step p { font-size: 0.95rem; color: var(--g-ink-2); }
.g-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--g-s4) var(--g-s5); }
.g-cols h3 { font-size: 1.25rem; margin-bottom: 8px; }
.g-cols p { color: var(--g-ink-2); }

/* cart */
.g-cart { width: min(calc(100% - var(--g-gutter) * 2), 980px); margin-inline: auto; padding: var(--g-s5) 0; }
.cart-item { display: grid; grid-template-columns: 110px 1fr auto; gap: var(--g-s3); align-items: center; padding: var(--g-s3) 0; border-top: 1px solid var(--g-line); }
.cart-item__media img { width: 100%; aspect-ratio: var(--item-aspect, 4 / 3); object-fit: contain; background: #f4f3ef; }
.cart-item__media--empty { aspect-ratio: 4 / 3; background: #f4f3ef; }
.cart-item__body h3 { font-style: italic; font-size: 1.2rem; }
.cart-item__body p, .cart-item__body span { display: block; font-size: 0.9rem; color: var(--g-ink-2); }
.cart-item__price { text-align: right; display: grid; gap: 4px; }
.cart-item__price strong { font-family: var(--g-serif); font-size: 1.3rem; font-weight: 400; }
.cart-item__price span { font-size: 0.85rem; color: var(--g-ink-2); }
.cart-item__remove { background: none; border: 0; padding: 0; text-decoration: underline; color: var(--g-ink); cursor: pointer; font-size: 0.85rem; }
.g-cart__summary { display: flex; justify-content: space-between; padding: var(--g-s3) 0; border-top: 1px solid var(--g-ink); font-family: var(--g-serif); font-size: 1.3rem; }
.g-cart__readiness ul { list-style: none; padding: 0; margin: var(--g-s2) 0 0; display: grid; gap: 6px; font-size: 0.9rem; color: var(--g-ink-2); }
.g-cart__readiness li strong { display: none; }

/* policy pages */
.g-policy { width: min(calc(100% - var(--g-gutter) * 2), 760px); margin-inline: auto; padding: var(--g-s5) 0 var(--g-s4); }
.g-policy h1 { font-size: var(--g-h1); margin-bottom: var(--g-s4); }

/* ---- 11 media ----------------------------------------------------------- */
@media (max-width: 1060px) {
  .g-wall__inner, .g-detail, .g-split, .g-split--even { grid-template-columns: 1fr; gap: var(--g-s5); }
  .g-wall__inner { padding: var(--g-s6) 0; }
  .g-detail__label { position: static; }
  .g-works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-works--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .g-head { grid-template-columns: 1fr; }
  .g-head .g-lede { justify-self: start; }
  .g-surfaces, .g-surfaces--2, .g-surfaces--3 { grid-template-columns: 1fr 1fr; }
  .g-videos, .g-cols { grid-template-columns: 1fr; }
  .g-room { --room-h: clamp(240px, 46vh, 420px); }
  .g-nav__toggle { display: grid; place-items: center; }
  .g-nav__links { display: none; }
  .g-nav__links[data-open="true"] { display: grid; position: fixed; inset: 0; z-index: var(--g-z-sheet); align-content: center; gap: 0; padding: var(--g-gutter); background: rgba(255, 255, 255, 0.97); }
  .g-nav__links[data-open="true"] a { font-family: var(--g-serif); font-size: clamp(1.8rem, 7vw, 2.6rem); padding: 10px 0; border-bottom: 1px solid var(--g-line); }
  .g-nav__links[data-open="true"] .g-nav__close { display: block; position: absolute; right: var(--g-gutter); top: var(--g-s3); font-family: var(--g-sans); font-size: 0.95rem; padding: 10px 14px; border: 1px solid var(--g-line); }
  .g-nav__links[data-open="true"] .g-nav__count { display: inline-block; }
}
@media (max-width: 600px) {
  .g-works, .g-works--4 { grid-template-columns: 1fr 1fr; gap: var(--g-s4) var(--g-s3); }
  .g-fields { grid-template-columns: 1fr; }
  .g-steps { grid-template-columns: 1fr; }
  .g-foot__inner { grid-template-columns: 1fr; }
  .g-foot__links { justify-content: flex-start; }
  .g-foot__signature img { width: min(100%, 220px); }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item__price { grid-column: 1 / -1; text-align: left; }
  .g-piece figcaption { max-width: 70vw; }
  .g-surfaces--2 { grid-template-columns: 1fr; }
}
