/* =====================================================================
   Design System · Components — buttons, header, cards, footer, forms
   ===================================================================== */

/* ---------- Buttons ---------- */
.btn {
  --btn-pad-y: 15px;
  --btn-pad-x: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink-25); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(0,0,0,.5); }

.btn--outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn--sm { --btn-pad-y: 11px; --btn-pad-x: 20px; font-size: .88rem; }
.btn--lg { --btn-pad-y: 18px; --btn-pad-x: 34px; font-size: 1rem; }
.btn--block { width: 100%; }

/* text link with brass underline sweep */
.link-brass {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding-bottom: 2px;
  background-image: linear-gradient(var(--brass), var(--brass));
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--dur) var(--ease);
}
.link-brass:hover { background-size: 100% 1.5px; }
.on-dark .link-brass { color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,250,247,.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--hairline-l);
  box-shadow: 0 6px 20px -18px rgba(14,42,71,.5);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--header-h);
  transition: height var(--dur) var(--ease);
}
.site-header.is-scrolled .nav { height: 64px; }

.brand { display: inline-flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .01em;
  color: var(--ink);
}
.brand__sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-top: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 36px);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .93rem;
}
.nav__links a { color: var(--slate-700); transition: color var(--dur-fast) var(--ease); }
.nav__links a:hover { color: var(--ink); }

.nav__right { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); }
.datechip {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  color: var(--slate-500);
  white-space: nowrap;
}

/* Hamburger */
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 0; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav__toggle span::before { transform: translateY(-7px); }
.nav__toggle span::after  { transform: translateY(5px); }
body.menu-open .nav__toggle span { background: transparent; }
body.menu-open .nav__toggle span::before { transform: rotate(45deg); }
body.menu-open .nav__toggle span::after  { transform: rotate(-45deg) translateY(-2px); }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink-deep);
  color: #fff;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease), opacity var(--dur) var(--ease), visibility var(--dur);
}
body.menu-open .mobile-menu { transform: none; opacity: 1; visibility: visible; }
.mobile-menu a.m-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  color: #fff;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline-d);
}
.mobile-menu a.m-link:hover { color: var(--brass-soft); }
.mobile-menu .m-meta { margin-top: auto; color: var(--on-dark-60); font-size: .9rem; }
.mobile-menu .btn { margin-top: 22px; }

@media (max-width: 940px) {
  .nav__links, .datechip { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__right .btn--primary { display: none; }
}

/* Mobile sticky register bar */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  display: none;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--gutter);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--hairline-l);
  transform: translateY(120%);
  transition: transform var(--dur) var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta__meta { font-family: var(--font-display); font-weight: 600; font-size: .82rem; color: var(--ink); }
.sticky-cta__meta span { display: block; color: var(--slate-500); font-weight: 500; font-size: .72rem; }
@media (max-width: 940px) { .sticky-cta { display: flex; } }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: var(--r);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

/* Speaker card */
.speaker {
  overflow: hidden;
}
.speaker:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.speaker__photo {
  position: relative;
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 30% 20%, #163a5f 0%, var(--ink) 55%, var(--ink-deep) 100%);
}
/* On-brand monogram shown when no photo is present (photo layered on top) */
.speaker__photo[data-initials]::before {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.4rem;
  letter-spacing: .04em;
  color: var(--brass-soft);
}
.speaker__photo[data-initials]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 22%;
  width: 34px; height: 1px;
  transform: translateX(-50%);
  background: rgba(201,172,110,.5);
}
.speaker__photo img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.03) brightness(1.02);
  transition: filter var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.speaker__photo img[hidden] { display: none; }
.speaker:hover .speaker__photo img { filter: grayscale(0); transform: scale(1.03); }
.speaker__body { padding: 18px 18px 22px; }
.speaker__body h3 { font-size: 1.02rem; letter-spacing: -.01em; margin-bottom: 5px; }
.speaker__role { font-size: .8rem; color: var(--slate-500); line-height: 1.4; min-height: 2.4em; }
.speaker__co { margin-top: 12px; font-family: var(--font-display); font-weight: 600; font-size: .82rem; color: var(--brass); }

