:root {
  --bg: #080808;
  --panel: #111112;
  --line: rgba(255, 255, 255, 0.09);
  --text: #ffffff;
  --muted: #a1a1a6;
  --accent: #ff6a2b;      /* brand colour: change these two to re-skin the site */
  --accent-2: #ffa24c;
  --accent-ink: #160800;
  --wrap: 1080px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.center { text-align: center; }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 30;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.4vw, 4rem); line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.7rem); line-height: 1.12; }
h3 { font-size: 1.15rem; letter-spacing: -0.02em; }

.hl {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  margin: 18px auto 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  text-wrap: pretty;
}

/* ---------- Floating nav ---------- */
.nav-wrap {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 8px 8px 8px 20px;
  border-radius: 100px;
  background: rgba(18, 18, 18, 0.74);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.mark { width: 22px; height: 22px; fill: var(--accent); flex: none; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn-glow {
  padding: 16px 32px;
  color: var(--accent-ink);
  background: linear-gradient(180deg, #ff8f52, #f2551c);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 44px rgba(255, 106, 43, 0.45);
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 12px 56px rgba(255, 106, 43, 0.62);
}
.btn-nav {
  padding: 10px 18px;
  font-size: 0.92rem;
  color: var(--text);
  background: rgba(255, 106, 43, 0.16);
  border: 1px solid rgba(255, 106, 43, 0.45);
}
.btn-nav:hover { background: rgba(255, 106, 43, 0.28); }

/* ---------- Hero: headline beside the booking calendar ---------- */
.hero {
  margin-top: -64px; /* let the glow sit behind the floating nav */
  padding: clamp(104px, 11vw, 140px) 0 clamp(36px, 5vw, 56px);
  background:
    radial-gradient(ellipse 70% 60% at 50% -8%, rgba(255, 106, 43, 0.26), transparent 70%);
}
.hero-row {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  text-align: center;
}
.badge {
  display: inline-block;
  margin: 0 0 26px;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #c9c9cd;
  font-size: 0.9rem;
  font-weight: 500;
}
.hero-copy h1 { max-width: 17ch; margin: 0 auto; }
.see-work {
  display: inline-block;
  margin-top: 26px;
  padding-bottom: 2px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.15s ease;
}
.see-work:hover { border-color: var(--accent); }
@media (min-width: 960px) {
  .hero-row { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); text-align: left; }
  .hero-copy h1 { font-size: clamp(2.4rem, 4.3vw, 3.5rem); margin: 0; }
  .hero-copy .sub { margin-left: 0; }
}

/* ---------- Clip tiles (shared by the reel and the grid) ---------- */
.tile {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--line), 0 20px 50px rgba(0, 0, 0, 0.45);
  isolation: isolate;
}
.thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* The player is 300px taller than the tile, so YouTube's title bar, channel handle and like
   button (all pinned to the player's top and bottom edges) fall outside it. The video itself
   stays centred at full size. */
.embed {
  position: absolute;
  left: 0;
  right: 0;
  top: -150px;
  bottom: -150px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.embed iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Our own video files have nothing to hide, so they sit exactly on the tile. */
.embed.is-file { top: 0; bottom: 0; }
.embed video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile.is-playing .embed { opacity: 1; }

.tile-btn {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.tile-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow 0.18s ease;
}
.tile-btn:hover::after, .tile-btn:focus-visible::after { box-shadow: inset 0 0 0 2px var(--accent); }

.chip {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.chip svg { width: 17px; height: 17px; }
.chip .ico-play { display: none; }
.tile:not(.is-playing) .chip {
  right: auto;
  top: auto;
  left: 50%;
  bottom: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, 50%);
  background: linear-gradient(180deg, #ff8f52, #f2551c);
  color: var(--accent-ink);
}
.tile:not(.is-playing) .chip .ico-play { display: block; width: 22px; height: 22px; }
.tile:not(.is-playing) .chip .ico-muted { display: none; }

.tile-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 14px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
}

/* ---------- Reel under the hero ---------- */
.reel-section { padding-bottom: clamp(48px, 7vw, 88px); }
.reel {
  display: flex;
  gap: clamp(10px, 1.4vw, 18px);
  overflow-x: auto;
  padding: 12px var(--gutter) 28px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.reel::-webkit-scrollbar { display: none; }
.reel .tile {
  flex: 0 0 clamp(168px, 19vw, 250px);
  scroll-snap-align: center;
}
.reel .tile:first-child { margin-left: auto; }
.reel .tile:last-child { margin-right: auto; }

.reel-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 42px;
}
.reel-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.arrow:hover { background: rgba(255, 255, 255, 0.14); }
.arrow svg { width: 18px; height: 18px; }

/* ---------- Closing call to action ---------- */
.closing {
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--line);
}
.closing .btn { margin-top: 32px; }

/* ---------- Calendar ---------- */
.calendar {
  position: relative; /* keeps Calendly's loading dots inside this box */
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  min-height: 220px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.calendar.is-live { display: block; height: 640px; background: #fff; }
.calendar.is-live iframe { display: block; width: 100%; height: 100%; }
.fallback { margin: 14px 0 0; color: var(--muted); font-size: 0.85rem; text-align: center; }
.fallback a { color: var(--text); }

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 64px) 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
}
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px 64px; }
.foot .brand { color: var(--text); }
.foot-brand p { margin: 12px 0 0; }
.foot-brand .copy { font-size: 0.85rem; }
.foot-nav { display: grid; gap: 10px; align-content: start; }
.foot-title {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6f6f75;
}
.foot-nav a { text-decoration: none; transition: color 0.15s ease; }
.foot-nav a:hover { color: var(--text); }

/* ---------- Player ---------- */
.player {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  overflow: visible;
}
.player::backdrop {
  background: rgba(0, 0, 0, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.frame {
  width: min(92vw, calc(78vh * 9 / 16));
  width: min(92vw, calc(78dvh * 9 / 16));
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}
.frame iframe, .frame video { width: 100%; height: 100%; border: 0; display: block; }
.frame video { object-fit: contain; background: #000; }
.close {
  position: absolute;
  right: 0;
  top: -52px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}
.close:hover { background: rgba(255, 255, 255, 0.22); }
.close svg { width: 20px; height: 20px; }

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav { width: 100%; gap: 12px; }
}
@media (max-width: 480px) {
  .reel .tile { flex-basis: 58vw; }
  .tile { border-radius: 12px; }
  .step-card { padding: 16px 18px; }
  .tile-label { font-size: 0.78rem; padding: 28px 10px 10px; }
}

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