:root {
  /* Proteon palette: white ground, black, slate, and a deep violet accent */
  --ink:          #252323;             /* black: text, dark surfaces, footer */
  --white:        #FFFFFF;             /* page background, text on ink */
  --mist:         #F4F5F7;             /* faint slate tint for alternate sections */
  --field:        #F8F9FA;             /* inputs and unselected options */
  --line:         #E2E4E9;
  --line-2:       #C5CAD3;
  --slate:        #70798C;             /* lines, icons, placeholders, large text */
  --slate-light:  #A9AFBC;             /* secondary text on ink */
  --accent:       #320D6D;             /* small pops of color; AA for text on white */
  --accent-light: #A392BD;             /* the accent on ink, where #320D6D would disappear */
  --accent-tint:  rgba(50,13,109,.06);
  --accent-line:  rgba(50,13,109,.35);
  --error:        #B3261E;
  --text:         var(--ink);
  --text2:        #4B5163;
  --text3:        #5B6376;             /* slate, deepened a step so small text passes AA */

  --font-d: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-b: 'Archivo', system-ui, sans-serif;
  --font-m: 'IBM Plex Mono', ui-monospace, monospace;

  --nav-h: 68px;
  --cut: 20px;          /* octagon chamfer, large */
  --cut-sm: 6px;        /* octagon chamfer, controls */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --ease: cubic-bezier(.2,.7,.2,1);

  /* The mark's stripe rhythm: 4 on, 2 off (scaled) */
  --strata: repeating-linear-gradient(to bottom, var(--accent) 0 2px, transparent 2px 3.5px);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  background: var(--white); color: var(--text);
  font-family: var(--font-b); font-size: 16px; line-height: 1.6; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

.mono { font-family: var(--font-m); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }

/* ─── BRAND ─── */
.wordmark {
  display: inline-flex; align-items: baseline; white-space: nowrap;
  font-family: var(--font-d); font-weight: 800; font-stretch: 125%;
  letter-spacing: .06em; line-height: 1; text-decoration: none; color: inherit;
}
.wordmark .wm-o { width: .734em; height: .734em; margin: 0 .06em -.015em 0; flex-shrink: 0; }
.orbit .ring  { stroke: var(--accent); }
.orbit .spin-a { transform-box: view-box; transform-origin: 80px 80px; animation: spin 9s linear infinite; }
.orbit .spin-b { transform-box: view-box; transform-origin: 80px 80px; animation: spin 18s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── NAV ─── */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  background: rgba(255,255,255,.88); backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wordmark { font-size: 21px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--text2); transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta, .nav-links .nav-cta:hover { color: var(--white); }

/* ─── BUTTONS ─── */
.btn {
  --oct: polygon(var(--cut-sm) 0, calc(100% - var(--cut-sm)) 0, 100% var(--cut-sm), 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, var(--cut-sm) 100%, 0 calc(100% - var(--cut-sm)), 0 var(--cut-sm));
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-m); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 15px 26px; border: none; cursor: pointer; text-decoration: none;
  clip-path: var(--oct);
  transition: background .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-fill { background: var(--ink); color: var(--white); }
.btn-fill:hover { background: var(--accent); color: var(--white); }
.btn-fill:disabled { background: var(--line); color: var(--text3); cursor: wait; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 500; clip-path: none; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); background: var(--field); }
.btn-sm { padding: 10px 16px; font-size: 11px; }
.btn-block { width: 100%; }
.link-btn {
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: var(--font-m); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent-line);
}
.link-btn:hover { text-decoration-color: var(--accent); }

