:root {
  --paper: #FAF6EF;
  --paper-2: #F4EEE3;
  --ink: #251F1A;
  --prose: #4A4139;
  --muted: #6B6058;
  --faint: #9C8F7D;
  --line: #E7DFD2;
  --line-2: #E3D9C9;
  --well: #E0D5C4;
  --accent: #A96A4E;
  --pad: 120px;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Work Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

img { max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: #854F36; }

h1, h2, p { margin: 0; text-wrap: pretty; }

.wrap { padding-left: var(--pad); padding-right: var(--pad); }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.15;
  margin-top: 18px;
}

/* ---------- header / nav ---------- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.site-header .brand img { display: block; height: 52px; width: auto; }

.nav {
  display: flex;
  gap: 34px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.nav a { color: var(--muted); padding-bottom: 3px; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- welcome band (home only) ---------- */

.welcome {
  padding-top: 56px;
  padding-bottom: 18px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.35;
  letter-spacing: 0.005em;
  color: var(--ink);
}

/* only the name carries the weight */
.welcome strong { font-weight: 600; }

/* marker-style highlight sitting behind the text only */
.welcome span {
  background-image: linear-gradient(
    180deg,
    transparent 56%,
    rgba(176, 134, 46, 0.32) 56%,
    rgba(176, 134, 46, 0.32) 94%,
    transparent 94%
  );
  padding: 0 12px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- hero (home) ---------- */

.hero {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 40px;
  align-items: center;
  padding-top: 62px;
  padding-bottom: 92px;
}

.hero .domain {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(52px, 7.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin-top: 22px;
}

.rule { width: 64px; height: 1px; background: var(--accent); margin: 30px 0 26px; }

.hero .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(21px, 2.6vw, 26px);
  line-height: 1.5;
  color: var(--prose);
  max-width: 470px;
}

.hero .meta {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 30px;
}

.hero img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  border: 1px solid var(--well);
}

/* ---------- page head (inner pages) ---------- */

.page-head {
  padding-top: 76px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-top: 20px;
}

.page-head .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 620px;
  margin-top: 22px;
}

/* ---------- story ---------- */

.story {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 56px;
  padding-top: 80px;
  padding-bottom: 88px;
  align-items: start;
}

.story p { font-size: 17px; line-height: 1.85; color: var(--prose); max-width: 620px; }
.story p + p { margin-top: 20px; }

.story img {
  display: block;
  width: 100%;
  height: 560px;
  object-fit: cover;
  border: 1px solid var(--well);
}

/* ---------- moments / milestone timeline ---------- */

.counter {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.counter #days { color: var(--accent); font-weight: 500; }

.timeline-wrap { padding-top: 84px; padding-bottom: 92px; }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* the rail */
.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 1px;
  margin-left: -0.5px;
  background: linear-gradient(180deg, transparent, var(--line-2) 6%, var(--line-2) 94%, transparent);
}

.ms {
  display: grid;
  grid-template-columns: 1fr 96px 1fr;
  align-items: center;
  position: relative;
}

.ms + .ms { margin-top: 56px; }

.ms-dot {
  grid-column: 2;
  justify-self: center;
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--paper);
  background: color-mix(in srgb, var(--c) 10%, var(--paper));
  border: 1px solid var(--c);
  color: var(--c);
  box-shadow: 0 0 0 8px var(--paper);
  position: relative;
  z-index: 1;
}

.ms-dot svg { width: 30px; height: 30px; }

.ms-open .ms-dot { border-style: dashed; }

.ms-card {
  background: #FFFCF7;
  border: 1px solid var(--line);
  border-top: 3px solid var(--c);
  padding: 30px 34px 32px;
  box-shadow: 0 1px 2px rgba(37, 31, 26, 0.03);
}

.ms:nth-child(odd) .ms-card { grid-column: 1; text-align: right; }
.ms:nth-child(even) .ms-card { grid-column: 3; }

.ms-date {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.2;
  color: var(--c);
}

.ms-card h2 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 10px;
  color: var(--ink);
}

.ms-card p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 12px;
}

/* ---------- pull quote ---------- */

