/* Kahom — shared stylesheet */

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
}

/* ---- Elevation: one shadow style per DESIGN.md ---- */
.ambient-shadow {
  box-shadow: 0 4px 20px -2px rgba(35, 38, 41, 0.06);
}
.ambient-shadow:hover {
  box-shadow: 0 10px 25px -4px rgba(35, 38, 41, 0.08);
}

/* ---- Ticker / marquee ---- */
@keyframes kahom-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: kahom-scroll 36s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation-duration: 90s; }
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Sticky header shadow on scroll ---- */
header.is-scrolled {
  box-shadow: 0 4px 20px -4px rgba(11, 21, 46, 0.10);
}

/* ---- Mobile nav panel ---- */
.mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.mobile-nav.is-open {
  max-height: 480px;
}
.nav-toggle-icon {
  transition: transform 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  transform: rotate(90deg);
}

/* ---- Keyboard focus visibility ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #006071;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Initials avatar (replaces stand-in stock portraits) ---- */
.avatar-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(122, 211, 233, 0.35), transparent 55%),
    linear-gradient(135deg, #0B152E 0%, #006071 100%);
  color: #ffffff;
  overflow: hidden;
}
.avatar-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  mix-blend-mode: overlay;
}
.avatar-mark .avatar-initials {
  position: relative;
  z-index: 1;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

/* ---- Blueprint / schematic motif (signature decorative element) ---- */
.blueprint {
  background-image:
    linear-gradient(rgba(122, 211, 233, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 211, 233, 0.14) 1px, transparent 1px);
  background-size: 40px 40px;
}
.blueprint-dark {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ---- Form success state ---- */
.form-success {
  display: none;
}
.form-success.is-visible {
  display: flex;
}
