/* NataMoonie: an ink-dark moon journal. Solid colours, real fonts, no glass. */

@font-face { font-family: "Karla"; src: url("../fonts/Karla.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "IM Fell English"; src: url("../fonts/IMFellEnglish-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Parisienne"; src: url("../fonts/Parisienne-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #16131f;
  --bg-2: #1f1a2b;
  --bg-3: #2a2338;
  --line: #3b3449;
  --cream: #f0e7d7;
  --muted: #b8aec0;
  --faint: #8d8399;
  --gold: #d9b56c;
  --rose: #d8909f;
  --plum: #7a5a98;
  --plum-dark: #503a6a;
  --error: #f0a3a3;
  --ok: #a8dcc0;

  --body: "Karla", system-ui, sans-serif;
  --head: "IM Fell English", Georgia, serif;
  --script: "Parisienne", cursive;

  --wrap: 1080px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--cream);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 2px dashed var(--gold); outline-offset: 3px; }
em { font-style: normal; color: var(--rose); }

.ico { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.ico-sm { width: 14px; height: 14px; }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--bg); padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--script); font-size: 1.9rem; line-height: 1; color: var(--cream); text-decoration: none; }
.brand:hover { color: var(--gold); }
.nav nav { display: flex; align-items: center; gap: 26px; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav nav a:hover { color: var(--cream); text-decoration: underline; }
.nav nav a.nav-cta { color: var(--bg); background: var(--gold); padding: 7px 16px; border-radius: 4px; font-weight: 700; }
.nav nav a.nav-cta:hover { background: var(--cream); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; color: var(--cream); width: 42px; height: 42px; cursor: pointer; }

/* hero */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gutter) 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
}
/* gradient lettering: moonlight gold into rose into lavender */
.hero .script,
.section h2,
.page h1 {
  background: linear-gradient(100deg, #f6dfa4 0%, var(--gold) 30%, var(--rose) 65%, #c7b3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.section h2 { display: inline-block; padding-bottom: .08em; }
.hero .script { padding: .08em .12em 0 .02em; width: fit-content; }

.hello { margin: 0; color: var(--muted); font-size: 1.05rem; }
.hero h1 {
  margin: 0;
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.15;
}
.hero .script {
  display: block;
  font-family: var(--script);
  font-size: clamp(4.5rem, 12vw, 8rem);
  line-height: 1;
  margin: -4px 0 6px -4px;
}
.lead { color: var(--muted); font-size: 1.15rem; max-width: 32em; margin: 22px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 0; }
.hero-art { margin: 0; }
.hero-art svg { width: 100%; max-width: 320px; margin-left: auto; display: block; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  font: 700 1rem var(--body);
  color: var(--bg);
  background: var(--gold);
  border: 0;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--cream); color: var(--bg); }
.btn[disabled] { opacity: .6; cursor: progress; }
.textlink { color: var(--gold); }
.textlink .ico { margin-left: 2px; }

/* dividers */
.phases { display: block; width: 180px; height: 20px; margin: clamp(56px, 8vw, 88px) auto 0; }

/* sections */
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 7vw, 72px) var(--gutter) 0; }
.section h2 {
  margin: 0 0 12px;
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 2.9rem);
  line-height: 1.1;
}
.intro { color: var(--muted); max-width: 40em; margin: 0 0 36px; }
h3 { font-family: var(--head); font-weight: 400; font-size: 1.6rem; line-height: 1.2; margin: 0 0 8px; }
h3.sub { margin: 56px 0 18px; font-size: 1.5rem; color: var(--gold); }

/* about */
.about-cols { display: grid; grid-template-columns: 1.7fr 1fr; gap: 48px; margin-top: 20px; }
.prose p { margin: 0 0 1em; color: var(--muted); }
.prose a { color: var(--gold); }
.facts { list-style: none; margin: 4px 0 0; padding: 0 0 0 24px; border-left: 1px solid var(--line); }
.facts li { position: relative; padding-left: 22px; margin-bottom: 12px; color: var(--muted); font-size: .98rem; }
.facts li::before { content: "☾"; position: absolute; left: 0; color: var(--gold); }

