/* von Ferber · Neon Emerald / Option 12 compact wordmark
   The original transparent coat of arms is unchanged. */
:root {
  color-scheme: dark;
  --accent: #00dc78;
  --accent-rgb: 0, 220, 120;
  --background: #020806;
  --deep: #073922;
  --white: #f6f8f7;
  --muted: #9cafA3;
  --frame-inset: 24px;
  --header-height: 82px;
  --footer-height: 70px;
}
* { box-sizing: border-box; }
html { min-width: 280px; min-height: 100%; background: var(--background); }
body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--background);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible, #home:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 32px; z-index: 20;
  padding: 12px 18px; color: var(--background); background: var(--accent);
  border-radius: 5px; font-size: 14px;
}
.skip-link:focus { top: 32px; }

/* Original emerald atmosphere and fine-line frame. */
.atmosphere { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.atmosphere::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 43% 56% at 50% 51%, var(--deep) 0%, transparent 76%),
    radial-gradient(ellipse 50% 28% at 50% 112%, rgba(var(--accent-rgb), .075), transparent 100%);
}
.atmosphere::after {
  content: ""; position: absolute; inset: var(--frame-inset);
  border: 1px solid rgba(var(--accent-rgb), .13);
  background:
    linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .48), transparent) top center / 34% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .24), transparent) bottom center / 34% 1px no-repeat;
}

/* The family name appears here only, never below the crest. */
.site-header {
  position: relative; z-index: 5;
  height: var(--header-height);
  flex-shrink: 0;
  margin: var(--frame-inset) var(--frame-inset) 0;
  padding: 0 clamp(20px, 2.6vw, 44px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-bottom: 1px solid rgba(var(--accent-rgb), .12);
  background: linear-gradient(180deg, rgba(2, 8, 6, .75), rgba(2, 8, 6, .26));
}
/* Crisp vector lettering: no webfont downloads, substitutions or layout shifts. */
.brand {
  display: inline-flex; align-items: center; flex: 0 1 auto;
  width: 168.56px; min-width: 0; min-height: 44px; line-height: 1;
}
.brand-logo { display: block; width: 100%; height: auto; }
.brand:hover .brand-logo { filter: drop-shadow(0 0 9px rgba(var(--accent-rgb), .13)); }
.header-nav { display: flex; align-items: center; gap: 32px; flex-shrink: 0; }
.home-link {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  font-size: 13px; font-weight: 500; color: #dfe8e2;
}
.home-link::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), .3);
}
.home-link:hover { color: var(--accent); }

/* A native disclosure, not an application-style ARIA menu.
   Tab, Shift+Tab, Enter and Space work even without JavaScript. */
