/* Site styles. Colours, font and spacing tokens live in theme.css (loaded first). */

@media (min-width: 640px) { :root { --gutter: 24px; --sec: 88px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --sec: 112px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 640px) { body { font-size: 1.0625rem; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
::selection { background: var(--moss); color: var(--ink); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
ul, ol { padding: 0; margin: 0; list-style: none; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.dim { color: var(--text-dim); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--text-light); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* ---------- type ---------- */
.display, .h-xxl, .h-xl, .h-lg, .h-md {
  font-stretch: 72%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.92;
}
.display { font-size: clamp(2.75rem, 1.2rem + 7.2vw, 7rem); }
.h-xxl { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5rem); }
.h-xl { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.75rem); }
.h-lg { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
.h-md { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); line-height: 1; }
.h-sm { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
.eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin: 0 0 16px; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.eyebrow-light { color: var(--moss); }
.lead { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); line-height: 1.5; color: var(--text-dim); max-width: 60ch; margin-top: 20px; }
.lead p:last-child { margin-bottom: 0; }
.meta { color: var(--text-dim); margin: 12px 0 0; font-weight: 500; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font: 600 0.9375rem/1 var(--font); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1rem; }
.btn-solid { background: var(--green); color: #fff; }
.btn-solid:hover { background: var(--green-hover); color: #fff; }
.btn-line { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--text); color: var(--text); }
.btn-ghost-light { border-color: oklch(1 0 0 / 0.5); color: #fff; background: oklch(0 0 0 / 0.12); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: oklch(0 0 0 / 0.25); }
.btn-ghost-dark { border-color: var(--line-light); color: var(--text-light); }
.btn-ghost-dark:hover { color: #fff; border-color: oklch(1 0 0 / 0.4); }
.row-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--green); }
.link-arrow::after { content: ""; width: 14px; height: 10px; background: currentColor; clip-path: polygon(0 40%, 70% 40%, 70% 0, 100% 50%, 70% 100%, 70% 60%, 0 60%); transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover::after, a:hover > .link-arrow::after { transform: translateX(3px); }
.link-arrow-light { color: var(--moss); }
.link-arrow-light:hover { color: #fff; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--text-light); border-bottom: 1px solid var(--line-light); }
.has-hero .site-head { position: absolute; left: 0; right: 0; background: transparent; border-bottom-color: transparent; transition: background-color var(--t-med) var(--ease); }
.has-hero .site-head.is-stuck { position: fixed; background: var(--ink); border-bottom-color: var(--line-light); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; margin-right: auto; }
.brand:hover { color: #fff; }
.brand img { width: 52px; height: auto; }
.brand-word { display: flex; flex-direction: column; font-stretch: 72%; font-weight: 800; font-size: 1.5rem; line-height: 0.9; text-transform: uppercase; letter-spacing: 0.01em; }
.brand-word small { font-stretch: 100%; font-weight: 600; font-size: 0.5625rem; letter-spacing: 0.2em; color: var(--text-light-dim); margin-top: 4px; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav ul a { display: block; padding: 10px 12px; text-decoration: none; font-weight: 500; font-size: 0.9375rem; color: var(--text-light-dim); border-radius: var(--r-sm); }
.site-nav ul a:hover { color: #fff; }
.site-nav ul a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--moss); border-radius: 0; }
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-phone { color: #fff; text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.nav-phone:hover { color: var(--moss); }
.menu-btn { display: none; }

@media (max-width: 959px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; margin-right: -12px; background: none; border: 0; color: #fff; font: 600 0.9375rem var(--font); cursor: pointer; }
  .menu-icon { position: relative; width: 20px; height: 2px; background: currentColor; transition: background-color var(--t-fast); }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: transform var(--t-med) var(--ease); }
  .menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }
  .menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: var(--ink); border-bottom: 1px solid var(--line-light); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { padding: 14px 0; font-size: 1.25rem; border-bottom: 1px solid var(--line-light); border-radius: 0; }
  .site-nav ul a[aria-current="page"] { box-shadow: none; color: var(--moss); }
  .nav-cta { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 20px; }
  .nav-phone { font-size: 1.25rem; padding: 8px 0; }
  .has-hero .site-head:has(.is-open) { background: var(--ink); }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92svh, 900px); display: flex; align-items: flex-end; background: var(--ink); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* functional scrim so text stays readable over any photo */
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, oklch(0.12 0.01 155 / 0.55) 0%, oklch(0.12 0.01 155 / 0) 28%), linear-gradient(0deg, oklch(0.12 0.01 155 / 0.88) 0%, oklch(0.12 0.01 155 / 0.35) 50%, oklch(0.12 0.01 155 / 0.1) 75%); }
.hero-inner { position: relative; padding-top: 140px; padding-bottom: 56px; }
.hero .eyebrow-light { color: oklch(0.9 0.09 135); text-shadow: 0 1px 8px oklch(0.12 0.01 155 / 0.6); }
@media (max-width: 639px) {
  /* text covers most of the photo on phones, so darken it more evenly */
  .hero-media::after { background: linear-gradient(0deg, oklch(0.12 0.01 155 / 0.9) 0%, oklch(0.12 0.01 155 / 0.6) 55%, oklch(0.12 0.01 155 / 0.45) 100%); }
}
.hero .display { max-width: 13ch; }
.hero-sub { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem); max-width: 46ch; color: oklch(0.93 0.008 120); margin: 24px 0 32px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1024px) { .hero-inner { padding-bottom: 88px; } }

/* ---------- sections ---------- */
.section { padding: var(--sec) 0; }
.section-tight { padding: calc(var(--sec) * 0.6) 0; }
.section-flush-top { padding-top: 0; }
.section-paper2 { background: var(--paper-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head .eyebrow { margin: 0; }

.page-head { padding: calc(var(--sec) * 0.75) 0 calc(var(--sec) * 0.6); }
.page-head .h-xxl { max-width: 16ch; }
.page-head-split .lead { margin-bottom: 28px; }
.split { display: grid; gap: 32px; align-items: end; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 1fr; gap: 56px; } }

.intro-grid { display: grid; gap: 32px; }
.intro-copy { font-size: 1.125rem; color: var(--text-dim); max-width: 56ch; }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; } .intro-copy { padding-top: 8px; } }

.ticks { display: grid; gap: 10px; margin-top: 24px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text); font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

/* services list (home) */
.svc-list { border-top: 1px solid var(--line-strong); }
.svc-row { position: relative; display: grid; grid-template-columns: 44px 1fr 24px; gap: 4px 16px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.svc-num { font-size: 0.8125rem; font-weight: 600; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.svc-name { font-stretch: 72%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1; transition: color var(--t-fast) var(--ease); }
.svc-sum { grid-column: 2; color: var(--text-dim); font-size: 0.9375rem; max-width: 52ch; }
.svc-go { grid-column: 3; grid-row: 1; width: 18px; height: 12px; background: var(--text-dim); clip-path: polygon(0 40%, 70% 40%, 70% 0, 100% 50%, 70% 100%, 70% 60%, 0 60%); transition: transform var(--t-fast) var(--ease), background-color var(--t-fast); }
.svc-peek { display: none; }
.svc-row:hover { color: var(--text); }
.svc-row:hover .svc-name { color: var(--green); }
.svc-row:hover .svc-go { background: var(--green); transform: translateX(4px); }
@media (min-width: 900px) {
  .svc-row { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr) 32px; padding: 28px 0; }
  .svc-sum { grid-column: 3; grid-row: 1; }
  .svc-go { grid-column: 4; }
  .svc-peek { display: block; position: absolute; right: 64px; top: 50%; width: 220px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); opacity: 0; transform: translateY(-50%) scale(0.96); pointer-events: none; transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease); z-index: 2; box-shadow: 0 12px 32px oklch(0.17 0.014 155 / 0.25); }
  .svc-row:hover .svc-peek { opacity: 1; transform: translateY(-50%) scale(1); }
  .svc-row:hover .svc-sum { opacity: 0.25; }
}

/* recent work band */
.work-band { background: var(--ink); color: var(--text-light); }
.mosaic { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.tile { position: relative; display: block; overflow: hidden; border-radius: var(--r-sm); aspect-ratio: 1; color: #fff; text-decoration: none; background: var(--ink-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.tile:hover img { transform: scale(1.03); }
.tile-lead { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.tile-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 12px 12px; background: linear-gradient(0deg, oklch(0.12 0.01 155 / 0.85), transparent); display: flex; flex-direction: column; gap: 2px; font-weight: 600; font-size: 0.9375rem; line-height: 1.25; }
.tile-cap small { font-weight: 500; font-size: 0.75rem; color: var(--text-light-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.tile:hover { color: #fff; }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; height: 640px; }
  .tile { aspect-ratio: auto; }
  .tile-lead { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; }
  .tile-cap { padding: 40px 16px 16px; }
}

/* steps */
.steps { display: grid; gap: 32px; counter-reset: s; }
.steps li { border-top: 2px solid var(--text); padding-top: 20px; }
.step-n { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--green); margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.steps h3 { font-stretch: 72%; font-weight: 800; text-transform: uppercase; font-size: 1.625rem; line-height: 1; margin-bottom: 12px; }
.steps p { color: var(--text-dim); margin: 0; font-size: 0.9875rem; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

/* reviews */
.quotes { display: grid; gap: 16px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { margin: 0; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); display: flex; flex-direction: column; gap: 16px; }
.quotes-all .quote { background: var(--paper-2); }
.quote blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.55; flex: 1; }
.quote blockquote p { margin: 0; }
.quote figcaption { font-size: 0.9375rem; }
.stars { display: flex; gap: 3px; }
.star { width: 14px; height: 14px; background: var(--line-strong); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.star.on { background: var(--green); }

/* CTA band */
.cta { background: var(--green); color: #fff; padding: calc(var(--sec) * 0.8) 0; }
.cta-inner { display: grid; gap: 32px; align-items: end; }
.cta-sub { font-size: 1.125rem; color: oklch(0.93 0.03 140); margin: 16px 0 0; max-width: 46ch; }
.cta .btn-solid { background: var(--ink); }
.cta .btn-solid:hover { background: oklch(0.1 0.01 155); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.cta-phone { display: flex; flex-direction: column; color: #fff; text-decoration: none; font-stretch: 72%; font-weight: 800; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.cta-phone small { font-stretch: 100%; font-weight: 500; font-size: 0.8125rem; color: oklch(0.93 0.03 140); margin-bottom: 4px; text-transform: none; }
.cta-phone:hover { color: var(--ink); }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.3fr 1fr; } .cta-actions { justify-content: flex-end; } }

/* service cards (services page) */
.svc-grid { display: grid; gap: 40px 24px; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.svc-card:hover { color: var(--text); }
.svc-card-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-md); background: var(--paper-3); }
.svc-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.svc-card:hover img { transform: scale(1.03); }
.svc-card-body { padding-top: 16px; border-top: 0; }
.svc-card-body .svc-num { display: block; margin-bottom: 8px; }
.svc-card-body p { color: var(--text-dim); margin: 10px 0 14px; font-size: 0.9875rem; }

/* prose */
.prose-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .prose-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 80px; align-items: start; } }
.prose { max-width: 68ch; font-size: 1.0625rem; line-height: 1.7; }
.prose h2 { font-stretch: 80%; font-weight: 800; text-transform: uppercase; font-size: 1.375rem; line-height: 1.1; margin: 40px 0 12px; }
.prose ul { list-style: disc; padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--green); }
.legal { font-size: 1rem; }
.side-box { padding: 24px; background: var(--paper-2); border-radius: var(--r-md); }
.side-box .ticks { margin-top: 0; }
.side-box p { margin: 0; }
.side-gap { margin-top: 28px; }

/* faq */
.faq { margin-top: 24px; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; font-weight: 600; font-size: 1.0625rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--text-dim); border-bottom: 2px solid var(--text-dim); transform: translateY(-3px) rotate(45deg); transition: transform var(--t-med) var(--ease); }
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { margin: -4px 0 20px; color: var(--text-dim); max-width: 64ch; }

/* chips + filters */
.chip-row, .filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters { margin-bottom: 28px; }
@media (max-width: 639px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 24px; padding: 2px var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters .chip { flex: none; }
}
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text); font: 500 0.875rem var(--font); text-decoration: none; cursor: pointer; transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.chip:hover { border-color: var(--text); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* project grid */
.pgrid { display: grid; gap: 32px 20px; }
@media (min-width: 640px) { .pgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
.pcard { display: block; text-decoration: none; color: var(--text); }
.pcard:hover { color: var(--text); }
.pcard-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-md); background: var(--paper-3); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.03); }
.pcard-body { padding-top: 14px; }
.pcard-body h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.25; }
.pcard:hover h3 { color: var(--green); }
.pcard-body p { margin: 4px 0 0; font-size: 0.875rem; }
.empty { padding: 48px 0; color: var(--text-dim); font-size: 1.0625rem; }