.spellbook { margin: 0; }
.spellbook div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px dotted var(--line);
}
.spellbook div:first-child { border-top: 1px dotted var(--line); }
.spellbook dt { font-family: var(--head); font-size: 1.25rem; color: var(--cream); }
.spellbook dd { margin: 0; color: var(--muted); }

/* frames: a dark mount with two gold photo corners */
.frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  cursor: zoom-in;
  font: inherit;
  color: inherit;
}
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; background: var(--bg-3); }
.frame::before, .frame::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid var(--gold);
}
.frame::before { top: -5px; left: -5px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -5px; right: -5px; border-left: 0; border-top: 0; }
.frame:hover { border-color: var(--gold); }
.frame-light img { background: #3a3a3a; object-fit: contain; }

/* slideshows: pictures stacked in one spot, the current one shown */
.frame.is-slides { display: grid; }
.frame.is-slides .slide { grid-area: 1 / 1; opacity: 0; transition: opacity .6s ease; }
.frame.is-slides .slide.is-on { opacity: 1; }
.frame img[src*="characters"] { object-fit: contain; background: #3a3a3a; }
.dots { display: flex; justify-content: center; gap: 2px; margin-top: 8px; }
.dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--gold); }
.dots button[aria-current="true"]::before { background: var(--gold); }
.dots button:hover::before { background: var(--cream); border-color: var(--cream); }
.row .slideshow { min-width: 0; }
.row.flip .slideshow { order: 2; }
.smalls .slideshow .dots { gap: 0; margin-top: 4px; }
.smalls .dots button { width: 18px; height: 18px; }
.smalls .dots button::before { width: 6px; height: 6px; }

.feature { margin-bottom: 64px; }
.frame-wide img { aspect-ratio: 16 / 7; }
.feature-text { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 26px; }
.feature-text h3 { font-size: 2.1rem; }
.feature-text p { color: var(--muted); margin: 0 0 12px; }

.meta { margin: 0 0 4px; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--rose); }
.stack { font-size: .9rem; color: var(--faint) !important; }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 0 0 10px 22px; color: var(--cream); font-size: .98rem; }
.ticks li::before { content: "✶"; position: absolute; left: 0; top: 0; color: var(--gold); font-size: .9rem; }

.row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.row.flip { grid-template-columns: 1fr 1.15fr; }
.row.flip .frame { order: 2; }
.row .frame img { aspect-ratio: 16 / 10; }
.row-text p { color: var(--muted); margin: 0 0 12px; }

