/*
Theme Name: Habib Theme
Theme URI: https://habibur.pro/
Author: Habib
Author URI: https://habibur.pro/
Description: A custom WordPress theme for Habib based on the provided HTML.
Version: 1.0.0
Text Domain: habib-theme
*/

:root {
  --pink: #FF6EC7; --yellow: #FFE95F; --green: #27AB4E; --blue: #0A7EC2;
  --ink: #1B1F23; --mint: #B8F5D2; --blush: #F9B8E1;
  --bg: #FFFFFF; --bg2: #FFF4FA; --surface: #FFFFFF; --text: #1B1F23; --muted: #555C64; --line: #1B1F23; --shadow: #1B1F23;
  --display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --body: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 24px);
  --sec: clamp(64px, 9vw, 104px);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14171A; --bg2: #191D21; --surface: #1F252A; --text: #F5F2F4; --muted: #B6BCC3; --line: #F5F2F4; --shadow: #000;
  }
}
:root[data-theme="dark"] {
  --bg: #14171A; --bg2: #191D21; --surface: #1F252A; --text: #F5F2F4; --muted: #B6BCC3; --line: #F5F2F4; --shadow: #000;
}
*, *::before, *::after { box-sizing: inherit; }
html { height: 100%; scroll-behavior: smooth; scroll-padding-top: calc(84px + env(safe-area-inset-top, 0px)); overflow-x: hidden; cursor: url('data:image/svg+xml;utf8,<svg width="32" height="32" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4 2L18 10L12 12L16 19L12 21L8 14L3 18Z" fill="%23FF6EC7" stroke="%231B1F23" stroke-width="1.5" stroke-linejoin="round"/></svg>') 5 3, auto; }
html:active { cursor: url('data:image/svg+xml;utf8,<svg width="32" height="32" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4 2L18 10L12 12L16 19L12 21L8 14L3 18Z" fill="%23B8F5D2" stroke="%231B1F23" stroke-width="1.5" stroke-linejoin="round"/></svg>') 5 3, auto; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: clamp(16px, 1.2vw + 12px, 18px); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a, button, .btn, .icon-btn, [role="button"], input, select, textarea { cursor: url('data:image/svg+xml;utf8,<svg width="32" height="32" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4 2L18 10L12 12L16 19L12 21L8 14L3 18Z" fill="%23FFE95F" stroke="%231B1F23" stroke-width="1.5" stroke-linejoin="round"/></svg>') 5 3, pointer; }
a:active, button:active, .btn:active, .icon-btn:active, [role="button"]:active { cursor: url('data:image/svg+xml;utf8,<svg width="32" height="32" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4 2L18 10L12 12L16 19L12 21L8 14L3 18Z" fill="%23B8F5D2" stroke="%231B1F23" stroke-width="1.5" stroke-linejoin="round"/></svg>') 5 3, pointer; }
input, textarea { caret-color: var(--pink); }
::selection { background: var(--pink); color: var(--ink); }
a { color: inherit; }
svg.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
:root[data-theme="dark"] :focus-visible { outline-color: var(--yellow); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: .01em; text-wrap: balance; }
h2 { font-size: clamp(38px, 7vw, 64px); line-height: 1; text-transform: uppercase; }
h3 { font-size: clamp(24px, 3vw, 28px); line-height: 1.1; }
p { margin: 0 0 16px; }
.lede { color: var(--muted); max-width: 56ch; font-size: clamp(16px, 1.2vw + 12px, 19px); text-wrap: pretty; }
section { padding: var(--sec) 0; }
.sec-head { margin-bottom: clamp(32px, 5vw, 48px); }
.sec-head .lede { margin-top: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 16px var(--body); text-decoration: none; color: var(--ink); background: var(--yellow); border: 3px solid var(--ink); border-radius: 999px; padding: 13px 26px; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.pink { background: var(--pink); }
.btn.white { background: #fff; }
.btn.sm { font-size: 14px; padding: 9px 18px; box-shadow: 3px 3px 0 var(--ink); }
.btn.sm:hover { box-shadow: 5px 5px 0 var(--ink); }
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
@media (max-width: 520px) { .row .btn { flex: 1 1 100%; } }

/* Nav */
.nav { position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 20px); z-index: 30; background: var(--blush); border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); width: calc(100% - 2 * var(--gutter)); max-width: 1200px; margin: 0 auto; transition: background-color 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), backdrop-filter 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), -webkit-backdrop-filter 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.nav.scrolled { background-color: rgba(249, 184, 225, 0.65); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); }
.admin-bar .nav { top: calc(32px + env(safe-area-inset-top, 0px) + 20px); }
@media screen and (max-width: 782px) { .admin-bar .nav { top: calc(46px + env(safe-area-inset-top, 0px) + 20px); } }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; max-width: 100%; }
.logo { font: 400 28px var(--display); text-decoration: none; text-transform: uppercase; letter-spacing: .02em; }
.logo-img { height: 32px; width: auto; display: block; }
.logo span { color: var(--yellow); text-shadow: 2px 2px 0 var(--ink); }
.links { display: flex; gap: 12px; align-items: center; }
.links a { text-decoration: none; font-weight: 600; font-size: 14px; padding: 6px 16px; border: 2px solid var(--ink); border-radius: 999px; transition: background 0.2s ease, color 0.2s ease; }
.links a:hover { background: var(--ink); color: var(--yellow); }
.nav-right { display: flex; gap: 10px; align-items: center; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; cursor: pointer; padding: 0; color: var(--ink); display: grid; place-items: center; transition: transform .2s; }
.icon-btn:hover { transform: rotate(18deg); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }
.mmenu { display: none; }
@media (max-width: 820px) {
  .links { display: none; }
  #theme { display: none; }
  .menu-btn { display: grid; }
  .mmenu { display: grid; grid-template-rows: 0fr; position: absolute; left: 0; right: 0; top: calc(100% + 16px); background: var(--blush); transition: grid-template-rows .3s ease, border-width .3s ease, box-shadow .3s ease; border: 0px solid var(--ink); border-radius: 24px; box-shadow: 0 0 0 transparent; }
  .mmenu.open { grid-template-rows: 1fr; border-width: 3px; box-shadow: 6px 6px 0 var(--ink); }
  .mmenu > div { overflow: hidden; }
  .mmenu a { display: block; font: 400 34px/1 var(--display); text-transform: uppercase; text-decoration: none; padding: 18px var(--gutter); border-top: 2px solid rgba(27, 31, 35, .25); }
  .mmenu a:first-child { border-top: none; }
}
@media (max-width: 420px) {
  .logo { font-size: 24px; }
  .logo-img { height: 20px; }
  .btn.sm { padding: 8px 14px; font-size: 13px; }
  .icon-btn { width: 38px; height: 38px; }
}

