/* AERI Intelligence: the company section on the home page */
.aeri-home { --a-blue: #2f7bff; --a-line: rgba(173, 196, 255, 0.16); padding: 40px 0 20px; }
.aeri-head { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: end; }
.aeri-head .section-title { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -0.04em; margin: 8px 0 14px; }
.aeri-lede { margin: 0 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.25; letter-spacing: -0.02em; color: #f3f6ff; max-width: 30ch; }
.aeri-text { margin: 0 0 22px; max-width: 62ch; color: var(--text-soft); line-height: 1.65; }
.aeri-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.aeri-visit { background: var(--a-blue); border-color: var(--a-blue); color: #fff; font-weight: 600; }
.btn.aeri-visit:hover { background: #4a8dff; border-color: #4a8dff; }

.aeri-owner { display: flex; gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--a-line); border-radius: 20px; background: rgba(255, 255, 255, 0.03); }
.aeri-owner-mark { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: #fff; color: #0d2147; font-family: Georgia, serif; font-weight: 700; font-size: 1.6rem; }
.aeri-owner div { display: grid; gap: 2px; }
.aeri-owner-kicker { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.aeri-owner b { font-size: 1.15rem; color: #fff; }
.aeri-owner div > span:last-child { font-size: 0.82rem; color: var(--text-dim); line-height: 1.4; }

/* the screens: a sideways scroller of the real app */
.aeri-shots-wrap { position: relative; margin: 46px 0 36px; }
.aeri-shots {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 4px; padding: 6px 4px 18px; outline: none;
  scrollbar-width: thin; scrollbar-color: rgba(173, 196, 255, 0.3) transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 54px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 54px), transparent 100%);
}
.aeri-shots:focus-visible { box-shadow: 0 0 0 2px rgba(120, 170, 255, 0.7); border-radius: 12px; }
.aeri-shot { margin: 0; flex: none; scroll-snap-align: start; display: grid; gap: 12px; }
.aeri-shot img { display: block; height: min(560px, 68vh); width: auto; border-radius: 22px; border: 1px solid var(--a-line); box-shadow: 0 28px 60px -34px rgba(0, 0, 0, 0.85); background: #0c1a33; }
.aeri-shot figcaption { display: grid; gap: 2px; max-width: 30ch; }
.aeri-shot figcaption b { font-size: 0.95rem; color: #fff; }
.aeri-shot figcaption span { font-size: 0.8rem; line-height: 1.4; color: var(--text-dim); }
.aeri-nav { position: absolute; right: 0; top: -40px; display: flex; gap: 8px; }
.aeri-nav button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--a-line); background: rgba(255, 255, 255, 0.04); color: var(--text); font-size: 1rem; cursor: pointer; transition: border-color 140ms, background 140ms; }
.aeri-nav button:hover { border-color: rgba(190, 210, 255, 0.7); background: rgba(255, 255, 255, 0.09); }

.aeri-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--a-line); }
.aeri-grid li { padding: 22px 22px 24px 0; border-bottom: 1px solid var(--a-line); display: grid; gap: 8px; align-content: start; }
.aeri-grid li:not(:nth-child(3n+1)) { padding-left: 22px; border-left: 1px solid var(--a-line); }
.aeri-grid b { font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: 1.2rem; letter-spacing: -0.02em; color: #f6f8ff; }
.aeri-grid span { font-size: 0.9rem; line-height: 1.6; color: var(--text-soft); }

.aeri-close { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding: 26px 0 6px; }
.aeri-close p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.03em; color: #f3f6ff; }

.role-line .role-link { color: inherit; border-bottom: 1px solid var(--a-line, rgba(173, 196, 255, 0.4)); }
.role-line .role-link:hover { border-bottom-color: #fff; }

@media (max-width: 900px) {
  .aeri-head { grid-template-columns: 1fr; gap: 26px; }
  .aeri-grid { grid-template-columns: 1fr 1fr; }
  .aeri-grid li, .aeri-grid li:not(:nth-child(3n+1)) { padding: 20px 18px 22px 0; border-left: 0; }
  .aeri-grid li:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--a-line); }
  .aeri-nav { display: none; }
}
@media (max-width: 560px) {
  .aeri-grid { grid-template-columns: 1fr; }
  .aeri-grid li, .aeri-grid li:nth-child(even) { padding: 18px 0 20px; border-left: 0; }
  .aeri-shot img { height: min(480px, 64vh); }
}

#aeri { scroll-margin-top: 64px; }