.frame-logos { display: flex; gap: 6%; align-items: center; justify-content: center; aspect-ratio: auto; padding: 28px; background: #1b1424; }
.frame-logos img { width: 40%; aspect-ratio: auto !important; object-fit: contain; background: none; }

.smalls { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.smalls li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: start; }
.frame-sm { padding: 5px; }
.frame-sm::before, .frame-sm::after { width: 16px; height: 16px; }
.frame-sm img { aspect-ratio: 4 / 3; }
.frame-art { cursor: default; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.frame-art:hover { border-color: var(--line); }
.frame-art svg { width: 80%; }
.smalls h4 { margin: 0 0 4px; font-family: var(--head); font-weight: 400; font-size: 1.3rem; }
.smalls h4 span { font-family: var(--body); font-size: .8rem; color: var(--faint); margin-left: 6px; }
.smalls p { margin: 0; color: var(--muted); font-size: .95rem; }

/* offer */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.offer { padding: 22px 0; border-top: 1px solid var(--line); }
.offer p { margin: 0; color: var(--muted); }
.price-note { margin-top: 28px; padding: 22px 26px; border: 1px dashed var(--gold); border-radius: 6px; }
.price-note h3 { color: var(--gold); }
.price-note p { margin: 0; color: var(--muted); }
.steps { margin: 0; padding-left: 1.4em; }
.steps li { margin-bottom: 10px; color: var(--muted); padding-left: 6px; }
.steps li::marker { color: var(--gold); font-family: var(--head); }
.steps b { color: var(--cream); font-weight: 600; }

/* journey */
.years { list-style: none; margin: 20px 0 0; padding: 0; }
.years li { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px dotted var(--line); }
.years b { font-family: var(--head); font-weight: 400; font-size: 1.3rem; color: var(--gold); }
.years span { color: var(--muted); }

/* contact */
.contact-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
.contact-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font: 400 1rem var(--body);
  color: var(--cream);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 11px 13px;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { margin: 0; min-height: 0; font-size: .88rem; color: var(--error); }
.field-error:empty { display: none; }
.small { margin: 0; font-size: .85rem; color: var(--faint); }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; }
.form-status.err { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.direct ul { list-style: none; margin: 14px 0 0; padding: 0; }
.direct li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dotted var(--line); color: var(--muted); overflow-wrap: anywhere; }
.direct .ico { color: var(--gold); }

/* footer */
.footer { margin-top: 96px; padding: 32px var(--gutter) 120px; border-top: 1px solid var(--line); text-align: center; color: var(--faint); font-size: .9rem; }
.footer p { margin: 0 0 10px; }
.made { font-size: 1.05rem; color: var(--muted); }
.made .heart { width: 16px; height: 16px; color: var(--rose); margin: 0 2px; vertical-align: -2px; }
.views b { color: var(--gold); font-weight: 700; }
.footer-links { display: flex; justify-content: center; gap: 24px; }
.footer-links a { color: var(--muted); }
.footer-note { font-size: .8rem; max-width: 46em; margin: 0 auto !important; }

/* bottom dock: music player (and a hire button on phones) */
.dock { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; gap: 8px; }
.player {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px 6px 6px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.player button { width: 34px; height: 34px; display: grid; place-items: center; background: none; border: 0; color: var(--muted); cursor: pointer; border-radius: 4px; }
.player button:hover { color: var(--cream); background: var(--bg-3); }
.player .pl-play { background: var(--gold); color: var(--bg); }
.player .pl-play:hover { background: var(--cream); color: var(--bg); }
.pl-title { width: 150px; margin: 0 6px 0 8px; font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-vol { width: 80px; accent-color: var(--gold); cursor: pointer; }
.dock-cta { display: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 60px 70px; background: rgba(12, 10, 18, .96); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; gap: 10px; max-width: min(1200px, 100%); }
.lightbox img { max-height: calc(100vh - 150px); margin: 0 auto; border: 8px solid var(--bg-2); }
.lightbox figcaption { text-align: center; color: var(--muted); font-size: .9rem; }
.lightbox button { position: absolute; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 4px; border: 1px solid var(--line); background: var(--bg-2); color: var(--cream); cursor: pointer; }
.lightbox button:hover { border-color: var(--gold); color: var(--gold); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; margin-top: -23px; }
.lb-next { right: 12px; top: 50%; margin-top: -23px; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }

/* simple pages (privacy, 404, thanks) */
.page { max-width: 760px; margin: 0 auto; padding: 64px var(--gutter) 0; }
.page h1 { font-family: var(--head); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1.1; margin: 0 0 16px; }
.page h2 { font-family: var(--head); font-weight: 400; font-size: 1.6rem; margin: 36px 0 8px; }
.page p, .page li { color: var(--muted); }
.page .big-moon { width: 140px; margin: 0 0 24px; }

/* phones and tablets */
@media (max-width: 880px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav nav.is-open { display: flex; }
  .nav nav a { padding: 12px 0; border-bottom: 1px dotted var(--line); }
  .nav nav a.nav-cta { margin-top: 12px; text-align: center; border: 0; }

  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 180px; margin: 0; }

  .about-cols, .feature-text, .row, .row.flip, .contact-cols, .offers { grid-template-columns: 1fr; gap: 24px; }
  .row.flip .frame, .row.flip .slideshow { order: 0; }
  .facts { padding-left: 0; border-left: 0; }
  .smalls { grid-template-columns: 1fr; }
  .frame-wide img { aspect-ratio: 16 / 9; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .spellbook div, .years li { grid-template-columns: 1fr; gap: 2px; }
  .smalls li { grid-template-columns: 110px 1fr; gap: 14px; }

  .dock { left: 8px; right: 8px; bottom: 8px; }
  .player { flex: 1; min-width: 0; }
  .pl-title { flex: 1; width: auto; }
  .pl-vol { display: none; }
  .dock-cta { display: grid; place-items: center; padding: 0 16px; background: var(--gold); color: var(--bg); font-weight: 700; text-decoration: none; border-radius: 6px; }

  .lightbox { padding: 60px 8px 80px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; margin: 0; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
}

@media (prefers-reduced-motion: reduce) {
  .frame.is-slides .slide { transition: none; }
}

/* ==========================================================================
   Motion: smooth scrolling, entrances, reveals, hovers and little sparkles.
   Everything here switches off for people who ask their system for less motion.
   ========================================================================== */

html { scroll-behavior: smooth; }

/* scroll progress along the top */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 70;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #f6dfa4, var(--gold), var(--rose), #c7b3ee);
  pointer-events: none;
}

/* nav: gets a soft shadow once you scroll, and shows where you are */
.nav { transition: box-shadow .3s ease, padding .3s ease; }
.nav.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .9); padding-top: 8px; padding-bottom: 8px; }
.nav nav a:not(.nav-cta) { position: relative; text-decoration: none !important; }
.nav nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .3s ease;
}
.nav nav a:not(.nav-cta):hover::after,
.nav nav a.is-current::after { transform: scaleX(1); }
.nav nav a.is-current { color: var(--cream); }

