/* JP Creative — styles.css
   Edita aquí los colores, tipografía, espacios y diseño.
   No se utiliza WordPress ni ningún framework obligatorio.
*/
:root {
  --bg: #09090d;
  --surface: #111117;
  --surface-light: #181820;
  --stroke: #32313b;
  --stroke-strong: #4c3340;
  --text: #f7f6f8;
  --muted: #a7a4b1;
  --red: #ee1538;
  --red-light: #ff3a54;
  --red-dark: #a90022;
  --radius: 17px;
  --container: 1330px;
  --ease: cubic-bezier(.2,.7,.25,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body:has(dialog[open]) { overflow: hidden; }
::selection { background: var(--red); color: #fff; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
img { max-width: 100%; }
strong { font-weight: 800; }
:focus-visible { outline: 3px solid #ff667e; outline-offset: 4px; }
[hidden] { display: none !important; }
.container { width: min(calc(100% - 64px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 20px; padding: 12px 16px; background: #fff; color: #111; border-radius: 8px; }
.skip-link:focus-visible { top: 12px; }
.site-glow { position: absolute; z-index: -1; width: 100%; height: 1250px; pointer-events: none; background: radial-gradient(ellipse 48% 36% at 90% 19%, rgba(132,5,29,.2), transparent 78%), radial-gradient(ellipse 45% 40% at 0% 45%, rgba(88,19,36,.1), transparent 72%); }

/* Header */
.site-header { position: relative; z-index: 30; height: 86px; background: rgba(9,9,13,.97); border-bottom: 1px solid rgba(255,255,255,.055); }
.header-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.brand { display: inline-flex; width: max-content; align-items: center; gap: 7px; font-size: 22px; font-weight: 700; letter-spacing: -.8px; white-space: nowrap; }
.brand img { width: 55px; height: 43px; }
.brand strong { font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: 46px; height: 100%; }
.nav-link { height: 100%; display: inline-flex; align-items: center; position: relative; font-weight: 700; font-size: 14px; color: #d9d5dc; transition: color .2s; }
.nav-link::after { position: absolute; content: ''; height: 2px; bottom: 18px; left: 0; right: 0; background: var(--red); transform: scaleX(0); transition: transform .2s var(--ease); transform-origin: left; }
.nav-link:hover, .nav-link.is-active { color: #fff; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.header-cta { justify-self: end; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 19px; border-radius: 11px; background: linear-gradient(125deg, #ec1938, #bf092b); font-size: 14px; font-weight: 800; box-shadow: 0 8px 28px rgba(203,0,37,.14); transition: transform .2s, box-shadow .2s; }
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(203,0,37,.28); }
.header-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 530px; border-bottom: 1px solid rgba(255,255,255,.065); background: #09090d; }
.hero::after { content: ''; position: absolute; pointer-events: none; z-index: -1; width: 58%; height: 70%; right: -16%; bottom: -44%; background: #df0028; filter: blur(120px); opacity: .16; }
.hero-background {
  position: absolute; z-index: -1; inset: 0;
  background-image: linear-gradient(90deg, #09090d 0%, #09090d 25%, rgba(9,9,13,.96) 34%, rgba(9,9,13,.64) 47%, rgba(9,9,13,.05) 72%), linear-gradient(0deg, #09090d 0%, transparent 23%, rgba(9,9,13,.15) 100%), url('../assets/hero-estudio.webp');
  background-position: center, center, right center;
  background-size: cover, cover, auto 100%;
  background-repeat: no-repeat;
  opacity: .96;
}
.hero-inner { min-height: 481px; display: grid; grid-template-columns: minmax(500px, 54%) 1fr; align-items: center; }
.hero-copy { padding: 49px 0 34px; max-width: 750px; }
.eyebrow { color: #ece7ed; letter-spacing: .36em; font-weight: 800; font-size: 12px; }
.eyebrow-left { display: flex; align-items: center; gap: 15px; }
.eyebrow-left span { width: 36px; height: 2px; background: var(--red); }
.hero h1 { font-size: clamp(44px, 4.9vw, 71px); font-weight: 800; letter-spacing: -.067em; line-height: 1.115; margin: 22px 0 19px; max-width: 750px; text-wrap: balance; }
.hero h1 em, .contact-copy h2 em { font-style: normal; color: #f02d48; background: linear-gradient(120deg, #ff3953, #d60b31); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-copy > p { font-size: clamp(15px, 1.3vw, 17px); line-height: 1.85; font-weight: 500; color: #d4ccd4; max-width: 590px; margin: 0 0 30px; }
.hero-actions { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.btn { border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 28px; white-space: nowrap; border-radius: 10px; padding: 14px 22px; min-height: 48px; font-size: 14px; font-weight: 800; line-height: 1; transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(120deg, #f52443, #d2052c); color: #fff; box-shadow: 0 10px 24px rgba(213,3,43,.12); }
.btn-primary:hover { box-shadow: 0 13px 30px rgba(213,3,43,.32); }
.btn-outline { background: rgba(11,11,17,.52); border-color: rgba(241,235,243,.60); color: #f5f2f5; }
.btn-outline:hover { background: rgba(247,245,248,.10); border-color: #fff; }
.hero-bottom { display: flex; align-items: center; gap: 21px; min-height: 45px; color: #89828f; font-size: 10px; font-weight: 800; letter-spacing: .22em; }
.hero-bottom i { width: 3px; height: 3px; background: #f02e4a; border-radius: 50%; }

/* Reusable section typography */
.section { padding: 78px 0; scroll-margin-top: 10px; }
.section-heading { margin-bottom: 35px; }
.section-heading.center { text-align: center; }
.section-kicker { color: #f12c4a; letter-spacing: .32em; font-size: 11px; font-weight: 800; }
.section-heading h2, .about-content h2, .contact-copy h2 { margin: 12px 0 10px; font-size: clamp(29px, 3.1vw, 41px); line-height: 1.16; letter-spacing: -.055em; font-weight: 800; }
.section-heading p { font-size: 14px; color: #a9a4af; margin: 0; line-height: 1.8; }

/* Services */
.services-section { background: linear-gradient(180deg, #0b0b10, #09090d); }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.service-card { position: relative; min-height: 235px; padding: 30px 26px 27px; background: linear-gradient(135deg, #15141b, #0f1016 75%); border: 1px solid #38333d; border-radius: var(--radius); transition: transform .22s var(--ease), border-color .22s, box-shadow .22s; }
.service-card:hover { transform: translateY(-6px); border-color: #8d3849; box-shadow: 0 20px 38px rgba(0,0,0,.16); }
.service-card.is-featured { border: 1px solid #f12143; background: linear-gradient(140deg, #2b101a, #110b12 80%); box-shadow: inset 0 0 0 1px rgba(240,21,56,.2), 0 0 30px rgba(226,13,53,.095); }
.featured-indicator { position: absolute; right: 20px; top: 19px; padding: 6px 9px; border-radius: 50px; background: rgba(244,32,70,.13); color: #ff7d90; font-size: 9px; text-transform: uppercase; font-weight: 800; letter-spacing: .1em; }
.service-icon { margin-bottom: 20px; color: var(--red-light); }
.service-icon svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -.035em; font-weight: 800; }
.service-card p { margin: 0; font-weight: 500; font-size: 13px; line-height: 1.7; color: #bbb6c0; }
.service-card p strong { color: #ece7ee; }
.pricing-note { display: flex; align-items: center; gap: 16px; padding: 22px 26px; border: 1px solid #38313a; border-radius: 14px; background: linear-gradient(100deg, #161118, #100f14); margin-top: 27px; }
.pricing-note-icon { color: #f33a59; font-size: 24px; flex: none; }
.pricing-note p { color: #bbb4c0; font-size: 13px; line-height: 1.8; flex: 1; margin: 0; }
.pricing-note p strong { color: #f6eef2; }
.pricing-note a { white-space: nowrap; flex: none; color: #ff5a72; font-size: 13px; font-weight: 800; }
.pricing-note a:hover { color: #fff; }

/* Portfolio gallery */
.projects-section { padding-top: 32px; background: var(--bg); }
.projects-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.filter { border: 1px solid #302b36; background: #14131a; color: #b9b2be; padding: 10px 17px; border-radius: 100px; font-size: 12px; font-weight: 800; transition: color .2s, background .2s, border-color .2s; }
.filter:hover { color: #fff; border-color: #a94b5d; }
.filter.is-selected { color: #fff; border-color: #e52547; background: #44131f; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.project-card { appearance: none; border: 1px solid #34303a; padding: 0; text-align: left; display: block; min-width: 0; overflow: hidden; background: #111117; border-radius: 15px; color: #fff; transition: border-color .22s, transform .22s var(--ease), box-shadow .22s; }
.project-card:hover { transform: translateY(-5px); border-color: #e52748; box-shadow: 0 15px 36px rgba(0,0,0,.27); }
.project-picture { display: block; position: relative; aspect-ratio: 2.04 / 1; width: 100%; overflow: hidden; background: #1e1923; }
.project-picture::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,4,8,.48), transparent 46%); pointer-events: none; }
.project-picture img { height: 100%; width: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.project-card:hover .project-picture img { transform: scale(1.045); }
.demo-pill { position: absolute; z-index: 1; top: 14px; left: 14px; padding: 7px 10px; background: rgba(5,5,10,.7); backdrop-filter: blur(9px); border: 1px solid rgba(255,255,255,.2); border-radius: 6px; color: #e9e3ec; font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.project-view { position: absolute; z-index: 1; right: 14px; bottom: 14px; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; display: grid; place-items: center; background: rgba(9,9,13,.65); font-size: 19px; transition: background .2s; }
.project-card:hover .project-view { background: var(--red); }
.project-info { padding: 18px 21px 21px; display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; }
.project-tag { grid-column: 1/-1; font-size: 10px; letter-spacing: .18em; font-weight: 800; color: #ff5e77; }
.project-info strong { font-size: 16px; letter-spacing: -.025em; }
.project-arrow { color: #a09ba5; font-size: 21px; transition: color .2s; }
.project-card:hover .project-arrow { color: #f73855; }
.empty-projects { grid-column: 1/-1; text-align: center; color: #bbb; padding: 35px; border: 1px dashed #3d333e; border-radius: 15px; }
.demo-warning { display: flex; gap: 9px; align-items: flex-start; margin: 21px 0 0; font-size: 12px; color: #9f9ba5; line-height: 1.7; }
.demo-warning span { color: #f0536b; font-size: 16px; line-height: 1.1; }

/* About */
.about-section { border-block: 1px solid rgba(255,255,255,.045); background: linear-gradient(135deg, #101017, #09090d 65%); }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(45px, 7vw, 110px); }
.about-art { min-height: 330px; isolation: isolate; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px solid #4c2b38; border-radius: 20px; background: radial-gradient(ellipse at center, #4c1828 0, #210f19 33%, #0d0c12 72%); overflow: hidden; }
.about-art::after { content: ''; position: absolute; z-index: -1; left: -25%; right: -25%; top: 72%; height: 15%; background: #d61236; filter: blur(70px); opacity: .3; }
.about-art img { width: clamp(145px, 17vw, 218px); height: auto; filter: drop-shadow(0 14px 30px rgba(0,0,0,.6)); }
.art-orbit { position: absolute; pointer-events: none; border: 1px solid rgba(254,83,112,.15); border-radius: 50%; width: 460px; height: 460px; transform: rotate(-24deg) scaleY(.55); }
.art-orbit-two { transform: rotate(24deg) scaleY(.56); width: 540px; height: 540px; opacity: .7; }
.about-art-caption { margin-top: 21px; font-size: 10px; font-weight: 800; letter-spacing: .31em; color: #f5c1cd; }
.about-content h2 { font-size: clamp(33px, 3.7vw, 48px); max-width: 610px; margin-bottom: 21px; }
.about-content h2 span { color: #f03a55; }
.about-content p { color: #bdb5c2; max-width: 620px; line-height: 1.95; font-size: 14px; margin: 0 0 15px; }
.about-content p strong { color: #f6f2f5; }
.about-content h3 { font-size: 14px; margin: 29px 0 14px; }
.tool-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tool-tags span { border: 1px solid #3c3440; padding: 9px 12px; border-radius: 8px; color: #ddd8e0; font-size: 11px; background: #1a171d; font-weight: 700; }

/* Contact */
.contact-section { background: radial-gradient(ellipse at 90% 100%, rgba(116,14,36,.15), transparent 55%), #0a0a0f; padding-block: 95px; }
.contact-grid { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: clamp(45px, 7vw, 110px); }
.contact-copy h2 { max-width: 640px; margin: 20px 0 22px; font-size: clamp(36px, 4.2vw, 60px); }
.contact-copy p { line-height: 1.95; color: #bdb5c2; max-width: 580px; font-size: 15px; }
.contact-benefits { display: grid; gap: 12px; margin-top: 30px; color: #e8e0e9; font-size: 13px; font-weight: 700; }
.contact-benefits span span { color: #ff3555; margin-right: 10px; }
.contact-form { padding: 30px; border: 1px solid #48313c; border-radius: 20px; background: linear-gradient(135deg, #19131a, #121217); display: grid; gap: 10px; box-shadow: 0 18px 70px rgba(0,0,0,.2); }
.contact-form h3 { font-size: 21px; margin: 0 0 13px; letter-spacing: -.035em; }
.contact-form label { color: #e5dfe7; font-size: 12px; font-weight: 800; margin-top: 6px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 45px; border: 1px solid #49404a; border-radius: 10px; background: #111015; color: #fff; font-size: 13px; padding: 12px 14px; outline: none; transition: border-color .2s; }
.contact-form textarea { min-height: 114px; resize: vertical; line-height: 1.7; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: #f63f5c; box-shadow: 0 0 0 2px rgba(246,63,92,.15); }
.contact-form ::placeholder { color: #77717d; }
.contact-form select { color-scheme: dark; }
.form-submit { width: 100%; margin-top: 8px; }
.form-note { margin: 4px 0 0; color: #98929f; font-size: 11px; line-height: 1.75; }
.form-note.needs-setup { color: #ebbe86; }
.form-note code { font-family: monospace; }
.form-feedback { margin: 0; color: #ffc5ce; font-size: 12px; line-height: 1.6; }
.form-feedback:empty { display: none; }

/* Footer */
.site-footer { border-top: 1px solid #28252c; background: #09090d; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-block: 28px; }
.footer-brand { font-size: 20px; }
.footer-brand img { width: 49px; height: 38px; }
.footer-inner p, .footer-inner small { color: #96909a; font-size: 12px; margin: 0; }

/* Project details modal */
.project-dialog { width: min(92vw, 760px); max-height: min(92dvh, 950px); overflow: auto; border-radius: 18px; padding: 0; border: 1px solid #563847; color: #f8f7f9; background: #131117; box-shadow: 0 25px 80px rgba(0,0,0,.7); }
.project-dialog::backdrop { background: rgba(3,3,6,.82); backdrop-filter: blur(7px); }
.dialog-shell { position: relative; }
.dialog-close { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; background: rgba(0,0,0,.72); color: #fff; width: 42px; height: 42px; border: 1px solid #5b4a52; border-radius: 50%; font-size: 27px; line-height: 1; z-index: 1; }
.dialog-close:hover { background: #bd0f30; }
.dialog-image { width: 100%; aspect-ratio: 2/1; object-fit: cover; background: #251720; }
.dialog-content { padding: 30px 34px 35px; }
.dialog-category { color: #ff5770; font-size: 11px; letter-spacing: .17em; font-weight: 800; }
.dialog-content h2 { letter-spacing: -.04em; font-size: 29px; margin: 10px 0; }
.dialog-content p { color: #c3bac5; font-size: 14px; line-height: 1.9; }
.dialog-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn-small { min-height: 40px; padding: 12px 16px; font-size: 12px; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 1; transform: translateY(9px); transition: transform .6s var(--ease); }
  [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1130px) {
  .container { width: min(calc(100% - 48px), var(--container)); }
  .header-inner { gap: 16px; }
  .main-nav { gap: 25px; }
  .hero-inner { grid-template-columns: minmax(450px, 58%) 1fr; }
  .hero h1 { font-size: clamp(43px, 5.4vw, 65px); }
  .service-card { padding: 26px 19px; }
  .service-card h3 { font-size: 17px; }
  .services-grid { gap: 12px; }
}
@media (max-width: 900px) {
  .site-header { height: 75px; }
  .header-inner { grid-template-columns: 1fr auto auto; }
  .header-cta { margin-left: auto; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 1px solid #3e3440; width: 43px; height: 43px; border-radius: 10px; background: #151118; }
  .menu-toggle span { height: 2px; width: 19px; background: #fff; border-radius: 5px; transition: transform .2s, opacity .2s; }
  .menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { display: none; position: absolute; inset: 75px 15px auto; height: auto; padding: 15px; background: #131118; border: 1px solid #4b3541; border-radius: 15px; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
  .main-nav.is-open { display: grid; gap: 0; }
  .nav-link { height: 48px; padding-inline: 13px; }
  .nav-link::after { bottom: 0; left: 13px; width: 34px; right: auto; }
  .hero-inner { grid-template-columns: 1fr; min-height: 505px; }
  .hero-copy { max-width: 660px; }
  .hero h1 { font-size: clamp(43px, 7vw, 65px); }
  .hero-background { opacity: .62; background-image: linear-gradient(90deg, #09090d 0%, rgba(9,9,13,.97) 12%, rgba(9,9,13,.88) 35%, rgba(9,9,13,.45) 70%), linear-gradient(0deg,#09090d 0%,transparent 30%), url('../assets/hero-estudio.webp'); }
  .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .service-card { min-height: 200px; padding: 27px; }
  .projects-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
  .about-grid { gap: 35px; }
  .contact-grid { gap: 35px; }
}
@media (max-width: 640px) {
  .container { width: min(calc(100% - 36px), var(--container)); }
  .site-header { height: 70px; }
  .brand { font-size: 19px; letter-spacing: -.65px; }
  .brand img { width: 45px; height: 36px; }
  .header-inner { gap: 11px; }
  .main-nav { inset: 70px 12px auto; }
  .header-cta { padding: 11px 12px; font-size: 0; gap: 0; width: 42px; height: 42px; }
  .header-cta svg { width: 20px; height: 20px; }
  .hero { min-height: 585px; }
  .hero-inner { min-height: 535px; align-items: end; }
  .hero-background { background-size: cover, cover, auto 70%; background-position: center, center, 75% top; background-image: linear-gradient(0deg, #09090d 4%, rgba(9,9,13,.90) 32%, rgba(9,9,13,.54) 65%, rgba(9,9,13,.20) 100%), linear-gradient(90deg,rgba(9,9,13,.6), transparent), url('../assets/hero-estudio.webp'); opacity: .77; }
  .hero-copy { padding: 140px 0 31px; }
  .eyebrow { font-size: 9px; letter-spacing: .26em; }
  .eyebrow-left span { width: 23px; }
  .hero h1 { font-size: clamp(38px, 9.5vw, 56px); margin: 17px 0 15px; letter-spacing: -.068em; }
  .hero-copy > p { font-size: 14px; line-height: 1.85; margin-bottom: 23px; }
  .hero-actions { gap: 9px; }
  .btn { min-height: 43px; padding: 13px 15px; gap: 13px; font-size: 12px; }
  .hero-bottom { gap: 10px; justify-content: space-between; flex-wrap: wrap; font-size: 8px; min-height: 50px; letter-spacing: .07em; }
  .hero-bottom i { width: 2px; height: 2px; }
  .section { padding: 57px 0; }
  .section-heading { margin-bottom: 24px; }
  .section-heading h2 { font-size: 28px; }
  .section-kicker { letter-spacing: .24em; font-size: 10px; }
  .section-heading p { font-size: 12px; }
  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { min-height: 0; padding: 24px; }
  .service-icon { margin-bottom: 13px; }
  .service-icon svg { width: 34px; height: 34px; }
  .service-card h3 { font-size: 17px; }
  .service-card p { font-size: 12px; line-height: 1.7; }
  .featured-indicator { top: 11px; right: 9px; font-size: 7px; padding: 4px 5px; }
  .pricing-note { flex-wrap: wrap; gap: 10px; padding: 17px; }
  .pricing-note-icon { font-size: 18px; }
  .pricing-note p { flex-basis: calc(100% - 35px); font-size: 11px; }
  .pricing-note a { margin-left: 26px; font-size: 12px; }
  .projects-section { padding-top: 14px; }
  .projects-filters { gap: 6px; margin-bottom: 20px; }
  .filter { padding: 8px 12px; font-size: 10px; }
  .projects-grid { grid-template-columns: 1fr; gap: 14px; }
  .project-info { padding: 16px 17px; gap: 5px; }
  .project-tag { font-size: 9px; }
  .project-info strong { font-size: 15px; line-height: 1.3; }
  .project-arrow { font-size: 16px; }
  .demo-pill { padding: 5px 6px; font-size: 7px; top: 7px; left: 7px; }
  .project-view { width: 25px; height: 25px; right: 8px; bottom: 8px; font-size: 15px; }
  .demo-warning { font-size: 11px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 29px; }
  .about-art { min-height: 240px; }
  .about-art img { width: 135px; }
  .about-content h2 { font-size: 33px; }
  .about-content p { font-size: 13px; }
  .contact-section { padding-block: 65px; }
  .contact-copy h2 { font-size: 38px; }
  .contact-copy p { font-size: 13px; }
  .contact-form { padding: 23px 17px; }
  .footer-inner { flex-wrap: wrap; gap: 12px; padding-block: 24px; }
  .footer-inner p { display: none; }
  .footer-inner small { width: 100%; }
  .dialog-content { padding: 23px 20px; }
  .dialog-content h2 { font-size: 23px; }
  .dialog-content p { font-size: 12px; }
}
@media (max-width: 360px) {
  .container { width: calc(100% - 26px); }
  .brand { font-size: 17px; }
  .hero h1 { font-size: 35px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: unset; }
  .projects-grid { grid-template-columns: 1fr; }
  .hero-bottom { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Ambient snow and a refresh-rate independent pointer trail. */
.snow-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 31; opacity: .68; }
.cursor-trail { position: fixed; inset: 0; z-index: 10000; pointer-events: none; overflow: hidden; }
.cursor-trail i { position: absolute; left: 0; top: 0; border-radius: 50%; background: #ff526f; will-change: transform; }
.cursor-trail i:first-child { background: #fff; box-shadow: 0 0 9px #ff375d; }
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .custom-cursor, .custom-cursor * { cursor: none !important; }
}
.owner-link { color: #bcb5c2; font-size: .8rem; white-space: nowrap; }
.owner-link:hover { color: #ff738b; }
.service-with-image { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.service-picture { aspect-ratio: 16/9; overflow: hidden; background: #21141d; }
.service-picture img { width: 100%; height: 100%; object-fit: cover; }
.service-body { padding: 24px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.service-body p { font-size: .875rem; }
.service-body .item-price { margin-top: 20px; padding-top: 10px; color: #ff8097; font-size: 1rem; font-weight: 800; }
.service-contact { margin-top: auto; padding-top: 16px; font-size: .875rem; font-weight: 700; }
.service-contact:hover { color: #ff8097; }
.service-with-image .featured-indicator { top: 12px; right: 12px; background: #57162b; font-size: .7rem; z-index: 1; }
.item-price { color: #ff8097; font-size: .9rem; font-weight: 700; }
.project-info > .item-price { grid-column: 1 / -1; margin-top: 6px; }
.project-card:hover .project-picture img { transform: scale(calc(var(--cover-zoom, 1) * 1.045)) !important; }
.dialog-image { transform: none !important; }
.portfolio-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 35px; }
.portfolio-service { display: flex; gap: 14px; align-items: center; min-width: 0; padding: 12px; background: #17101a; border: 1px solid #513044; border-radius: 12px; overflow: hidden; transition: border-color .2s; }
.portfolio-service:hover { border-color: #ff537b; }
.portfolio-service > img { width: 78px; height: 60px; object-fit: cover; border-radius: 7px; transform: none !important; flex: none; }
.portfolio-service > div { display: grid; gap: 7px; }
.portfolio-service strong { font-size: .9rem; overflow-wrap: anywhere; }
.portfolio-service span { font-size: .75rem; color: #c1a8c6; }
.optional-label { color: #b1a0ba; font-weight: 500; }
.contact-extra-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-extra-fields > div { display: grid; gap: 10px; }
.contact-form .consent-label { display: flex; align-items: flex-start; gap: 10px; font-size: .8rem; line-height: 1.7; font-weight: 500; }
.contact-form .consent-label input { min-height: 0; width: 18px; height: 18px; margin: 2px 0; flex: none; accent-color: #f02b54; }
.contact-form button:disabled { opacity: .6; cursor: wait; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.direct-contact { position: fixed; right: 24px; bottom: 24px; z-index: 32; padding: 14px 20px; border-radius: 100px; border: 1px solid #fc587d; background: #8b1534; color: #fff; font-size: .875rem; font-weight: 800; box-shadow: 0 10px 40px #0008; }
.availability-note { color: #c1a9b9; font-size: .8rem; margin-top: 24px; }
@media (max-width: 600px) { .direct-contact { right: 14px; bottom: 14px; font-size: .75rem; padding: 12px 16px; } .contact-extra-fields { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .footer-inner { flex-wrap: wrap; } .service-body { padding: 18px; } }

/* Balanced home layout and original JP animation. */
body:not(.admin-page) { --container: 1240px; }
.hero { min-height: 0; background: radial-gradient(ellipse at 85% 45%, #4f102226, transparent 55%), #09090d; }
.hero-background { display: none; }
.hero-inner { min-height: 550px; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 4vw, 64px); align-items: center; padding-block: 64px 48px; }
.hero-copy { padding: 0; min-width: 0; max-width: 600px; }
.hero h1 { font-size: clamp(2.7rem, 4.2vw, 3.9rem); line-height: 1.12; letter-spacing: -.055em; margin: 23px 0; }
.hero-copy > p { font-size: 1rem; line-height: 1.85; margin-bottom: 28px; }
.hero-copy > .availability-note { font-size: .8rem; line-height: 1.6; margin: 20px 0 0; color: #bca2af; }
.eyebrow { font-size: .7rem; letter-spacing: .25em; }
.hero-visual { min-width: 0; width: 100%; }
.hero-animation-frame { position: relative; border: 1px solid #84364d; border-radius: 20px; padding: 7px; background: linear-gradient(145deg, #4a1729, #160f18); box-shadow: 0 24px 70px #0006, 0 0 65px #b2092c12; }
.hero-animation-frame picture { display: block; overflow: hidden; border-radius: 14px; }
.hero-animation-frame img { width: 100%; height: auto; aspect-ratio: 546 / 295; object-fit: contain; }
.animation-toggle { position: absolute; bottom: 18px; right: 18px; padding: 8px 11px; background: #100810d9; color: #fff; border: 1px solid #ffffff45; border-radius: 8px; font-size: .7rem; }
.animation-toggle:hover { background: #4e1429; }
.hero-visual-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 18px 5px 0; color: #bba2af; font-size: .75rem; }
.hero-visual-caption span { font-size: .65rem; letter-spacing: .2em; color: #df8197; }
.hero-bottom { justify-content: center; gap: 25px; padding-block: 20px 24px; border-top: 1px solid #ffffff09; font-size: .65rem; }
.section { padding-block: 88px; }
.section-heading { max-width: 720px; margin: 0 auto 40px; }
.section-heading p { font-size: 1rem; }
.section-kicker { font-size: .75rem; }
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.services-grid > .service-card { flex: 1 1 260px; max-width: 392px; min-width: 0; }
.service-with-image { padding: 0; }
.service-body { align-items: center; text-align: center; padding: 26px 24px; }
.service-body h3 { font-size: 1.25rem; }
.service-body p { font-size: .95rem; }
.service-body .item-price { margin-top: auto; padding-top: 24px; }
.service-contact { margin-top: 18px; padding: 11px 18px; border: 1px solid #613144; border-radius: 9px; background: #32131f; }
.service-contact:hover { background: #4b182b; }
.pricing-note { max-width: 1000px; margin: 32px auto 0; }
.pricing-note p, .pricing-note a { font-size: .875rem; }
.about-grid { max-width: 1100px; margin-inline: auto; grid-template-columns: .85fr 1.15fr; gap: 65px; }
.about-content p { font-size: 1rem; }
.tool-tags span { font-size: .8rem; }
.contact-grid { max-width: 1100px; margin-inline: auto; align-items: start; gap: 65px; grid-template-columns: .9fr 1.1fr; }
.contact-copy { padding-top: 28px; }
.contact-copy h2 { font-size: clamp(2.4rem, 4vw, 3.5rem); }
.contact-copy p { font-size: 1rem; }
.contact-form { padding: 32px; }
.contact-form label { font-size: .875rem; }
.contact-form input, .contact-form select, .contact-form textarea { font-size: .95rem; }
.contact-benefits { font-size: .9rem; }
.footer-inner { justify-content: center; flex-wrap: wrap; text-align: center; gap: 18px 30px; }
.footer-inner small { font-size: .8rem; }
@media (max-width: 1000px) {
  .hero-inner { gap: 30px; min-height: 0; padding-block: 50px; }
  .hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); }
  .hero-actions .btn { padding-inline: 16px; font-size: .8rem; }
  .about-grid, .contact-grid { gap: 35px; }
}
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; padding-block: 46px 30px; }
  .hero-copy { text-align: center; max-width: 620px; margin-inline: auto; }
  .hero h1 { font-size: clamp(2.5rem, 7.5vw, 3.5rem); }
  .hero-copy > p { margin-inline: auto; }
  .eyebrow-left, .hero-actions { justify-content: center; }
  .hero-visual { max-width: 600px; margin-inline: auto; }
  .hero-bottom { gap: 14px; font-size: .6rem; letter-spacing: .1em; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; max-width: 600px; }
  .about-content, .contact-copy { text-align: center; }
  .tool-tags { justify-content: center; }
  .contact-copy { padding: 0; }
  .contact-copy h2, .contact-copy p { margin-inline: auto; }
  .contact-benefits { justify-items: center; }
  .section { padding-block: 62px; }
  .services-grid > .service-card { flex-basis: 240px; }
}
@media (max-width: 480px) {
  .hero-copy > p { font-size: .95rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { font-size: .875rem; min-height: 48px; }
  .hero-animation-frame { padding: 5px; border-radius: 15px; }
  .hero-visual-caption { justify-content: center; font-size: .75rem; }
  .hero-bottom { gap: 8px; font-size: .5rem; letter-spacing: .05em; }
  .hero-bottom i { width: 2px; height: 2px; }
  .contact-form { padding: 23px 18px; }
  .pricing-note { justify-content: center; text-align: center; }
  .pricing-note p { flex-basis: 100%; }
  .pricing-note a { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .animation-toggle { display: none; } }
