/* Edge-to-edge navigation background, with content aligned to the page. */
.site-header {
  top: 0;
  width: 100%;
  max-width: none;
  height: 88px;
  margin: 0;
  padding: 0 calc(5.6% + max(0px, (100% - 1600px) / 2));
  border: 0;
  border-radius: 0;
  background: #ede9d4;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(237,233,212,.88);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
}
/* Section movement happens only through links; reading remains free to stop anywhere. */
html { scroll-padding-top: 104px; scroll-snap-type: none; }
#work, .practice, #about, #contact { scroll-margin-top: -40px; }
@media(max-width:600px) {
  .site-header {
    top: 0;
    width: 100%;
    height: 74px;
    margin-top: 0;
    padding: 0 6%;
    gap: 14px;
    border-radius: 0;
  }
  .site-header nav { gap: 12px; }
  html { scroll-padding-top: 90px; }
  #work, .practice, #about, #contact { scroll-margin-top: -24px; }
}
@media(max-width:360px) {
  .site-header { gap: 10px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-snap-type: none; scroll-behavior: auto; }
}
@media(prefers-reduced-transparency:reduce) {
  .site-header { background: #ede9d4; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media(forced-colors:active) {
  .site-header { background: Canvas; border-color: CanvasText; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media print {
  html { scroll-snap-type: none; }
  .site-header { position: static; background: #ede9d4; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Keep all three language choices accessible in the compact navigation. */
.language { gap: 6px; flex-shrink: 0; }
.language button { min-width: 22px; }
@media(max-width:600px) {
  .language { gap: 3px; }
  .site-header { gap: 12px; }
}
@media(max-width:420px) {
  .site-header { gap: 10px; }
}

/* The circular arrows belong to each section, rather than floating over its text. */
.section-next { display: flex; justify-content: flex-end; margin-top: 40px; }
.about > .section-next { grid-column: 1 / -1; margin-top: 0; }
.hero-baseline { gap: 24px; }
.next-section-link {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--plum);
  font: 400 25px/1 var(--sans);
  background: transparent;
  transition: background-color 180ms ease, color 180ms ease;
}
.next-section-link > span { display: block; line-height: 1; }
.about .next-section-link { color: var(--peach); }
.next-section-link:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
@media(hover:hover) and (pointer:fine) {
  .next-section-link:hover { background: var(--plum); color: var(--paper); }
  .about .next-section-link:hover { background: var(--peach); color: var(--plum); }
}
@media(max-width:600px) {
  .section-next { margin-top: 32px; }
  .about > .section-next { margin-top: 0; }
  .hero-baseline { gap: 16px; }
}
@media print { .section-next, .next-section-link { display: none; } }

/* Two disclosure groups keep the site navigation compact and easy to scan. */
.site-header .primary-nav { position: relative; align-items: center; gap: 30px; }
.nav-group { position: relative; }
.nav-toggle {
  border: 0;
  padding: 10px 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  white-space: nowrap;
  font-size: 14px;
}
.nav-chevron { display: inline-block; font-size: 16px; line-height: 1; transition: transform 160ms ease; }
.nav-toggle[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-submenu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: max-content;
  min-width: 196px;
  max-width: min(310px,88vw);
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  color: var(--plum);
  background: #f3f0e3;
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(53,35,50,.1);
}
.nav-submenu[hidden] { display: none; }
.site-header .nav-submenu a {
  display: block;
  min-height: 44px;
  padding: 10px 13px;
  font-size: 14px;
  line-height: 1.65;
  white-space: normal;
}
.site-header .nav-submenu a::after { display: none; }
.site-header .nav-submenu a:hover,
.site-header .nav-submenu a:focus-visible { background: rgba(231,160,135,.22); }
.site-header .nav-submenu a:focus-visible { outline-offset: -2px; }
#music, #video, #photography, #experience { scroll-margin-top: 12px; }
@media(max-width:600px) {
  .site-header {
    height: 108px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 52px 44px;
    gap: 0 16px;
    padding-bottom: 12px;
  }
  .site-header > .wordmark { grid-column: 1; grid-row: 1; }
  .site-header > .language { grid-column: 2; grid-row: 1; justify-self: end; }
  .site-header .primary-nav { grid-column: 1 / -1; grid-row: 2; margin-left: 0; gap: 30px; }
  .nav-group { position: static; }
  .nav-submenu { top: calc(100% + 8px); left: 0; right: auto; width: 100%; min-width: 0; max-width: none; max-height: calc(100dvh - 128px); }
  html { scroll-padding-top: 124px; }
}
@media print { .nav-submenu { display: none; } }
