/* ==========================================================================
   Aeon Bloc: Global Components (AB-WEB-11)
   ========================================================================== */

/* ---------------------------------------------------------------------- */
/* Header / Navigation (AB-WEB-03)                                        */
/* ---------------------------------------------------------------------- */
.site-header {
  /* position: fixed rather than sticky. Sticky is unreliable on mobile
     browsers (notably iOS Safari) once backdrop-filter is involved, and can
     let the header scroll away with the page instead of staying pinned.
     Fixed always anchors to the viewport regardless of scroll direction. */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) var(--ease-standard);
  /* Forces the header onto its own GPU compositing layer. iOS Safari has a
     documented bug where position: fixed elements that also have
     backdrop-filter applied directly can detach from the viewport and
     appear to scroll with the page during a scroll gesture, then "snap"
     back once scrolling stops. translateZ(0) promotes the element to its
     own layer up front instead of leaving it to iOS's compositor. */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
/* The blur itself lives on a separate ::before layer behind the header's
   content rather than on the fixed element directly, which is the other
   half of the iOS Safari fix above: keeping backdrop-filter off the
   position: fixed box itself avoids the detachment bug entirely rather
   than just mitigating it. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
}

.site-header__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  transition: height var(--duration-base) var(--ease-standard);
}
.site-header.is-scrolled .site-header__inner {
  height: var(--header-height-scrolled);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--color-black);
  flex-shrink: 0;
}
.site-logo:hover { opacity: 0.8; }
.site-logo img { height: 28px; width: auto; }

.primary-nav { display: none; }
@media (min-width: 960px) {
  .primary-nav {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .primary-nav > li { position: relative; }
  .primary-nav a {
    text-decoration: none;
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--color-gray-1);
    padding: var(--space-2) 0;
    position: relative;
  }
  .primary-nav a:hover { color: var(--color-black); }
  .primary-nav a[aria-current="page"] { color: var(--color-black); }
  .primary-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--color-gold);
  }
}

.nav-header-actions { display: flex; align-items: center; gap: var(--space-3); }

/* Technologies dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 180px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-fast) var(--ease-standard);
  list-style: none;
  margin: 0;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
}
.dropdown li a {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-weight: 500;
  white-space: nowrap;
}
.dropdown li a:hover { background: #f6f4ee; color: var(--color-black); }
.dropdown .dropdown-divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-1) var(--space-2);
}

/* Mobile menu toggle */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-black);
}
@media (min-width: 960px) { .menu-toggle { display: none; } }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-white);
  padding: var(--space-4) var(--gutter);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--duration-base) var(--ease-standard);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-6);
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { border-bottom: 1px solid var(--color-border); }
.mobile-nav a {
  display: block;
  padding: var(--space-4) 0;
  font-size: var(--fs-body-lg);
  font-weight: 600;
  text-decoration: none;
  color: var(--color-black);
}
.mobile-nav__cta { margin-top: var(--space-5); }
@media (min-width: 960px) { .mobile-nav { display: none; } }

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-small);
  padding: 0.85em 1.6em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard);
}
.btn--primary {
  background: var(--color-black);
  color: var(--color-white);
}
.btn--primary:hover { background: var(--color-gold-dark); }
.section--inverse .btn--primary {
  background: var(--color-gold);
  color: var(--color-black);
}
.section--inverse .btn--primary:hover { background: var(--color-white); }

.btn--secondary {
  background: transparent;
  color: var(--color-black);
  border-color: var(--color-gray-4);
}
.btn--secondary:hover { border-color: var(--color-black); }
.section--inverse .btn--secondary {
  color: var(--color-white);
  border-color: var(--color-gray-2);
}
.section--inverse .btn--secondary:hover { border-color: var(--color-white); }

.btn--tertiary {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-black);
  font-weight: 600;
  text-underline-offset: 4px;
  text-decoration: underline;
  text-decoration-color: var(--color-gray-4);
}
.btn--tertiary:hover { text-decoration-color: currentColor; }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero {
  padding-block: var(--space-9) var(--space-8);
}
.hero__inner {
  max-width: 46rem;
}
.hero__eyebrow { margin-bottom: var(--space-4); }
.hero h1 { font-size: var(--fs-hero); margin-bottom: var(--space-4); }
.hero__lede {
  font-size: var(--fs-body-lg);
  color: var(--color-gray-1);
  max-width: 38rem;
  margin-bottom: var(--space-5);
}
.hero__visual {
  margin-top: var(--space-8);
  width: 100%;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
}
.hero__visual svg { width: 100%; height: auto; display: block; }

/* ---------------------------------------------------------------------- */
/* Empty state (AB-WEB-11)                                                */
/* ---------------------------------------------------------------------- */
.empty-state {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
}
.empty-state p { max-width: 32rem; margin-inline: auto; }

/* ---------------------------------------------------------------------- */
/* Content Block (AB-WEB-11)                                               */
/* ---------------------------------------------------------------------- */
.content-block { max-width: var(--max-width-reading); }
.content-block + .content-block { margin-top: var(--space-6); }
.content-block__label { margin-bottom: var(--space-2); }

/* Two-column layout for philosophy/company-intro sections */
.split {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; }
}

/* ---------------------------------------------------------------------- */
/* Technology Card (AB-WEB-11)                                            */
/* ---------------------------------------------------------------------- */
.tech-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

.tech-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard);
}
.tech-card:hover { border-color: var(--color-gray-3); box-shadow: var(--shadow-card); }
.tech-card__meta {
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold-dark);
  font-weight: 700;
}
.tech-card__name { margin-bottom: 0; }
.tech-card__summary { color: var(--color-gray-1); }
.tech-card__footer {
  margin-top: auto;
  display: flex;
  gap: var(--space-4);
  align-items: center;
  padding-top: var(--space-2);
}

