/* Bhavisha Ahuja — portfolio */

:root {
  --accent: #E2481C;
  --paper: #F3F1EC;
  --ink: #141312;
  --ink-2: #3A3834;
  --muted: #5E5B55;
  --muted-dark: #A8A49C;
  --rule: #D9D5CD;
  --tan: #D5C8B8;
  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --ease-io: cubic-bezier(.7, 0, .3, 1);
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
img, video { display: block; }

.page {
  --pad: clamp(18px, 3cqw, 48px);
  container: page / inline-size;
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  overflow-x: clip;
}

/* ---------- Shared bits ---------- */

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mono.sm { font-size: 11px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.tabular { font-variant-numeric: tabular-nums; }
.dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.dot-lg { width: 9px; height: 9px; }

.sec-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}

.sec-title {
  margin: clamp(20px, 2.4cqw, 40px) 0 clamp(24px, 3cqw, 48px);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: clamp(52px, 8.4cqw, 150px);
  line-height: .9;
  font-weight: 800;
  font-stretch: 72%;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.sec-title-lg { margin-bottom: clamp(32px, 4cqw, 72px); }
.sec-count {
  font-size: clamp(14px, 1.2cqw, 20px);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--accent);
  margin-top: .4em;
  text-transform: none;
}

.section { padding: 0 var(--pad) clamp(88px, 10cqw, 180px); }

/* ---------- Preloader ---------- */

.loader {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  transition: opacity .8s var(--ease-io);
}
.page.is-loaded .loader { opacity: 0; pointer-events: none; }
.page.is-ready .loader { display: none; }

.loader-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100%;
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.loader-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  letter-spacing: .08em;
  color: var(--muted-dark);
}
.loader-body { transition: transform .8s var(--ease-io); }
.page.is-loaded .loader-body { transform: translateY(-48px); }
.loader-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.loader-pct {
  font-size: clamp(140px, 30cqw, 500px);
  font-weight: 800;
  font-stretch: 72%;
  line-height: .8;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.loader-meta {
  letter-spacing: .08em;
  color: var(--muted-dark);
  padding-bottom: 1cqw;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}
.loader-bar { height: 2px; margin-top: clamp(20px, 2.4cqw, 40px); background: rgba(243, 241, 236, .16); }
.loader-bar-fill { height: 100%; width: 0; background: var(--accent); }

.content { opacity: 0; transition: opacity .6s ease .15s; }
.page.is-loaded .content { opacity: 1; }

/* ---------- Scroll rail / dock ---------- */

.rail {
  position: sticky;
  top: 50vh;
  z-index: 30;
  height: 0;
  pointer-events: none;
}
.rail-inner {
  position: absolute;
  right: clamp(8px, 1.2cqw, 20px);
  top: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}
.rail-track {
  position: relative;
  width: 2px;
  height: clamp(40px, 14vh, 160px);
  border-radius: 2px;
  background: rgba(20, 19, 18, .14);
  overflow: hidden;
}
.rail-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(0);
}
.dock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid rgba(243, 241, 236, .28);
  box-shadow: 0 8px 24px rgba(20, 19, 18, .18);
  transition: background .2s, color .2s, transform .25s;
}
.dock-btn:hover { background: var(--accent); color: var(--ink); transform: scale(1.06); }
.dock-in { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.dock-skills {
  height: auto;
  padding: 16px 0;
  gap: 8px;
  flex-direction: column;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.vertical { writing-mode: vertical-rl; }
.dock-arrow { font-size: 13px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  padding: 0 var(--pad);
}
.nav-desktop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.clock { display: flex; align-items: center; gap: 10px; }
.nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.btn-pill {
  background: var(--ink);
  color: var(--paper);
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: background .2s, color .2s;
}
.btn-pill:hover { background: var(--accent); color: var(--ink); }

.nav-mobile {
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  height: 64px;
}
.nav-mobile .brand { font-size: 16px; }
.clock-sm { gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
.clock-sm .dot { width: 6px; height: 6px; }
.menu-btn {
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  padding: 8px 0 24px;
  border-top: 1px solid var(--ink);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu > a:not(.mobile-cta) {
  font-size: 40px;
  font-weight: 800;
  font-stretch: 75%;
  text-transform: uppercase;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.mobile-cta {
  margin-top: 20px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
}
.mobile-clock { margin-top: 16px; font-size: 11px; }

/* ---------- Hero ---------- */

.hero { padding: clamp(12px, 1.6cqw, 28px) var(--pad) clamp(88px, 10cqw, 180px); }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 8px 24px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}
.loc { display: flex; align-items: center; gap: 8px; }
.loc svg { flex: none; }

:where(.hero h1) { margin: 0; font: inherit; }
.hero-name-wrap { display: block; overflow: hidden; line-height: .92; }
.hero-name {
  display: inline-block;
  white-space: nowrap;
  font-weight: 800;
  font-stretch: 72%;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.reveal { transform: translateY(105%); transition: transform 1.2s var(--ease-out); }
.reveal-late { transition-delay: .08s; }
.page.is-loaded .reveal { transform: translateY(0); }

.hero-desktop .hero-name-wrap { margin-top: clamp(28px, 4cqw, 72px); }
.hero-desktop .hero-name { font-size: 12.4cqw; }
.hero-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 3cqw;
  margin-top: -2.4cqw;
}
.hero-lede {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(18px, 1.65cqw, 26px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -.01em;
  text-wrap: pretty;
}
.hero-avatar {
  position: relative;
  aspect-ratio: 9 / 16;
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1s ease .3s, transform 1.2s var(--ease-out) .3s;
}
.page.is-loaded .hero-avatar { opacity: 1; transform: translateY(0); }
.hero-desktop .hero-avatar { width: clamp(260px, 25cqw, 420px); }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 0%;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 5%, #000 99%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 5%, #000 99%, transparent 100%);
  mask-composite: intersect;
}
.hero-focus {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
  font-size: clamp(15px, 1.2cqw, 18px);
  font-weight: 600;
}
.hero-focus .mono { font-weight: 400; margin-bottom: 6px; }

.hero-mobile { display: none; }
.hero-name-stack { margin-top: 28px; display: flex; flex-direction: column; gap: 2px; }
.hero-mobile .hero-name-wrap:first-child .hero-name { font-size: 24cqw; }
.hero-mobile .hero-name-wrap:last-child .hero-name { font-size: 38cqw; }
.hero-mobile .hero-avatar { z-index: 2; width: 76%; margin: -7cqw auto 0; }
.hero-mobile .hero-lede { margin-top: 32px; max-width: none; font-size: 22px; }
.hero-mobile .hero-focus {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  align-items: flex-start;
  text-align: left;
  gap: 4px;
  font-size: 16px;
}
.hero-mobile .hero-focus .mono { font-size: 11px; margin-bottom: 4px; }

/* ---------- About ---------- */

.about {
  position: relative;
  min-height: 100vh;
  overflow: clip;
  background: var(--tan);
  margin-bottom: clamp(88px, 10cqw, 180px);
}
.about-media { position: absolute; inset: 0; z-index: 0; }
.about-video-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: max(100vh, 760px);
  background: var(--tan) url('assets/avatar-still.jpg') 47% 30% / cover no-repeat;
}
.about-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 47% 30%;
  /* Hidden until the cursor moves, so the still portrait behind it shows on arrival. */
  opacity: 0;
  transition: opacity .45s ease;
}
.about-video.is-live { opacity: 1; }
.about-fade { position: absolute; inset: 0; pointer-events: none; }
.about-fade-light { background: linear-gradient(to bottom, rgba(243, 241, 236, 0) 64%, var(--paper) 100%); opacity: 0; }
.about-fade-desk { background: linear-gradient(to bottom, rgba(213, 200, 184, 0) 78%, var(--tan) 100%); }
.gaze-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(243, 241, 236, .82);
  font-size: 11px;
  color: var(--ink-2);
  white-space: nowrap;
}

.about-body {
  position: relative;
  z-index: 1;
  padding: clamp(12px, 1.6cqw, 28px) var(--pad) clamp(72px, 7cqw, 120px);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(24px, 3cqw, 48px);
  align-items: start;
}
.about-spacer { order: 2; height: 1px; }
.about-text { order: 1; padding: clamp(20px, 2cqw, 32px) 0; display: flex; flex-direction: column; gap: 20px; }
.about-timeline { order: 3; padding: clamp(20px, 2cqw, 32px) 0; }
.about-lede {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(26px, 2.4cqw, 38px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -.02em;
  text-wrap: pretty;
}
.about-sub { margin: 0; max-width: 52ch; font-size: 17px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* Timeline */
.tl {
  position: relative;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--ink);
  margin-left: 5px;
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px clamp(20px, 3cqw, 40px);
  padding: clamp(22px, 2.2cqw, 34px) 0 clamp(22px, 2.2cqw, 34px) clamp(28px, 3cqw, 44px);
  border-bottom: 1px solid var(--rule);
}
.tl-more-inner > .tl-item:last-child { border-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -6px;
  top: clamp(28px, 2.6cqw, 40px);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink);
}
.tl-dot-now { background: var(--accent); border-color: var(--accent); }
.tl-col { display: flex; flex-direction: column; gap: 8px; }
.tl-title {
  font-size: clamp(24px, 2.1cqw, 32px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.tl-trigger {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.tl-arrow { flex: none; font-size: .7em; transition: transform .4s var(--ease-out); }
.tl.open .tl-arrow { transform: rotate(180deg); }
.tl-org { font-size: 16px; font-weight: 600; line-height: 1.35; }
.tl-desc { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.tl-bullets { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tl-bullets li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.tl-bullets li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: .6em;
  background: var(--accent);
}
.tl-more {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .6s var(--ease-out), opacity .4s ease;
}
.tl.open .tl-more { grid-template-rows: 1fr; opacity: 1; }
.tl-more-inner { overflow: hidden; min-height: 0; display: flex; flex-direction: column; }
.tl:not(.open) .tl-more-inner { visibility: hidden; transition: visibility 0s .6s; }

/* ---------- Projects ---------- */

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(56px, 5cqw, 88px) clamp(24px, 2.4cqw, 40px);
}
.project { display: flex; flex-direction: column; gap: 20px; }
.project-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #E4E0D8;
  overflow: hidden;
}
.project-img { position: absolute; inset: 0; transition: transform .6s var(--ease-out); }
.project-media:hover .project-img { transform: scale(1.03); }
.project-img img, .project-img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(20, 19, 18, .04) 14px 15px),
    #E4E0D8;
}
.badge {
  position: absolute;
  left: 14px;
  top: 14px;
  background: var(--paper);
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 999px;
  pointer-events: none;
}
.badge-accent { background: var(--accent); }
.project-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
}
.project-head h3 {
  margin: 0;
  font-size: clamp(34px, 3.4cqw, 56px);
  line-height: .92;
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.project-head .mono { letter-spacing: 0; text-transform: none; }
.project-lede { margin: 0; font-size: 18px; line-height: 1.45; font-weight: 500; text-wrap: pretty; max-width: 52ch; }
.project-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 20px 32px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .mono { line-height: 1.4; }
.stat-big {
  font-size: clamp(44px, 4.2cqw, 68px);
  line-height: .9;
  font-weight: 800;
  font-stretch: 72%;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.points { display: flex; flex-direction: column; gap: 10px; }
.points ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.points li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.points li::before { content: '—'; color: var(--accent); flex: none; }
.project-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tags { display: flex; gap: 6px; flex-wrap: wrap; font-size: 11px; letter-spacing: .04em; }
.tags span { border: 1px solid var(--ink); border-radius: 999px; padding: 5px 10px; }
.links { display: flex; gap: 20px; font-size: 14px; font-weight: 600; }

.more { margin-top: clamp(64px, 7cqw, 120px); display: flex; flex-direction: column; gap: 20px; }
.more-head, .wall-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.more-head h3, .wall-head h3 {
  margin: 0;
  font-size: clamp(30px, 3cqw, 48px);
  line-height: .95;
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  column-gap: clamp(24px, 2.4cqw, 40px);
  border-top: 1px solid var(--ink);
}
.course {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.course > .mono { padding-top: 4px; }
.course > div { display: flex; flex-direction: column; gap: 4px; }
.course-title { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.course-sub { font-size: 15px; color: var(--muted); }

/* Tall images that pan inside the 16:10 frame */
.pan-frame {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  scrollbar-width: none;
  background: #F8FAFC;
  -webkit-overflow-scrolling: touch;
}
.pan-frame::-webkit-scrollbar { display: none; }
.pan-frame img { width: 100%; height: auto; }
@media (hover: hover) {
  /* Mouse users pan by cursor position, so the wheel keeps scrolling the page. */
  .pan-frame { overflow-y: hidden; cursor: ns-resize; }
}
.view-full {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.view-full:hover { background: var(--accent); color: var(--ink); }

.lightbox {
  width: min(840px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #F8FAFC;
  overflow-y: auto;
}
.lightbox::backdrop { background: rgba(20, 19, 18, .72); }
.lightbox img { width: 100%; height: auto; }
.lightbox-close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 12px -48px 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  z-index: 1;
}
.lightbox-close:hover { background: var(--accent); color: var(--ink); }
body.has-lightbox { overflow: hidden; }

/* ---------- Certifications ---------- */

.certs { margin-top: clamp(24px, 3cqw, 48px); display: flex; flex-direction: column; }
.cert {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  align-items: center;
  gap: 12px 32px;
  padding: clamp(18px, 1.8cqw, 28px) 0;
  border-bottom: 1px solid var(--rule);
}
.cert-name {
  grid-column: span 2;
  font-size: clamp(28px, 3.4cqw, 56px);
  line-height: .95;
  font-weight: 800;
  font-stretch: 72%;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.cert-pending .cert-name { color: var(--muted); }
.cert-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.status { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--ink); color: var(--ink); }
.status-earned { border-color: var(--accent); background: var(--accent); }

/* ---------- Off the clock ---------- */

.off-lede {
  margin: 0 0 clamp(40px, 5cqw, 80px);
  max-width: 30ch;
  font-size: clamp(26px, 2.8cqw, 44px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -.02em;
  text-wrap: pretty;
}
.hobbies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(28px, 2.4cqw, 40px);
}
.hobby { display: flex; flex-direction: column; gap: 14px; padding-top: 14px; border-top: 1px solid var(--ink); }
.hobby > .mono { letter-spacing: 0; }
.hobby-title { font-size: clamp(28px, 2.6cqw, 40px); line-height: .95; font-weight: 800; font-stretch: 75%; text-transform: uppercase; }
.hobby p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.hobby strong { color: var(--ink); }

.highlights {
  margin-top: clamp(56px, 6cqw, 104px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(16px, 1.6cqw, 24px);
}
.highlight {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 240px;
  padding: clamp(20px, 2cqw, 28px);
  background: #E9E6DF;
  color: var(--ink);
}
.highlight-dark { background: var(--ink); color: var(--paper); }
.highlight-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.highlight-body { display: flex; flex-direction: column; gap: 10px; }
.highlight-dark .highlight-body > .mono { color: var(--muted-dark); }
.highlight-title {
  font-size: clamp(30px, 2.8cqw, 44px);
  line-height: .95;
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.highlight-sub { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.highlight-dark .highlight-sub { color: var(--paper); }

/* Photo card: photo on top, the usual card text below it */
.highlight-photo { padding: 0; gap: 0; overflow: hidden; }
.highlight-media {
  position: relative;
  height: clamp(220px, 19cqw, 300px);
  overflow: hidden;
  background: var(--rule);
}
.highlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  transition: transform .6s var(--ease-out);
}
.highlight-photo:hover .highlight-media img { transform: scale(1.04); }
.highlight-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(20px, 2cqw, 28px);
}

.wall-head { margin-top: clamp(56px, 6cqw, 104px); }
.tickets {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: clamp(14px, 1.4cqw, 22px);
}
.ticket {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 168px;
  padding: 14px 16px 16px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  transform: rotate(var(--r, 0deg));
  transition: transform .35s var(--ease-out), background .2s;
}
.ticket:hover { transform: rotate(0deg) scale(1.04); background: var(--accent); }
a.ticket { color: var(--ink); }
a.ticket:hover { color: var(--ink); }
a.ticket .ticket-host::after { content: ' ↗'; }
a.ticket:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.ticket-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1.5px dashed var(--ink);
}
.ticket-top span:first-child { font-weight: 500; }
.ticket-title {
  flex: 1;
  font-size: 19px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.01em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.ticket-host { font-size: 10px; color: var(--ink-2); }

/* ---------- Contact ---------- */

.contact { background: var(--ink); color: var(--paper); padding: clamp(56px, 7cqw, 120px) var(--pad) 28px; }
.contact .sec-head { border-top-color: rgba(243, 241, 236, .3); color: var(--muted-dark); }
.contact-title-wrap { margin-top: clamp(24px, 3cqw, 48px); line-height: .9; }
.contact-title {
  margin: 0;
  display: inline-block;
  white-space: nowrap;
  font-size: 20cqw;
  line-height: .9;
  font-weight: 800;
  font-stretch: 72%;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.contact-grid {
  margin-top: clamp(32px, 4cqw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(28px, 4cqw, 64px);
  align-items: start;
}
.contact-text { display: flex; flex-direction: column; gap: 20px; }
.contact-lede {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(22px, 2.2cqw, 34px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -.015em;
  text-wrap: pretty;
}
.contact-meta { display: flex; flex-direction: column; gap: 8px; color: var(--muted-dark); }
.btn-cta {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  transition: transform .25s;
}
.btn-cta:hover { transform: translateY(-2px); color: var(--ink); }
.calendly {
  position: relative;
  min-height: 700px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
}
.calendly iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.footer {
  margin-top: clamp(48px, 6cqw, 96px);
  padding-top: 20px;
  border-top: 1px solid rgba(243, 241, 236, .3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  color: var(--muted-dark);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(243, 241, 236, .3);
  color: var(--paper);
  transition: background .2s, color .2s;
}
.chip:hover { background: var(--accent); color: var(--ink); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.footer-top { color: var(--paper); }

/* ---------- Narrow (< 1100px) ---------- */

@container page (max-width: 1099px) {
  .about { background: var(--paper); }
  .about-video-wrap { height: calc(52vh + 170px); }
  .about-fade-light { opacity: 1; }
  .about-fade-desk { opacity: 0; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-spacer { order: 0; height: 52vh; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Mobile (< 760px) ---------- */

@container page (max-width: 759px) {
  .nav-desktop, .hero-desktop { display: none; }
  .nav-mobile { display: flex; }
  .hero-mobile { display: block; }
}
@container page (min-width: 760px) {
  .mobile-menu { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