/* Case-study card (on dark) */
.case { background: var(--ink); padding: 38px 34px; transition: background var(--dur) var(--ease); }
.case:hover { background: rgba(255,255,255,.03); }
.case__tag {
  font-family: var(--font-display);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass-soft); margin-bottom: 16px;
}
.case h3 { color: #fff; font-size: 1.3rem; margin-bottom: 14px; }
.case p { color: var(--on-dark-60); font-size: .95rem; margin-bottom: 22px; }
.case__by { font-family: var(--font-display); font-size: .86rem; color: var(--on-dark-90); }
.case__by b { color: #fff; font-weight: 600; }

/* Topic row */
.topic { display: flex; gap: 22px; }
.topic__num { font-family: var(--font-serif); font-style: italic; color: var(--brass); font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.topic p { font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; color: var(--ink); line-height: 1.35; }

/* Pillar */
.pillar { border-top: 2px solid var(--brass); padding-top: 22px; }
.pillar h3 { font-size: 1.12rem; margin-bottom: 10px; }
.pillar p { color: var(--slate-700); font-size: .95rem; }

/* Stat */
.stat__n { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 2.8rem); color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.stat__l { color: var(--slate-500); font-size: .9rem; margin-top: 8px; }

/* Quote */
.quote { background: #fff; border: 1px solid var(--slate-100); border-radius: var(--r); padding: 34px 30px; }
.quote__mark { font-family: var(--font-serif); font-size: 3rem; line-height: .2; color: var(--brass); display: block; margin-bottom: 22px; height: .5em; }
.quote p { font-family: var(--font-serif); font-size: 1.15rem; color: var(--ink); margin-bottom: 22px; line-height: 1.5; }
.quote__who { font-family: var(--font-display); font-weight: 600; font-size: .9rem; }
.quote__who span { display: block; color: var(--slate-500); font-weight: 500; font-size: .82rem; margin-top: 2px; }

/* Chip / tag */
.chip {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-weight: 600;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brass); padding: 6px 12px; border: 1px solid var(--brass);
  border-radius: var(--r-pill);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--on-dark-60); padding: 70px 0 40px; font-size: .9rem; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--hairline-d); }
.foot-brand { max-width: 300px; }
.foot-brand .brand__name { color: #fff; font-size: 1.1rem; }
.foot-brand p { margin-top: 12px; font-size: .85rem; line-height: 1.6; }
.foot-col h4 { font-family: var(--font-display); color: #fff; font-size: .95rem; margin-bottom: 14px; font-weight: 600; }
.foot-col a { display: block; color: var(--on-dark-60); padding: 5px 0; transition: color var(--dur-fast) var(--ease); }
.foot-col a:hover { color: var(--brass-soft); }
.foot-bot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 26px; font-size: .82rem; }
.foot-social { display: flex; gap: 10px; }
.foot-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  color: var(--on-dark-60);
  border: 1px solid var(--hairline-d);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.foot-social a:hover {
  color: var(--ink-deep);
  background: var(--brass-soft);
  border-color: var(--brass-soft);
  transform: translateY(-2px);
}

/* ---------- Screen-reader only ---------- */
.slider__sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Testimonial slider ---------- */
.slider { position: relative; margin-top: 56px; }
.slider__viewport { overflow: hidden; }
.slider__track {
  display: flex;
  transition: transform var(--dur-slow) var(--ease);
  will-change: transform;
}
.slider__slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 8px clamp(4px, 5vw, 72px);
  display: flex;
  justify-content: center;
  opacity: .28;
  transition: opacity var(--dur-slow) var(--ease);
}
.slider__slide.is-active { opacity: 1; }
.slider__quote { max-width: 62ch; text-align: center; }
.slider__mark {
  font-family: var(--font-serif); font-size: 3.4rem; line-height: .1;
  color: var(--brass); display: block; height: .55em; margin-bottom: 26px;
}
.slider__quote blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 1rem + 1.8vw, 2.1rem);
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -.01em;
}
.slider__who {
  margin-top: 30px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--ink);
}
.slider__who span { display: block; color: var(--slate-500); font-weight: 500; font-size: .85rem; margin-top: 3px; }

.slider__controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 44px; }
.slider__btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--ink);
  border: 1px solid var(--slate-300); cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.slider__btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.slider__btn:active { transform: translateY(0); }

.slider__dots { display: flex; align-items: center; gap: 9px; }
.slider__dot {
  width: 8px; height: 8px; border-radius: var(--r-pill);
  background: var(--slate-300); border: 0; padding: 0; cursor: pointer;
  transition: width var(--dur) var(--ease), background var(--dur) var(--ease);
}
.slider__dot:hover { background: var(--slate-500); }
.slider__dot[aria-selected="true"] { width: 26px; background: var(--brass); }

@media (prefers-reduced-motion: reduce) {
  .slider__track { transition: none; }
  .slider__slide { opacity: 1; }
}
