/* ============================================================
   DJ Develops — brand site
   "Warm SaaS" · iridescent glassmorphism · human touch
   Dependency-free motion (IntersectionObserver + CSS + rAF)
   ============================================================ */

:root {
  /* surfaces */
  --ink:       #201A33;   /* headings */
  --ink-2:     #3B3357;   /* body strong */
  --body:      #55507A;   /* body text */
  --muted:     #7B75A0;   /* muted */
  --line:      rgba(90,70,160,.14);

  /* glass */
  --glass:      rgba(255,255,255,.60);
  --glass-2:    rgba(255,255,255,.42);
  --glass-brd:  rgba(255,255,255,.75);
  --glass-shadow: 0 24px 60px -26px rgba(84,54,158,.42);

  /* accents (iridescent) */
  --violet: #7C5CFB;
  --pink:   #EC5Fb2;
  --blue:   #3EA8F5;
  --grad:      linear-gradient(120deg, #7C5CFB 0%, #B466E8 46%, #F06FB0 100%);
  --grad-cool: linear-gradient(120deg, #6D5CF7 0%, #3EA8F5 100%);
  --grad-text: linear-gradient(100deg, #7C5CFB 0%, #C25CE0 42%, #F06FB0 78%, #3EA8F5 100%);

  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1180px;
  --radius: 26px;
  --radius-sm: 16px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  background: #F3EFFF;
}

/* --- the warm mesh backdrop (fixed, cheap) --- */
.bg-mesh {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(52% 46% at 12% 8%,  rgba(124,92,251,.42), transparent 62%),
    radial-gradient(48% 42% at 88% 6%,  rgba(62,168,245,.38), transparent 60%),
    radial-gradient(52% 52% at 82% 88%, rgba(236,95,178,.36), transparent 62%),
    radial-gradient(46% 48% at 8% 92%,  rgba(150,110,240,.34), transparent 60%),
    linear-gradient(180deg, #F6F1FF 0%, #F1ECFF 40%, #F5EEFB 100%);
}
.bg-orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-orbs .orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; mix-blend-mode: plus-lighter; }
.bg-orbs .o1 { width: 520px; height: 520px; background: #8B6BFF; top: -120px; left: -60px; animation: drift1 22s ease-in-out infinite; }
.bg-orbs .o2 { width: 460px; height: 460px; background: #45B0F7; top: 8%; right: -80px; animation: drift2 26s ease-in-out infinite; }
.bg-orbs .o3 { width: 420px; height: 420px; background: #F472B6; bottom: -100px; left: 30%; animation: drift1 30s ease-in-out infinite; }
@keyframes drift1 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(60px,50px) scale(1.12);} }
@keyframes drift2 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(-70px,40px) scale(1.08);} }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
section { position: relative; }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--violet);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 56ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  white-space: nowrap; will-change: transform;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 14px 34px -10px rgba(150,70,220,.55); }
.btn-primary:hover { box-shadow: 0 22px 48px -12px rgba(236,95,178,.6); }
.btn-glass { background: var(--glass); color: var(--ink-2); border-color: var(--glass-brd); backdrop-filter: blur(10px); box-shadow: 0 10px 26px -16px rgba(84,54,158,.4); }
.btn-glass:hover { background: rgba(255,255,255,.82); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 60; transition: padding .3s var(--ease); padding: 14px 0; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 12px 10px 20px; border-radius: 999px;
  background: rgba(255,255,255,.5); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(16px) saturate(150%); box-shadow: 0 10px 30px -18px rgba(84,54,158,.45);
  transition: box-shadow .3s, background .3s;
}
.nav.scrolled .nav-inner { background: rgba(255,255,255,.72); box-shadow: 0 14px 38px -18px rgba(84,54,158,.5); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; color: var(--ink); letter-spacing: -.02em; }
.brand .badge { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: .95rem; box-shadow: 0 8px 20px -8px rgba(150,70,220,.7); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.link { color: var(--ink-2); font-weight: 600; font-size: .94rem; position: relative; transition: color .2s; }
.nav-links a.link::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; border-radius: 2px; background: var(--grad); transition: width .3s var(--ease); }
.nav-links a.link:hover { color: var(--violet); }
.nav-links a.link:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 76px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 17px; border-radius: 999px;
  background: rgba(255,255,255,.6); border: 1px solid var(--glass-brd); backdrop-filter: blur(10px);
  color: var(--ink-2); font-size: .85rem; font-weight: 600; margin-bottom: 30px; box-shadow: 0 8px 22px -16px rgba(84,54,158,.5);
}
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52,211,153,.22); }
.hero h1 { font-size: clamp(2.7rem, 6.6vw, 4.7rem); max-width: 16ch; font-weight: 800; }
.hero .lead { margin: 26px auto 0; font-size: 1.2rem; color: var(--ink-2); text-align: center; max-width: 60ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; justify-content: center; }
.hero-trust { display: flex; gap: 14px; margin-top: 46px; flex-wrap: wrap; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-brd); backdrop-filter: blur(10px); font-size: .9rem; font-weight: 600; color: var(--ink-2); box-shadow: 0 8px 22px -18px rgba(84,54,158,.5); }
.chip .n { font-family: var(--font-display); font-weight: 800; color: var(--violet); }