/* project photos */
/* masonry columns: mixed portrait/landscape photos with no gaps or cropping */
.photo-grid { columns: 2; column-gap: 8px; }
@media (min-width: 900px) { .photo-grid { columns: 3; column-gap: 12px; } }
.photo-cell { display: block; overflow: hidden; border-radius: var(--r-sm); background: var(--paper-3); cursor: zoom-in; break-inside: avoid; margin-bottom: 8px; }
@media (min-width: 900px) { .photo-cell { margin-bottom: 12px; } }
.photo-cell img { width: 100%; height: auto; transition: transform 600ms var(--ease); }
.photo-cell:hover img { transform: scale(1.02); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: oklch(0.1 0.008 155 / 0.96); display: flex; align-items: center; justify-content: center; }
.lb img { max-width: calc(100vw - 32px); max-height: calc(100svh - 120px); width: auto; height: auto; object-fit: contain; }
.lb-btn { position: absolute; width: 48px; height: 48px; border: 1px solid var(--line-light); border-radius: var(--r-sm); background: oklch(0.17 0.014 155 / 0.6); color: #fff; font: 600 1.25rem var(--font); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover { border-color: oklch(1 0 0 / 0.5); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: var(--text-light-dim); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
@media (max-width: 639px) { .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; } }

/* before / after */
.ba { position: relative; overflow: hidden; border-radius: var(--r-md); aspect-ratio: 3 / 2; background: var(--ink); user-select: none; }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba-after, .ba-before { position: absolute; inset: 0; }
.ba-before { clip-path: inset(0 50% 0 0); }
.ba-tag { position: absolute; top: 12px; padding: 4px 10px; background: oklch(0.17 0.014 155 / 0.75); color: #fff; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; border-radius: var(--r-sm); }
.ba-tag-l { left: 12px; } .ba-tag-r { right: 12px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; pointer-events: none; }
.ba-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; box-shadow: 0 2px 8px oklch(0 0 0 / 0.3); }
.ba-range:focus-visible + .ba-handle::after { box-shadow: 0 0 0 3px var(--green); }

