/* ============================================================
   Homepage redesign (2026) — scoped to body.home-page only.
   Loaded exclusively by layouts/index.html; no other page is
   affected. Dark-mode overrides live in homepage.dark.css.
   ============================================================ */

body.home-page {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #1b1b1b;
  background: #fff;
  padding-top: 64px; /* shared navbar is position:fixed */
}

body.home-page .home-container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}

body.home-page .home-main {
  flex: 1 0 auto; /* body is flex column (main.css): keep footer at bottom */
}

/* links: teal accent, scoped to the homepage */
body.home-page a {
  color: #087f8c;
}
body.home-page a:hover,
body.home-page a:focus {
  color: #065f69;
}
body.home-page a:focus-visible {
  outline: 2px solid #087f8c;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------------- top bar ---------------- */
body.home-page .home-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  border-bottom: 1px solid #eaeaea;
}
body.home-page .home-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
}
body.home-page .home-brand {
  font-size: 20px;
  font-weight: 800;
  color: #1b1b1b;
  text-decoration: none;
}
body.home-page .home-brand:hover {
  color: #087f8c;
}
body.home-page .home-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 28px;
}
body.home-page .home-nav a {
  font-size: 15.5px;
  font-weight: 600;
  color: #4a4a4a;
  text-decoration: none;
  padding: 6px 0;
}
body.home-page .home-nav a:hover,
body.home-page .home-nav a:focus {
  color: #087f8c;
}
body.home-page .home-nav .home-lang {
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13.5px;
  color: #4a4a4a;
}
body.home-page .home-nav .home-lang:hover {
  border-color: #087f8c;
  color: #087f8c;
}

/* Related Pages popup (About / CV) — same slow_hover behavior as the shared nav */
body.home-page .home-nav .slow_hover {
  position: relative;
  display: inline-block;
}
body.home-page .home-nav .slow_hover > a {
  font-size: 15.5px;
  font-weight: 600;
  color: #4a4a4a;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: none;
}
body.home-page .home-nav .slow_hover > a:hover,
body.home-page .home-nav .slow_hover > a:focus {
  color: #087f8c;
}
body.home-page .home-nav .slow_hover .hover_popup {
  z-index: 1040;
  left: 0;
  top: 100%;
  margin-top: 8px;
}

/* ---------------- hero ---------------- */
body.home-page .home-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0 8px;
}
body.home-page .home-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #087f8c;
  margin: 0 0 14px;
}
body.home-page .home-heading {
  font-size: 52px;
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 10px;
  min-height: 1.15em; /* reserve space while typed.js runs */
}
body.home-page .home-tagline {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  color: #1b1b1b;
  margin: 0 0 18px;
}
body.home-page .home-description {
  font-size: 19px;
  line-height: 1.55;
  color: #4a4a4a;
  max-width: 560px;
  margin: 0 0 26px;
}

/* buttons */
body.home-page .home-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
}
body.home-page .home-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
}
body.home-page .home-btn-primary {
  background: #087f8c;
  color: #fff;
  border: 2px solid #087f8c;
}
body.home-page .home-btn-primary:hover,
body.home-page .home-btn-primary:focus {
  background: #066a75;
  border-color: #066a75;
  color: #fff;
}
body.home-page .home-btn-secondary {
  background: transparent;
  color: #087f8c;
  border: 2px solid #087f8c;
}
body.home-page .home-btn-secondary:hover,
body.home-page .home-btn-secondary:focus {
  background: rgba(8, 127, 140, 0.08);
  color: #065f69;
}
body.home-page .home-browse-all {
  margin: 14px 0 0;
  font-size: 14.5px;
}
body.home-page .home-browse-all a {
  color: #666;
  text-decoration: underline;
}
body.home-page .home-browse-all a:hover {
  color: #087f8c;
}

/* portrait: keep circular crop + parallax (leven.js) + shadow,
   drop the old thick dark border ring.
   Left column, centered in that third. */
