/* Bruno Deneyer – schilder- en decoratiewerken
 *
 * Proportion: the golden ratio (phi = 1.618).
 *   - type scale: every step is x sqrt(phi) = 1.272, so two steps are exactly x phi
 *   - spacing scale: every step is x phi
 *   - two-column layouts are split 61.8 % / 38.2 % (1.618fr 1fr)
 *   - pictures are golden rectangles (1.618 : 1), body text has line-height 1.618
 *
 * Colour: the 60-30-10 rule.
 *   - 60 %  warm plaster neutrals  (page, cards)
 *   - 30 %  deep ink               (hero panel, quote, contact card, footer, text)
 *   - 10 %  brass                  (buttons, rules, icons, kickers)
 *
 * No inline styles or scripts anywhere: the site runs under a strict Content-Security-Policy.
 */

@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair-display-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* 60 % */
  --plaster: #f5f1ea;
  --plaster-light: #fbf9f5;
  --plaster-deep: #eae3d8;
  /* 30 % */
  --ink: #1e2a2c;
  --ink-2: #27373a;
  --ink-soft: #4e5a5b;
  /* 10 % */
  --brass: #b08a4f;
  --brass-light: #d0ae74;
  --brass-text: #7d5c2a; /* brass that is dark enough for text on plaster (AA) */

  --line: rgba(30, 42, 44, 0.14);
  --line-strong: rgba(30, 42, 44, 0.28);
  --line-light: rgba(245, 241, 234, 0.2);
  --on-ink: rgba(245, 241, 234, 0.8);
  --ok: #2c5e3f;
  --error: #9b2f1f;

  /* type: x 1.272 per step */
  --step--1: 0.786rem;
  --step-0: 1rem;
  --step-1: 1.272rem;
  --step-2: 1.618rem;
  --step-3: 2.058rem;
  --step-4: 2.618rem;
  --step-5: 3.33rem;
  --step-6: 4.236rem;

  /* space: x 1.618 per step */
  --space-1: 0.236rem;
  --space-2: 0.382rem;
  --space-3: 0.618rem;
  --space-4: 1rem;
  --space-5: 1.618rem;
  --space-6: 2.618rem;
  --space-7: 4.236rem;
  --space-8: 6.854rem;

  --container: 76rem;
  --measure: 47rem; /* 76 / 1.618 */
  --gutter: clamp(1.25rem, 5vw, 2.618rem);
  --section: clamp(var(--space-6), 5vw, var(--space-7));
  --header-h: 4.236rem;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);

  /* Playfair Display: high-contrast display serif for titles and the name.
     Jost: geometric sans in the Futura tradition for text, menu and labels.
     Both from Google Fonts, served from this site (no request to Google). */
  --font-serif: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --w-display: 400; /* titles */
  --w-name: 500; /* the name in the header, small titles */
  --w-label: 500; /* menu, buttons, small capitals */
}

/* ------------------------------------------------------------------ base */

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

html {
  font-size: clamp(100%, 94% + 0.3vw, 112.5%);
  -webkit-text-size-adjust: 100%;
}
/* Smooth scrolling is for clicks on the page itself, so site.js switches it on once the page
   has loaded. The first jump to a "#section" in the address must be immediate: a smooth one
   never runs when the page opens in a tab that is not on screen, and the visitor would be
   left at the top of the page. */
html.smooth-scroll {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.618;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}
img,
video {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-serif);
  font-weight: var(--w-display);
  line-height: 1.146;
  text-wrap: balance;
  overflow-wrap: break-word;
  /* Very long words ("confidentialité", "privacyverklaring") on small phones: break at a
     syllable with a hyphen instead of in the middle of the word. Short words are left alone. */
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 13 5 5;
}
h1 {
  font-size: clamp(var(--step-3), 1.3rem + 2.4vw, var(--step-5));
}
h2 {
  font-size: clamp(var(--step-2), 1.1rem + 1.7vw, var(--step-4));
}
h3 {
  font-size: var(--step-1);
  font-weight: var(--w-name);
}

p,
ul,
address {
  margin: 0 0 var(--space-4);
}
address {
  font-style: normal;
}

