/* Fre’s Style: logo-driven dark / copper */

:root {
  --black: #0a0a0a;
  --black-2: #121212;
  --black-3: #1a1a1a;
  --copper: #b07848;
  --copper-hot: #c48955;
  --white: #f5f2ed;
  --muted: rgba(245, 242, 237, 0.62);
  --line: rgba(245, 242, 237, 0.1);
  --line-strong: rgba(245, 242, 237, 0.16);

  --font: "Outfit", "Segoe UI", sans-serif;
  --container: 1160px;
  --gutter: clamp(1.25rem, 4.5vw, 2.5rem);
  --header-h: 4.75rem;
  --space: clamp(5.25rem, 11vw, 8.75rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  /* Anchor offset is handled per-target via scroll-margin (avoids double offset). */
  scroll-padding-top: 0;
}

/* Default section anchors: sit the target just under the top / fixed header */
h2[id]:not(#over-ons),
#top,
#binnen,
#buiten,
#mortex,
#technieken {
  scroll-margin-top: 1.25rem;
}

/* Over Ons: keep the previous (deeper) landing position */
#over-ons {
  scroll-margin-top: calc((var(--header-h) + 0.75rem) * 2);
}

@media (max-width: 960px) {
  /* Fixed header on small screens: clear it once for all section titles */
  h2[id]:not(#over-ons),
  #top,
  #binnen,
  #buiten,
  #mortex,
  #technieken {
    scroll-margin-top: calc(var(--header-h) + 1.15rem);
  }

  #over-ons {
    scroll-margin-top: calc((var(--header-h) + 0.75rem) * 2);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .hero .hero-brand,
  .hero .hero-panel > h1,
  .hero .hero-panel > p,
  .hero .hero-panel > .btn,
  .hero .hero-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero .hero-scroll {
    transform: translateX(-50%) !important;
  }

  .hero-scroll svg {
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--copper);
  text-underline-offset: 0.18em;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--copper-hot);
}

a:focus-visible,
button:focus-visible,
.shot:focus-visible,
.glossary-term:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; color: var(--muted); }
p:last-child { margin-bottom: 0; }

.sep {
  display: inline-block;
  padding-inline: 0.55em;
}

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 1000;
  padding: 0.7rem 1rem;
  background: var(--copper);
  color: var(--black);
  text-decoration: none;
}

.skip-link:focus { top: 1rem; }

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

.section {
  padding: var(--space) 0;
}

