:root {
  --ink: #05080b;
  --ink-soft: #090d11;
  --panel: #0d1216;
  --panel-2: #11171c;
  --paper: #f2eee7;
  --paper-2: #e5ded3;
  --white: #f7f3ec;
  --muted: #aaa59d;
  --muted-light: #666057;
  --gold: #bd8331;
  --gold-bright: #dfa94f;
  --gold-pale: #e7c57c;
  --line: rgba(201, 148, 58, 0.42);
  --line-soft: rgba(201, 148, 58, 0.19);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1880px;
  --header-h: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 10% 20%, rgba(189, 131, 49, 0.035), transparent 28rem),
    var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}
::selection { color: #111; background: var(--gold-pale); }

.shell { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.icon { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon-fill { fill: currentColor; stroke: none; }
.eyebrow {
  display: inline-block;
  margin: 0 0 11px;
  color: var(--gold-bright);
  font-size: 0.71rem;
  font-weight: 750;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.display, h1, h2, h3 { margin-top: 0; font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(3.2rem, 6vw, 5.6rem); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3.55vw, 3.45rem); line-height: 1.05; letter-spacing: -0.025em; }
h3 { font-size: 1.38rem; line-height: 1.15; }
p { color: #cbc5bc; }
.text-gold { color: var(--gold-bright); }
.center { text-align: center; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(4, 7, 9, 0.94);
  box-shadow: 0 8px 34px rgba(0,0,0,0.18);
  backdrop-filter: blur(16px);
}
.header-inner { height: 100%; display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; width: max-content; }
.brand img { width: 62px; height: 62px; object-fit: contain; }
.desktop-nav { display: flex; justify-content: center; align-items: stretch; gap: clamp(21px, 2.3vw, 38px); height: 100%; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #eae4da;
  font-size: 0.75rem;
  font-weight: 620;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 1px; transform: scaleX(0); background: var(--gold-bright); transition: transform .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--gold-bright); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.header-cta { min-height: 42px !important; padding-inline: 20px !important; }
.menu-toggle, .mobile-menu { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 21px;
  border: 1px solid var(--line);
  color: #fff;
  background: rgba(0,0,0,.18);
  font-size: .72rem;
  font-weight: 760;
  letter-spacing: .045em;
  text-transform: uppercase;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
}
.btn .icon { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); border-color: var(--gold-bright); color: var(--gold-pale); }
.btn-gold { border-color: #d2a351; color: #fff; background: linear-gradient(135deg, #ad7024, #d8a64e); box-shadow: 0 9px 24px rgba(181, 119, 36, .18); }
.btn-gold:hover { color: #fff; filter: brightness(1.08); }
.btn-wide { min-width: 185px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-bright); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.link-arrow .icon { width: 16px; height: 16px; }

/* Shared dark texture */
.texture-dark {
  background:
    radial-gradient(circle at 13% 35%, rgba(189, 131, 49, .08), transparent 31rem),
    linear-gradient(120deg, rgba(255,255,255,.015), transparent 38%),
    var(--ink-soft);
}
.section { padding: 64px 0; border-bottom: 1px solid var(--line-soft); }
.section-heading { max-width: 780px; margin-bottom: 30px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h2 { margin-bottom: 12px; }
.section-heading p { margin: 0; }

/* Home hero */
.home-hero {
  position: relative;
  min-height: 510px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.home-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2,4,6,.98) 1%, rgba(2,4,6,.9) 32%, rgba(2,4,6,.49) 55%, rgba(2,4,6,.08) 81%);
}
.home-hero-content { position: relative; z-index: 1; width: min(620px, 54%); padding: 52px 0 46px; }
.home-hero h1 { margin: 0 0 20px; font-size: clamp(3rem, 5.3vw, 5.25rem); }
.home-hero h1 em { color: var(--gold-bright); font-style: normal; }
.home-hero p { max-width: 520px; margin: 0; font-size: .96rem; }
.actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 24px; }

.service-ribbon { border-bottom: 1px solid var(--line); background: #090d10; }
.service-ribbon-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.service-ribbon-item {
  min-height: 143px;
  display: grid;
  grid-template-columns: 49px 1fr;
  align-content: center;
  gap: 8px 13px;
  padding: 21px 19px;
  border-right: 1px solid var(--line-soft);
  transition: background .2s ease;
}
.service-ribbon-item:first-child { border-left: 1px solid var(--line-soft); }
.service-ribbon-item:hover { background: #11171c; }
.service-ribbon-item .icon { grid-row: 1 / span 2; width: 44px; height: 44px; color: var(--gold-bright); }
.service-ribbon-item strong { align-self: end; font-size: .78rem; line-height: 1.25; letter-spacing: .025em; text-transform: uppercase; }
.service-ribbon-item small { color: var(--muted); font-size: .7rem; line-height: 1.4; }

.home-about { padding: 0; }
.home-about-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: stretch; min-height: 360px; }
.home-about-copy { padding: 48px 48px 45px 0; display: flex; flex-direction: column; justify-content: center; }
.home-about-copy h2 { margin-bottom: 18px; font-size: clamp(2rem, 3.1vw, 3rem); }
.home-about-copy p { max-width: 550px; margin-top: 0; font-size: .86rem; }
.home-about-image { min-height: 360px; }
.home-about-image img { width: 100%; height: 100%; object-fit: cover; }
.mini-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 21px 0 24px; }
.mini-value { display: flex; align-items: center; gap: 8px; color: #d4cec4; font-size: .67rem; line-height: 1.25; }
.mini-value .icon { width: 24px; height: 24px; color: var(--gold-bright); }

.projects-showcase { padding: 34px 0 42px; background: #080c0f; }
.projects-showcase h2 { margin-bottom: 0; font-size: clamp(2rem, 3vw, 3rem); }
.project-grid { display: grid; gap: 14px; }
.project-grid.four { grid-template-columns: repeat(4, 1fr); }
.project-grid.three { grid-template-columns: repeat(3, 1fr); }
.project-card { position: relative; overflow: hidden; border: 1px solid var(--line); background: #0d1216; transition: transform .22s ease, border-color .22s ease; }
.project-card:hover { transform: translateY(-4px); border-color: var(--gold-bright); }
.project-card > img { width: 100%; height: 170px; object-fit: cover; }
.project-card-body { position: relative; min-height: 80px; padding: 12px 49px 12px 14px; }
.project-card h3 { margin: 0 0 4px; font-size: 1.14rem; }
.project-card p { margin: 0; color: #b7b1a9; font-size: .7rem; }
.card-arrow { position: absolute; right: 12px; bottom: 14px; width: 31px; height: 31px; display: grid; place-items: center; color: var(--gold-bright); border: 1px solid var(--line); }
.card-arrow .icon { width: 15px; height: 15px; }
.projects-showcase .section-heading { margin-bottom: 18px; }
.projects-showcase .center-actions { margin-top: 17px; text-align: center; }

.roof-home { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #090d10; }
.roof-home-grid { display: grid; grid-template-columns: .74fr 1.26fr; min-height: 360px; }
.roof-copy { padding: 41px 42px 38px 0; align-self: center; }
.roof-copy h2 { margin-bottom: 13px; font-size: clamp(2rem, 3vw, 3rem); }
.roof-copy p { margin: 0; font-size: .82rem; }
.check-list { list-style: none; padding: 0; margin: 18px 0 22px; }
.check-list li { position: relative; margin: 7px 0; padding-left: 24px; color: #d7d1c8; font-size: .78rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-bright); }
.roof-collage { min-width: 0; display: grid; grid-template-columns: 1.28fr .72fr; grid-template-rows: 1fr 1fr; gap: 6px; }
.roof-collage img { width: 100%; height: 100%; object-fit: cover; }
.roof-collage .roof-main { grid-row: 1 / 3; }

/* Generic page hero */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #080c0f; }
.page-hero-grid { min-height: 300px; display: grid; grid-template-columns: .72fr 1.28fr; align-items: stretch; }
.page-hero-copy { position: relative; z-index: 2; align-self: center; padding: 40px 38px 40px 0; }
.page-hero-copy h1 { margin: 0 0 12px; font-size: clamp(3.2rem, 5vw, 5rem); }
.page-hero-copy h2 { margin: 0 0 10px; color: var(--gold-bright); font-size: clamp(1.55rem, 2.4vw, 2.15rem); }
.page-hero-copy p { max-width: 520px; margin: 0; font-size: .87rem; }
.page-hero-media { position: relative; min-height: 300px; }
.page-hero-media::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, #080c0f 0%, rgba(8,12,15,.35) 20%, transparent 58%); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Services */
.services-mosaic { padding: 28px 0 17px; }
.services-mosaic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.service-tile { min-height: 235px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--line); background: #0d1216; }
.service-tile:nth-child(2), .service-tile:nth-child(4) { grid-template-columns: 1.04fr .96fr; }
.service-tile:nth-child(2) .service-tile-image, .service-tile:nth-child(4) .service-tile-image { order: -1; }
.service-tile:last-child { grid-column: 1 / -1; grid-template-columns: .62fr 1.38fr; min-height: 200px; }
.service-tile-copy { display: flex; gap: 17px; padding: 26px 23px; align-items: flex-start; }
.service-tile-copy > .icon { width: 42px; height: 42px; color: var(--gold-bright); }
.service-tile-copy h2 { margin: 0 0 9px; font-size: 1.55rem; }
.service-tile-copy p { margin: 0 0 16px; font-size: .76rem; }
.service-tile-image img { width: 100%; height: 100%; object-fit: cover; }

.value-strip { border-block: 1px solid var(--line-soft); background: #0c1115; }
.value-strip-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.value-strip-item { min-height: 88px; display: grid; grid-template-columns: 36px 1fr; align-content: center; gap: 4px 10px; padding: 14px 18px; border-right: 1px solid var(--line-soft); }
.value-strip-item:first-child { border-left: 1px solid var(--line-soft); }
.value-strip-item .icon { grid-row: 1 / span 2; width: 31px; height: 31px; color: var(--gold-bright); }
.value-strip-item strong { font-family: var(--serif); font-size: .98rem; font-weight: 400; }
.value-strip-item small { color: var(--muted); font-size: .62rem; line-height: 1.25; }

.process-section { padding: 34px 0 28px; }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 23px; }
.process-step { position: relative; min-height: 130px; }
.process-step:not(:last-child)::after { content: "›"; position: absolute; top: 29px; right: -15px; color: var(--gold-bright); font-size: 1.8rem; }
.process-step b { display: block; margin-bottom: 6px; color: var(--gold-bright); font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.process-step h3 { margin: 0 0 6px; font-size: 1.03rem; }
.process-step p { margin: 0; font-size: .69rem; }
.cta-banner { padding: 0 0 28px; }
.cta-banner-inner { min-height: 85px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 28px; border: 1px solid var(--line); background: linear-gradient(90deg, rgba(5,8,11,.98), rgba(5,8,11,.54)), url('../img/cta-villa.jpg') center/cover; }
.cta-banner h2 { margin: 0; font-size: 1.45rem; }
.cta-banner p { margin: 3px 0 0; font-size: .72rem; }

/* Projects */
.project-browser { padding: 24px 0 32px; }
.filter-row { display: flex; justify-content: center; gap: 4px; margin-bottom: 17px; border-bottom: 1px solid var(--line-soft); }
.filter-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 31px; border: 0; border-bottom: 2px solid transparent; color: #9e9a93; background: transparent; cursor: pointer; }
.filter-btn .icon { width: 20px; height: 20px; }
.filter-btn.active, .filter-btn:hover { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }
.mobile-filter { display: none; }
.project-browser .project-card > img { height: 190px; }
.project-browser .project-grid { row-gap: 14px; }
.project-quote-panel { padding: 0 0 22px; }
.project-quote-inner { min-height: 82px; display: grid; grid-template-columns: 1.2fr auto .72fr; gap: 25px; align-items: center; padding: 16px 24px; border: 1px solid var(--line); background: #0d1216; }
.project-quote-title { display: flex; gap: 16px; align-items: center; }
.project-quote-title > .icon { width: 42px; height: 42px; color: var(--gold-bright); }
.project-quote-title h2 { margin: 0; color: var(--gold-bright); font-size: 1.45rem; }
.project-quote-title p { margin: 0; font-size: .72rem; }
.direct-contact { display: flex; gap: 12px; align-items: center; padding-left: 24px; border-left: 1px solid var(--line); }
.direct-contact .icon { width: 34px; height: 34px; color: var(--gold-bright); }
.direct-contact small { display: block; color: var(--gold-bright); }
.direct-contact a { font-size: 1rem; }
.testimonials { padding: 19px 0 40px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.testimonial { min-height: 137px; margin: 0; padding: 20px 20px 15px 50px; position: relative; border: 1px solid var(--line); background: #0d1216; }
.testimonial > .icon { position: absolute; top: 18px; left: 18px; width: 23px; height: 23px; color: var(--gold-bright); }
.testimonial p { margin: 0; font-size: .76rem; }
.testimonial footer { margin-top: 14px; color: #a9a39b; font-size: .68rem; }
.stars { float: right; color: var(--gold-bright); letter-spacing: 2px; }

/* Project detail */
.detail-hero { position: relative; min-height: 405px; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.detail-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,5,7,.98) 0, rgba(3,5,7,.82) 34%, rgba(3,5,7,.17) 73%); }
.detail-hero-copy { position: relative; z-index: 1; max-width: 560px; padding: 33px 0 35px; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; color: var(--gold-bright); font-size: .69rem; }
.breadcrumbs a:hover { color: var(--gold-pale); }
.detail-hero h1 { margin: 0 0 8px; font-size: clamp(3.2rem, 5vw, 4.9rem); }
.detail-hero h2 { margin: 0 0 13px; color: var(--gold-bright); font-size: clamp(1.8rem, 3vw, 2.65rem); }
.detail-hero p { max-width: 510px; margin: 0; font-size: .82rem; }
.detail-gallery { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.gallery-row { display: grid; grid-template-columns: 1.12fr repeat(4, 1fr); gap: 6px; }
.gallery-button { position: relative; padding: 0; border: 1px solid transparent; background: none; overflow: hidden; cursor: zoom-in; }
.gallery-button:hover { border-color: var(--gold-bright); }
.gallery-button img { width: 100%; height: 150px; object-fit: cover; }
.project-detail-content { padding: 16px 0 20px; }
.project-detail-grid { display: grid; grid-template-columns: 260px 1fr; gap: 39px; align-items: start; }
.project-facts { padding: 18px 20px; border: 1px solid var(--line); background: #0c1115; }
.project-facts h2 { margin-bottom: 12px; color: var(--gold-bright); font-size: 1.45rem; }
.fact-row { display: grid; grid-template-columns: 27px 75px 1fr; gap: 8px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: .7rem; }
.fact-row:last-child { border-bottom: 0; }
.fact-row .icon { width: 21px; height: 21px; color: var(--gold-bright); }
.fact-row strong { color: #b9b3aa; font-weight: 500; }
.project-story h2 { margin: 0 0 8px; color: var(--gold-bright); font-size: 1.55rem; }
.project-story p { margin: 0 0 13px; font-size: .78rem; }
.realisation-list { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.realisation-list li { position: relative; padding-left: 22px; color: #cbc5bc; font-size: .72rem; }
.realisation-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-bright); }
.related-projects { padding: 0 0 20px; }
.related-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.related-head h2 { margin: 0; color: var(--gold-bright); font-size: 1.6rem; }
.related-controls { display: flex; gap: 5px; }
.related-controls button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold-bright); background: transparent; }
.detail-cta { padding: 0 0 16px; }
.detail-cta-inner { min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 19px; border-left: 3px solid var(--gold-bright); border-block: 1px solid var(--line-soft); }
.detail-cta h2 { margin: 0; font-size: 1.5rem; }
.detail-cta p { margin: 0; font-size: .7rem; }

/* About */
.about-intro { padding: 0; }
.about-intro-grid { display: grid; grid-template-columns: .68fr 1.32fr; min-height: 345px; }
.about-intro-copy { align-self: center; padding: 36px 43px 36px 0; }
.about-intro-copy h2 { margin-bottom: 15px; font-size: 2.2rem; }
.about-intro-copy p { margin: 0 0 11px; font-size: .78rem; }
.about-intro-image img { width: 100%; height: 100%; object-fit: cover; }
.stats-strip { border-block: 1px solid var(--line); background: #0d1216; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { min-height: 94px; display: grid; grid-template-columns: 45px 1fr; align-content: center; gap: 4px 13px; padding: 14px 25px; border-right: 1px solid var(--line-soft); }
.stat:first-child { border-left: 1px solid var(--line-soft); }
.stat .icon { grid-row: 1 / span 2; width: 42px; height: 42px; color: var(--gold-bright); }
.stat strong { color: var(--gold-bright); font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1; }
.stat small { color: #aaa49c; font-size: .59rem; line-height: 1.25; text-transform: uppercase; }
.values-section { padding: 18px 0 25px; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.value-card { min-height: 100px; display: grid; grid-template-columns: 41px 1fr; gap: 6px 10px; padding: 15px 20px; border-right: 1px solid var(--line-soft); }
.value-card:first-child { border-left: 1px solid var(--line-soft); }
.value-card .icon { grid-row: 1 / span 2; width: 35px; height: 35px; color: var(--gold-bright); }
.value-card h3 { margin: 0; font-family: var(--sans); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.value-card p { margin: 0; font-size: .63rem; }
.team-section { padding: 0 0 17px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.team-card { display: grid; grid-template-columns: 43% 57%; min-height: 170px; overflow: hidden; border: 1px solid var(--line); background: #0d1216; }
.team-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-card-body { padding: 22px 18px; }
.team-card h3 { margin: 0 0 4px; font-size: 1.2rem; }
.team-role { display: block; margin-bottom: 13px; color: var(--gold-bright); font-size: .63rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.team-card p { margin: 0 0 13px; font-size: .66rem; }
.linkedin-mini { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-bright); }
.linkedin-mini .icon { width: 13px; height: 13px; }
.about-cta { border-block: 1px solid var(--line); background: #0d1216; }
.about-cta-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.about-cta-title { display: flex; align-items: center; gap: 15px; }
.about-cta-title .icon { width: 35px; height: 35px; color: var(--gold-bright); }
.about-cta h2 { margin: 0; font-size: 1.45rem; }

/* Media */
.media-docs { padding: 25px 0 24px; }
.media-doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.media-doc-card { min-height: 245px; display: grid; grid-template-columns: 1fr 185px; gap: 20px; align-items: center; padding: 24px; border: 1px solid var(--line); background: #0d1216; }
.media-doc-card img { width: 100%; max-height: 205px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.35)); }
.media-doc-card h2 { margin-bottom: 12px; font-size: 1.85rem; }
.media-doc-card p { margin: 0 0 20px; font-size: .75rem; }
.media-gallery { padding: 0 0 20px; }
.media-gallery-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.media-gallery-head .eyebrow { margin: 0; }
.media-gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.media-gallery-grid button { padding: 0; border: 1px solid var(--line-soft); background: none; cursor: zoom-in; }
.media-gallery-grid img { width: 100%; height: 120px; object-fit: cover; }
.business-docs { padding: 0 0 24px; }
.business-docs-grid { display: grid; grid-template-columns: .75fr repeat(3, 1fr); gap: 10px; align-items: stretch; }
.business-docs-title { align-self: center; padding-right: 25px; }
.business-docs-title h2 { margin: 0; font-size: 2rem; }
.business-doc { min-height: 115px; display: grid; grid-template-columns: 38px 1fr 24px; align-items: center; gap: 10px; padding: 15px; border: 1px solid var(--line); background: #0d1216; }
.business-doc > .icon { width: 32px; height: 32px; color: var(--gold-bright); }
.business-doc h3 { margin: 0 0 4px; font-size: 1rem; }
.business-doc p { margin: 0; font-size: .61rem; }
.business-doc .download-icon { color: var(--gold-bright); }

/* Contact */
.contact-main { padding: 23px 0 27px; }
.contact-grid { display: grid; grid-template-columns: 1.17fr .62fr .9fr; gap: 26px; }
.contact-column { min-width: 0; }
.contact-column + .contact-column { padding-left: 25px; border-left: 1px solid var(--line-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.form-grid label { display: block; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea, .chat-form input {
  width: 100%;
  border: 1px solid rgba(201,148,58,.33);
  border-radius: 0;
  color: #fff;
  background: #11171c;
  outline: none;
}
.form-grid input, .form-grid select { height: 43px; padding: 0 12px; }
.form-grid textarea { min-height: 105px; padding: 11px 12px; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--gold-bright); }
.form-grid ::placeholder { color: #77746f; }
.consent { display: flex; align-items: center; gap: 8px; margin: 11px 0; color: #aaa49c; font-size: .67rem; }
.consent input { accent-color: var(--gold); }
.form-footer { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.form-status { flex: 1; margin: 0; color: var(--gold-pale); font-size: .69rem; }
.contact-item { display: grid; grid-template-columns: 35px 1fr; gap: 11px; margin: 13px 0; }
.contact-item > .icon { width: 31px; height: 31px; color: var(--gold-bright); }
.contact-item small { display: block; margin-bottom: 3px; color: var(--gold-bright); font-size: .61rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.contact-item a, .contact-item p { margin: 0; color: #d5d0c7; font-size: .75rem; }
.map-card img { width: 100%; height: 192px; object-fit: cover; border: 1px solid var(--line); }
.map-card .btn { margin-top: 12px; }
.faq-offer { border-top: 1px solid var(--line); }
.faq-offer-grid { display: grid; grid-template-columns: 1fr 1fr; }
.offer-panel { position: relative; min-height: 255px; overflow: hidden; }
.offer-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.offer-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,5,7,.97), rgba(3,5,7,.45)); }
.offer-panel-content { position: relative; z-index: 1; max-width: 405px; padding: 37px 42px; }
.offer-panel h2 { margin: 4px 0 10px; color: var(--gold-bright); font-size: 2rem; }
.offer-panel p { margin: 0; font-size: .76rem; }
.faq-panel { padding: 24px 0 20px 35px; }
.faq-panel details { margin-bottom: 7px; border: 1px solid var(--line); background: #0d1216; }
.faq-panel summary { position: relative; padding: 13px 49px 13px 15px; color: #eee7dd; font-family: var(--serif); font-size: 1rem; cursor: pointer; list-style: none; }
.faq-panel summary::-webkit-details-marker { display: none; }
.faq-panel summary::after { content: "+"; position: absolute; top: 8px; right: 13px; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-bright); font-family: var(--sans); font-size: 1.1rem; }
.faq-panel details[open] summary::after { content: "−"; }
.faq-panel details p { margin: 0; padding: 0 15px 13px; font-size: .7rem; }

/* Footer */
.site-footer { padding-top: 24px; border-top: 1px solid var(--line); background: #080c0f; }
.footer-grid { display: grid; grid-template-columns: 1.22fr .55fr .9fr .8fr; gap: 30px; }
.footer-brand { display: grid; grid-template-columns: 78px 1fr; gap: 16px; align-items: start; }
.footer-brand img { width: 74px; height: 74px; object-fit: contain; }
.footer-brand strong { display: block; margin-top: 4px; color: var(--gold-bright); font-size: .7rem; letter-spacing: .055em; text-transform: uppercase; }
.footer-brand p { margin: 8px 0 0; max-width: 240px; font-size: .65rem; }
.footer-column { display: flex; flex-direction: column; gap: 5px; }
.footer-column h3 { margin: 0 0 5px; color: var(--gold-bright); font-family: var(--sans); font-size: .66rem; font-weight: 760; letter-spacing: .13em; text-transform: uppercase; }
.footer-column a, .footer-column span { color: #aaa59d; font-size: .65rem; }
.footer-column a:hover { color: var(--gold-pale); }
.social-row { display: flex; gap: 7px; margin-top: 6px; }
.social-row a { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-bright); }
.social-row .icon { width: 13px; height: 13px; }
.footer-bottom { min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; border-top: 1px solid var(--line-soft); color: #77736c; font-size: .59rem; }
.footer-legal { display: flex; gap: 14px; }

/* Chat */
.chat-widget { position: fixed; right: 20px; bottom: 18px; z-index: 130; }
.chat-launcher { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 15px; border: 1px solid var(--gold); border-radius: 36px; color: #fff; background: rgba(14,18,21,.97); box-shadow: var(--shadow); cursor: pointer; }
.chat-launcher-label { text-align: left; font-size: .67rem; line-height: 1.25; }
.chat-launcher-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #111; background: linear-gradient(135deg, #b97824, #e0b15b); }
.chat-launcher-icon .icon { width: 22px; height: 22px; }
.chat-panel { position: absolute; right: 0; bottom: 64px; width: 355px; overflow: hidden; border: 1px solid var(--gold); background: #0c1115; box-shadow: 0 22px 58px rgba(0,0,0,.55); }
.chat-panel[hidden] { display: none; }
.chat-panel header { display: flex; align-items: center; justify-content: space-between; min-height: 61px; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); }
.chat-brand { display: flex; align-items: center; gap: 10px; }
.chat-brand img { width: 43px; height: 43px; object-fit: contain; }
.chat-brand strong { display: block; font-size: .82rem; }
.chat-brand small { display: block; color: #65c984; font-size: .62rem; }
.chat-close { border: 0; color: #aaa; background: transparent; font-size: 1.5rem; cursor: pointer; }
.chat-messages { height: 265px; overflow: auto; padding: 13px; display: flex; flex-direction: column; gap: 8px; }
.chat-message { max-width: 84%; padding: 9px 11px; border-radius: 11px; font-size: .73rem; line-height: 1.45; }
.chat-message.bot { align-self: flex-start; background: #171d22; }
.chat-message.user { align-self: flex-end; color: #fff; background: #a86f25; }
.chat-quick { display: flex; gap: 5px; overflow-x: auto; padding: 0 11px 9px; }
.chat-quick button { white-space: nowrap; padding: 6px 8px; border: 1px solid var(--line); color: #d6d0c8; background: #11171c; font-size: .63rem; cursor: pointer; }
.chat-form { display: grid; grid-template-columns: 1fr 48px; border-top: 1px solid var(--line-soft); }
.chat-form input { height: 45px; padding: 0 12px; border: 0; }
.chat-form button { display: grid; place-items: center; border: 0; color: #fff; background: var(--gold); cursor: pointer; }
.chat-form .icon { width: 18px; height: 18px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.89); }
.lightbox[hidden] { display: none; }
.lightbox-dialog { position: relative; max-width: min(1100px, 96vw); max-height: 92vh; }
.lightbox-dialog img { max-width: 100%; max-height: 88vh; object-fit: contain; box-shadow: 0 20px 70px rgba(0,0,0,.7); }
.lightbox-close { position: absolute; top: -18px; right: -18px; width: 38px; height: 38px; border: 1px solid var(--gold); border-radius: 50%; color: #fff; background: #0d1216; font-size: 1.3rem; cursor: pointer; }

/* Legal supporting pages */
.legal-page { min-height: 55vh; padding: 62px 0; }
.legal-copy { max-width: 850px; }
.legal-copy h1 { font-size: clamp(3rem, 5vw, 4.8rem); }
.legal-copy h2 { margin-top: 32px; font-size: 1.7rem; }
.legal-copy p, .legal-copy li { font-size: .85rem; color: #c8c2ba; }

@media (max-width: 1080px) {
  .desktop-nav { gap: 20px; }
  .header-cta { display: none; }
  .header-inner { grid-template-columns: 78px 1fr; }
  .service-ribbon-grid { grid-template-columns: repeat(3, 1fr); }
  .service-ribbon-item:nth-child(n+4) { border-top: 1px solid var(--line-soft); }
  .project-grid.four { grid-template-columns: repeat(2, 1fr); }
  .mini-values { grid-template-columns: repeat(2, 1fr); }
  .value-strip-grid { grid-template-columns: repeat(3, 1fr); }
  .value-strip-item:nth-child(n+4) { border-top: 1px solid var(--line-soft); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .process-step:nth-child(3)::after { display: none; }
  .project-quote-inner { grid-template-columns: 1fr auto; }
  .direct-contact { grid-column: 1 / -1; padding: 13px 0 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .business-docs-grid { grid-template-columns: 1fr 1fr; }
  .business-docs-title { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .map-card { grid-column: 1 / -1; padding: 20px 0 0 !important; border-left: 0 !important; border-top: 1px solid var(--line-soft); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-column:last-child { grid-column: 2 / 4; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  /* Mobile only: hide the value strip (Topkwaliteit, Discretie, etc.). Desktop remains unchanged. */
  .value-strip { display: none; }
  .shell { width: min(100% - 28px, var(--max)); }
  .site-header { height: var(--header-h); }
  .header-inner { grid-template-columns: auto 1fr auto; gap: 10px; }
  .brand img { width: 50px; height: 50px; }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle span { width: 24px; height: 1.5px; background: var(--gold-bright); transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .mobile-menu { position: fixed; z-index: 99; top: var(--header-h); left: 0; right: 0; max-height: calc(100vh - var(--header-h)); overflow: auto; display: none; flex-direction: column; gap: 0; padding: 8px 15px 17px; border-bottom: 1px solid var(--line); background: rgba(5,8,11,.99); }
  .mobile-menu.open { display: flex; }
  .mobile-menu .nav-link { min-height: 46px; padding: 0 7px; border-bottom: 1px solid var(--line-soft); }
  .mobile-menu .nav-link::after { display: none; }
  .mobile-menu .btn { margin-top: 10px; }

  h1 { font-size: clamp(2.8rem, 13vw, 4.2rem); }
  h2 { font-size: clamp(2rem, 9vw, 3rem); }
  .section { padding: 42px 0; }
  .eyebrow { font-size: .65rem; }

  .home-hero { min-height: 550px; align-items: flex-end; }
  .home-hero > img { object-position: 63% center; }
  .home-hero::after { background: linear-gradient(180deg, rgba(3,5,7,.12) 3%, rgba(3,5,7,.61) 42%, rgba(3,5,7,.96) 74%, #05080b 100%); }
  .home-hero-content { width: 100%; padding: 48px 0 30px; }
  .home-hero h1 { max-width: 98%; font-size: clamp(2.65rem, 12vw, 4rem); }
  .home-hero p { max-width: 94%; font-size: .82rem; }
  .actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .actions .btn { width: 100%; }

  .service-ribbon-grid { grid-template-columns: 1fr 1fr; }
  .service-ribbon-item { min-height: 106px; grid-template-columns: 34px 1fr; padding: 16px 13px; }
  .service-ribbon-item .icon { width: 31px; height: 31px; }
  .service-ribbon-item small { display: none; }
  .service-ribbon-item:nth-child(5) { grid-column: 1 / -1; }

  .home-about-grid, .roof-home-grid, .page-hero-grid, .about-intro-grid, .faq-offer-grid { grid-template-columns: 1fr; }
  .home-about-copy { padding: 37px 0 24px; }
  .home-about-image { min-height: 260px; }
  .mini-values { grid-template-columns: 1fr 1fr; margin-bottom: 17px; }
  .home-about-copy .btn { display: none; }
  .home-about-copy h2 { position: relative; padding-right: 39px; }
  .home-about-copy h2::after { content: "+"; position: absolute; right: 0; top: 2px; width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-bright); font-family: var(--sans); font-size: 1.2rem; }

  .projects-showcase { padding-top: 30px; }
  .projects-showcase .section-heading { text-align: left; }
  .project-scroller { display: flex !important; overflow-x: auto; gap: 10px; padding-bottom: 9px; scroll-snap-type: x mandatory; }
  .project-scroller .project-card { min-width: min(82vw, 310px); scroll-snap-align: start; }
  .project-card > img { height: 150px; }
  .projects-showcase .center-actions { display: none; }

  .roof-home-grid { min-height: 0; }
  .roof-copy { padding: 36px 0 22px; }
  .roof-collage { min-height: 295px; margin-inline: -14px; }
  .roof-collage .roof-main { grid-row: 1 / 3; }

  .page-hero-grid { min-height: 430px; }
  .page-hero-copy { align-self: end; padding: 70px 0 24px; }
  .page-hero-copy h1 { font-size: clamp(2.8rem, 13vw, 4.2rem); }
  .page-hero-media { position: absolute; inset: 0; min-height: 0; }
  .page-hero-media::before { background: linear-gradient(180deg, rgba(5,8,11,.15), rgba(5,8,11,.78) 55%, #080c0f 94%); }
  .page-hero-media img { object-position: 64% center; }

  .services-mosaic-grid { grid-template-columns: 1fr; gap: 8px; }
  .service-tile, .service-tile:nth-child(2), .service-tile:nth-child(4), .service-tile:last-child { min-height: 114px; grid-template-columns: 112px 1fr; }
  .service-tile .service-tile-image, .service-tile:nth-child(2) .service-tile-image, .service-tile:nth-child(4) .service-tile-image { order: -1; }
  .service-tile-copy { gap: 10px; padding: 13px 12px; }
  .service-tile-copy > .icon { width: 27px; height: 27px; }
  .service-tile-copy h2 { font-size: 1rem; }
  .service-tile-copy p { font-size: .65rem; margin-bottom: 0; }
  .service-tile-copy .link-arrow { display: none; }

  .value-strip-grid { grid-template-columns: repeat(5, 1fr); overflow-x: auto; }
  .value-strip-item { min-width: 85px; min-height: 76px; grid-template-columns: 1fr; place-items: center; text-align: center; padding: 9px 6px; }
  .value-strip-item .icon { grid-row: auto; width: 27px; height: 27px; }
  .value-strip-item strong { font-size: .62rem; }
  .value-strip-item small { display: none; }
  .value-strip-item:nth-child(n+4) { border-top: 0; }

  .process-section { padding: 28px 0; }
  .process-grid { grid-template-columns: 1fr; gap: 0; }
  .process-step { min-height: 0; padding: 14px 0 14px 54px; border-bottom: 1px solid var(--line-soft); }
  .process-step:not(:last-child)::after { display: none; }
  .process-step b { position: absolute; left: 0; top: 8px; font-size: 1.75rem; }
  .cta-banner-inner { align-items: flex-start; flex-direction: column; }

  .filter-row { display: none; }
  .mobile-filter { display: grid; grid-template-columns: 1fr 46px; gap: 8px; margin-bottom: 14px; }
  .mobile-filter select { height: 45px; padding: 0 12px; border: 1px solid var(--line); color: #fff; background: #0d1216; }
  .mobile-filter button { display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold-bright); background: #0d1216; }
  .project-browser .project-grid { grid-template-columns: 1fr; }
  .project-browser .project-card > img { height: 190px; }
  .project-quote-inner { grid-template-columns: 1fr; }
  .project-quote-inner .btn { width: 100%; }
  .direct-contact { display: none; }
  .testimonial-grid { grid-template-columns: 1fr; }

  .detail-hero { min-height: 555px; align-items: flex-end; }
  .detail-hero::after { background: linear-gradient(180deg, rgba(3,5,7,.1), rgba(3,5,7,.86) 47%, #05080b 98%); }
  .detail-hero > img { object-position: 65% center; }
  .detail-hero-copy { padding: 32px 0 25px; }
  .breadcrumbs { margin-bottom: 22px; }
  .gallery-row { grid-template-columns: repeat(3, 1fr); }
  .gallery-button:first-child { grid-column: 1 / -1; }
  .gallery-button img { height: 105px; }
  .gallery-button:first-child img { height: 190px; }
  .gallery-button:nth-child(n+5) { display: none; }
  .project-detail-grid { grid-template-columns: 1fr; gap: 21px; }
  .project-facts { order: -1; }
  .related-projects .project-grid { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 9px; }
  .related-projects .project-card { min-width: min(80vw, 300px); }
  .detail-cta-inner { align-items: flex-start; flex-direction: column; }
  .detail-cta .btn { width: 100%; }

  .about-intro-copy { padding: 34px 0 20px; }
  .about-intro-image { min-height: 245px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat { min-height: 74px; grid-template-columns: 1fr; place-items: center; text-align: center; padding: 10px 5px; }
  .stat:nth-child(4) { display: none; }
  .stat .icon { grid-row: auto; width: 28px; height: 28px; }
  .stat strong { font-size: 1.25rem; }
  .stat small { font-size: .48rem; }
  .values-grid { grid-template-columns: 1fr; }
  .value-card { min-height: 70px; border: 1px solid var(--line-soft); }
  .value-card + .value-card { border-top: 0; }
  .team-grid { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 9px; }
  .team-card { min-width: min(80vw, 290px); grid-template-columns: 43% 57%; }
  .about-cta-inner { align-items: stretch; flex-direction: column; padding: 15px 0; }
  .about-cta .btn { width: 100%; }

  .media-doc-grid, .business-docs-grid { grid-template-columns: 1fr; }
  .media-doc-card { min-height: 165px; grid-template-columns: 1fr 105px; padding: 14px; }
  .media-doc-card img { max-height: 145px; }
  .media-doc-card h2 { font-size: 1.25rem; }
  .media-gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .media-gallery-grid img { height: 85px; }
  .business-docs-title { grid-column: auto; }
  .business-doc { min-height: 85px; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-column + .contact-column { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-footer .btn { width: 100%; }
  .map-card { display: none; }
  .faq-offer-grid { grid-template-columns: 1fr; }
  .offer-panel { min-height: 300px; }
  .faq-panel { padding: 26px 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-column:last-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; padding: 12px 0; }

  .chat-widget { right: 11px; bottom: 10px; }
  .chat-launcher { padding: 5px; }
  .chat-launcher-label { display: none; }
  .chat-launcher-icon { width: 46px; height: 46px; }
  .chat-panel { width: min(350px, calc(100vw - 22px)); bottom: 59px; }
}

@media (max-width: 430px) {
  .service-ribbon-grid { grid-template-columns: 1fr 1fr; }
  .home-about-image { min-height: 220px; }
  .mini-values { grid-template-columns: 1fr; }
  .mini-value:nth-child(n+3) { display: none; }
  .roof-collage { min-height: 250px; grid-template-columns: 1.2fr .8fr; }
  .value-strip-grid { grid-template-columns: repeat(5, 88px); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-column:last-child { grid-column: auto; }
  .media-gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* Fixed-height desktop service mosaic, matching the approved page mockup. */
@media (min-width: 761px) {
  .service-tile { height: 235px; min-height: 235px; }
  .service-tile:last-child { height: 205px; min-height: 205px; }
  .service-tile-image { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
  .service-tile-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
}


/* Full-width mockup fidelity + user media */
html, body { width: 100%; }
main { width: 100%; }
.site-header .shell, .site-footer .shell, main > section > .shell { max-width: var(--max); }
img { image-rendering: auto; backface-visibility: hidden; }
.project-card > img, .gallery-button img, .page-hero-media img, .detail-hero > img, .home-hero > img,
.about-intro-image img, .roof-collage img, .service-tile-image img { object-fit: cover; object-position: center; }
.user-projects-section { padding: 70px 0; background: #080c10; border-top: 1px solid var(--line-soft); }
.user-projects-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.user-project-item { padding: 0; border: 1px solid var(--line-soft); background: #0b0f13; cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 3; }
.user-project-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.user-project-item:hover img { transform: scale(1.035); filter: contrast(1.03); }
.user-project-video { border: 1px solid var(--line-soft); background: #05080b; aspect-ratio: 4 / 3; overflow: hidden; }
.user-project-video video { width:100%; height:100%; object-fit:cover; }
@media (max-width: 1100px){ .user-projects-grid{grid-template-columns:repeat(3,minmax(0,1fr));} }
@media (max-width: 760px){
  .shell { width: calc(100% - 24px); }
  .user-projects-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
  .site-header { width:100%; }
  .brand { margin-right:auto; }
  .menu-toggle { margin-left:auto; }
}
@media (max-width: 440px){ .user-projects-grid{grid-template-columns:1fr 1fr;} }

/* 2026-08-30 project/media revision */
.finished-projects,.gallery-section{padding:48px 0}.finished-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.finished-project-card{border:1px solid var(--line);background:#0b1014;overflow:hidden}.project-photo{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in}.project-photo img{display:block;width:100%;height:270px;object-fit:cover}.finished-project-copy{padding:18px}.finished-project-copy h3{margin:0 0 8px;font-size:1.35rem}.finished-project-copy p{min-height:58px;margin:0 0 16px;color:#bdb7ae}.finished-project-copy .btn{width:100%;justify-content:center}.project-progress-link{padding:0 0 48px}.project-progress-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px;border:1px solid var(--line);background:linear-gradient(135deg,#0d1216,#070b0e)}.project-progress-inner h2{margin:4px 0 8px}.gallery-section-alt{background:#080c0f;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.gallery-section-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:18px}.gallery-section-head h2{margin:4px 0 6px}.compact-gallery{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.media-tile{padding:0;border:1px solid var(--line-soft);background:#0b1014;cursor:zoom-in;overflow:hidden}.media-tile img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;transition:transform .25s ease}.media-tile:hover img{transform:scale(1.035)}.video-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}.video-gallery article{border:1px solid var(--line);background:#0b1014}.video-gallery video{display:block;width:100%;aspect-ratio:16/9;background:#000;object-fit:cover}.video-gallery p{margin:0;padding:10px 12px;color:#c7c0b8;font-size:.78rem}@media(max-width:900px){.finished-project-grid{grid-template-columns:repeat(2,1fr)}.compact-gallery{grid-template-columns:repeat(3,1fr)}.video-gallery{grid-template-columns:1fr 1fr}.project-progress-inner{align-items:flex-start;flex-direction:column}}@media(max-width:620px){.finished-project-grid{grid-template-columns:1fr}.project-photo img{height:230px}.compact-gallery{grid-template-columns:repeat(2,1fr)}.gallery-section-head{align-items:flex-start;flex-direction:column}.video-gallery{grid-template-columns:1fr}.finished-project-copy p{min-height:0}}

/* Media page: video tiles match the photo gallery tile size */
.video-gallery{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.video-gallery video{aspect-ratio:4/3;object-fit:cover}
@media(max-width:900px){.video-gallery{grid-template-columns:repeat(3,1fr)}}
@media(max-width:620px){.video-gallery{grid-template-columns:repeat(2,1fr)}}

/* Media: foto's en video's in exact dezelfde galerij-grid */
.page-media .compact-gallery .media-video-tile{position:relative;display:block;min-width:0;aspect-ratio:4/3;cursor:default;background:#000;overflow:hidden}
.page-media .compact-gallery .media-video-tile video{display:block;width:100%;height:100%;aspect-ratio:4/3;object-fit:cover;background:#000}
.page-media .compact-gallery .media-video-tile span{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:8px 10px;background:linear-gradient(transparent,rgba(0,0,0,.82));color:#fff;font-size:.74rem;pointer-events:none}

/* Media page: force the two project videos into the same desktop grid row as the final photos. */
@media (min-width: 901px){
  .page-media #in-uitvoering .compact-gallery > :nth-child(11){grid-column:1;grid-row:3}
  .page-media #in-uitvoering .compact-gallery > :nth-child(12){grid-column:2;grid-row:3}
  .page-media #in-uitvoering .compact-gallery > .media-video-tile:nth-child(13){grid-column:3;grid-row:3}
  .page-media #in-uitvoering .compact-gallery > .media-video-tile:nth-child(14){grid-column:4;grid-row:3}
}

/* Final media fix: video cards stay exactly the same visual size as photo tiles. */
@media (min-width:901px){
  .page-media #in-uitvoering .compact-gallery > .media-video-tile{
    align-self:start;
    width:100%;
    height:auto;
    aspect-ratio:4 / 3;
    overflow:hidden;
  }
  .page-media #in-uitvoering .compact-gallery > .media-video-tile video{
    display:block;
    width:100%;
    height:auto !important;
    aspect-ratio:4 / 3;
    object-fit:cover;
  }
}

/* NL / FR language selector */
.language-switcher{
  display:flex;align-items:center;gap:.42rem;white-space:nowrap;
  font-size:.78rem;font-weight:700;letter-spacing:.08em;
  margin-left:auto;margin-right:.5rem
}
.language-switcher a{color:rgba(255,255,255,.62);text-decoration:none;padding:.32rem .18rem;transition:.2s ease}
.language-switcher a:hover,.language-switcher a.active{color:var(--gold,#d7a946)}
.language-switcher span{color:rgba(255,255,255,.28)}
.mobile-language-switcher{margin:12px 0 10px;justify-content:flex-start}
@media(max-width:900px){.header-inner>.language-switcher{display:none}}

/* 2026-08-31 mobile media/footer containment fix.
   Desktop is intentionally untouched. */
@media (max-width: 760px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-media main,
  .page-media main > section,
  .page-media .gallery-section,
  .page-media .gallery-section-alt,
  .page-media .shell,
  .page-media .compact-gallery,
  .page-media .media-tile,
  .page-media .media-video-tile {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-media .shell {
    width: calc(100% - 24px);
    margin-inline: auto;
  }

  .page-media .compact-gallery {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .page-media .compact-gallery > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .page-media .media-tile,
  .page-media .compact-gallery .media-video-tile {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }

  .page-media .media-tile img,
  .page-media .compact-gallery .media-video-tile video {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }

  /* Prevent native video controls from imposing an intrinsic minimum width. */
  .page-media video {
    min-width: 0;
  }

  .site-footer,
  .site-footer .shell,
  .footer-grid,
  .footer-brand,
  .footer-column,
  .footer-bottom,
  .footer-legal {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .footer-brand > div,
  .footer-column a,
  .footer-column span,
  .footer-brand p,
  .footer-brand strong {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

@media (max-width: 430px) {
  .page-media .compact-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-brand,
  .site-footer .footer-column:last-child {
    grid-column: auto;
  }

  .site-footer .footer-legal {
    flex-wrap: wrap;
    gap: 8px 14px;
  }
}
