.sk-header {
  --nav-ink: #28221d;
  --nav-paper: #f8f3e9;
  --nav-panel: #251f1a;
  --nav-muted: #d3c7ba;
  --nav-outline: #bea389;
  position: relative;
  z-index: 5;
  border-bottom: 1px solid #e3ded5;
  background: #f9f8f5;
  color: var(--nav-ink);
  font-family: Inter, system-ui, sans-serif;
}

.sk-header--hero {
  position: absolute;
  inset: 0 0 auto;
  border-bottom: 0;
  background: transparent;
  color: var(--nav-paper);
}

.sk-header-row {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  gap: 16px;
  width: min(1144px, calc(100% - 64px));
  min-height: 76px;
  margin-inline: auto;
  padding-block: 10px;
}

.sk-header--hero .sk-header-row { width: min(1328px, calc(100% - 80px)); }
.sk-header [hidden] { display: none !important; }
.sk-header a { text-decoration: none; }
.sk-header :is(a, button):focus-visible { outline: 2px solid #815035; outline-offset: 3px; }
.sk-header--hero :is(.sk-header-brand, .sk-header-quote, .sk-mobile-toggle):focus-visible,
.sk-mega a:focus-visible { outline-color: #ffddb4; }

.sk-header-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  min-height: 44px;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 645;
  letter-spacing: -.038em;
}

.sk-header-brand img { display: block; width: 38px; height: 38px; }
.sk-header--hero .sk-header-brand { text-shadow: 0 1px 12px #150f0ce0; }
.sk-header .sk-nav { display: block; color: var(--nav-ink); }

.sk-nav-list, .sk-mega-list { list-style: none; padding: 0; margin: 0; }

.sk-nav-list {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #e7e1d8;
  border-radius: 999px;
  background: #f0ece5;
}

.sk-header--hero .sk-nav-list {
  border-color: #fff6e6b8;
  background: #f8f1e9ed;
  backdrop-filter: blur(12px);
}

.sk-nav-link, .sk-header-quote, .sk-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 40px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 520;
  line-height: 1.2;
  white-space: nowrap;
}

.sk-header button { cursor: pointer; }
.sk-nav-link:hover { background: #e5dcd1; }
.sk-header:not([data-products-open]) .sk-nav-link:is([aria-current], [data-current]),
.sk-nav-link[aria-expanded="true"] { background: var(--nav-panel); color: var(--nav-paper); }
.sk-header svg {
  display: block;
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sk-nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }

.sk-header-quote {
  justify-self: end;
  gap: 7px;
  min-height: 44px;
  padding-inline: 15px;
  background: var(--nav-panel);
  color: var(--nav-paper);
  font-weight: 580;
}
.sk-header-quote:hover { background: #40332a; }
.sk-header--hero .sk-header-quote { background: var(--nav-paper); color: var(--nav-ink); }
.sk-header--hero .sk-header-quote:hover { background: #eadcc9; }
.sk-quote-short, .sk-header .sk-mobile-toggle, .sk-header .sk-close-icon { display: none; }

.sk-mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  gap: 21px;
  align-items: start;
  width: min(630px, calc(100vw - 64px));
  max-height: calc(100dvh - 92px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid #fff8e32a;
  border-radius: 17px;
  background: #251f1af7;
  color: var(--nav-paper);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 52px #130d093d;
  transform: translateX(-50%);
  animation: sk-menu-open .16s ease-out;
}

@keyframes sk-menu-open {
  from { opacity: 0; translate: 0 -4px; }
  to { opacity: 1; translate: 0 0; }
}

.sk-mega-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 43px;
  padding: 5px 8px;
  border-radius: 7px;
}
.sk-mega-item:hover, .sk-mega-item:focus-visible { background: #fff2d912; }
.sk-mega-item svg { width: 21px; height: 21px; color: var(--nav-outline); }
.sk-mega-item strong, .sk-mega-caption strong {
  display: block;
  font-size: 14px;
  font-weight: 560;
  line-height: 1.35;
}
.sk-mega-item small, .sk-mega-caption span {
  display: block;
  color: var(--nav-muted);
  font-size: 12px;
  line-height: 1.35;
}
.sk-mega-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  margin: 6px 8px -4px;
  border-top: 1px solid #fff8e329;
  font-size: 13px;
  font-weight: 570;
}
.sk-mega-all:hover, .sk-mega-feature:hover strong { text-decoration: underline; }
.sk-mega-feature { display: block; min-width: 0; border-radius: 10px; }
.sk-mega-feature img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.7;
  object-fit: cover;
  object-position: center 57%;
  border-radius: 10px;
  background: #5a493b;
}
.sk-mega-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 2px 0;
}
.sk-mega-caption span { margin-top: 4px; }
.sk-mega-caption svg { color: var(--nav-outline); }

/* Leave room for the menu and keep the existing catalogue photograph full bleed. */
.reference-home .ref-hero { min-height: clamp(620px, 100svh, 980px); align-items: end; }
.reference-home .ref-hero > div { margin-block: 0; padding-block: 112px clamp(60px, 10svh, 104px); }
.reference-home .ref-hero h1 { font-size: clamp(40px, min(5.5vw, 8svh), 76px); }

@media (min-width: 901px) and (max-height: 820px) {
  .reference-home .ref-hero > div { padding-bottom: clamp(41px, 6.9svh, 57px); }
}

@media (min-width: 901px) and (max-height: 740px) {
  .sk-mega { padding-block: 14px; }
  .sk-mega-item { min-height: 40px; padding-block: 3px; }
  .sk-mega-all { min-height: 40px; }
  .reference-home .ref-hero h1 {
    max-width: 18.5ch;
    font-size: clamp(38px, min(5.5vw, 7.4svh), 56px);
  }
}

@media (max-width: 980px) {
  .sk-header .sk-header-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    width: calc(100% - 32px);
    min-height: 68px;
    gap: 8px;
  }
  .sk-header-brand { gap: 7px; font-size: 17px; }
  .sk-header-brand img { width: 33px; height: 33px; }
  .sk-header .sk-mobile-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #ded6ca;
    background: #f0ece5;
    color: var(--nav-ink);
  }
  .sk-header--hero .sk-mobile-toggle { border-color: #fff6e6b8; background: #f8f1e9ed; }
  .sk-header .sk-mobile-toggle svg { width: 20px; height: 20px; }
  .sk-mobile-toggle[aria-expanded="true"] .sk-menu-icon { display: none; }
  .sk-mobile-toggle[aria-expanded="true"] .sk-close-icon { display: block; }

  .sk-header[data-enhanced]:not([data-mobile-open]) .sk-nav { display: none; }
  .sk-header[data-enhanced] .sk-nav {
    position: absolute;
    top: 100%;
    right: 16px;
    width: min(400px, calc(100% - 32px));
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 9px;
    border: 1px solid #fff8e32a;
    border-radius: 16px;
    background: var(--nav-panel);
    color: var(--nav-paper);
    box-shadow: 0 14px 44px #130d0950;
    animation: sk-menu-open .16s ease-out;
  }
  .sk-header[data-enhanced] .sk-nav-list {
    display: grid;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
  }
  .sk-header[data-enhanced] .sk-nav-link {
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding-inline: 12px;
    border-radius: 8px;
    font-size: 14px;
  }
  .sk-header[data-enhanced] .sk-nav-link:is(:hover, [aria-expanded="true"]),
  .sk-header[data-enhanced]:not([data-products-open]) .sk-nav-link:is([aria-current], [data-current]) {
    background: #fff2d916;
  }
  .sk-header[data-enhanced] .sk-nav :is(a, button):focus-visible {
    outline-color: #ffddb4;
    outline-offset: -2px;
  }
  .sk-header:not([data-enhanced]) .sk-nav { grid-row: 2; grid-column: 1 / -1; }
  .sk-header:not([data-enhanced]) .sk-nav-list { flex-wrap: wrap; border-radius: 12px; }
  .sk-header-quote { grid-column: 2; grid-row: 1; }
  .sk-mobile-toggle { grid-column: 3; grid-row: 1; }
  .sk-mega {
    position: static;
    display: block;
    width: auto;
    max-height: none;
    margin: 4px 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    backdrop-filter: none;
    animation: none;
  }
  .sk-mega-feature { display: none; }
  .sk-mega-item { min-height: 44px; padding-block: 5px; }
  .sk-mega-all { min-height: 44px; margin-bottom: 0; }
}

@media (max-width: 760px) {
  .reference-home .ref-hero::after {
    background: linear-gradient(180deg, #1714148c, transparent 22%),
                linear-gradient(0deg, #171414ed 0%, #171414ad 40%, #17141413 83%);
  }
}

@media (max-width: 520px) {
  .sk-quote-label, .sk-header-quote svg { display: none; }
  .sk-quote-short { display: inline; }
  .sk-header-quote { padding-inline: 12px; }
  .reference-home .ref-hero { min-height: clamp(540px, 83svh, 760px); }
  .reference-home .ref-hero > div { padding-block: 100px 67px; }
}

@media (prefers-reduced-motion: reduce) {
  .sk-header .sk-nav, .sk-mega { animation: none; }
}
