:root {
  --bg: #ffffff;
  --header-bg: #f0f0f0;
  --text: #111111;
  --text-dim: #555555;
  --text-muted: #999999;
  --border: #e0e0e0;
  --max-w: 920px;
  --gutter: clamp(24px, 5vw, 48px);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1e1e;
    --header-bg: #111111;
    --text: #e8e8e8;
    --text-dim: #aaaaaa;
    --text-muted: #666666;
    --border: #2e2e2e;
  }
  code { background: #2a2a2a; }
  .btn-secondary:hover { background: #2a2a2a; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: #f5f5f5;
  padding: 2px 5px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  transition: color 0.15s;
}
.brand:hover { color: var(--text-dim); }
.nav-links {
  display: flex;
  gap: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active {
  color: var(--text);
  font-weight: 600;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    inset: 60px 0 auto 0;
    flex-direction: column;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px var(--gutter); }
  .nav-toggle { display: inline-block; }
}

/* ── Home intro ── */
.home-intro { padding: 60px 0 48px; }
.home-intro h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.intro-sub {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.rule {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0 0 36px;
}
.intro-body {
  font-size: 0.93rem;
  color: var(--text-dim);
  max-width: 58ch;
  line-height: 1.75;
  margin-bottom: 0;
}
.intro-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
  margin-bottom: 56px;
}
@media (max-width: 540px) { .intro-meta { grid-template-columns: 1fr; } }
.meta-col { padding: 28px 0; }
.meta-col + .meta-col {
  border-left: 1px solid var(--border);
  padding-left: 40px;
}
@media (max-width: 540px) {
  .meta-col + .meta-col { border-left: 0; border-top: 1px solid var(--border); padding-left: 0; }
}
.meta-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.meta-list li {
  font-size: 0.93rem;
  color: var(--text-dim);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.meta-list li:last-child { border-bottom: 0; }
.intro-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.intro-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.15s;
}
.intro-links a:hover { color: var(--text-dim); }

/* ── Page hero ── */
.page-hero {
  padding: 56px 0 28px;
  margin-bottom: 40px;
}
.page-hero .container {
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
}
.page-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 300;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 60ch;
  margin-bottom: 28px;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border: 1px solid var(--text);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  background: transparent;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn-secondary {
  border-color: var(--border);
  color: var(--text-dim);
}
.btn-secondary:hover { background: #f5f5f5; color: var(--text); }
.btn-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Section label ── */
.section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

/* ── Tag row ── */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 5px 12px;
}

/* ── Service groups ── */
.service-group { margin-bottom: 36px; }
.service-group summary { list-style: none; }
.service-group summary::-webkit-details-marker { display: none; }
.service-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 14px;
  margin: 0 -8px;
  border-bottom: 2px solid var(--text);
  cursor: pointer;
  user-select: none;
  border-radius: 4px 4px 0 0;
  transition: background 0.15s;
}
.service-group-title:hover {
  background: var(--border);
}
.service-group-title h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
}
.service-group-arrow {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.2s;
  line-height: 1;
}
.service-group[open] .service-group-arrow {
  transform: rotate(45deg);
}
.group-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.service-item {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 620px) { .service-item { grid-template-columns: 1fr; gap: 8px; } }
.service-item h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  padding-top: 2px;
}
.service-item p {
  color: var(--text-dim);
  font-size: 0.93rem;
  margin-bottom: 10px;
}
.service-item ul {
  padding-left: 14px;
  list-style: disc;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.service-item ul li { padding: 2px 0; }

/* ── Process steps ── */
.step-list { margin-top: 32px; }
.step-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.step-item:first-child { border-top: 1px solid var(--border); }
.step-num {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 300;
}
.step-item h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 6px;
}
.step-item p { font-size: 0.93rem; color: var(--text-dim); }

