/* =====================================================================
   Havrais Dire — home page styles
   ===================================================================== */

/* ---------- HERO ---------- */
.hero { position: relative; padding: 84px 0 96px; }
.hero__inner {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center;
}
.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 22px;
}
.hero__kicker::before { content: ""; width: 30px; height: 1px; background: var(--terracotta); }
.hero h1 {
  font-size: clamp(3rem, 7.2vw, 5.4rem);
  margin: 0 0 .35em; line-height: 1.0;
}
.hero h1 em {
  font-style: italic; color: var(--terracotta); font-weight: 560;
}
.hero__sub {
  font-size: 1.14rem; color: var(--ink-soft);
  max-width: 47ch; margin: 0 0 34px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Emblem — the ONE place the logo appears on the page */
.hero__art { position: relative; justify-self: end; width: min(290px, 62vw); aspect-ratio: 1; }
.hero__art img {
  width: 100%; height: 100%;
  border-radius: 50%; box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .hero { padding: 48px 0 64px; }
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__art { grid-row: 1; justify-self: start; width: min(150px, 40vw); }
}

/* ---------- ABOUT ---------- */
.about__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 36px; margin-top: 56px;
}
.pillar { border-top: 1px solid var(--ink); padding-top: 22px; }
.pillar__num {
  font-family: var(--serif); font-style: italic; font-weight: 560;
  font-size: .95rem; color: var(--terracotta);
  display: block; margin-bottom: 14px;
}
.pillar h3 { font-size: 1.32rem; margin: 0 0 .45em; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

.about__portrait {
  display: grid; grid-template-columns: minmax(280px, .82fr) 1.18fr;
  align-items: center; gap: clamp(32px, 6vw, 76px);
  margin: 76px 0 0; padding: clamp(18px, 3vw, 34px);
  background: var(--paper); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow-sm);
}
.about__portrait-frame { border-radius: 20px; overflow: hidden; background: var(--peach-soft); }
.about__portrait-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__portrait figcaption { padding-right: clamp(4px, 3vw, 30px); }
.about__portrait h3 { font-size: clamp(1.8rem, 3.6vw, 2.65rem); margin: .18em 0 .5em; }
.about__portrait p { color: var(--ink-soft); font-size: 1.04rem; margin: 0 0 24px; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--terracotta); font-weight: 650;
}
.text-link .arr { display: inline-block; transition: transform .3s var(--ease); }
.text-link:hover .arr { transform: translateX(4px); }

@media (max-width: 700px) {
  .about__grid { grid-template-columns: 1fr; gap: 28px; }
  .about__portrait { grid-template-columns: 1fr; margin-top: 52px; }
  .about__portrait figcaption { padding: 6px 4px 12px; }
}

