/* Fonts are served from this site (not Google), so visitors' IP addresses aren't sent to a third party.
   Fredoka and Nunito are under the SIL Open Font License; see fonts/OFL-*.txt. */
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('fonts/fredoka-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('fonts/fredoka-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('fonts/nunito-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('fonts/nunito-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==========================================================================
   Fellystar Studios · shared styles (public site + admin)
   ========================================================================== */

:root {
  --orange: #FF6D44;        /* brand orange, sampled from the logo */
  --orange-strong: #EF5424; /* buttons / pressed states */
  --orange-deep: #C23E17;   /* 3D edges, orange text on light backgrounds */
  --orange-soft: #FFD6C8;
  --orange-tint: #FFF3EE;
  --white: #FFFFFF;
  --ink: #23150F;
  --ink-soft: #6A5147;
  --ok: #17803A;
  --err: #C4271B;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --border: 2.5px solid var(--ink);

  --font-display: 'Fredoka', 'Nunito', ui-rounded, system-ui, sans-serif;
  --font-body: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, video, iframe { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; margin: 0; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.hero :focus-visible, .contact-info :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: .6em 1em; border-radius: 999px; font-weight: 800;
}
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */

.btn {
  --bg: var(--orange-strong); --fg: #fff; --edge: var(--orange-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .8em 1.4em;
  font: 700 1.125rem/1.1 var(--font-display);
  color: var(--fg); background: var(--bg);
  border: 0; border-radius: 999px;
  box-shadow: 0 5px 0 var(--edge);
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--bounce), box-shadow .18s var(--bounce), background-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--edge); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-white { --bg: #fff; --fg: var(--ink); --edge: var(--ink); }
.btn-ink { --bg: var(--ink); --fg: #fff; --edge: #000; }
.btn-ghost { --bg: transparent; --fg: #fff; --edge: transparent; box-shadow: inset 0 0 0 3px #fff; }
.btn-ghost:hover { --bg: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 3px #fff; }
.btn-ghost:active { box-shadow: inset 0 0 0 3px #fff; }
.btn-danger { --bg: var(--err); --fg: #fff; --edge: #7E170F; }
.btn-sm { min-height: 40px; padding: .55em 1.1em; font-size: 1rem; box-shadow: 0 4px 0 var(--edge); }
.btn-lg { min-height: 56px; padding: .9em 1.7em; font-size: 1.2rem; }
.btn-block { width: 100%; }

/* ---------- Header / nav ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
  pointer-events: none;
}
.nav {
  position: relative; pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 10px;
  background: #fff; border: var(--border); border-radius: 999px;
  box-shadow: 0 5px 0 var(--ink);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex: none; }
.brand-name { font: 700 1.3rem/1 var(--font-display); letter-spacing: -.01em; }
.brand-name span { color: var(--orange-strong); margin-left: .22em; }
.brand-light .brand-name span { color: var(--orange); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) {
  display: block; padding: .55em 1em; border-radius: 999px;
  font-weight: 800; text-decoration: none; transition: background-color .15s;
}
.nav-links a:not(.btn):hover { background: var(--orange-tint); }

/* Order CTA sits after the links on desktop, next to the menu button on phones */
.nav .nav-cta { order: 3; flex: none; }
.nav .nav-links { order: 2; margin-left: auto; }
.nav .nav-toggle { order: 4; }
.nav .brand { order: 1; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--orange-tint); cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { width: 18px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .25s var(--bounce), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: calc(100% + 12px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 6px; padding: 10px;
    background: #fff; border: var(--border); border-radius: var(--radius-lg);
    box-shadow: 0 6px 0 var(--ink);
    opacity: 0; transform: translateY(-8px) scale(.98); visibility: hidden;
    transition: opacity .2s, transform .25s var(--bounce), visibility .2s;
  }
  .nav-links.open { opacity: 1; transform: none; visibility: visible; }
  .nav-links a:not(.btn) { padding: .85em 1em; font-size: 1.1rem; }
  .nav-links .btn { width: 100%; min-height: 50px; margin-top: 4px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: clip;
  padding: calc(env(safe-area-inset-top, 0px) + 128px) 0 clamp(88px, 11vw, 132px);
  color: #fff;
  background-color: var(--orange);
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 2px, transparent 2px);
  background-size: 56px 56px;
  background-position: -2px -2px;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(36px, 5vw, 72px);
}
.pill {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .45em 1em; border-radius: 999px;
  background: #fff; color: var(--ink);
  font: 700 .95rem/1.2 var(--font-display);
  box-shadow: 0 4px 0 var(--orange-deep);
}
.pill svg { color: var(--orange); }
.hero h1 {
  font-size: clamp(2.7rem, 7vw, 4.9rem);
  margin: .35em 0 .3em;
  text-shadow: 0 4px 0 var(--orange-deep);
  text-wrap: balance;
}
.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); font-weight: 700; max-width: 33em; margin: 0; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-reel { position: relative; }
.reel {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border: 4px solid #fff; border-radius: var(--radius-lg);
  background: var(--ink);
  box-shadow: 0 10px 0 var(--orange-deep), 0 34px 60px -24px rgba(60, 18, 0, .5);
  transition: transform .4s var(--bounce);
}
.hero-reel:hover .reel { transform: scale(1.01); }
.reel-label {
  position: absolute; z-index: 2; top: -16px; left: 22px;
  padding: .45em 1em; border-radius: 999px;
  background: var(--ink); color: #fff;
  font: 700 .85rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase;
  transform: rotate(-4deg);
}
.reel iframe, .reel video { width: 100%; height: 100%; border: 0; background: #000; }
.reel video { object-fit: contain; }
.reel-poster {
  position: absolute; inset: 0; display: grid; place-items: center;
  width: 100%; padding: 0; border: 0; cursor: pointer; background: var(--ink);
}
.reel-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-empty {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px;
  text-align: center; color: #fff; padding: 20px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 109, 68, .45), transparent 55%),
    linear-gradient(135deg, #3A2218, var(--ink));
}
.reel-empty svg { width: 64px; height: 64px; color: var(--orange); animation: float 5s ease-in-out infinite; }
.reel-empty strong { font: 700 1.35rem var(--font-display); }
.reel-empty span { opacity: .75; font-weight: 600; font-size: .95rem; }

.play-btn {
  position: relative; display: grid; place-items: center;
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--orange-strong); color: #fff;
  box-shadow: 0 6px 0 var(--orange-deep), 0 12px 30px rgba(0, 0, 0, .3);
  transition: transform .25s var(--bounce);
}
.play-btn svg { width: 36px; height: 36px; margin-left: 5px; }
.reel-poster:hover .play-btn, .work-card:hover .play-btn { transform: scale(1.1); }

.hero-cubes .cube {
  position: absolute; color: #fff; opacity: .2;
  animation: float 7s ease-in-out infinite;
}
.cube.c1 { width: 70px; height: 70px; top: 16%; left: 3%; }
.cube.c2 { width: 40px; height: 40px; bottom: 16%; left: 40%; animation-delay: -2s; opacity: .28; }
.cube.c3 { width: 110px; height: 110px; top: 9%; right: 4%; animation-delay: -4s; opacity: .14; }
.cube.c4 { width: 52px; height: 52px; bottom: 10%; right: 12%; animation-delay: -1s; }
.cube.c5 { width: 30px; height: 30px; top: 46%; left: 48%; animation-delay: -3s; opacity: .3; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(8deg); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: calc(env(safe-area-inset-top, 0px) + 112px); }
  .cube.c3 { width: 70px; height: 70px; }
  .cube.c5 { display: none; }
}
@media (max-width: 520px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .reel { border-width: 3px; }
  .play-btn { width: 68px; height: 68px; }
  .play-btn svg { width: 28px; height: 28px; }
}

/* ---------- Marquee ---------- */

.marquee-wrap { position: relative; z-index: 3; overflow: clip; margin-top: -44px; padding-block: 22px; }
.marquee {
  width: 110%; margin-left: -5%; padding: 14px 0;
  background: var(--ink); color: #fff;
  transform: rotate(-2deg);
  border-block: 4px solid #fff;
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 24px; padding-right: 24px;
  font: 700 clamp(1.1rem, 2.4vw, 1.5rem)/1 var(--font-display);
  text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
}
.marquee-item svg { width: 22px; height: 22px; color: var(--orange); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 9vw, 112px); }
.section-tint { background: var(--orange-tint); }
.section-head { max-width: 42rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2, .contact h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); text-wrap: balance; }
.section-sub { margin: .6em 0 0; font-size: 1.125rem; color: var(--ink-soft); font-weight: 600; }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  padding: .4em .9em; border-radius: 999px;
  font: 700 .85rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-deep); background: var(--orange-tint);
}
.section-tint .eyebrow { background: #fff; }
.eyebrow-light { background: #fff; color: var(--orange-deep); }

/* ---------- Prices ---------- */

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.price-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-bottom: 32px; }
.price-count { display: flex; align-items: center; gap: 14px; }
.price-count label { font: 700 1.2rem/1 var(--font-display); }
.stepper {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px;
  background: #fff; border: var(--border); border-radius: 999px; box-shadow: 0 4px 0 var(--ink);
}
.price-step {
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  font: 700 1.5rem/1 var(--font-display); color: #fff;
  background: var(--orange-strong); border: 0; border-radius: 50%; cursor: pointer;
  transition: transform .18s var(--bounce), opacity .15s;
  -webkit-tap-highlight-color: transparent;
}
.price-step:hover { transform: scale(1.08); }
.price-step:active { transform: scale(.94); }
.price-step:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.stepper input {
  width: 3.2ch; padding: 0; border: 0; background: transparent; text-align: center;
  font: 700 1.6rem/1 var(--font-display); color: var(--ink);
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-bundles { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.price-bundles .chip { background: #fff; transition: background-color .15s, color .15s, transform .2s var(--bounce); }
.price-bundles .chip.on { background: var(--ink); color: #fff; transform: translateY(-2px); }
.price-bundles .chip-first { background: var(--orange-soft); color: var(--ink); }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 24px; }
.price-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 28px 26px;
  background: #fff; border: var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 8px 0 var(--ink);
  transition: transform .3s var(--bounce), box-shadow .3s var(--bounce);
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 14px 0 var(--ink); }
.price-label {
  padding: .35em .85em; border-radius: 999px;
  font: 700 .78rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase;
  background: var(--orange-tint); color: var(--orange-deep);
}
.price-len { font-size: 2.4rem; }
.price-len small { font-size: 1rem; color: var(--ink-soft); }
.price-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 4px 0 0; }
.price-amount s { font-weight: 800; font-size: 1.15rem; color: var(--ink-soft); text-decoration-thickness: 2px; }
.price-amount strong { font: 700 2.3rem/1 var(--font-display); }
.price-per { margin: 0; font-weight: 700; color: var(--ink-soft); }
.price-save {
  padding: .3em .8em; border-radius: 999px;
  font-weight: 800; font-size: .9rem;
  background: var(--orange-deep); color: #fff;
}
.price-card .btn { margin-top: auto; }
.price-card .price-per, .price-card .price-save { margin-bottom: 6px; }
.price-card.highlight { background: var(--orange); color: #fff; }
.price-card.highlight .price-label { background: #fff; color: var(--orange-deep); }
.price-card.highlight .price-len small,
.price-card.highlight .price-amount s,
.price-card.highlight .price-per { color: #fff; opacity: .9; }
.price-card.highlight .price-save { background: var(--ink); }
.price-note { margin: 28px 0 0; font-weight: 600; color: var(--ink-soft); }

/* ---------- Services ---------- */

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 24px; }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 30px 28px;
  background: #fff; border: var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 8px 0 var(--ink);
  transition: transform .3s var(--bounce), box-shadow .3s var(--bounce);
}
.service-card:hover { transform: translateY(-6px) rotate(-.7deg); box-shadow: 0 14px 0 var(--ink); }
.service-card:nth-child(even):hover { transform: translateY(-6px) rotate(.7deg); }
.service-num { position: absolute; top: 24px; right: 26px; font: 700 1rem var(--font-display); color: var(--ink-soft); opacity: .7; }
.service-icon {
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px;
  background: var(--orange); color: #fff; box-shadow: 0 4px 0 var(--orange-deep);
}
.service-card h3 { font-size: 1.65rem; margin-top: 6px; }
.service-card p { margin: 0; color: var(--ink-soft); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: auto 0 0; padding: 8px 0 0; }
.chip {
  padding: .35em .85em; border-radius: 999px;
  font-weight: 800; font-size: .88rem;
  background: var(--orange-tint); color: var(--orange-deep);
}
.service-card.featured { background: var(--orange); color: #fff; }
.service-card.featured p, .service-card.featured .service-num { color: #fff; opacity: 1; }
.service-card.featured .service-icon { background: #fff; color: var(--orange-strong); box-shadow: 0 4px 0 var(--ink); }
.service-card.featured .chip { background: #fff; color: var(--ink); }

/* ---------- Portfolio ---------- */

.filters { display: flex; flex-direction: column; gap: 6px; margin-bottom: 28px; }
.filter-row {
  display: flex; align-items: center; gap: 10px;
  overflow-x: auto; padding: 4px 4px 12px; margin-inline: -4px;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-label {
  flex: none; min-width: 78px;
  font: 700 .8rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
}
.filter-chip {
  flex: none; min-height: 44px; padding: .55em 1.15em;
  font: 700 1rem/1 var(--font-display);
  color: var(--ink); background: #fff;
  border: var(--border); border-radius: 999px;
  box-shadow: 0 3px 0 var(--ink); cursor: pointer;
  transition: transform .18s var(--bounce), background-color .15s, color .15s;
}
.filter-chip:hover { transform: translateY(-2px); }
.filter-chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: 0 3px 0 var(--orange-strong); }

@media (max-width: 560px) {
  .filter-label { min-width: 0; }
  .filter-row { margin-inline: -16px; padding-inline: 16px; }
}

/* Carousel: native horizontal scroll (touch swipe) + snap, arrows step one card */
.carousel { position: relative; --gap: 24px; --per-view: 3; }
.work-track {
  display: flex; gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scroll-padding-inline: 4px;
  padding: 10px 4px 22px; margin: -10px -4px -22px; /* room for hover lift + chunky shadow */
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.work-track::-webkit-scrollbar { display: none; }
.work-track:focus-visible { outline-offset: -2px; border-radius: var(--radius-lg); }
.work-track > .work-card {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  scroll-snap-align: start;
}

.carousel-arrow {
  position: absolute; z-index: 2; top: 50%;
  display: grid; place-items: center; width: 54px; height: 54px; padding: 0; cursor: pointer;
  color: var(--ink); background: #fff;
  border: var(--border); border-radius: 50%; box-shadow: 0 4px 0 var(--ink);
  transform: translateY(-50%);
  transition: transform .18s var(--bounce), box-shadow .18s var(--bounce), opacity .2s, background-color .15s, color .15s;
}
.carousel-arrow.prev { left: -26px; }
.carousel-arrow.next { right: -26px; }
.carousel-arrow.prev svg { transform: rotate(180deg); }
.carousel-arrow:hover:not(:disabled) { background: var(--orange-strong); color: #fff; transform: translateY(calc(-50% - 2px)); box-shadow: 0 6px 0 var(--ink); }
.carousel-arrow:active:not(:disabled) { transform: translateY(calc(-50% + 3px)); box-shadow: 0 1px 0 var(--ink); }
.carousel-arrow:disabled { opacity: .35; cursor: default; box-shadow: 0 2px 0 var(--ink); }
.carousel.no-scroll .carousel-arrow { display: none; }

@media (max-width: 1000px) { .carousel { --per-view: 2; } }
@media (max-width: 1100px) and (min-width: 561px) {
  .carousel-arrow.prev { left: -14px; }
  .carousel-arrow.next { right: -14px; }
}
@media (max-width: 640px) {
  /* one card + a peek of the next, track bleeds to the screen edge for natural swiping */
  .carousel { --per-view: 1.15; --gap: 16px; }
  .work-track { margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .carousel-arrow { width: 46px; height: 46px; }
  .carousel-arrow svg { width: 20px; height: 20px; }
  .carousel-arrow.prev { left: -6px; }
  .carousel-arrow.next { right: -6px; }
}
.work-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  padding: 0; text-align: left; color: inherit; cursor: pointer;
  background: #fff; border: var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 7px 0 var(--ink);
  transition: transform .3s var(--bounce), box-shadow .3s var(--bounce);
  animation: pop .5s var(--bounce) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
.work-card:hover { transform: translateY(-6px); box-shadow: 0 13px 0 var(--ink); }
.work-card:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--ink); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97); } }

.work-thumb {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 16 / 9; overflow: hidden;
  border-bottom: var(--border);
}
.work-thumb > * { grid-area: 1 / 1; }
.work-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work-card:hover .work-thumb img { transform: scale(1.06); }
.work-thumb .play-btn { width: 60px; height: 60px; box-shadow: 0 5px 0 var(--orange-deep), 0 10px 24px rgba(0, 0, 0, .3); }
.work-thumb .play-btn svg { width: 26px; height: 26px; margin-left: 4px; }
.thumb-ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background-color: var(--orange);
  background-image:
    linear-gradient(rgba(255, 255, 255, .12) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, .12) 2px, transparent 2px);
  background-size: 32px 32px;
}
.thumb-ph svg { width: 34%; height: 50%; color: #fff; opacity: .5; }
.thumb-badge {
  position: absolute; z-index: 1; top: 12px; right: 12px;
  padding: .35em .75em; border-radius: 999px;
  font: 700 .78rem/1 var(--font-display); letter-spacing: .05em;
  background: var(--ink); color: #fff;
}
.thumb-badge.soon { left: 12px; right: auto; background: #fff; color: var(--ink); }

.work-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.work-title { font: 700 1.3rem/1.15 var(--font-display); }
/* The title button's ::after stretches over the whole card, so the entire card is clickable */
.work-open {
  all: unset; cursor: pointer;
}
.work-open::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.work-card:has(.work-open:focus-visible) { outline: 3px solid var(--ink); outline-offset: 4px; }

/* Hover / autoplay preview */
.preview { position: absolute; inset: 0; z-index: 1; overflow: hidden; opacity: 0; transition: opacity .35s ease; pointer-events: none; background: #000; }
.preview.ready { opacity: 1; }
.preview video { width: 100%; height: 100%; object-fit: cover; }
.preview iframe {
  position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; border: 0;
  transform: translate(-50%, -50%) scale(1.02);
}
.is-vertical .preview iframe { height: auto; aspect-ratio: 9 / 16; } /* fill the 16:9 card with a 9:16 Short */
.work-thumb .play-btn, .thumb-badge { z-index: 2; transition: transform .25s var(--bounce), opacity .25s; }
.work-card.previewing .play-btn { opacity: 0; transform: scale(.6); }

.sound-btn {
  position: absolute; z-index: 4; right: 12px; bottom: 12px;
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0; cursor: pointer;
  color: #fff; background: rgba(35, 21, 15, .82);
  border: 2px solid #fff; border-radius: 50%;
  opacity: 0; transform: scale(.8);
  transition: opacity .2s, transform .2s var(--bounce), background-color .15s;
}
.sound-btn:hover { background: var(--orange-strong); }
.sound-btn[aria-pressed="true"] { background: var(--orange-strong); }
.work-card:hover .sound-btn, .work-card.previewing .sound-btn, .sound-btn:focus-visible { opacity: 1; transform: none; }
.sound-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (hover: none) { .sound-btn { opacity: 1; transform: none; } }
.work-desc {
  margin: 0; color: var(--ink-soft); font-size: .97rem; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: .35em .7em; border-radius: 999px;
  font: 700 .76rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase;
  background: var(--orange-tint); color: var(--orange-deep);
}
.tag-plat { background: var(--ink); color: #fff; }

.work-card.skeleton { pointer-events: none; animation: none; }
.skeleton .work-thumb, .skeleton .sk-line {
  background: linear-gradient(90deg, var(--orange-tint) 25%, #FFE6DC 50%, var(--orange-tint) 75%);
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite;
}
.sk-line { height: 14px; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.work-empty { text-align: center; font-weight: 800; color: var(--ink-soft); padding: 40px 0; margin: 0; }

/* ---------- Contact ---------- */

.contact {
  background-color: var(--orange); color: #fff;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 2px, transparent 2px);
  background-size: 56px 56px;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.contact h2 { text-shadow: 0 4px 0 var(--orange-deep); }
.contact-lead { font-size: 1.15rem; font-weight: 700; margin: .8em 0 0; max-width: 30em; }
.contact-cards { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.c-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 14px 14px 16px;
  background: #fff; color: var(--ink);
  border-radius: var(--radius); box-shadow: 0 5px 0 var(--orange-deep);
}
.c-icon {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px;
  border-radius: 14px; background: var(--orange-tint); color: var(--orange-strong);
}
.c-text { flex: 1; min-width: 0; }
.c-label { display: block; font: 700 .75rem/1.2 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.c-value { display: block; font-weight: 800; font-size: 1.05rem; text-decoration: none; overflow-wrap: anywhere; }
a.c-value:hover { text-decoration: underline; }
.copy-btn {
  flex: none; min-height: 40px; padding: .45em .95em; cursor: pointer;
  font: 700 .9rem/1 var(--font-display); color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: 999px;
  transition: background-color .15s, color .15s;
}
.copy-btn:hover { background: var(--orange-tint); }
.copy-btn.copied { background: var(--ink); color: #fff; }

.contact-form {
  display: grid; gap: 16px;
  padding: clamp(22px, 4vw, 36px);
  background: #fff; color: var(--ink);
  border: 3px solid var(--ink); border-radius: var(--radius-lg);
  box-shadow: 0 10px 0 var(--ink);
}
.contact-form h3 { font-size: 1.6rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Form fields (shared with admin) ---------- */

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field-label { font: 700 .98rem/1.2 var(--font-display); }
.opt, .hint { font-family: var(--font-body); font-weight: 600; font-size: .86rem; color: var(--ink-soft); }
.hint { margin: 0; }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field select,
.field textarea {
  width: 100%; min-height: 50px; padding: .75em 1em;
  font: 600 1rem/1.4 var(--font-body); color: var(--ink);
  background: var(--orange-tint); border: 2.5px solid transparent; border-radius: 14px;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.6em; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2323150F' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background-color: #fff; border-color: var(--orange-strong);
  box-shadow: 0 0 0 4px rgba(255, 109, 68, .22);
}
.field ::placeholder { color: #A58D82; }

.form-status { margin: 0; min-height: 1.4em; font-weight: 800; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #fff; padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-meta p { margin: 0; font-size: .92rem; font-weight: 600; color: rgba(255, 255, 255, .72); }
.footer-meta p + p { margin-top: 2px; }
.footer-links a { color: #fff; font-weight: 800; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-links .link-btn { padding: 0; border: 0; background: none; font: inherit; color: #fff; font-weight: 800; cursor: pointer; }
.footer-links .link-btn:hover { text-decoration: underline; }

/* ---------- Legal document text (legal pages and the admin preview) ---------- */

.legal-body { font-size: 1.02rem; line-height: 1.65; overflow-wrap: anywhere; }
.legal-body > :first-child { margin-top: 0; }
.legal-body h2 { font-size: 1.45rem; margin: 1.8em 0 .5em; scroll-margin-top: 20px; }
.legal-body h3 { font-size: 1.15rem; margin: 1.4em 0 .4em; }
.legal-body p { margin: 0 0 1em; }
.legal-body ul, .legal-body ol { margin: 0 0 1em; padding-left: 1.4em; }
.legal-body li { margin-bottom: .35em; }
.legal-body a { color: var(--orange-deep); font-weight: 700; }
.legal-body hr { border: 0; border-top: 2.5px dashed #E3CFC5; margin: 2em 0; }
.legal-note {
  margin: 0 0 1.4em; padding: 12px 16px; border-radius: 14px;
  background: #FFF1C2; border: 2px solid #E0B000; color: #5E4100; font-weight: 600;
}
.legal-body mark.ph { background: #FFE08A; color: var(--ink); padding: 0 .2em; border-radius: 4px; font-family: ui-monospace, Menlo, monospace; font-size: .9em; }
.legal-table { overflow-x: auto; margin: 0 0 1.2em; border: 2px solid #EBDDD6; border-radius: 14px; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.45; }
.legal-table th, .legal-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1.5px solid #F1E4DD; }
.legal-table th { background: var(--orange-tint); font: 700 .9rem var(--font-display); }
.legal-table tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .legal-table table { min-width: 560px; }
}

/* ---------- Consent bar (YouTube previews) and small legal notes ---------- */

.consent-bar {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 14px 16px; background: #fff; color: var(--ink); border: var(--border); border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--ink); animation: pop .3s var(--bounce);
}
.consent-bar[hidden] { display: none; }
.consent-bar p { flex: 1 1 260px; margin: 0; font-weight: 700; font-size: .92rem; }
.consent-bar a { color: var(--orange-deep); }
.consent-bar-actions { display: flex; gap: 8px; margin-left: auto; }
.form-privacy { margin-top: 10px; text-align: center; }
.form-privacy a { color: var(--orange-deep); }

/* ---------- Video player dialog ---------- */

.player {
  width: min(1100px, 92vw, calc((88vh - 130px) * 16 / 9));
  max-width: none; max-height: none; padding: 0; overflow: visible;
  border: 0; background: transparent; color: var(--ink);
}
.player.is-vertical { width: min(440px, 92vw, calc((88vh - 130px) * 9 / 16)); }
.player::backdrop { background: rgba(35, 21, 15, .82); backdrop-filter: blur(4px); }
.player[open] { animation: pop .35s var(--bounce); }
.player-box {
  overflow: hidden; background: #fff;
  border: 3px solid var(--ink); border-radius: var(--radius-lg);
  box-shadow: 0 10px 0 var(--orange);
}
.player-media { aspect-ratio: 16 / 9; background: #000; }
.player.is-vertical .player-media { aspect-ratio: 9 / 16; }
.player-media iframe, .player-media video { width: 100%; height: 100%; border: 0; }
.player-empty {
  height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px;
  color: #fff; background: linear-gradient(135deg, #3A2218, var(--ink)); text-align: center; padding: 20px;
}
.player-empty svg { width: 56px; height: 56px; color: var(--orange); }
.player-empty strong { font: 700 1.3rem var(--font-display); }
.player-info { padding: 16px 20px 20px; display: grid; gap: 8px; }
.player-info h3 { font-size: 1.4rem; }
.player-info p { margin: 0; color: var(--ink-soft); font-weight: 600; }
.player-info p:empty { display: none; }
.player-close {
  position: absolute; z-index: 2; top: -18px; right: -12px;
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; cursor: pointer;
  color: #fff; background: var(--orange-strong);
  border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 4px 0 var(--ink);
  transition: transform .2s var(--bounce);
}
.player-close:hover { transform: rotate(90deg) scale(1.05); }
@media (max-width: 560px) { .player-close { right: -6px; top: -20px; } }
html:has(dialog[open]) { overflow: hidden; }

/* ---------- Scroll reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .7s cubic-bezier(.22, 1, .36, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html, .work-track { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .nav-cta { margin-left: auto; }
}
@media (max-width: 420px) {
  .brand-name span { display: none; } /* "Fellystar" alone, so the order button fits */
  .nav-cta { padding-inline: .9em; }
}

/* ---------- Shared controls (admin + order page) ---------- */

.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: var(--orange-tint); }
.seg label { flex: 1 1 auto; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: block; padding: .6em 1em; border-radius: 999px; text-align: center; cursor: pointer;
  font: 700 .95rem/1.2 var(--font-display); transition: background-color .15s, color .15s;
}
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--orange-strong); outline-offset: 2px; }
@media (max-width: 420px) { .seg { border-radius: 18px; } .seg span { border-radius: 14px; } }

.checks { display: grid; gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; min-height: 32px; }
.check input { width: 22px; height: 22px; accent-color: var(--orange-strong); flex: none; }

.notice { margin: 0; padding: 12px 14px; border-radius: 14px; font-weight: 700; font-size: .95rem; }
.notice-warn { background: #FFF1C2; color: #5E4100; border: 2px solid #E0B000; }