/* ─── INTRO + FORM ─── */
.intro-wrap { position: relative; overflow: clip; }
.intro {
  position: relative;
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px);
  align-items: start;
  padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(64px, 8vw, 112px);
  max-width: var(--max); margin: 0 auto;
}
.intro-orbit {
  position: absolute; z-index: -1; pointer-events: none;
  width: 760px; height: 760px; left: -300px; top: -200px; color: var(--line); opacity: .6;
}
.intro-orbit .dot { fill: var(--accent); }
.intro-copy { position: sticky; top: calc(var(--nav-h) + 48px); padding-top: 6px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); margin-bottom: 24px; }
.eyebrow::before { content: ''; width: 18px; height: 11px; background: var(--strata); flex-shrink: 0; }
h1 {
  font-family: var(--font-d); font-weight: 800; font-stretch: 118%; text-transform: uppercase;
  font-size: clamp(36px, 4.7vw, 64px); line-height: .98; letter-spacing: -.005em; margin-bottom: 26px;
  text-wrap: balance;
}
h1 .accent { color: var(--accent); white-space: nowrap; }
.lede { font-size: 17px; color: var(--text2); line-height: 1.7; max-width: 450px; text-wrap: pretty; }
.lede strong { color: var(--text); font-weight: 600; }
.how { list-style: none; margin-top: 38px; border-top: 1px solid var(--line); max-width: 450px; }
.how li { display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--text2); }
.how li b { display: block; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.how .n { font-family: var(--font-m); font-size: 11px; font-weight: 500; color: var(--accent); padding-top: 3px; }
.intro-more { display: inline-flex; gap: 8px; margin-top: 28px; color: var(--text2); text-decoration: none; }
.intro-more:hover { color: var(--accent); }

/* Octagonal card: outer layer draws the 1px border, inner layer the surface. */
.form-wrap { filter: drop-shadow(0 30px 40px rgba(37,35,35,.10)) drop-shadow(0 2px 2px rgba(37,35,35,.04)); }
.form-card {
  --oct: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  background: var(--line); padding: 1px; clip-path: var(--oct);
}
.form-body {
  position: relative; background: var(--white);
  padding: clamp(22px, 3.2vw, 40px);
  clip-path: polygon(calc(var(--cut) - .4px) 0, calc(100% - var(--cut) + .4px) 0, 100% calc(var(--cut) - .4px), 100% calc(100% - var(--cut) + .4px), calc(100% - var(--cut) + .4px) 100%, calc(var(--cut) - .4px) 100%, 0 calc(100% - var(--cut) + .4px), 0 calc(var(--cut) - .4px));
}
.form-body::before { content: ''; position: absolute; top: 0; left: calc(var(--cut) + 20px); width: 64px; height: 11px; background: var(--strata); }
.form-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 6px 0 22px; }
.form-title { font-family: var(--font-d); font-size: 24px; font-weight: 800; font-stretch: 118%; text-transform: uppercase; line-height: 1.1; }
.form-head .mono { color: var(--text3); font-size: 10px; }

/* mode toggle */
.mode-toggle { display: grid; grid-template-columns: 1fr 1fr; box-shadow: inset 0 0 0 1px var(--line-2); margin-bottom: 28px; }
.mode-toggle label { position: relative; cursor: pointer; }
.mode-toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.mode-toggle span {
  display: flex; flex-direction: column; gap: 3px; height: 100%;
  padding: 13px 16px; transition: background .18s var(--ease), color .18s var(--ease);
}
.mode-toggle label + label span { border-left: 1px solid var(--line-2); }
.mode-toggle b { font-family: var(--font-d); font-size: 15px; font-weight: 700; font-stretch: 110%; }
.mode-toggle small { font-size: 12.5px; color: var(--text3); line-height: 1.4; }
.mode-toggle input:checked + span { background: var(--ink); color: var(--white); }
.mode-toggle input:checked + span small { color: var(--slate-light); }
.mode-toggle input:checked + span b::before { content: ''; display: inline-block; width: 7px; height: 7px; background: var(--accent-light); margin-right: 9px; vertical-align: 2px; transform: rotate(45deg); }
.mode-toggle input:focus-visible + span { outline: 2px solid var(--accent-light); outline-offset: -5px; }
.mode-toggle label:hover input:not(:checked) + span { background: var(--field); }

