/* Primary navigation — compact brand, calm desktop rhythm and deliberate collapse. */
.site-header {
  gap: clamp(16px, 2vw, 32px);
  height: 76px;
  padding-inline: clamp(20px, 2.6vw, 42px);
}

.site-header .brand {
  flex: 0 0 auto;
  gap: 10px;
}

.site-header .brand-logo {
  width: 40px;
  height: 40px;
}

.site-header .brand span {
  min-width: 116px;
  overflow: visible;
  font-size: 0;
  line-height: 1;
}

.site-header .brand span::before {
  content: "Inner Wheel";
  color: currentColor;
  display: block;
  font: 600 1.25rem/1 var(--font-display);
}

.site-header .brand span::after {
  content: "Living Archive";
  color: var(--muted);
  display: block;
  margin-top: 5px;
  font: 600 .48rem/1 var(--font-ui);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.site-header .brand i {
  display: none;
}

.main-nav {
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
  gap: clamp(6px, .65vw, 11px);
  font-size: clamp(.68rem, .78vw, .73rem);
}

.main-nav > a {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (min-width: 1400px) {
  .site-header {
    display: block;
    height: 108px;
    padding: 0 clamp(28px, 3.4vw, 58px);
  }

  .site-header.is-home.is-scrolled.is-hero-mode {
    height: 108px;
  }

  .site-header .brand {
    z-index: 2;
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    height: 48px;
  }

  .site-header .brand-logo {
    width: 42px;
    height: 42px;
  }

  .site-header .brand span::before {
    font-size: 1.3rem;
  }

  .main-nav {
    position: absolute;
    inset: 0 clamp(28px, 3.4vw, 58px);
    display: grid;
    grid-template-columns: repeat(10, max-content);
    grid-template-rows: 58px 50px;
    grid-auto-flow: column;
    justify-content: center;
    align-items: center;
    column-gap: clamp(19px, 1.5vw, 28px);
    color: rgba(17, 41, 58, .82);
    font-size: clamp(.72rem, .73vw, .77rem);
    letter-spacing: .006em;
  }

  .main-nav::before {
    content: "";
    position: absolute;
    top: 58px;
    right: 0;
    left: 0;
    height: 1px;
    background: rgba(17, 41, 58, .1);
  }

  .main-nav > a:not(.search-nav) {
    grid-row: 2;
    align-self: center;
    display: flex;
    align-items: center;
    height: 34px;
    border-radius: 999px;
    padding: 0 5px;
    transition: color .25s ease, background-color .25s ease;
  }

  .main-nav > a:not(.search-nav).active {
    color: #8d6420;
    background: rgba(185, 139, 53, .055);
  }

  .main-nav > a:not(.search-nav):hover {
    color: #102a3d;
    background: rgba(17, 41, 58, .045);
  }

  .main-nav > a:not(.search-nav)::after {
    right: 50%;
    bottom: 5px;
    left: 50%;
    height: 2px;
  }

  .main-nav > a:not(.search-nav).active::after,
  .main-nav > a:not(.search-nav):hover::after {
    right: 7px;
    left: 7px;
  }

  .main-nav > .search-nav {
    position: absolute;
    top: 9px;
    right: 50px;
    width: 40px;
    min-width: 40px;
    height: 40px;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    margin: 0;
    padding: 0;
    font-size: 0;
    transition: color .25s ease, background-color .25s ease;
  }

  .main-nav > .search-nav::after {
    display: none;
  }

  .main-nav > .search-nav svg {
    width: 18px;
    height: 18px;
  }

  .main-nav > .search-nav:hover,
  .main-nav > .search-nav.active {
    color: #8d6420;
    background: rgba(185, 139, 53, .1);
  }

  .main-nav .account {
    position: absolute;
    top: 9px;
    right: 0;
  }

  .main-nav .avatar {
    width: 40px;
    min-width: 40px;
    height: 40px;
    transition: color .25s ease, background-color .25s ease;
  }

  .main-nav .avatar:hover {
    color: #8d6420;
    background: #e7dece;
  }

  .hero-reference-image {
    height: 100%;
    top: 0;
  }
}

@media (max-width: 1399px) {
  .site-header {
    justify-content: flex-end;
    height: 68px;
  }

  .site-header .brand {
    z-index: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .menu-toggle {
    display: grid;
    min-width: 44px;
    width: 44px;
    min-height: 44px;
    height: 44px;
    margin-right: -8px;
    place-items: center;
  }

  .main-nav {
    max-height: calc(100dvh - 68px);
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 0 24px;
    padding: 18px max(24px, env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    display: none;
    position: fixed;
    inset: 68px 0 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav > a::after {
    display: none;
  }

  .main-nav > a:not(.search-nav) {
    border-bottom: 1px solid rgba(17, 41, 58, .11);
    min-height: 54px;
    align-items: center;
    padding: 14px 10px;
    display: flex;
  }

  .main-nav > a:not(.search-nav).active {
    color: #8d6420;
    border-bottom-color: rgba(185, 139, 53, .55);
  }

  .main-nav .search-nav,
  .main-nav .account {
    border-top: 1px solid var(--line);
    min-height: 54px;
    margin-top: 12px;
  }

  .main-nav .search-nav {
    grid-column: 1;
    align-items: center;
    gap: 9px;
    padding: 10px;
    display: flex;
  }

  .main-nav .account {
    grid-column: 2;
    padding: 6px 10px;
  }

  .main-nav .avatar {
    border-radius: 4px;
    justify-content: flex-start;
    width: 100%;
    min-height: 42px;
    padding-inline: 14px;
  }

  .account-menu {
    width: 100%;
    position: relative;
    top: 6px;
  }

  .hero-reference-image {
    height: 100%;
    top: 0;
  }
}

@media (max-width: 560px) {
  .main-nav {
    grid-template-columns: 1fr;
    gap: 0;
    padding-inline: max(16px, env(safe-area-inset-left));
  }

  .main-nav .search-nav,
  .main-nav .account {
    grid-column: 1;
  }

  .main-nav .search-nav {
    margin-top: 12px;
  }

  .main-nav .account {
    margin-top: 0;
  }
}

/* Keep the first animated journey card clear of the section introduction. */
@media (min-width: 901px) {
  .journey-stage {
    top: 205px;
  }
}

/* The fixed two-tier desktop header is 108px tall. Keep the pinned Journey
   heading and its first card fully below that boundary. */
@media (min-width: 1200px) {
  .journey-top {
    top: 116px;
  }

  .journey-stage {
    top: 218px;
  }
}

/* Final visual polish — one typographic voice and calmer section hand-offs. */
@media (min-width: 901px) {
  .page-hero h1,
  .journey-page-intro h1,
  .memories-intro h1,
  .search-hero h1,
  .project-year-hero h1,
  .vacation-intro h1 {
    font-size: clamp(4rem, 6.45vw, 6.9rem);
    line-height: .84;
    letter-spacing: -.048em;
  }

  .realistic-book {
    filter: drop-shadow(0 38px 34px rgba(0, 0, 0, .43));
  }

  .book-sheet-face {
    box-shadow:
      inset 22px 0 34px rgba(58, 39, 22, .14),
      inset -4px 0 10px rgba(88, 65, 39, .09),
      0 1px 0 rgba(255, 255, 255, .68);
  }
}

.featured-memory {
  background: linear-gradient(180deg, #eee7dc 0%, #e9e0d2 100%);
}

.explore-section {
  border-top: 1px solid rgba(18, 46, 64, .08);
  background: linear-gradient(180deg, #f8f4eb 0%, var(--ivory) 22%, var(--ivory) 100%);
}

.on-this-day {
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), inset 0 -1px rgba(255, 255, 255, .06);
}

.presidents {
  background: linear-gradient(180deg, #f2ede3 0%, var(--paper) 24%, var(--paper) 100%);
}

.text-link,
.section-heading a,
.vacation-back {
  transition: color .25s ease, opacity .25s ease, transform .25s ease;
}

.text-link:hover,
.section-heading a:hover,
.vacation-back:hover {
  transform: translateX(3px);
}

.leadership-archive img,
.portrait-rail img,
.member-directory img {
  background: #d9d1c4;
  transition: filter .35s ease, transform .45s var(--ease);
}

/* Members — optional profile information without changing the directory. */
.member-profile-section {
  background: var(--paper);
}

.member-profile-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
}

.member-profile-details > article {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.member-profile-details > article:only-child {
  grid-column: 1 / -1;
  max-width: 720px;
}

.member-profile-details article > span {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .64rem;
  font-weight: 600;
}

.member-profile-details p {
  color: var(--muted);
  margin: 18px 0 0;
  line-height: 1.8;
}

.member-offices ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.member-offices li {
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
}

.member-offices strong {
  font: 500 1.25rem/1.2 var(--font-display);
}

.member-offices small {
  color: var(--muted);
  font-size: .65rem;
}

.member-contact > div {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.member-contact a {
  width: fit-content;
  color: var(--blue);
  border-bottom: 1px solid transparent;
  font-size: .76rem;
  transition: border-color .25s ease;
}

.member-contact a:hover {
  border-color: currentColor;
}

@media (max-width: 900px) {
  .member-profile-details {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .member-profile-details > article:only-child {
    grid-column: auto;
    max-width: none;
  }
}

/* Informational pages — reuse the archive's editorial hierarchy. */
.information-page {
  max-width: 1180px;
}

.information-page .info-section {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(300px, 1.2fr);
  gap: clamp(36px, 7vw, 100px);
  padding: clamp(42px, 6vw, 76px) 0;
}

.information-page .info-section:last-child {
  border-bottom: 1px solid var(--line);
}

.information-page .section-heading {
  align-items: start;
  margin: 0;
}

.information-page .section-heading h2 {
  max-width: 520px;
  font-size: clamp(2.8rem, 4.8vw, 5.2rem);
  line-height: .92;
}

.information-page .info-section > p,
.information-page .info-copy > p {
  color: var(--muted);
  max-width: 640px;
  margin: 4px 0 0;
  line-height: 1.85;
}

.information-page .info-placeholder {
  border-left: 1px solid var(--gold);
  padding-left: 22px;
}

/* About Inner Wheel — approved client-supplied history copy. */
.about-inner-wheel-page .about-history-label {
  border-bottom: 1px solid var(--line);
  color: var(--gold-dark);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  margin: 0;
  padding: 0 0 18px;
}

.about-inner-wheel-page .approved-history-copy {
  max-width: 720px;
}

.about-inner-wheel-page .approved-history-copy h3 {
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  font-weight: 500;
  line-height: 1;
  margin: 0 0 28px;
}

.about-inner-wheel-page .approved-history-copy p + p {
  margin-top: 1.5em;
}

.club-information-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 32px;
}

/* Contact — optional verified details only; empty fields are never rendered. */
.contact-detail-list {
  display: grid;
  gap: 22px;
}

.contact-detail-item {
  border-left: 1px solid var(--gold);
  display: grid;
  gap: 6px;
  padding-left: 22px;
}

.contact-detail-item small {
  color: var(--gold-dark);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.contact-detail-item a,
.contact-detail-item span {
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.15;
}

.contact-detail-item a:hover {
  color: var(--gold-dark);
}

@media (max-width: 900px) {
  .information-page .info-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .information-page .section-heading h2 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .club-information-links {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Office Bearers — existing year leadership, without inferred current roles. */
.office-bearers-page {
  max-width: 1280px;
}

.office-year-rail {
  border-block: 1px solid var(--line);
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
}

.office-year-rail button {
  flex: 0 0 auto;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 18px 22px;
  font-size: .7rem;
  font-weight: 600;
  transition: color .25s ease, background .25s ease;
}

.office-year-rail button.active {
  color: #fff;
  background: var(--navy-800);
}

.office-term {
  padding-top: clamp(52px, 7vw, 92px);
}

.office-term-heading {
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(36px, 5vw, 64px);
  padding-bottom: 24px;
}

.office-term-heading > span {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .17em;
  font-size: .64rem;
  font-weight: 600;
}

.office-term-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(3.4rem, 6vw, 6.5rem);
  line-height: .86;
}

.office-leadership-layout {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.55fr);
  gap: clamp(38px, 6vw, 86px);
  align-items: start;
}

.office-president > h2,
.office-committee > h2 {
  margin: 0 0 20px;
  font: 600 .66rem/1.4 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--gold);
}

.office-president-card {
  color: #fff;
  background: var(--navy-900);
  display: block;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.office-president-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.office-president-card img {
  width: 100%;
  aspect-ratio: .82;
  object-fit: cover;
}

.office-president-card > div {
  padding: 24px;
}

.office-president-card span {
  color: var(--gold-bright);
  font-size: .66rem;
}

.office-president-card h3 {
  margin: 6px 0 18px;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: .95;
}

.office-president-card em,
.office-committee-card span {
  color: inherit;
  font-size: .64rem;
  font-style: normal;
}

.office-committee-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.office-committee-card {
  min-width: 0;
  background: var(--ivory);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  transition: border-color .25s ease, transform .3s var(--ease);
}

.office-committee-card:hover {
  border-color: rgba(185, 139, 53, .65);
  transform: translateY(-2px);
}

.office-committee-card img {
  width: 92px;
  height: 112px;
  object-fit: cover;
}

.office-committee-card > div {
  min-width: 0;
  padding: 16px;
}

.office-committee-card h3 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1;
}

.office-committee-card span,
.office-empty {
  color: var(--muted);
}

.office-empty {
  border-top: 1px solid var(--line);
  margin: 0;
  padding-top: 18px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .office-year-rail button {
    padding: 15px 18px;
  }

  .office-leadership-layout {
    grid-template-columns: 1fr;
  }

  .office-president-card {
    display: grid;
    grid-template-columns: 122px minmax(0, 1fr);
  }

  .office-president-card img {
    height: 100%;
    min-height: 150px;
  }

  .office-president-card > div {
    align-self: center;
    padding: 20px;
  }

  .office-president-card h3 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .office-committee-grid {
    grid-template-columns: 1fr;
  }
}

/* Projects — year is the primary organizing principle. */
.project-year-hero {
  min-height: 40vh;
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(19, 74, 112, .72), transparent 34%),
    linear-gradient(135deg, #071927, #102f45 65%, #0b2233);
  padding: clamp(100px, 11vw, 150px) 7vw 64px;
  display: grid;
  align-content: end;
}

.project-year-hero > span,
.vacation-intro > span,
.vacation-story > div > span {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .68rem;
  font-weight: 600;
}

.project-year-hero h1,
.vacation-intro h1 {
  max-width: 980px;
  margin: 16px 0 20px;
  font: 500 clamp(4rem, 6.45vw, 6.9rem)/.84 var(--font-display);
  letter-spacing: -.045em;
}

.project-year-hero p,
.vacation-intro p {
  max-width: 620px;
  margin: 0;
  color: #c9d3d9;
  line-height: 1.75;
}

.project-year-hero .project-fellowship-link {
  width: max-content;
  margin-top: 28px;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .48);
}

.project-year-hero .project-fellowship-link:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .72);
}

.project-year-controls {
  padding-top: 42px;
  padding-bottom: 24px;
}

.project-year-rail {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: clamp(22px, 3vw, 48px);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.project-year-rail::-webkit-scrollbar {
  display: none;
}

.project-year-rail button {
  flex: 0 0 auto;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 0 15px;
  font: 500 clamp(1.5rem, 2.7vw, 2.65rem)/1 var(--font-display);
  opacity: .68;
  scroll-snap-align: start;
  transition: color .25s ease, border-color .25s ease, opacity .25s ease, transform .25s ease;
}

.project-year-rail button.active {
  color: var(--navy-900);
  border-color: var(--gold);
  opacity: 1;
  transform: translateY(-2px);
}

.project-category-row {
  margin-top: 24px;
  justify-content: flex-start;
}

.project-category-row button {
  color: var(--muted);
  opacity: .78;
}

.project-category-row button.active {
  color: var(--blue);
  opacity: 1;
}

.projects-year-grid {
  padding-top: 22px;
  animation: projectYearIn .4s ease both;
}

.no-projects {
  grid-column: 1 / -1;
  color: var(--muted);
  padding: 60px 0;
}

@keyframes projectYearIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Vacations — editorial, joyful and separate from service records. */
.vacation-intro {
  min-height: 58vh;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5, 23, 40, .96), rgba(5, 23, 40, .46)),
    url('/archive/vacation-goa.png') center 64% / cover;
  padding: clamp(110px, 13vw, 175px) 7vw 72px;
  display: grid;
  align-content: end;
}

.vacation-intro p {
  color: #eef2f3;
}

.vacation-years {
  padding-top: clamp(70px, 9vw, 130px);
}

.vacation-year-group + .vacation-year-group {
  border-top: 1px solid var(--line);
  margin-top: clamp(70px, 9vw, 120px);
  padding-top: clamp(55px, 7vw, 90px);
}

.vacation-year-group > h2 {
  margin: 0 0 28px;
  color: var(--navy-900);
  font: 500 clamp(3rem, 5.5vw, 5.8rem)/.9 var(--font-display);
}

.vacation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.vacation-card {
  min-width: 0;
  background: transparent;
  border: 0;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.vacation-card:hover {
  transform: translateY(-4px);
}

.vacation-cover,
.vacation-detail-image,
.vacation-gallery-image {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.vacation-cover.panel-0,
.vacation-detail-image.panel-0,
.vacation-gallery-image.panel-0 { background-image: url('/archive/vacation-goa.png'); background-position: center 64%; }

.vacation-cover.panel-1,
.vacation-detail-image.panel-1,
.vacation-gallery-image.panel-1 { background-image: url('/archive/vacation-jaipur.png'); background-position: center 64%; }

.vacation-cover.panel-2,
.vacation-detail-image.panel-2,
.vacation-gallery-image.panel-2 { background-image: url('/archive/vacation-alibaug.png'); background-position: center 62%; }

.vacation-cover.panel-3,
.vacation-detail-image.panel-3,
.vacation-gallery-image.panel-3 { background-image: url('/archive/vacation-udaipur.png'); background-position: center 60%; }

.vacation-cover.panel-4,
.vacation-detail-image.panel-4,
.vacation-gallery-image.panel-4 { background-image: url('/archive/vacation-lonavala.png'); background-position: center 62%; }

.vacation-cover {
  aspect-ratio: 1.24;
  transition: transform .6s var(--ease);
}

.vacation-card:hover .vacation-cover {
  transform: scale(1.018);
}

.vacation-card article {
  padding: 22px 0 4px;
}

.vacation-card small,
.vacation-detail-copy > span {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .62rem;
}

.vacation-card h3 {
  margin: 9px 0 10px;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  line-height: .95;
}

.vacation-card p {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.7;
}

.vacation-card footer {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: .66rem;
}

.vacation-card footer b {
  color: var(--blue);
}

.vacation-detail-hero {
  min-height: calc(100vh - 74px);
  background: var(--navy-950);
  display: grid;
  grid-template-columns: 58% 42%;
}

.vacation-detail-image {
  min-height: 680px;
}

.vacation-detail-copy {
  color: #fff;
  padding: clamp(70px, 8vw, 125px) clamp(38px, 6vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vacation-back {
  color: #c6d0d6;
  margin-bottom: clamp(65px, 9vh, 110px);
  font-size: .72rem;
}

.vacation-detail-copy h1 {
  margin: 16px 0 25px;
  font-size: clamp(4rem, 7vw, 7rem);
  line-height: .78;
}

.vacation-detail-copy > p {
  color: #c6d0d6;
  line-height: 1.8;
}

.vacation-meta {
  border-top: 1px solid rgba(255, 255, 255, .16);
  margin-top: 35px;
  padding-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.vacation-meta b {
  min-width: 0;
  font: 500 2.1rem/1 var(--font-display);
}

.vacation-meta small {
  color: #9aabb6;
  margin-top: 5px;
  display: block;
  font: 500 .55rem/1.4 var(--font-ui);
  letter-spacing: .11em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.vacation-story {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 10vw;
  align-items: start;
}

.vacation-story h2 {
  max-width: 820px;
  margin: 16px 0 24px;
  font-size: clamp(3rem, 5vw, 5.6rem);
  line-height: .91;
}

.vacation-story p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.85;
}

.vacation-story aside {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.vacation-story aside small {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.vacation-story ul {
  padding: 15px 0 0;
  list-style: none;
}

.vacation-story li {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.vacation-gallery {
  padding-top: 0;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  grid-template-rows: 260px 260px;
  gap: 16px;
}

.vacation-gallery-image {
  min-height: 0;
}

.vacation-gallery-image:first-child {
  grid-row: 1 / 3;
}

.crop-2 { filter: saturate(.88) brightness(1.08); }
.crop-3 { filter: contrast(1.04) brightness(.92); }

/* Login — preserved history opening into a shared future. */
.login-page {
  grid-template-columns: 56% 44%;
}

.login-visual {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 13, 23, .86) 0%, rgba(4, 20, 33, .62) 48%, rgba(4, 20, 33, .18) 100%),
    linear-gradient(0deg, rgba(3, 12, 21, .82) 0%, transparent 52%),
    url('/archive/login-future-path-v1.png') 54% 46% / cover no-repeat;
  place-content: center;
  padding: clamp(60px, 8vw, 125px);
}

.login-emblem {
  z-index: 3;
  position: relative;
  width: clamp(105px, 9vw, 145px);
  margin: 0 0 34px;
  filter: drop-shadow(0 0 24px rgba(70, 157, 216, .28));
  animation: emblemBreathe 6s ease-in-out infinite;
}

.login-visual-copy {
  z-index: 3;
  position: relative;
}

.login-visual-copy span {
  color: #d0a55f;
  letter-spacing: .18em;
  text-transform: uppercase;
  font: 600 .65rem/1.4 var(--font-ui);
}

.login-visual-copy strong {
  max-width: 620px;
  margin-top: 12px;
  font-size: clamp(3.4rem, 5vw, 5.7rem);
  line-height: .82;
}

.login-visual-copy p {
  max-width: 500px;
  margin-top: 24px;
  line-height: 1.75;
}

.login-constellation {
  display: none;
}

.constellation-orbit {
  position: absolute;
  border: 1px solid rgba(132, 192, 230, .12);
  border-radius: 50%;
  animation: orbitDrift 18s ease-in-out infinite alternate;
}

.orbit-one { width: 48%; aspect-ratio: 1; left: 27%; top: 17%; }
.orbit-two { width: 72%; aspect-ratio: 1; left: 10%; top: 4%; animation-delay: -8s; }

.constellation-line {
  position: absolute;
  height: 1px;
  opacity: .38;
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(114, 184, 225, .72), rgba(205, 166, 98, .22), transparent);
  background-size: 220% 100%;
  animation: lineLight 9s linear infinite;
}

.line-1 { width: 35%; left: 46%; top: 36%; transform: rotate(-26deg); }
.line-2 { width: 28%; left: 45%; top: 42%; transform: rotate(27deg); animation-delay: -2s; }
.line-3 { width: 39%; left: 29%; top: 42%; transform: rotate(156deg); animation-delay: -4s; }
.line-4 { width: 29%; left: 43%; top: 37%; transform: rotate(215deg); animation-delay: -6s; }
.line-5 { width: 31%; left: 48%; top: 38%; transform: rotate(72deg); animation-delay: -3s; }
.line-6 { width: 24%; left: 49%; top: 42%; transform: rotate(112deg); animation-delay: -7s; }
.line-7 { width: 20%; left: 21%; top: 24%; transform: rotate(28deg); animation-delay: -1s; }
.line-8 { width: 22%; left: 71%; top: 65%; transform: rotate(160deg); animation-delay: -5s; }

.constellation-node {
  width: 7px;
  height: 7px;
  position: absolute;
  border: 1px solid rgba(255, 244, 217, .65);
  border-radius: 50%;
  background: #4e9dcc;
  box-shadow: 0 0 14px rgba(78, 157, 204, .55);
  animation: nodeDrift 8s ease-in-out infinite alternate;
}

.node-1 { left: 18%; top: 29%; }
.node-2 { left: 77%; top: 24%; animation-delay: -2s; }
.node-3 { left: 82%; top: 61%; animation-delay: -5s; }
.node-4 { left: 25%; top: 69%; animation-delay: -3s; }
.node-5 { left: 58%; top: 77%; animation-delay: -7s; }
.node-6 { left: 40%; top: 15%; animation-delay: -1s; }

.constellation-pulse {
  width: 5px;
  height: 5px;
  position: absolute;
  left: 48%;
  top: 38%;
  border-radius: 50%;
  background: #f0d9a7;
  box-shadow: 0 0 25px 10px rgba(61, 149, 204, .18);
  animation: constellationPulse 4.5s ease-in-out infinite;
}

.login-page form {
  padding: clamp(46px, 6vw, 95px);
}

.login-page form > span {
  color: var(--gold);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .64rem;
  font-weight: 600;
}

.login-page h1 {
  margin: 16px 0 22px;
  font-size: clamp(3.4rem, 4.8vw, 5.5rem);
  line-height: .82;
  letter-spacing: -.045em;
}

.login-page form > p {
  max-width: 510px;
  color: var(--muted);
  margin: 0 0 26px;
  line-height: 1.7;
}

.login-forgot {
  align-self: flex-end;
  color: var(--blue);
  background: transparent;
  border: 0;
  padding: 5px 0;
  font-size: .67rem;
}

@keyframes emblemBreathe {
  0%, 100% { filter: drop-shadow(0 0 17px rgba(70, 157, 216, .2)); }
  50% { filter: drop-shadow(0 0 30px rgba(70, 157, 216, .38)); }
}

@keyframes orbitDrift {
  from { transform: translate3d(-7px, 4px, 0) scale(.99); }
  to { transform: translate3d(9px, -6px, 0) scale(1.02); }
}

@keyframes nodeDrift {
  from { transform: translate3d(-3px, 4px, 0); opacity: .62; }
  to { transform: translate3d(5px, -4px, 0); opacity: 1; }
}

@keyframes lineLight {
  from { background-position: 200% 0; }
  to { background-position: -20% 0; }
}

@keyframes constellationPulse {
  0%, 100% { transform: scale(.8); opacity: .5; }
  50% { transform: scale(1.45); opacity: 1; }
}

@media (max-width: 900px) {
  .project-year-hero { min-height: 36vh; }
  .project-year-rail { width: 100%; }
  .vacation-grid { grid-template-columns: repeat(2, 1fr); }
  .vacation-detail-hero { min-height: auto; grid-template-columns: 1fr; }
  .vacation-detail-image { min-height: 55vh; }
  .vacation-detail-copy { padding: 55px 7vw 70px; }
  .vacation-back { margin-bottom: 50px; }
  .login-page { min-height: 100svh; grid-template-columns: 1fr; }
  .login-visual { min-height: 330px; padding: 54px 8vw 40px; }
  .login-emblem { width: 90px; margin-bottom: 18px; }
  .login-visual-copy strong { font-size: clamp(2.8rem, 8vw, 4rem); }
  .login-visual-copy p { display: none; }
  .login-page form { padding: 46px 8vw 55px; }
  .login-page h1 { font-size: clamp(3rem, 8vw, 4.2rem); }
  .node-5, .node-6, .line-5, .line-6, .line-7, .line-8 { display: none; }
}

@media (max-width: 560px) {
  .project-year-hero,
  .vacation-intro { min-height: 52vh; padding: 105px 24px 48px; }
  .project-year-hero h1,
  .vacation-intro h1 { font-size: clamp(3.6rem, 15vw, 5.2rem); }
  .project-year-controls { width: 100%; padding-inline: 20px; }
  .project-category-row { flex-wrap: wrap; overflow: visible; gap: 4px 8px; padding-bottom: 4px; }
  .projects-year-grid { grid-template-columns: 1fr; }
  .vacation-years { width: 100%; padding-inline: 20px; }
  .vacation-grid { grid-template-columns: 1fr; }
  .vacation-card article { padding: 18px 0 2px; }
  .vacation-story { grid-template-columns: 1fr; gap: 45px; }
  .vacation-gallery { grid-template-columns: 1fr; grid-template-rows: 360px 220px 220px; }
  .vacation-gallery-image:first-child { grid-row: auto; }
  .vacation-detail-image { min-height: 48vh; }
  .vacation-detail-copy h1 { font-size: 4.3rem; }
  .vacation-meta { gap: 28px; }
  .login-visual { min-height: 232px; padding: 25px 24px 20px; }
  .login-emblem { width: 62px; margin-bottom: 8px; }
  .login-visual-copy strong { font-size: 2.25rem; }
  .login-page form { padding: 28px 24px 30px; }
  .login-page h1 { margin: 10px 0 13px; font-size: 2.9rem; }
  .login-page form > p { margin-bottom: 13px; font-size: .74rem; line-height: 1.55; }
  .login-page label { margin: 5px 0; }
  .login-page input { padding: 11px; }
  .login-page form > .button { min-height: 48px; margin: 12px 0 8px; }
  .login-page form > small { font-size: .58rem; }
}

@media (prefers-reduced-motion: reduce) {
  .projects-year-grid,
  .login-emblem,
  .constellation-orbit,
  .constellation-line,
  .constellation-node,
  .constellation-pulse { animation: none !important; }
}
/* Keep the Journey detail CTA above the transformed card plane so pointer and
   touch activation stays reliable after the scroll-driven flip. */
.timeline-card-face {
  -webkit-backface-visibility: hidden;
}

.timeline-card-back {
  transform: rotateY(180deg) translateZ(1px);
}

.timeline-card-back a {
  z-index: 6;
  isolation: isolate;
  width: fit-content;
  min-height: 44px;
  padding: 8px 2px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transform: translateZ(4px);
}

.timeline-card-back a::after {
  content: "";
  position: absolute;
  inset: -6px -12px;
}

/* The hero artwork is now only artwork. Keeping all readable content as live
   HTML prevents the headline and controls from softening as the image scales. */
.hero-image-hotspots,
.mobile-reference-actions {
  display: none !important;
}

/* Home intentionally ends with the hero; the site footer remains available on
   every content page, including About after its relocated Journey timeline. */
body:has(.home-hero-only) .site-footer {
  display: none;
}

/* The Journey Through the Years showcase is intentionally retained in the
   application for a possible future return, but is no longer shown on About. */
.about-inner-wheel-page + .journey-showcase {
  display: none !important;
}

.home-hero-only {
  min-height: 100svh;
}

.hero-reference-image {
  object-position: center;
  image-rendering: auto;
}

.hero-live-copy {
  z-index: 7;
  width: min(40vw, 610px);
  color: #0d2a4d;
  position: absolute;
  top: 51%;
  left: clamp(44px, 5.6vw, 92px);
  transform: translateY(-50%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hero-live-copy h1 {
  margin: 0;
  color: #0b294d;
  font-family: var(--font-display);
  font-size: clamp(4.35rem, 6.3vw, 7.25rem);
  font-weight: 500;
  letter-spacing: -.057em;
  line-height: .77;
}

.hero-live-copy h1 span,
.hero-live-copy h1 em {
  display: block;
}

.hero-live-copy h1 em {
  margin-top: .08em;
  color: #b3863f;
  font-weight: 400;
}

.hero-live-ornament {
  width: min(86%, 430px);
  color: #b3863f;
  align-items: center;
  gap: 14px;
  margin: clamp(22px, 3vh, 34px) 0 25px;
  display: flex;
}

.hero-live-ornament i {
  height: 1px;
  background: #bd914d;
  flex: 1;
}

.hero-live-ornament span {
  font-size: .85rem;
  line-height: 1;
}

.hero-live-copy p {
  max-width: 500px;
  margin: 0 0 28px;
  color: #183854;
  font-size: clamp(.84rem, 1.05vw, 1rem);
  line-height: 1.72;
}

.hero-live-actions {
  flex-wrap: wrap;
  gap: 14px;
  display: flex;
}

.hero-live-actions .button {
  min-height: 54px;
  padding-inline: clamp(19px, 1.8vw, 28px);
  letter-spacing: 0;
}

.hero-live-actions .button.primary {
  color: #fff;
  background: #0d2a4d;
  border-color: #0d2a4d;
}

.hero-live-actions .button.secondary {
  color: #0d2a4d;
  background: rgba(255, 253, 247, .62);
  border-color: #52677a;
}

@media (max-width: 1199px) {
  .split-opener-hero {
    height: 110svh;
    min-height: 720px;
  }

  .hero-reference-image {
    object-position: 66% center;
  }

  .hero-live-copy {
    width: min(58vw, 590px);
    top: 8%;
    left: 28px;
    padding: 28px clamp(24px, 3.2vw, 38px) 30px;
    background: linear-gradient(110deg, rgba(251, 247, 239, .97), rgba(251, 247, 239, .91));
    border: 1px solid rgba(124, 94, 43, .14);
    box-shadow: 0 18px 55px rgba(17, 41, 58, .14);
    transform: none;
  }

  .hero-live-copy h1 {
    font-size: clamp(4rem, 7vw, 5.4rem);
  }
}

@media (max-width: 900px) {
  .split-opener-hero {
    height: 110svh;
    min-height: 720px;
  }

  .hero-reference-image {
    object-position: 66% center;
  }

  .hero-live-copy {
    width: calc(100% - 40px);
    max-width: 590px;
    top: 7.5%;
    left: 20px;
    padding-inline: clamp(22px, 5vw, 38px);
  }

  .hero-live-copy h1 {
    font-size: clamp(3.6rem, 12vw, 5.4rem);
  }

  .hero-live-copy p {
    max-width: 520px;
  }
}

@media (max-width: 560px) {
  .split-opener-hero {
    height: 118svh;
    min-height: 760px;
  }

  .hero-live-copy {
    top: 4.5%;
    width: calc(100% - 28px);
    left: 14px;
    padding: 24px 20px 25px;
  }

  .hero-live-copy h1 {
    font-size: clamp(3.15rem, 15vw, 4.35rem);
  }

  .hero-live-ornament {
    margin-block: 18px 17px;
  }

  .hero-live-copy p {
    margin-bottom: 20px;
    font-size: .78rem;
    line-height: 1.62;
  }

  .hero-live-actions {
    grid-template-columns: 1fr;
    gap: 10px;
    display: grid;
  }

  .hero-live-actions .button {
    width: 100%;
    min-height: 49px;
  }
}

/* Centre the heading and supporting copy in public page introductions. */
.page-hero {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-hero-inner {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
}

.page-hero h1,
.page-hero p {
  margin-inline: auto;
}

.journey-page-intro,
.memories-intro,
.search-hero,
.project-year-hero,
.vacation-intro {
  text-align: center;
}

.project-year-hero,
.vacation-intro {
  align-content: center;
  justify-items: center;
}

.project-year-hero h1,
.project-year-hero p,
.vacation-intro h1,
.vacation-intro p,
.search-hero .large-search {
  margin-inline: auto;
}

/* Give page introductions a balanced vertical centre and more breathing room. */
.page-hero {
  box-sizing: border-box;
  min-height: clamp(500px, 70svh, 680px);
}

.page-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-hero h1 {
  line-height: .95;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.page-hero p {
  margin-top: clamp(28px, 3vw, 42px);
}

.journey-page-intro,
.memories-intro {
  box-sizing: border-box;
  min-height: clamp(480px, 63svh, 650px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.journey-page-intro h1,
.memories-intro h1 {
  max-width: 1500px;
  margin: clamp(24px, 3vw, 38px) auto clamp(28px, 3vw, 42px);
  font-size: clamp(3.8rem, 5.6vw, 6.3rem);
  line-height: .98;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.journey-page-intro p,
.memories-intro p {
  max-width: 760px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 48svh;
  }

  .journey-page-intro,
  .memories-intro {
    min-height: min(60svh, 520px);
  }
}