/* ---------------------------------------------------------------------- */
/* Principles / Why grid                                                  */
/* ---------------------------------------------------------------------- */
.principles-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .principles-grid { grid-template-columns: repeat(3, 1fr); }
}
.principle {
  padding-top: var(--space-3);
  border-top: 2px solid var(--color-gold);
}
.principle h3 { font-size: var(--fs-body-lg); font-family: var(--font-body); font-weight: 700; }
.section--inverse .principle { border-top-color: var(--color-gold); }

/* ---------------------------------------------------------------------- */
/* News Card                                                               */
/* ---------------------------------------------------------------------- */
.news-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); }
}
.news-card {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3);
}
.news-card__meta {
  display: flex;
  gap: var(--space-3);
  font-size: var(--fs-caption);
  color: var(--color-gray-2);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.news-card h3 { font-size: 1.125rem; margin-bottom: var(--space-2); }
.news-card p { font-size: var(--fs-small); }

/* ---------------------------------------------------------------------- */
/* Interior Page Hero (shorter variant of Home hero, per AB-WEB-11)        */
/* ---------------------------------------------------------------------- */
.page-hero {
  padding-block: var(--space-7) var(--space-6);
  border-bottom: 1px solid var(--color-border);
}
.page-hero__inner { max-width: 46rem; }
.page-hero h1 { font-size: var(--fs-h1); margin-bottom: var(--space-3); }
.page-hero .hero__lede { margin-bottom: var(--space-4); }

/* ---------------------------------------------------------------------- */
/* Lifecycle / process diagram (AB-WEB-06)                                */
/* ---------------------------------------------------------------------- */
.lifecycle {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: stretch;
  justify-content: center;
}
.lifecycle__step {
  flex: 1 1 120px;
  min-width: 110px;
  text-align: center;
  padding: var(--space-4) var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--fs-small);
}
.lifecycle__arrow {
  align-self: center;
  color: var(--color-gray-3);
  font-size: 1.2rem;
  padding-inline: var(--space-1);
}
@media (max-width: 640px) {
  .lifecycle { flex-direction: column; }
  .lifecycle__arrow { transform: rotate(90deg); align-self: center; }
}

/* ---------------------------------------------------------------------- */
/* FAQ Accordion (AB-WEB-11 future component, needed by Investors/Contact) */
/* ---------------------------------------------------------------------- */
.faq-list { border-top: 1px solid var(--color-border); }
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-3);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-body);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  color: var(--color-black);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--color-gold-dark);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: var(--space-2); }
.section--inverse .faq-item { border-color: #2a2a2a; }
.section--inverse .faq-item summary { color: var(--color-white); }

/* ---------------------------------------------------------------------- */
/* Inquiry category tabs (AB-WEB-10): select a category, jump to form     */
/* No destination addresses are ever rendered in markup or client JS.     */
/* ---------------------------------------------------------------------- */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.category-tab {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-small);
  padding: 0.7em 1.25em;
  border: 1px solid var(--color-gray-4);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-gray-1);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-standard),
              background-color var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard);
}
.category-tab:hover { border-color: var(--color-black); color: var(--color-black); }
.category-tab.is-active {
  background: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
}

/* Honeypot field: present in the DOM for bots, hidden from sighted users
   and screen readers, never reachable by keyboard. Real users never see it. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  max-width: 38rem;
}
@media (min-width: 640px) {
  .form-grid--two { grid-template-columns: 1fr 1fr; }
}
.form-field { display: flex; flex-direction: column; gap: var(--space-2); }
.form-field label { font-weight: 600; font-size: var(--fs-small); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  padding: 0.75em 0.9em;
  border: 1px solid var(--color-gray-4);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-black);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-gold-dark);
  outline-offset: 1px;
  border-color: var(--color-gold-dark);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: var(--fs-caption); color: var(--color-gray-2); }
.form-success {
  display: none;
  border: 1px solid var(--color-gray-4);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: #f6f4ee;
}
.form-success.is-visible { display: block; }

.form-error {
  display: none;
  border: 1px solid var(--color-black);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: var(--color-white);
}
.form-error.is-visible { display: block; }
.form-error h3 { font-size: 1.1rem; }

.form-submitting { opacity: 0.6; pointer-events: none; }

/* ---------------------------------------------------------------------- */
/* Simple stat / snapshot row (Investors)                                  */
/* ---------------------------------------------------------------------- */
.snapshot-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.snapshot-item {
  border-top: 2px solid var(--color-gold);
  padding-top: var(--space-2);
}
.snapshot-item h4 {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gray-2);
  margin-bottom: var(--space-1);
}
.snapshot-item p { font-family: var(--font-display); font-size: 1.1rem; color: var(--color-black); }

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.site-footer {
  background: var(--color-black);
  color: var(--color-gray-4);
  padding-block: var(--space-8) var(--space-5);
}
.footer-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-7);
  border-bottom: 1px solid #262626;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
}
.footer-brand .site-logo { color: var(--color-white); }
.footer-brand p { max-width: 26rem; margin-top: var(--space-3); color: var(--color-gray-3); font-size: var(--fs-small); }
.footer-col h4 {
  font-family: var(--font-body);
  color: var(--color-white);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: var(--space-2); }
.footer-col a { text-decoration: none; color: var(--color-gray-4); font-size: var(--fs-small); }
.footer-col a:hover { color: var(--color-white); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-4);
  font-size: var(--fs-caption);
  color: var(--color-gray-3);
}