.section-top {
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-top h2 {
  font-size: clamp(2.15rem, 1.5rem + 2.2vw, 3.25rem);
  margin-bottom: 0.35em;
  font-weight: 500;
}

.section-top p {
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(1.15rem);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (max-width: 960px) {
  .reveal {
    transform: translateY(0.5rem);
    transition:
      opacity 0.4s var(--ease),
      transform 0.4s var(--ease);
  }

  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3 {
    transition-delay: 0.04s;
  }
}

/* Intro: who we are */
.intro {
  background: var(--black);
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.intro-label {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  font-family: var(--font);
}

.intro-copy h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.15rem, 1.5rem + 2.2vw, 3.25rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--white);
}

.intro-lead {
  margin: 0 0 1.35rem;
  max-width: 32rem;
  font-size: clamp(1.12rem, 1rem + 0.45vw, 1.32rem);
  line-height: 1.55;
  color: var(--white);
}

.intro-copy > p:not(.intro-label):not(.intro-lead) {
  margin: 0 0 1.1rem;
  max-width: 32rem;
  color: var(--muted);
}

.intro-copy .btn {
  margin-top: 1.5rem;
}

.intro-media {
  margin: 0;
}

.intro-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Ambacht in beeld */
.craft {
  background: var(--black-2);
  border-top: 1px solid var(--line);
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.craft-shot {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.craft-shot-frame {
  position: relative;
  overflow: hidden;
  background: var(--black);
  aspect-ratio: 3 / 4;
}

.craft-shot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.craft-shot-img--top {
  object-position: center 28%;
}

.craft-shot-img--wall {
  object-position: center 35%;
}

.craft-shot figcaption {
  display: grid;
  gap: 0.2rem;
}

.craft-shot-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

.craft-shot-text {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.btn-accent {
  background: var(--copper);
  color: var(--black);
}

.btn-accent:hover {
  background: var(--copper-hot);
  color: var(--black);
}

.btn-full { width: 100%; }

/* Header: anchored in dark hero panel; scrolls away with hero */
.site-header {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 100;
  width: max(280px, 38vw);
  height: var(--header-h);
}

.header-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: clamp(1.5rem, 4vw, 3.5rem);
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 2.85rem;
  width: auto;
  display: block;
}

.nav-desktop {
  width: 100%;
}

.nav-desktop ul {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.nav-desktop a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35em;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-desktop a:hover {
  color: var(--white);
}

.nav-desktop a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 2.5rem;
  height: 2.5rem;
  position: relative;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 1.2rem;
  height: 1.5px;
  background: var(--white);
  transform: translateX(-50%);
  transition: transform 0.2s ease;
}

.nav-toggle span:first-child { top: 1rem; }
.nav-toggle span:last-child { top: 1.4rem; }

.nav-toggle[aria-expanded="true"] span:first-child {
  top: 1.2rem;
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  top: 1.2rem;
  transform: translateX(-50%) rotate(-45deg);
}

.nav-mobile {
  position: absolute;
  inset: var(--header-h) 0 auto;
  background: var(--black);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem var(--gutter) 1.75rem;
}

.nav-mobile[hidden] { display: none; }

.nav-mobile a {
  display: block;
  padding: 0.85rem 0;
  color: var(--white);
  text-decoration: none;
  font-size: 1.35rem;
  border-bottom: 1px solid var(--line);
}

body.nav-open { overflow: hidden; }
body.nav-open .site-header { background: var(--black); }

/* Desktop: hamburger only after hero nav leaves view */
@media (min-width: 901px) {
  .nav-toggle {
    display: inline-flex;
    position: fixed;
    top: calc((var(--header-h) - 2.5rem) / 2);
    right: var(--gutter);
    z-index: 200;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.35rem);
    transition:
      opacity 0.35s var(--ease),
      visibility 0.35s var(--ease),
      transform 0.35s var(--ease);
  }

  body.is-past-nav .nav-toggle {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition:
      opacity 0.45s var(--ease) 0.05s,
      visibility 0.45s var(--ease) 0.05s,
      transform 0.45s var(--ease) 0.05s;
  }

  body.is-past-nav .nav-mobile {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    padding-top: calc(var(--header-h) + 0.5rem);
    z-index: 150;
    background: var(--black);
  }

  body:not(.is-past-nav) .nav-mobile {
    display: none !important;
  }

  body.is-past-nav .nav-mobile[hidden] {
    display: none !important;
  }

  body.is-past-nav .nav-mobile:not([hidden]) {
    display: block !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle {
    transition: none !important;
  }
}

/* Hero: logo panel over photo */
.hero {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 38vw);
}

.hero-media {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent 55%, rgba(10, 10, 10, 0.22)),
    radial-gradient(ellipse at 30% 50%, transparent 40%, rgba(10, 10, 10, 0.28) 100%);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  padding: clamp(2rem, 5vw, 4rem);
  padding-top: calc(var(--header-h) + 1.5rem);
  background: var(--black);
  border-left: 1px solid rgba(176, 120, 72, 0.35);
}

.hero-brand {
  width: min(100%, 248px);
  height: auto;
  margin-bottom: 0.35rem;
}

.hero h1 {
  font-family: var(--font);
  font-size: clamp(1.05rem, 0.95rem + 0.55vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0;
  max-width: 18ch;
}

.hero-panel > p {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.hero .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
  background: transparent;
  color: var(--copper);
  border-color: rgba(176, 120, 72, 0.55);
  min-height: 2.55rem;
  padding-inline: 1.15rem;
}

.hero .btn:hover {
  background: var(--copper);
  color: var(--black);
  border-color: var(--copper);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.85rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: rgba(245, 242, 237, 0.45);
  text-decoration: none;
  transition: color 0.25s ease;
}

.hero-scroll:hover,
.hero-scroll:focus-visible {
  color: var(--copper);
}

.hero-scroll svg {
  display: block;
  animation: hero-scroll-nudge 2.2s var(--ease) infinite;
}

/* Hero entrance */
.hero:not(.is-ready) .hero-brand,
.hero:not(.is-ready) .hero-panel > h1,
.hero:not(.is-ready) .hero-panel > p,
.hero:not(.is-ready) .hero-panel > .btn,
.hero:not(.is-ready) .hero-scroll {
  opacity: 0;
  transform: translateY(0.85rem);
}

.hero.is-ready .hero-brand,
.hero.is-ready .hero-panel > h1,
.hero.is-ready .hero-panel > p,
.hero.is-ready .hero-panel > .btn,
.hero.is-ready .hero-scroll {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.hero.is-ready .hero-brand { transition-delay: 0.05s; }
.hero.is-ready .hero-panel > h1 { transition-delay: 0.16s; }
.hero.is-ready .hero-panel > p { transition-delay: 0.26s; }
.hero.is-ready .hero-panel > .btn { transition-delay: 0.36s; }
.hero.is-ready .hero-scroll {
  transition-delay: 0.5s;
  transform: translateX(-50%);
}

.hero:not(.is-ready) .hero-scroll {
  transform: translateX(-50%) translateY(0.85rem);
}

@keyframes hero-scroll-nudge {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(0.4rem);
    opacity: 1;
  }
}

/* Services blocks */
.services {
  background: var(--black-2);
  border-top: 1px solid var(--line);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.service {
  background: var(--black);
  position: relative;
}

.service:last-child {
  grid-column: 1 / -1;
}

.service-link {
  display: grid;
  grid-template-rows: auto auto;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.service-link img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.45s var(--ease), z-index 0s;
}

.service:last-child img {
  aspect-ratio: 21 / 9;
}

.service-link img:hover {
  z-index: 2;
  transform: scale(1.04);
}

.service-copy {
  padding: 1.35rem 1.4rem 1.5rem;
  border-top: 1px solid var(--line);
}

.service-copy h3 {
  margin: 0 0 0.35em;
  font-size: 1.25rem;
  color: var(--white);
  transition: color 0.35s var(--ease);
}

.service-copy p {
  margin: 0;
  font-size: 0.95rem;
}

.service-link:hover .service-copy h3 {
  color: var(--copper);
}

/* Service detail sections */
.service-detail {
  background: var(--black);
  border-top: 1px solid var(--line);
}

.service-detail--alt {
  background: var(--black-2);
}

.service-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.service-detail-layout--reverse .service-detail-media {
  order: 2;
}

.service-detail-layout--stack {
  grid-template-columns: 1fr;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.service-detail-layout--stack .service-detail-copy {
  max-width: 40rem;
}

.service-detail-media {
  margin: 0;
}

.service-detail-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.service-detail-label {
  margin: 0 0 0.75rem;
  font-family: var(--font);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}

.service-detail-copy h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(2rem, 1.4rem + 1.8vw, 2.85rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--white);
}

.service-detail-copy p {
  margin: 0 0 1rem;
  max-width: 34rem;
  color: var(--muted);
}

.service-detail-copy p:last-child {
  margin-bottom: 0;
}

/* Techniques */
.techniques {
  background: var(--black);
  border-top: 1px solid var(--line);
}

.technique-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (min-width: 961px) {
  .technique-rows {
    grid-template-columns: repeat(6, 1fr);
  }

  .technique-rows .technique:nth-child(-n + 3) {
    grid-column: span 2;
  }

  .technique-rows .technique:nth-child(n + 4) {
    grid-column: span 3;
  }
}

.technique {
  display: grid;
  gap: 1rem;
}

.technique img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.technique h3 {
  margin: 0 0 0.25em;
  font-size: 1.35rem;
  color: var(--white);
}

.technique p {
  margin: 0;
  font-size: 0.95rem;
}

/* Materiaalwoordenboek */
.glossary-term {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px dotted var(--copper);
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: help;
  vertical-align: baseline;
  transition: color 0.3s var(--ease), border-bottom-color 0.3s var(--ease);
}

.glossary-term:hover,
.glossary-term:focus-visible,
.glossary-term.is-active {
  color: var(--copper-hot);
  border-bottom-style: solid;
  outline: none;
}

.glossary-term--title {
  border-bottom-color: rgba(176, 120, 72, 0.45);
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.glossary-hint {
  margin-top: 1.25rem !important;
  font-size: 0.85rem !important;
  color: rgba(245, 242, 237, 0.45) !important;
}

.glossary-hint--mobile {
  display: none;
}

.glossary-popover {
  position: fixed;
  z-index: 140;
  width: min(18.5rem, calc(100vw - 2rem));
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--line);
  background: var(--black-3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.glossary-popover-title {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

.glossary-popover-body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--white);
}

/* Mid-page contact CTA */
.cta-band {
  padding-top: clamp(1rem, 2.5vw, 1.75rem);
  padding-bottom: clamp(3.25rem, 7vw, 5rem);
  background: var(--black-2);
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}

.cta-band-copy {
  max-width: 34rem;
}

.cta-band-copy h2 {
  margin: 0 0 0.35em;
  font-size: clamp(1.65rem, 1.2rem + 1.4vw, 2.35rem);
  color: var(--white);
}

.cta-band-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.cta-band .btn {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Portfolio */
.portfolio {
  background: var(--black-2);
  border-top: 1px solid var(--line);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.2rem);
}

.shot {
  position: relative;
  margin: 0;
  padding: 0;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--black);
  cursor: zoom-in;
  border: 0;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s var(--ease), opacity 0.35s var(--ease);
}

.shot:hover img,
.shot:focus-visible img {
  transform: scale(1.03);
  opacity: 0.9;
}

.shot:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.portfolio-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.portfolio-more:hover,
.portfolio-more:focus-visible {
  color: var(--copper);
  border-color: var(--copper);
}

.portfolio:not(.is-expanded) .shot:nth-child(n + 7) {
  display: none;
}

/* Desktop: clear opener + equal grid */
@media (min-width: 961px) {
  .portfolio-grid {
    gap: 1rem;
  }

  .portfolio:not(.is-expanded) .shot:nth-child(n + 6) {
    display: none;
  }

  .shot:nth-child(1) {
    grid-column: span 2;
    aspect-ratio: 3 / 2;
  }

  .shot:nth-child(2) {
    aspect-ratio: auto;
    align-self: stretch;
    height: 100%;
  }
}

/* Contact */
.contact {
  background: var(--black-2);
  border-top: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-people {
  display: grid;
  gap: 1.5rem;
}

.person {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.person h3 {
  color: var(--copper);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.person p {
  font-size: 0.95rem;
  line-height: 1.75;
}

.person a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.person a:hover {
  color: var(--copper);
}

.contact-form {
  display: grid;
  gap: 0.95rem;
  padding: 1.5rem;
  background: var(--black);
  border: 1px solid var(--line);
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-label {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.field-optional {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.7rem;
  color: rgba(245, 242, 237, 0.4);
}

.contact-form input:not([type="checkbox"]),
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--black-2);
  color: var(--white);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.4;
  box-shadow: none;
}

.contact-form select {
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
  cursor: pointer;
  padding-right: 2.75rem;
  background-color: var(--black-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 6L8 10.5L12.5 6' stroke='%23b07848' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 0.9rem;
}

.contact-form select:not(:focus):invalid,
.contact-form select.is-placeholder {
  color: var(--muted);
}

.contact-form select option {
  background: var(--black-2);
  color: var(--white);
}

.contact-form select option[value=""] {
  color: var(--muted);
}

.contact-form input:not([type="checkbox"]):focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--copper);
}

.contact-form textarea {
  resize: vertical;
  min-height: 7.5rem;
}

.check {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.9rem !important;
  color: var(--muted) !important;
}

.contact-form .check input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 0.9rem;
  height: 0.9rem;
  min-width: 0.9rem;
  min-height: 0.9rem;
  max-width: 0.9rem;
  max-height: 0.9rem;
  margin: 0.2rem 0 0;
  padding: 0;
  border: 1px solid rgba(245, 242, 237, 0.45);
  border-radius: 0.12rem;
  background: transparent;
  background-color: transparent;
  color: inherit;
  font-size: 0;
  line-height: 0;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: none;
}

.contact-form .check input[type="checkbox"]:checked {
  border-color: var(--copper);
  background-color: var(--copper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230a0a0a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
  background-size: 0.65rem 0.65rem;
  background-position: center;
  background-repeat: no-repeat;
}

.contact-form .check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

.check a { color: var(--white); }

.form-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--copper);
}

.form-note.is-error { color: #d27a6a; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-form .btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-alt {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  background: var(--black);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  width: 100%;
}

.footer-nav-primary,
.footer-nav-secondary {
  display: contents;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s var(--ease);
}

.footer-nav a:hover { color: var(--white); }

.footer-social {
  display: flex;
  gap: 0.85rem;
  margin-left: auto;
}

.footer-social a {
  color: var(--muted);
  line-height: 0;
  transition: color 0.3s var(--ease);
}

.footer-social a:hover { color: var(--copper); }

.footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.social-links {
  display: flex;
  gap: 0.85rem;
  margin-top: 1rem;
}

.social-link {
  color: var(--muted);
  line-height: 0;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.social-link:hover {
  color: var(--copper);
}

.social-icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.social-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 1.25rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(245, 242, 237, 0.4);
}

.footer-bottom a {
  color: rgba(245, 242, 237, 0.55);
}

/* Floating */
.whatsapp-float {
  position: fixed;
  right: var(--gutter);
  bottom: 1.15rem;
  z-index: 95;
  height: 3.2rem;
  min-width: 3.2rem;
  padding: 0 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 1.6rem;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: padding 0.45s var(--ease);
}

.whatsapp-float:hover,
.whatsapp-float:active,
.whatsapp-float:focus,
.whatsapp-float:focus-visible {
  color: #fff;
  background: #25d366;
}

.whatsapp-float svg {
  flex-shrink: 0;
}

.whatsapp-float__label {
  display: inline-block;
  max-width: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition:
    max-width 0.45s var(--ease),
    opacity 0.3s ease,
    margin 0.45s var(--ease);
}

.whatsapp-float.is-expanded {
  padding-left: 1.1rem;
  padding-right: 0.95rem;
}

.whatsapp-float.is-expanded .whatsapp-float__label {
  max-width: 15.5rem;
  margin-right: 0.65rem;
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .whatsapp-float.is-intro {
    animation: wa-intro-pad 0.9s var(--ease) 0.35s both;
  }

  .whatsapp-float.is-intro .whatsapp-float__label {
    transition: none;
    animation: wa-intro-label 0.9s var(--ease) 0.35s both;
  }
}

@keyframes wa-intro-pad {
  from {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  to {
    padding-left: 1.1rem;
    padding-right: 0.95rem;
  }
}

@keyframes wa-intro-label {
  from {
    max-width: 0;
    margin-right: 0;
    opacity: 0;
  }
  to {
    max-width: 15.5rem;
    margin-right: 0.65rem;
    opacity: 1;
  }
}

@media (hover: hover) and (pointer: fine) {
  .whatsapp-float:hover,
  .whatsapp-float:focus-visible {
    padding-left: 1.1rem;
    padding-right: 0.95rem;
  }

  .whatsapp-float:hover .whatsapp-float__label,
  .whatsapp-float:focus-visible .whatsapp-float__label {
    max-width: 15.5rem;
    margin-right: 0.65rem;
    opacity: 1;
  }
}

/* Cookie */
.cookie-banner {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 1rem;
  z-index: 220;
  max-width: 36rem;
  margin-inline: auto;
}

.cookie-banner[hidden] { display: none; }

.cookie-banner-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  background: var(--black-3);
  border: 1px solid var(--line);
}

.cookie-banner h2 {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.88rem;
}

body.has-cookie-banner { padding-bottom: 6rem; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
}

.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1100px);
}

.lightbox-dialog figure {
  margin: 0;
  text-align: center;
}

.lightbox-dialog img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  color: var(--white);
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 0;
  line-height: 0;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.lightbox-close svg,
.lightbox-nav svg {
  display: block;
  flex-shrink: 0;
}

.lightbox-close { top: -0.25rem; right: -0.25rem; }
.lightbox-prev { left: -0.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -0.25rem; top: 50%; transform: translateY(-50%); }

/* Legal pages reuse */
.page-legal .site-header {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid var(--line);
}

.page-legal .header-inner {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
  padding-inline: 0;
  justify-content: space-between;
  gap: 1.25rem;
}

.page-legal .nav-desktop {
  width: auto;
  margin-left: auto;
}

.page-legal .nav-desktop ul {
  gap: 1.75rem;
  justify-content: flex-end;
}

.page-legal .nav-toggle {
  margin-left: 0;
}

.legal-main {
  padding: calc(var(--header-h) + 3rem) 0 var(--space);
}

.legal-content {
  max-width: 44rem;
}

.legal-content h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  color: var(--white);
}