a {
  color: inherit;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover {
  color: var(--brass-text);
}

:focus-visible {
  outline: 2px solid var(--brass-text);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}
[id] {
  scroll-margin-top: calc(var(--header-h) + var(--space-4));
}
/* A menu jump to a section lands with its heading close under the header: part of the
   section's own top padding slides behind the header instead of pushing the content down,
   so as much of the section as possible is on screen. */
.section[id] {
  scroll-margin-top: calc(var(--header-h) + var(--space-5) - var(--section));
}

.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-link {
  position: absolute;
  left: var(--space-4);
  top: -6rem;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--ink);
  color: var(--plaster-light);
}
.skip-link:focus {
  top: var(--space-4);
  color: var(--plaster-light);
}

/* ------------------------------------------------------------------ layout */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container.narrow {
  width: min(100% - 2 * var(--gutter), var(--measure));
}

.section {
  padding-block: var(--section);
}
.section-tint {
  background: var(--plaster-deep);
}

.section-head {
  max-width: var(--measure);
  margin-bottom: var(--space-5);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head > :last-child {
  margin-bottom: 0;
}

/* golden split: 61.8 % / 38.2 % */
.split {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 60em) {
  .split {
    grid-template-columns: 1.618fr 1fr;
    gap: var(--space-7);
    align-items: start;
  }
  .split-center {
    align-items: center;
  }
}

.kicker {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: var(--brass-text);
  font-size: var(--step--1);
  font-weight: var(--w-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  flex: none;
  width: var(--space-6);
  height: 1px;
  background: currentColor;
}
.kicker-light {
  color: var(--brass-light);
}
.kicker-center {
  justify-content: center;
}
.kicker-center::after {
  content: "";
  flex: none;
  width: var(--space-6);
  height: 1px;
  background: currentColor;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-2);
}
/* comfortable line length for running text */
.split-main > p,
.section-head > p {
  max-width: 40rem;
}

/* ------------------------------------------------------------------ buttons & links */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: var(--w-label);
  letter-spacing: 0.14em;
  line-height: 1.272;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.button:hover {
  transform: translateY(-2px);
}
.button:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}
.button-brass {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
}
.button-brass:hover {
  background: var(--brass-light);
  border-color: var(--brass-light);
  color: var(--ink);
}
.button-ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--plaster-light);
}
.button-ink:hover {
  background: var(--ink-2);
  color: var(--plaster-light);
}
.button-ghost-light {
  border-color: rgba(245, 241, 234, 0.45);
  color: var(--plaster-light);
}
.button-ghost-light:hover {
  background: var(--plaster-light);
  border-color: var(--plaster-light);
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-1);
  border-bottom: 1px solid currentColor;
  color: var(--brass-text);
  font-size: var(--step--1);
  font-weight: var(--w-label);
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}
.text-link::after {
  content: "\2192";
  transition: transform 0.3s var(--ease);
}
.text-link:hover::after {
  transform: translateX(0.382rem);
}
.text-link-back::after {
  content: none;
}
.text-link-back::before {
  content: "\2190";
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 245, 0.95);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 0.618rem 1.618rem -0.618rem rgba(30, 42, 44, 0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
  color: inherit;
  line-height: 1;
  text-decoration: none;
}
.brand:hover {
  color: inherit;
}
.brand-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-weight: var(--w-name);
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand-tagline {
  margin: 0;
  color: var(--brass-text);
  font-size: 0.6875rem;
  font-weight: var(--w-label);
  letter-spacing: 0.18em;
  line-height: 1.272;
  text-transform: uppercase;
}
@media (max-width: 30em) {
  .brand-tagline {
    font-size: 0.5625rem;
    letter-spacing: 0.12em;
  }
}

