
/* One stylesheet for the whole site: the portfolio, then the print shop. */
*, *::before, *::after { box-sizing: border-box; }
:root { --gutter: clamp(1rem, 4vw, 3.25rem); }
:root[data-theme="light"] {
  --bg: #edf2f5; --surface: #f8fbfc; --well: #dce6ec; --line: #c5d2da; --hi: rgba(255, 255, 255, 0.95);
  --text: #1c2c38; --soft: #405563; --muted: #718390; --key-top: #f8fbfc; --key-bottom: #dfe8ed;
  --accent: #347c9d; --bar: rgba(237, 242, 245, 0.92); color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #111b23; --surface: #192630; --well: #0b131a; --line: #2b3d49; --hi: rgba(255, 255, 255, 0.06);
  --text: #e5eef3; --soft: #b6c7d1; --muted: #8299a6; --key-top: #263944; --key-bottom: #1a2932;
  --accent: #74c6e5; --bar: rgba(17, 27, 35, 0.92); color-scheme: dark;
}

/* Alternate palettes, chosen by "theme" in content.json. Each keeps the
   layout and only recolours it, and both its light and dark modes keep the
   contrast relationships of the default. */
:root[data-palette="atelier"][data-theme="light"], :root[data-palette="atelier"] {
  --bg: #ecebe8; --surface: #f7f6f3; --well: #e2e0da; --line: #cfcdbf; --hi: rgba(255, 255, 255, 0.95);
  --text: #26241f; --soft: #4d4a41; --muted: #7d7969; --key-top: #f7f6f3; --key-bottom: #e6e4dc;
  --accent: #8a6a24; --bar: rgba(236, 235, 232, 0.92);
}
:root[data-palette="atelier"][data-theme="dark"] {
  --bg: #101214; --surface: #17191c; --well: #0b0d0f; --line: #2c2f33; --hi: rgba(255,255,255,.06);
  --text: #e9ebed; --soft: #b9bcbf; --muted: #7f8488; --key-top: #23262a; --key-bottom: #181b1e;
  --accent: #d9c28f; --bar: rgba(16, 18, 20, 0.92);
}
:root[data-palette="zen"][data-theme="light"] {
  --bg: #f2f0e8; --surface: #fbfaf5; --well: #e5e2d7; --line: #cfccbc; --hi: rgba(255,255,255,.95);
  --text: #30382f; --soft: #4f5a4c; --muted: #7f8a7c; --key-top: #fbfaf5; --key-bottom: #e9e6db;
  --accent: #657b5b; --bar: rgba(242, 240, 232, 0.9);
}
:root[data-palette="zen"][data-theme="dark"] {
  --bg: #20251f; --surface: #2a3028; --well: #181c17; --line: #39413a; --hi: rgba(255,255,255,.06);
  --text: #e8e9dd; --soft: #b7bfae; --muted: #828b7e; --key-top: #2c332b; --key-bottom: #1f241e;
  --accent: #a9b995; --bar: rgba(32, 37, 31, 0.92);
}
:root[data-palette="journal"][data-theme="light"] {
  --bg: #e6dbc0; --surface: #f4edd9; --well: #ded2b2; --line: #c9ba93; --hi: rgba(255,255,255,.9);
  --text: #2b2016; --soft: #57452f; --muted: #86745a; --key-top: #f4edd9; --key-bottom: #e8dfc6;
  --accent: #8e2f1f; --bar: rgba(230, 219, 192, 0.94);
}
:root[data-palette="journal"][data-theme="dark"] {
  --bg: #262019; --surface: #2f2820; --well: #1d1812; --line: #423828; --hi: rgba(255,255,255,.06);
  --text: #ede4d3; --soft: #c3b49c; --muted: #8d7f6a; --key-top: #352d23; --key-bottom: #262019;
  --accent: #d9a05b; --bar: rgba(38, 32, 25, 0.94);
}
:root[data-palette="sketchbook"][data-theme="light"] {
  --bg: #e9e6dd; --surface: #f3f0e8; --well: #dedbcf; --line: #c8c4b4; --hi: rgba(255,255,255,.95);
  --text: #292824; --soft: #4d4b43; --muted: #7d7a6e; --key-top: #f3f0e8; --key-bottom: #e2dfd4;
  --accent: #4c4b47; --bar: rgba(233, 230, 221, 0.94);
}
:root[data-palette="sketchbook"][data-theme="dark"] {
  --bg: #242321; --surface: #302e2a; --well: #1b1a18; --line: #403d37; --hi: rgba(255,255,255,.06);
  --text: #e8e4d9; --soft: #bcb8ab; --muted: #85816f; --key-top: #34322d; --key-bottom: #262522;
  --accent: #c7c1b2; --bar: rgba(36, 35, 33, 0.94);
}
:root[data-palette="ethereal"][data-theme="light"] {
  --bg: #f1f2f1; --surface: rgba(250,251,250,.82); --well: #e4e7e6; --line: #ccd2d1; --hi: rgba(255,255,255,.9);
  --text: #3d474b; --soft: #626f73; --muted: #929da0; --key-top: #fafcfc; --key-bottom: #e7ebec;
  --accent: #7fa0a2; --bar: rgba(242,245,245,.7);
}
:root[data-palette="ethereal"][data-theme="dark"] {
  --bg: #202729; --surface: rgba(40,49,51,.86); --well: #171d1f; --line: #354143; --hi: rgba(255,255,255,.06);
  --text: #e1e8e8; --soft: #b4c1c1; --muted: #7f8f90; --key-top: #2a3436; --key-bottom: #1e2527;
  --accent: #a8c0c0; --bar: rgba(32, 39, 41, 0.86);
}
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background-color: var(--bg);
  background-image: repeating-linear-gradient(156deg, transparent 0 34px,
    color-mix(in srgb, var(--accent) 7%, transparent) 35px, transparent 36px 68px);
  font: 1rem/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.075rem); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.1; margin: 0; }
