.developer-brand {
  display: flex;
  align-items: center;
  gap: 23px;
  flex-shrink: 0;
}

.developer-brand-name {
  border-left: 1px solid var(--line, #dbe4e9);
  padding-left: 22px;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -.03em;
  white-space: nowrap;
}

.developer-brand-name strong { font-weight: 500; }
.developer-brand-name .brand-dot { color: var(--orange, #ff671b); }

.site-header {
  --brand-full-height: 86px;
  --brand-symbol-height: 44px;
}

.site-header .developer-brand-logo {
  position: relative;
  display: block;
  flex: none;
  width: calc(var(--brand-full-height) * 370 / 406);
  height: var(--brand-full-height);
}

.site-header .brand-full {
  display: block;
  height: var(--brand-full-height);
  opacity: 1;
  transition: opacity .18s ease;
}

.site-header .brand-symbol {
  position: absolute;
  inset: 0;
  margin: auto;
  width: calc(var(--brand-symbol-height) * 185 / 198 + 8px);
  height: calc(var(--brand-symbol-height) + 8px);
  overflow: hidden;
  transform: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.site-header .brand-symbol > .brand-image {
  position: absolute;
  left: calc(var(--brand-symbol-height) * -95 / 198 + 4px);
  top: calc(var(--brand-symbol-height) * -5 / 198 + 4px);
  width: calc(var(--brand-symbol-height) * 370 / 198);
  height: calc(var(--brand-symbol-height) * 406 / 198);
  max-width: none;
  transition: none;
}

.site-header .header-inner { transition: height .2s ease; }
.site-header.is-compact .header-inner { height: 74px; }
.site-header.is-compact .developer-brand-logo { height: 60px; }
.site-header.is-compact .brand-full { opacity: 0; pointer-events: none; }
.site-header.is-compact .brand-symbol { opacity: 1; }

/* Exact framing used by the main site: no changes to the source SVG artwork. */
.logo-motion {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 420 / 497;
}

.site-header .brand-full .logo-motion {
  height: var(--brand-full-height);
  width: calc(var(--brand-full-height) * 420 / 497);
  margin-inline: auto;
}

.logo-motion-object {
  position: absolute;
  left: calc(-100% * 190 / 420);
  top: calc(-100% * 145 / 497);
  width: calc(100% * 800 / 420);
  height: calc(100% * 800 / 497);
  max-width: none;
  border: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease;
}

.logo-motion > .logo-static {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: opacity .14s ease;
}

.logo-motion.is-motion-visible > .logo-motion-object { opacity: 1; }
.logo-motion.is-motion-visible > .logo-static { opacity: 0; }
.footer .footer-logo { display: block; background: transparent; padding: 0; width: 96px; }
.footer .footer-logo .logo-motion { width: 100%; filter: brightness(0) invert(1); }
.footer .footer-logo .logo-motion > .brand-image { width: 100%; height: 100%; object-fit: contain; }

.logo-motion-toggle {
  display: inline-flex;
  align-items: center;
  border: 0;
  padding: 8px 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.logo-motion-toggle[hidden] { display: none; }
.logo-motion-toggle:hover { color: #fff; }
.logo-motion-toggle:focus-visible { outline: 2px solid var(--orange, #ff671b); outline-offset: 4px; }

@media (max-width: 980px) { .site-header { --brand-full-height: 77px; } }
@media (max-width: 820px) {
  .site-header { --brand-full-height: 72px; --brand-symbol-height: 40px; }
  .site-header.is-compact .developer-brand-logo { height: 54px; }
  .site-header.is-compact .header-inner { height: 68px; }
  .developer-brand { gap: 16px; }
  .developer-brand-name { padding-left: 16px; font-size: 17px; }
}
@media (max-width: 640px) {
  .footer .footer-logo { width: 76px; }
  .developer-brand-name { font-size: 16px; }
}
@media (max-width: 380px) {
  .site-header { --brand-full-height: 66px; }
  .developer-brand { gap: 10px; }
  .developer-brand-name { padding-left: 10px; font-size: 14px; }
  .site-header .header-inner { gap: 12px; }
  .menu-toggle { gap: 8px; font-size: 12px; }
}
@supports (-webkit-touch-callout: none) {
  .site-header .header-inner { -webkit-transform: translateZ(0); transform: translateZ(0); }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.logo-motion-enabled) .logo-motion > .logo-motion-object { display: none !important; }
  body:not(.logo-motion-enabled) .logo-motion > .logo-static { opacity: 1 !important; }
}