/* hero entrance on page load */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.js .hero .hello,
.js .hero .script,
.js .hero .h1-rest,
.js .hero .lead,
.js .hero .hero-actions { opacity: 0; animation: rise .9s cubic-bezier(.2, .8, .2, 1) forwards; }
.js .hero .script { animation-delay: .15s; }
.js .hero .h1-rest { display: inline-block; animation-delay: .35s; }
.js .hero .lead { animation-delay: .5s; }
.js .hero .hero-actions { animation-delay: .65s; }

/* the gradient on the name slowly drifts */
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
.hero .script {
  background-image: linear-gradient(100deg, #f6dfa4, var(--gold), var(--rose), #c7b3ee, var(--rose), var(--gold), #f6dfa4);
  background-size: 200% 100%;
  animation: rise .9s cubic-bezier(.2, .8, .2, 1) .15s forwards, shimmer 9s linear 1s infinite !important;
}

/* moon: floats, glows, and its sparkles twinkle */
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(-2deg); } }
@keyframes moon-in { from { opacity: 0; transform: scale(.85) rotate(12deg); } to { opacity: 1; transform: none; } }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .25; transform: scale(.6); } }
.hero-art { animation: moon-in 1.2s cubic-bezier(.2, .8, .2, 1) both .2s; }
.hero-art svg { animation: float 7s ease-in-out infinite; filter: drop-shadow(0 0 28px rgba(217, 181, 108, .28)); overflow: visible; }
.hero-art .tw { transform-box: fill-box; transform-origin: center; animation: twinkle 3.2s ease-in-out infinite; }
.hero-art .tw:nth-of-type(2) { animation-delay: -1s; }
.hero-art .tw:nth-of-type(3) { animation-delay: -2s; }
.hero-art .tw:nth-of-type(4) { animation-delay: -.5s; }
.hero-art .tw:nth-of-type(5) { animation-delay: -2.6s; }
.hero-art .tw:nth-of-type(6) { animation-delay: -1.6s; }