p { margin: 0; }
figure { margin: 0; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; padding: 0.6rem 1rem; background: var(--surface); color: var(--text); }

/* top bar */
.bar { position: sticky; top: 0; z-index: 40; display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.75rem 1.5rem; padding: 0.8rem var(--gutter); background: var(--bar);
  border-bottom: 2px solid var(--accent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.95rem;
  font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.brand::before { content: "\25B2"; color: var(--accent); font-size: 0.8rem; }
.brand img { height: 2rem; width: auto; }
.modes { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-right: auto; }
.modes a { padding: 0.32rem 0.75rem; font-size: 0.82rem; color: var(--soft); border-radius: 2px; }
.modes a.on { color: var(--text); background: var(--well); }
.bar-end { display: flex; align-items: center; gap: 1rem; }
.socials { display: flex; gap: 0.5rem; }
.social { display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--soft); }
.social svg { width: 1.05rem; height: 1.05rem; }
.social:hover { color: var(--accent); border-color: var(--accent); }
.switch { position: relative; width: 2.6rem; height: 1.4rem; padding: 0; border: 1px solid var(--line);
  border-radius: 999px; background: var(--key-bottom); cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 1rem; height: 1rem;
  border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: transform 0.18s ease; }
.switch[aria-checked="true"]::after { transform: translateX(1.2rem); background: var(--accent); }

/* hero */
.hero { position: relative; display: grid; overflow: hidden; isolation: isolate; color: #f4f7f9;
  height: clamp(32rem, 92vh, 62rem); }
.hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(7, 18, 27, 0.85), rgba(7, 18, 27, 0.03) 72%); }
.frame i { position: absolute; width: 2.2rem; height: 2.2rem; border-color: rgba(255, 255, 255, 0.65);
  border-style: solid; border-width: 0; pointer-events: none; }
.frame i:nth-child(1) { top: 1.2rem; left: 1.2rem; border-top-width: 2px; border-left-width: 2px; }
.frame i:nth-child(2) { top: 1.2rem; right: 1.2rem; border-top-width: 2px; border-right-width: 2px; }
.hero-text { position: absolute; left: var(--gutter); bottom: 2.7rem; z-index: 2;
  max-width: min(56rem, calc(100% - 2 * var(--gutter))); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45); }