.quote {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 88px;
  padding-bottom: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.quote span { width: 48px; height: 1px; background: var(--well); }

.quote p {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.55;
  text-align: center;
  color: #3A322B;
  max-width: 780px;
}

/* ---------- explore cards (home) ---------- */

.explore { padding-top: 88px; padding-bottom: 88px; }

.explore .cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.card { display: block; color: inherit; }
.card img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border: 1px solid var(--well);
}
.card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  margin-top: 20px;
  color: var(--ink);
}
.card p { font-size: 15px; line-height: 1.7; color: var(--muted); margin-top: 8px; }
.card .go {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.card:hover h2 { color: var(--accent); }

/* ---------- album ---------- */

.album { padding-top: 76px; padding-bottom: 88px; }

/* Every photo keeps its own proportions — nothing is cropped to fit. */
.masonry { column-count: 3; column-gap: 20px; }

.masonry img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 20px;
  border: 1px solid var(--well);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

/* ---------- contact ---------- */

.hello { padding-top: 88px; padding-bottom: 96px; text-align: center; }

.hello p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 470px;
  margin: 0 auto 34px;
}

.contacts { display: flex; flex-direction: column; align-items: center; gap: 18px; }

.contacts .email {
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 30px);
  border-bottom: 1px solid var(--well);
  padding-bottom: 4px;
  word-break: break-word;
}

.contacts .phone { font-size: 14px; letter-spacing: 0.14em; color: var(--muted); }

/* ---------- next link ---------- */

.next {
  border-top: 1px solid var(--line);
  padding-top: 34px;
  padding-bottom: 34px;
  display: flex;
  justify-content: flex-end;
}

.next a {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- footer ---------- */

.site-footer {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  padding-bottom: 26px;
  font-size: 12px;
  color: var(--faint);
}

.site-footer .mark { display: flex; align-items: center; gap: 14px; }
.site-footer img { display: block; height: 26px; width: auto; }

.site-footer .rights {
  grid-column: 2;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  :root { --pad: 64px; }
  .hero img { height: 460px; }
  .story img { height: 480px; }
  .masonry { column-gap: 16px; }
  .masonry img { margin-bottom: 16px; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 64px; padding-bottom: 64px; }
  .hero img { height: 440px; }
  .story { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; padding-bottom: 64px; }
  .story img { height: 420px; }
  .nav { gap: 22px; font-size: 12px; }
  .site-header .brand img { height: 46px; }
  .explore .cards { grid-template-columns: 1fr; gap: 36px; }
  .masonry { column-count: 2; }
  .card img { height: 260px; }
  .quote, .explore, .album, .hello { padding-top: 64px; padding-bottom: 64px; }
  .page-head { padding-top: 56px; padding-bottom: 36px; }
}

@media (max-width: 620px) {
  :root { --pad: 24px; }
  .site-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .nav { gap: 18px; flex-wrap: wrap; }
  .hero img { height: 380px; }
  .masonry { column-count: 1; column-gap: 14px; }
  .masonry img { margin-bottom: 14px; }
  .site-footer { grid-template-columns: 1fr; justify-items: center; gap: 16px; text-align: center; }
  .site-footer .mark { justify-content: center; }
  .site-footer .rights { grid-column: 1; white-space: normal; }
}

/* ---------- photo viewer ---------- */

.masonry img { cursor: zoom-in; transition: opacity 0.2s ease; }
.masonry img:hover { opacity: 0.9; }
.masonry img:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(26, 21, 17, 0.94);
  overscroll-behavior: contain;
}

.lb.open { display: flex; }

.lb-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}

.lb-img {
  max-width: 92vw;
  max-height: 84vh;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  cursor: default;
}

.lb.zoomed .lb-img { cursor: grab; }
.lb.zoomed .lb-img:active { cursor: grabbing; }

.lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(250, 246, 239, 0.28);
  border-radius: 50%;
  background: rgba(26, 21, 17, 0.5);
  color: #FAF6EF;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lb-btn:hover { background: rgba(250, 246, 239, 0.16); border-color: rgba(250, 246, 239, 0.5); }
.lb-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.lb-close { position: absolute; top: 22px; right: 22px; z-index: 2; }

.lb-nav { position: absolute; top: 50%; margin-top: -24px; z-index: 2; }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }

.lb-bar {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
}

.lb-count {
  min-width: 62px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(250, 246, 239, 0.72);
}