/* divider moons breathe a little */
@keyframes breathe { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.phases { animation: breathe 5s ease-in-out infinite; }

/* fade in on scroll; JS adds .reveal and then .is-in */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--delay, 0s); }
.reveal.from-left { transform: translateX(-28px); }
.reveal.from-right { transform: translateX(28px); }
.reveal.is-in { opacity: 1; transform: none; }

/* pictures lift, the photo corners grow, the picture zooms a touch */
.frame { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, border-color .35s ease; }
.frame::before, .frame::after { transition: width .35s ease, height .35s ease; }
.frame img { transition: transform .8s ease, opacity .6s ease; }
.frame.is-slides .slide { transition: opacity .7s ease, transform .8s ease; }
.frame:not(.frame-art):hover { transform: translateY(-6px); box-shadow: 0 22px 40px -22px rgba(0, 0, 0, .9), 0 0 0 1px var(--gold); }
.frame:not(.frame-art):hover::before, .frame:not(.frame-art):hover::after { width: 44px; height: 44px; }
.frame-sm:hover::before, .frame-sm:hover::after { width: 26px !important; height: 26px !important; }
.frame:not(.frame-art):hover img { transform: scale(1.03); }
.frame { overflow: visible; }
.frame img { clip-path: inset(0); }

/* buttons: a little shine sweeps across */
.btn { position: relative; overflow: hidden; transition: background .25s ease, transform .25s ease, box-shadow .25s ease; }
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(217, 181, 108, .8); }
.btn:hover::after { left: 120%; }

.textlink { transition: color .2s ease, letter-spacing .3s ease; }
.textlink .ico { transition: transform .25s ease; }
.textlink:hover .ico { transform: translate(2px, -2px); }

/* list rows nudge on hover */
.spellbook div, .years li, .direct li, .offer { transition: background .3s ease, padding-left .3s ease; }
.spellbook div:hover, .years li:hover, .direct li:hover { background: linear-gradient(90deg, rgba(217, 181, 108, .07), transparent 70%); padding-left: 10px; }
.offer:hover h3 { color: var(--gold); }
.offer h3 { transition: color .25s ease; }
.ticks li::before, .facts li::before { transition: transform .4s ease; display: inline-block; }
.ticks li:hover::before, .facts li:hover::before { transform: rotate(72deg) scale(1.3); }

/* heart in the footer beats */
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }
.made .heart { animation: beat 1.8s ease-in-out infinite; transform-origin: center; }

/* back to top */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--gold);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, border-color .3s ease;
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--gold); }
.to-top svg { width: 22px; height: 22px; transition: transform .3s ease; }
.to-top:hover svg { transform: translateY(-3px) rotate(-12deg); }
@media (max-width: 560px) { .to-top { bottom: 70px; right: 10px; width: 40px; height: 40px; } }

/* sparkle trail behind the mouse */
.spark {
  position: fixed;
  z-index: 90;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  pointer-events: none;
  background: var(--c, var(--gold));
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: spark-fade .8s ease-out forwards;
}
@keyframes spark-fade { to { opacity: 0; transform: translate(var(--dx, 0), 18px) scale(.2) rotate(90deg); } }

/* the player slides in */
@keyframes dock-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.dock { animation: dock-in .7s ease both 1s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero .hello, .js .hero .script, .js .hero .h1-rest, .js .hero .lead, .js .hero .hero-actions, .reveal { opacity: 1 !important; transform: none !important; }
  .spark { display: none; }
}