fieldset { border: none; min-width: 0; }
.field { margin-bottom: 18px; }
.field > label, .field-label { display: block; margin-bottom: 8px; color: var(--text2); font-family: var(--font-m); font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.field .opt-tag { color: var(--text3); letter-spacing: .06em; text-transform: none; font-weight: 400; }
.field input:not([type=file]), .field select, .field textarea {
  width: 100%; background: var(--field); border: 1px solid var(--line);
  padding: 12px 14px; font: inherit; font-size: 15.5px; color: var(--text);
  border-radius: 0; outline: none; transition: border-color .15s, background .15s, box-shadow .15s;
  appearance: none; -webkit-appearance: none;
}
.field input:hover:not(:focus), .field select:hover:not(:focus), .field textarea:hover:not(:focus) { border-color: var(--line-2); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 3px var(--accent-tint); }
.field input::placeholder, .field textarea::placeholder { color: var(--slate); }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text2) 50%), linear-gradient(135deg, var(--text2) 50%, transparent 50%);
  background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
  padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 108px; line-height: 1.55; }
.field input[type=file] { font-size: 13px; color: var(--text2); width: 100%; }
.field input[type=file]::file-selector-button {
  font-family: var(--font-m); font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  background: var(--field); border: 1px solid var(--line-2); color: var(--text); padding: 9px 14px; margin-right: 12px; cursor: pointer;
  transition: border-color .15s;
}
.field input[type=file]::file-selector-button:hover { border-color: var(--ink); }
.field .help { font-size: 12.5px; color: var(--text3); margin-top: 7px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.divider { height: 1px; background: var(--line); margin: 24px 0 22px; }

/* ─── CONFIGURATOR ─── */
.cfg-tabs {
  display: flex; position: relative; box-shadow: inset 0 0 0 1px var(--line); background: var(--field);
  overflow-x: auto; scrollbar-width: none; margin-bottom: 20px;
}
.cfg-tabs::-webkit-scrollbar { display: none; }
.cfg-tab {
  flex: 1 0 112px; text-align: left; cursor: pointer;
  background: none; border: none; border-right: 1px solid var(--line);
  padding: 11px 13px 12px; position: relative; min-width: 0;
  transition: background .15s;
}
.cfg-tab:last-child { border-right: none; }
.cfg-tab:hover { background: var(--white); }
.cfg-tab .t-label { display: flex; align-items: center; gap: 6px; overflow: hidden; font-family: var(--font-m); font-size: 9.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text3); white-space: nowrap; }
.cfg-tab .t-val { display: block; font-size: 13.5px; font-weight: 500; color: var(--text3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfg-tab.done .t-val { color: var(--text); }
.cfg-tab.done .t-label::after { content: ''; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); flex-shrink: 0; margin-left: 2px; }
.cfg-tab[aria-current="step"] { background: var(--white); }
.cfg-tab[aria-current="step"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); }
.cfg-tab[aria-current="step"] .t-label { color: var(--accent); }

.cfg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cfg-head h3 { font-family: var(--font-d); font-size: 18px; font-weight: 700; font-stretch: 112%; }
.cfg-head p { font-size: 13.5px; color: var(--text3); }