.site-menu { position: relative; }
.site-menu > summary {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 15px;
  list-style: none; cursor: pointer; user-select: none;
  border: 1px solid rgba(var(--accent-rgb), .23);
  border-radius: 7px; background: rgba(8, 25, 17, .6);
  color: #e4f0e8; font-size: 13px; font-weight: 500;
  transition: border-color .18s ease, background .18s ease;
}
.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu > summary::marker { content: ""; }
.site-menu > summary:hover,
.site-menu[open] > summary {
  border-color: rgba(var(--accent-rgb), .55);
  background: rgba(0, 220, 120, .075);
}
.menu-grid-icon { width: 14px; height: 14px; color: var(--accent); }
.menu-chevron { width: 12px; height: 12px; color: #9cafA3; transition: transform .18s ease; }
.site-menu[open] .menu-chevron { transform: rotate(180deg); }
.mobile-label { display: none; }
.menu-panel {
  position: absolute; top: calc(100% + 18px); right: 0;
  width: 380px; max-width: calc(100vw - 48px);
  max-height: calc(100svh - 144px); overflow-y: auto;
  padding: 19px 10px 10px;
  border: 1px solid rgba(var(--accent-rgb), .24); border-radius: 12px;
  background: rgba(5, 17, 11, .97);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55), 0 0 28px rgba(0, 220, 120, .025);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.menu-heading {
  margin: 0 12px 13px; padding-bottom: 15px;
  display: flex; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid rgba(var(--accent-rgb), .12);
  color: var(--muted); font-size: 10px; line-height: 1.3;
  font-weight: 500; text-transform: uppercase; letter-spacing: .13em;
}
.menu-heading span:first-child { color: #deebe2; }
.site-links { list-style: none; margin: 0; padding: 0; }
.site-links li + li { margin-top: 3px; }
.menu-link {
  display: flex; align-items: center; gap: 12px;
  min-height: 76px; padding: 12px; border-radius: 7px;
  border: 1px solid transparent;
}
a.menu-link { transition: background .16s ease, border-color .16s ease; }
a.menu-link:hover, a.menu-link:focus-visible {
  background: rgba(var(--accent-rgb), .065);
  border-color: rgba(var(--accent-rgb), .14);
}
.menu-icon {
  display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 36px;
  border: 1px solid rgba(var(--accent-rgb), .17); border-radius: 7px;
  background: rgba(var(--accent-rgb), .035); color: #7fbd99;
}
.menu-icon svg { width: 17px; height: 17px; }
.menu-link[aria-current="page"] .menu-icon { color: var(--accent); }
.menu-copy { min-width: 0; flex: 1; }
.menu-title { display: block; font-size: 13px; line-height: 1.4; font-weight: 500; color: #e8efe9; }
.menu-description { display: block; margin-top: 4px; color: #9cafA3; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.menu-state { flex-shrink: 0; font-size: 10px; white-space: nowrap; }
.menu-current { color: var(--accent); }
.menu-soon { color: #a9b8af; padding: 4px 6px; border: 1px solid #26372d; border-radius: 4px; background: #0b1911; }
.menu-arrow { font-size: 18px; color: var(--accent); }
.menu-link[aria-disabled="true"] { cursor: default; }

/* One centered coat of arms. No name, caption, biography or extra sections. */
.stage {
  position: relative; z-index: 1; flex: 1 0 auto;
  display: grid; place-items: center; isolation: isolate;
  padding: 26px 32px 22px;
}
.arms { margin: 0; display: grid; place-items: center; max-width: 100%; }
.arms img {
  display: block; width: auto;
  height: min(65svh, 600px, calc(100svh - var(--header-height) - var(--frame-inset) - var(--footer-height) - 48px));
  max-width: min(78vw, 500px); object-fit: contain;
  filter: drop-shadow(0 17px 30px rgba(0, 0, 0, .4));
}
/* Discreet, bottom-centered copyright. A static year is present without JS. */
.site-footer {
  position: relative; z-index: 1; flex-shrink: 0;
  min-height: var(--footer-height);
  display: grid; place-items: center;
  padding: 12px 26px calc(var(--frame-inset) + 8px);
  text-align: center;
}
.site-footer p {
  margin: 0; color: #92a69a; font-size: 11px;
  font-weight: 400; line-height: 1.6; letter-spacing: .035em;
}
@media (max-width: 600px) {
  :root { --frame-inset: 14px; --header-height: 72px; --footer-height: 62px; }
  .site-header { padding: 0 15px; gap: 14px; }
  .brand { width: min(31.906vw, 135.45px); }
  .header-nav { gap: 18px; }
  .home-link { display: none; }
  .desktop-label { display: none; }
  .mobile-label { display: inline; }
  .site-menu > summary { padding: 0 12px; gap: 8px; }
  .menu-panel {
    position: fixed; top: calc(var(--frame-inset) + var(--header-height) + 12px);
    left: 26px; right: 26px; width: auto; max-width: none;
    max-height: calc(100svh - var(--frame-inset) - var(--header-height) - 40px);
  }
  .atmosphere::before {
    background:
      radial-gradient(ellipse 85% 51% at 50% 51%, var(--deep), transparent 83%),
      radial-gradient(ellipse 85% 25% at 50% 115%, rgba(var(--accent-rgb), .05), transparent 100%);
  }
  .stage { padding: 24px 24px 22px; }
  .arms img { width: min(82vw, 380px); height: auto; max-width: 100%; max-height: calc(100svh - var(--header-height) - var(--frame-inset) - var(--footer-height) - 48px); }
}
@media (max-width: 360px) {
  .site-header { padding: 0 14px; }
  .brand { width: min(31.304vw, 112.574px); }
  .site-header { gap: 10px; }
  .site-menu > summary { padding: 0 9px; gap: 6px; }
  .menu-grid-icon { display: none; }
  .site-footer p { font-size: 10px; letter-spacing: 0; }
  .menu-panel { left: 22px; right: 22px; padding: 16px 6px 6px; }
  .menu-link { gap: 9px; padding: 10px 8px; }
  .menu-icon { flex-basis: 29px; width: 29px; }
  .menu-soon { font-size: 9px; padding: 4px; }
}
@media (max-height: 640px) and (min-width: 601px) {
  :root { --frame-inset: 18px; --header-height: 62px; }
  .brand { width: 144.48px; }
  .stage { padding: 12px 24px 14px; }
  .arms img { height: calc(100svh - var(--header-height) - var(--frame-inset) - var(--footer-height) - 26px); }
  .menu-panel { max-height: calc(100svh - 115px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
