/* Home page. Mobile first: base rules are the 390 px artboard (B-Mobile), the
   900 px query adds the 1280 px layout (B-Desktop). The animated bars of the
   hero are the masthead bars of site.css, only larger here. Animations stop
   under prefers-reduced-motion (site.css). */

/* ---------- Hero ---------- */

.home .bars { right: -6px; height: 80%; gap: 14px; }
.home .bars span { width: 28px; }
.home .bars .b4 { gap: 12px; }
.home .bars .b4 i { height: 28px; }

.hero { position: relative; padding-top: 40px; padding-bottom: 44px; }
.hero .eyebrow { color: var(--amber); }
.hero h1 { margin: 12px 0 14px; font-size: 38px; line-height: 1.08; font-weight: 700; letter-spacing: -.02em; }
.hero-lead { margin: 0 0 26px; color: #E2DCFF; font-size: 16px; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; }
.hero-actions .button { justify-content: space-between; min-height: 52px; padding: 0 18px; }

/* The three verbs take turns being underlined in amber. */
.verb {
  background-image: linear-gradient(var(--amber), var(--amber)); background-repeat: no-repeat;
  background-position: 0 96%; background-size: 0% .12em;
}
@keyframes verb { 0% { background-size: 0% .12em; } 7%, 29% { background-size: 100% .12em; } 35%, 100% { background-size: 0% .12em; } }
.verb.v1 { animation: verb 9s ease-in-out .8s infinite; }
.verb.v2 { animation: verb 9s ease-in-out 3.8s infinite; }
.verb.v3 { animation: verb 9s ease-in-out 6.8s infinite; }

/* ---------- Amber band under the hero ---------- */

.home-band { height: 20px; background: var(--amber); }

/* ---------- Introduction ---------- */

.intro { padding-left: 0; padding-right: 0; }
.intro-photo img { display: block; width: 100%; height: 210px; object-fit: cover; }
.intro-text { margin: 0; padding: 36px 16px; font-size: 17px; line-height: 1.6; }
.intro-text strong { font-weight: 600; }

/* ---------- Sections ---------- */

.home-section { padding-bottom: 32px; }
.home-box { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--ink); padding-top: 14px; }
.home-head h2 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 700; }
.research-list, .tiles, .pub-cards { margin: 0; padding: 0; list-style: none; }
.more-links { display: flex; gap: 20px; margin-top: 10px; }
.more-links a { display: flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.more-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Research rows: one column on phones, two from 600 px, four on desktop. The
   rows of a grid row stretch to the same height so their borders line up. */
.research-list { margin-top: 0; }
.research-list li { display: flex; }
.research-row { display: block; flex: 1; min-width: 0; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.research-row:hover { color: var(--ink); }
.row-title { display: flex; justify-content: space-between; align-items: center; }
.row-title h3 { min-width: 0; margin: 0; font-size: 21px; line-height: 1.3; font-weight: 600; }
.row-title .arrow { color: var(--blue); }
.row-line { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

@media (min-width: 600px) {
  .research-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
}

/* For students */
.students-card { padding: 24px 20px; background: var(--amber); border-radius: var(--radius); }
.students-card .eyebrow { font-weight: 700; }
.students-card h2 { margin: 6px 0 8px; font-size: 26px; line-height: 1.15; font-weight: 700; }
.students-card p { margin: 0 0 16px; }
.students-card a:focus-visible { outline-color: var(--ink); }
.students-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tag { padding: 4px 10px; border: 1.5px solid var(--ink); font-size: 13px; font-weight: 500; line-height: 1.5; }
.tag-solid { background: var(--ink); color: var(--white); }
.students .button { display: flex; justify-content: space-between; min-height: 50px; padding: 0 18px; }

/* Datasets and tools */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.tile { display: block; color: var(--ink); text-decoration: none; }
.tile:hover { color: var(--ink); }
.tile-cover {
  --bar: var(--v-bar); --bw: 12px; --gap: 8px; --sink: -8px; --cap-gap: 4px;
  position: relative; display: block; height: 120px; overflow: hidden;
  background: var(--v-bg); border: 1.5px solid var(--v-bd);
}
.tile-cover:has(img) { background: var(--tint); border-color: var(--tint); }
.tile-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.tile:hover .tile-cover img { transform: scale(1.04); }
.tile:hover .vbars > span { transform: translateY(-12px); }
.tile:hover .vbars > span:nth-child(2) { transform: translateY(-20px); }
.tile-name { margin: 8px 0 0; font-family: var(--font-body); font-size: 14px; line-height: 1.35; font-weight: 600; }
.tile-sub { margin: 0; font-size: 12px; color: var(--muted); }

/* Publications */
.pub-cards { margin-top: 8px; }
.pub-cards li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.pub-venue { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--blue); }
.pub-card-title { margin: 4px 0; font-family: var(--font-body); font-size: 16px; line-height: 1.4; font-weight: 600; }
.pub-card-title a { color: var(--ink); text-decoration: none; }
.pub-card-title a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.pub-card-authors { font-size: 14px; color: var(--muted); }

/* In the spotlight */
.spotlight { background: var(--ink); color: var(--white); }
.spotlight .wrap { padding-top: 32px; padding-bottom: 32px; }
.spotlight .eyebrow { margin: 0; font-weight: 700; color: var(--amber); }
.spotlight-list { margin: 14px 0 0; padding: 0; list-style: none; }
.spotlight-item { display: block; padding: 16px 0; border-bottom: 1px solid #2C2747; color: var(--white); text-decoration: none; }
.spotlight li:last-child .spotlight-item { border-bottom: 0; }
a.spotlight-item:hover { color: var(--white); }
.spotlight-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #B8B2D9; }
.spotlight-item h3 { margin: 2px 0 0; font-size: 19px; line-height: 1.3; font-weight: 600; transition: color .2s ease; }
a.spotlight-item:hover h3 { color: var(--amber); }
.spotlight-item p { display: none; margin: 8px 0 0; font-size: 15px; color: #C9C3EE; }
.pulse { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(252, 175, 59, .7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(252, 175, 59, 0); } }

/* ---------- Desktop ---------- */

@media (min-width: 900px) {
  .home .bars { right: 5%; height: 86%; gap: 28px; }
  .home .bars span { width: 64px; }
  .home .bars .b1 { height: 72%; }
  .home .bars .b2 { height: 50%; }
  .home .bars .b3 { height: 64%; }
  .home .bars .b4 { height: 92%; gap: 24px; }
  .home .bars .b4 i { height: 64px; }

  .hero { padding-top: 52px; padding-bottom: 68px; }
  .hero .eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .12em; }
  .hero h1 { max-width: 820px; margin: 18px 0 22px; font-size: 72px; line-height: 1.04; letter-spacing: -.03em; }
  .hero-lead { max-width: 560px; margin-bottom: 28px; font-size: 19px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .hero-actions .button { justify-content: center; min-height: 54px; padding: 0 24px; }

  .home-band { height: 28px; }

  .intro {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: center;
    padding: 56px 32px;
  }
  .intro-photo img { height: 300px; }
  .intro-text { padding: 0; font-size: 21px; line-height: 1.55; }

  .home-section { padding-bottom: 56px; }
  .home-box { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head more" "content content"; align-items: baseline; border-top-width: 3px; column-gap: 24px; padding-top: 18px; }
  .home-head { grid-area: head; }
  .home-head h2 { font-size: 36px; line-height: 1.1; letter-spacing: -.02em; }
  .research-list, .tiles, .pub-cards { grid-area: content; }
  .more-links { grid-area: more; gap: 24px; margin-top: 0; }
  .more-links a { min-height: 0; }

  .research-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; margin-top: 0; }
  .research-row { padding: 16px 0 20px; }
  .row-title { justify-content: flex-start; gap: 10px; }
  .row-title h3 { font-size: 22px; line-height: 1.3; transition: color .2s ease; }
  .row-title .arrow { width: 22px; height: 22px; }
  .research-row:hover h3 { color: var(--blue); }
  .row-line { margin-top: 8px; font-size: 15px; }

  .students-card {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; align-items: center;
    padding: 32px 44px;
  }
  .students-card .eyebrow { font-size: 14px; letter-spacing: .12em; }
  .students-card h2 { margin: 8px 0 10px; font-size: 40px; line-height: 1.1; letter-spacing: -.02em; }
  .students-card p { margin: 0; font-size: 17px; }
  .students-side { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
  .students-tags { gap: 8px; margin-bottom: 0; }
  .tag { padding: 6px 12px; font-size: 14px; }
  .students .button { display: inline-flex; justify-content: center; min-height: 54px; padding: 0 24px; }

  .tiles { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; margin-top: 20px; }
  .tile-cover { --bw: 18px; --gap: 12px; --sink: -14px; --cap-gap: 8px; height: 180px; }
  .tile:hover .vbars > span { transform: translateY(-16px); }
  .tile:hover .vbars > span:nth-child(2) { transform: translateY(-26px); }
  .tile-name { margin-top: 12px; font-family: var(--font-display); font-size: 18px; line-height: 1.6; }
  .tile-sub { font-size: 14px; }

  .pub-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; margin-top: 20px; }
  .pub-cards li { padding: 0; border: 0; }
  .pub-venue { font-size: 14px; }
  .pub-card-title { margin: 6px 0; font-size: 18px; }
  .pub-card-authors { font-size: 15px; }

  .spotlight .wrap { padding-top: 44px; padding-bottom: 48px; }
  .spotlight .eyebrow { font-size: 14px; letter-spacing: .12em; }
  .spotlight-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; margin-top: 18px; }
  .spotlight-item { padding: 18px 0 0; border-top: 1px solid #3A3460; border-bottom: 0; }
  .spotlight-label { gap: 10px; font-size: 14px; }
  .spotlight-item h3 { margin-top: 6px; font-size: 24px; line-height: 1.2; }
  .spotlight-item p { display: block; }
  .pulse { width: 9px; height: 9px; }
}