/* ---------- PAST EVENTS STRIP ---------- */
.past-feature { overflow: hidden; }
.past-feature__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; margin-bottom: 34px;
}
.past-feature__head h2 { margin-bottom: .32em; }
.past-feature__head .lead { margin-bottom: 0; }
.past-feature__head .text-link { flex: none; padding-bottom: 5px; }
.past-feature__marquee {
  position: relative; overflow: hidden;
  padding-block: 3px;
}
.past-feature__marquee::before,
.past-feature__marquee::after {
  content: ""; position: absolute; inset-block: 0; z-index: 2;
  width: clamp(24px, 5vw, 72px); pointer-events: none;
}
.past-feature__marquee::before {
  left: 0; background: linear-gradient(90deg, var(--cream), transparent);
}
.past-feature__marquee::after {
  right: 0; background: linear-gradient(270deg, var(--cream), transparent);
}
.past-feature__track {
  display: flex; width: max-content;
  animation: past-events-marquee 34s linear infinite;
  will-change: transform;
}
.past-feature__marquee:hover .past-feature__track { animation-play-state: paused; }
.past-feature__group { display: flex; gap: 16px; padding-right: 16px; }
.past-mini {
  width: 292px; min-height: 164px; flex: none;
  display: grid; grid-template-columns: 108px minmax(0, 1fr);
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; box-shadow: var(--shadow-sm); color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .25s ease;
}
.past-mini:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(214, 72, 38, .3); }
.past-mini:focus-visible { outline: 3px solid rgba(214, 72, 38, .35); outline-offset: 3px; }
.past-mini__visual {
  display: grid; place-items: center; min-width: 0;
  padding: 9px; background: var(--peach-soft); overflow: hidden;
}
.past-mini__visual img { width: 100%; height: 100%; max-height: 164px; object-fit: contain; }
.past-mini__fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  font: italic 650 3rem/1 var(--serif); color: var(--terracotta);
}
.past-mini__body {
  display: flex; flex-direction: column; justify-content: center; gap: 7px;
  min-width: 0; padding: 18px 17px;
}
.past-mini__format {
  color: var(--terracotta); font-size: .63rem; font-weight: 750;
  letter-spacing: .11em; text-transform: uppercase;
}
.past-mini__body strong {
  color: var(--ink); font: 620 1.05rem/1.18 var(--serif); letter-spacing: -.01em;
}
.past-mini__speaker {
  color: var(--ink-soft); font-size: .72rem; line-height: 1.35;
}
@keyframes past-events-marquee {
  to { transform: translateX(-50%); }
}
@media (max-width: 700px) {
  .past-feature__head { align-items: flex-start; flex-direction: column; gap: 18px; }
  .past-feature__head .lead { max-width: 27ch; }
  .past-feature__head .text-link { padding-bottom: 0; }
  .past-mini { width: 266px; grid-template-columns: 98px minmax(0, 1fr); }
  .past-mini__body { padding: 16px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .past-feature__marquee { overflow-x: auto; scrollbar-width: thin; }
  .past-feature__marquee::before,
  .past-feature__marquee::after { display: none; }
  .past-feature__track { animation: none; }
  .past-feature__group[aria-hidden="true"] { display: none; }
}

/* ---------- ANNUAL PROJECTS ---------- */
.projects__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px; margin-top: 44px;
}
.project-card {
  min-height: 410px; padding: clamp(28px, 4vw, 46px);
  border-radius: 26px; border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden; position: relative;
  box-shadow: var(--shadow-sm);
}
.project-card::after {
  content: ""; position: absolute; width: 260px; height: 260px;
  border: 1px solid currentColor; border-radius: 50%; opacity: .1;
  right: -105px; top: -125px; box-shadow: 0 0 0 34px currentColor, 0 0 0 70px currentColor;
  pointer-events: none;
}
.project-card--thursdays { background: var(--terracotta); color: #fff; }
.project-card--asian-week { background: #F3E4BD; color: var(--ink); }
.project-card__top { display: flex; align-items: center; justify-content: space-between; gap: 18px; position: relative; z-index: 1; }
.project-card__number { font-family: var(--serif); font-style: italic; font-size: 1.1rem; font-weight: 600; }
.project-card__note {
  padding: 6px 12px; border-radius: 999px; border: 1px solid currentColor;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.project-card h3 { font-size: clamp(2.15rem, 4vw, 3.1rem); margin: 1.2em 0 .35em; position: relative; z-index: 1; }
.project-card--thursdays h3 { color: #fff; }
.project-card p { max-width: 48ch; margin: 0 0 30px; opacity: .86; position: relative; z-index: 1; }
.project-card__next {
  margin-top: auto; padding-top: 20px; border-top: 1px solid currentColor;
  display: flex; flex-direction: column; gap: 2px; position: relative; z-index: 1;
}
.project-card__next span { font-size: .73rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; opacity: .7; }
.project-card__next strong { font-family: var(--serif); font-size: 1.08rem; }
.project-card .text-link { margin-top: 22px; position: relative; z-index: 1; }
.project-card--thursdays .text-link { color: #fff; }
@media (max-width: 760px) {
  .projects__grid { grid-template-columns: 1fr; }
  .project-card { min-height: 380px; }
}

/* ---------- CLUBS ---------- */
.clubs__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.clubs__count {
  font-family: var(--serif); font-style: italic; font-weight: 560;
  font-size: 1.25rem; color: var(--ink-soft); white-space: nowrap;
}
.clubs__count strong {
  font-style: normal; font-weight: 640; color: var(--terracotta);
  font-size: 2.1rem; letter-spacing: -.02em; margin-right: 2px;
}

.clubs__cats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.cat-chip {
  font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--ink-soft);
  background: transparent; border: 1px solid var(--line);
  padding: 7px 16px; border-radius: 999px; cursor: pointer;
  transition: all .25s var(--ease);
}
.cat-chip:hover { border-color: var(--terracotta); color: var(--terracotta); }
.cat-chip.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.clubs__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 16px; margin-top: 30px;
}
.club-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 18px; padding: 24px 22px 20px;
  position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s ease;
}
.club-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(214, 72, 38, .28); }
.club-card__group {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); opacity: .8;
}
.club-card__name { font-family: var(--serif); font-weight: 620; font-size: 1.22rem; letter-spacing: -.01em; color: var(--ink); line-height: 1.2; }
.club-card__name .tag {
  font-family: var(--sans); font-size: .6rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(168, 134, 43, .4);
  padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle;
}
.club-card__blurb { color: var(--ink-soft); font-size: .93rem; margin: 0; flex: 1; }
.club-card__more { font-weight: 600; color: var(--terracotta); font-size: .9rem; margin-top: 6px; }
.club-card__more .arr { display: inline-block; transition: transform .3s var(--ease); }
.club-card:hover .club-card__more .arr { transform: translateX(4px); }
.club-card.is-hidden { display: none; }