.hero h1 { font-size: clamp(2rem, 1rem + 5vw, 5rem); font-weight: 750; letter-spacing: -0.06em; text-transform: uppercase; }
.hero .tagline { margin-top: 0.6rem; padding-left: 0.7rem; border-left: 3px solid var(--accent);
  font-size: clamp(0.95rem, 0.9rem + 0.5vw, 1.25rem); color: rgba(244, 247, 249, 0.9); }
.hero .byline { margin-top: 0.9rem; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(244, 247, 249, 0.7); }
.readout { position: absolute; right: var(--gutter); top: 2rem; z-index: 2; margin: 0; display: grid;
  gap: 0.4rem 1.2rem; padding: 0.8rem 1rem; background: rgba(8, 17, 23, 0.66); border-left: 3px solid var(--accent);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.readout > div { display: flex; gap: 0.6rem; justify-content: space-between; }
.readout dt { color: rgba(244, 247, 249, 0.6); }
.readout dd { margin: 0; }

/* series walls: columns follow the series' size (set as --cols by the build) */
.series { padding: clamp(3rem, 6vw, 5rem) var(--gutter) 0; }
.series > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem;
  margin-bottom: 1.4rem; padding-bottom: 0.8rem; border-bottom: 2px solid var(--accent); }
.series h2 { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); font-weight: 650;
  letter-spacing: -0.025em; text-transform: uppercase; }
.count { margin: 0; font-size: 0.8rem; color: var(--muted); }
.count a { color: var(--accent); }
.wall { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 0.18rem; }
.wall figure { position: relative; overflow: hidden; background: var(--well); }
.wall figure.wide { grid-column: span 2; }
.wall a { display: block; aspect-ratio: var(--ar); overflow: hidden; }
.wall img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.04) saturate(0.9);
  transition: transform 0.5s ease; }
.wall figure:hover img { transform: scale(1.04); }
.wall figcaption { position: absolute; inset: auto 0 0 0; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 0.3rem; padding: 1.6rem 0.7rem 0.55rem; font-size: 0.72rem;
  color: #f4f7f9; background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent); }
.wall .exp { color: rgba(244, 247, 249, 0.65); }

/* long-form sections */
.about, .contact, .services, .store { padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter); }
.about { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start; border-top: 2px solid var(--accent); }
.about.solo { grid-template-columns: minmax(0, 1fr); max-width: 60rem; }
.portrait img { width: 100%; object-fit: cover; }
.about h2, .contact h2, .services h2, .store h2 { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem);
  margin-bottom: 1rem; font-weight: 700; text-transform: uppercase; }
.contact { border-top: 2px solid var(--accent); }
.lead { display: grid; gap: 0.8rem; max-width: 62ch; color: var(--soft); }
.specs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.4rem 1.2rem;
  margin: 1.5rem 0 0; font-size: 0.88rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.services-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.services > header, .store > header { margin-bottom: 1rem; padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--accent); }
.store > header { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: baseline; }
.store > header h2 { margin-bottom: 0; }
.offerings { list-style: none; margin: 0; padding: 0; display: grid; }
.offering { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.offering h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.offering p { font-size: 0.9rem; color: var(--soft); }
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.button { display: inline-flex; align-items: center; justify-content: center; margin-top: 1.4rem;
  padding: 0.7rem 1.4rem; border: 1px solid var(--accent); border-radius: 2px; background: transparent;
  color: var(--accent); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; }
.button:hover { background: var(--accent); color: var(--bg); }
.button[disabled] { opacity: 0.55; cursor: progress; }
/* ---- the studio site (mapletreelabs.ca) ---------------------------------- */
.studio-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
/* Sections on the studio site sit on a clear rhythm and inside the page's
   gutter, like the portfolio's own sections. */
.studio-hero, #services, .approach-panel, .work-strip, .contact, .profile {
  margin-bottom: clamp(3rem, 8vw, 6rem);
  padding-left: var(--gutter);
  padding-right: var(--gutter); }
