/* L4 LSTC theme, direction "Lumen": light premium, logo gold as thin lines of light. Mobile-first. */

:root {
  --white: #ffffff;
  --stone: #f2f2f0;       /* light stone, secondary background */
  --black: #000000;       /* logo black */
  --graphite: #3a3a3a;    /* body text on light backgrounds */
  --gold: #ba9653;        /* logo gold: lines only */
  --gold-text: #8a6a2e;   /* gold for text, AA on white */
  --muted: #6b6b6b;
  --line: #e1e0dc;

  --display: "Tenor Sans", Georgia, serif;
  --body: "Onest", system-ui, sans-serif;
  --gutter: 1.25rem;
  --space: clamp(5rem, 14vw, 10rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--graphite);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; color: var(--black); font-family: var(--display); font-weight: 400; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

:focus-visible { outline: 1px solid var(--black); outline-offset: 4px; }
a, button, summary, select, label { touch-action: manipulation; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 30;
  padding: .5rem 1rem; background: var(--black); color: var(--white);
}
.skip:focus { top: 1rem; }

.wrap { max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 44rem; }

/* Buttons: hairline gold underline is the "light line" motif */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 1.75rem;
  border: 1px solid var(--black); border-radius: 0;
  background: var(--black); color: var(--white);
  font: 400 .9375rem/1 var(--body); letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s;
}
.btn:hover { background: var(--white); color: var(--black); }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover { background: var(--black); color: var(--white); }

/* Header */

.site-header {
  position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 20;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.4) blur(12px);
}
.site-header__row {
  display: flex; align-items: center; gap: 2rem;
  min-height: 3.75rem; padding-inline: var(--gutter);
  max-width: 90rem; margin-inline: auto;
}
.brand img { width: 80px; height: auto; }

.nav, .site-header__row > .lang { display: none; }

.menu { margin-left: auto; }
.menu summary {
  list-style: none; cursor: pointer;
  display: grid; gap: 7px; place-content: center;
  width: 2.75rem; height: 2.75rem;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 24px; height: 1px; background: var(--black); transition: transform .25s; }
.menu[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
.menu[open] summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  min-height: calc(100svh - 3.75rem);
  padding: 2rem var(--gutter);
  background: var(--white);
}
.menu__panel nav a[aria-current] { color: var(--gold-text); }
.menu__panel nav a {
  display: block; padding: .625rem 0;
  font-family: var(--display); font-size: 1.75rem; color: var(--black); text-decoration: none;
}

.lang { display: flex; gap: .125rem; font-size: .8125rem; }
.lang a { padding: .5rem .375rem; color: var(--muted); text-decoration: none; }
.lang a[aria-current] { color: var(--black); }
.lang--menu { margin-top: 2rem; margin-left: -.375rem; }

/* Photo placeholders: neutral light, to be replaced by real photography */