.lb-hint {
  position: absolute;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 246, 239, 0.4);
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 620px) {
  .lb-img { max-width: 96vw; max-height: 76vh; }
  .lb-btn { width: 42px; height: 42px; }
  .lb-close { top: 14px; right: 14px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-bar { bottom: 18px; gap: 14px; }
  .lb-hint { display: none; }
}

/* ---------- milestone timeline: small screens ---------- */

@media (max-width: 900px) {
  .timeline-wrap { padding-top: 60px; padding-bottom: 68px; }
  .timeline::before { left: 37px; }
  .ms { grid-template-columns: 74px 1fr; column-gap: 24px; align-items: start; }
  .ms + .ms { margin-top: 34px; }
  .ms-dot { grid-column: 1; width: 74px; height: 74px; box-shadow: 0 0 0 6px var(--paper); }
  .ms:nth-child(odd) .ms-card,
  .ms:nth-child(even) .ms-card { grid-column: 2; text-align: left; }
  .ms-card { padding: 24px 26px 26px; }
}

@media (max-width: 620px) {
  .timeline::before { left: 30px; }
  .ms { grid-template-columns: 60px 1fr; column-gap: 18px; }
  .ms-dot { width: 60px; height: 60px; box-shadow: 0 0 0 5px var(--paper); }
  .ms-dot svg { width: 25px; height: 25px; }
  .ms-date { font-size: 21px; }
  .ms-card { padding: 20px 20px 22px; }
}

/* ---------- favourites strip (home) ---------- */

.strip { padding-top: 20px; padding-bottom: 88px; }

.strip-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.strip-row a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--well);
}

.strip-row img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.strip-row a:hover img { transform: scale(1.05); }

.strip-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 0.75s cubic-bezier(0.2, 0.6, 0.2, 1),
      transform 0.75s cubic-bezier(0.2, 0.6, 0.2, 1);
  }

  .reveal.in { opacity: 1; transform: none; }

  /* nav underline grows from the left instead of snapping on */
  .nav a {
    position: relative;
    border-bottom-color: transparent;
    transition: color 0.25s ease;
  }
  .nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s cubic-bezier(0.2, 0.6, 0.2, 1);
  }
  .nav a:hover::after,
  .nav a[aria-current="page"]::after { transform: scaleX(1); }

  /* cards lift a little, and their photo drifts in */
  .card { transition: transform 0.45s cubic-bezier(0.2, 0.6, 0.2, 1); }
  .card img { transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1); }
  .card:hover { transform: translateY(-5px); }
  .card > div.card-frame { overflow: hidden; }
  .card:hover img { transform: scale(1.04); }

  /* album thumbnails */
  .masonry img { transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1); }
  .masonry img:hover { transform: scale(1.015); }

  /* milestone medallions settle in */
  .ms-dot { transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1), box-shadow 0.3s ease; }
  .ms:hover .ms-dot { transform: scale(1.06); }

  /* the viewer fades open */
  .lb { animation: lb-fade 0.28s ease both; }
  @keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
  .lb-img { transition: transform 0.18s ease-out; }
  .lb.zoomed .lb-img { transition: none; }
}

@media (max-width: 900px) {
  .strip-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .strip-row img { height: 220px; }
  .strip { padding-bottom: 64px; }
}

@media (max-width: 620px) {
  .strip-row img { height: 180px; }
}

/* ---------- our families ---------- */

.families {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding-top: 88px;
  padding-bottom: 92px;
}

.fam-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  margin-top: 48px;
}

.fam + .fam {
  border-left: 1px solid var(--line-2);
  padding-left: 72px;
}

.fam-who {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}

.fam-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line-2);
}

.fam-row:last-child { border-bottom: 1px solid var(--line-2); }

.fam-label {
  flex: 0 0 62px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.fam-name {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.35;
  color: var(--ink);
}

@media (max-width: 900px) {
  .families { padding-top: 64px; padding-bottom: 68px; }
  .fam-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 36px; }
  .fam + .fam { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-2); padding-top: 40px; }
  .fam-name { font-size: 22px; }
}

@media (max-width: 620px) {
  .fam-row { flex-direction: column; gap: 6px; padding: 14px 0; }
  .fam-label { flex: none; }
}

/* ---------- home: entrance choreography ---------- */

