:root {
  color-scheme: light;
  --paper: #f7f1e7;
  --raise: #efe6d8;
  --ink: #23201c;
  --muted: #7a7166;
  --hair: rgba(35, 32, 28, 0.14);
  --clay: #d6553a;
  --glass: rgba(255, 255, 255, 0.66);
  --glass-line: rgba(255, 255, 255, 0.55);
  --glass-ink: #15140f;
  --live: #4d7c5a;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Commissioner, Inter, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(1.4rem, 3.2vh, 2.75rem);
  padding: clamp(1.9rem, 4vw, 4rem);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mark { display: inline-flex; align-items: center; }

.logo-mark {
  height: clamp(44px, 5.6vh, 66px);
  width: auto;
}

.tagline {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--muted);
}

.kicker,
.label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker span { opacity: 0.55; padding: 0 0.2rem; }

h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 300;
  font-size: clamp(2.9rem, 6vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.028em;
  margin: 0.7rem 0 0;
}

.lead {
  margin: 1.15rem 0 0;
  max-width: 31rem;
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--muted);
}

.services { margin-top: auto; }

.services ul {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1rem, 3vw, 2.5rem);
}

.services li {
  border-top: 1px solid var(--hair);
  padding: 0.5rem 0;
  font-size: 0.94rem;
  font-weight: 300;
}
.services li::marker { content: ""; }

.actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; margin-top: 0.4rem; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.85rem 1.1rem 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.cta svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.cta:hover { transform: translateY(-2px); }
.cta:hover svg { transform: translateX(4px); }

.reach {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.reach a {
  color: var(--ink);
  border-bottom: 1px solid var(--hair);
  padding-bottom: 1px;
  transition: border-color 0.25s;
}
.reach a:hover { border-color: currentColor; }
.reach span { opacity: 0.4; }

.where {
  margin: -0.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--muted);
}
.where a { border-bottom: 1px solid var(--hair); transition: border-color 0.25s; }
.where a:hover { border-color: currentColor; }
.where span { opacity: 0.45; }

.fine { margin: 0; font-size: 0.75rem; font-weight: 300; color: var(--muted); }
.fine span { opacity: 0.5; padding: 0 0.15rem; }

.visual {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.frames {
  position: absolute;
  inset: 0;
  background: var(--raise) url("assets/art.svg") center / cover no-repeat;
}

.photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.photo.is-on { opacity: 1; }
.visual.no-photo .veil { opacity: 0.35; }

.veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(26, 18, 12, 0.26) 0%, rgba(26, 18, 12, 0) 22%),
    linear-gradient(to right, rgba(26, 18, 12, 0.16), rgba(26, 18, 12, 0) 22%);
  transition: opacity 0.6s var(--ease);
}

.glass {
  position: absolute;
  left: clamp(1rem, 2.2vw, 2rem);
  right: clamp(1rem, 2.2vw, 2rem);
  bottom: clamp(1rem, 2.2vw, 2rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  color: var(--glass-ink);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

.glass dl { margin: 0; display: grid; gap: 0.7rem; }
.glass dt {
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.62;
  margin-bottom: 0.1rem;
}
.glass dd { margin: 0; font-size: 0.92rem; font-weight: 300; }

.map {
  flex: none;
  font-size: 0.8rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  opacity: 0.8;
  transition: opacity 0.25s;
}
.map:hover { opacity: 1; }

.credit {
  position: absolute;
  top: clamp(1rem, 2.2vw, 2rem);
  right: clamp(1rem, 2.2vw, 2rem);
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.visual.no-photo .credit {
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  text-shadow: none;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.8s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; min-height: 0; }

  /* the photo gets its own height instead of a 40svh crop, and the info card
     sits under it rather than covering it */
  .visual { order: -1; height: auto; min-height: 0; }
  .frames { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 56svh; }
  .veil,
  .credit { display: none; }

  .content { gap: 1.5rem; padding: 1.5rem 1.4rem 2.2rem; }
  h1 { font-size: clamp(2.5rem, 12vw, 3.4rem); }
  .lead { margin-top: 0.9rem; }

  /* show every nav item instead of letting the last ones run off screen */
  .navbar ul { flex-wrap: wrap; overflow: visible; gap: 0.1rem 1.1rem; padding-block: 0.45rem; }
  .navbar a { padding: 0.45rem 0; }
}

@media (min-width: 901px) and (max-height: 820px) {
  .content { padding: 2.2rem 2.4rem; gap: 1.2rem; }
  h1 { font-size: clamp(2.6rem, 5vw, 3.9rem); }
  .lead { margin-top: 0.9rem; font-size: 0.97rem; }
  .services { margin-top: auto; }

.services ul { margin-top: 0.6rem; }
  .services li { padding: 0.42rem 0; }
}

@media (min-width: 901px) and (max-height: 700px) {
  body { font-size: 14px; }
  .content { padding: 1.5rem 1.8rem; gap: 0.9rem; }
  h1 { font-size: 3rem; margin-top: 0.5rem; }
  .lead { margin-top: 0.7rem; }
  .services li { padding: 0.35rem 0; }
  .cta { padding: 0.7rem 1rem 0.7rem 1.3rem; }
  .actions { gap: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  * { transition: none !important; }
}

/* ---------- sections below the hero ---------- */

html { scroll-behavior: smooth; }

.content { position: relative; }

.scroll-cue {
  position: absolute;
  right: clamp(1.4rem, 3vw, 2.6rem);
  bottom: clamp(1.2rem, 2.5vh, 2rem);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hair);
  border-radius: 50%;
  color: var(--muted);
  transition: transform 0.4s var(--ease), color 0.3s;
}
.scroll-cue svg { width: 14px; height: 14px; }
.scroll-cue:hover { transform: translateY(3px); color: var(--ink); }

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--hair);
}

