/* Version 1.9 — responsive production pass
   Optimised for desktop, laptop, tablet and phones in portrait/landscape. */

/* Global layout safety */
html { overflow-x: clip; }
body, .page-shell, main, main > section { min-width: 0; }
main > section[id] { scroll-margin-top: calc(var(--header-h) + 18px); }
.site-header__inner,
.hero__inner,
.section,
.trust-strip,
.site-footer,
.story > *,
.career > *,
.contact > *,
.news-editorial > *,
.office-gallery__grid > * { min-width: 0; }
img { height: auto; }
.contact-float b,
.contact-list strong,
.site-footer,
.legal-dialog,
.article-dialog,
.service-dialog { overflow-wrap: anywhere; word-break: normal; }
button, a, [role="button"] { -webkit-tap-highlight-color: transparent; }

/* Large desktop refinement */
@media (min-width: 1600px) {
  .site-header__inner { width: min(1660px, calc(100% - 96px)); }
  .hero__inner { width: min(1600px, calc(100% - 104px)); }
  .section { padding-inline: max(6vw, calc((100vw - 1600px) / 2)); }
  .hero__copy { max-width: 680px; }
  .hero-visual { inset-right: -4%; }
}

/* Laptop/tablet navigation and structural breakpoint */
@media (max-width: 1120px) {
  :root { --header-h: 72px; }

  .site-header,
  .site-header.is-scrolled { height: var(--header-h); }
  .site-header__inner { width: calc(100% - 32px); gap: 14px; }
  .brand { min-width: 0; flex: 0 1 auto; }
  .header-actions { margin-left: auto; }
  .header-actions .button { display: none; }
  .menu-toggle { display: block; order: 3; flex: 0 0 44px; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

  .main-nav {
    position: fixed;
    z-index: 1200;
    top: calc(var(--header-h) + 10px);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 0;
    max-height: calc(100dvh - var(--header-h) - 26px);
    padding: 12px;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px;
    background: rgba(5,12,21,.97);
    box-shadow: 0 28px 80px rgba(0,0,0,.48);
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px) scale(.985);
    transform-origin: top;
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
  }
  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .main-nav a {
    min-height: 54px;
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.075);
    font-size: .79rem;
  }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a::after { display: none; }
  body.nav-open { overflow: hidden; }

  .hero { min-height: auto; padding-top: var(--header-h); }
  .hero__inner {
    width: min(100% - 40px, 980px);
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 26px;
    padding: 54px 0 0;
  }
  .hero__copy { max-width: 760px; padding: 18px 42px 0; }
  .hero__copy h1 { font-size: clamp(4.3rem, 10.5vw, 7rem); }
  .hero__scroll-rail { left: 0; top: 5%; bottom: 64%; }
  .hero-visual,
  .hero-visual--real {
    position: relative;
    inset: auto;
    grid-column: 1;
    width: calc(100% - 70px);
    height: clamp(430px, 58vw, 610px);
    margin: -38px 0 0 auto;
    border-radius: 42px 0 0 42px;
  }
  .contact-float {
    position: relative;
    top: auto;
    right: auto;
    width: min(520px, calc(100% - 70px));
    margin: -155px 22px 10px auto;
  }
  .hero-cards {
    grid-template-columns: repeat(2, minmax(0,1fr));
    padding: 0 22px 0 42px;
  }
  .hero-card { min-height: 190px; border-right: 1px solid var(--line-white); }
  .hero-card:first-child { border-radius: 16px 0 0 0; }
  .hero-card:nth-child(2) { border-radius: 0 16px 0 0; }
  .hero-card:nth-child(3) { border-radius: 0 0 0 16px; }
  .hero-card:last-child { border-radius: 0 0 16px 0; }

  .trust-strip { grid-template-columns: repeat(2, minmax(0,1fr)); background: var(--cream, #f6f1e8); }
  .trust-strip__intro { grid-column: 1 / -1; grid-row: auto; min-height: 0; padding: 64px max(34px, 5vw); }
  .stat { min-height: 230px; }
  .stat:last-child { color: var(--ink); }
  .stat:last-child p { color: #6d747d; }
  .stat:last-child strong { color: #7b552d; }

  .section { padding-inline: clamp(32px, 5vw, 62px); }
  .story,
  .career,
  .contact.contact--minden { grid-template-columns: minmax(0,1fr); }
  .story { gap: 64px; }
  .story__visual--owner { min-height: 0; }
  .owner-portrait { width: min(100%, 620px); height: auto; aspect-ratio: 4 / 5; }
  .story__visual--owner .story__badge { right: max(1rem, 8%); }
  .career { gap: 38px; }
  .career__copy { max-width: 760px; }
  .contact.contact--minden { gap: 38px; min-height: 0; }
  .contact-glass { max-width: none; }
  .map-card.map-card--google { min-height: 620px; }

  .office-gallery__grid {
    grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
    grid-template-rows: 19rem 19rem 18rem;
  }
  .gallery-tile--wide { grid-column: 1; grid-row: 1 / 3; }
  .gallery-tile:nth-child(2) { grid-column: 2; grid-row: 1; }
  .gallery-tile:nth-child(3) { grid-column: 2; grid-row: 2; }
  .gallery-tile:nth-child(4) { grid-column: 1 / 3; grid-row: 3; }

  .news-editorial { grid-template-columns: minmax(0,1fr); }
  .news-stack { grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: none; }
  .news-card { grid-template-columns: minmax(0,1fr); min-height: 310px; }
  .news-card__date { width: 68px; height: 68px; }

  :root { --v4-card-width: min(410px, 64vw); }
}

/* Tablet portrait and large phone */
@media (max-width: 768px) {
  :root { --header-h: 68px; --v4-card-width: calc(100vw - 46px); }
  body { font-size: 16px; }
  .site-header__inner { width: calc(100% - 20px); }
  .brand { gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand__text small { font-size: .46rem; }
  .brand__text strong { margin-top: 4px; font-size: .88rem; letter-spacing: .1em; }
  .language-switcher__current { min-width: 44px; min-height: 44px; justify-content: center; padding: 7px; }
  .language-switcher__current #currentLanguage { display: none; }
  .language-switcher__menu { position: fixed; top: calc(var(--header-h) + 8px); right: 10px; width: min(230px, calc(100vw - 20px)); }
  .menu-toggle { width: 44px; height: 44px; }
  .main-nav { left: 10px; right: 10px; top: calc(var(--header-h) + 8px); }

  .language-gate { padding: 10px; }
  .language-gate__panel {
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
    padding: 30px 18px 24px;
    border-radius: 22px;
  }
  .language-grid { grid-template-columns: minmax(0,1fr); }
  .language-card { grid-template-columns: 48px minmax(0,1fr) auto; min-height: 82px; padding: 13px 14px; }
  .language-card__code { display: none; }
  .language-card strong, .language-card small { overflow-wrap: anywhere; }

  .hero__inner { width: calc(100% - 20px); padding-top: 38px; gap: 20px; }
  .hero__copy { max-width: none; padding: 20px 8px 4px; }
  .hero__copy h1 { font-size: clamp(3.55rem, 17vw, 5.4rem); line-height: .9; text-wrap: balance; }
  .hero__lead { max-width: 100%; font-size: 1rem; }
  .hero__actions { width: 100%; flex-direction: column; align-items: stretch; gap: 16px; }
  .hero__actions .button { width: 100%; }
  .hero__actions .text-link { align-self: flex-start; }
  .hero__scroll-rail { display: none; }
  .hero-visual,
  .hero-visual--real {
    width: 100%;
    height: clamp(290px, 83vw, 430px);
    margin: 10px 0 0;
    border-radius: 24px;
  }
  .hero-visual--real .hero-visual__image { object-position: 61% 50%; }
  .contact-float { width: 100%; margin: 0; padding: 22px 18px; border-radius: 18px; }
  .contact-float a { min-height: 44px; grid-template-columns: 26px minmax(0,1fr); }
  .contact-float__hours div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .contact-float__hours small { text-align: left; }
  .hero-cards { grid-template-columns: minmax(0,1fr); padding: 0; }
  .hero-card,
  .hero-card:first-child,
  .hero-card:nth-child(2),
  .hero-card:nth-child(3),
  .hero-card:last-child {
    min-height: 170px;
    border-radius: 0;
    border-right: 1px solid var(--line-white);
  }
  .hero-card:first-child { border-radius: 16px 16px 0 0; }
  .hero-card:last-child { border-radius: 0 0 16px 16px; }

  .trust-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .trust-strip__intro { padding: 52px 22px; }
  .stat { min-height: 205px; padding: 32px 20px; }
  .stat span { font-size: clamp(2.4rem, 11vw, 3.1rem); }

  .section { padding: 76px 18px; }
  .section__head { align-items: flex-start; flex-direction: column; gap: 22px; margin-bottom: 32px; }
  .section__head h2 { font-size: clamp(2.55rem, 12vw, 4rem); }
  .section__controls { align-self: flex-end; }
  .round-button { width: 46px; height: 46px; }

  .services { min-height: 0; padding-bottom: 72px; }
  .service-carousel { min-height: 520px; overflow: visible; }
  .service-carousel::before,
  .service-carousel::after { width: 16px; bottom: 72px; }
  .service-slider.service-deck {
    min-height: 455px;
    gap: 14px;
    padding-top: 8px;
    scroll-padding-inline: 23px;
  }
  .service-slider.service-deck::before,
  .service-slider.service-deck::after { flex-basis: 23px; width: 23px; }
  .service-card {
    width: var(--v4-card-width) !important;
    flex-basis: var(--v4-card-width);
    min-height: 425px;
    padding: 28px 25px 26px;
    border-radius: 23px;
  }
  .service-card::after { left: 25px; right: 25px; top: 99px; }
  .service-card .icon-chip { margin-bottom: 58px; }
  .service-card h3 { min-height: 0; font-size: clamp(2rem, 10vw, 2.7rem); }
  .service-card p { font-size: .93rem; line-height: 1.65; }
  .service-card button { left: 25px; right: 25px; bottom: 24px; min-height: 44px; }
  .service-carousel__footer { width: 100%; grid-template-columns: auto minmax(0,1fr); gap: 16px; }
  .service-carousel__hint { display: none; }

  .story { gap: 44px; }
  .owner-portrait { width: 100%; aspect-ratio: 4 / 5.25; border-radius: 22px; }
  .owner-portrait figcaption { left: 1.3rem; right: 1.3rem; bottom: 1.35rem; }
  .story__visual--owner .story__badge { right: .7rem; bottom: .7rem; width: 104px; height: 104px; }
  .owner-quote { margin: 1.5rem 0 1.8rem; padding: 1.1rem 1rem 1.1rem 1.3rem; }
  .timeline div { grid-template-columns: 66px minmax(0,1fr); }

  .office-gallery__grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 1px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .office-gallery__grid::-webkit-scrollbar { display: none; }
  .gallery-tile,
  .gallery-tile--wide,
  .gallery-tile:nth-child(2),
  .gallery-tile:nth-child(3),
  .gallery-tile:nth-child(4) {
    flex: 0 0 min(84vw, 420px);
    height: clamp(320px, 105vw, 460px);
    grid-column: auto;
    grid-row: auto;
    scroll-snap-align: center;
    border-radius: 20px;
  }
  .gallery-tile:nth-child(3) { height: clamp(300px, 88vw, 400px); }

  .news-feature { grid-template-columns: minmax(0,1fr); min-height: 0; border-radius: 25px; }
  .news-feature__visual { min-height: 310px; padding: 26px; }
  .news-feature__content { padding: 34px 24px 38px; }
  .news-feature h3 { font-size: clamp(2.6rem, 12vw, 4.2rem); }
  .news-stack { grid-template-columns: minmax(0,1fr); }
  .news-card { min-height: 0; grid-template-columns: 70px minmax(0,1fr); padding: 24px 20px; }

  .career { padding-top: 78px; padding-bottom: 78px; }
  .career__job { padding: 28px 22px; border-radius: 20px; }
  .career__meta { flex-wrap: wrap; }

  .contact.contact--minden { padding: 74px 16px; gap: 24px; }
  .contact-glass { padding: 26px 18px; border-radius: 22px; }
  .contact--minden .contact-list > * { grid-template-columns: 34px minmax(0,1fr) 22px; gap: 10px; min-height: 66px; }
  .contact--minden .contact-list strong { font-size: .86rem; }
  .location-badge { max-width: 100%; white-space: normal; }
  .map-card.map-card--google { min-height: 540px; border-radius: 22px; }
  .map-consent { padding: 30px 18px 145px; }
  .map-consent h3 { font-size: clamp(2rem, 10vw, 2.65rem); }
  .map-card--google .map-card__panel { left: 10px; right: 10px; bottom: 10px; padding: 18px; border-radius: 18px; }
  .map-card--google .map-card__panel h3 { font-size: 1.5rem; }
  .map-card__actions { display: grid; gap: 10px; }
  .map-card__actions .button { width: 100%; }

  .site-footer { padding: 46px 18px 22px; }
  .site-footer__top,
  .site-footer__bottom { grid-template-columns: minmax(0,1fr); align-items: start; }
  .site-footer__top { gap: 22px; }
  .site-footer__top .button { width: 100%; justify-self: stretch; }
  .site-footer__bottom { gap: 16px; }
  .site-footer__bottom div { flex-wrap: wrap; gap: 10px 16px; }
  .site-footer__bottom button { min-height: 38px; padding: 0; }
  .site-footer__bottom > span:last-child { text-align: left; }

  .service-dialog,
  .article-dialog,
  .legal-dialog,
  .gallery-dialog {
    width: calc(100% - 16px);
    max-width: none;
    max-height: calc(100dvh - 16px);
    margin: auto;
    padding: 52px 20px 26px;
    border-radius: 22px;
  }
  .service-dialog h2,
  .legal-dialog h2,
  .article-dialog h2 { font-size: clamp(2.25rem, 11vw, 3.5rem); }
  .dialog-close { top: 10px; right: 10px; width: 42px; height: 42px; }
  .gallery-dialog img { max-height: calc(100dvh - 130px); }

  .cursor-glow { display: none !important; }
}

/* Small phone */
@media (max-width: 480px) {
  :root { --v4-card-width: calc(100vw - 32px); }
  .brand__text small { display: none; }
  .brand__text strong { margin-top: 0; font-size: .82rem; }
  .header-actions { gap: 4px; }
  .language-flag { width: 25px; }
  .hero__copy h1 { font-size: clamp(3.2rem, 16.6vw, 4.35rem); }
  .eyebrow { letter-spacing: .16em; font-size: .69rem; }
  .button { min-height: 52px; padding-inline: 18px; gap: 14px; }
  .trust-strip { grid-template-columns: minmax(0,1fr); }
  .stat { min-height: 180px; }
  .section { padding-inline: 14px; }
  .service-card { min-height: 430px; padding-inline: 22px; }
  .service-card::after,
  .service-card button { left: 22px; right: 22px; }
  .service-card__number { right: 22px; font-size: 4.2rem; }
  .news-card { grid-template-columns: minmax(0,1fr); }
  .news-card__date { width: 64px; height: 64px; }
  .owner-portrait { aspect-ratio: 3 / 4.4; }
  .story__visual--owner .story__badge { width: 88px; height: 88px; }
  .story__badge strong { font-size: 1.5rem; }
  .contact--minden .contact-list > * { grid-template-columns: 30px minmax(0,1fr) 18px; }
  .contact--minden .contact-list strong { font-size: .8rem; }
  .map-card.map-card--google { min-height: 500px; }
  .map-consent { padding-bottom: 138px; }
}

/* Short landscape devices */
@media (max-width: 900px) and (max-height: 560px) and (orientation: landscape) {
  .main-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .main-nav a:nth-last-child(-n+2) { border-bottom: 0; }
  .language-gate__panel { max-height: calc(100dvh - 16px); }
  .hero__inner { padding-top: 28px; }
  .hero__copy h1 { font-size: clamp(3.3rem, 10vw, 4.8rem); }
  .hero-visual, .hero-visual--real { height: 390px; }
  .owner-portrait { max-height: 78vh; }
}

/* Touch devices: remove mouse-only behaviour, preserve visual polish */
@media (hover: none), (pointer: coarse) {
  .magnetic,
  .tilt-card,
  .hero-card,
  .news-card,
  .service-card { transform-style: flat; }
  .button:hover,
  .news-card:hover,
  .owner-portrait:hover img,
  .mini-flags img:hover { transform: none; }
  .service-slider.service-deck { cursor: grab; }
  .hero-visual--real .hero-visual__image { animation-duration: 24s; }
  .hex-reactive::after { opacity: .34; }
  a, button { touch-action: manipulation; }
}

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