/* 44.chrislacey.com — birthday edition of the chrislacey.com system */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600 800; font-display: swap; src: url(fonts/bricolage-grotesque-latin-3b58e8.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400 600; font-display: swap; src: url(fonts/inter-latin-bec94a.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500 700; font-display: swap; src: url(fonts/jetbrains-mono-latin-b87346.woff2) format("woff2"); }

:root {
  --ink: #061a38; --ink-2: #0b2753;
  --paper: #eef7fd; --paper-2: #dff0fb; --card: #fbfdff;
  --text: #0e1b2e; --muted: #4d5f78; --line: rgba(6, 26, 56, .12);
  --sky: #0EA5E9; --sky-soft: #d4eefc;
  --coral: #ff6b57; --sun: #ffc23d; --mint: #2fbf8f; --grape: #7c5cff;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(6, 26, 56, .06), 0 14px 36px -14px rgba(6, 26, 56, .22);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #050f22; --paper-2: #0a1a35; --card: #0e2143; --text: #eaf2ff;
    --muted: #a3b5ce; --line: rgba(234, 242, 255, .13); --sky: #38BDF8; --sky-soft: #0f3563;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 44px -16px rgba(0, 0, 0, .65);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #050f22; --paper-2: #0a1a35; --card: #0e2143; --text: #eaf2ff;
  --muted: #a3b5ce; --line: rgba(234, 242, 255, .13); --sky: #38BDF8; --sky-soft: #0f3563;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 44px -16px rgba(0, 0, 0, .65);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: var(--sky); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h3 { font-size: 1.4rem; font-weight: 700; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; border: 0; cursor: pointer;
  font: 700 1.02rem/1 var(--display); padding: 15px 22px; border-radius: 999px; text-decoration: none;
  background: var(--sky); color: #fff; box-shadow: var(--shadow); transition: transform .15s ease, filter .15s ease; }
.btn:hover { transform: translateY(-2px) rotate(-1deg); filter: brightness(1.05); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.sun { background: var(--sun); color: var(--ink); }
.btn.coral { background: var(--coral); color: #fff; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--paper) 78%, transparent); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.mark { font: 800 1.35rem var(--display); color: var(--text); text-decoration: none; }
.top-nav { display: flex; align-items: center; gap: 6px; }
.top-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.top-nav a:hover { background: var(--sky-soft); }
.top-nav a.pill { background: var(--sky); color: #fff; }
.theme-btn { border: 0; background: var(--sky-soft); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
@media (max-width: 560px) { .top-nav a:not(.pill) { display: none; } }

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 90px) 0 30px;
  background:
    radial-gradient(900px 500px at 85% 10%, color-mix(in srgb, var(--sky) 28%, transparent), transparent 70%),
    radial-gradient(700px 420px at 5% 90%, color-mix(in srgb, var(--sun) 22%, transparent), transparent 70%),
    radial-gradient(600px 400px at 50% 50%, color-mix(in srgb, var(--grape) 10%, transparent), transparent 70%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } .hero-cta { justify-content: center; } }
.eyebrow { display: inline-block; font: 600 .85rem var(--mono); text-transform: uppercase; letter-spacing: .08em;
  background: var(--card); padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow); margin: 0 0 10px; }
.big44 { font-size: clamp(9rem, 30vw, 19rem); font-weight: 800; line-height: .82; letter-spacing: -.06em; margin: 8px 0 18px; }
.big44 .d { display: inline-block; background: linear-gradient(135deg, var(--sky) 10%, var(--grape) 55%, var(--coral) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 10px 24px rgba(14, 165, 233, .28)); }
.big44 .d4a { animation: bob 3.2s ease-in-out infinite; }
.big44 .d4b { animation: bob 3.2s ease-in-out -1.6s infinite; background: linear-gradient(135deg, var(--sun) 5%, var(--coral) 50%, var(--grape) 95%); -webkit-background-clip: text; background-clip: text; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
.hero-lede { font-size: clamp(1.1rem, 2.2vw, 1.35rem); max-width: 34ch; margin: 0 0 26px; }
.hero-grid .hero-lede { margin-inline: 0; }
@media (max-width: 860px) { .hero-grid .hero-lede { margin-inline: auto; } }
.hero-lede em { font-style: normal; background: linear-gradient(transparent 60%, color-mix(in srgb, var(--sun) 70%, transparent) 0); padding: 0 2px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-photo { position: relative; justify-self: center; width: min(380px, 80vw); }
.ring { border-radius: 50%; padding: 10px; aspect-ratio: 1;
  background: conic-gradient(from 0deg, var(--sky), var(--grape), var(--coral), var(--sun), var(--mint), var(--sky));
  animation: spin 14s linear infinite; box-shadow: var(--shadow); }
.ring img { background: var(--sky-soft); border-radius: 50%; width: 100%; height: 100%; object-fit: cover; border: 6px solid var(--paper); animation: spin 14s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.sticker, .hat { position: absolute; font-size: clamp(2rem, 6vw, 3rem); filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); animation: floaty 4s ease-in-out infinite; }
.s1 { left: -6%; top: 8%; } .s2 { right: -4%; top: 2%; animation-delay: -1s; } .s3 { right: 2%; bottom: 4%; animation-delay: -2s; }
.hat { left: 4%; bottom: 2%; font-size: clamp(2.6rem, 8vw, 4rem); animation-delay: -.5s; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-12px) rotate(8deg); } }

.balloons { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.b { position: absolute; bottom: -160px; width: 56px; height: 70px; border-radius: 50% 50% 48% 52%; opacity: .85; animation: rise 14s linear infinite; }
.b::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 70px; background: var(--line); }
.b1 { left: 4%;  background: var(--sky);   animation-delay: 0s; }
.b2 { left: 22%; background: var(--sun);   animation-delay: -5s;  width: 44px; height: 56px; }
.b3 { left: 46%; background: var(--coral); animation-delay: -9s; }
.b4 { left: 64%; background: var(--mint);  animation-delay: -2.5s; width: 48px; height: 60px; }
.b5 { left: 82%; background: var(--grape); animation-delay: -7s; }
.b6 { left: 93%; background: var(--sky);   animation-delay: -11s; width: 40px; height: 50px; }
@keyframes rise { 0% { transform: translate(0, 0) rotate(-6deg); } 50% { transform: translate(18px, -60vh) rotate(6deg); } 100% { transform: translate(-10px, -125vh) rotate(-4deg); } }

.counter { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(30px, 6vw, 60px); }
@media (max-width: 700px) { .counter { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--card); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); text-align: center; }
.stat b { display: block; font: 800 clamp(1.5rem, 4vw, 2.2rem)/1.1 var(--display); color: var(--sky); font-variant-numeric: tabular-nums; }
.stat span { font: 500 .78rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* marquee */
.marquee { overflow: hidden; background: var(--ink); color: #fff; padding: 16px 0; transform: rotate(-1.2deg); margin: 24px -10px; }
.track { display: flex; gap: 40px; width: max-content; animation: slide 32s linear infinite; font: 700 1.15rem var(--display); white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }

/* sections */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.kicker { font: 700 .82rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--coral); margin: 0 0 10px; }
.lede { color: var(--muted); font-size: 1.12rem; max-width: 56ch; margin: 14px 0 0; }

.stages { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 18px; position: relative; }
.stages::before { content: ""; position: absolute; left: 39px; top: 20px; bottom: 20px; width: 4px; border-radius: 4px;
  background: linear-gradient(var(--sun), var(--grape), var(--mint), var(--sky)); }
.stage { position: relative; display: grid; grid-template-columns: 82px 1fr; gap: 18px; align-items: start;
  background: var(--card); border-radius: var(--radius); padding: 22px 24px 22px 0; box-shadow: var(--shadow); border-left: 6px solid var(--c); }
.stage-emoji { justify-self: center; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem;
  background: color-mix(in srgb, var(--c) 22%, var(--card)); position: relative; z-index: 1; margin-left: 4px; }
.stage-n { font: 700 .78rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--c); margin: 4px 0 4px; }
.stage p:last-child { margin: 8px 0 0; color: var(--muted); }
.stage:hover .stage-emoji { animation: wiggle .5s ease; }
@keyframes wiggle { 25% { transform: rotate(-12deg) scale(1.1); } 75% { transform: rotate(12deg) scale(1.1); } }

.lessons { background: var(--paper-2); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 32px; }
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.flip { position: relative; min-height: 150px; border: 0; border-radius: 20px; cursor: pointer; perspective: 800px; background: none; padding: 0; font: inherit; color: inherit; }
.flip .front, .flip .back { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; border-radius: 20px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .55s cubic-bezier(.2,.8,.2,1.2); box-shadow: var(--shadow); text-align: center; }
.flip .front { background: var(--card); font: 800 1.3rem var(--display); }
.flip .back { background: var(--sky); color: #fff; font-weight: 600; transform: rotateY(180deg); line-height: 1.4; }
.flip:nth-child(4n+2) .back { background: var(--grape); }
.flip:nth-child(4n+3) .back { background: var(--coral); }
.flip:nth-child(4n+4) .back { background: var(--mint); color: var(--ink); }
.flip[aria-pressed="true"] .front { transform: rotateY(-180deg); }
.flip[aria-pressed="true"] .back { transform: rotateY(0); }

/* gallery */
.gallery { columns: 3 260px; column-gap: 14px; margin-top: 32px; }
.gallery > * { break-inside: avoid; margin-bottom: 14px; }
.ph { aspect-ratio: 4/3; border-radius: 18px; display: grid; place-items: center; font-size: 2.6rem;
  background: repeating-linear-gradient(45deg, var(--sky-soft) 0 14px, var(--paper-2) 14px 28px); border: 2px dashed var(--line); }
.ph:nth-child(even) { aspect-ratio: 3/4; }
.tile { position: relative; display: block; width: 100%; border: 0; padding: 0; cursor: zoom-in; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.tile img, .tile video { width: 100%; height: auto; transition: transform .4s ease; }
.tile:hover img, .tile:hover video { transform: scale(1.04); }
.tile .play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); pointer-events: none; }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; color: #fff; font-size: .9rem; text-align: left;
  background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.gallery-note { text-align: center; color: var(--muted); font-weight: 600; margin: 10px 0 0; }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(3, 10, 24, .92); display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; }
.lightbox[hidden] { display: none; }
.lb-stage { margin: 0; display: grid; place-items: center; max-height: 100vh; padding: 20px 0; }
.lb-stage img, .lb-stage video { max-height: 82vh; max-width: 100%; border-radius: 14px; }
.lb-stage figcaption { color: #fff; margin-top: 12px; text-align: center; }
.lb-nav, .lb-close { border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; justify-self: center; }
.lb-close { position: absolute; top: 14px; right: 14px; font-size: 1.2rem; }
@media (max-width: 600px) { .lightbox { grid-template-columns: 1fr; } .lb-nav { position: absolute; bottom: 20px; } .lb-nav.prev { left: 25%; } .lb-nav.next { right: 25%; } }

/* form */
.say-hi { background:
  radial-gradient(700px 400px at 100% 0%, color-mix(in srgb, var(--coral) 16%, transparent), transparent 70%),
  radial-gradient(700px 400px at 0% 100%, color-mix(in srgb, var(--sky) 18%, transparent), transparent 70%); }
.hi-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .hi-grid { grid-template-columns: 1fr; } }
.perks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.perks li { display: flex; gap: 10px; }
.form-card, .thanks { background: var(--card); border-radius: 26px; padding: clamp(20px, 4vw, 34px); box-shadow: var(--shadow); border-top: 6px solid var(--coral); }
.hp { position: absolute; left: -9999px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, legend { font-weight: 700; font-size: .95rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
input[type=text], input[type=email], input[type=tel], input:not([type]), textarea {
  font: inherit; color: var(--text); background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; width: 100%; }
input:focus, textarea:focus { border-color: var(--sky); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--sky) 22%, transparent); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--coral); }
textarea { resize: vertical; min-height: 110px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin: 0 0 18px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--sky); flex: none; }
.fine { display: block; color: var(--muted); font-size: .8rem; line-height: 1.45; margin-top: 4px; }
.chips { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { margin-bottom: 8px; padding: 0; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { cursor: pointer; padding: 9px 14px; border-radius: 999px; background: var(--paper); border: 2px solid var(--line); font-weight: 600; font-size: .92rem; transition: transform .12s; }
.chips label:hover { transform: translateY(-1px); }
.chips input:checked + label { background: var(--sky); border-color: var(--sky); color: #fff; }
.chips input:focus-visible + label { outline: 3px solid var(--sky); outline-offset: 2px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.quick button { border: 0; cursor: pointer; font: 600 .82rem var(--body); padding: 6px 11px; border-radius: 999px; background: var(--sky-soft); color: var(--text); }
.status { min-height: 1.4em; font-weight: 600; margin: 0 0 10px; }
.status[data-state="error"] { color: var(--coral); }
.thanks { text-align: center; }
.thanks[hidden] { display: none; }
.thanks-emoji { font-size: 4rem; margin: 0; animation: bob 2s ease-in-out infinite; }
.thanks h3 { font-size: 2rem; margin: 6px 0 8px; }
.thanks p { color: var(--muted); }

/* footer — mirrors chrislacey.com */
footer { border-top: 1px solid var(--line); padding: 26px 0; font: 500 .9rem var(--mono); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.who { display: flex; align-items: center; gap: 10px; }
.who img { width: 40px; height: 40px; border-radius: 50%; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--sky); text-decoration: none; }

/* confetti + reveal */
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .balloons { display: none; }
}
.c-sun { --c: var(--sun); } .c-grape { --c: var(--grape); } .c-mint { --c: var(--mint); } .c-sky { --c: var(--sky); }
html, body { overflow-x: clip; }

.gallery .more { display: none; }
.gallery.all .more { display: block; }
.show-more { display: flex; margin: 18px auto 0; }

.opt { font-weight: 500; color: var(--muted); font-size: .85em; }
