/* RHV Group – static rebuild. Black, white and grey; colour comes from the photos. */
:root {
  --ink: #090909;
  --ink-soft: #252525;
  --muted: #777773;
  --paper: #ffffff;
  --sand: #f2f2f2;
  --line: #dedede;
  --accent: #737373;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --serif: var(--sans);
  --wrap: 1240px;
  --section-y: clamp(64px, 8vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.75; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
a:not(.btn):hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
p { margin: 0 0 1.1em; color: var(--ink-soft); }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 300; line-height: 1.25; margin: 0 0 .5em; color: var(--ink); text-transform: uppercase; letter-spacing: .06em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 500; letter-spacing: .04em; }
h4 { font-size: .78rem; font-weight: 500; letter-spacing: .22em; color: var(--muted); }
strong, b { font-weight: 600; }
.accent { color: var(--accent); font-weight: 500; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 8px 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 110px; }
.brand img { width: 220px; height: auto; }
.main-nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav a { display: block; padding: 10px 12px; font-size: .74rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.main-nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
.main-nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.main-nav .nav-contact { border: 1px solid var(--ink); padding: 10px 16px; margin-left: 8px; }
.main-nav .nav-contact:hover { background: var(--ink); color: #fff; text-decoration: none; }
.main-nav .nav-contact[aria-current] { background: var(--ink); color: #fff; }
.main-nav .has-sub { position: relative; }
.main-nav .sub { position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; margin: 0; padding: 10px 0; background: var(--paper); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.main-nav .has-sub:hover .sub, .main-nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub a { padding: 8px 20px; text-transform: none; letter-spacing: .02em; font-size: .9rem; }
.sub-toggle { display: none; }
.lang a { border: 1px solid var(--ink); padding: 6px 10px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--ink); border-radius: 4px; width: 46px; height: 46px; cursor: pointer; padding: 0 12px; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 960px) {
  .header-inner { min-height: 96px; }
  .brand img { width: 170px; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 96px 0 0 0; background: var(--paper); overflow-y: auto; transform: translateX(100%); transition: transform .25s; }
  .nav-open .main-nav { transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 8px 24px; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); position: relative; }
  .main-nav a { padding: 16px 0; font-size: .85rem; }
  .main-nav .sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; padding: 0 0 10px 16px; display: none; }
  .main-nav .has-sub.open .sub { display: block; }
  .sub-toggle { display: block; position: absolute; right: 0; top: 6px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
  .sub-toggle::after { content: "+"; font-size: 1.4rem; }
  .has-sub.open .sub-toggle::after { content: "–"; }
  .lang a { display: inline-block; margin: 14px 0; }
  .nav-open { overflow: hidden; }
}

/* Buttons */
.btn { display: inline-block; padding: 14px 32px; background: var(--ink); color: #fff; text-decoration: none; font-size: .74rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; border: 1px solid var(--ink); transition: .2s; }
.btn:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: transparent; color: #fff; border-color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }

/* Sections */
section { padding: var(--section-y) 0; }
.band-sand { background: var(--sand); }
.band-dark { background: var(--ink); color: #fff; }
.band-dark h1, .band-dark h2, .band-dark h3 { color: #fff; }
.band-dark p { color: rgba(255,255,255,.8); }
.band-forest { background: var(--ink); color: #fff; }
.band-forest h2, .band-forest h3 { color: #fff; }
.band-forest p { color: rgba(255,255,255,.8); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.1rem; }

/* Photo bands: full-width photo, dark shade, white text on top (as on the original site) */
.hero, .photo-band { position: relative; display: flex; align-items: center; color: #fff; background: var(--bg, var(--ink)) center/cover no-repeat; padding: 0; }
.hero { min-height: min(92vh, 860px); align-items: flex-end; }
.photo-band { min-height: min(70vh, 640px); justify-content: center; text-align: center; }
.hero::before, .photo-band::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.42); }
.hero .wrap, .photo-band .wrap { position: relative; width: 100%; }
.hero .wrap { padding-bottom: clamp(56px, 10vw, 120px); }
.hero h1, .photo-band h2 { color: #fff; max-width: 900px; margin-left: auto; margin-right: auto; }
.hero h1 { font-weight: 300; }
.photo-band h2 { font-weight: 300; font-size: clamp(2rem, 5.2vw, 4.2rem); line-height: 1.12; }
.hero p, .photo-band p { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero h4, .photo-band h4 { color: rgba(255,255,255,.85); }
.page-hero { padding: clamp(80px, 12vw, 150px) 0 clamp(48px, 7vw, 80px); background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 880px; }
.page-hero p { max-width: 720px; font-size: 1.05rem; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 18px; } .wrap { padding-left: 20px; padding-right: 20px; } }

/* Cards */
.card { background: var(--paper); border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; text-decoration: none; transition: .2s; }
a.card:hover { border-color: var(--ink); }
.card .meta { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.card h3 { font-size: 1.1rem; }
.card .more { margin-top: auto; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }

.project-tile { position: relative; display: block; overflow: hidden; background: var(--sand); aspect-ratio: 4/3; text-decoration: none; isolation: isolate; }
.project-tile img { position: absolute; inset: 0; display: block; width: 100%; max-width: none; height: 100%; object-fit: cover; padding: 0; transition: transform .5s; }
.project-tile .label { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: .8rem; letter-spacing: .06em; }
.project-tile:hover img { transform: scale(1.04); }

/* Services */
.service { padding: 48px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr 1fr; gap: 40px; }
.service .num { font-size: 2.2rem; font-weight: 200; line-height: 1; }
.service ul { margin: 0; padding-left: 18px; color: var(--ink-soft); }
.service li { margin-bottom: 6px; }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; gap: 12px; } }

/* Logos */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.logo-grid div { background: var(--paper); display: grid; place-items: center; padding: 24px; aspect-ratio: 3/2; }
.logo-grid img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: .2s; }
.logo-grid div:hover img { filter: none; opacity: 1; }
.client-list { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; padding: 0; margin: 24px 0 0; font-size: 1.05rem; color: var(--ink); font-weight: 400; }

/* Quote */
.quote { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 300; line-height: 1.35; max-width: 900px; margin: 0 auto; text-align: center; color: var(--ink); }
.quote cite { display: block; margin-top: 20px; font-style: normal; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* People */
.person img { aspect-ratio: 4/5; object-fit: cover; width: 100%; background: var(--sand); }
.person h3 { margin-top: 18px; margin-bottom: 4px; }
.person .role { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--sand); }
.gallery figcaption { font-size: .72rem; color: var(--muted); margin-top: 6px; }

/* Facts table */
.facts { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts span:first-child { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }

/* Article */
.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: 1.5rem; margin-top: 1.6em; }
.article img, .article video { margin: 32px 0; width: 100%; }
.article ul { color: var(--ink-soft); }
.article .byline { display: block; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 24px; }
.article-tags span { color: var(--accent); font-size: .78rem; letter-spacing: .02em; }
.avatar { display: block; flex: 0 0 72px; width: 72px; height: 72px; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; margin: 0 0 16px !important; }
.article img.avatar { flex: 0 0 min(350px, 70vw); width: min(350px, 70vw) !important; min-width: 0; max-width: min(350px, 70vw); height: min(350px, 70vw) !important; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; margin: 0 auto 24px !important; }

/* Image-led cards on the insights index */
.news-card.card { padding: 0; overflow: hidden; }
.news-card > .news-card-image { display: block; width: 100%; max-width: none; aspect-ratio: 16 / 9; object-fit: cover; margin: 0; background: var(--sand); }
.news-card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 24px 28px 28px; }
.news-card h3 { font-size: 1.05rem; line-height: 1.4; margin-bottom: 12px; }
.news-card p { font-size: .9rem; }
.news-card .more { margin-top: auto; }

/* Article support: promotional banner, company introduction and related stories */
.story-promo { min-height: 360px; }
.story-promo .wrap { padding-top: 48px; padding-bottom: 48px; }
.story-about .story-about-image { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; background: var(--sand); }
.story-about .story-about-copy { align-self: center; }
.story-related .section-head { max-width: 820px; margin-bottom: 32px; }
.story-card { display: flex; flex-direction: column; min-width: 0; background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: transform .2s, border-color .2s; }
.story-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.story-card > img { display: block; width: 100%; max-width: none; aspect-ratio: 16 / 9; object-fit: cover; margin: 0; background: var(--sand); }
.story-card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 24px; }
.story-card .meta { display: block; margin-bottom: 10px; color: var(--muted); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.story-card h3 { margin: 0 0 12px; font-size: 1rem; letter-spacing: .02em; line-height: 1.4; }
.story-card p { font-size: .9rem; }
.story-card .more { margin-top: auto; font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.story-view-all { display: flex; justify-content: center; margin-top: 36px; }
.story-cta-strip { padding: 36px 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-cta-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.story-cta-strip h2 { margin: 0; font-size: clamp(1.35rem, 2.7vw, 2rem); }
.story-cta-strip p { margin: 8px 0 0; }
@media (max-width: 860px) {
  .story-promo { min-height: 320px; }
  .story-cta-strip .wrap { align-items: flex-start; }
}

/* Stat */
.stat { font-size: clamp(4rem, 10vw, 7rem); font-weight: 200; line-height: 1; margin-bottom: 12px; }

/* Footer */
.site-footer { background: var(--paper); color: var(--ink-soft); padding: 80px 0 0; font-size: .9rem; border-top: 1px solid var(--line); }
.site-footer h3 { color: var(--ink); font-size: .74rem; letter-spacing: .2em; font-weight: 500; margin-bottom: 18px; }
.site-footer p { color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-logo { width: 170px; margin-bottom: 24px; filter: none; background: transparent; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav a { text-decoration: none; display: inline-block; padding: 3px 0; color: var(--ink); }
.footer-nav a:hover { text-decoration: underline; }
.footer-nav .sub, .footer-nav .sub-toggle { display: none; }
.site-footer .social { display: flex; gap: 12px; list-style: none; padding: 0; margin: 0 0 28px; }
.site-footer .social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(0,0,0,.25); border-radius: 50%; }
.site-footer .social a:hover { background: var(--ink); border-color: var(--ink); }
.site-footer .social svg { width: 18px; height: 18px; fill: var(--ink); }
.site-footer .social a:hover svg { fill: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 28px 24px; margin-top: 64px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.footer-bottom a { text-decoration: none; color: var(--ink); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* WhatsApp pill, bottom right, as on the original site */
.wa-float { position: fixed; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 10px; border-radius: 26px; background: #e9e9e9; color: #555; text-decoration: none; font-size: .95rem; box-shadow: 0 6px 18px rgba(0,0,0,.15); z-index: 40; }
.wa-float .wa-icon { width: 40px; height: 40px; border-radius: 50%; background: #25d366; display: grid; place-items: center; flex: none; }
.wa-float svg { width: 24px; height: 24px; fill: #fff; }
@media (max-width: 480px) { .wa-float span { display: none; } .wa-float { padding: 0 10px; } }

/* Helpers */
.mt-0 { margin-top: 0; } .mt-l { margin-top: 48px; }
.stack > * + * { margin-top: 16px; }
.img-cover { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--sand); }
.img-wide { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--sand); }


/* Respect motion preferences without changing the visual design. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* --------------------------------------------------------------------------
   RHV DESIGN SYSTEM — reusable page families
   Editorial typography, generous white space and image-led layouts.
   -------------------------------------------------------------------------- */

.page-template main > .hero,
.page-template main > .photo-band { padding-top: 0; padding-bottom: 0; }
.page-template h1,
.page-template h2,
.page-template h3 {
  text-transform: none;
  letter-spacing: -.035em;
  line-height: 1.12;
}
.page-template h1 {
  font-size: clamp(2.6rem, 5.8vw, 5.4rem);
  font-weight: 300;
  letter-spacing: -.055em;
}
.page-template h2 {
  font-size: clamp(1.9rem, 3.8vw, 3.35rem);
  font-weight: 300;
}
.page-template h3 { font-size: 1.2rem; font-weight: 500; letter-spacing: -.02em; }
.page-template h4 {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.page-template p { max-width: 72ch; }
.page-template .section-head { max-width: 820px; margin-bottom: clamp(28px, 4vw, 48px); }
.page-template .section-head h2 { max-width: 800px; }
.page-template .btn { letter-spacing: .14em; transition: background-color .2s, color .2s, border-color .2s; }
.page-template .wrap { width: 100%; }
.page-template .grid-2 { column-gap: clamp(32px, 6vw, 88px); row-gap: clamp(28px, 4vw, 52px); }
.page-template .grid-3 { gap: clamp(16px, 2.2vw, 28px); }

/* Shared site chrome */
.page-template .site-header { border-bottom: 1px solid rgba(0,0,0,.06); }
.page-template .header-inner { min-height: 100px; }
.page-template .brand img { width: clamp(170px, 16vw, 215px); }
.page-template .main-nav a { font-size: .7rem; letter-spacing: .12em; }
.page-template .site-footer { background: #fff; color: var(--ink-soft); border-top: 1px solid var(--line); }
.page-template .site-footer h3 { color: var(--ink); }
.page-template .site-footer p { color: var(--ink-soft); }
.page-template .footer-logo { filter: none; background: transparent; }
.page-template .footer-bottom { border-top-color: var(--line); }

/* Page-specific overrides are loaded from /css/pages/ by page template. */

/* Template: overviews — useful context first, then scannable image cards */
.template-insights-overview .page-hero,
.template-project-overview .page-hero {
  padding-top: clamp(76px, 10vw, 132px);
  padding-bottom: clamp(48px, 6vw, 76px);
  border-bottom: 0;
}
.template-insights-overview .page-hero .wrap,
.template-project-overview .page-hero .wrap { max-width: 1288px; }
.template-insights-overview .page-hero h1,
.template-project-overview .page-hero h1 { max-width: 980px; }
.template-insights-overview .page-hero p,
.template-project-overview .page-hero p { margin-top: 24px; font-size: 1.05rem; }
.template-insights-overview .news-card { height: 100%; }
.template-insights-overview .news-card > .news-card-image { aspect-ratio: 5 / 3; }
.template-insights-overview .news-card-copy { padding: clamp(20px, 2.2vw, 30px); }
.template-insights-overview .news-card h3 { font-size: clamp(1.08rem, 1.35vw, 1.3rem); }
.template-insights-overview .news-card p { line-height: 1.65; }
.template-project-overview .img-wide { aspect-ratio: 5 / 4; }
.template-project-overview .project-tile { aspect-ratio: 4 / 3; }
.template-project-overview .project-tile .label {
  padding: 24px 22px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  font-size: .78rem;
  line-height: 1.5;
}

/* Template: project detail — one consistent case-study hierarchy */
.template-project-detail .page-hero {
  background: linear-gradient(110deg, #f5f5f2 0%, #fff 72%);
  border-bottom: 0;
  padding-top: clamp(76px, 9vw, 124px);
  padding-bottom: clamp(60px, 8vw, 104px);
}
.template-project-detail .page-hero .wrap.grid-2 {
  grid-template-columns: minmax(0, 1.25fr) minmax(180px, .75fr);
  align-items: center;
}
.template-project-detail .page-hero h1 { max-width: 850px; }
.template-project-detail .page-hero img {
  width: min(260px, 100%);
  max-width: 100% !important;
  max-height: 180px;
  padding: 24px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
}
.template-project-detail .facts { border-top-color: #d6d6d1; }
.template-project-detail .facts li { padding: 17px 0; border-bottom-color: #deded9; }
/* Case-study photography should feel like a portfolio, not a thumbnail grid. */
.template-project-detail .band-sand > .wrap { max-width: 1480px; }
.template-project-detail .gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 36px);
  align-items: start;
}
.template-project-detail .gallery figure { min-width: 0; }
.template-project-detail .gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  cursor: zoom-in;
  transition: opacity .2s ease;
}
.template-project-detail .gallery img:hover { opacity: .92; }
.template-project-detail .gallery figcaption {
  margin-top: 10px;
  font-size: .75rem;
}
@media (max-width: 640px) {
  .template-project-detail .gallery {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .template-project-detail .gallery img { aspect-ratio: 4 / 3; }
}

/* Template: insight article — editorial title, focused reading column, wide photo gallery */
.template-insight-article .page-hero {
  padding-top: clamp(72px, 10vw, 128px);
  padding-bottom: clamp(28px, 4vw, 46px);
  border-bottom: 0;
  text-align: center;
}
.template-insight-article .page-hero .article { max-width: 1000px; }
.template-insight-article .page-hero h1 { max-width: 1000px; margin: 0 auto; }
.template-insight-article .page-hero .byline { margin-bottom: 22px; letter-spacing: .17em; }
.template-insight-article main > section:not(.page-hero) > .article { max-width: 780px; }
.template-insight-article .article > p { font-size: 1.02rem; line-height: 1.9; }
.template-insight-article .article h2 { margin-top: 1.9em; margin-bottom: .7em; }
.template-insight-article .article img.avatar {
  display: block;
  width: min(340px, 72vw) !important;
  max-width: min(340px, 72vw);
  height: min(340px, 72vw) !important;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 30px !important;
}
.template-insight-article .article .gallery {
  width: min(1040px, calc(100vw - 48px));
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.template-insight-article .article .gallery img { aspect-ratio: 4 / 3; margin: 0; }
.template-insight-article .story-promo {
  min-height: 470px;
  background-position: center;
}
.template-insight-article .story-promo::before { background: rgba(0,0,0,.48); }
.template-insight-article .story-promo .wrap { padding-top: 64px; padding-bottom: 64px; }
.template-insight-article .story-promo h2 { max-width: 820px; font-size: clamp(2.6rem, 5.5vw, 5rem); }
.template-insight-article .story-about .wrap { align-items: center; }
.template-insight-article .story-about-image { aspect-ratio: 4 / 3; }
.template-insight-article .story-cta-strip h2 { letter-spacing: -.04em; }
.template-insight-article .story-related .story-card > img { aspect-ratio: 16 / 10; }

/* Template: standard pages — alternating text and photography, never a wall of copy */
.template-about .page-hero,
.template-careers .page-hero,
.template-sustainability .page-hero,
.template-contact .page-hero {
  background: var(--sand);
  border-bottom: 0;
}
.template-about .page-hero h1,
.template-careers .page-hero h1,
.template-sustainability .page-hero h1,
.template-contact .page-hero h1 { max-width: 980px; }
.template-about .img-cover,
.template-careers .img-cover,
.template-sustainability .img-cover { aspect-ratio: 4 / 5; }
.template-about .person img { aspect-ratio: 4 / 5; object-fit: cover; }
.template-about .quote { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.template-careers .grid-4:has(img) { gap: 12px; }
.template-careers .grid-4:has(img) .img-cover { aspect-ratio: 3 / 4; }
.template-partnerforum .hero { min-height: min(78svh, 820px); }
.template-partnerforum .hero h1 { max-width: 940px; font-size: clamp(3.1rem, 7vw, 7rem); }
.template-partnerforum .photo-band { min-height: min(68svh, 720px); background-position: center; }
.template-contact .facts li { grid-template-columns: minmax(100px, .65fr) minmax(0, 1.35fr); }
.template-contact .facts a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.template-contact main > section:not(.page-hero) .wrap.grid-2 { align-items: start; }

/* Template: legal — quiet, highly readable and deliberately undecorated */
.template-legal .page-hero {
  padding-top: clamp(64px, 8vw, 100px);
  padding-bottom: 30px;
  border-bottom: 0;
}
.template-legal .page-hero .article { max-width: 920px; margin-left: auto; margin-right: auto; }
.template-legal .page-hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.template-legal main > section:not(.page-hero) { padding-top: 24px; }
.template-legal .article { max-width: 920px; }
.template-legal .article p,
.template-legal .article li { line-height: 1.9; }

/* Small-screen rules shared by all page families */
@media (max-width: 860px) {
  .page-template .header-inner { min-height: 82px; }
  .page-template .main-nav { inset: 82px 0 0; }
  .page-template .brand img { width: 165px; }
  .template-project-detail .page-hero .wrap.grid-2 { grid-template-columns: 1fr; }
  .template-project-detail .page-hero img { width: 190px; max-height: 130px; margin: 8px 0 0; }
  .template-insight-article .article .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-insight-article .story-promo { min-height: 360px; }
  .template-partnerforum .photo-band { min-height: 54svh; }
}
@media (max-width: 520px) {
  .page-template h1 { font-size: clamp(2.35rem, 10vw, 3.6rem); }
  .page-template .page-hero { padding-top: 68px; padding-bottom: 44px; }
  .template-insight-article .article .gallery { width: calc(100vw - 32px); gap: 8px; grid-template-columns: 1fr 1fr; }
  .template-insight-article .story-about .grid-2 { grid-template-columns: 1fr; }
  .template-contact .facts li { grid-template-columns: 1fr; gap: 2px; }
}


/* Accessible image lightbox — shared by case studies, galleries and editorial pages */
body.image-lightbox-open { overflow: hidden; }
img.is-zoomable { cursor: zoom-in; }
img.is-zoomable:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.image-lightbox[hidden] { display: none !important; }
.image-lightbox:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  grid-template-rows: 56px minmax(0, 1fr) 42px;
  align-items: center;
  justify-items: center;
  gap: 8px;
  padding: clamp(12px, 2.4vw, 30px);
  background: rgba(7, 7, 7, .96);
  color: #fff;
  isolation: isolate;
}
.image-lightbox__figure {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0;
}
.image-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  max-height: calc(100dvh - 160px);
  object-fit: contain;
  margin: 0 auto;
  box-shadow: 0 14px 70px rgba(0,0,0,.3);
}
.image-lightbox__caption {
  width: 100%;
  max-width: 900px;
  padding: 16px 12px 0;
  color: rgba(255,255,255,.78);
  font-size: .82rem;
  line-height: 1.5;
  letter-spacing: .035em;
  text-align: center;
}
.image-lightbox__caption[hidden] { display: none; }
.image-lightbox__close,
.image-lightbox__nav {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .18s;
}
.image-lightbox__close:hover,
.image-lightbox__nav:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.8);
}
.image-lightbox__close:focus-visible,
.image-lightbox__nav:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.image-lightbox__close {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
}
.image-lightbox__close span { transform: translateY(-1px); }
.image-lightbox__nav {
  grid-row: 2;
  width: 50px;
  height: 50px;
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1;
}
.image-lightbox__nav span { transform: translateY(-3px); }
.image-lightbox__prev { grid-column: 1; justify-self: start; }
.image-lightbox__next { grid-column: 3; justify-self: end; }
.image-lightbox__nav[hidden] { display: none; }
.image-lightbox__counter {
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: center;
  color: rgba(255,255,255,.6);
  font-size: .72rem;
  letter-spacing: .16em;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .image-lightbox:not([hidden]) {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    grid-template-rows: 50px minmax(0, 1fr) 34px;
    gap: 4px;
    padding: 10px;
  }
  .image-lightbox__image {
    max-height: calc(100vh - 132px);
    max-height: calc(100dvh - 132px);
  }
  .image-lightbox__nav { width: 36px; height: 36px; font-size: 2.1rem; }
  .image-lightbox__close { width: 42px; height: 42px; }
  .image-lightbox__caption { font-size: .72rem; padding-top: 12px; }
}


/* Photo-led cards in each case study's "More projects" references */
.template-project-detail .project-reference-card {
  display: block;
  height: 100%;
  overflow: hidden;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.template-project-detail .project-reference-card:hover {
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.09);
}
.template-project-detail .project-reference-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  background: var(--sand);
}
.template-project-detail .project-reference-copy { padding: clamp(16px, 2vw, 24px); }
.template-project-detail .project-reference-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
}
.template-project-detail .project-reference-copy .more { font-size: .78rem; }


/* Contact forms: consistent, accessible controls shared across locales. */
.contact-form { gap: 18px; padding: clamp(22px, 4vw, 38px); }
.contact-form h2, .contact-form h3 { margin-bottom: 2px; }
.contact-form label { display: block; color: var(--ink); font-size: .82rem; font-weight: 500; letter-spacing: .015em; }
.contact-form input, .contact-form select, .contact-form textarea {
 display: block; width: 100%; min-width: 0; margin-top: 7px; padding: 13px 14px;
 border: 1px solid #cfcfcf; border-radius: 0; background: #fff; color: var(--ink);
 font: 400 16px/1.5 var(--sans); letter-spacing: normal;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid #555; outline-offset: 2px; border-color: #555; }
.contact-form .form-privacy, .contact-form .form-fallback { color: #555; font-size: .78rem; line-height: 1.65; margin: 0; }
.contact-form .form-status { margin: 0; padding: 12px 14px; background: var(--sand); border-left: 3px solid var(--accent); font-size: .9rem; }
.contact-form .form-status:empty { display: none; }
.form-honey { position: absolute !important; top: auto !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-fallback a { text-underline-offset: 3px; }
.btn:disabled { cursor: wait; opacity: .65; }

/* Contact forms use shared monochrome component tokens across both locales. */
.contact-form { gap: 18px; padding: clamp(22px, 4vw, 38px); }
.contact-form label { display: block; color: var(--ink); font-size: .82rem; font-weight: 500; letter-spacing: .015em; }
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; min-width: 0; margin-top: 7px; padding: 13px 14px; border: 1px solid #cfcfcf; border-radius: 0; background: #fff; color: var(--ink); font: 400 16px/1.5 var(--sans); letter-spacing: normal; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid #555; outline-offset: 2px; border-color: #555; }
.contact-form .form-privacy, .form-fallback { color: #555; font-size: .78rem; line-height: 1.65; margin: 0; }
.contact-form .form-status { margin: 0; padding: 12px 14px; background: var(--sand); border-left: 3px solid var(--accent); font-size: .9rem; }
.contact-form .form-status:empty { display: none; }
.form-honey { position: absolute !important; top: auto !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.btn:disabled { cursor: wait; opacity: .65; }
.contact-cta-strip { margin-top: 34px; padding: clamp(24px, 4vw, 42px); background: var(--sand); display: flex; gap: 24px; justify-content: space-between; align-items: center; }
.contact-cta-strip h2 { margin: 0 0 8px; }
.contact-cta-strip p { margin: 0; }
@media (max-width: 640px) { .contact-cta-strip { flex-direction: column; align-items: stretch; } .contact-cta-strip .btn { text-align: center; } }

/* Make the header contact action visible on both desktop and mobile. */
.main-nav a[href="/contact/"], .main-nav a[href="/de/kontakt/"] { border: 1px solid var(--ink); padding: 10px 16px; margin-left: 8px; }
.main-nav a[href="/contact/"]:hover, .main-nav a[href="/de/kontakt/"]:hover { background: var(--ink); color: #fff; text-decoration: none; }
@media (max-width: 960px) { .main-nav a[href="/contact/"], .main-nav a[href="/de/kontakt/"] { padding: 14px 16px; margin: 12px 0; } }