/* slideshow arrows */
.slideshow { position: relative; }
.ss-arrow {
  position: absolute;
  top: calc(50% - 16px);
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(217, 181, 108, .5);
  background: rgba(22, 19, 31, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--cream);
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s ease, background .25s ease, color .25s ease, transform .25s ease;
}
.ss-prev { left: 16px; }
.ss-next { right: 16px; }
.slideshow:hover .ss-arrow, .ss-arrow:focus-visible { opacity: 1; }
.ss-arrow:hover { background: var(--gold); color: var(--bg); }
.ss-prev:hover { transform: translateY(-50%) translateX(-2px); }
.ss-next:hover { transform: translateY(-50%) translateX(2px); }
.smalls .ss-arrow { width: 26px; height: 26px; top: calc(50% - 12px); }
.smalls .ss-arrow .ico { width: 14px; height: 14px; }
.smalls .ss-prev { left: 8px; }
.smalls .ss-next { right: 8px; }
@media (hover: none) { .ss-arrow { opacity: .9; } }

/* frosted glass on the floating bits */
.nav { background: rgba(22, 19, 31, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.player, .to-top { background: rgba(31, 26, 43, .7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.price-note { background: rgba(31, 26, 43, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.field input, .field select, .field textarea { background: rgba(31, 26, 43, .7); backdrop-filter: blur(6px); }
.field select option { background: var(--bg-2); }
@media (max-width: 880px) { .nav nav { background: rgba(22, 19, 31, .94); backdrop-filter: blur(14px); } }

/* frames keep their hover transitions and still fade in */
.frame.reveal { transition: opacity .8s ease var(--delay, 0s), transform .8s cubic-bezier(.2, .8, .2, 1) var(--delay, 0s), box-shadow .35s ease, border-color .35s ease; }
.frame.reveal.is-in:hover { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, border-color .35s ease; }

.row-text h3 small { font-size: .62em; color: var(--rose); margin-left: 4px; }

/* ==========================================================================
   Tumblr-style feed, frosted boxes, and everything a size smaller
   ========================================================================== */

:root { --wrap: 1140px; --glass: rgba(31, 26, 43, .55); --glass-line: rgba(217, 181, 108, .18); }
body { font-size: 16px; }

/* smaller hero */
.hero { padding: clamp(36px, 6vw, 64px) var(--gutter) 24px; }
.hero .script { font-size: clamp(3.6rem, 8vw, 6rem); }
.hero h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.lead { font-size: 1.02rem; margin: 16px 0 22px; }
.hero-art svg { max-width: 250px; }

/* smaller sections */
.phases { margin-top: 44px; width: 150px; height: 17px; }
.section { padding-top: 40px; }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.intro { margin-bottom: 24px; font-size: .98rem; }
h3 { font-size: 1.35rem; }
h3.sub { margin: 32px 0 12px; font-size: 1.3rem; }

/* frosted glass boxes */
.glass, .post, .prose, .facts, .spellbook, .offer, .price-note, .years, .contact-form, .direct {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  box-shadow: 0 14px 40px -24px rgba(0, 0, 0, .8);
}
.prose { padding: 22px 26px; }
.prose p:last-child { margin-bottom: 0; }
.facts { padding: 20px 22px; border-left: 1px solid var(--glass-line); margin: 0; }
.facts li { font-size: .92rem; margin-bottom: 9px; }
.about-cols { gap: 18px; margin-top: 8px; }
.spellbook { padding: 6px 22px; }
.spellbook div { padding: 10px 0; grid-template-columns: 150px 1fr; font-size: .95rem; }
.spellbook div:first-child { border-top: 0; }
.spellbook div:last-child { border-bottom: 0; }
.spellbook dt { font-size: 1.1rem; }
.offers { gap: 14px; }
.offer { padding: 18px 20px; border-top: 1px solid var(--glass-line); }
.offer p { font-size: .94rem; }
.price-note { margin-top: 14px; border: 1px dashed rgba(217, 181, 108, .55); }
.steps li { font-size: .95rem; margin-bottom: 6px; }
.years { padding: 4px 22px; margin-top: 8px; }
.years li { padding: 10px 0; grid-template-columns: 130px 1fr; font-size: .95rem; }
.years li:last-child { border-bottom: 0; }
.years b { font-size: 1.15rem; }
.contact-cols { gap: 18px; }
.contact-form { padding: 22px; gap: 12px; }
.direct { padding: 18px 22px; align-self: start; }
.direct h3 { font-size: 1.2rem; }
.direct li { font-size: .95rem; padding: 10px 0; }
.direct li:last-child { border-bottom: 0; }
.field textarea { min-height: 120px; }
.footer { margin-top: 56px; }

/* the feed: posts flow into columns like the old dashboard */
.feed { columns: 3 300px; column-gap: 18px; }
.post {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, border-color .35s ease;
}
.post:hover { transform: translateY(-4px); border-color: rgba(217, 181, 108, .45); box-shadow: 0 22px 44px -24px rgba(0, 0, 0, .9); }
.post.is-later { display: none; }

/* pictures sit flush at the top of the post */
.post .frame { padding: 0; border: 0; border-bottom: 1px solid var(--glass-line); background: var(--bg-3); }
.post .frame::before, .post .frame::after { display: none; }
.post .frame:not(.frame-art):hover { transform: none; box-shadow: none; }
.post .frame img { aspect-ratio: 16 / 10; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.post .frame-art { aspect-ratio: 16 / 10; background: linear-gradient(160deg, #241d3a, #151725); }
.post .frame-art svg { width: 55%; }
.post .slideshow { margin: 0; }
.post .dots { position: absolute; left: 0; right: 0; bottom: 6px; margin: 0; z-index: 2; }
.post .dots button::before { background: rgba(22, 19, 31, .5); border-color: var(--cream); }
.post .dots button[aria-current="true"]::before { background: var(--gold); border-color: var(--gold); }
.post .ss-arrow { top: 50%; width: 32px; height: 32px; }
.post .ss-prev { left: 10px; }
.post .ss-next { right: 10px; }

.post-body { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 7px; }
.post-body h3 { margin: 0; font-size: 1.3rem; }
.post-body h3 small { font-size: .62em; color: var(--rose); margin-left: 3px; }
.post-body p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.post-body .meta { font-size: .72rem; }
.post-body .textlink { font-size: .9rem; }

/* tech chips, like before */
.stack { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; }
.stack li { font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; color: var(--cream); background: rgba(217, 181, 108, .08); border: 1px solid rgba(217, 181, 108, .35); }

/* "keep reading", the way tumblr did it */
.post details summary { cursor: pointer; color: var(--gold); font-size: .85rem; font-weight: 600; list-style: none; width: fit-content; }
.post details summary::-webkit-details-marker { display: none; }
.post details summary::after { content: " ›"; display: inline-block; transition: transform .25s ease; }
.post details[open] summary::after { transform: rotate(90deg); }
.post details[open] summary { margin-bottom: 6px; }
.post .ticks li { font-size: .86rem; padding-bottom: 5px; color: var(--muted); }

/* endless scroll loader */
@keyframes spin-moon { to { transform: rotate(360deg); } }
.feed-more { text-align: center; color: var(--muted); font-size: .9rem; margin: 8px 0 0; }
.feed-more .ico { color: var(--gold); animation: spin-moon 1.4s linear infinite; }

@media (max-width: 880px) {
  .facts { border-left: 1px solid var(--glass-line); }
}
@media (max-width: 560px) {
  .feed { columns: 1; }
  .spellbook div, .years li { grid-template-columns: 1fr; }
}

.post.reveal { transition: opacity .8s ease var(--delay, 0s), transform .8s cubic-bezier(.2, .8, .2, 1) var(--delay, 0s), box-shadow .35s ease, border-color .35s ease; }
.post.reveal.is-in:hover { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, border-color .35s ease; }