.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-content section { margin-bottom: 2rem; }

.legal-content h2 {
  font-size: 1.45rem;
  color: var(--copper);
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.legal-cards {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
}

@media (min-width: 700px) {
  .legal-cards { grid-template-columns: 1fr 1fr; }
}

.legal-cards article {
  padding: 1.15rem;
  border: 1px solid var(--line);
  background: var(--black-2);
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--line);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.legal-table th {
  color: var(--copper);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-company {
  margin: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-company p { margin: 0 0 0.5rem; color: var(--muted); }
.footer-company a { color: var(--muted); }

.text-link {
  color: var(--copper);
  text-decoration: none;
}

/* Error pages */
.page-error {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.error-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space) 0;
}

.error-content {
  text-align: center;
  max-width: 28rem;
}

.error-code {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}

.error-content h1 {
  margin: 0 0 0.5em;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  color: var(--white);
}

.error-content p {
  margin: 0 0 1.75rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 960px) {
  .site-header {
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.55), transparent);
  }

  body.nav-open .site-header {
    background: var(--black);
  }

  .header-inner {
    padding-inline: var(--gutter);
    justify-content: flex-end;
  }

  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }

  .hero-panel {
    order: 1;
    border-left: 0;
    border-bottom: 1px solid rgba(176, 120, 72, 0.28);
    padding-block: 2.25rem;
    padding-top: calc(var(--header-h) + 1.75rem);
    align-items: center;
    text-align: center;
  }

  .hero-brand {
    width: min(100%, 200px);
    margin-inline: auto;
  }

  .hero h1 {
    max-width: none;
  }

  .hero .btn {
    align-self: center;
  }

  .hero-scroll {
    display: none;
  }

  .hero-media::after {
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.15), transparent 40%);
  }

  .hero-media {
    display: none;
  }

  .intro-layout,
  .services-grid,
  .craft-grid,
  .technique-rows,
  .contact-layout,
  .service-detail-layout {
    grid-template-columns: 1fr;
  }

  .contact-form {
    order: -1;
  }

  .glossary-hint--mobile {
    display: inline;
  }

  .glossary-hint--desktop {
    display: none;
  }

  .check {
    font-size: 0.78rem !important;
    gap: 0.45rem;
  }

  .contact-form .check input[type="checkbox"] {
    width: 0.75rem;
    height: 0.75rem;
    min-width: 0.75rem;
    min-height: 0.75rem;
    max-width: 0.75rem;
    max-height: 0.75rem;
    margin-top: 0.18rem;
  }

  .contact-form .check input[type="checkbox"]:checked {
    background-size: 0.55rem 0.55rem;
  }

  .craft-shot-frame {
    aspect-ratio: 5 / 4;
  }

  .service-detail-layout--reverse .service-detail-media {
    order: 0;
  }

  .service-detail-media img {
    aspect-ratio: 5 / 4;
  }

  .intro-media {
    order: -1;
    max-width: 28rem;
  }

  .intro-media img {
    aspect-ratio: 5 / 4;
  }

  .service:last-child img {
    aspect-ratio: 16 / 9;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
}

@media (min-width: 901px) {
  body:not(.is-past-nav) .nav-mobile {
    display: none !important;
  }
}

@media (max-width: 640px) {
  :root { --header-h: 4.25rem; }

  .logo img { height: 2.45rem; }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .shot {
    aspect-ratio: 1 / 1;
    margin: 0;
  }

  .shot img {
    aspect-ratio: auto;
    object-fit: cover;
  }

  .portfolio-more {
    margin-top: 0.85rem;
  }

  .technique img { aspect-ratio: 5 / 4; }

  .footer-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .footer-nav-primary,
  .footer-nav-secondary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.25rem;
  }

  .footer-nav-secondary .footer-social {
    margin-left: auto;
  }

  .footer-bottom {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.35rem 1rem;
    padding-right: 0;
  }

  .site-footer {
    padding-bottom: 5.5rem;
  }

  body.has-cookie-banner .whatsapp-float {
    display: none;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
}