.studio-hero { padding-top: clamp(1rem, 3vw, 2.5rem); margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.contact { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line); }
.studio-hero .eyebrow { margin: 0 0 0.8rem; color: var(--accent); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.16em; }
.studio-hero h1 { margin: 0 0 1.2rem; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.15; max-width: 20ch; }
.studio-shot { margin: 0; overflow: hidden; background: var(--well); max-height: 72vh; }
.studio-shot img { display: block; width: 100%; height: 100%; max-height: 72vh; object-fit: cover; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.cta-row .button { margin-top: 0; }
.button.secondary { border-color: var(--line); color: var(--soft); }
.button.secondary:hover { background: var(--surface); color: var(--text); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: baseline; gap: 0.6rem 1.4rem; margin-bottom: 1.2rem; }
.section-head h2 { margin: 0; }
/* A section heading on its own (no lead text beside it) keeps its weight. */
.approach-panel .section-head { display: block; }
.section-head .lead { max-width: 48ch; }
.service-list { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 0.7rem; }
.service-list li { padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-top: 2px solid var(--accent);
  background: var(--surface); }
.service-list h3 { margin: 0 0 0.5rem; font-size: 1rem; letter-spacing: 0.01em; }
.service-list p { margin: 0; color: var(--soft); font-size: 0.92rem; }
.approach { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.4rem; }
.approach li { padding-top: 1rem; border-top: 1px solid var(--line); }
.approach h3 { margin: 0 0 0.45rem; font-size: 0.95rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); }
.approach p { margin: 0; color: var(--soft); }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.5rem; align-items: start; }
.strip-frame { display: block; overflow: hidden; background: var(--well);
  aspect-ratio: 1; line-height: 0; }
.strip-frame img { display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease; }
.strip-frame:hover img { transform: scale(1.04); }
.profile { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.profile.solo { grid-template-columns: minmax(0, 1fr); max-width: 62rem; }
.profile.solo .lead { max-width: 64ch; }
.profile h1 { margin: 0 0 1rem; font-size: clamp(1.6rem, 3vw, 2.4rem); }
@media (max-width: 860px) {
  .studio-hero, .profile { grid-template-columns: minmax(0, 1fr); }
  .studio-shot { order: -1; }
}
.store-list { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 0.6rem; }
.store-link { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 1rem;
  border: 1px solid var(--line); border-bottom-width: 2px; background: var(--surface); }
.store-link .arrow { color: var(--accent); white-space: nowrap; }
.store-link:hover .label { text-decoration: underline; text-decoration-color: var(--accent); }
.hero-print { display: inline-block; margin-bottom: 0.9rem; color: #f4f7f9;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6); }
.hero-print:hover { color: #fff; border-color: #fff; }
footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.5rem 1.5rem; margin-top: 3rem; padding: 2rem var(--gutter); font-size: 0.8rem;
  color: var(--muted); border-top: 2px solid var(--accent); }
footer ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0; padding: 0; list-style: none; }

/* viewer */
dialog#viewer { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0;
  border: 0; background: #05080b; color: #eef3f6; }
dialog#viewer::backdrop { background: rgba(0, 0, 0, 0.85); }
dialog#viewer[open] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); }
#viewer .stage { display: grid; place-items: center; padding: 1.5rem; min-height: 0; }
#viewer .stage img { max-width: 100%; max-height: calc(100vh - 3rem); object-fit: contain; }
#viewer .panel { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.5rem;
  overflow: auto; background: #0b1218; }
#viewer .panel h3 { font-size: 1.3rem; }
#viewer .series-name { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #7f95a3; }
#viewer .story { font-size: 0.9rem; color: #b9c7d0; display: grid; gap: 0.6rem; }
#viewer .data { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.3rem 1rem;
  margin: 0; font-size: 0.78rem; }
#viewer .data dt { color: #7f95a3; }
#viewer .data dd { margin: 0; }
#viewer .buy { margin: 0; }
#viewer .buy .button { margin: 0; }
#viewer .controls { display: flex; align-items: center; gap: 0.5rem; margin-top: auto; }
#viewer .controls button { display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; padding: 0; border: 1px solid #2b3d49; border-radius: 50%;
  background: transparent; color: #eef3f6; cursor: pointer; }
#viewer .controls button:hover { border-color: #74c6e5; color: #74c6e5; }
#viewer .controls svg { width: 1.1rem; height: 1.1rem; }
#viewer .counter { margin: 0 auto; font-size: 0.78rem; color: #7f95a3; }
.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 30; display: inline-flex;
  width: 2.6rem; height: 2.6rem; align-items: center; justify-content: center; border: 1px solid var(--line);
  border-radius: 50%; background: var(--surface); color: var(--text); opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease; }