/* contact */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 80px; } }
.contact-aside { align-self: start; padding: 28px; background: var(--ink); color: var(--text-light); border-radius: var(--r-md); }
.contact-aside .h-sm { color: var(--text-light-dim); }
.contact-aside .dim { color: var(--text-light-dim); font-size: 0.9375rem; margin-top: 16px; }
.contact-aside p { margin-bottom: 0; }
.big-link { display: block; font-stretch: 72%; font-weight: 800; font-size: 2.5rem; line-height: 1; color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; }
.big-link:hover { color: var(--moss); }
.mid-link { display: block; margin-top: 10px; color: var(--moss); word-break: break-all; }
.mid-link:hover { color: #fff; }

.form { display: grid; gap: 20px; max-width: 720px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 600; font-size: 0.9375rem; }
.opt { font-weight: 400; color: var(--text-dim); font-size: 0.8125rem; margin-left: 4px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: 400 1rem/1.4 var(--font); color: var(--text);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color var(--t-fast);
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-dim); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); border-radius: var(--r-sm); }
.field input[type="file"] { font: inherit; font-size: 0.9375rem; padding: 12px; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); background: #fff; }
.field [aria-invalid="true"] { border-color: var(--err) !important; }
.field-err { color: var(--err); font-size: 0.875rem; font-weight: 500; margin: 0; }
.hint { color: var(--text-dim); font-size: 0.875rem; margin: 0; }
.hint-top { margin-top: -12px; }
.field-check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.field-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); flex: none; }
.field-check label { flex: 1; font-weight: 400; font-size: 0.9375rem; color: var(--text-dim); }
.field-check .field-err { flex-basis: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 20px 24px; border-radius: var(--r-md); margin-bottom: 24px; border: 1px solid; }
.notice p { margin: 0; }
.notice-ok { background: var(--green-soft); border-color: oklch(0.44 0.085 152 / 0.3); }
.notice-ok .h-md { margin-bottom: 10px; }
.notice-err { background: var(--err-soft); border-color: oklch(0.52 0.17 28 / 0.3); color: var(--err); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* footer */
.site-foot { background: var(--ink); color: var(--text-light-dim); padding: 64px 0 24px; font-size: 0.9375rem; }
.site-foot a { color: var(--text-light); text-decoration: none; }
.site-foot a:hover { color: var(--moss); }
.foot-grid { display: grid; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-light); }
.foot-brand img { width: 220px; }
.foot-h { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light-dim); margin-bottom: 14px; }
.foot-col p { margin: 0 0 6px; }
.foot-col .dim { color: var(--text-light-dim); margin-top: 12px; }
.foot-links { display: grid; gap: 6px; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .foot-grid { grid-template-columns: 1.4fr 1fr 0.8fr 0.8fr; } }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; font-size: 0.8125rem; }
.foot-legal p { margin: 0; }
.foot-legal a { margin-left: 16px; color: var(--text-light-dim); }
.foot-legal a:first-child { margin-left: 0; }

/* mobile call bar */
.callbar { display: none; }
@media (max-width: 639px) {
  .callbar { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--ink); border-top: 1px solid var(--line-light); }
  body:has(.callbar) .site-foot { padding-bottom: 88px; }
}

.page-404 { min-height: 50vh; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
