/* Exclusive to index.html; the shared R.E.M. palette and fonts come from styles.css. */
.rem-home {
  background: radial-gradient(ellipse at 88% 8%, #392714 0, transparent 36%), radial-gradient(ellipse at 5% 55%, #211a10 0, transparent 38%), var(--bg);
  font-size: 18px;
}
.rem-home main, .home-header { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.home-header { display: flex; align-items: center; gap: 28px; padding-block: 26px; border-bottom: 1px solid var(--border); }
.home-brand { color: var(--text); text-decoration: none; font: 800 34px var(--font-display); letter-spacing: -.06em; display: flex; align-items: center; gap: 14px; }
.home-brand span { font: 600 12px var(--font-sans); letter-spacing: .22em; border-left: 1px solid var(--accent); padding-left: 14px; color: var(--accent-2); }
.home-header p { font-size: 14px; color: #c8bca9; }
.home-profile { margin-left: auto; white-space: nowrap; font-size: 14px; color: #e0d4c1; }
.home-profile span { padding-inline: 8px; color: var(--accent); }
.home-hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 54px; align-items: center; padding-block: 38px 42px; }
.home-eyebrow { color: var(--accent-2); font-size: 12px; font-weight: 700; letter-spacing: .15em; line-height: 1.6; }
.home-intro .home-eyebrow { display: flex; gap: 10px; align-items: center; }
.home-eyebrow > span { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px #6ea36818; flex-shrink: 0; }
.home-hero h1 { font: 700 clamp(40px, 4.5vw, 64px)/1.04 var(--font-display); letter-spacing: -.045em; margin-block: 16px; }
.home-hero h1 em { color: var(--accent-2); font-style: normal; }
.home-hero h1 > span { color: var(--accent); }
.home-description { font-size: 17px; line-height: 1.65; color: #d0c5b6; max-width: 610px; }
.home-photo { min-height: 270px; height: 100%; max-height: 330px; position: relative; border-radius: 28px; overflow: hidden; border: 1px solid #d9a35a40; box-shadow: 0 16px 40px #0005; transform: rotate(2deg); }
.home-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #1a120810 20%, #1a1208db); }
.home-photo-label { position: absolute; z-index: 1; bottom: 20px; left: 20px; right: 20px; padding: 15px 18px; border-radius: 16px; border: 1px solid #fbf8f245; background: #1a120899; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 #ffffff30; }
.home-photo-label span { display: block; font-size: 10px; letter-spacing: .17em; color: #e7c89d; margin-bottom: 6px; }
.home-photo-label strong { font: 600 25px var(--font-display); }
.home-navigation { scroll-margin-top: 20px; padding-bottom: 42px; }
.home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.home-section-heading h2, .home-targets h2 { font: 600 clamp(27px, 3vw, 36px)/1.2 var(--font-display); letter-spacing: -.035em; margin-top: 6px; }
.home-section-heading > p { font-size: 14px; color: #c8bca9; }
.home-section-heading > p span { color: var(--accent-2); font-size: 24px; margin-left: 10px; }
.home-menu-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 20px; perspective: 1400px; }
.home-menu-card { grid-column: span 3; position: relative; display: flex; flex-direction: column; min-width: 0; padding: 24px; border-radius: 24px; text-decoration: none; color: var(--text); border: 1px solid #d9a35a57; background: radial-gradient(ellipse at 0 0, #e6bd7430, transparent 65%), linear-gradient(135deg, #5b4b368c, #241d15ed 75%); -webkit-backdrop-filter: blur(22px) saturate(120%); backdrop-filter: blur(22px) saturate(120%); box-shadow: inset 0 2px 1px #fff4, inset 1px 0 1px #fff2, inset 0 -2px 2px #0008, 0 7px 0 #352719, 0 8px 0 #b07d384d, 0 16px 24px #0006; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.home-menu-card:nth-child(n+5) { grid-column: span 4; }
.home-menu-card:first-child { background: radial-gradient(ellipse at 0 0, #fff3, transparent 70%), linear-gradient(135deg, #efc183, #d49c56); border-color: #fbe0b3; color: var(--text-dark); box-shadow: inset 0 2px 1px #fff9, inset 0 -2px 1px #7e4c2480, 0 7px 0 #8a5f2e, 0 8px 0 #e3aa6355, 0 16px 24px #0006; }
.home-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.home-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 17px; color: #edbf80; background: linear-gradient(145deg, #fbf8f224, #fbf8f204); border: 1px solid #fbf8f230; box-shadow: inset 0 1px 1px #fff4, 0 4px 8px #0003; }
.home-icon svg { width: 30px; height: 32px; }
.home-card-number { font-size: 13px; color: #cfb78f; font-variant-numeric: tabular-nums; }
.home-menu-card h3 { font: 700 clamp(25px, 2.3vw, 30px)/1.2 var(--font-display); letter-spacing: -.035em; }
.home-menu-card > p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: #ded3c4; }
.home-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 23px; margin-top: auto; font-size: 12px; font-weight: 600; color: #e8c598; }
.home-arrow { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border: 1px solid #e7c89d40; border-radius: 50%; font-size: 22px; }
.home-menu-card:first-child .home-icon { color: #513615; background: #fff3; border-color: #fff5; }
.home-menu-card:first-child > p, .home-menu-card:first-child .home-card-bottom, .home-menu-card:first-child .home-card-number { color: #503619; }
.home-menu-card:first-child .home-arrow { border-color: #51361550; }
@media (hover: hover) { .home-menu-card:hover { transform: translateY(-6px) rotateX(3deg); border-color: #f6cf95; box-shadow: inset 0 2px 1px #fff6, 0 10px 0 #513a21, 0 22px 32px #0007; } }
.home-menu-card:focus-visible { outline: 3px solid #fbf8f2; outline-offset: 5px; transform: translateY(-5px) rotateX(2deg); }
.home-menu-card:active { transform: translateY(5px) rotateX(-1deg); box-shadow: inset 0 2px 7px #0003, 0 2px 0 #513a21, 0 5px 10px #0004; }
.home-targets { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding-block: 30px; display: grid; grid-template-columns: 1fr 2fr; gap: 30px; align-items: center; }
.home-targets h2 { font-size: 27px; }
.home-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.home-stats dt { color: #d0c5b6; font-size: 14px; margin-bottom: 8px; }
.home-stats dd { font-size: clamp(20px, 2vw, 25px); font-weight: 700; color: var(--accent-2); white-space: nowrap; }
.home-stats small { display: block; margin-top: 4px; color: #c8bca9; font-size: 12px; }
.rem-home .footer { font-size: 14px; line-height: 1.9; padding: 28px 24px 36px; color: #c8bca9; }
.rem-home .footer a { display: inline-block; padding-block: 8px; text-decoration: underline; text-underline-offset: 4px; }
.home-skip { position: fixed; top: 12px; left: 12px; z-index: 50; padding: 14px 20px; background: var(--card); color: var(--text-dark); border-radius: 12px; transform: translateY(-180%); }
.home-skip:focus { transform: translateY(0); }
@media (max-width: 1000px) {
  .home-menu-card, .home-menu-card:nth-child(n+5) { grid-column: span 6; }
  .home-menu-card:last-child { grid-column: 4 / span 6; }
  .home-hero { gap: 30px; }
  .home-targets { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rem-home main, .home-header { width: calc(100% - 36px); }
  .home-header { padding-block: 18px; flex-wrap: wrap; gap: 8px 16px; }
  .home-brand { font-size: 30px; }
  .home-header p { order: 3; width: 100%; font-size: 12px; }
  .home-profile { font-size: 12px; }
  .home-hero { grid-template-columns: 1fr; padding-block: 30px; gap: 22px; }
  .home-hero h1 { font-size: clamp(38px, 9vw, 56px); }
  .home-description { font-size: 16px; }
  .home-photo { display: none; }
  .home-section-heading { align-items: start; flex-direction: column; gap: 10px; margin-bottom: 20px; }
  .home-section-heading > p { font-size: 13px; }
  .home-menu-grid { grid-template-columns: 1fr; gap: 22px; }
  .home-menu-card, .home-menu-card:nth-child(n+5), .home-menu-card:last-child { grid-column: auto; padding: 22px; }
  .home-card-top { margin-bottom: 16px; }
  .home-menu-card h3 { font-size: 30px; }
  .home-card-bottom { padding-top: 16px; font-size: 13px; }
  .home-stats { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@keyframes home-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes home-glow {
  0%, 100% { box-shadow: 0 0 0 5px #6ea36818; }
  50% { box-shadow: 0 0 0 8px #6ea36810, 0 0 18px #6ea36830; }
}
.home-header, .home-hero, .home-navigation, .home-targets { animation: home-rise .55s both ease-out; }
.home-navigation { animation-delay: .10s; }
.home-targets { animation-delay: .20s; }
.home-menu-card { animation: home-rise .48s both ease-out; }
.home-menu-card:nth-child(1) { animation-delay: .10s; }
.home-menu-card:nth-child(2) { animation-delay: .16s; }
.home-menu-card:nth-child(3) { animation-delay: .22s; }
.home-menu-card:nth-child(4) { animation-delay: .28s; }
.home-menu-card:nth-child(5) { animation-delay: .34s; }
.home-menu-card:nth-child(6) { animation-delay: .40s; }
.home-menu-card:nth-child(7) { animation-delay: .46s; }
.home-eyebrow > span { animation: home-glow 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  html:has(.rem-home) { scroll-behavior: auto; }
  .home-header, .home-hero, .home-navigation, .home-targets, .home-menu-card, .home-eyebrow > span { animation: none; }
  .home-menu-card { transition: none; }
  .home-menu-card:hover, .home-menu-card:focus-visible, .home-menu-card:active { transform: none; }
}
@media (forced-colors: active) {
  .home-menu-card, .home-menu-card:first-child, .home-icon, .home-arrow { border: 2px solid LinkText; }
}