.navbar ul {
  width: min(100% - 2.5rem, 1180px);
  margin-inline: auto;
  padding: 0;
  list-style: none;
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.2rem);
  overflow-x: auto;
  scrollbar-width: none;
}
.navbar ul::-webkit-scrollbar { display: none; }

.navbar a {
  display: block;
  padding: 1rem 0;
  font-size: 0.87rem;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.navbar a:hover { color: var(--ink); border-color: var(--ink); }

.section {
  padding: clamp(3.5rem, 8vh, 6.5rem) 0;
  scroll-margin-top: 56px;
}
.section.alt { background: var(--raise); }

.wrap { width: min(100% - 2.5rem, 1180px); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2.5rem, 860px); }

.section h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin: 0 0 clamp(1.6rem, 3vw, 2.6rem);
}

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; }
.section-head h2 { margin-bottom: clamp(1.2rem, 2.4vw, 2rem); }
.section-head p { margin: 0 0 clamp(1.2rem, 2.4vw, 2rem); color: var(--muted); font-size: 0.92rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.side { position: sticky; top: 90px; }
.side h2 { margin-bottom: 1.5rem; }

.portrait { margin: 0; }
.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 18px;
}

.prose p {
  font-size: 1.06rem;
  font-weight: 300;
  line-height: 1.78;
  margin: 0 0 1rem;
  max-width: 64ch;
}
.prose > p:first-child { margin-bottom: 2rem; }
.prose h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 2.3rem 0 0.7rem;
}
.prose > div:first-of-type h3 { margin-top: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
}

.card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: clamp(1.4rem, 2.4vw, 2.1rem);
}
.card h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.32rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 0.85rem;
}
.card p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.72;
  color: var(--muted);
}
.card p:last-child { margin-bottom: 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(140px, 17vw, 230px);
  gap: clamp(0.5rem, 1vw, 0.9rem);
}
.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--raise);
}
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.gallery figure:hover img { transform: scale(1.035); }

.faq details {
  border-top: 1px solid var(--hair);
}
.faq details:last-child { border-bottom: 1px solid var(--hair); }

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 400;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--clay); }

.chev {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.5;
  transition: transform 0.3s var(--ease);
}
details[open] .chev { transform: rotate(-135deg); }

.answer { padding: 0 0 1.3rem; max-width: 70ch; }
.answer p {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
}
.answer p:last-child { margin-bottom: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact-note { margin: -0.8rem 0 1.6rem; color: var(--muted); }

.contact-list { display: grid; gap: 1.15rem; margin: 0; }
.contact-list dt {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.contact-list dd { margin: 0; font-size: 1.04rem; font-weight: 300; }
.contact-list a { border-bottom: 1px solid var(--hair); transition: border-color 0.25s; }
.contact-list a:hover { border-color: currentColor; }

.site-footer { border-top: 1px solid var(--hair); padding: 1.8rem 0 2.2rem; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--muted);
}
.footer-inner p { margin: 0; }
.footer-inner span { opacity: 0.45; padding: 0 0.2rem; }
.footer-inner a { border-bottom: 1px solid var(--hair); }

.js .fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.js .fade.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .side { position: static; }
  .portrait img { aspect-ratio: 4 / 5; max-height: 62svh; object-position: center; }
  .scroll-cue { display: none; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 28vw, 180px); }
  .contact-grid { grid-template-columns: 1fr; }
  .navbar a { padding: 0.85rem 0; font-size: 0.84rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .fade { opacity: 1; transform: none; }
}

/* ---------- services: systemic approach as the parent ---------- */

.approach {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--clay);
  border-radius: 18px;
  padding: clamp(1.5rem, 2.8vw, 2.3rem);
  margin-bottom: clamp(1.4rem, 2.6vw, 2.2rem);
}
.approach .label { margin-bottom: 0.5rem; }
.approach h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 0.9rem;
}
.approach p {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
  max-width: 88ch;
}
.approach p:last-child { margin-bottom: 0; }

.branch {
  position: relative;
  margin-left: clamp(0.5rem, 1.6vw, 1.4rem);
  padding-left: clamp(1rem, 2.6vw, 2.2rem);
  border-left: 1px solid color-mix(in srgb, var(--ink) 26%, transparent);
}
.branch::before {
  content: "";
  position: absolute;
  left: -1px;
  top: calc(-1 * clamp(1.4rem, 2.6vw, 2.2rem));
  height: clamp(1.4rem, 2.6vw, 2.2rem);
  border-left: 1px solid color-mix(in srgb, var(--ink) 26%, transparent);
}
.branch > .label { color: var(--ink); opacity: 0.75; }
.branch > .label { margin-bottom: 1rem; }
.branch .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 860px) {
  .branch { margin-left: 0; padding-left: 0.9rem; }
  .branch .cards { grid-template-columns: 1fr; }
}
