:root {
  --bg: #000000;
  /* ← change this to update background site-wide */
  --text: #f3f3f3;
  --muted: #ffffff99;
  --max: 1200px;
  --rule: rgba(255, 255, 255, .14);
}

/* Thoughts carousel */
#thoughts .thoughts-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
  transform: translateX(-5%);

}

#thoughts .thoughts-carousel .t-viewport {
  overflow: hidden;
  position: relative;
  width: 100%;
  min-height: 6rem;
  height: 30vh;
  align-items: center;
  /* fallback; JS overwrites to tallest card */
}

#thoughts .thoughts-carousel .t-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.35s ease;
  will-change: transform;
  align-items: center;
}

#thoughts .thoughts-carousel .t-card {
  flex: 0 0 100%;
  padding: 0.25rem 0;
  justify-content: center;

  align-items: center;
  text-align: left;
  font-size: clamp(20px, 2.2vw, 28px);
  margin: 0 0;
  font-style: italic;
}

#thoughts .thoughts-carousel .t-card p {
  margin: 0;
}

#thoughts .thoughts-carousel .t-btn {
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

#thoughts .thoughts-carousel .t-btn:disabled {
  opacity: 0.2;
  cursor: default;
}

#thoughts .thoughts-carousel .t-rand {
  display: none !important;
}

/* Links */
a {
  color: #ffffff;
  text-decoration: none;
  transition: color .2s ease-in-out;
  margin-right: 0px;
  font-family: "Inter Tight", Helvetica, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  /* match body */
  letter-spacing: -0em;
  /* mild tighten */
}

a:hover {
  color: #e27396;
  text-decoration: underline;
}

a:visited {
  color: #ffffffca;
}

a:visited:hover {
  color: #e27396;
  text-decoration: underline;
}


* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  /* Safari/macOS */
  -moz-osx-font-smoothing: grayscale;
  /* Firefox/macOS */
  text-rendering: optimizeLegibility;
  /* kerning/ligatures in Firefox*/
}

/* Headroom when a summary is scrolled into view */
details.acc {
  scroll-margin-top: 14vh;
}

body {
  margin: 0;
  background: var(--bg) !important;
  background-color: var(--bg) !important;
  color: var(--text);
  font: 500 18px/1.40 Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  transition: background-color .45s ease;

}

body.bg-linkedin {
  --bg: #0A66C2;
}

/* Sticky logo */
.logo-wrap {
  position: fixed;
  inset: 26px auto auto 32px;
  z-index: 1000;
  display: block;
}

.logo {
  width: min(64px, 16vw);
  height: auto;
  border-radius: 14px;
  box-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}

/* Fixed quick-links (bottom-left) */
.quick-links {
  position: fixed;
  text-decoration: none;
  left: 32px;
  bottom: 26px;
  z-index: 950;
  font-size: 20px;
  font-weight: 550;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  /* hidden until title finishes */
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease;
}

.quick-links.show {
  opacity: 0.9;
  transform: translateY(0);
}

.quick-links a {
  color: #fff;
}

.quick-links a:hover {
  color: #e27396;
  text-decoration: underline;
}

/* Layout */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14vh 6vw 20vh;
}

/* Intro centered in viewport */
.block-intro {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* vertical center */
  align-items: center;
  /* horizontal center */
  text-align: center;
  margin-top: calc(-14vh);
  /* neutralize page's top padding for true centering */
}

.block {
  margin: 0 0;
  margin-top: -7rem;
}

/* Type rhythm */
.xl {
  font-size: clamp(50px, 8vw, 110px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px 0;

}

.kicker {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  margin: 18px 0 20px;
}

.line {
  font-size: clamp(20px, 2.0vw, 26px);
  margin: .25em 0;
}

.lineB {
  font-size: clamp(22px, 2.4vw, 30px);
  margin: .25em 0;
  font-weight: 700;
}

.lineS {
  font-size: clamp(20px, 2.0vw, 26px);
  margin: .35em 0;
  font-weight: 650;
}

.line2 {
  font-size: clamp(20px, 2.0vw, 26px);
  margin: .25em 0;
}

/* Title word-by-word animation (slower) */
.xl .w {
  opacity: 0;
  transform: translateY(.4em);
  display: inline-block;
  transition: opacity .5s ease, transform .5s ease;
}

.xl .w.on {
  opacity: 1;
  transform: translateY(0);
}

/* Subtitle slide-in (from right, after title completes) */
.subtitle {
  opacity: 0;
  font-size: clamp(30px, 2.6vw, 36px);
  font-weight: 400;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease;
}

.subtitle.show {
  opacity: 1;
  transform: translateY(0);
}

/* Sticky footer (bottom-right) */
.foot {
  position: fixed;
  right: 32px;
  bottom: 26px;
  z-index: 960;
  opacity: .4;
  font-size: 13px;
  margin: 0;
  pointer-events: auto;
}

/* ===== Accordion toggles (details/summary) ===== */
details.block {
  padding: 0 0;
  border-top: 0px solid var(--rule);
  scroll-margin-top: 14vh;
  /* when scrolled into view, keep this headroom */
}

details.block+details.block {
  margin-top: 0;
}

details.block summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: .6rem;
  font-weight: 550;
  padding: .2rem 0;
  font-size: clamp(26px, 2.4vw, 30px);
  outline: none;
}

