/* Homepage only. Photo is the supplied family photograph, without generated alterations. */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.07fr .93fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  padding-block: 70px 55px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 -20px auto auto;
  width: 55%;
  height: 85%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 70% 25%, var(--blue-soft), transparent 72%);
}

.hero-eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 23px;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: #009b78;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--green-soft);
}

.hero h1 {
  font-size: clamp(45px, 5.5vw, 77px);
  letter-spacing: -.06em;
  line-height: 1.06;
}

.hero h1 > span {
  color: var(--blue);
  position: relative;
}

.hero h1 > span::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -7px;
  width: 92%;
  height: 7px;
  background: var(--gold-button);
  border-radius: 60% 30% 60% 20%;
  transform: rotate(-1.6deg);
  opacity: .85;
}

.hero-intro {
  max-width: 480px;
  margin-top: 31px;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.8;
}

.hero-scope {
  margin-top: 13px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 29px;
}

.hero-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 33px;
  color: var(--muted);
  font-size: 11px;
}

.hero-summary > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-summary .icon {
  color: var(--blue);
  width: 19px;
  height: 19px;
}

.hero-summary strong {
  margin-right: -3px;
  font-size: 14px;
}

.hero-photo {
  position: relative;
  padding: 9px 9px 0;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 34px;
  box-shadow: var(--shadow);
  margin: 4px;
}

.photo-frame {
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 1 / 1.025;
  background: var(--surface-soft);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 72%;
}

.hero-photo figcaption {
  padding: 18px 17px 19px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.photo-label {
  font-size: 14px;
  font-weight: 750;
  color: var(--text);
}

.hero-photo figcaption > span + span {
  color: var(--muted);
  font-size: 11px;
}

.photo-decoration {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.decoration-one {
  width: 120px;
  height: 120px;
  background: var(--gold-button);
  border-radius: 50%;
  top: -21px;
  right: -17px;
  opacity: .65;
}

.decoration-two {
  width: 94px;
  height: 94px;
  background: var(--blue-soft);
  border: 18px solid var(--blue-soft);
  border-radius: 27px;
  bottom: -18px;
  left: -25px;
  transform: rotate(-13deg);
}

.category-section {
  margin-top: 40px;
}

.recent-container[hidden] + .category-section {
  margin-top: 40px;
}

.recent-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  font-size: 12px;
}

.recent-link > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.recent-link > .icon {
  margin-left: auto;
}

.recent-link .icon {
  width: 17px;
  height: 17px;
}

.about-card {
  position: relative;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 55px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(130deg, var(--blue-soft), var(--surface) 67%);
  padding: 45px;
}

.about-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 45px;
  width: 4px;
  height: 70px;
  border-radius: 0 4px 4px 0;
  background: var(--blue);
}

.about-heading h2 {
  font-size: clamp(27px, 3vw, 37px);
  margin-top: 16px;
  max-width: 320px;
}

.location {
  display: inline-flex;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  margin-top: 27px;
  align-items: center;
}

.location .icon {
  width: 16px;
  height: 16px;
}

.about-copy > p {
  font-size: 15px;
  line-height: 1.9;
}