/* ── Vertical timeline ── */
.vtimeline {
  position: relative;
  padding-left: 32px;
  margin: 0;
}
.vtimeline::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.vt-entry {
  position: relative;
  padding: 0 0 40px;
}
.vt-entry:last-child { padding-bottom: 0; }
.vt-entry::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 3px var(--bg);
}
.vt-when {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.vt-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 2px;
}
.vt-org {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.vt-entry ul {
  list-style: disc;
  padding-left: 14px;
  color: var(--text-dim);
  font-size: 0.93rem;
}
.vt-entry ul li { padding: 2px 0; }

/* ── Contact ── */
.contact-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
}
@media (max-width: 680px) { .contact-layout { grid-template-columns: 1fr; gap: 40px; } }
.contact-info dt {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 24px;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 5px 0 0; font-size: 0.93rem; color: var(--text-dim); }
.contact-info dd a:hover { color: var(--text); }

/* ── Form ── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; }
.field label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input, .field select, .field textarea {
  background: transparent;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  transition: border-color 0.15s;
}
.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 22px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--text); }

/* ── Bottom CTA ── */
.bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.bottom-cta-text h3 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 400; margin-bottom: 4px; }
.bottom-cta-text p { font-size: 0.93rem; color: var(--text-dim); }

/* ── Note ── */
.note {
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  padding: 14px 18px;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 60px;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--text-muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }

/* ── Prints collage ── */
.collage {
  columns: 3 220px;
  gap: 12px;
}
.collage-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.collage-item img {
  width: 100%;
  display: block;
  transition: transform 0.3s;
}
.collage-item:hover img { transform: scale(1.03); }

/* ── Color swatches ── */
.btn-colors {
  margin-top: 12px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.btn-colors:hover { border-color: var(--text); color: var(--text); }
.color-panel { margin-top: 20px; }
.color-subgroup { margin-bottom: 20px; }
.color-subgroup-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 80px;
}
.swatch img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
}
.swatch span {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}
.swatch-noimg {
  width: 80px;
}
.swatch-noimg span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border: 1px dashed var(--border);
  font-size: 0.62rem;
  color: var(--text-muted);
  text-align: center;
  padding: 4px;
  line-height: 1.3;
}
.swatch-oos-x {
  color: #cc0000 !important;
  font-weight: 700;
  margin-right: 2px;
}

/* ── Utilities ── */
.divider { border: 0; border-top: 1px solid var(--border); margin: 48px 0; }
section { padding: 64px 0; }
section.tight { padding: 0 0 64px; }

