/* Shared optical surfaces. The opaque base is also the no-backdrop-filter fallback.
   No animated filters, image copies, pointer tracking, or added rendering loops. */
:root {
  --glass-edge: #d4f3ee80;
  --glass-surface: linear-gradient(120deg, #b6e6e521, #36777c0a 45%, #b8ece91c), #073b49b8;
  --glass-inset: inset 0 1px 1px #f0ffff80, inset 0 -1px 2px #b7edeb38;
}
.hero-icon-link { color: var(--paper); background: #124753; border: 1px solid var(--glass-edge); box-shadow: var(--glass-inset); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero-icon-link { background: var(--glass-surface); backdrop-filter: blur(7px) saturate(1.15); -webkit-backdrop-filter: blur(7px) saturate(1.15); }
}
.hero-icon-link:hover, .hero-icon-link:focus-visible { color: #f1d398; border-color: #f1d398; background-color: #205765; }
@media (prefers-reduced-transparency: reduce) { .hero-icon-link { background: #124753; backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (forced-colors: active) { .hero-icon-link { color: LinkText; background: Canvas; border-color: LinkText; box-shadow: none; } }
.work-menu, .project-dialog, .primary-nav .nav-outline, .dialog-close,
.site-header.is-detached, .return-top {
  color: var(--paper);
  background: #124753;
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-inset);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .work-menu, .project-dialog, .primary-nav .nav-outline, .dialog-close,
  .site-header.is-detached, .return-top {
    background: var(--glass-surface);
    -webkit-backdrop-filter: blur(7px) saturate(1.15);
    backdrop-filter: blur(7px) saturate(1.15);
  }
}
/* SVG backdrop displacement is progressive enhancement in supporting engines. */
@supports (backdrop-filter: url('#glass-refraction') blur(7px)) {
  .work-menu, .project-dialog {
    backdrop-filter: url('#glass-refraction') blur(7px) saturate(1.15);
  }
}
.work-menu {
  width: min(960px, calc(100vw - var(--gutter) * 2));
  padding: clamp(1.5rem, 3vw, 2.6rem);
  grid-template-columns: .95fr 1.05fr 1.15fr;
  gap: clamp(1.25rem, 2.4vw, 2.2rem);
  border-radius: 16px;
  text-shadow: 0 1px 3px #002b3b66;
}
.menu-intro { align-self: center; }
@media (min-width: 901px) {
  .site-header.is-detached .work-menu { right: auto; left: 50%; transform: translateX(-50%); }
}
.menu-intro .eyebrow { font-size: .75rem; color: var(--muted); }
.menu-intro p { font-family: 'Times New Roman', Times, serif; font-style: italic; font-size: clamp(1.8rem, 3vw, 2.6rem); margin: .9rem 0 1.5rem; }
.menu-intro a { font-size: .9375rem; }
.menu-feature, .menu-links { border-left: 1px solid #cdece733; padding-left: clamp(1.25rem, 2.4vw, 2.2rem); }
.menu-feature img { height: auto; aspect-ratio: 1.8; border-radius: 7px; margin-bottom: .8rem; transition: filter .2s ease; }
.menu-feature strong { font-size: 1.125rem; }
.menu-feature span { font-size: .9375rem; line-height: 1.45; color: var(--muted); margin-top: .5rem; text-wrap: pretty; }
.menu-links a { font-size: .9375rem; padding-block: 1rem; border-color: #d5eee53b; transition: color .18s, border-color .18s; }
.work-menu a:hover, .work-menu a:focus-visible { color: #fff; }
.menu-links a:hover { border-color: #e3faf0ad; }
.menu-feature:hover img, .menu-feature:focus-visible img { filter: brightness(1.1); }
.menu-feature:hover, .menu-feature:focus-visible { text-decoration: none; }
.primary-nav .nav-outline, .dialog-close { transition: background-color .18s, border-color .18s; }
.primary-nav .nav-outline:hover, .dialog-close:hover { background-color: #387781; border-color: #e1f8f0b3; color: #fff !important; }
.project-dialog { border-radius: 16px; }
.project-dialog::backdrop { background: #001d2e66; }
.dialog-copy { background: #002f3c38; }
.dialog-close { border-radius: 24px; background-color: #073b49e6; }
.return-top.is-visible { animation: none; }
/* A filtered ancestor prevents its dropdown from sampling the ocean behind it.
   Put detached-header glass on its own layer while the menu is open. */
.site-header.is-detached:has(.work-menu:not([hidden])),
.site-header.is-detached:has(.primary-nav.is-open) {
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.site-header.is-detached::before {
  inset: 0; width: auto; height: auto; border-radius: inherit;
  mask-image: none; opacity: 1; background: var(--glass-surface);
  backdrop-filter: blur(7px) saturate(1.15); -webkit-backdrop-filter: blur(7px) saturate(1.15);
}
.site-header.is-detached:not(:has(.work-menu:not([hidden]))):not(:has(.primary-nav.is-open))::before { opacity: 0; }
@media (max-width: 900px) {
  .primary-nav {
    max-height: calc(100dvh - 110px); overflow-y: auto;
    border-radius: 16px; border-color: var(--glass-edge);
    background: #124753; box-shadow: var(--glass-inset);
  }
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .primary-nav { background: var(--glass-surface); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
  }
  .work-menu { width: 100%; grid-template-columns: 1fr; padding: .25rem 0 .75rem 1rem; gap: .2rem; border: 0; border-left: 1px solid #d5eee53b; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-links { padding-left: 0; border-left: 0; }
  .menu-intro a { display: block; padding-block: .7rem; }
  .menu-links a { min-height: 44px; }
}
@media (prefers-reduced-transparency: reduce) {
  .work-menu, .project-dialog, .primary-nav .nav-outline, .dialog-close, .site-header.is-detached, .return-top, .primary-nav.is-open { background: #124753; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (forced-colors: active) {
  .work-menu, .project-dialog, .primary-nav .nav-outline, .dialog-close, .site-header.is-detached, .return-top, .primary-nav.is-open { background: Canvas; color: CanvasText; border-color: CanvasText; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