.contact-block {
  margin-top: 25px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.contact-block h3 {
  font-size: 19px;
  letter-spacing: -.025em;
}

.contact-block p {
  margin-top: 10px;
  font-size: 13px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.contact-actions .button {
  min-height: 46px;
  padding: 11px 18px;
  font-size: 12px;
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    padding-block: 48px;
  }
  .hero h1 {
    font-size: clamp(40px, 5.3vw, 56px);
  }
  .hero-eyebrow {
    font-size: 9px;
  }
  .hero-intro {
    font-size: 15px;
    margin-top: 25px;
  }
  .hero-scope {
    font-size: 11px;
  }
  .hero-summary {
    gap: 16px;
  }
  .photo-frame {
    aspect-ratio: .83;
  }
  .about-card {
    padding: 32px;
    gap: 32px;
  }
}

@media (max-width: 700px) {
  .hero {
    grid-template-columns: 1fr;
    padding-block: 34px 32px;
    gap: 34px;
  }
  .hero-copy {
    max-width: 540px;
  }
  .hero h1 {
    font-size: clamp(42px, 10vw, 60px);
    line-height: 1.1;
  }
  .hero-eyebrow {
    font-size: 10px;
    margin-bottom: 17px;
  }
  .hero-intro {
    font-size: 15px;
    margin-top: 26px;
  }
  .hero-scope {
    font-size: 11px;
    margin-top: 12px;
  }
  .hero-actions {
    margin-top: 23px;
    gap: 9px;
  }
  .hero-actions .button {
    min-height: 48px;
    padding: 12px 17px;
    font-size: 13px;
  }
  .hero-summary {
    margin-top: 23px;
  }
  .hero-photo {
    margin: 0 8px;
    border-radius: 25px;
  }
  .photo-frame {
    aspect-ratio: 1.2;
    border-radius: 18px;
  }
  .photo-frame img {
    object-position: 50% 68%;
  }
  .hero-photo figcaption {
    padding: 13px 13px 16px;
  }
  .decoration-one {
    width: 82px;
    height: 82px;
    top: -13px;
    right: -14px;
  }
  .decoration-two {
    width: 64px;
    height: 64px;
    left: -15px;
    bottom: -12px;
    border-radius: 18px;
  }
  .category-section, .recent-container[hidden] + .category-section {
    margin-top: 25px;
  }
  .about-card {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 28px 23px;
  }
  .about-heading h2 {
    max-width: 100%;
  }
  .location {
    margin-top: 18px;
  }
  .recent-link {
    flex-wrap: wrap;
    gap: 7px;
  }
  .recent-link > span {
    width: 100%;
  }
}

.recent-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recent-link {
  flex: 1;
  min-width: 0;
}

.recent-row > .icon-button {
  min-width: 40px;
  min-height: 40px;
}

/* The full application library is available in the HTML, including without JS. */
.hero-scope { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-scope span { padding: 7px 11px; border: 1px solid var(--border); border-radius: 30px; background: var(--surface); }
.hero-scope span:first-child { color: var(--blue); background: var(--blue-soft); border-color: transparent; }
.app-directory { scroll-margin-top: 108px; }
.directory-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.directory-search { display: flex; align-items: center; flex: 1 1 250px; gap: 10px; min-height: 46px; padding: 0 12px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 12px; }
.directory-search .icon { flex-shrink: 0; width: 19px; color: var(--muted); }
.directory-search input { width: 100%; min-width: 0; min-height: 46px; border: 0; color: var(--text); background: transparent; font: inherit; font-size: 16px; }
.directory-search:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.directory-search input:focus { outline: none; }
.directory-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.directory-count { margin: 18px 0; font-size: 13px; color: var(--muted); }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.app-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.app-image { position: relative; display: block; background: #172132; overflow: hidden; }
.app-image img { width: 100%; aspect-ratio: 16/10; object-fit: contain; }
.app-new { position: absolute; top: 12px; left: 12px; padding: 7px 10px; border: 1px solid #ffffff45; border-radius: 30px; color: #fff; background: #172132eb; font-size: 11px; font-weight: 750; }
.app-copy { padding: 23px; flex: 1; display: flex; flex-direction: column; }
.app-copy .eyebrow { color: var(--accent); font-size: 10px; }
.app-copy h3 { margin-top: 10px; font-size: 23px; line-height: 1.23; letter-spacing: -.035em; }
.app-copy p { margin-top: 13px; font-size: 14px; line-height: 1.75; }
.app-links { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 23px; margin-top: auto; }
.app-links .button { min-height: 44px; padding: 11px 15px; font-size: 12px; }
.app-links .text-link { min-height: 44px; font-size: 12px; }
.app-links .icon { width: 16px; height: 16px; }
.directory-empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--border); border-radius: 20px; background: var(--surface); }
.directory-empty p { margin: 12px 0 20px; }
@media (hover: hover) { .app-card:hover { border-color: var(--accent); box-shadow: var(--shadow); } }
@media (max-width: 1000px) { .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  /* Phone: a compact row per app (thumbnail left, text right) so 13 apps fit in a few screens instead of 13. */
  .app-grid { grid-template-columns: 1fr; gap: 12px; }
  .app-card { display: grid; grid-template-columns: 108px minmax(0, 1fr); border-radius: 18px; }
  .app-image { height: 100%; min-height: 132px; }
  .app-image img { height: 100%; aspect-ratio: auto; object-fit: cover; }
  .app-new { top: 7px; left: 7px; right: 7px; padding: 3px 7px; font-size: 9px; text-align: center; }
  .app-copy { padding: 13px 14px 14px; }
  .app-copy .eyebrow { font-size: 9px; }
  .app-copy h3 { margin-top: 4px; font-size: 17px; }
  .app-copy p { margin-top: 5px; font-size: 12.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .app-links { padding-top: 10px; gap: 6px 12px; }
  .app-links .button { min-height: 38px; padding: 8px 12px; }
  .app-links .text-link { min-height: 38px; }
  .directory-controls { padding: 12px; gap: 12px; }
  .directory-search { flex-basis: 100%; }
  .directory-filters { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .directory-filters .filter-button { padding-inline: 8px; }
  .app-directory { scroll-margin-top: 88px; }
}
