.site-header[data-astro-cid-nen7h5rs] {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.floating-nav[data-astro-cid-nen7h5rs] {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 8px 10px 8px 20px;
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.brand[data-astro-cid-nen7h5rs] {
  position: relative;
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  letter-spacing: -.02em;
  white-space: nowrap;
  color: var(--text);
  opacity: .75;
  padding-bottom: 2px;
  transition: opacity .2s, font-weight .1s;
}

.brand[data-astro-cid-nen7h5rs]:hover {
  opacity: 1;
}

.brand[data-astro-cid-nen7h5rs]:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s;
}

.brand[data-astro-cid-nen7h5rs].active {
  opacity: 1;
  font-weight: 700;
}

.brand[data-astro-cid-nen7h5rs].active:after {
  transform: scaleX(1);
}

.nav-links[data-astro-cid-nen7h5rs] {
  display: flex;
  gap: 22px;
}

.nav-links[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs] {
  position: relative;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  opacity: .75;
  white-space: nowrap;
  padding-bottom: 2px;
  transition: opacity .2s, font-weight .1s;
}

.nav-links[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs]:hover {
  opacity: 1;
}

.nav-links[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs]:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s;
}

.nav-links[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs].active {
  opacity: 1;
  font-weight: 700;
}

.nav-links[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs].active:after {
  transform: scaleX(1);
}

.header-actions[data-astro-cid-nen7h5rs] {
  display: flex;
  align-items: center;
  gap: 4px;
}

#theme-toggle[data-astro-cid-nen7h5rs], .nav-toggle[data-astro-cid-nen7h5rs] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: none;
  color: var(--text);
  cursor: pointer;
}

#theme-toggle[data-astro-cid-nen7h5rs]:hover, .nav-toggle[data-astro-cid-nen7h5rs]:hover {
  background: var(--tag-bg);
}

.icon-moon[data-astro-cid-nen7h5rs] {
  display: none;
}

:root[data-theme="dark"] .icon-sun[data-astro-cid-nen7h5rs] {
  display: none;
}

:root[data-theme="dark"] .icon-moon[data-astro-cid-nen7h5rs] {
  display: block;
}

.nav-toggle[data-astro-cid-nen7h5rs] {
  display: none;
}

.mobile-nav[data-astro-cid-nen7h5rs] {
  display: none;
  position: fixed;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  z-index: 49;
  width: min(280px, 100vw - 32px);
  border-radius: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  pointer-events: auto;
}