/* ── Circuit edge decoration ── */
.circuit-left,
.circuit-right {
  display: none;
}
@media (min-width: 1080px) {
  .circuit-left,
  .circuit-right {
    display: block;
    position: fixed;
    top: 60px;
    bottom: 0;
    width: 70px;
    pointer-events: none;
    z-index: 49;
    background-repeat: repeat-y;
    background-size: 70px 200px;
  }
  .circuit-left {
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='200'%3E%3Cline x1='18' y1='0' x2='18' y2='200' stroke='%23888' stroke-width='2'/%3E%3Cline x1='18' y1='32' x2='54' y2='32' stroke='%23888' stroke-width='1.5'/%3E%3Ccircle cx='18' cy='32' r='4' fill='%23555'/%3E%3Ccircle cx='54' cy='32' r='2.5' fill='%23888'/%3E%3Cpolyline points='18,72 34,72 34,54' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='18' cy='72' r='4' fill='%23555'/%3E%3Ccircle cx='34' cy='54' r='2.5' fill='%23888'/%3E%3Cline x1='18' y1='108' x2='60' y2='108' stroke='%23888' stroke-width='1.5'/%3E%3Ccircle cx='18' cy='108' r='4' fill='%23555'/%3E%3Ccircle cx='60' cy='108' r='2.5' fill='%23888'/%3E%3Cpolyline points='18,148 32,148 32,170' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='18' cy='148' r='4' fill='%23555'/%3E%3Ccircle cx='32' cy='170' r='2.5' fill='%23888'/%3E%3Cline x1='18' y1='184' x2='50' y2='184' stroke='%23888' stroke-width='1.5'/%3E%3Ccircle cx='18' cy='184' r='4' fill='%23555'/%3E%3Ccircle cx='50' cy='184' r='2.5' fill='%23888'/%3E%3C/svg%3E");
  }
  .circuit-right {
    right: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='200'%3E%3Cline x1='52' y1='0' x2='52' y2='200' stroke='%23888' stroke-width='2'/%3E%3Cline x1='52' y1='32' x2='16' y2='32' stroke='%23888' stroke-width='1.5'/%3E%3Ccircle cx='52' cy='32' r='4' fill='%23555'/%3E%3Ccircle cx='16' cy='32' r='2.5' fill='%23888'/%3E%3Cpolyline points='52,72 36,72 36,54' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='52' cy='72' r='4' fill='%23555'/%3E%3Ccircle cx='36' cy='54' r='2.5' fill='%23888'/%3E%3Cline x1='52' y1='108' x2='10' y2='108' stroke='%23888' stroke-width='1.5'/%3E%3Ccircle cx='52' cy='108' r='4' fill='%23555'/%3E%3Ccircle cx='10' cy='108' r='2.5' fill='%23888'/%3E%3Cpolyline points='52,148 38,148 38,170' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='52' cy='148' r='4' fill='%23555'/%3E%3Ccircle cx='38' cy='170' r='2.5' fill='%23888'/%3E%3Cline x1='52' y1='184' x2='20' y2='184' stroke='%23888' stroke-width='1.5'/%3E%3Ccircle cx='52' cy='184' r='4' fill='%23555'/%3E%3Ccircle cx='20' cy='184' r='2.5' fill='%23888'/%3E%3C/svg%3E");
  }
  @media (prefers-color-scheme: dark) {
    .circuit-left {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='200'%3E%3Cline x1='18' y1='0' x2='18' y2='200' stroke='%23aaa' stroke-width='2'/%3E%3Cline x1='18' y1='32' x2='54' y2='32' stroke='%23aaa' stroke-width='1.5'/%3E%3Ccircle cx='18' cy='32' r='4' fill='%23ccc'/%3E%3Ccircle cx='54' cy='32' r='2.5' fill='%23aaa'/%3E%3Cpolyline points='18,72 34,72 34,54' stroke='%23aaa' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='18' cy='72' r='4' fill='%23ccc'/%3E%3Ccircle cx='34' cy='54' r='2.5' fill='%23aaa'/%3E%3Cline x1='18' y1='108' x2='60' y2='108' stroke='%23aaa' stroke-width='1.5'/%3E%3Ccircle cx='18' cy='108' r='4' fill='%23ccc'/%3E%3Ccircle cx='60' cy='108' r='2.5' fill='%23aaa'/%3E%3Cpolyline points='18,148 32,148 32,170' stroke='%23aaa' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='18' cy='148' r='4' fill='%23ccc'/%3E%3Ccircle cx='32' cy='170' r='2.5' fill='%23aaa'/%3E%3Cline x1='18' y1='184' x2='50' y2='184' stroke='%23aaa' stroke-width='1.5'/%3E%3Ccircle cx='18' cy='184' r='4' fill='%23ccc'/%3E%3Ccircle cx='50' cy='184' r='2.5' fill='%23aaa'/%3E%3C/svg%3E");
    }
    .circuit-right {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='200'%3E%3Cline x1='52' y1='0' x2='52' y2='200' stroke='%23aaa' stroke-width='2'/%3E%3Cline x1='52' y1='32' x2='16' y2='32' stroke='%23aaa' stroke-width='1.5'/%3E%3Ccircle cx='52' cy='32' r='4' fill='%23ccc'/%3E%3Ccircle cx='16' cy='32' r='2.5' fill='%23aaa'/%3E%3Cpolyline points='52,72 36,72 36,54' stroke='%23aaa' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='52' cy='72' r='4' fill='%23ccc'/%3E%3Ccircle cx='36' cy='54' r='2.5' fill='%23aaa'/%3E%3Cline x1='52' y1='108' x2='10' y2='108' stroke='%23aaa' stroke-width='1.5'/%3E%3Ccircle cx='52' cy='108' r='4' fill='%23ccc'/%3E%3Ccircle cx='10' cy='108' r='2.5' fill='%23aaa'/%3E%3Cpolyline points='52,148 38,148 38,170' stroke='%23aaa' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='52' cy='148' r='4' fill='%23ccc'/%3E%3Ccircle cx='38' cy='170' r='2.5' fill='%23aaa'/%3E%3Cline x1='52' y1='184' x2='20' y2='184' stroke='%23aaa' stroke-width='1.5'/%3E%3Ccircle cx='52' cy='184' r='4' fill='%23ccc'/%3E%3Ccircle cx='20' cy='184' r='2.5' fill='%23aaa'/%3E%3C/svg%3E");
    }
  }
}

