/* The main page: one screen. Firify follows the cursor, a big "Hi! I'm Firify." sits behind it. */
body.play {
  background: #0a1028; color: #eaf2ff; overflow: hidden; height: 100vh; height: 100svh;
}
body.play .bg {
  background:
    radial-gradient(55% 55% at 50% 52%, rgba(34, 184, 204, 0.16) 0%, transparent 70%),
    radial-gradient(45% 40% at 88% 8%, rgba(242, 122, 26, 0.18) 0%, transparent 70%),
    radial-gradient(40% 40% at 8% 100%, rgba(28, 100, 176, 0.28) 0%, transparent 70%), #0a1028;
}
body.play #prog { display: none; }

/* top buttons */
body.play nav { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 16px 4vw; }
body.play .brand { color: #eaf2ff; }
body.play .links.pills { display: flex; gap: 10px; position: static; flex-direction: row; background: transparent; padding: 0; }
body.play .links.pills a {
  opacity: 1; color: #eaf2ff; font-size: 16px; font-weight: 500; padding: 11px 20px; min-height: 44px; display: inline-flex; align-items: center;
  border-radius: 99px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-decoration: none; transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
body.play .links.pills a:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px); }
body.play .links.pills a:active { transform: scale(0.96); }
body.play .btns { display: none; }