.mobile-nav[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs] {
  padding: 14px 24px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.mobile-nav[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs]:last-child {
  border-bottom: none;
}

.mobile-nav[data-astro-cid-nen7h5rs].open {
  display: flex;
}

@media (width <= 780px) {
  .nav-links[data-astro-cid-nen7h5rs] {
    display: none;
  }

  .brand[data-astro-cid-nen7h5rs] {
    margin-right: 4px;
  }

  .nav-toggle[data-astro-cid-nen7h5rs] {
    display: inline-flex;
  }
}
.site-footer[data-astro-cid-jo6i4kqk] {
  border-top: 1px solid var(--border);
  padding-block: 40px;
}

.footer-inner[data-astro-cid-jo6i4kqk] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo[data-astro-cid-jo6i4kqk] {
  width: 72px;
  height: auto;
}

:root[data-theme="dark"] .footer-logo[data-astro-cid-jo6i4kqk] {
  filter: invert();
}

.footer-nav[data-astro-cid-jo6i4kqk] {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-nav[data-astro-cid-jo6i4kqk] a[data-astro-cid-jo6i4kqk] {
  text-decoration: none;
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
}

.footer-nav[data-astro-cid-jo6i4kqk] a[data-astro-cid-jo6i4kqk]:hover {
  color: var(--text);
}

.small-print[data-astro-cid-jo6i4kqk] {
  color: var(--text-muted);
  font-size: .8rem;
  max-width: 60ch;
}
:root {
  --bg: #fbfbfd;
  --bg-elevated: #ffffff;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --border: rgba(0, 0, 0, 0.08);
  --accent: #0071e3;
  --accent-text: #ffffff;
  --error: #b91c1c;
  --card-bg: #ffffff;
  --tag-bg: rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
  --glass-bg: rgba(255, 255, 255, 0.78);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
  --max-width: 1120px;
}

:root[data-theme='dark'] {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --text: #f5f5f7;
  --text-muted: #a1a1a6;
  --border: rgba(255, 255, 255, 0.1);
  --accent: #2997ff;
  --accent-text: #001b3d;
  --error: #ff6b6b;
  --card-bg: #121212;
  --tag-bg: rgba(255, 255, 255, 0.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  --glass-bg: rgba(18, 18, 18, 0.78);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #000000;
    --bg-elevated: #0a0a0a;
    --text: #f5f5f7;
    --text-muted: #a1a1a6;
    --border: rgba(255, 255, 255, 0.1);
    --accent: #2997ff;
    --accent-text: #001b3d;
    --error: #ff6b6b;
    --card-bg: #121212;
    --tag-bg: rgba(255, 255, 255, 0.08);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --glass-bg: rgba(18, 18, 18, 0.78);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  letter-spacing: -0.015em;
  /* Reserves the vertical scrollbar's width up front so content (like the
     booking widget's async day-row, which grows the page height once slots
     load) never has to reflow/stretch horizontally the moment a scrollbar
     appears or disappears. */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  transition: background-color 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--accent-text);
}

.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

main {
  display: block;
  padding-top: 88px;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 980px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-text {
  color: var(--accent);
  padding: 12px 4px;
}

.btn-text:hover {
  text-decoration: underline;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 980px;
  background: var(--tag-bg);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.section {
  padding-block: 96px;
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 8px 0 12px;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 46ch;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 780px) {
  .section {
    padding-block: 64px;
  }
}

/* Scroll progress strip */
.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 3px;
  height: 100vh;
  z-index: 60;
  pointer-events: none;
}

.scroll-progress-fill {
  width: 100%;
  height: 100%;
  background: var(--text);
  transform: scaleY(0);
  transform-origin: top;
  animation: scroll-progress-anim linear;
  animation-timeline: scroll(root);
}

@keyframes scroll-progress-anim {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

/* Vertical card stack + sticky headline list (Hero, Work, Life) */
.stack-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  column-gap: 56px;
}

.scroll-track {
  grid-column: 1 / -1;
  grid-row: 1;
  pointer-events: none;
  z-index: 0;
}

.scroll-marker {
  height: 70vh;
  scroll-margin-top: 40vh;
}

.headline-col {
  grid-column: 1;
  grid-row: 1;
  z-index: 1;
}

.card-col {
  grid-column: 2;
  grid-row: 1;
  z-index: 1;
  position: relative;
}

.headline-sticky,
.card-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
}

.headline-sticky > *,
.card-sticky > * {
  width: 100%;
}

.headline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.headline-list li {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.4;
  opacity: 0.55;
  transition: opacity 0.35s ease, color 0.35s ease, font-weight 0.1s ease;
}

.headline-list li.headline-group {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.8;
  margin-top: 8px;
  margin-left: -14px;
}

.headline-list li.headline-group:first-child {
  margin-top: 0;
}

.headline-list a {
  text-decoration: none;
  color: inherit;
}

.headline-list li[data-distance='1'] {
  opacity: 0.4;
}

.headline-list li[data-distance='2'] {
  opacity: 0.25;
}

.headline-list li[data-distance='3'] {
  opacity: 0.12;
}

.headline-list li.active {
  color: var(--text);
  font-weight: 700;
  opacity: 1;
}

.stack-layout.reverse {
  grid-template-columns: 1fr 280px;
}

.stack-layout.reverse .headline-col {
  grid-column: 2;
}

.stack-layout.reverse .card-col {
  grid-column: 1;
}

.headline-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 40ch;
  margin: 0 0 28px;
}

/* Mobile: two-column split is dropped in favour of a horizontal row that
   pairs each headline directly with its card. */
@media (max-width: 860px) {
  .stack-layout {
    display: none;
  }
}

.mobile-group-label {
  display: none;
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mobile-pairs {
  display: none;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-block: 4px 8px;
  margin: 0;
  list-style: none;
  scrollbar-width: none;
}

.mobile-pairs::-webkit-scrollbar {
  display: none;
}

.mobile-pair {
  flex: 0 0 82%;
  scroll-snap-align: center;
}

.mobile-pair-headline {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--text);
}

.mobile-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* The Safari mockup sits flush against the top edge with its own (much smaller) corner
   rounding baked into the SVG; the card's 24px radius would clip into its title bar, so
   flatten just the top corners here and let the mockup's own rounding show instead. */
.mobile-card.has-video {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.card-link-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  z-index: 4;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.card-link-badge svg {
  width: 16px;
  height: 16px;
}

.card-link-badge:hover,
.card-link-badge:focus-visible {
  background: var(--accent);
  transform: scale(1.08);
}

.mobile-card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--tag-bg), var(--card-bg));
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-card-photo img,
.mobile-card-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Screen recordings: fit the Safari window's own aspect ratio (1203/753) exactly, so its
   video (object-fit: cover, set in Safari.astro) fills the window with no letterboxing. */
.mobile-card-photo.has-video {
  display: block;
  background: transparent;
  aspect-ratio: 1203 / 753;
}

/* The video sits lower than center inside the Safari chrome (below the title bar), so
   nudge the loader/play overlays down to stay centered on the visible video area. */
.mobile-card-photo.has-video .video-loader,
.mobile-card-photo.has-video .video-play {
  top: 53.4%;
}

/* Spinner shown over a Work-card clip while it loads or buffers (toggled by workVideos.js) */
.video-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.12);
  border-top-color: rgba(0, 0, 0, 0.6);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.7);
  opacity: 0;
  pointer-events: none;
  animation: video-spin 0.8s linear infinite;
  transition: opacity 0.2s ease;
}

/* Fades in only after a short delay, so quick loads never flash a spinner */
.is-loading > .video-loader {
  opacity: 1;
  transition-delay: 0.3s;
}

/* Red progress strip along the bottom of a playing Work-card clip (driven by workVideos.js) */
.video-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.video-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: #e62117;
  transform: scaleX(0);
  transform-origin: left center;
}

/* Tap-to-play button: shown if the browser blocks autoplay (e.g. iOS Low Power Mode) or the clip stalls */
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6) no-repeat center / 22px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5.5v13a1 1 0 0 0 1.5.86l10.5-6.5a1 1 0 0 0 0-1.72L9.5 4.64A1 1 0 0 0 8 5.5z'/%3E%3C/svg%3E");
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.needs-tap > .video-play {
  opacity: 1;
  pointer-events: auto;
}

@keyframes video-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-loader {
    animation-duration: 2.4s;
  }
}

/* Small attribution label pinned to a photo's bottom-right corner (Work cards) */
.photo-credit {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.mobile-card-caption {
  padding: 16px 20px 20px;
}

.mobile-card-caption h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 6px 0 0;
}

.mobile-wheel-row {
  display: none;
  justify-content: center;
  margin-top: 16px;
}

@media (max-width: 860px) {
  .mobile-group-label {
    display: block;
  }

  .mobile-pairs,
  .mobile-wheel-row {
    display: flex;
  }
}