/* ── View Transitions (cross-document page animation) ── */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: vt-fade-out 0.22s cubic-bezier(0.4, 0, 1, 1) both;
}
::view-transition-new(root) {
  animation: vt-fade-in 0.32s cubic-bezier(0, 0, 0.2, 1) both;
}
@keyframes vt-fade-out {
  to { opacity: 0; transform: translateY(-6px); }
}
@keyframes vt-fade-in {
  from { opacity: 0; transform: translateY(10px); }
}

/* Header stays put while the page body animates under it */
.site-header { view-transition-name: site-header; }
::view-transition-old(site-header),
::view-transition-new(site-header) { animation: none; }

/* ── Gallery ── */

.gallery-wide {
  max-width: 1180px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
.gallery-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: transparent;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.gallery-card:hover { border-color: var(--text-dim); transform: translateY(-2px); }
.gallery-card:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.gallery-media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--header-bg);
}
.gallery-media img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}
.gallery-card:hover .gallery-media img { transform: scale(1.04); }
.gallery-caption { display: block; padding: 10px 12px 12px; }
.gallery-caption h3 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.35;
}
.gallery-caption p {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
}
.gallery-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 3px 8px;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(10, 10, 10, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-figure {
  margin: 0;
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: scale(0.97);
  transition: transform 0.25s ease;
}
.lightbox.open .lightbox-figure { transform: scale(1); }
.lightbox-figure img {
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.lightbox-cap {
  color: #f0f0f0;
  text-align: center;
  max-width: 60ch;
}
.lightbox-cap strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.lightbox-cap span { font-size: 0.86rem; color: #b4b4b4; line-height: 1.6; }
.lightbox-counter {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #8a8a8a;
  margin-top: 2px;
}
.lb-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 46px;
  height: 46px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.4); }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-close { top: clamp(12px, 3vw, 28px); right: clamp(12px, 3vw, 28px); font-size: 1.1rem; }
.lb-prev { left: clamp(8px, 2vw, 24px); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(8px, 2vw, 24px); top: 50%; transform: translateY(-50%); }
@media (max-width: 620px) {
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lightbox-figure img { max-height: 60vh; }
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 72px;
  padding: 32px 0 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.footer-inner p { font-size: 0.8rem; color: var(--text-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a {
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Contact detail column ── */
.contact-note h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 10px;
}
.contact-note p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.65; }
.contact-checklist { margin: 12px 0 0; }
.contact-checklist li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 7px;
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.55;
}
.contact-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 1px;
  background: var(--text-muted);
}
.contact-aside {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
}

/* ── Skip link (keyboard accessibility) ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--text);
  color: var(--bg);
  padding: 10px 18px;
  font-size: 0.85rem;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Visible focus for keyboard users sitewide */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