.photo { position: relative; background-color: var(--stone); background-size: cover; background-position: center; }
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo.has-image::after { content: none; }
.photo::after {
  content: attr(aria-label);
  position: absolute; left: 1rem; bottom: .75rem;
  font-size: .75rem; color: rgba(0, 0, 0, .35);
}
.photo--sky   { background-image: linear-gradient(180deg, #e6e9ec 0%, #f6f5f2 62%, #e7e4dd 100%); }
.photo--dawn  { background-image: linear-gradient(180deg, #e8ebee 0%, #f5f4f1 58%, #e4e2dc 58.2%, #d9d6cf 100%); }
.photo--stone { background-image: linear-gradient(180deg, #ecedec 0%, #f4f4f2 62%, #dcdcd8 62.2%, #cfcfca 100%); }
.photo--warm  { background-image: linear-gradient(180deg, #efece6 0%, #f7f5f0 60%, #e2dccf 60.2%, #d4ccbc 100%); }

/* Hero */

.hero {
  position: relative;
  min-height: calc(100svh - 3.75rem);
  display: grid; align-items: end;
  overflow: hidden;
}
.hero__frame { position: absolute; inset: 0; }
.hero__frame::after { left: auto; right: var(--gutter); }

/* The horizon: one thin line of gold light drawn on page load */
.hero__horizon {
  display: block; height: 1px; margin: clamp(1.75rem, 4vh, 2.75rem) 0;
  background: var(--gold);
  transform-origin: center;
  animation: horizon 1.8s cubic-bezier(.3, .6, .1, 1) .2s both;
}
@keyframes horizon { from { transform: scaleX(0); } }

.hero__content {
  position: relative;
  padding-bottom: clamp(3rem, 10vh, 6rem);
  text-align: center;
}
.hero__title, .hero__lead, .hero__actions {
  padding-inline: var(--gutter);
  animation: rise 1.2s ease 1.1s both;
}
@keyframes rise { from { opacity: 0; } }

.hero__title {
  font-size: clamp(2.5rem, 9vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 16ch; margin-inline: auto; box-sizing: content-box;
  text-wrap: balance;
}
.hero__lead { margin: 0 auto; max-width: 32rem; box-sizing: content-box; font-size: 1.0625rem; color: var(--graphite); text-wrap: pretty; }
.hero__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

.hero--page { min-height: clamp(26rem, 62svh, 40rem); }
.hero--page .hero__title { font-size: clamp(2.5rem, 7vw, 4.75rem); }
.hero--page .hero__horizon,
.hero--page .hero__title,
.hero--page .hero__lead { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .hero__horizon, .hero__title, .hero__lead, .hero__actions { animation: none; }
}

/* Sections */

.section { padding-block: var(--space); }
/* Vertical rhythm: two paddings must not stack into one empty band.
   The hero already ends with its own bottom space; two white sections in a row share one gap. */
.hero + .section { padding-top: calc(var(--space) * .5); }
.section:not(.section--stone) + .section:not(.section--stone) { padding-top: 0; }
.levels + .section:not(.section--stone) { padding-top: calc(var(--space) * .6); }
.title {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  text-align: center; text-wrap: balance;
  max-width: 18ch; margin-inline: auto;
}
.intro { margin: 1.25rem auto 0; max-width: 34rem; text-align: center; color: var(--muted); }

/* Services */

.services {
  list-style: none; margin: clamp(3rem, 8vw, 5rem) 0 0; padding: 0;
  display: grid; gap: 2.5rem;
  text-align: center;
}
.services li { max-width: 18rem; margin-inline: auto; }
.services li::before {
  content: ""; display: block; width: 2.5rem; height: 1px;
  margin: 0 auto 1.25rem; background: var(--gold);
}
.services h3 { font-size: 1.5rem; }
.services p { margin-top: .625rem; color: var(--muted); font-size: 1rem; }

/* Levels */

.level { display: grid; background: var(--stone); }
.level--premium { background: var(--white); }
.level__photo { aspect-ratio: 4 / 3; }
/* A real photo sets the frame by its own proportions, so the whole sample stays visible */
.level__photo.has-image { aspect-ratio: auto; }
.level__photo.has-image > img { position: static; display: block; width: 100%; height: auto; }
.level__body {
  padding: 3rem var(--gutter) 4rem;
  display: grid; justify-items: center; text-align: center;
}
.level__name {
  font-size: clamp(2.25rem, 7vw, 4rem);
  letter-spacing: .3em; margin-right: -.3em; /* tracking echoes the logo lockup */
  text-transform: uppercase;
}
.level__text { margin-top: 1rem; max-width: 28rem; }
.level__price { margin: 2.5rem 0 1.5rem; padding-top: 2.5rem; border-top: 1px solid var(--gold); width: min(100%, 20rem); font-family: var(--display); font-size: 1.25rem; color: var(--black); }

/* Projects gallery */

.gallery {
  list-style: none; margin: clamp(2.5rem, 6vw, 4rem) 0 0; padding: 0 var(--gutter);
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%;
  gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
  padding-bottom: 1.5rem;
}
.gallery:focus-visible { outline-offset: -1px; }
.gallery__item { scroll-snap-align: start; }
.gallery__item a { display: grid; gap: .375rem; text-decoration: none; }
.gallery__photo { aspect-ratio: 4 / 5; margin-bottom: 1rem; }
.gallery__item h3 { font-size: 1.375rem; }
.gallery__item p { color: var(--muted); font-size: .9375rem; }
.gallery__item a:hover h3 { color: var(--gold-text); }
.gallery__item a, .gallery__item img { -webkit-user-drag: none; }

/* With JS the gold line and arrows replace the native scrollbar; a mouse drags the strip */
.gallery.is-enhanced { scrollbar-width: none; padding-bottom: 0; cursor: grab; }
.gallery.is-enhanced::-webkit-scrollbar { display: none; }
.gallery.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.gallery.is-dragging a { pointer-events: none; }
.gallery-nav {
  display: flex; align-items: center; gap: .5rem;
  margin-top: 2rem; padding-inline: var(--gutter);
}
.gallery-nav[hidden] { display: none; }
.gallery-nav__line { position: relative; flex: 1; height: 1px; margin-right: 1.5rem; background: var(--line); }
.gallery-nav__line > span { position: absolute; inset: 0 auto 0 0; background: var(--gold); }
.gallery-nav__btn {
  position: relative; flex: none; width: 3rem; height: 3rem;
  border: 0; background: none; cursor: pointer;
}
.gallery-nav__btn::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: .75rem; height: .75rem;
  border-top: 1px solid var(--black); border-left: 1px solid var(--black);
}
.gallery-nav__btn--prev::before { transform: translate(-25%, -50%) rotate(-45deg); }
.gallery-nav__btn--next { margin-right: -1rem; } /* chevron lines up with the last card edge */
.gallery-nav__btn--next::before { transform: translate(-75%, -50%) rotate(135deg); }
.gallery-nav__btn:hover::before { border-color: var(--gold-text); }
.gallery-nav__btn:disabled { cursor: default; }
.gallery-nav__btn:disabled::before { border-color: var(--line); }

/* About */

.section--stone { background: var(--stone); }
.statement { margin: 0; }
.statement p {
  font-family: var(--display); color: var(--black);
  font-size: clamp(1.75rem, 4.6vw, 3.25rem); line-height: 1.2;
  text-align: center; max-width: 24ch; margin-inline: auto; text-wrap: balance;
}
.about__text { margin: 2rem auto 0; max-width: 36rem; text-align: center; }

.facts {
  margin: clamp(3.5rem, 9vw, 6rem) auto 0; max-width: 56rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  text-align: center;
}
.facts dt { font-family: var(--display); color: var(--black); font-size: clamp(2.25rem, 8vw, 5rem); line-height: 1; }
.facts dd { margin: .75rem 0 0; font-size: .875rem; color: var(--muted); line-height: 1.4; hyphens: auto; overflow-wrap: break-word; }

/* Multi-line copy reads left-aligned; each item hangs from its own rule */
.reasons {
  margin: clamp(3rem, 8vw, 5rem) auto 0; max-width: 64rem;
  display: grid; gap: 2rem;
}
.reasons > div { padding-top: 1.25rem; border-top: 1px solid #d9d8d3; }
.reasons dt { color: var(--black); font-weight: 400; font-size: 1.0625rem; }
.reasons dd { margin: .25rem 0 0; color: var(--graphite); font-size: .9375rem; }

/* Contacts */

.form { margin-top: 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
.field { grid-column: 1 / -1; display: grid; gap: .25rem; }
.field label { font-size: .8125rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 2.75rem; padding: .5rem 0;
  font: inherit; font-size: 1.0625rem; font-weight: 400; color: var(--black);
  background: transparent; border: 0; border-bottom: 1px solid #c9c8c3; border-radius: 0;
}
.field textarea { resize: vertical; min-height: 6rem; }
/* Focus: black underline, gold is too light (under 3:1) to mark focus */
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-bottom-color: var(--black); box-shadow: 0 1px 0 var(--black);
}
.field select option { background-color: var(--white); color: var(--black); }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--black) 50%), linear-gradient(-45deg, transparent 50%, var(--black) 50%);
  background-position: right .5rem center, right .2rem center;
  background-size: 5px 5px; background-repeat: no-repeat;
  padding-right: 1.5rem;
}
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__consent { grid-column: 1 / -1; font-size: .8125rem; color: var(--muted); text-align: center; }
.form .btn { grid-column: 1 / -1; justify-self: center; min-width: 14rem; }
.form .btn:disabled { opacity: .6; cursor: progress; }
.form__status { grid-column: 1 / -1; min-height: 1.5em; text-align: center; font-size: .9375rem; }
.form__status.is-ok { color: var(--black); }
.form__status.is-err { color: #9b2c1f; }

.channels {
  list-style: none; margin: 4rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2rem;
}
.channels a {
  display: inline-block; padding: .375rem 0;
  color: var(--black); text-decoration: none; border-bottom: 1px solid var(--gold);
}
.channels a:hover { color: var(--gold-text); }

/* Footer */

.site-footer { padding: 4rem 0 3rem; background: var(--stone); border-top: 1px solid var(--line); text-align: center; }
.site-footer__logo { width: 130px; margin-inline: auto; }
.site-footer__nav {
  margin-top: 2.5rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.5rem;
  font-size: .875rem;
}
.site-footer__nav a { padding: .375rem 0; text-decoration: none; }
.site-footer__nav a:hover { color: var(--gold-text); }
.site-footer__tagline { margin-top: 1.25rem; font-family: var(--display); font-size: 1.125rem; color: var(--black); }
.site-footer__contacts { margin-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.5rem; font-size: .9375rem; }
.site-footer__contacts a { padding: .25rem 0; color: var(--black); text-decoration: none; }
.site-footer__contacts a:hover { color: var(--gold-text); }
.site-footer__legal { margin-top: 2rem; font-size: .8125rem; color: var(--muted); }
.site-footer__consent {
  margin-left: 1rem; padding: .25rem 0; border: 0; background: none;
  font: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .2em; cursor: pointer;
}

/* Consent bar: white strip under one gold line of light, both choices equal */
.consent {
  position: fixed; z-index: 50; inset: auto 0 0 0;
  display: grid; gap: 1rem;
  padding: 1.25rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--gold);
}
.consent[hidden] { display: none; }
/* While the bar is open, focused elements scroll clear of it */
html:has(.consent:not([hidden])) { scroll-padding-bottom: 14rem; }
body:has(.consent:not([hidden])) { padding-bottom: 14rem; }
.consent__text { max-width: 44rem; font-size: .9375rem; color: var(--graphite); }
.consent__text a { color: var(--black); text-decoration-color: var(--gold); text-underline-offset: .2em; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.consent__actions .btn { padding-inline: 1rem; }
@media (min-width: 48rem) {
  .consent { grid-template-columns: 1fr auto; align-items: center; column-gap: 2.5rem; }
  .consent__actions { grid-template-columns: auto auto; }
}

/* Not found */
.notfound { text-align: center; min-height: 60svh; display: grid; align-content: center; }
.notfound__line { display: block; width: min(16rem, 60%); height: 1px; margin: 2rem auto 0; background: var(--gold); }
.notfound__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* Section variants */

.section--tight { padding-block: calc(var(--space) * .6); }
.section--flush-top { padding-top: 0; }

.more { margin-top: 3rem; text-align: center; }
.more a {
  color: var(--black); text-decoration: none;
  padding-bottom: .25rem; border-bottom: 1px solid var(--gold);
}
.more a:hover { color: var(--gold-text); }

/* Inner page head: the horizon line repeats as a static rule */

.page-head { padding: clamp(4rem, 12vw, 8rem) 0 0; text-align: center; }
.page-head__title {
  font-size: clamp(2.5rem, 8vw, 5rem); line-height: 1.04;
  max-width: 16ch; margin-inline: auto; text-wrap: balance;
}
.page-head__lead { margin: 1.5rem auto 0; max-width: 34rem; color: var(--muted); text-wrap: pretty; }
.page-head__line { display: block; height: 1px; margin-top: clamp(3rem, 8vw, 5rem); margin-bottom: clamp(3rem, 8vw, 5rem); background: var(--gold); }

/* Placeholder for content the client has not supplied yet */

.todo {
  margin: 2.5rem auto 0; max-width: 40rem;
  padding: 1.25rem 1.5rem;
  border: 1px dashed var(--gold);
  font-size: .9375rem; color: var(--muted); text-align: left;
}
.todo__label { margin-bottom: .375rem; font-size: .8125rem; font-weight: 500; color: var(--gold-text); }
.tbd { color: var(--muted); }

/* Process steps: a real sequence, so numbered */

/* Steps sit on a horizon line; the filled point is the handed-over building */
.steps {
  position: relative;
  list-style: none; margin: 3rem auto 0; padding: 0 0 0 2rem;
  max-width: 20rem;
  display: grid; gap: 2rem;
}
.steps::before {
  content: ""; position: absolute; left: 4px; top: .6rem; bottom: .6rem;
  width: 1px; background: var(--gold);
}
.steps li { position: relative; font-family: var(--display); font-size: 1.25rem; color: var(--black); line-height: 1.3; }
.steps li::before {
  content: ""; position: absolute; left: -2rem; top: .4em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--gold);
}
.steps li:last-child::before { background: var(--gold); }

/* CTA band */

.cta-band { padding: clamp(4rem, 10vw, 7rem) 0; background: var(--stone); text-align: center; }
.cta-band__text {
  margin-bottom: 2rem;
  font-family: var(--display); font-size: clamp(1.75rem, 4.5vw, 3rem); color: var(--black); line-height: 1.15;
}

/* Prose */

.prose { max-width: 40rem; margin-inline: auto; }
.prose p + p { margin-top: 1.25rem; }
.prose--center { text-align: center; font-size: 1.125rem; }
.prose h2 { margin: 3rem 0 .75rem; font-size: 1.5rem; }
.prose .todo { margin-top: 0; }

/* Split: photo and text side by side on desktop */

.split { display: grid; background: var(--white); }
.split__photo { aspect-ratio: 4 / 3; }
.split__body { padding: 3rem var(--gutter) 4rem; max-width: 36rem; }
.split__body p + p { margin-top: 1.25rem; }
.split__title { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }

.markets {
  list-style: none; margin: 3rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem;
  font-family: var(--display); font-size: clamp(1.375rem, 3.5vw, 2rem); color: var(--black);
}

/* Comparison table */

.table-wrap { margin-top: 3rem; overflow-x: auto; }
.compare { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .9375rem; }
.compare td { white-space: nowrap; }
.compare th, .compare td { padding: 1rem .75rem; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--display); font-weight: 400; font-size: 1.125rem; color: var(--black); border-bottom: 1px solid var(--gold); }
.compare thead th:nth-child(2) { color: var(--gold-text); }
.compare tbody th { font-weight: 400; color: var(--black); }

/* Services page rows */

.service-row { display: grid; gap: 1rem; padding: 2.5rem 0; border-top: 1px solid var(--line); }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row__title { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.service-row__body { max-width: 34rem; }

/* Portfolio */

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.5rem; margin-bottom: 3rem; font-size: .9375rem; }
.filters a { padding: .5rem 0; color: var(--muted); text-decoration: none; }
.filters a[aria-current] { color: var(--black); box-shadow: inset 0 -1px 0 var(--gold); }
.filters a:hover { color: var(--black); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 3rem 1.5rem; }
.card a { display: grid; gap: .375rem; text-decoration: none; }
.card__photo { aspect-ratio: 4 / 3; margin-bottom: 1rem; }
.card h3 { font-size: 1.375rem; }
.card p { color: var(--muted); font-size: .9375rem; }
.card a:hover h3 { color: var(--gold-text); }
.note { margin-top: 3rem; text-align: center; font-size: .875rem; color: var(--muted); }

/* Project page */

.project-hero__photo { height: clamp(22rem, 70svh, 48rem); }
.project { display: grid; gap: 2.5rem; }
.crumbs { margin-bottom: 1rem; font-size: .875rem; }
.crumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.project__title { font-size: clamp(2.25rem, 6vw, 4rem); }
.project__meta { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; border-top: 1px solid var(--gold); padding-top: 1.5rem; }
.project__meta dt { font-size: .8125rem; color: var(--muted); }
.project__meta dd { margin: .25rem 0 0; color: var(--black); }
.project__text .todo { margin: 0; }

.shots { list-style: none; margin: 0; padding: 0 var(--gutter); display: grid; gap: 1rem; max-width: 90rem; margin-inline: auto; }
.shots li { aspect-ratio: 4 / 3; }
.pager {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-block: 3rem 5rem; font-size: .9375rem;
}
.pager a { color: var(--black); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: .25rem; }

/* Contacts page */

.contact-grid { display: grid; gap: 3.5rem; }
.contact-grid .channels { margin-top: 2rem; justify-content: flex-start; gap: .5rem 2rem; }
.contact-grid .todo { margin: 2rem 0 0; }
.contact-grid__reps { display: grid; gap: 2.5rem; align-content: start; }
.contact-grid__reps > .office__title { margin-bottom: -1rem; }

.office__title--h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; }
.office__title--h3 { font-size: 1.375rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.office__address { margin-top: .75rem; color: var(--muted); }
.office__lines { margin: 1.5rem 0 0; display: grid; gap: 1.25rem; }
.office__lines dt { font-size: .8125rem; color: var(--muted); }
.office__lines dd { margin: .25rem 0 0; }
.office__lines a { font-family: var(--display); font-size: 1.375rem; color: var(--black); text-decoration: none; border-bottom: 1px solid var(--gold); }
.office__lines a:hover { color: var(--gold-text); }

/* Company line: name, tagline and the motto as the loud part */
.company { margin-top: clamp(4rem, 10vw, 7rem); padding: clamp(4rem, 10vw, 7rem) 0; background: var(--stone); text-align: center; }
.company__name { font-size: .875rem; color: var(--muted); }
.company__tagline { margin: 1rem auto 0; max-width: 34rem; }
.company__motto { margin-top: 1.5rem; font-family: var(--display); font-size: clamp(2rem, 6vw, 4rem); line-height: 1.1; color: var(--black); }
.company + .map { margin-top: 0; }
/* After a padded section the margin would only add a second empty band */
.section + .company { margin-top: 0; }

.map { display: block; width: 100%; border: 0; margin-top: clamp(3rem, 8vw, 5rem); height: clamp(20rem, 50vw, 32rem); }

/* Areas of activity: groups of project types, not a sequence, so no numbers */

.spheres__intro { margin-top: 1.5rem; }
.spheres { margin-top: clamp(3rem, 8vw, 5rem); display: grid; gap: 2.5rem 3rem; }
.sphere { padding-top: 1.25rem; border-top: 1px solid #d9d8d3; }
.sphere__title { font-size: 1.375rem; line-height: 1.25; margin-bottom: .875rem; }
.sphere__items { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; color: var(--graphite); font-size: .9375rem; line-height: 1.5; }
.spheres__closing { margin-top: clamp(3.5rem, 9vw, 6rem); text-align: center; }
.spheres__closing-title { font-family: var(--display); font-size: clamp(1.75rem, 4.5vw, 3rem); line-height: 1.15; color: var(--black); }

.sphere-index { list-style: none; margin: 3rem auto 0; padding: 0; max-width: 40rem; border-top: 1px solid #d9d8d3; }
.sphere-index li { border-bottom: 1px solid #d9d8d3; }
.sphere-index a {
  display: block; padding: .875rem 0; text-align: center; text-decoration: none;
  font-family: var(--display); font-size: clamp(1.125rem, 2.6vw, 1.375rem); color: var(--black);
}
.sphere-index a:hover { color: var(--gold-text); }

/* Tablet */

@media (min-width: 40rem) {
  :root { --gutter: 2rem; }
  .form .field--half { grid-column: auto; }
  .services { grid-template-columns: 1fr 1fr; gap: 3.5rem 2rem; }
  .gallery { grid-auto-columns: 62%; gap: 1.5rem; }
  .reasons { grid-template-columns: 1fr 1fr; gap: 2rem 3rem; }
  .reasons > div:last-child { grid-column: 1 / -1; max-width: 26rem; margin-inline: auto; }
  .spheres { grid-template-columns: 1fr 1fr; }
  .sphere:last-child { grid-column: 1 / -1; width: 100%; max-width: calc(50% - 1.5rem); justify-self: center; }
  .cards { grid-template-columns: 1fr 1fr; }
  /* Odd number of cards: the first one leads across the full row, so the last row stays whole */
  .cards > :first-child:nth-last-child(2n+3) { grid-column: 1 / -1; }
  .project__meta { grid-template-columns: repeat(3, 1fr); }
  .shots { grid-template-columns: 1fr 1fr; }
  .shots__wide { grid-column: 1 / -1; aspect-ratio: 16 / 9 !important; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

/* Desktop */

@media (min-width: 64rem) {
  :root { --gutter: 3rem; }
  body { font-size: 1.125rem; }

  .nav { display: flex; gap: 2.25rem; margin-inline: auto; font-size: .875rem; }
  .nav a { text-decoration: none; padding: .5rem 0; color: var(--black); }
  .nav a:hover { color: var(--gold-text); }
  .nav a[aria-current] { box-shadow: inset 0 -1px 0 var(--gold); }
  .site-header__row > .lang { display: flex; }
  .menu { display: none; }
  .brand img { width: 96px; }

  .services { grid-template-columns: repeat(4, 1fr); }

  .level { grid-template-columns: 1.3fr 1fr; min-height: 90svh; }
  .level__photo { aspect-ratio: auto; }
  .level--premium .level__photo { order: 2; }
  .level:has(.level__photo.has-image) { grid-template-columns: auto 1fr; }
  .level--premium:has(.level__photo.has-image) { grid-template-columns: 1fr auto; }
  .level__photo.has-image > img { width: auto; max-width: 58vw; height: 90svh; object-fit: contain; }
  .level__body { align-content: center; padding: 5rem var(--gutter); }

  .gallery { grid-auto-columns: min(46rem, 58vw); }
  .gallery__photo { aspect-ratio: 3 / 2; }

  /* Five reasons: three over two, centered */
  .reasons { grid-template-columns: repeat(6, 1fr); gap: 2.5rem 3rem; }
  .reasons > div { grid-column: span 2; }
  .reasons > div:nth-child(4) { grid-column: 2 / 4; }
  .reasons > div:nth-child(5) { grid-column: 4 / 6; }
  .reasons--3 > div:last-child { grid-column: span 2; max-width: none; }

  /* Seven areas: four over three, the lower row centered */
  .spheres { grid-template-columns: repeat(8, 1fr); gap: 2.5rem 2.5rem; }
  .sphere { grid-column: span 2; }
  .sphere:nth-child(5) { grid-column: 2 / 4; }
  .sphere:nth-child(6) { grid-column: 4 / 6; }
  .sphere:nth-child(7) { grid-column: 6 / 8; max-width: none; }

  .steps { grid-template-columns: repeat(4, 1fr); max-width: none; padding: 2.5rem 0 0; text-align: center; }
  .steps::before { left: 12.5%; right: 12.5%; top: 4px; bottom: auto; width: auto; height: 1px; }
  .steps li { padding-inline: 1rem; }
  .steps li::before { left: 50%; top: -2.5rem; transform: translateX(-50%); }
  .split { grid-template-columns: 1.2fr 1fr; min-height: 80svh; }
  .split__photo { aspect-ratio: auto; }
  .split__body { align-self: center; padding: 5rem var(--gutter); }
  .service-row { grid-template-columns: 22rem 1fr; gap: 3rem; }
  .project { grid-template-columns: 1fr 1fr; align-items: start; column-gap: 5rem; }
  .project__text { grid-column: 1 / -1; max-width: 40rem; }
  .project__meta { grid-template-columns: 1fr 1fr; }
  .project:not(:has(.project__meta)) .project__head { grid-column: 1 / -1; }
  .cards > :first-child:nth-last-child(2n+3) .card__photo { aspect-ratio: 21 / 9; }
}

/* WordPress */

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Hero with a real photo: the photo stays clean, the gold horizon becomes its lower edge, text sits below */
.hero--photo { min-height: 0; display: block; }
.hero--photo .hero__frame { position: relative; inset: auto; height: clamp(20rem, 48svh, 40rem); }
.hero--page.hero--photo .hero__frame { height: clamp(16rem, 46svh, 34rem); }
/* Home photo: trim mostly sky from the top so the house fills the wide strip */
.hero--photo:not(.hero--page) .hero__frame > img { object-position: 50% 70%; }
.hero--photo .hero__frame.has-image::after {
  content: ""; position: absolute; z-index: 1; inset: auto 0 0 0; height: 1px;
  background: var(--gold);
  transform-origin: center;
  animation: horizon 1.8s cubic-bezier(.3, .6, .1, 1) .2s both;
}
.hero--photo .hero__horizon { display: none; }
.hero--photo .hero__content { padding-top: clamp(2.5rem, 6vh, 4rem); padding-bottom: clamp(3rem, 8vh, 5rem); }
.hero--photo .hero__title { font-size: clamp(2.25rem, 6.5vw, 4.75rem); }
.hero--page.hero--photo .hero__title { font-size: clamp(2.25rem, 6vw, 4rem); }
.hero--photo .hero__lead { margin-top: 1.5rem; }
.hero--page.hero--photo .hero__frame.has-image::after { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .hero--photo .hero__frame.has-image::after { animation: none; }
}

/* Editor content: privacy text, project story and photos */
.entry > * + * { margin-top: 1.25rem; }
.entry h2 { margin-top: 3rem; font-size: 1.5rem; }
.entry h3 { margin-top: 2rem; font-size: 1.25rem; }
.entry ul, .entry ol { padding-left: 1.25rem; }
.entry a { color: var(--black); text-decoration-color: var(--gold); text-underline-offset: .2em; }
.entry img { height: auto; }
.entry .wp-block-gallery, .entry .wp-block-image { margin-block: 2.5rem; }
/* Project photos: an even grid over the full content width, every frame 4:3, no stretched last row.
   :not(#individual-image) matches the specificity of core gallery width rules. */
.project__text { max-width: none; }
.project__text > :not(.wp-block-gallery) { max-width: 40rem; }
.project__text .wp-block-gallery.has-nested-images {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem;
}
.project__text .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
  width: auto; margin: 0; aspect-ratio: 4 / 3;
}
.project__text .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img {
  width: 100%; height: 100%; object-fit: cover;
}
/* Whole last row on two columns: with an odd count the final photo takes the full width */
@media (max-width: 39.99rem) {
  .project__text .wp-block-gallery.has-nested-images:has(> figure:first-child:nth-last-child(2n+3)) > figure.wp-block-image:last-child:not(#individual-image) {
    grid-column: 1 / -1;
  }
}
@media (min-width: 40rem) {
  /* Six tracks, a photo spans two (three per row). When the count does not divide by three,
     the final photos widen to half a row each: last two for a remainder of 2, last four for 1. */
  .project__text .wp-block-gallery.has-nested-images { grid-template-columns: repeat(6, 1fr); gap: 1rem; }
  .project__text .wp-block-gallery.has-nested-images > figure.wp-block-image:not(#individual-image) { grid-column: span 2; }
  .project__text .wp-block-gallery.has-nested-images:has(> figure:first-child:nth-last-child(3n+2)) > figure.wp-block-image:nth-last-child(-n+2):not(#individual-image),
  .project__text .wp-block-gallery.has-nested-images:has(> figure:first-child:nth-last-child(3n+4)) > figure.wp-block-image:nth-last-child(-n+4):not(#individual-image) {
    grid-column: span 3;
  }
}

/* Photo viewer: the whole photo on white, the gold horizon line shows how far through the series you are */
.shot-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.viewer {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0;
  padding: 3.5rem var(--gutter) 1.5rem;
  background: var(--white); color: var(--black);
  overscroll-behavior: contain;
}
.viewer[open] { display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; gap: 1.25rem; }
.viewer::backdrop { background: var(--white); }
html:has(.viewer[open]) { overflow: hidden; }
.viewer__img { max-width: 100%; max-height: calc(100svh - 9rem); width: auto; height: auto; object-fit: contain; }
.viewer__foot { width: min(36rem, 100%); display: grid; gap: .75rem; justify-items: center; }
.viewer__line { position: relative; display: block; width: 100%; height: 1px; background: var(--line); }
.viewer__line > span { position: absolute; inset: 0 auto 0 0; background: var(--gold); transition: width .5s cubic-bezier(.3, .6, .1, 1); }
.viewer__count { font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.viewer__close {
  position: absolute; top: 1rem; right: var(--gutter);
  padding: .5rem 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .9375rem; color: var(--black);
  text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .3em;
}
.viewer__nav {
  position: absolute; top: 50%; width: 3rem; height: 4rem; margin-top: -2.75rem;
  border: 0; background: none; cursor: pointer;
}
.viewer__nav::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: .875rem; height: .875rem;
  border-top: 1px solid var(--black); border-left: 1px solid var(--black);
}
.viewer__nav--prev { left: max(.25rem, calc(var(--gutter) - 2.5rem)); }
.viewer__nav--prev::before { transform: translate(-25%, -50%) rotate(-45deg); }
.viewer__nav--next { right: max(.25rem, calc(var(--gutter) - 2.5rem)); }
.viewer__nav--next::before { transform: translate(-75%, -50%) rotate(135deg); }
.viewer__nav:hover::before { border-color: var(--gold-text); }
@media (prefers-reduced-motion: reduce) { .viewer__line > span { transition: none; } }
.pager__next { margin-left: auto; }

.hero__content { z-index: 2; }