.hero-photo { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {

  /* the two name lines slide up from behind their own edge */
  .hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
  .hero h1 .line > span {
    display: block;
    animation: rise 1s cubic-bezier(0.2, 0.6, 0.2, 1) both;
  }
  .hero h1 .line:nth-child(1) > span { animation-delay: 0.15s; }
  .hero h1 .line:nth-child(2) > span { animation-delay: 0.3s; }

  .hero .domain,
  .hero .tagline,
  .hero .meta { animation: fade-up 0.9s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
  .hero .domain  { animation-delay: 0.05s; }
  .hero .tagline { animation-delay: 0.62s; }
  .hero .meta    { animation-delay: 0.76s; }

  /* the short rule draws itself out */
  .hero .rule { animation: draw 0.85s cubic-bezier(0.2, 0.6, 0.2, 1) 0.5s both; }

  /* the photograph wipes down into view, then drifts very slowly forever */
  .hero-photo { animation: wipe 1.15s cubic-bezier(0.2, 0.6, 0.2, 1) 0.25s both; }
  .hero-photo img { animation: kenburns 28s ease-in-out 1.4s infinite alternate; }

  /* the highlighter draws across the welcome line */
  .welcome span {
    background-repeat: no-repeat;
    background-size: 0% 100%;
    animation: mark 1.1s cubic-bezier(0.2, 0.6, 0.2, 1) 1s forwards;
  }

  /* favourites lift as the cursor passes */
  .strip-row a { transition: transform 0.45s cubic-bezier(0.2, 0.6, 0.2, 1); }
  .strip-row a:hover { transform: translateY(-6px); }
}

@keyframes rise {
  from { transform: translateY(105%); }
  to   { transform: translateY(0); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@keyframes draw {
  from { width: 0; }
  to   { width: 64px; }
}

@keyframes wipe {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

@keyframes mark {
  from { background-size: 0% 100%; }
  to   { background-size: 100% 100%; }
}

/* ---------- what is next: two bands, opposite directions ---------- */

.whatsnext {
  padding-top: 46px;
  padding-bottom: 46px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
}

.whatsnext .eyebrow { text-align: center; margin-bottom: 22px; }

.ticker {
  overflow: hidden;
  padding: 7px 0;
  white-space: nowrap;
}

.ticker + .ticker { margin-top: 2px; }

.ticker-track { display: flex; width: max-content; }

.ticker-group { display: flex; align-items: center; }

.tick {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.25;
  padding: 0 20px;
}

.dot {
  flex: none;
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: currentColor;
  opacity: 0.42;
}

.ticker-a { color: #A96A4E; }
.ticker-b { color: #B0862E; }

@media (prefers-reduced-motion: no-preference) {
  .ticker-a .ticker-track { animation: slide-left 46s linear infinite; }
  .ticker-b .ticker-track { animation: slide-right 46s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }

  /* the first band arrives from above, the second from below */
  .ticker-a.reveal { transform: translateY(-40px); }
  .ticker-b.reveal { transform: translateY(40px); }
  .ticker-a.reveal.in,
  .ticker-b.reveal.in { transform: none; }
}

@keyframes slide-left {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@keyframes slide-right {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

/* with motion turned off, show the line once, centred and still */
@media (prefers-reduced-motion: reduce) {
  .ticker { white-space: normal; text-align: center; }
  .ticker-track { width: auto; justify-content: center; }
  .ticker-group + .ticker-group { display: none; }
  .ticker-group .tick ~ .tick,
  .ticker-group .dot { display: none; }
}

@media (max-width: 620px) {
  .whatsnext { padding-top: 34px; padding-bottom: 34px; }
  .tick { padding: 0 18px; }
  .ticker + .ticker { margin-top: 4px; }
}

/* ---------- moments: the open-ended last block ---------- */

.ms-final .ms-card { padding-bottom: 30px; }
.ms-final .ms-card h2 { color: var(--muted); font-weight: 400; letter-spacing: 0.06em; }

@media (prefers-reduced-motion: no-preference) {
  .ms-final .ms-dot svg circle { animation: dots 1.9s ease-in-out infinite; }
  .ms-final .ms-dot svg circle:nth-child(2) { animation-delay: 0.22s; }
  .ms-final .ms-dot svg circle:nth-child(3) { animation-delay: 0.44s; }
}

@keyframes dots {
  0%, 60%, 100% { opacity: 0.35; }
  30%           { opacity: 1; }
}