/* floating hero glass cards */
.hero-float { position: relative; width: 100%; max-width: 900px; margin: 60px auto 0; height: 0; }
.float-card { position: absolute; padding: 16px 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-brd); backdrop-filter: blur(14px); box-shadow: var(--glass-shadow); display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink-2); font-size: .9rem; }
.float-card .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; }
.float-card .ic svg { width: 20px; height: 20px; }

/* ---------- marquee ---------- */
.marquee-band { padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee { display: flex; gap: 0; width: max-content; animation: scrollx 34s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee .mi { display: inline-flex; align-items: center; gap: 14px; padding: 0 30px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); opacity: .78; white-space: nowrap; }
.marquee .mi::after { content: "✦"; color: var(--pink); font-size: .8rem; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- section shell ---------- */
.section { padding: 92px 0; }
.section-head { max-width: 660px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2.1rem, 4.2vw, 3rem); margin-top: 16px; font-weight: 800; }
.section-head .lead { margin-top: 16px; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* glass surface util */
.glass { background: var(--glass); border: 1px solid var(--glass-brd); backdrop-filter: blur(16px) saturate(140%); box-shadow: var(--glass-shadow); }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc { position: relative; padding: 34px; border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.svc:hover { transform: translateY(-8px); box-shadow: 0 34px 70px -30px rgba(84,54,158,.5); }
.svc-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); margin-bottom: 22px; box-shadow: 0 12px 26px -12px rgba(150,70,220,.6); }
.svc-icon svg { width: 27px; height: 27px; stroke: #fff; }
.svc h3 { font-size: 1.36rem; margin-bottom: 10px; }
.svc p { color: var(--body); font-size: .97rem; }
.svc .svc-quote { color: var(--muted); font-style: italic; font-size: .92rem; margin-top: 16px; }
.svc .svc-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 22px; color: var(--violet); font-family: var(--font-display); font-weight: 700; font-size: .94rem; }
.svc .svc-link svg { width: 16px; height: 16px; transition: transform .25s; }
.svc:hover .svc-link svg { transform: translateX(5px); }

/* ---------- work ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--glass-brd); background: rgba(255,255,255,.4); backdrop-filter: blur(8px); color: var(--ink-2); font-family: var(--font-display); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .25s; }
.filter:hover { background: rgba(255,255,255,.7); }
.filter.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 24px -12px rgba(150,70,220,.6); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translateY(-8px); box-shadow: 0 34px 70px -30px rgba(84,54,158,.5); }
.card-thumb { aspect-ratio: 16/10; overflow: hidden; position: relative; border-bottom: 1px solid var(--glass-brd); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); }
.card:hover .card-thumb img { transform: scale(1.06); }
.card-thumb.tile { display: grid; place-items: center; }
.card-thumb.tile .tile-mark { font-family: var(--font-display); font-weight: 800; font-size: 2.3rem; width: 92px; height: 92px; border-radius: 22px; display: grid; place-items: center; color: #fff; box-shadow: 0 16px 34px -14px rgba(84,54,158,.5); }
.card-thumb.tile.g1 { background: linear-gradient(150deg,#efe7ff,#ffe9f6); } .card-thumb.tile.g1 .tile-mark { background: linear-gradient(135deg,#7C5CFB,#F06FB0); }
.card-thumb.tile.g2 { background: linear-gradient(150deg,#e6f2ff,#eafbff); } .card-thumb.tile.g2 .tile-mark { background: linear-gradient(135deg,#3EA8F5,#22D3EE); }
.card-thumb.tile.g3 { background: linear-gradient(150deg,#f3e9ff,#e9edff); } .card-thumb.tile.g3 .tile-mark { background: linear-gradient(135deg,#B466E8,#6D5CF7); }
.card-thumb.tile.g4 { background: linear-gradient(150deg,#ffe9f4,#fff0ea); } .card-thumb.tile.g4 .tile-mark { background: linear-gradient(135deg,#F06FB0,#FF9E7A); }
.card-thumb.tile.g5 { background: linear-gradient(150deg,#e7fbf1,#e6f6ff); } .card-thumb.tile.g5 .tile-mark { background: linear-gradient(135deg,#34D399,#3EA8F5); }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 4px; }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--violet); background: rgba(124,92,251,.1); border: 1px solid rgba(124,92,251,.2); padding: 4px 10px; border-radius: 8px; }
.tag.alt { color: var(--muted); background: rgba(120,110,160,.08); border-color: var(--line); }
.card h3 { font-size: 1.18rem; }
.card p { color: var(--body); font-size: .92rem; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { padding: 30px 26px; border-radius: var(--radius); }
.step .num { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 20px; box-shadow: 0 12px 26px -12px rgba(150,70,220,.55); }
.step h3 { font-size: 1.14rem; margin-bottom: 8px; }
.step p { color: var(--body); font-size: .92rem; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.about-copy h2 { font-size: clamp(2.1rem, 4.2vw, 3rem); margin: 16px 0 20px; font-weight: 800; }
.about-copy p { color: var(--body); margin-bottom: 16px; font-size: 1.02rem; }
.about-copy p strong { color: var(--ink-2); font-weight: 700; }
.about-card { padding: 34px; border-radius: var(--radius); }
.about-card .who { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.about-card .avatar { width: 64px; height: 64px; border-radius: 18px; background: var(--grad); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: #fff; box-shadow: 0 14px 30px -12px rgba(150,70,220,.6); }
.about-card .who .n { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.about-card .who .r { color: var(--muted); font-size: .9rem; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--line); color: var(--body); font-size: .96rem; }
.about-list li:first-child { border-top: 0; }
.about-list .ck { width: 22px; height: 22px; border-radius: 7px; background: var(--grad); display: grid; place-items: center; flex: none; margin-top: 1px; }
.about-list .ck svg { width: 14px; height: 14px; stroke: #fff; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.contact-panel h2 { font-size: clamp(2.1rem, 4.2vw, 3rem); margin: 16px 0 18px; font-weight: 800; }
.contact-methods { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.cmethod { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius-sm); transition: transform .28s var(--ease); }
.cmethod:hover { transform: translateX(6px); }
.cmethod .ci { width: 46px; height: 46px; border-radius: 13px; background: var(--grad); display: grid; place-items: center; flex: none; box-shadow: 0 10px 22px -10px rgba(150,70,220,.55); }
.cmethod .ci svg { width: 22px; height: 22px; stroke: #fff; }
.cmethod .cl { font-size: .8rem; color: var(--muted); }
.cmethod .cv { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.cmethod.book { background: linear-gradient(120deg, rgba(124,92,251,.14), rgba(236,95,178,.14)); }

.form { padding: 32px; border-radius: var(--radius); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .84rem; color: var(--ink-2); margin-bottom: 7px; font-weight: 600; }
.field input, .field textarea { width: 100%; padding: 14px 16px; border-radius: 13px; background: rgba(255,255,255,.7); border: 1px solid var(--glass-brd); color: var(--ink); font-family: inherit; font-size: .96rem; transition: border-color .2s, box-shadow .2s, background .2s; }
.field input::placeholder, .field textarea::placeholder { color: #a8a2c4; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px rgba(124,92,251,.16); }
.field textarea { resize: vertical; min-height: 120px; }
.form .btn { width: 100%; }
.form-note { color: var(--muted); font-size: .8rem; text-align: center; margin-top: 14px; }
.form-success { display: none; text-align: center; padding: 18px; border-radius: 14px; background: rgba(52,211,153,.14); border: 1px solid rgba(52,211,153,.4); color: #0f9d6b; font-weight: 600; margin-top: 16px; }
.form-success.show { display: block; }

/* ---------- footer ---------- */
.footer { padding: 46px 0 40px; margin-top: 20px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .brand { font-size: 1rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .2s; }
.footer-links a:hover { color: var(--violet); }
.footer-copy { color: var(--muted); font-size: .85rem; }

/* ---------- reveal / motion ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal, .hero-inner > * { }
[data-stagger] > * { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-stagger].in > * { opacity: 1; transform: none; }
[data-stagger].in > *:nth-child(1){ transition-delay:.04s } [data-stagger].in > *:nth-child(2){ transition-delay:.12s }
[data-stagger].in > *:nth-child(3){ transition-delay:.20s } [data-stagger].in > *:nth-child(4){ transition-delay:.28s }
[data-stagger].in > *:nth-child(5){ transition-delay:.36s } [data-stagger].in > *:nth-child(6){ transition-delay:.44s }
[data-stagger].in > *:nth-child(7){ transition-delay:.52s } [data-stagger].in > *:nth-child(8){ transition-delay:.60s }

@media (prefers-reduced-motion: reduce) {
  .reveal, [data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .bg-orbs .orb, .marquee { animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .services-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-cta .btn-glass { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 76px; left: 12px; right: 12px; background: rgba(255,255,255,.97); border: 1px solid var(--glass-brd); border-radius: 22px; padding: 22px; gap: 16px; align-items: flex-start; backdrop-filter: blur(16px); box-shadow: var(--glass-shadow); }
}
@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .hero { padding: 56px 0 52px; }
  .hero-trust { gap: 10px; margin-top: 36px; }
  .form .row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .nav-inner { padding: 8px 10px 8px 14px; }
  .nav-cta .btn-primary { padding: 10px 18px; font-size: .9rem; }
  .brand { font-size: 1rem; }
  .brand .badge { width: 34px; height: 34px; border-radius: 11px; }
  .services-grid, .work-grid, .steps { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- clickable cards ---------- */
.card { cursor: pointer; }
.card-thumb { position: relative; }
.card-thumb::after {
  content: 'View project'; position: absolute; bottom: 12px; right: 12px;
  padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; pointer-events: none;
  box-shadow: 0 6px 16px -8px rgba(84,54,158,.5);
}
.card:hover .card-thumb::after, .card:focus-visible .card-thumb::after { opacity: 1; transform: none; }
.card:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* ---------- project detail modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(30,20,60,.42); backdrop-filter: blur(8px); animation: fadeIn .3s var(--ease); }
.modal-card { position: relative; z-index: 1; width: 100%; max-width: 720px; max-height: 90vh; overflow: auto; border-radius: 24px; padding: 0; animation: modalIn .45s var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-brd); background: rgba(255,255,255,.75); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .3s; }
.modal-close:hover { background: #fff; transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }
.modal-shot { border-radius: 24px 24px 0 0; overflow: hidden; border-bottom: 1px solid var(--glass-brd); background: #ece7fb; }
.modal-shot img { width: 100%; display: block; }
.modal-body { padding: 28px 30px 32px; }
.modal-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.modal-body h3 { font-size: 1.7rem; margin-bottom: 14px; }
.modal-body p { color: var(--body); font-size: 1.02rem; line-height: 1.7; }
.modal-note { color: var(--muted); font-size: .86rem; font-style: italic; margin-top: 10px; }
.modal-body .btn { margin-top: 22px; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.modal-actions .btn { margin-top: 22px; }
@media (max-width: 520px) { .modal { padding: 12px; } .modal-body { padding: 22px; } .modal-body h3 { font-size: 1.4rem; } }