.opts { display: grid; gap: 10px; }
.opts.layout-swatch { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.opts.layout-image { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.opts.layout-card { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.opt { display: flex; flex-direction: column; gap: 8px; }
.opt label {
  position: relative; display: flex; cursor: pointer; flex: 1;
  border: 1px solid var(--line); background: var(--field);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.opt label:hover { border-color: var(--line-2); background: var(--white); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt label.checked { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-tint); }
.opt label.checked::after {
  content: '✓'; position: absolute; top: 8px; right: 8px;
  width: 20px; height: 20px; display: grid; place-items: center;
  background: var(--accent); color: var(--white); font-size: 11px; font-weight: 800;
}
.layout-swatch .opt label { align-items: center; gap: 12px; padding: 14px; min-height: 58px; }
.swatch { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.opt-name { font-weight: 600; font-size: 14.5px; line-height: 1.3; padding-right: 22px; }
.layout-image .opt label { flex-direction: column; }
.layout-image .opt img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--mist); border-bottom: 1px solid var(--line); }
.layout-image .opt-name { padding: 10px 12px; }
.layout-card .opt label { flex-direction: column; gap: 4px; padding: 15px 16px; }
.opt-desc { font-size: 13px; color: var(--text2); line-height: 1.5; padding-right: 18px; }
.opt .link-btn { align-self: flex-start; }

.cfg-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.cfg-summary {
  position: relative; margin-top: 20px; padding: 13px 16px 13px 20px; background: var(--accent-tint);
  font-size: 14px; color: var(--text);
}
.cfg-summary::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.cfg-summary .mono { display: block; font-size: 9.5px; color: var(--accent); margin-bottom: 3px; }

.form-error { color: var(--error); font-size: 14px; margin: 4px 0 12px; }
.form-note { font-size: 12.5px; color: var(--text3); text-align: center; margin-top: 14px; }

.sent { text-align: left; padding: 6px 0; }
.sent:focus { outline: none; }
.sent .orbit { width: 64px; height: 64px; color: var(--ink); margin-bottom: 20px; }
.sent h2 { font-family: var(--font-d); font-size: 28px; font-weight: 800; font-stretch: 118%; text-transform: uppercase; margin-bottom: 10px; }
.sent p { color: var(--text2); margin-bottom: 18px; }
.sent pre { font-family: var(--font-b); white-space: pre-wrap; font-size: 14px; background: var(--field); border: 1px solid var(--line); padding: 14px 16px; margin-bottom: 24px; }

/* ─── GALLERY ─── */
.gallery { background: var(--mist); border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 112px) var(--gutter); }
.gallery-inner { max-width: var(--max); margin: 0 auto; }
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.gallery-head .eyebrow { margin-bottom: 16px; }
.gallery-head h2 { font-family: var(--font-d); font-size: clamp(32px, 4.2vw, 52px); font-weight: 800; font-stretch: 118%; text-transform: uppercase; line-height: 1; }
.gallery-head p { color: var(--text2); max-width: 420px; }
.filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-group .mono { color: var(--text3); font-size: 10px; min-width: 84px; }
.chip {
  font-family: var(--font-m); font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 14px; background: transparent; border: 1px solid var(--line-2); color: var(--text2); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--ink); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.gal-card {
  position: relative; background: var(--white); border: 1px solid var(--line); cursor: pointer; text-align: left; padding: 0;
  display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.gal-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 22px 40px -24px rgba(37,35,35,.35); }
.gal-card .img { display: block; position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--white); border-bottom: 1px solid var(--line); }
.gal-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gal-card:hover img { transform: scale(1.03); }
.badge {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-m); font-size: 9px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  padding: 5px 8px; background: var(--ink); color: var(--white);
}
.gal-card .meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 16px; }
.gal-card .meta-text { min-width: 0; }
.gal-card .title, .gal-card .tags { display: block; }
.gal-card .title { font-family: var(--font-d); font-weight: 700; font-stretch: 115%; font-size: 16px; text-transform: uppercase; letter-spacing: .02em; }
.gal-card .tags { font-size: 12.5px; color: var(--text3); margin-top: 2px; }
.gal-card .go { font-family: var(--font-m); color: var(--text3); transition: color .2s, transform .2s var(--ease); }
.gal-card:hover .go { color: var(--accent); transform: translateX(3px); }
.gal-empty { padding: 40px; text-align: center; color: var(--text2); border: 1px dashed var(--line-2); }

/* Home page reel: one random photo per build, drifting sideways. Drag, swipe, or scroll sideways to move it. */
.reel {
  overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) 28px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
          mask-image: linear-gradient(to right, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
}
.reel.still { overflow-x: auto; touch-action: auto; scrollbar-width: none; }   /* reduced motion: no drift, plain scrolling */
.reel::-webkit-scrollbar { display: none; }
.reel-track { display: flex; gap: 16px; width: max-content; will-change: transform; }
.reel img { -webkit-user-drag: none; }
.reel .gal-card { width: clamp(220px, 23vw, 300px); flex: none; }
.gallery-foot { display: flex; justify-content: center; margin-top: 12px; }