/* the big words behind the mascot */
.play-wrap { position: fixed; inset: 0; display: grid; place-items: center; overflow: hidden; }
.big-hi {
  text-align: center; font-weight: 600; letter-spacing: -0.055em; line-height: 0.88; font-size: clamp(72px, 18vw, 290px);
  color: rgba(234, 242, 255, 0.14); user-select: none; pointer-events: none;
  transform: translate(calc(var(--px, 0) * -20px), calc(var(--py, 0) * -14px)); transition: color 0.3s ease; margin-top: 4vh;
}
.big-hi span { display: block; }
.big-hi.flash { color: rgba(255, 170, 80, 0.3); }
.play-hint { position: fixed; left: 0; right: 0; bottom: 64px; text-align: center; font-size: 18px; font-weight: 500; color: #b9c6e4; transition: opacity 0.5s; pointer-events: none; }
.play-hint.gone { opacity: 0; }
.play-foot { position: fixed; left: 0; right: 0; bottom: 20px; text-align: center; font-size: 15px; color: #8fa1c8; padding: 0 16px; }
.play-foot a { color: #eaf2ff; }

/* the mascot */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; }
.buddy {
  position: fixed; left: 0; top: 0; z-index: 5; width: clamp(150px, 17vw, 230px); padding: 0; border: 0; background: none; cursor: pointer;
  will-change: transform; touch-action: none; -webkit-tap-highlight-color: transparent;
}
.buddy img { display: block; width: 100%; height: auto; pointer-events: none; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 10px 36px rgba(242, 122, 26, 0.38)); animation: bob 3s ease-in-out infinite alternate; }
.buddy:focus-visible { outline: 3px solid #5fd6e6; outline-offset: 6px; border-radius: 24px; }
.buddy.squish img { animation: squish 0.55s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes bob { from { transform: translateY(4px) rotate(-1deg); } to { transform: translateY(-10px) rotate(1.5deg); } }
@keyframes squish { 0% { transform: scale(1); } 25% { transform: scale(1.2, 0.76); } 55% { transform: scale(0.92, 1.14); } 100% { transform: scale(1); } }

@media (max-width: 860px) {
  body.play nav { flex-wrap: wrap; row-gap: 10px; padding: 12px 4vw; }
  body.play .links.pills { width: 100%; flex-wrap: wrap; gap: 8px; }
  body.play .links.pills a { font-size: 14px; padding: 8px 14px; }
  .big-hi { font-size: 24vw; margin-top: 10vh; }
  .play-hint { bottom: 100px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .buddy img, .buddy.squish img { animation: none; }
  .big-hi { transform: none; }
}

/* ---- the four inner pages match the home page: same dark background, same minimal menu with dots, no theme switch ---- */
body[data-scene='inner'] { background: #0a1028; color: #eaf2ff; }
body[data-scene='inner'] .bg {
  background:
    radial-gradient(55% 55% at 50% 52%, rgba(34, 184, 204, 0.12) 0%, transparent 70%),
    radial-gradient(45% 40% at 88% 8%, rgba(242, 122, 26, 0.18) 0%, transparent 70%),
    radial-gradient(40% 40% at 8% 100%, rgba(28, 100, 176, 0.28) 0%, transparent 70%), #0a1028;
}
body[data-scene='inner'] nav { background: rgba(10, 16, 40, 0.55); padding: 16px 4vw; justify-content: space-between; }
body[data-scene='inner'] .brand { color: #eaf2ff; }
body[data-scene='inner'] .btns { display: none; }
body[data-scene='inner'] .links { display: flex; gap: 0; align-items: center; font-size: 16px; position: static; flex-direction: row; background: transparent; padding: 0; }
body[data-scene='inner'] .links a {
  position: relative; opacity: 1; color: #eaf2ff; font-weight: 400; letter-spacing: 0.02em; padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; font-size: 16px;
  background: transparent; border: 0; text-decoration: none;
}
body[data-scene='inner'] .links a + a::before { content: '\00B7'; position: absolute; left: -3px; top: 50%; transform: translateY(-52%); color: rgba(234, 242, 255, 0.45); font-weight: 700; }
body[data-scene='inner'] .links a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px; background: #eaf2ff; transform: scaleX(0); transform-origin: left; transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
body[data-scene='inner'] .links a:hover::after, body[data-scene='inner'] .links a.on::after, body[data-scene='inner'] .links a:focus-visible::after { transform: scaleX(1); }
body[data-scene='inner'] .links a:hover, body[data-scene='inner'] .links a.on { color: #eaf2ff; }
@media (max-width: 860px) {
  body[data-scene='inner'] nav { flex-wrap: wrap; justify-content: center; row-gap: 4px; }
  body[data-scene='inner'] .links { display: flex; flex-wrap: wrap; justify-content: center; width: 100%; }
  body[data-scene='inner'] .links a { font-size: 14px; padding: 6px 10px; }
  body[data-scene='inner'] .links a + a::before { left: -4px; }
  body[data-scene='inner'] .links a::after { left: 10px; right: 10px; bottom: 2px; }
}

/* inner pages, second pass: no visible bar (a fade from the page colour instead), and the logo and menu drop in just like the home page */
body[data-scene='inner'] nav {
  background: linear-gradient(180deg, #0a1028 0%, rgba(10, 16, 40, 0.88) 55%, rgba(10, 16, 40, 0) 100%);
  -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; box-shadow: none; padding-bottom: 30px;
}
body[data-scene='inner'] .brand, body[data-scene='inner'] .links a { animation: dropIn 0.75s cubic-bezier(0.2, 0.9, 0.3, 1) backwards; }
body[data-scene='inner'] .brand { animation-delay: 0.1s; }
body[data-scene='inner'] .links a:nth-child(1) { animation-delay: 0.2s; }
body[data-scene='inner'] .links a:nth-child(2) { animation-delay: 0.28s; }
body[data-scene='inner'] .links a:nth-child(3) { animation-delay: 0.36s; }
body[data-scene='inner'] .links a:nth-child(4) { animation-delay: 0.44s; }
body[data-scene='inner'] .links a:nth-child(5) { animation-delay: 0.52s; }
@media (prefers-reduced-motion: reduce) { body[data-scene='inner'] .brand, body[data-scene='inner'] .links a { animation: none; } }

/* inner pages, third pass: the top bar is exactly the home page's: no background at all (the old dark-theme rule was still painting a panel), and it scrolls away with the page */
html[data-theme] body[data-scene='inner'] nav, :root[data-theme='dark'] body[data-scene='inner'] nav {
  position: absolute; background: transparent; background-image: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 16px 4vw;
}

/* arriving from the home page zoom: start on the same navy and fade the page in */
html[data-theme='dark'] { background: #0a1028; }
html.arrive body { animation: arriveIn 0.7s ease-out both; }
@keyframes arriveIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html.arrive body { animation: none; } }

/* ---- About Me: self-introduction hero. The mascot video sits on the left, the words on the right, soft colour shapes behind.
   The video's black is removed with a screen blend, so <main> must not form its own stacking context on this page. ---- */
body.about-page main { position: static; z-index: auto; }
.about-hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2vw; padding: 14vh 6vw 6vh; max-width: 1380px; margin: 0 auto; }
.blob { position: absolute; pointer-events: none; z-index: 0; }
.blob-a { top: -9vh; left: -10vw; width: 24vw; height: 18vw; border-radius: 58% 42% 63% 37% / 44% 58% 42% 56%; background: linear-gradient(145deg, rgba(242, 122, 26, 0.55), rgba(232, 162, 56, 0.18)); filter: blur(2px); }
.blob-b { right: -16vw; bottom: -10vh; width: 50vw; height: 38vw; border-radius: 46% 54% 38% 62% / 58% 40% 60% 42%; background: linear-gradient(200deg, rgba(34, 184, 204, 0.4), rgba(28, 100, 176, 0.22)); }
.about-art { position: relative; z-index: auto; height: min(78vh, 640px); display: grid; place-items: center; }
.about-art .disc { display: none; }
.about-vid { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 56% 50%; mix-blend-mode: screen; filter: contrast(1.12); pointer-events: none; }
.about-copy { position: relative; z-index: auto; max-width: 520px; }
.about-copy .hello { font-size: clamp(18px, 2vw, 26px); color: #b9c6e4; margin-bottom: 4px; }
.about-copy h1 { font-size: clamp(44px, 6vw, 84px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: #eaf2ff; }
.about-copy h1 b { color: #5fd6e6; }
.about-copy .role { margin: 10px 0 22px; font-size: clamp(18px, 2vw, 26px); font-weight: 300; color: #ffb070; }
.about-copy .intro { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; color: #b9c6e4; margin-bottom: 14px; max-width: 46ch; }
.about-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 24px; }
.about-cta .mail { color: #eaf2ff; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(234, 242, 255, 0.4); font-size: 16px; }
.about-cta .mail:hover { text-decoration-color: #eaf2ff; }
.about-copy .soc { margin-top: 18px; color: #8fa0c6; font-size: 14px; }
.about-copy .soc b { color: #eaf2ff; font-weight: 500; }
@media (max-width: 860px) {
  .about-hero { grid-template-columns: 1fr; padding-top: 16vh; gap: 0; }
  .about-art { height: 46vh; }
  .about-copy { max-width: none; }
}

/* ---- neon "Get in touch" button: glowing cyan tube outline, glowing text, and a second neon ring around it that pulses softly ---- */
.about-cta .btn.neon-btn, :root[data-theme='dark'] .about-cta .btn.neon-btn {
  position: relative; margin: 10px; padding: 14px 30px; border-radius: 99px; background: rgba(255, 138, 36, 0.06); color: #ffe9d2; font-weight: 600; letter-spacing: 0.02em;
  border: 2px solid #ff8a24; text-shadow: 0 0 8px rgba(255, 138, 36, 0.9);
  box-shadow: 0 0 8px rgba(255, 138, 36, 0.8), 0 0 22px rgba(255, 138, 36, 0.45), inset 0 0 12px rgba(255, 138, 36, 0.35);
  transition: box-shadow 0.25s, background 0.25s, color 0.25s;
}
.about-cta .btn.neon-btn::before {
  content: ''; position: absolute; inset: -10px; border-radius: 99px; pointer-events: none;
  border: 1.5px solid rgba(255, 138, 36, 0.75); box-shadow: 0 0 10px rgba(255, 138, 36, 0.7), 0 0 26px rgba(255, 138, 36, 0.3), inset 0 0 10px rgba(255, 138, 36, 0.25);
  animation: neonRing 2.6s ease-in-out infinite;
}
@keyframes neonRing { 0%, 100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
.about-cta .btn.neon-btn:hover { background: rgba(255, 138, 36, 0.2); color: #fff; box-shadow: 0 0 12px #ff8a24, 0 0 34px rgba(255, 138, 36, 0.65), inset 0 0 16px rgba(255, 138, 36, 0.5); }
@media (prefers-reduced-motion: reduce) { .about-cta .btn.neon-btn::before { animation: none; } }

/* neon light that travels around the button: a bright comet with a fading tail runs along the outer ring (replaces the steady pulse) */
@property --neonA { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.about-cta .btn.neon-btn::before, .about-cta .btn.neon-btn::after {
  content: ''; position: absolute; inset: -10px; border-radius: 99px; pointer-events: none; padding: 2px; animation: neonSpin 3.2s linear infinite;
  background: conic-gradient(from var(--neonA), rgba(255, 138, 36, 0.0) 0%, rgba(255, 138, 36, 0.0) 52%, rgba(255, 138, 36, 0.55) 80%, #ffe2bd 98%, rgba(255, 138, 36, 0.0) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  border: 0; box-shadow: none; opacity: 1; transform: none;
}
.about-cta .btn.neon-btn::after { filter: blur(7px); padding: 4px; opacity: 0.9; }
@keyframes neonSpin { to { --neonA: 360deg; } }
@media (prefers-reduced-motion: reduce) { .about-cta .btn.neon-btn::before, .about-cta .btn.neon-btn::after { animation: none; } }

/* social icons: round glass buttons, white icons, orange on hover */
.soc-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.soc-i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.soc-i i { display: block; width: 20px; height: 20px; background: #eaf2ff; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; transition: background 0.2s; }
a.soc-i:hover { background: rgba(255, 138, 36, 0.16); border-color: #ff8a24; transform: translateY(-3px); box-shadow: 0 6px 18px rgba(255, 138, 36, 0.35); }
a.soc-i:hover i { background: #ffb070; }
a.soc-i:focus-visible { outline: 3px solid #ff8a24; outline-offset: 3px; }
.ic-tiktok { --i: url(icons/tiktok.svg); } .ic-instagram { --i: url(icons/instagram.svg); } .ic-threads { --i: url(icons/threads.svg); } .ic-facebook { --i: url(icons/facebook.svg); } .ic-youtube { --i: url(icons/youtube.svg); }

/* social icons in their own brand colours (TikTok and Threads are black/white by brand, so TikTok gets its cyan and pink edges and Threads stays white) */
.soc-i i { width: 22px; height: 22px; }
.soc-i .ic-facebook { background: #1877f2; }
.soc-i .ic-youtube { background: #ff0000; }
.soc-i .ic-instagram { background: linear-gradient(45deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%); }
.soc-i .ic-tiktok { background: #fff; filter: drop-shadow(-1.2px -1px 0 #25f4ee) drop-shadow(1.2px 1px 0 #fe2c55); }
.soc-i .ic-threads { background: #fff; }

/* social icons as app-style tiles (like the real app icons): coloured rounded square with a white glyph */
.soc-row { gap: 14px; }
.soc-i { width: 48px; height: 48px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); }
.soc-i i { width: 28px; height: 28px; background: #fff; filter: none; }
.soc-i:has(.ic-instagram) { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); border-color: transparent; }
.soc-i:has(.ic-tiktok) { background: #000; }
.soc-i:has(.ic-threads) { background: #000; }
.soc-i:has(.ic-facebook) { background: #1877f2; border-color: transparent; }
.soc-i:has(.ic-youtube) { background: #fff; border-color: transparent; }
.soc-i .ic-instagram, .soc-i .ic-facebook, .soc-i .ic-threads { background: #fff; }
.soc-i .ic-tiktok { background: #fff; filter: drop-shadow(-1.3px -1px 0 #25f4ee) drop-shadow(1.3px 1px 0 #fe2c55); }
.soc-i .ic-youtube { background: #ff0000; }

/* fix: the Instagram gradient repeated into the 1px border and left thin coloured edges; no border on the coloured tiles, no repeat */
.soc-i { background-repeat: no-repeat; background-origin: border-box; background-clip: border-box; }
.soc-i:has(.ic-instagram), .soc-i:has(.ic-facebook), .soc-i:has(.ic-youtube) { border: 0; }

/* ---- story carousel: one part at a time, shifts by itself every 8 seconds; Next, Back, dots, swipe and arrow keys also work ---- */
.story { position: relative; margin-top: 26px; max-width: 760px; outline: none; }
.story:focus-visible { outline: 2px solid #ff8a24; outline-offset: 10px; border-radius: 16px; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateX(26px); transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.55s; pointer-events: none; }
.slide.from-l { transform: translateX(-26px); }
.slide.on { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; pointer-events: auto; }
.slide small { display: block; color: #ff8a24; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.slide h3 { font-size: clamp(28px, 4vw, 46px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.08; color: #eaf2ff; margin-bottom: 18px; }
.slide h3 b { color: #5fd6e6; font-weight: 600; }
.slide p { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; color: #b9c6e4; max-width: 56ch; }
.story-bar { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.s-arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #eaf2ff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22); transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.s-arrow svg { width: 22px; height: 22px; }
.s-arrow:hover { background: rgba(255, 138, 36, 0.18); border-color: #ff8a24; transform: scale(1.08); }
.s-arrow:focus-visible { outline: 3px solid #ff8a24; outline-offset: 3px; }
.dots { display: flex; gap: 10px; align-items: center; }
.dot { position: relative; width: 10px; height: 10px; padding: 0; border-radius: 99px; border: 0; cursor: pointer; background: rgba(234, 242, 255, 0.28); transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s; overflow: hidden; }
.dot::after { content: ''; position: absolute; inset: 0; background: #ff8a24; transform: scaleX(0); transform-origin: left; }
.dot.on { width: 38px; }
.dot.on::after { transform: scaleX(1); }
.story.run .dot.on::after { transform: scaleX(0); animation: dotFill 10s linear forwards; }
.story.hold .dot.on::after { animation-play-state: paused; }
@keyframes dotFill { to { transform: scaleX(1); } }
.dot:focus-visible { outline: 3px solid #ff8a24; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .slide, .dot { transition: none; } }

/* ---- story: text on the left, a short looping mascot clip on the right that changes with each part ---- */
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 4vw; align-items: center; margin-top: 10px; }
.story-grid .story { max-width: 600px; }
.story-art { position: relative; width: 100%; aspect-ratio: 4 / 3; }
.s-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.55s ease; mix-blend-mode: screen; filter: contrast(1.12); pointer-events: none; }
.s-vid.on { opacity: 1; }
.story.run .dot.on::after { animation-duration: 10s; }
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; gap: 6px; }
  .story-art { order: -1; max-width: 340px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .s-vid { transition: none; } }

/* story clips, bigger */
.story-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 660px); gap: 2vw; }
.story-grid .story { max-width: 540px; }
@media (max-width: 1100px) { .story-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); } }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } .story-art { max-width: 420px; } }

/* About: each of these blocks fills one screen on its own, content centred (like the top of the page) */
section.screen { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 11vh 6vw 7vh; }
section.screen .wrap + .wrap { margin-top: 6vh; }
section.screen h2 { font-size: clamp(34px, 4.6vw, 60px); }
@media (max-width: 860px) { section.screen { min-height: 0; padding: 12vh 6vw 6vh; } }

/* one screen with three short blocks: what I believe, how I work, who I help */
.combo .wrap + .wrap { margin-top: 3.2vh; }
.combo h2 { font-size: clamp(26px, 3.2vw, 40px); margin: 0; }
.combo .card { padding: 16px 20px; }
.combo .card h3 { font-size: 18px; margin-bottom: 6px; }
.combo .card p { font-size: 14.5px; line-height: 1.45; }
.combo .grid3, .combo .steps { margin-top: 14px !important; gap: 14px; }
.who-band { display: grid; grid-template-columns: auto 1fr; gap: 3vw; align-items: center; }
.who-body { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.who-body .body-text { font-size: 16px; max-width: 52ch; margin: 0; }
.who-body .more { margin: 0; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .who-band { grid-template-columns: 1fr; gap: 10px; } }

/* narrower windows: do not crop the sides of the hero video (the mascot was cut off at the left edge); show the whole frame, a little enlarged */
@media (max-width: 1200px) and (min-width: 861px) {
  .about-vid { object-fit: contain; transform: scale(1.8); }
}

/* ---- page change from About Me: the old page starts to lift, hesitates and drops back a little, then sweeps all the way up, revealing the new page beneath ---- */
@view-transition { navigation: auto; }
::view-transition-group(root) { animation-duration: 1.25s; }
::view-transition-image-pair(root) { isolation: auto; }
::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; }
:root:active-view-transition-type(slide-up)::view-transition-old(root) { animation: vtLift 1.25s linear both; z-index: 2; }
:root:active-view-transition-type(slide-up)::view-transition-new(root) { animation: vtRise 1.25s linear both; z-index: 1; }
@keyframes vtLift {
  0%   { transform: translateY(0); animation-timing-function: cubic-bezier(0.3, 0, 0.4, 1); }
  20%  { transform: translateY(-5%); animation-timing-function: cubic-bezier(0.5, 0, 0.6, 1); }
  36%  { transform: translateY(2.2%); animation-timing-function: cubic-bezier(0.55, 0, 0.25, 1); }
  100% { transform: translateY(-101%); }
}
@keyframes vtRise {
  0%, 30% { transform: translateY(7%) scale(0.985); filter: brightness(0.7); animation-timing-function: cubic-bezier(0.55, 0, 0.25, 1); }
  100% { transform: none; filter: none; }
}

/* ---- Product page: short title at the top, five category tabs, one category shown at a time ---- */
section.page-hero.compact { min-height: 0; justify-content: flex-start; padding: 15vh 6vw 2vh; }
.ptabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ptabs button { font: inherit; font-size: 15px; font-weight: 500; color: #eaf2ff; cursor: pointer; padding: 10px 18px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.2); transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s; }
.ptabs button:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }
.ptabs button.on { background: #eaf2ff; color: #0a1028; border-color: #eaf2ff; }
.ptabs button:focus-visible { outline: 3px solid #ff8a24; outline-offset: 3px; }
.ppanel[hidden] { display: none; }
.ppanel.swap { animation: ppIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes ppIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
section.prod { min-height: 0; justify-content: flex-start; padding: 4vh 6vw 4vh; }
.ppanels { min-height: 60vh; padding-bottom: 8vh; }
@media (prefers-reduced-motion: reduce) { .ppanel.swap { animation: none; } }

/* ---- Landing Page tab: the picture on the right is a cover-flow of designs; the column is wider to give it room ---- */
.lp-cols { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.55fr) !important; gap: 3vw !important; align-items: center; }
.lp-wrap { min-width: 0; }
.lp-stage { position: relative; width: 100%; aspect-ratio: 16 / 9.2; container-type: inline-size; perspective: 1300px; perspective-origin: 50% 40%; overflow: visible; }
.lp-card {
  --d: 0; --s: 0; --a: 0;
  position: absolute; left: 50%; top: 40%; width: 52cqw; aspect-ratio: 16 / 10; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: #111a3a;
  transform: translate(-50%, -50%) translateX(calc(var(--s) * (24cqw + (var(--a) - 1) * 10cqw))) translateZ(calc(var(--a) * -100px)) rotateY(calc(var(--s) * -50deg));
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease, filter 0.5s ease;
  opacity: calc(1 - var(--a) * 0.16); filter: brightness(calc(1 - var(--a) * 0.18));
  -webkit-box-reflect: below 6px linear-gradient(to bottom, transparent 60%, rgba(255, 255, 255, 0.2));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); -webkit-tap-highlight-color: transparent;
}
.lp-card.mid { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.18); }
.lp-card.far { opacity: 0; pointer-events: none; }
.lp-card:focus-visible { outline: 3px solid #ff8a24; outline-offset: 4px; }
.lp-card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.lp-mock { position: relative; width: 100%; height: 100%; padding: 6% 7%; display: flex; flex-direction: column; gap: 5%; background: linear-gradient(160deg, #f6f8ff, #dfe6fb); pointer-events: none; }
.lp-mock .m-bar { display: flex; gap: 3%; align-items: center; height: 8%; }
.lp-mock .m-bar b { width: 4%; aspect-ratio: 1; border-radius: 50%; background: rgba(16, 31, 77, 0.25); }
.lp-mock .m-h { display: block; height: 11%; width: 66%; border-radius: 99px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.lp-mock .m-h.s { height: 6%; width: 44%; background: rgba(16, 31, 77, 0.2); }
.lp-mock .m-btn { display: block; height: 11%; width: 26%; border-radius: 99px; background: var(--c1); box-shadow: 0 4px 10px rgba(16, 31, 77, 0.25); }
.lp-mock .m-row { display: flex; gap: 4%; flex: 1; margin-top: 2%; }
.lp-mock .m-row i { flex: 1; border-radius: 8px; background: linear-gradient(160deg, var(--c2), var(--c1)); opacity: 0.85; }
.lp-mock em { position: absolute; right: 7%; top: 12%; font-style: normal; font-weight: 700; font-size: 11cqw; line-height: 1; color: rgba(16, 31, 77, 0.1); letter-spacing: -0.04em; }
.lp-bar { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 7%; }
.lp-cap { min-width: 14ch; text-align: center; color: #b9c6e4; font-size: 15px; }
.lp-modal { border: 0; padding: 0; width: min(920px, 92vw); max-height: 90vh; border-radius: 18px; background: #0f1a3d; color: #eaf2ff; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7); overflow: auto; }
.lp-modal::backdrop { background: rgba(4, 8, 24, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lp-modal[open] { animation: lpPop 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes lpPop { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
.lp-x { position: absolute; top: 12px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(10, 16, 40, 0.7); color: #eaf2ff; font-size: 24px; line-height: 1; cursor: pointer; }
.lp-x:hover { background: rgba(255, 138, 36, 0.25); border-color: #ff8a24; }
.lp-m-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; }
.lp-m-media { background: #060b1f; display: grid; place-items: center; min-height: 260px; }
.lp-m-media video { width: 100%; height: 100%; max-height: 520px; object-fit: contain; background: #000; }
.lp-novid { display: grid; place-items: center; gap: 12px; color: #8fa0c6; text-align: center; padding: 20px; }
.lp-novid svg { width: 54px; height: 54px; fill: rgba(234, 242, 255, 0.55); padding: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); }
.lp-m-info { padding: 30px 28px 28px; }
.lp-m-info h3 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 400; letter-spacing: -0.03em; margin: 6px 0 12px; }
.lp-m-info p { color: #b9c6e4; line-height: 1.6; }
.lp-m-info .feature-list { margin: 16px 0 6px; }
.lp-price { margin-top: 10px; color: #ffb070 !important; font-weight: 600; }
.lp-m-info .more { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
  .lp-cols { grid-template-columns: 1fr !important; }
  .lp-m-body { grid-template-columns: 1fr; }
  .lp-modal { max-height: 94vh; }
}
@media (prefers-reduced-motion: reduce) { .lp-card { transition: none; } .lp-modal[open] { animation: none; } }

.lp-wrap { overflow: hidden; padding-bottom: 4px; }
.lp-modal { margin: auto; inset: 0; position: fixed; height: fit-content; }

/* Landing showcase in a proper box; labels you can read; no faint watermark */
.lp-wrap { background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 22px; padding: 26px 22px 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08); overflow: hidden; }
.lp-stage { aspect-ratio: 16 / 8.6; }
.lp-label { position: absolute; left: 10px; bottom: 10px; z-index: 3; padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(10, 16, 40, 0.82); letter-spacing: 0.01em; pointer-events: none; }
.lp-card { overflow: hidden; }
.lp-bar { margin-top: 3%; }
.lp-cap { color: #eaf2ff; font-weight: 500; }

/* ---- Product page on ONE screen (laptop and desktop): title, category buttons and the open category all fit without scrolling. Small or short screens scroll as normal. ---- */
.subtabs { display: flex; gap: 8px; padding: 0 6vw; margin-top: 4px; }
.subtabs button { font: inherit; font-size: 14px; color: #eaf2ff; cursor: pointer; padding: 7px 14px; border-radius: 99px; background: transparent; border: 1px solid rgba(255, 255, 255, 0.22); transition: background 0.2s, color 0.2s; }
.subtabs button.on { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.5); }
.subtabs button:focus-visible { outline: 3px solid #ff8a24; outline-offset: 3px; }
section.prod[hidden] { display: none; }
body.prod-page footer { display: none; }
@media (min-width: 861px) and (min-height: 680px) {
  html:has(body.prod-page), body.prod-page { height: 100%; overflow: hidden; }
  body.prod-page main { position: static; height: 100vh; height: 100svh; display: flex; flex-direction: column; }
  body.prod-page section.page-hero.compact { flex: none; padding: 11vh 6vw 0; }
  body.prod-page .page-hero h1 { font-size: clamp(34px, 4.4vw, 62px); }
  body.prod-page .page-hero .lead { margin: 6px 0 0; max-width: none; font-size: 17px; }
  body.prod-page .ptabs { margin-top: 14px; }
  body.prod-page .ppanels { flex: 1; min-height: 0; padding: 0; overflow: hidden; }
  body.prod-page .ppanel { height: 100%; }
  body.prod-page section.prod { height: 100%; min-height: 0; padding: 2.2vh 6vw 2vh; }
  body.prod-page section.prod .wrap { height: 100%; display: flex; flex-direction: column; }
  body.prod-page section.prod h2 { font-size: clamp(26px, 3.1vw, 42px); }
  body.prod-page section.prod .cols { margin-top: 12px !important; flex: 1; min-height: 0; align-items: center; }
  body.prod-page .body-text { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.5; }
  body.prod-page .feature-list li { font-size: 15px; }
  body.prod-page .card { padding: 18px 22px; }
  body.prod-page .card.demo input { font-size: 38px; }
  body.prod-page .grid3 { margin-top: 14px !important; }
  body.prod-page .more { margin-top: 14px; }
  .lp-wrap { padding: 16px 16px 12px; }
  .lp-stage { aspect-ratio: auto; height: clamp(230px, 40vh, 430px); container-type: size; }
  .lp-card { width: min(52cqw, 99cqh); }
  .lp-bar { margin-top: 6px; }
}
.subtabs { max-width: 1180px; margin: 6px auto 0; box-sizing: content-box; padding: 0 6vw; width: calc(100% - 12vw); }

/* landing tab: both columns start at the same top line; the words sit right under the heading */
@media (min-width: 861px) and (min-height: 680px) {
  body.prod-page section.prod .cols.lp-cols { align-items: start; margin-top: 4px !important; flex: none; }
  body.prod-page .lp-cols .body-text { margin-top: 10px; }
  body.prod-page .lp-cols h2 { margin: 0; }
  .lp-stage { height: clamp(240px, 43vh, 460px); }
}

/* every category: heading and words together at the top left, the picture/card on the right starting at the same line */
@media (min-width: 861px) and (min-height: 680px) {
  body.prod-page section.prod .cols.top-cols { align-items: start; margin-top: 4px !important; flex: none; }
  body.prod-page .top-cols h2 { margin: 0; }
  body.prod-page .top-cols .body-text { margin-top: 10px; }
  body.prod-page .top-cols .reveal > .body-text:first-child { margin-top: 10px; }
  body.prod-page section.prod .wrap > h2 + .body-text { margin-top: 10px !important; }
  body.prod-page .ppanel .grid3 { margin-top: 18px !important; }
}

/* ---- Product categories: the panel turns like the side of a box when you pick another category ---- */
.ppanels { perspective: 2600px; position: relative; }
.ppanels.rotating { overflow: hidden; }
.ppanels.rotating .ppanel { backface-visibility: hidden; will-change: transform; }
.ppanels.rotating .ppanel.cube-out { position: absolute; inset: 0; width: 100%; pointer-events: none; }
.ppanel.cube-out.fwd { animation: cubeOutF 0.8s cubic-bezier(0.65, 0, 0.35, 1) both; }
.ppanel.cube-in.fwd { animation: cubeInF 0.8s cubic-bezier(0.65, 0, 0.35, 1) both; }
.ppanel.cube-out.back { animation: cubeOutB 0.8s cubic-bezier(0.65, 0, 0.35, 1) both; }
.ppanel.cube-in.back { animation: cubeInB 0.8s cubic-bezier(0.65, 0, 0.35, 1) both; }
@keyframes cubeOutF { from { transform: translateZ(calc(var(--w) * -0.5)) rotateY(0) translateZ(calc(var(--w) * 0.5)); opacity: 1; } to { transform: translateZ(calc(var(--w) * -0.5)) rotateY(-90deg) translateZ(calc(var(--w) * 0.5)); opacity: 0.3; } }
@keyframes cubeInF { from { transform: translateZ(calc(var(--w) * -0.5)) rotateY(90deg) translateZ(calc(var(--w) * 0.5)); opacity: 0.3; } to { transform: translateZ(calc(var(--w) * -0.5)) rotateY(0) translateZ(calc(var(--w) * 0.5)); opacity: 1; } }
@keyframes cubeOutB { from { transform: translateZ(calc(var(--w) * -0.5)) rotateY(0) translateZ(calc(var(--w) * 0.5)); opacity: 1; } to { transform: translateZ(calc(var(--w) * -0.5)) rotateY(90deg) translateZ(calc(var(--w) * 0.5)); opacity: 0.3; } }
@keyframes cubeInB { from { transform: translateZ(calc(var(--w) * -0.5)) rotateY(-90deg) translateZ(calc(var(--w) * 0.5)); opacity: 0.3; } to { transform: translateZ(calc(var(--w) * -0.5)) rotateY(0) translateZ(calc(var(--w) * 0.5)); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ppanel.cube-out, .ppanel.cube-in { animation: none; } }

/* ---- Product panels keep their own graphics layer, so the box turn does not have to build one on its first frame ---- */
.ppanel { will-change: transform, opacity; backface-visibility: hidden; }

/* ---- Product page cameo: the mascot wanders across the page, big, behind the text and the carousel. The clips have a black background, so the layer blends with "screen" and nothing between it and the page may create a stacking context. ---- */
#cameo { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; mix-blend-mode: screen; }
#cameo .cm { position: absolute; left: 0; top: 0; will-change: transform; }
#cameo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: contrast(1.12); -webkit-mask-image: radial-gradient(ellipse 40% 62% at 50% 52%, #000 76%, transparent 100%); mask-image: radial-gradient(ellipse 40% 62% at 50% 52%, #000 76%, transparent 100%); }
body.prod-page nav { z-index: 6; }
body.prod-page main { position: relative; z-index: 1; }
@media (max-width: 860px) { #cameo { display: none; } }

/* ---- Product to Pricing (and back): the whole page flips over like a card, top to bottom. Forward flips one way, back flips the other. ---- */
:root:active-view-transition-type(card-flip-fwd)::view-transition-group(root),
:root:active-view-transition-type(card-flip-back)::view-transition-group(root) { animation-duration: 0.9s; }
:root:active-view-transition-type(card-flip-fwd)::view-transition-image-pair(root),
:root:active-view-transition-type(card-flip-back)::view-transition-image-pair(root) { perspective: 2400px; }
:root:active-view-transition-type(card-flip-fwd)::view-transition-old(root) { animation: flipOutF 0.9s cubic-bezier(0.65, 0, 0.35, 1) both; backface-visibility: hidden; }
:root:active-view-transition-type(card-flip-fwd)::view-transition-new(root) { animation: flipInF 0.9s cubic-bezier(0.65, 0, 0.35, 1) both; backface-visibility: hidden; }
:root:active-view-transition-type(card-flip-back)::view-transition-old(root) { animation: flipOutB 0.9s cubic-bezier(0.65, 0, 0.35, 1) both; backface-visibility: hidden; }
:root:active-view-transition-type(card-flip-back)::view-transition-new(root) { animation: flipInB 0.9s cubic-bezier(0.65, 0, 0.35, 1) both; backface-visibility: hidden; }
@keyframes flipOutF { from { transform: translateZ(-50vh) rotateX(0) translateZ(50vh); opacity: 1; } to { transform: translateZ(-50vh) rotateX(90deg) translateZ(50vh); opacity: 0.3; } }
@keyframes flipInF  { from { transform: translateZ(-50vh) rotateX(-90deg) translateZ(50vh); opacity: 0.3; } to { transform: translateZ(-50vh) rotateX(0) translateZ(50vh); opacity: 1; } }
@keyframes flipOutB { from { transform: translateZ(-50vh) rotateX(0) translateZ(50vh); opacity: 1; } to { transform: translateZ(-50vh) rotateX(-90deg) translateZ(50vh); opacity: 0.3; } }
@keyframes flipInB  { from { transform: translateZ(-50vh) rotateX(90deg) translateZ(50vh); opacity: 0.3; } to { transform: translateZ(-50vh) rotateX(0) translateZ(50vh); opacity: 1; } }

/* ---- Pricing and Contact Me: the same short title at the top as the Product page, no empty space above it ---- */
.page-hero.compact h1 { font-size: clamp(34px, 4.4vw, 62px); }
.page-hero.compact .lead { margin: 6px 0 0; max-width: none; font-size: 17px; }
.page-hero.compact + section.tight { padding-top: 5vh; }

/* ---- Product carousel: the arrows stay in the same place whatever the caption says, so fast clicking never misses ---- */
.lp-bar { gap: 14px; }
.lp-cap { flex: 0 0 min(330px, 64%); width: min(330px, 64%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; user-select: none; -webkit-user-select: none; }
.lp-bar .s-arrow { flex: none; user-select: none; -webkit-user-select: none; touch-action: manipulation; }

/* ---- Product pop-up buttons: all the same size, in two even columns. Orange clay buttons, and a neon-ring Contact me ---- */
.lp-m-info .more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; margin: 22px 0 0; padding: 8px 6px 4px; }
.lp-m-info .more .btn { width: 100%; min-height: 56px; padding: 0 14px; border-radius: 28px; font-size: 15px; font-weight: 600; white-space: nowrap; text-align: center; }
/* claymorphism: soft, puffy, orange, lit from the top left */
.lp-m-info .btn.clay { border: 0; color: #3a1a02; background: linear-gradient(145deg, #ffb066, #f27a1a 58%, #e5690d);
  box-shadow: inset 5px 6px 10px rgba(255, 255, 255, 0.5), inset -6px -9px 14px rgba(150, 62, 0, 0.5), 0 12px 22px rgba(0, 0, 0, 0.38), 0 3px 0 rgba(180, 84, 8, 0.65); transition: transform 0.2s, box-shadow 0.2s, filter 0.2s; }
.lp-m-info .btn.clay:hover { transform: translateY(-3px); filter: brightness(1.06); box-shadow: inset 5px 6px 10px rgba(255, 255, 255, 0.55), inset -6px -9px 14px rgba(150, 62, 0, 0.45), 0 16px 26px rgba(0, 0, 0, 0.42), 0 3px 0 rgba(180, 84, 8, 0.65); }
.lp-m-info .btn.clay:active { transform: translateY(1px) scale(0.98); box-shadow: inset 6px 8px 14px rgba(150, 62, 0, 0.55), inset -3px -4px 8px rgba(255, 255, 255, 0.3), 0 4px 8px rgba(0, 0, 0, 0.3); }
.lp-m-info .btn.clay:focus-visible, .lp-m-info .btn.neon-btn:focus-visible { outline: 3px solid #eaf2ff; outline-offset: 4px; }
/* the same glowing orange ring that travels around the About Me button */
.lp-m-info .btn.neon-btn { position: relative; background: rgba(255, 138, 36, 0.06); color: #ffe9d2; border: 2px solid #ff8a24; text-shadow: 0 0 8px rgba(255, 138, 36, 0.9);
  box-shadow: 0 0 8px rgba(255, 138, 36, 0.8), 0 0 22px rgba(255, 138, 36, 0.45), inset 0 0 12px rgba(255, 138, 36, 0.35); transition: box-shadow 0.25s, background 0.25s, color 0.25s, transform 0.2s; }
.lp-m-info .btn.neon-btn:hover { background: rgba(255, 138, 36, 0.2); color: #fff; box-shadow: 0 0 12px #ff8a24, 0 0 34px rgba(255, 138, 36, 0.65), inset 0 0 16px rgba(255, 138, 36, 0.5); }
.lp-m-info .btn.neon-btn::before, .lp-m-info .btn.neon-btn::after {
  content: ''; position: absolute; inset: -9px; border-radius: 99px; pointer-events: none; padding: 2px; animation: neonSpin 3.2s linear infinite;
  background: conic-gradient(from var(--neonA), rgba(255, 138, 36, 0) 0%, rgba(255, 138, 36, 0) 52%, rgba(255, 138, 36, 0.55) 80%, #ffe2bd 98%, rgba(255, 138, 36, 0) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.lp-m-info .btn.neon-btn::after { filter: blur(7px); padding: 4px; opacity: 0.9; }
@media (prefers-reduced-motion: reduce) { .lp-m-info .btn.neon-btn::before, .lp-m-info .btn.neon-btn::after { animation: none; } }
@media (max-width: 520px) { .lp-m-info .more { grid-template-columns: 1fr; } }

/* ---- Pop-up with several looks (Simple eCommerce Design): choose a look above the video ---- */
.lp-m-media .lp-looks { display: flex; flex-direction: column; width: 100%; height: 100%; background: #060b1f; }
.lp-m-media .lp-chips { flex: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px 10px; }
.lp-m-media .lp-chip { font: inherit; font-size: 13px; font-weight: 600; color: #eaf2ff; cursor: pointer; padding: 6px 12px 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.2); display: inline-flex; flex-direction: column; align-items: center; line-height: 1.15; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.lp-m-media .lp-chip small { font-size: 10px; font-weight: 500; opacity: 0.65; letter-spacing: 0.03em; }
.lp-m-media .lp-chip:hover { background: rgba(255, 138, 36, 0.18); border-color: #ff8a24; }
.lp-m-media .lp-chip.on { background: linear-gradient(145deg, #ffb066, #f27a1a); border-color: transparent; color: #3a1a02; box-shadow: inset 2px 3px 5px rgba(255, 255, 255, 0.45), inset -2px -3px 6px rgba(150, 62, 0, 0.4); }
.lp-m-media .lp-chip.on small { opacity: 0.8; }
.lp-m-media .lp-chip:focus-visible { outline: 3px solid #eaf2ff; outline-offset: 2px; }
.lp-m-media .lp-looks video { flex: 1; min-height: 0; width: 100%; height: auto; max-height: none; object-fit: contain; background: #000; }

/* a category with a single card shows it bigger */
.lp-stage.single .lp-card { width: min(66cqw, 124cqh); }

/* ---- Pop-up video fills its box edge to edge (the videos are recorded in the same shape), and the look chips are one size in a tidy grid ---- */
.lp-m-media video { object-fit: cover; max-height: none; }
.lp-m-media .lp-looks video { object-fit: cover; }
.lp-m-media .lp-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px 14px 10px; }
.lp-m-media .lp-chip { width: 100%; height: 46px; padding: 0 6px; border-radius: 23px; justify-content: center; white-space: nowrap; overflow: hidden; }
.lp-m-media .lp-chip small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .lp-m-media .lp-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* About Me hero: the soft glowing blobs may not stick out past the screen edge on a phone (clip does not create a stacking context, so the mascot video still blends) */
/* Clip at the SCREEN edge, not at the hero box: the hero is only 1380 px wide, so clipping there cut the blobs off in a straight line on wide screens. */
body.about-page main { overflow-x: clip; }
@media (max-width: 1380px) { body.about-page .about-hero { overflow-x: clip; } }
/* the story slides wait 26 px to the side before sliding in; that hidden shift must not widen the page on a phone */
.slides { overflow-x: clip; }

/* Pricing FAQ */
.faq{display:grid;gap:12px;max-width:820px}
.faq details{border:1px solid var(--line,rgba(255,255,255,.14));border-radius:16px;padding:0 20px;background:rgba(255,255,255,.04)}
.faq summary{cursor:pointer;list-style:none;min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:16px;font-weight:600;font-size:17px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:24px;line-height:1;opacity:.7;flex:none}
.faq details[open] summary::after{content:"\2212"}
.faq details p{margin:0 0 18px;opacity:.85;line-height:1.6}

/* Language switch (EN | BM) in the menu bar */
.lang-btn{display:inline-flex;align-items:center;gap:2px;height:36px;padding:3px;border-radius:999px;border:1px solid color-mix(in srgb,currentColor 28%,transparent);background:transparent;color:inherit;font:600 12px/1 Inter,system-ui,sans-serif;letter-spacing:.04em;cursor:pointer;margin:0 0 0 12px;flex:none}
.lang-btn span{display:grid;place-items:center;min-width:34px;height:28px;border-radius:999px;opacity:.55;transition:background .2s,opacity .2s}
.lang-btn[data-lang="en"] .l-en,.lang-btn[data-lang="bm"] .l-bm{background:#ff8a24;color:#1a1208;opacity:1}
.lang-btn:focus-visible{outline:2px solid #ff8a24;outline-offset:2px}
@media (max-width:640px){nav .lang-btn{order:1;margin-left:auto}nav .links{order:2}.lang-btn span{min-width:30px}}
@media (max-width:520px){
  html[lang="ms"] body[data-scene='inner'] .links a{font-size:12px;padding:6px 5px}
  html[lang="ms"] body[data-scene='inner'] .links a+a::before{left:-3px}
  html[lang="ms"] body[data-scene='inner'] .links a::after{left:5px;right:5px}
}
@media (max-width:520px){
  html[lang="ms"] body.play .links.pills{gap:5px}
  html[lang="ms"] body.play .links.pills a{font-size:12px;padding:7px 9px}
}

/* ---- Ecommerce pop-up: wide, with a landscape video (16:10) so a shop looks like a full website; a card opts in with wide:true once its video is landscape ---- */
.lp-modal.lp-wide { width: min(1560px, 96vw); }
.lp-modal.lp-wide .lp-m-body { grid-template-columns: minmax(0, 2.25fr) minmax(0, 1fr); }
.lp-modal.lp-wide .lp-m-media video { aspect-ratio: 16 / 10; width: 100%; height: auto; }
.lp-modal.lp-wide .lp-m-media .lp-looks video { flex: none; }
.lp-modal.lp-wide .lp-m-media { place-items: start; }
@media (max-width: 900px) { .lp-modal.lp-wide .lp-m-body { grid-template-columns: 1fr; } }

/* ---- Pricing table: three tall arch cards, the middle one highlighted (matches the dark navy, cyan and orange look) ---- */
.pt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: end; margin-top: 34px; }
.pt-card { position: relative; display: flex; flex-direction: column; padding: 34px 28px 28px; border-radius: 130px 130px 26px 26px / 90px 90px 26px 26px; background: linear-gradient(180deg, rgba(36, 62, 140, 0.55), rgba(10, 18, 52, 0.86)); border: 1px solid rgba(120, 160, 255, 0.28); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12); overflow: hidden; }
.pt-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 90px; background: radial-gradient(120% 100% at 50% 0%, rgba(95, 214, 230, 0.22), transparent 70%); pointer-events: none; }
.pt-kind { margin: 0 0 14px; text-align: center; font-size: 15px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: #8fd8ff; }
.pt-price { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 4px 6px; margin: 4px 0 10px; text-align: center; }
.pt-price small { flex-basis: 100%; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #9fb2e0; }
.pt-price .pt-rm { font-size: 22px; font-weight: 600; color: #ffb066; align-self: flex-start; margin-top: 12px; }
.pt-price b { font-size: clamp(54px, 5.2vw, 76px); font-weight: 300; line-height: 1; letter-spacing: -0.03em; color: #fff; }
.pt-price em { flex-basis: 100%; font-style: normal; font-size: 13px; color: #9fb2e0; }
.pt-list { list-style: none; margin: 18px 0 24px; padding: 18px 0 0; border-top: 2px dotted rgba(143, 216, 255, 0.35); display: grid; gap: 11px; flex: 1; }
.pt-list li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.4; color: #d5e1ff; }
.pt-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #3a1a02; background: linear-gradient(145deg, #ffb066, #f27a1a); }
.pt-cta { width: 100%; min-height: 52px; display: grid; place-items: center; text-align: center; border: 0; border-radius: 28px; font-size: 15px; font-weight: 700; color: #3a1a02; background: linear-gradient(145deg, #ffb066, #f27a1a 58%, #e5690d); box-shadow: inset 4px 5px 9px rgba(255, 255, 255, 0.5), inset -4px -6px 11px rgba(150, 62, 0, 0.45), 0 12px 22px rgba(0, 0, 0, 0.35); transition: transform 0.2s, filter 0.2s; }
.pt-cta:hover { transform: translateY(-3px); filter: brightness(1.07); }
.pt-hot { padding-top: 60px; padding-bottom: 34px; border: 2px solid transparent; background: linear-gradient(180deg, #1a3a8c, #0d1a4f) padding-box, linear-gradient(140deg, #22b8cc, #5fd6e6 45%, #ff8a24) border-box; box-shadow: 0 0 0 1px rgba(95, 214, 230, 0.15), 0 0 60px rgba(34, 184, 204, 0.28), 0 26px 60px rgba(0, 0, 0, 0.45); }
.pt-hot .pt-price b { background: linear-gradient(180deg, #fff, #9fe7f2); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pt-badge { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); padding: 5px 16px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #3a1a02; background: linear-gradient(145deg, #ffcf70, #ff8a24); box-shadow: 0 6px 16px rgba(255, 138, 36, 0.45); white-space: nowrap; z-index: 1; }
.pt-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.pt-mini { padding: 20px 22px; border-radius: 22px; background: linear-gradient(180deg, rgba(30, 52, 120, 0.4), rgba(10, 18, 52, 0.7)); border: 1px solid rgba(120, 160, 255, 0.22); display: grid; gap: 4px; }
.pt-mini .pt-mk { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #8fd8ff; }
.pt-mini b { font-size: 24px; font-weight: 500; color: #fff; }
.pt-mini p { margin: 2px 0 0; font-size: 14px; color: #a9b8dc; }
@media (max-width: 900px) { .pt-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } .pt-hot { order: -1; } .pt-minis { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
html[data-theme='light'] .pt-card, html[data-theme='light'] .pt-mini { background: #fff; border-color: rgba(34, 80, 160, 0.22); box-shadow: 0 14px 36px rgba(20, 40, 90, 0.12); }
html[data-theme='light'] .pt-kind, html[data-theme='light'] .pt-mini .pt-mk { color: #1c64b0; }
html[data-theme='light'] .pt-price b, html[data-theme='light'] .pt-mini b { color: #0a1028; -webkit-text-fill-color: #0a1028; background: none; }
html[data-theme='light'] .pt-price small, html[data-theme='light'] .pt-price em, html[data-theme='light'] .pt-mini p { color: #5a6b94; }
html[data-theme='light'] .pt-list li { color: #24325c; }
html[data-theme='light'] .pt-hot { background: #fff padding-box, linear-gradient(140deg, #22b8cc, #5fd6e6 45%, #ff8a24) border-box; }
.pt-grid2 { margin-top: 26px; align-items: stretch; }

/* inner pages (About, Products, Pricing, Contact) always sit on the dark background, so keep their text light even when the visitor's device is in light mode */
html[data-theme='light'] body[data-scene] { --ink: #eaf2ff; --navy: #eaf2ff; --deep: #7db4ff; --muted: #a9b8d8; --sky: rgba(34, 184, 204, 0.16); color-scheme: dark; }
html[data-theme='light'] body[data-scene] h1 b, html[data-theme='light'] body[data-scene] h2 b { color: #5fd6e6; }

/* A card with a picture but no video (the service cards): the pop-up shows the picture, filling the box like a video would */
.lp-m-media img.lp-still { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-modal.lp-wide .lp-m-media img.lp-still { aspect-ratio: 16 / 10; height: auto; }