.to-top.ready { opacity: 1; pointer-events: auto; }
.to-top svg { width: 1.15rem; height: 1.15rem; }

/* print shop: the pages inside the same theme */
.shop { max-width: 84rem; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--gutter) 0; }
.shop h1 { font-size: clamp(2rem, 1rem + 3vw, 3.6rem); font-weight: 750; text-transform: uppercase;
  letter-spacing: -0.05em; margin-bottom: 1rem; }
.shop h2 { font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); font-weight: 700; text-transform: uppercase;
  margin: 2.5rem 0 1rem; padding-bottom: 0.7rem; border-bottom: 2px solid var(--accent); }
.shop-note { max-width: 42rem; margin-top: 1.2rem; color: var(--soft); font-size: 0.92rem; }
.shop-note a { color: var(--accent); }
.shop-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: clamp(0.8rem, 2vw, 1.4rem); margin-top: 2rem; }
.print { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); }
.print img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.print figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.2rem 0.8rem; padding: 0.7rem 0.8rem 0.8rem; font-size: 0.85rem; }
.print .from { color: var(--accent); font-variant-numeric: tabular-nums; }
.print .plate { flex-basis: 100%; color: var(--muted); font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.product { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.product img { width: 100%; background: var(--well); }
.crumb { margin-bottom: 0.6rem; font-size: 0.78rem; color: var(--muted); }
.options { list-style: none; margin: 0; padding: 0; }
.option { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; align-items: center; justify-content: space-between;
  padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.option .price { flex: 1; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.option .button { margin: 0; }
.checkout { display: grid; gap: 1.2rem; max-width: 40rem; margin-top: 2rem; }
.field-group { margin: 0; padding: 0.4rem 1.3rem 1.4rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 2px; display: grid; gap: 0.7rem; }
.field-group legend { padding: 0 0.4rem; color: var(--muted); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; }
.field-group label { display: grid; gap: 0.35rem; color: var(--soft); font-size: 0.85rem; }
.field-group select { width: 100%; padding: 0.6rem 0.7rem; color: var(--text);
  background: var(--well); border: 1px solid var(--line); border-radius: 2px; font: inherit; }
.field-group select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.line-total { color: var(--text); font-variant-numeric: tabular-nums; min-height: 1.5em; }
.checkout-status { color: var(--soft); font-size: 0.9rem; }
.checkout-status.error { color: #c2603f; }
.checkout-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.field-group label.signed { grid-template-columns: auto 1fr; align-items: center; gap: 0.6rem; }
.field-group label.signed input { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }
.picker { display: grid; gap: 0.9rem; max-width: 26rem; margin: 1.2rem 0 1rem; }
.picker label { display: grid; gap: 0.35rem; color: var(--soft); font-size: 0.85rem; }
.picker select { width: 100%; padding: 0.6rem 0.7rem; color: var(--text); background: var(--well);
  border: 1px solid var(--line); border-radius: 2px; font: inherit; }
.picker select:focus, .picker input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.picker label.option-signed { display: flex; align-items: center; gap: 0.6rem; color: var(--text); }
.picker input[type="checkbox"] { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }
.picker select:disabled { opacity: 0.55; cursor: not-allowed; }
.picker label:has(select:disabled) { opacity: 0.8; }
.option-price { margin: 0; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.option-spec { margin: -0.4rem 0 0; color: var(--soft); font-size: 0.78rem;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.choices { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--soft); font-size: 0.9rem; }
.choices b { color: var(--text); }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .about, .services-grid, .contact, .product { grid-template-columns: minmax(0, 1fr); }
  dialog#viewer[open] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  #viewer .stage { padding: 0.75rem; }
  #viewer .stage img { max-height: 62vh; }
}
@media (max-width: 760px) {
  .readout { top: auto; bottom: 1.8rem; left: var(--gutter); right: auto; padding: 0.55rem 0.7rem; }
  .hero-text { bottom: 6rem; }
}
@media (max-width: 640px) {
  .modes { order: 3; width: 100%; margin-right: 0; }
  .wall { --cols: 2 !important; }
  .wall figure.wide { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