details.block summary::-webkit-details-marker {
  display: none;
}

/* Number prefix */
.num {
  font-weight: 700;
  opacity: 1;
  font-size: 1.05em;
  width: 3ch;
  /* fixed slot for e.g., “05.” */
  flex: 0 0 3ch;
  /* lock it in the flex row */
  text-align: right;
  /* neat alignment */
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Caret */
details.block summary::after {
  content: "›";
  margin-left: auto;
  transform: rotate(90deg);
  transition: transform .15s ease, opacity .15s ease;
  opacity: .2;
}

details.block[open] summary::after {
  transform: rotate(0);
}

/* Body inside toggle */
details.block>.body,
details.block>.content {
  margin-top: 1rem;
  padding-left: calc(6ch + .6rem);
}

/* Tighten rhythm inside toggles */
details.block .line {
  margin: .3rem 0;
}

/* Fullscreen sheet; centered on tall screens */
.booking-sheet {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1200;
  /* above logo */
  display: block;
  place-items: center;
  transform: translateY(100%);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
  overflow: hidden;
  /* hide any overflow */
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* When open, slide into view */
body.sheet-open .booking-sheet {
  transform: translateY(0);
}

/* Lock background scroll when sheet is open */
body.sheet-open {
  overflow: hidden;
}

/* The booking iframe fills the sheet */
.booking-sheet iframe {
  width: 100%;
  /* visible viewport height on mobile; prevents being covered by browser UI */
  height: 100dvh;
  /* primary */
  min-height: 100dvh;
  /* fallback / desktop correctness */
  display: block;
  border: 0;
  background: #000;

}

.booking-sheet::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: var(--bg);
}

/* Close button inside the sheet */
.sheet-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.sheet-close:hover {
  background: rgba(255, 255, 255, 0.247);
  color: #e27396;
}

.sheet-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Open animation */
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

details.block[open]>.body,
details.block[open]>.content {
  animation: reveal 0.18s ease-out both;
}

/* Focus rings */
summary:focus-visible,
a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Top-third fade overlay */
.fade-top {
  pointer-events: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 36vh;
  /* match bottom */
  z-index: 940;
  /* below logo/links, above content */
  background: linear-gradient(to top,
      transparent 0%,
      transparent 10%,
      /* clear band */
      var(--bg) 85%,
      /* ramp to solid */
      var(--bg) 100%
      /* solid at the very top */
    );
}

/* Bottom-third fade overlay */
.fade-bottom {
  pointer-events: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38vh;
  /* bottom third of the viewport */
  z-index: 940;
  /* below footer/quick-links, above content */
  background: linear-gradient(to bottom,
      transparent 0%,
      transparent 3%,
      /* stay clear a bit */
      var(--bg) 75%,
      /* reach full bg early */
      var(--bg) 100%
      /* solid to the end */
    );
}


/* Mobile */
@media (max-width: 640px) {
  .page {
    padding-top: 12vh;
  }

  .booking-sheet {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  /* make iframe use dynamic viewport height + safe area */
  .booking-sheet iframe {
    height: calc(100dvh + env(safe-area-inset-bottom, 0));
    width: 100%;
    display: block;
  }

  details.acc {
    scroll-margin-top: 12vh;
  }

  details.block {
    scroll-margin-top: 12vh;
  }

  .block-intro {
    margin-top: calc(-12vh);
  }

  /* quick links: side-by-side, centered above footer */
  .quick-links {
    position: fixed;
    bottom: calc(56px + env(safe-area-inset-bottom, 0));
    /* just above footer */
    left: 50%;
    right: auto;
    /* cancel desktop positioning */
    display: flex;
    flex-direction: row;
    /* side-by-side */
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: max-content;
    /* shrink to content so centering is true */
    /* combine X + Y so we keep your reveal offset */
    transform: translate(-50%, 16px);
    z-index: 950;
    font-size: 20px;
    /* your size */
  }

  /* when shown, only remove the Y offset — keep the X center */
  .quick-links.show {
    transform: translate(-50%, 0);
  }

  .quick-links a {
    text-align: center;
  }

  details.block>.content {

    padding-left: calc(2ch + .6rem);
  }

  #thoughts .thoughts-carousel {
    width: 115%;
    transform: translateX(-10%);

  }



  .line {
    font-size: clamp(20px, 2.0vw, 26px);
    margin: .25em 0;
  }



  /* center footer at the bottom */
  .foot {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 14px;
    transform: translateX(-50%);
    font-size: 12px;
    text-align: center;
    z-index: 960;
  }

  details.acc {
    scroll-margin-top: 12vh;
  }

  .block-intro {
    margin-top: calc(-16vh);
    /* neutralize page's top padding for true centering */
  }

  #thoughts .thoughts-carousel .t-rand {
    display: none !important;
  }

}

@media (min-width: 641px) {
  .booking-sheet::after {
    display: none;

  }

  .foot {
    text-align: right;
  }

  .booking-sheet iframe {
    height: 100dvh;
    /* full desktop viewport */

  }
}