body.home-page .home-photo-box {
  max-width: 280px;
  margin: 0 auto;
}
body.home-page .home-photo {
  width: 100%;
  border: none;
  padding-bottom: 100%;
  border-radius: 50%;
  overflow: hidden;
  background-color: transparent;
  margin: 0;
  -webkit-box-shadow: 0px 0px 25px 0px rgba(0, 0, 0, 0.8);
  -moz-box-shadow: 0px 0px 25px 0px rgba(0, 0, 0, 0.8);
  box-shadow: 0px 0px 25px 0px rgba(0, 0, 0, 0.8);
}
body.home-page .home-photo .hp-inner {
  background-image: url(/images/main_pic.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  top: -18px;
  bottom: -18px;
  left: -18px;
  right: -18px;
}

/* ---------------- sections ---------------- */
body.home-page .home-section {
  margin: 56px 0;
}
body.home-page .home-h2 {
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 8px;
}
body.home-page .home-section-sub {
  font-size: 17px;
  color: #666;
  margin: 0 0 28px;
}

/* ---------------- selected projects ---------------- */
body.home-page .home-selected {
  margin-top: 48px;
}
body.home-page .home-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}
body.home-page .home-project-card .home-card-imglink {
  display: block;
}
body.home-page .home-project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
  background: #f2f2f2;
}
body.home-page .home-card-title {
  font-size: 22px;
  font-weight: 700;
  margin: 18px 0 6px;
}
body.home-page .home-card-title a {
  color: #1b1b1b;
  text-decoration: none;
}
body.home-page .home-card-title a:hover,
body.home-page .home-card-title a:focus {
  color: #087f8c;
}
body.home-page .home-card-summary {
  font-size: 16px;
  line-height: 1.5;
  color: #444;
  margin: 0 0 6px;
}
body.home-page .home-card-tagline {
  font-size: 13.5px;
  color: #777;
  margin: 0 0 10px;
}
body.home-page .home-card-more {
  margin: 0;
}
body.home-page .home-card-more a {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
body.home-page .home-card-more a:hover,
body.home-page .home-card-more a:focus {
  text-decoration: underline;
}

/* ---------------- more work ---------------- */
body.home-page .home-morework {
  border-top: 1px solid #ececec;
  padding-top: 40px;
}
body.home-page .home-morework-links {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 44px;
}
body.home-page .home-morework-links a {
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
body.home-page .home-morework-links a:hover,
body.home-page .home-morework-links a:focus {
  text-decoration: underline;
}

/* ---------------- existing broader lists (kept, quieter) ---------------- */
body.home-page .home-lists {
  border-top: 1px solid #ececec;
  padding-top: 40px;
}
body.home-page .home-lists-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 48px;
}
body.home-page .home-lists h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
}
body.home-page .home-lists .project-list h4 {
  font-size: 17px;
  font-weight: 700;
}
body.home-page .home-lists .project-list p {
  font-size: 15px;
  color: #555;
}
body.home-page .home-lists .link-button {
  font-size: 15px;
}

/* ---------------- small lower-page note ---------------- */
body.home-page .home-note {
  font-size: 13.5px;
  color: #888;
  border-left: 3px solid #e5e5e5;
  padding: 8px 14px;
  margin: 40px 0;
  max-width: 720px;
}
body.home-page .home-note p {
  margin: 0;
  line-height: 1.5;
}

/* ---------------- contact invitation ---------------- */
body.home-page .home-contact {
  border-top: 1px solid #ececec;
  padding-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
}
body.home-page .home-contact-text h2 {
  margin: 0 0 6px;
}
body.home-page .home-contact-text p {
  margin: 0;
  font-size: 17px;
  color: #555;
}

/* ---------------- footer line + supporting links ---------------- */
body.home-page .home-footerline {
  border-top: 1px solid #ececec;
  margin-top: 56px;
  padding: 20px 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14.5px;
  color: #555;
}
body.home-page .home-footerline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
body.home-page .home-footerline-links a {
  color: #555;
  text-decoration: none;
  font-weight: 600;
}
body.home-page .home-footerline-links a:hover,
body.home-page .home-footerline-links a:focus {
  color: #087f8c;
}
body.home-page .home-support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 13px;
  padding: 8px 0 28px;
}
body.home-page .home-support-links a {
  color: #888;
  text-decoration: none;
}
body.home-page .home-support-links a:hover,
body.home-page .home-support-links a:focus {
  color: #087f8c;
  text-decoration: underline;
}

/* Footer social stacks: gray circles, teal on hover */
body.home-page footer .footer-links a {
  color: #404040;
}
body.home-page footer .footer-links a:hover .fa-circle,
body.home-page footer .footer-links a:focus .fa-circle {
  color: #087f8c;
}

/* ---------------- responsive ---------------- */
@media only screen and (max-width: 900px) {
  body.home-page .home-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 36px;
  }
  /* phone: text above the portrait */
  body.home-page .home-hero-text {
    order: 0;
  }
  body.home-page .home-hero-photo {
    order: 1;
  }
  body.home-page .home-photo-box {
    max-width: 200px;
    margin: 0 auto;
  }
  body.home-page .home-heading {
    font-size: 38px;
  }
  body.home-page .home-tagline {
    font-size: 24px;
  }
  body.home-page .home-description {
    font-size: 17.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page .home-photo .hp-inner,
  body.home-page .home-photo .hp-inner.transition {
    transition: none !important;
  }
}

@media only screen and (max-width: 700px) {
  body.home-page .home-project-grid,
  body.home-page .home-lists-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
  body.home-page .home-heading {
    font-size: 33px;
  }
  body.home-page .home-h2 {
    font-size: 27px;
  }
  body.home-page .home-section {
    margin: 44px 0;
  }
  body.home-page .home-nav {
    gap: 6px 18px;
  }
  body.home-page .home-nav a {
    font-size: 14px;
  }
}
