/* =====================================================================
   BASE — reset, typography, layout, buttons, shared components.
   Sirf theme.css ke variables use karta hai. Colors/fonts yahan mat likho.
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--c-page); color: var(--c-ink); font: 400 var(--fs-body)/1.6 var(--f-body); }
img, video, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 680; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); font-weight: 650; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); font-weight: 650; }
p { margin: 0 0 1em; }
.lede { font-size: var(--fs-lede); color: var(--c-ink-soft); max-width: 60ch; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--c-ink); color: var(--c-on-dark); padding: 8px 14px; z-index: 60; }
.skip:focus { left: 8px; }
.ico { width: 22px; height: 22px; flex: none; }

/* layout */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--c-surface); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.section-dark { background: var(--c-ink); color: var(--c-on-dark); }
.section-dark .section-head p, .section-dark .lede { color: var(--c-on-dark-soft); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--c-ink-soft); font-size: 1.1rem; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
@media (max-width: 700px) { .section { padding: var(--section-y-mobile) 0; } .section-head { margin-bottom: 32px; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 22px; border-radius: var(--r-pill); border: 2px solid transparent;
  font: 600 1rem var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.btn .ico, .btn svg { width: 20px; height: 20px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.05rem; }
.btn-primary { background: var(--c-ink); color: var(--c-on-dark); }
.btn-primary:hover { background: #1C2540; }
.btn-gold, .section-dark .btn-primary, .s-hero .btn-primary, .s-cta .btn-primary { background: var(--c-accent); color: var(--c-ink); }
.btn-gold:hover, .section-dark .btn-primary:hover, .s-hero .btn-primary:hover, .s-cta .btn-primary:hover { background: var(--c-accent-hover); }
.btn-ghost { border-color: var(--c-ink); color: var(--c-ink); background: transparent; }
.btn-ghost:hover { background: var(--c-ink); color: var(--c-on-dark); }
.btn-ghost-light { border-color: var(--c-on-dark); color: var(--c-on-dark); background: transparent; }
.btn-ghost-light:hover { background: var(--c-on-dark); color: var(--c-ink); }
.btn-wa { background: var(--c-success); color: #fff; }
.btn-wa:hover { filter: brightness(.92); }

/* small shared bits */
.badge { display: inline-block; padding: 2px 10px; border-radius: var(--r-pill); font-size: .8rem; font-weight: 700; }
.badge-concept { background: var(--c-accent-tint); color: var(--c-accent-deep); }
.badge-client { background: #D6F0E1; color: #146C3B; }
.tag { display: inline-block; padding: 4px 12px; margin: 0 6px 8px 0; border-radius: var(--r-pill); background: var(--c-page); border: 1px solid var(--c-line); font-size: .88rem; font-weight: 600; color: var(--c-ink); }
.tag-lg { padding: 8px 16px; font-size: .95rem; background: var(--c-surface); }
.count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: var(--c-ink); color: var(--c-on-dark); font-size: .78rem; text-align: center; line-height: 18px; }
.note { background: var(--c-accent-tint); border-left: 4px solid var(--c-accent); padding: 12px 16px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .97rem; max-width: 64ch; }
.empty { background: var(--c-surface); border: 1.5px dashed var(--c-line); border-radius: var(--r-md); padding: 40px; max-width: 680px; grid-column: 1 / -1; }
.empty p { color: var(--c-ink-soft); }
.crumbs { display: flex; gap: 10px; font-size: .95rem; color: var(--c-ink-soft); margin-bottom: 20px; flex-wrap: wrap; }
.crumbs a { color: var(--c-ink-soft); }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.ticks .ico { width: 20px; height: 20px; color: var(--c-support); margin-top: 3px; }
.p-tech { margin: 0; }

/* segmented controls, chips, tabs */
.seg, .tabs { display: inline-flex; flex-wrap: wrap; background: var(--c-page); border: 1px solid var(--c-line); border-radius: var(--r-pill); padding: 4px; gap: 2px; }
.seg button, .tabs button { font: 600 .95rem var(--f-body); border: 0; background: transparent; padding: 8px 18px; border-radius: var(--r-pill); cursor: pointer; color: var(--c-ink-soft); }
.seg button[aria-pressed="true"], .tabs button[aria-selected="true"] { background: var(--c-ink); color: var(--c-on-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font: 600 .92rem var(--f-body); padding: 7px 14px; border-radius: var(--r-pill); border: 1.5px solid var(--c-line); background: var(--c-surface); color: var(--c-ink); cursor: pointer; display: inline-flex; align-items: center; }
.chips button:hover { border-color: var(--c-ink); }
.chips button.is-empty { color: var(--c-ink-soft); border-style: dashed; }
.chips .chips-more { border-color: transparent; background: transparent; color: var(--c-accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.chips button[aria-pressed="true"] { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-on-dark); border-style: solid; }
.chips button[aria-pressed="true"] .count { background: var(--c-accent); color: var(--c-ink); }
@media (max-width: 640px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; }
  .chips button { flex: none; }
}

/* portfolio card */
.work-card { display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; position: relative; }
.work-card:hover { border-color: var(--c-ink); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.work-card-media { display: block; aspect-ratio: 1200 / 750; background: var(--c-page); border-bottom: 1px solid var(--c-line); position: relative; overflow: hidden; }
.work-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s var(--ease); }
.work-card:hover .work-card-media img { transform: scale(1.03); }
.live-pill { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(13,19,33,.86); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: var(--r-pill); }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 3px rgba(61,220,132,.25); }
.work-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.work-card-body h3 { margin-bottom: 6px; }
.work-card-body h3 a { text-decoration: none; }
.work-card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.work-card-body p { color: var(--c-ink-soft); font-size: .98rem; margin-bottom: 12px; }
.work-card-body .work-card-cat { font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--c-accent-deep); margin-bottom: 6px; }
.work-card-meta { margin: auto 0 0; font-size: .92rem; display: flex; align-items: center; gap: 10px; color: var(--c-ink-soft); }
.work-live { position: relative; z-index: 1; margin-left: auto; font-weight: 700; color: var(--c-ink); text-decoration: none; border-bottom: 2px solid var(--c-accent); padding-bottom: 1px; }
.work-live:hover { color: var(--c-accent-deep); }
.badge-live { background: #DDF3E6; color: #16653A; }
.play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(19,32,58,.8); }
.play::after { content: ""; position: absolute; left: 22px; top: 17px; border-left: 16px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.vid-thumb { display: grid; place-items: center; height: 100%; color: var(--c-ink-soft); font-weight: 600; }

/* forms */
.form { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: 400 1rem var(--f-body); padding: 12px 14px; border: 1.5px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-page); color: var(--c-ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--c-ink); outline: none; background: var(--c-surface); }
.form textarea { min-height: 110px; resize: vertical; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { margin: 0; color: var(--c-support); font-weight: 600; }
.form-status.is-error { color: var(--c-danger); }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; padding: 20px; } }

/* floating WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--c-success); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(0,0,0,.35); }
.wa-float svg { width: 28px; height: 28px; }

/* sections wait for JS so there's no flash of empty layout */
[data-section]:not([data-ready]) { min-height: 1px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