.nav-toggle {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: inherit;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.25rem;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav-toggle-bars {
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before {
  top: -0.4rem;
}
.nav-toggle-bars::after {
  top: 0.4rem;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(0.4rem) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-0.4rem) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: var(--space-5) var(--gutter) var(--space-6);
  background: var(--plaster-light);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1.618rem 2.618rem -1.618rem rgba(30, 42, 44, 0.3);
}
.site-nav.is-open {
  display: grid;
  gap: var(--space-5);
  justify-items: start;
}
.nav-list {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  position: relative;
  padding-block: var(--space-2);
  font-size: var(--step--1);
  font-weight: var(--w-label);
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  transform: scaleX(1);
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
  font-size: var(--step--1);
  font-weight: var(--w-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lang-current {
  color: var(--brass-text);
}
.lang-current::after {
  content: "/";
  margin-left: var(--space-3);
  color: var(--line-strong);
}
.lang-switch {
  text-decoration: none;
}

@media (min-width: 78em) {
  .brand-tagline {
    white-space: nowrap;
  }
  .nav-toggle {
    display: none;
  }
  .site-nav,
  .site-nav.is-open {
    display: flex;
    position: static;
    align-items: center;
    gap: var(--space-5);
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav-list {
    display: flex;
    gap: var(--step-1);
  }
  .nav-cta {
    padding: var(--space-3) var(--space-4);
    white-space: nowrap;
  }
}

.lang-hint {
  background: var(--ink-2);
  color: var(--plaster);
  font-size: 0.9rem;
}
.lang-hint-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-3);
}
.lang-hint a {
  color: var(--brass-light);
}
.lang-hint-close {
  margin-left: auto;
  padding: 0 var(--space-3);
  background: none;
  border: 0;
  color: inherit;
  font-size: var(--step-2);
  line-height: 1;
  cursor: pointer;
}

/* ------------------------------------------------------------------ hero */

.hero {
  display: grid;
  background: var(--ink);
  color: var(--plaster-light);
}
.hero-media {
  position: relative;
  order: -1;
  aspect-ratio: 1.618 / 1;
  overflow: hidden;
  background: var(--ink-2);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active {
  opacity: 1;
}
.hero-slide picture,
.hero-slide img {
  width: 100%;
  height: 100%;
}
.hero-slide img {
  object-fit: cover;
}
.hero-dots {
  position: absolute;
  left: var(--gutter);
  bottom: var(--space-4);
  display: flex;
  gap: var(--space-3);
}
.hero-dot {
  position: relative;
  width: var(--space-6);
  height: var(--space-5);
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.hero-dot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(251, 249, 245, 0.55);
  transition: background-color 0.3s var(--ease);
}
.hero-dot.is-active::after {
  background: var(--brass-light);
}
.hero-dot:focus-visible {
  outline-color: var(--brass-light);
}

.hero-panel {
  display: flex;
  align-items: center;
  padding: var(--space-6) var(--gutter) var(--space-7);
}
.hero-panel-inner {
  max-width: 34rem;
}
.hero h1 {
  font-size: clamp(var(--step-3), 0.9rem + 2vw, var(--step-4));
  color: var(--plaster-light);
}
.hero-lead {
  margin-bottom: var(--space-5);
  color: var(--on-ink);
  font-size: var(--step-1);
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.hero-call {
  margin: 0;
  color: var(--on-ink);
}
.hero-call a {
  color: var(--plaster-light);
  font-weight: var(--w-label);
  white-space: nowrap;
}
.hero-call a:hover {
  color: var(--brass-light);
}

@media (min-width: 60em) {
  .hero {
    grid-template-columns: 1fr 1.618fr;
    min-height: clamp(32rem, calc(100vh - var(--header-h)), 44rem);
  }
  .hero-media {
    order: 0;
    aspect-ratio: auto;
  }
  .hero-panel {
    padding: var(--space-7) var(--space-6) var(--space-7)
      max(var(--gutter), calc((100vw - var(--container)) / 2));
  }
  .hero-dots {
    left: var(--space-6);
    bottom: var(--space-5);
  }
}

/* ------------------------------------------------------------------ facts */

.facts {
  background: var(--plaster-light);
  border-bottom: 1px solid var(--line);
}
.facts-grid {
  display: grid;
}
.fact {
  padding-block: var(--space-5);
  border-top: 1px solid var(--line);
}
.fact:first-child {
  border-top: 0;
}
.fact-value {
  margin: 0 0 var(--space-2);
  font-family: var(--font-serif);
  font-size: var(--step-3);
  font-weight: var(--w-display);
  line-height: 1.146;
}
.fact-label {
  margin: 0;
  color: var(--ink-soft);
}
@media (min-width: 48em) {
  .facts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .fact {
    padding: var(--space-6) var(--space-5);
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .fact:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

/* ------------------------------------------------------------------ about */

.framed {
  position: relative;
  margin: 0 var(--space-4) var(--space-4) 0;
}
.framed::before {
  content: "";
  position: absolute;
  inset: var(--space-4) calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) var(--space-4);
  border: 1px solid var(--brass);
}
.framed picture {
  position: relative;
  aspect-ratio: 1 / 1.272;
  overflow: hidden;
}
.framed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------------------------------ video */

.video-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 48em) {
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.video-frame {
  margin: 0;
}
.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  object-fit: cover;
}
.video-frame figcaption {
  margin-top: var(--space-3);
  color: var(--ink-soft);
  font-size: var(--step--1);
  font-weight: var(--w-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ why / offer */

.values {
  display: grid;
  gap: var(--space-6);
  counter-reset: value;
}
.value {
  position: relative;
  padding-left: var(--space-7);
  counter-increment: value;
}
.value::before {
  content: "0" counter(value);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brass-text);
  font-family: var(--font-serif);
  font-size: var(--step-2);
  font-style: italic;
  line-height: 1.146;
}
.value h3 {
  font-size: var(--step-3);
  font-weight: var(--w-display);
}
.value p {
  max-width: 34rem;
  margin: 0;
}

.offer-card {
  padding: var(--space-6) var(--space-5);
  background: var(--plaster-light);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
}
.check-list {
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding: var(--space-3) 0 var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--line);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.25rem;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--brass);
  transform: rotate(45deg);
}

/* ------------------------------------------------------------------ quote */

.quote-band {
  padding-block: var(--section);
  background: var(--ink);
  color: var(--plaster-light);
  text-align: center;
}
.quote {
  margin: 0;
}
.quote::before {
  content: "\201C";
  display: block;
  height: 0.5em;
  color: var(--brass);
  font-family: var(--font-serif);
  font-size: var(--step-6);
  line-height: 1;
}
.quote p {
  margin-bottom: var(--space-5);
  font-family: var(--font-serif);
  font-size: clamp(var(--step-2), 1rem + 1.7vw, var(--step-4));
  font-style: italic;
  font-weight: 400;
  line-height: 1.272;
  text-wrap: balance;
}
.quote footer {
  display: grid;
  gap: var(--space-2);
}
.quote cite {
  color: var(--brass-light);
  font-size: var(--step--1);
  font-style: normal;
  font-weight: var(--w-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.quote footer span {
  color: var(--on-ink);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------------ services */

.card-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 52em) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: var(--measure); /* 61.8 % of the container */
    margin-inline: auto;
  }
}
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-6) var(--space-5);
  background: var(--plaster-light);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover {
  border-color: var(--brass);
  box-shadow: 0 1.618rem 2.618rem -1.618rem rgba(30, 42, 44, 0.35);
  transform: translateY(-0.382rem);
}
.card-icon {
  width: var(--space-6);
  height: var(--space-6);
  margin-bottom: var(--space-5);
  color: var(--brass);
}
.card h3 {
  font-size: var(--step-2);
  font-weight: var(--w-display);
}
.card p {
  margin-bottom: var(--space-5);
  color: var(--ink-2);
}
.card .text-link {
  margin-top: auto;
}

/* ------------------------------------------------------------------ products */

.note {
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--plaster-light);
  border-left: 3px solid var(--brass);
}
.note h3 {
  font-size: var(--step-2);
}
.note p {
  margin: 0;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.logo-grid li {
  position: relative;
  aspect-ratio: 1.618 / 1;
  background: #fff;
  border: 1px solid var(--line);
}
.logo-grid img {
  position: absolute;
  inset: var(--space-4);
  width: calc(100% - 2 * var(--space-4));
  height: calc(100% - 2 * var(--space-4));
  object-fit: contain;
}

/* ------------------------------------------------------------------ projects */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1.618 / 1;
  overflow: hidden;
  background: var(--plaster-deep);
}
.gallery-item-lead {
  grid-column: span 2;
}
.gallery-item a {
  position: absolute;
  inset: 0;
  display: block;
}
.gallery-item picture,
.gallery-item img {
  width: 100%;
  height: 100%;
}
.gallery-item img {
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.gallery-item a::after {
  content: "+";
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  display: grid;
  place-items: center;
  width: var(--space-6);
  height: var(--space-6);
  background: var(--brass);
  border-radius: 50%;
  color: var(--ink);
  font-size: var(--step-1);
  line-height: 1;
  opacity: 0;
  transform: scale(0.618);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery-item a:hover img,
.gallery-item a:focus-visible img {
  transform: scale(1.05);
}
.gallery-item a:hover::after,
.gallery-item a:focus-visible::after {
  opacity: 1;
  transform: none;
}
.gallery-item a:focus-visible {
  outline-offset: -4px;
}
/* Wide screens: heading and pictures share one screen. The gallery is a fixed mosaic of
   three rows whose tiles keep the golden ratio; when the window is lower than that needs,
   the gallery (not the heading) gives way and the pictures are cropped a little flatter. */
@media (min-width: 60em) {
  .fit-screen {
    display: flex;
    flex-direction: column;
    /* what is left under the header after a menu jump, with the same air below as above */
    max-height: calc(100vh - var(--header-h) - 2 * var(--space-5));
    max-height: calc(100svh - var(--header-h) - 2 * var(--space-5));
  }
  .fit-screen > .section-head {
    flex: none;
  }
  .gallery {
    flex: 0 1 auto;
    width: 100%;
    min-height: 14rem;
    /* 4 x 3 tiles: one large picture (2 x 2) and eight small ones */
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
    aspect-ratio: 6.472 / 3; /* 4 x 1.618 wide, 3 high */
  }
  .gallery-item {
    aspect-ratio: auto;
  }
  .gallery-item-lead {
    grid-row: span 2;
  }
}
@media (min-width: 75em) {
  /* 6 x 3 tiles: three large pictures (left, right, centre) and six small ones */
  .gallery {
    grid-template-columns: repeat(6, 1fr);
    aspect-ratio: 9.708 / 3; /* 6 x 1.618 wide, 3 high */
  }
  .gallery-item-lead {
    grid-area: 1 / 1 / span 2 / span 2;
  }
  .gallery-item-right {
    grid-area: 1 / 5 / span 2 / span 2;
  }
  .gallery-item-centre {
    grid-area: 2 / 3 / span 2 / span 2;
  }
}

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: hidden;
}
.lightbox[open] {
  display: grid;
  place-items: center;
}
.lightbox::backdrop {
  background: rgba(20, 28, 30, 0.94);
}
.lightbox-image {
  width: auto;
  max-width: min(92vw, 100rem);
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 2.618rem 4.236rem -1.618rem rgba(0, 0, 0, 0.6);
}
.lightbox-button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0 0 0.2rem;
  background: rgba(30, 42, 44, 0.7);
  border: 1px solid rgba(245, 241, 234, 0.35);
  border-radius: 50%;
  color: var(--plaster-light);
  font-family: var(--font-serif);
  font-size: var(--step-3);
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.lightbox-button:hover {
  background: var(--brass);
  color: var(--ink);
}
.lightbox-button:focus-visible {
  outline-color: var(--brass-light);
}
.lightbox-close {
  top: var(--space-4);
  right: var(--space-4);
}
.lightbox-prev {
  left: var(--space-4);
  top: calc(50% - 1.5rem);
}
.lightbox-next {
  right: var(--space-4);
  top: calc(50% - 1.5rem);
}
:root:has(dialog[open]) {
  overflow: hidden;
}

/* ------------------------------------------------------------------ contact */

/* Phone: heading, form, card under each other. Desktop: heading and card in the narrow
   column, the whole form in the wide one (golden split), so the send button is on screen
   right after a jump to this section. */
.contact-layout {
  display: grid;
  gap: var(--space-5);
}
.contact-layout .section-head {
  margin-bottom: 0;
}
@media (min-width: 62em) {
  .contact-layout {
    grid-template-columns: 1fr 1.618fr;
    grid-template-rows: auto 1fr;
    column-gap: var(--space-7);
    align-items: start;
  }
  .contact-layout .section-head {
    grid-area: 1 / 1;
  }
  .contact-layout .contact-card {
    grid-area: 2 / 1;
  }
  .contact-layout .contact-form {
    grid-area: 1 / 2 / span 2;
  }
}

.contact-form {
  display: grid;
  gap: var(--space-4);
  padding: clamp(var(--space-4), 4vw, var(--space-5));
  background: var(--plaster-light);
  border: 1px solid var(--line);
}
.field-row {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 40em) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  gap: var(--space-2);
}
.field label {
  color: var(--ink-soft);
  font-size: var(--step--1);
  font-weight: var(--w-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.optional {
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: none;
}
.field input,
.field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea {
  min-height: 8rem;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--brass-text);
  box-shadow: 0 0 0 3px rgba(176, 138, 79, 0.28);
  outline: 0;
}
.field [aria-invalid="true"] {
  border-color: var(--error);
}
/* honeypot: real visitors never see or reach this field */
.field-trap {
  position: absolute;
  left: -200vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-consent {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.form-status {
  flex: 1 1 16rem;
  margin: 0;
  font-weight: var(--w-label);
}
.form-status:empty {
  display: none;
}
.form-status.is-success {
  color: var(--ok);
}
.form-status.is-error {
  color: var(--error);
}

.contact-card {
  position: relative;
  padding: var(--space-5);
  background: var(--ink);
  color: var(--on-ink);
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: var(--space-3);
  border: 1px solid rgba(208, 174, 116, 0.35);
  pointer-events: none;
}
.contact-card > * {
  position: relative;
}
.contact-card h3,
.contact-card strong {
  color: var(--plaster-light);
}
.contact-card address {
  margin-bottom: var(--space-4);
}
.contact-card a.contact-route:not(.button) {
  display: inline-block;
  margin-top: var(--space-2);
  color: var(--brass-light);
  font-size: var(--step--1);
  font-weight: var(--w-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.contact-line {
  margin-bottom: var(--space-3);
}
.contact-line:last-child {
  margin-bottom: 0;
}
.contact-label {
  display: block;
  color: var(--brass-light);
  font-size: var(--step--1);
  font-weight: var(--w-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.contact-card a:not(.button) {
  color: var(--plaster-light);
}
.contact-card a:not(.button):hover {
  color: var(--brass-light);
}
.contact-card :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.not-found :focus-visible {
  outline-color: var(--brass-light);
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  background: var(--ink);
  color: var(--on-ink);
  font-size: 0.9rem;
}
.site-footer a {
  color: inherit;
}
.site-footer a:hover {
  color: var(--brass-light);
}
.footer-grid {
  display: grid;
  gap: var(--space-5);
  padding-block: var(--space-6);
}
@media (min-width: 48em) {
  .footer-grid {
    grid-template-columns: 1.618fr 1fr 1fr;
    gap: var(--space-6);
  }
}
.footer-brand .brand-name {
  margin-bottom: var(--space-2);
  color: var(--plaster-light);
}
.footer-brand .brand-tagline {
  color: var(--brass-light);
}
.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav a {
  text-decoration: none;
}
.footer-address {
  margin: 0;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  padding-block: var(--space-4);
  border-top: 1px solid var(--line-light);
  font-size: var(--step--1);
}
.footer-legal p {
  margin: 0;
}
/* the legal mentions break between their parts, never inside an address or a number */
.footer-company span {
  white-space: nowrap;
}

/* ------------------------------------------------------------------ text pages */

.prose h1 {
  margin-bottom: var(--space-6);
}
.prose h2 {
  margin-top: var(--space-6);
  font-size: var(--step-3);
}
.prose ul {
  padding-left: var(--space-5);
}
.prose li {
  margin-bottom: var(--space-2);
}
.prose li::marker {
  color: var(--brass);
}
.prose-back {
  margin-top: var(--space-6);
}

.not-found {
  display: grid;
  align-items: center;
  min-height: 100vh;
  padding-block: var(--space-7);
  background: var(--ink);
  color: var(--on-ink);
}
.not-found .brand-name,
.not-found h1 {
  color: var(--plaster-light);
}
.not-found h1 {
  font-size: var(--step-4);
}
.not-found-code {
  margin: var(--space-5) 0;
  color: var(--brass-light);
  font-family: var(--font-serif);
  font-size: var(--step-6);
  font-style: italic;
  line-height: 1;
}
.not-found-grid {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 40em) {
  .not-found-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ------------------------------------------------------------------ motion */

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(var(--space-5));
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.smooth-scroll {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .lang-hint,
  .hero-dots,
  .video-grid,
  .contact-form {
    display: none;
  }
}
