.ami-site-header {
  --ami-header-gradient: linear-gradient(180deg, rgb(7 30 46 / .96), rgb(7 30 46 / .77) 58%, rgb(7 30 46 / 0));
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  min-height: 82px;
  padding: 10px clamp(16px, 3.2vw, 46px);
  background: var(--ami-header-gradient), #122f43;
  color: #fff9ed;
  font-family: Manrope, Arial, sans-serif;
}

.ami-header-brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 1.3vw, 18px);
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.ami-header-brand .ami-logo-glass { padding: 6px 9px; }
.ami-header-brand img {
  display: block;
  width: clamp(88px, 9vw, 126px);
  height: auto;
}

/* The clear rim follows the rounded glass reference. The backing keeps dark letters legible. */
.ami-logo-glass,
.t-logo-plaque.ami-logo-glass {
  --ami-glass-radius: clamp(9px, .85vw, 12px);
  position: relative;
  display: block;
  flex-shrink: 0;
  border: 1px solid rgb(244 249 255 / .45);
  border-radius: var(--ami-glass-radius);
  background: transparent;
  box-shadow: 0 3px 12px rgb(2 16 26 / .24), inset 0 1px rgb(255 255 255 / .23);
}

.ami-logo-glass::before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 round var(--ami-glass-radius));
  background: linear-gradient(145deg, rgb(255 251 242 / .39), rgb(231 242 250 / .31));
  backdrop-filter: blur(10px) saturate(1.12);
  pointer-events: none;
  content: '';
}

.ami-logo-glass img {
  position: relative;
}

.ami-logo-glass::after {
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(ellipse at 11% 6%, rgb(255 215 159 / .85), transparent 34%),
    radial-gradient(ellipse at 86% 91%, rgb(188 226 255 / .82), transparent 34%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  content: '';
}

.ami-header-identity { display: grid; gap: 3px; }
.ami-header-identity strong { font-size: .8rem; line-height: 1.2; }
.ami-header-identity > span { color: #e3ecf1; font-size: .72rem; line-height: 1.25; }

.ami-header-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.7vw, 38px);
}

.ami-header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.ami-header-nav a:hover,
.ami-header-nav [aria-current] {
  color: #f5ca7f;
  text-decoration: underline;
  text-underline-offset: .24em;
}

.ami-site-header a:focus-visible { outline: 2px solid #f5ca7f; outline-offset: 3px; }

@media (min-width: 901px) {
  .ami-site-header-over-image {
    position: absolute;
    inset: 0 0 auto;
    background: var(--ami-header-gradient);
    pointer-events: none;
  }

  .ami-site-header-over-image a { pointer-events: auto; }
  .transformation-site:has(.t-experience[data-finish-open]) > .ami-site-header-over-image {
    position: relative;
    background: var(--ami-header-gradient), #122f43;
  }
}

@media (max-width: 680px) {
  .ami-site-header {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 7px 12px 2px;
  }
  .ami-header-brand .ami-logo-glass { padding: 5px 7px; }
  .ami-header-identity strong { font-size: clamp(.69rem, 3.05vw, .8rem); }
  .ami-header-identity > span { font-size: clamp(.64rem, 2.65vw, .72rem); }
  .ami-header-nav { justify-content: space-between; gap: 8px; }
  .ami-header-nav a { font-size: clamp(.74rem, 3.1vw, .85rem); }
}
