:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --tint: #efe9e0;
  --ink: #1d2730;
  --ink-soft: #4a5560;
  --muted: #6c757e;
  --line: #ddd5c9;
  --accent: #b5532f;
  --accent-dark: #973f20;
  --accent-light: #e9a07e;
  --night: #161d24;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 38em; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 .9em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  padding: .85em 1.45em; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: #fff; font-weight: 650; text-decoration: none; cursor: pointer; font-size: 1rem;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--small { padding: .5em 1.1em; font-size: .95rem; }
.btn svg { width: 1.1em; height: 1.1em; }

/* ── Top bar ───────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 550; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }

/* ── Hero (full-bleed photo) ───────────────── */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--night); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,18,.1) 0%, rgba(10,14,18,.35) 45%, rgba(10,14,18,.86) 100%), linear-gradient(90deg, rgba(10,14,18,.45) 0%, rgba(10,14,18,0) 65%); }
.hero__content { position: relative; z-index: 1; padding: 120px 0 56px; }
.hero .eyebrow { display: inline-block; color: #fff; background: rgba(181,83,47,.92); padding: .45em .9em; border-radius: 999px; font-size: .74rem; }
.hero h1 { max-width: 13em; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero .lede { color: rgba(255,255,255,.88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

.trust { background: var(--night); color: #dfe4e8; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust li { padding: 22px 20px; display: flex; flex-direction: column; gap: 2px; }
.trust li + li { border-left: 1px solid rgba(255,255,255,.1); }
.trust strong { font-family: var(--serif); font-size: 1.65rem; font-weight: 600; color: #fff; display: block; }
.trust .stars { margin-left: 6px; }
.trust li > span, .trust a > span { color: #9aa5ae; font-size: .95rem; }
.trust a { text-decoration: none; }
.stars { color: #f2b544; letter-spacing: 1px; font-size: 1.05rem; }

/* ── Sections ──────────────────────────────── */
.section { padding: clamp(60px, 9vw, 108px) 0; }
.section--tint { background: var(--tint); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 24px; margin-bottom: 28px; }
.section__head h2, .section__head p { margin: 0; }

/* Services */
.services { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.services li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.services svg { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.services h3 { margin-bottom: .3em; }
.services p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* Featured mosaic */
.mosaic { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; }
.mosaic a { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--tint); }
.mosaic a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic a:nth-child(4) { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mosaic a:hover img { transform: scale(1.04); }
.mosaic a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.mosaic__more { display: flex !important; flex-direction: column; justify-content: flex-end; padding: 20px; color: #fff; text-decoration: none; }
.mosaic__more img { position: absolute; inset: 0; filter: brightness(.45); }
.mosaic__more span { position: relative; font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; }
.mosaic__more small { position: relative; font-size: .95rem; opacity: .85; margin-top: 4px; }
.center { text-align: center; margin-top: 28px; }

/* About */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about__text p { color: var(--ink-soft); font-size: 1.08rem; }
.promises { list-style: none; counter-reset: p; padding: 0; margin: 0; display: grid; gap: 12px; }
.promises li { counter-increment: p; background: var(--surface); border-radius: var(--radius); padding: 20px 22px 18px 70px; position: relative; border: 1px solid var(--line); }
.promises li::before { content: counter(p, decimal-leading-zero); position: absolute; left: 22px; top: 19px; font-family: var(--serif); font-size: 1.3rem; color: var(--accent); font-weight: 600; }
.promises h3 { margin-bottom: .2em; }
.promises p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* Reviews */
.reviews { columns: 3 300px; column-gap: 14px; }
.review { break-inside: avoid; margin: 0 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.review blockquote { margin: 10px 0 14px; font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; }
.review figcaption { color: var(--muted); font-size: .93rem; }
.review figcaption strong { color: var(--ink); }

/* Contact */
.contact { background: var(--night); color: #eef1f3; }
.contact .lede, .contact .muted { color: #aeb8c0; }
.contact .eyebrow { color: var(--accent-light); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.contact__actions { display: grid; gap: 12px; }
.contact__card { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border-radius: var(--radius); text-decoration: none; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); transition: background .15s ease; }
.contact__card:hover { background: rgba(255,255,255,.12); }
.contact__label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-light); font-weight: 700; }
.contact__value { font-family: var(--serif); font-size: 1.25rem; overflow-wrap: anywhere; text-align: right; }

.footer { background: var(--night); color: #85909a; border-top: 1px solid rgba(255,255,255,.08); font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 22px 0; }

/* ── Gallery page ──────────────────────────── */
.gallery-head { padding: clamp(40px, 6vw, 72px) 0 18px; }
.gallery-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.toolbar { position: sticky; top: 64px; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 12px 0; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; padding: .45em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips .n { opacity: .6; font-weight: 500; margin-left: .25em; }

/* Justified rows: JS sets each tile's flex-grow/width from the photo's shape,
   so every row is filled edge to edge and nothing is cropped. */
.justified { --rh: 250px; display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 72px; }
@media (max-width: 900px) { .justified { --rh: 180px; } }
@media (max-width: 560px) { .justified { --rh: 120px; } }
.justified::after { content: ""; flex-grow: 999999; }
.tile { position: relative; display: block; overflow: hidden; border-radius: 8px; background: var(--tint); cursor: zoom-in; border: 0; padding: 0; }
.tile i { display: block; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease, transform .5s ease; }
.tile img.loaded { opacity: 1; }
.tile:hover img { transform: scale(1.035); }
.tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tile .badge { position: absolute; left: 8px; bottom: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.45); padding: 3px 8px; border-radius: 999px; opacity: 0; transition: opacity .2s ease; }
.tile:hover .badge, .tile:focus-visible .badge { opacity: 1; }

/* ── Viewer (lightbox) ─────────────────────── */
.viewer { position: fixed; inset: 0; z-index: 100; background: #0b0f13; color: #e6eaee; display: grid; grid-template-rows: auto 1fr auto; }
.viewer[hidden] { display: none; }
.viewer__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.viewer__count { font-variant-numeric: tabular-nums; font-size: .95rem; color: #aeb7bf; }
.viewer__bar .spacer { flex: 1; }
.vbtn { font: inherit; cursor: pointer; color: #fff; background: rgba(255,255,255,.1); border: 0; border-radius: 999px; min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; font-size: .95rem; text-decoration: none; }
.vbtn:hover { background: rgba(255,255,255,.22); }
.vbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.viewer__stage { position: relative; overflow: hidden; display: grid; place-items: center; touch-action: pan-y; }
.viewer__stage.zoomed { overflow: auto; place-items: start; touch-action: auto; cursor: zoom-out; }
.viewer__frame { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.viewer__stage.zoomed .viewer__frame { width: auto; height: auto; }
.viewer__img { max-width: calc(100% - 32px); max-height: calc(100% - 16px); object-fit: contain; user-select: none; -webkit-user-drag: none; cursor: zoom-in; border-radius: 4px; transition: opacity .2s ease; }
.viewer__stage.zoomed .viewer__img { max-width: none; max-height: none; cursor: zoom-out; border-radius: 0; }
.viewer__img.blurred { filter: blur(6px); }
.viewer__spin { position: absolute; width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #fff; animation: spin .8s linear infinite; }
.viewer__spin[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; z-index: 2; }
.viewer__nav--prev { left: 14px; }
.viewer__nav--next { right: 14px; }
.viewer__stage.zoomed ~ .viewer__nav { display: none; }
.strip { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px 14px; scroll-behavior: smooth; scrollbar-width: thin; }
.strip button { flex: none; width: 72px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: #222; opacity: .55; transition: opacity .15s ease; }
.strip button:hover { opacity: .9; }
.strip button[aria-current="true"] { border-color: #fff; opacity: 1; }
.strip img { width: 100%; height: 100%; object-fit: cover; }

/* ── Responsive ────────────────────────────── */
@media (max-width: 900px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .about, .contact__inner { grid-template-columns: 1fr; }
  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .trust li:nth-child(3) { border-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .mosaic a:nth-child(4) { grid-row: span 1; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .topbar__inner { justify-content: space-between; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .services { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
  .hero__content { padding-bottom: 36px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .trust li { padding: 16px 12px; }
  .trust strong { font-size: 1.3rem; }
  .mosaic { grid-auto-rows: 130px; gap: 6px; }
  .contact__card { flex-direction: column; align-items: flex-start; gap: 4px; }
  .contact__value { text-align: left; }
  .justified { gap: 4px; }
  .tile { border-radius: 4px; }
  .viewer__nav { display: none; }
  .strip button { width: 56px; height: 42px; }
  .vbtn.hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