/* Hero */
.hero { background: var(--pink); color: var(--ink); padding: clamp(120px, 14vw, 150px) 0 clamp(56px, 8vw, 96px); overflow: hidden; position: relative; display: flex; align-items: center; min-height: calc(100svh - 54px); }
.hero .wrap { max-width: 900px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; width: 100%; }
.hero .wrap > div { width: 100%; }
.hero h1 { font-size: clamp(26px, 8vw, 110px); line-height: 1.05; text-transform: uppercase; color: var(--yellow); text-shadow: 4px 4px 0 var(--ink); }
.hero .sub { font-size: clamp(17px, 1.4vw + 12px, 21px); font-weight: 500; max-width: 60ch; margin: 24px auto 28px; }
.hero .row { justify-content: center; }
.hero .row .btn { flex: 0 0 auto; }

@media (max-width: 520px) {
  .hero h1 { font-size: clamp(38px, 11vw, 60px); text-shadow: none; white-space: normal !important; }
  .hero .row .btn { flex: 1 1 100%; }
}

/* Marquee */
.strip { background: var(--ink); color: var(--yellow); white-space: nowrap; margin-top: -1px; }
.track-wrap { overflow: hidden; width: 100%; position: relative; z-index: 1; }
.track { display: inline-flex; gap: 0; padding: 14px 0; }
.track span { font: 400 clamp(18px, 2.4vw, 22px) var(--display); letter-spacing: .05em; text-transform: uppercase; padding: 0 22px; display: inline-flex; align-items: center; gap: 44px; }
.track span::after { content: "✦"; color: var(--pink); font-size: .8em; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: center; margin-bottom: clamp(48px, 8vw, 80px); }
.about-tag { display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--body); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 16px; margin-bottom: 24px; color: var(--ink); background: transparent; }
.about-tag .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--pink); }
.about-text h2 { font-size: clamp(48px, 8.5vw, 92px); line-height: 1; margin-bottom: 24px; text-transform: uppercase; color: var(--ink); }
.about-text h2 .pink-text { color: var(--pink); }
.about-text p { font-size: clamp(16px, 1.3vw + 12px, 18px); margin-bottom: 24px; color: #1B1F23; text-wrap: pretty; }
.about-text strong { font-weight: 700; color: var(--ink); }
.about-photo { position: relative; display: flex; justify-content: center; }
.photo-blob { position: absolute; width: 90%; aspect-ratio: 1; background: var(--blush); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; z-index: 0; }
.portrait-img { position: relative; z-index: 1; width: 100%; height: auto; object-fit: contain; border-radius: 20px; }

/* Stats Banner */
.stats-banner { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--ink); border-radius: 20px; background: #fff; overflow: hidden; }
.stat-col { display: flex; align-items: flex-start; gap: 16px; padding: clamp(16px, 2.5vw, 24px); border-right: 1px solid #E2E8F0; }
.stat-col:last-child { border-right: none; }
.stat-col .ico { flex: none; border: none; }
.stat-col .ico.p { background: var(--pink); }
.stat-col .ico.y { background: var(--yellow); }
.stat-col .ico.g { background: var(--mint); }
.stat-col .ico.l { background: #E2ADFF; }
.stat-text { display: flex; flex-direction: column; gap: 4px; }
.stat-text strong { font: 400 clamp(20px, 2.2vw, 26px) var(--display); line-height: 1; color: var(--ink); letter-spacing: 1px; white-space: nowrap; }
.stat-text span { font: 500 13px var(--body); line-height: 1.3; color: #555C64; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .stats-banner { grid-template-columns: repeat(2, 1fr); }
  .stat-col:nth-child(2) { border-right: none; }
  .stat-col:nth-child(1), .stat-col:nth-child(2) { border-bottom: 1px solid #E2E8F0; }
}
@media (max-width: 520px) {
  .stats-banner { grid-template-columns: 1fr; }
  .stat-col { border-right: none; border-bottom: 1px solid #E2E8F0; }
  .stat-col:last-child { border-bottom: none; }
  .stat-text span br { display: none; }
}

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: clamp(18px, 3vw, 28px); }
.svc { border: 3px solid var(--line); border-radius: 20px; padding: clamp(22px, 3.5vw, 32px); background: var(--surface); box-shadow: 6px 6px 0 var(--shadow); display: flex; flex-direction: column; gap: 12px; transition: transform .2s ease, box-shadow .2s ease; }
.svc:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--shadow); }
.svc.y, .svc.p, .svc.g { color: var(--ink); border-color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.svc.y:hover, .svc.p:hover, .svc.g:hover { box-shadow: 9px 9px 0 var(--ink); }
.svc.y { background: var(--yellow); } .svc.p { background: var(--pink); } .svc.g { background: var(--mint); }
.ico { width: 56px; height: 56px; border-radius: 16px; border: 3px solid var(--ink); background: #fff; color: var(--ink); display: grid; place-items: center; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.ico svg { width: 28px; height: 28px; }
.svc:hover .ico { transform: rotate(-8deg) scale(1.08); }
.svc p { margin: 0; max-width: 44ch; text-wrap: pretty; }
.svc ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.svc li { font-size: 13px; font-weight: 600; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 12px; background: rgba(255, 255, 255, .7); color: var(--ink); }

/* Projects */
.projects { background: var(--bg2); }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(20px, 3vw, 28px); }
.proj { display: flex; flex-direction: column; border: 3px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: 6px 6px 0 var(--shadow); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.proj:hover { transform: translateY(-6px); box-shadow: 6px 12px 0 var(--shadow); }
.shot { height: clamp(170px, 22vw, 210px); border-bottom: 3px solid var(--line); position: relative; overflow: hidden; }
.shot::before { content: ""; position: absolute; left: 14px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); box-shadow: 16px 0 0 var(--ink), 32px 0 0 var(--ink); opacity: .8; }
.shot .b { position: absolute; border: 3px solid var(--ink); border-radius: 10px; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.proj:hover .b1 { transform: translateY(-4px); } .proj:hover .b2 { transform: translateY(-8px); } .proj:hover .b3 { transform: translateY(-12px); }
.s1 { background: var(--pink); } .s2 { background: var(--yellow); } .s3 { background: var(--mint); }
.s1 .b1 { left: 18px; right: 36%; top: 40px; height: 34px; background: var(--yellow); }
.s1 .b2 { left: 18px; right: 50%; top: 86px; height: 70px; background: #fff; }
.s1 .b3 { left: 56%; right: 18px; top: 40px; height: 116px; background: var(--blush); }
.s2 .b1 { left: 18px; right: 18px; top: 40px; height: 28px; background: #fff; }
.s2 .b2 { left: 18px; width: 30%; top: 82px; height: 84px; background: var(--pink); }
.s2 .b3 { left: calc(30% + 36px); right: 18px; top: 82px; height: 84px; background: var(--blue); }
.s3 .b1 { left: 18px; width: 42%; top: 40px; height: 126px; background: #fff; }
.s3 .b2 { left: calc(42% + 36px); right: 18px; top: 40px; height: 54px; background: var(--yellow); }
.s3 .b3 { left: calc(42% + 36px); right: 18px; top: 108px; height: 58px; background: var(--pink); }
.proj .body { padding: clamp(18px, 3vw, 24px); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.proj .body p { margin: 0; color: var(--muted); font-size: 16px; }
.proj .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; margin-top: 6px; }
.proj .go svg { transition: transform .2s; }
.proj:hover .go svg { transform: translateX(5px); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; margin-top: auto; }
.tag { font: 600 12px var(--body); padding: 3px 12px; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); }
.tag.y { background: var(--yellow); } .tag.p { background: var(--pink); } .tag.g { background: var(--mint); } .tag.b { background: #BFE3F8; }

/* Testimonials */
.q-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 28px); align-items: stretch; }
.q { border: 3px solid var(--line); border-radius: 20px; padding: clamp(22px, 3.5vw, 32px); background: var(--surface); box-shadow: 6px 6px 0 var(--shadow); position: relative; margin: 0; display: flex; flex-direction: column; }
.q.full { grid-column: 1 / -1; }
.q.big { background: var(--yellow); color: var(--ink); border-color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.q.big blockquote { font: 400 clamp(24px, 3.4vw, 38px)/1.15 var(--display); }
.q blockquote { margin: 0 0 24px; font-size: clamp(16px, 1.2vw + 12px, 18px); line-height: 1.55; flex: 1; }
.q cite { font-style: normal; display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 15px; margin-top: auto; }
.q cite small { display: block; font-weight: 400; opacity: .75; font-size: 13px; }
.av { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); background: var(--pink); flex: none; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 20px; text-transform: uppercase; color: var(--ink); }
.stars { display: flex; gap: 2px; margin-bottom: 12px; color: var(--ink); flex: none; }
.stars svg { width: 20px; height: 20px; fill: var(--yellow); stroke: var(--ink); stroke-width: 2; }
.q.big .stars svg { fill: #fff; }
.mark { position: absolute; right: 20px; top: -8px; font: 400 90px/1 var(--display); color: var(--pink); text-shadow: 3px 3px 0 var(--ink); }
@media (max-width: 900px) { .q-grid { grid-template-columns: minmax(0, 1fr); } .q.full { grid-column: 1; } }

/* CTA */
.cta { background: var(--yellow); color: var(--ink); text-align: center; position: relative; overflow: hidden; margin-top: -64px; padding-top: calc(var(--sec) + 64px); }
.cta h2 { font-size: clamp(32px, 7vw, 84px); line-height: 1.05; margin: 0 auto 24px; max-width: 15ch; text-shadow: 4px 4px 0 var(--pink); }
.cta p { font-size: clamp(17px, 1.4vw + 12px, 21px); font-weight: 500; max-width: 44ch; margin: 0 auto 32px; }
.cta .row { justify-content: center; }
.cta .dot { position: absolute; width: clamp(120px, 22vw, 220px); aspect-ratio: 1; background: var(--blush); opacity: .7; }
.cta .d1 { left: -6%; top: -8%; } .cta .d2 { right: -7%; bottom: -12%; background: var(--pink); }
.cta .wrap { position: relative; z-index: 1; }
@media (max-width: 520px) {
  .cta .row .btn { flex: 1 1 100%; }
  .cta h2 { font-size: clamp(38px, 11vw, 60px); text-shadow: none; }
}

/* Footer */
footer { background: var(--ink); color: #F5F2F4; padding: clamp(48px, 7vw, 72px) 0 calc(32px); }
.f-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 40px); margin-bottom: clamp(36px, 5vw, 56px); }
footer h3 { color: var(--yellow); font-size: 22px; margin-bottom: 14px; text-transform: uppercase; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer li { display: flex; align-items: center; gap: 10px; }
footer li svg { color: var(--pink); }
footer a { color: #F5F2F4; text-underline-offset: 4px; overflow-wrap: anywhere; }
footer a:hover { color: var(--yellow); }
footer .logo { font-size: 40px; display: inline-block; margin-bottom: 12px; color: #F5F2F4; }
footer p { color: #C5CBD1; max-width: 36ch; }
.copy { border-top: 2px solid #3a424a; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: #9AA2AA; }
@media (max-width: 760px) { .f-grid { grid-template-columns: minmax(0, 1fr); } }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .sub, .hero .row, .facts { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
  .hero .sub { animation-delay: .08s; } .hero .row { animation-delay: .16s; } .facts { animation-delay: .26s; }
  .burst.back { animation: spin 50s linear infinite; }
  .cta .dot { animation: spin2 60s linear infinite; }
  .portrait { animation: fadein .8s .2s both; }
  .sticker { animation: pop .6s .5s cubic-bezier(.3, 1.6, .5, 1) both; }
  .slant { animation: bob 5s ease-in-out infinite; }
  .track { animation: marq 32s linear infinite; }
  .strip:hover .track { animation-play-state: paused; }
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
  @keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
  @keyframes fadein { from { opacity: 0; transform: translate(-50%, -46%) scale(.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
  @keyframes pop { from { opacity: 0; transform: rotate(-7deg) scale(.5); } to { opacity: 1; transform: rotate(-7deg) scale(1); } }
  @keyframes bob { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-7px); } }
  @keyframes spin { from { transform: scale(1.06) rotate(10deg); } to { transform: scale(1.06) rotate(370deg); } }
  @keyframes spin2 { to { rotate: 360deg; } }
  @keyframes marq { to { transform: translateX(-50%); } }
}

/* Section Overlaps and Rounded Corners */
.hero, .strip, section, footer { position: relative; }
.hero, section {
  border-bottom-left-radius: clamp(32px, 5vw, 64px);
  border-bottom-right-radius: clamp(32px, 5vw, 64px);
}
.hero { z-index: 10; background: var(--pink); }
.strip { z-index: 9; background: var(--ink); }
#about { z-index: 8; background: #FFF4FA; }
#services { z-index: 7; background: var(--bg); }
.projects { z-index: 6; background: var(--bg2); }
#praise { z-index: 5; background: var(--bg); }
.cta { z-index: 4; background: var(--yellow); }
footer { z-index: 3; background: var(--ink); }

.strip::before, section::before, footer::before {
  content: "";
  position: absolute;
  top: -64px;
  left: 0;
  right: 0;
  height: 65px;
  background: inherit;
  z-index: 0;
  pointer-events: none;
}

/* Modal */
.modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-box { position: relative; background: var(--surface); border-radius: 12px; width: 100%; max-width: 500px; box-shadow: 0 10px 40px rgba(0,0,0,.3); overflow: hidden; }
.modal-close { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--bg2); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.modal-close:hover { background: var(--pink); color: var(--ink); }