/* Builds page */
.gallery-page { border-top: none; min-height: calc(100vh - var(--nav-h)); }
.gallery-head h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1; margin-bottom: 0; }
.filter-group .chip-clear { border-style: dashed; }
.gal-count { color: var(--text3); font-size: 10px; margin-bottom: 14px; }
.gal-prompt { padding: clamp(48px, 8vw, 96px) 24px; text-align: center; color: var(--text2); border: 1px dashed var(--line-2); }
.gal-prompt b { display: block; font-family: var(--font-d); font-weight: 700; font-stretch: 115%; text-transform: uppercase; font-size: 18px; color: var(--text); margin-bottom: 6px; }

/* ─── DIALOGS ─── */
dialog {
  border: none; padding: 0; background: var(--white); color: var(--text);
  width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  margin: auto; box-shadow: 0 40px 80px -20px rgba(37,35,35,.5);
}
dialog::backdrop { background: rgba(37,35,35,.55); backdrop-filter: blur(4px); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--white); z-index: 1; }
.dlg-head h3 { font-family: var(--font-d); font-size: 18px; font-weight: 700; font-stretch: 115%; text-transform: uppercase; }
.dlg-close { background: none; border: 1px solid var(--line-2); width: 36px; height: 36px; cursor: pointer; font-size: 18px; line-height: 1; flex-shrink: 0; transition: border-color .15s, background .15s; }
.dlg-close:hover { border-color: var(--ink); background: var(--field); }
.dlg-body { padding: 20px; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 20px 20px; flex-wrap: wrap; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.lb-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.lb-body img { width: 100%; height: 100%; max-height: calc(100vh - 140px); object-fit: contain; background: var(--white); }
.lb-info { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.lb-info p { color: var(--text2); font-size: 14.5px; }
.lb-tags { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.lb-tags dt { font-family: var(--font-m); font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--text3); padding-top: 3px; }
.lb-info .btn { margin-top: auto; }

/* ─── FOOTER ─── */
footer { background: var(--ink); color: var(--slate-light); padding: clamp(48px, 6vw, 72px) var(--gutter) 28px; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-brand { display: flex; align-items: center; gap: clamp(20px, 3vw, 32px); padding-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid #3A3737; }
.footer-brand .orbit { width: clamp(64px, 9vw, 96px); height: auto; color: var(--white); flex-shrink: 0; }
.footer-brand .wordmark { color: var(--white); font-size: clamp(28px, 5.4vw, 56px); }
.footer-brand .wm-o { color: var(--accent-light); }
.footer-brand .orbit .ring { stroke: var(--accent-light); }
.footer-brand .orbit .track { stroke: var(--slate); }
.footer-brand .orbit .dot { fill: var(--accent-light); }
.footer-brand .mono { display: block; margin-top: 14px; color: var(--slate-light); font-size: clamp(10px, 1.2vw, 12px); letter-spacing: .32em; }
.footer-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-top: 22px; }
footer .footer-meta .mono { font-size: 10px; }
footer a { text-decoration: none; transition: color .15s; }
footer a:hover { color: var(--white); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .intro { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .intro-copy { position: static; }
  .intro-orbit { width: 520px; height: 520px; left: auto; right: -220px; top: -140px; }
  .how, .intro-more { display: none; }
  .lb-body { grid-template-columns: 1fr; }
  .lb-body img { max-height: 60vh; }
}
@media (max-width: 560px) {
  :root { --nav-h: 60px; --cut: 14px; }
  .nav .wordmark { font-size: 17px; }
  .nav-links .nav-text, .hide-sm { display: none; }
  .nav-links .btn { padding: 11px 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .mode-toggle small { display: none; }
  .form-head .mono { display: none; }
  .opts.layout-image { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .layout-image .opt-name { font-size: 13px; padding: 8px; }
  .opts.layout-swatch { grid-template-columns: 1fr 1fr; }
  .gal-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gal-card .meta { padding: 10px 12px 12px; }
  .gal-card .go { display: none; }
  .filter-group .mono { min-width: 100%; }
  .footer-brand { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .orbit .spin-a, .orbit .spin-b, .intro-orbit * { animation: none !important; }
}