/* ---------- SPEAKER EVENTS (teaser) ---------- */
.speakers-teaser { position: relative; }
.speakers-teaser .clubs__head { margin-bottom: 6px; }
.sp-teaser-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 38px;
}
.speakers-teaser .sp-teaser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .speakers-teaser .sp-teaser-grid { grid-template-columns: 1fr; } }

/* ---------- BOARD ---------- */
.board__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px; margin-top: 44px;
}
.member { text-align: center; }
.member__avatar {
  width: 108px; height: 108px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--peach-soft);
  border: 1px solid rgba(214, 72, 38, .2);
  color: var(--terracotta); font-family: var(--serif); font-style: italic;
  font-weight: 620; font-size: 2rem;
  object-fit: cover; object-position: center 28%;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s ease;
}
.member:hover .member__avatar { transform: translateY(-5px); box-shadow: var(--shadow-sm); background: var(--peach); }
.member__name { font-family: var(--serif); font-weight: 620; font-size: 1.12rem; }
.member__role { color: var(--ink-soft); font-size: .86rem; }

/* ---------- CONTACT ---------- */
.contact__card {
  background: var(--terracotta);
  color: #fff; border-radius: 28px; padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
  box-shadow: var(--shadow);
}
.contact__card h2 { color: #fff; margin-top: 0; }
.contact__card .eyebrow { color: #FFD9C4; }
.contact__card > div > p { color: rgba(255, 255, 255, .92); max-width: 52ch; }
.contact__list { list-style: none; margin: 24px 0 0; padding: 0; }
.contact__list li { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; font-weight: 500; }
.contact__list a { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.4); transition: text-decoration-color .2s ease; }
.contact__list a:hover { text-decoration-color: #fff; }
.contact__list .ico {
  display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none;
  background: rgba(255, 255, 255, .14); border-radius: 50%;
}
.contact__list .ico svg { width: 17px; height: 17px; }
.contact__socials { display: flex; gap: 12px; margin-top: 26px; }
.contact__socials a {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff;
  transition: background .2s ease, color .2s ease, transform .3s var(--ease);
}
.contact__socials a:hover { background: #fff; color: var(--terracotta); transform: translateY(-3px); }
.contact__socials svg { width: 21px; height: 21px; }
