:root {
  --bg: #1d241f;
  --bg-alt: #242b25;
  --text: #f3f3f3;
  --muted: #d9d9d9;
  --muted-soft: #c7c7c7;
  --accent: #3de8ff;
  --accent-light: #91f7ff;
  --gold: #c08a2f;
  --green: #baff7d;
  --max-width: 760px;
  --shadow-soft: 0 8px 18px rgba(0, 0, 0, 0.28);
  --shadow-strong: 0 12px 24px rgba(0, 0, 0, 0.35);
  --button-shadow:
    0 6px 14px rgba(0, 0, 0, 0.35),
    inset 0 2px 8px rgba(255, 255, 255, 0.35);
  --button-shadow-hover:
    0 10px 18px rgba(0, 0, 0, 0.4),
    inset 0 2px 8px rgba(255, 255, 255, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(80, 90, 80, 0.18), transparent 38%),
    linear-gradient(90deg, #171d19 0%, var(--bg-alt) 50%, #171d19 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.page-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.hero-card,
.section-card {
  text-align: center;
  padding: 2.2rem 1.25rem;
  border-bottom: 4px solid rgba(255, 255, 255, 0.92);
}

.eyebrow {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  margin: 0 0 0.45rem;
  letter-spacing: 0.01em;
}

h1 {
  margin: 0;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
}

.hero-name {
  display: block;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.05;
}

.hero-role {
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
  line-height: 1.2;
}

.hero-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1.2;
}

.subtitle,
.section-intro {
  max-width: 640px;
  margin: 1rem auto 1.5rem;
  color: var(--muted);
  font-size: 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: center;
  justify-items: center;
  margin: 1.75rem auto;
  max-width: 500px;
}

.brand-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.primary-logo,
.secondary-logo {
  width: 190px;
  object-fit: contain;
}

.portrait {
  width: 185px;
  border: 8px solid #d8d8d8;
  box-shadow: var(--shadow-strong);
}

.primary-actions,
.contact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.25rem;
}

.button,
.portal-button,
.resource-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 0.78rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: #111;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 100%);
  box-shadow: var(--button-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover,
.portal-button:hover,
.resource-grid a:hover {
  transform: translateY(-1px);
  box-shadow: var(--button-shadow-hover);
}

.info-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  padding: 0.7rem 1.25rem;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.015);
}

.info-pill strong {
  color: var(--green);
  font-size: 1rem;
}

.email-pill {
  font-weight: 500;
}

.resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  max-width: 340px;
  margin: 1.35rem auto 0;
  justify-items: center;
}

.resource-grid a {
  width: 100%;
  min-width: 0;
}

.portal-card h2 {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  font-weight: 400;
  margin-bottom: 1rem;
}

.portal-card ul {
  display: inline-block;
  text-align: left;
  font-weight: 700;
  margin: 0 auto 1rem;
  padding-left: 1.35rem;
  max-width: 540px;
}

.portal-card ul li {
  margin-bottom: 0.45rem;
}

.portal-card p {
  margin: 0.8rem 0 1.25rem;
}

.portal-button {
  font-size: 1.3rem;
  min-width: 190px;
  padding: 0.9rem 1.5rem;
}

.about-card {
  text-align: left;
}

.about-card h2 {
  text-align: center;
  margin-bottom: 1.25rem;
}

.about-card p {
  color: var(--muted-soft);
  margin: 0 0 1rem;
  font-size: 1rem;
}

.gbot-section {
  margin-top: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.gbot-link {
  font-weight: 700;
  color: var(--muted);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.gbot-avatar {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-soft);
}

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1.6rem 1rem 0;
}

.faq-card {
  text-align: left;
}

.faq-card h2 {
  text-align: center;
  margin-bottom: 1.25rem;
}

.faq-item + .faq-item {
  margin-top: 1.5rem;
}

.faq-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--text);
}

.faq-item p {
  margin: 0;
  color: var(--muted-soft);
  font-size: 1rem;
}

@media (max-width: 620px) {
  .page-shell {
    padding: 1rem 0.75rem 2rem;
  }

  .hero-card,
  .section-card {
    padding: 1.6rem 0.8rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.35rem auto;
  }

  .portrait {
    width: 170px;
  }

  .primary-actions {
    flex-direction: column;
    width: 100%;
  }

  .button {
    width: 100%;
    max-width: 280px;
  }

  .contact-pills {
    flex-direction: column;
  }

  .info-pill {
    width: 100%;
    max-width: 320px;
  }

  .resource-grid {
    max-width: 320px;
  }

  .resource-grid a {
    width: 100%;
  }

  .portal-button {
    width: 100%;
    max-width: 280px;
  }

  .jbot-section {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .search-tagline {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
  }
}

:root {
  --accent: #c7d4de;
  --accent-light: #b8c8d4;

  --button-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
  --button-shadow-hover: 0 6px 14px rgba(0, 0, 0, 0.28);
}

.button,
.portal-button,
.resource-grid a {
  color: #0d3b78;
  background: var(--accent);
  border: 1px solid rgba(13, 59, 120, 0.18);
  box-shadow: var(--button-shadow);
  font-weight: 700;
}

.button:hover,
.portal-button:hover,
.resource-grid a:hover {
  background: var(--accent-light);
  border-color: rgba(13, 59, 120, 0.28);
  box-shadow: var(--button-shadow-hover);
}

/* Default: desktop/laptop stays the same */
.mobile-portrait-wrap,
.mobile-subtitle {
  display: none;
}

.desktop-portrait,
.desktop-subtitle {
  display: block;
}

/* Small devices only */
@media (max-width: 768px) {
  /* Show portrait directly under the name */
  .mobile-portrait-wrap {
    display: block;
    margin-top: 0.75rem;
  }

  .mobile-portrait {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    margin: 0 auto;
  }

  /* Hide original subtitle above the grid */
  .desktop-subtitle {
    display: none;
  }

  /* Hide original portrait in the grid */
  .desktop-portrait {
    display: none;
  }

  /* Show subtitle where portrait used to be */
  .mobile-subtitle {
    display: block;
    margin-top: 0;
  }
}
