/* Bhishma Builders — design system */
:root {
  --ink: #1a1d21;
  --ink-2: #353a41;
  --muted: #6c7178;
  --paper: #fbf8f3;
  --sand: #f3ece1;
  --sand-2: #e9dfcf;
  --line: #e3dace;
  --white: #fff;
  --brick: #b4532c;
  --brick-dark: #8e3c1c;
  --brick-soft: #f6e4da;
  --gold: #c69a3c;
  --green: #2d6a4f;
  --green-soft: #e1efe7;
  --red: #b42318;
  --red-soft: #fde8e6;
  --blue: #2b5c8a;
  --blue-soft: #e3edf7;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(26, 29, 33, .06), 0 1px 3px rgba(26, 29, 33, .05);
  --shadow: 0 8px 30px rgba(26, 29, 33, .08);
  --shadow-lg: 0 24px 60px rgba(26, 29, 33, .14);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Fraunces', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--brick); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--ink); color: #e9e5de; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brick); color: #fff; box-shadow: 0 6px 20px rgba(180, 83, 44, .3); }
.btn-primary:hover { background: var(--brick-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-xs { padding: 5px 10px; font-size: .78rem; }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--red-soft); color: var(--red); }
.link { color: var(--brick); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .86); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.28rem; line-height: 1; white-space: nowrap; }
.brand-name small { display: block; font-family: var(--font); font-weight: 600; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .94rem; color: var(--ink-2); position: relative; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--brick); border-radius: 2px; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
@media (max-width: 1140px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; margin-left: 0; }
  .nav-cta { margin-left: auto; }
  .site-header.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0; background: var(--paper); padding: 18px 16px 24px; border-bottom: 1px solid var(--line); gap: 16px; }
}
@media (max-width: 560px) { .nav-cta .btn-primary { padding: 9px 14px; font-size: .82rem; } .brand-name small { display: none; } }

/* Hero */
.hero { position: relative; padding: 56px 0 90px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 85% 20%, rgba(198, 154, 60, .14), transparent 70%), radial-gradient(ellipse 50% 60% at 0% 100%, rgba(180, 83, 44, .08), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--brick); }
.hero .lead { max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-np { font-family: var(--display); font-size: 1.05rem; color: var(--brick-dark); margin-bottom: 18px; }
.clocks { display: flex; gap: 14px; flex-wrap: wrap; }
.clock { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; min-width: 150px; }
.clock small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.clock strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.hero-visual { position: relative; }
.hero-art { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 6 / 5; background: var(--sand); }
.hero-art svg { width: 100%; height: 100%; }
.float-card { position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; font-size: .85rem; display: flex; gap: 10px; align-items: center; animation: floaty 6s ease-in-out infinite; }
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.float-card strong { display: block; font-size: .86rem; }
.float-card span { color: var(--muted); font-size: .76rem; }
.fc-live { top: 18px; left: -26px; }
.fc-update { bottom: 34px; left: -40px; animation-delay: -2s; }
.fc-chat { top: 42%; right: -24px; animation-delay: -4s; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e5372b; box-shadow: 0 0 0 0 rgba(229, 55, 43, .6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(229, 55, 43, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 55, 43, 0); } }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .fc-live { left: 10px; } .fc-update { left: 10px; } .fc-chat { right: 10px; }
}
@media (max-width: 560px) { .fc-chat { display: none; } .hero { padding-top: 30px; } }

/* Trust strip */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust-row { display: flex; justify-content: space-between; gap: 22px; padding: 22px 0; flex-wrap: wrap; }
.trust-item { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: .92rem; }
.trust-item svg { width: 22px; height: 22px; color: var(--brick); flex-shrink: 0; }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card-hover { transition: transform .2s, box-shadow .2s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step { position: relative; padding: 26px 20px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: '0' counter(step); font-family: var(--display); font-size: 2.2rem; font-weight: 600; color: var(--brick); opacity: .9; display: block; margin-bottom: 10px; }
.step h3 { font-size: 1.08rem; }
.step p { font-size: .9rem; color: var(--muted); margin: 0; }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Design cards */
.design-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.design-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.design-media { position: relative; aspect-ratio: 4 / 3; background: var(--sand); overflow: hidden; }
.design-media svg, .design-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.design-card:hover .design-media svg, .design-card:hover .design-media img { transform: scale(1.04); }
.design-tag { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .93); border-radius: 999px; padding: 4px 11px; font-size: .74rem; font-weight: 600; }
.match-badge { position: absolute; top: 12px; right: 12px; background: var(--ink); color: #fff; border-radius: 999px; padding: 5px 12px; font-size: .8rem; font-weight: 700; }
.match-badge.hi { background: var(--green); }
.design-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.design-body h3 { margin-bottom: 4px; font-size: 1.2rem; }
.design-body .tagline { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.specs { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .84rem; color: var(--ink-2); margin-bottom: 14px; }
.specs span { display: inline-flex; align-items: center; gap: 5px; }
.specs svg { width: 15px; height: 15px; color: var(--muted); }
.price { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.price strong { font-size: 1.02rem; }
.price small { color: var(--muted); font-size: .76rem; }
.reasons { list-style: none; padding: 0; margin: 0 0 12px; font-size: .82rem; }
.reasons li { display: flex; gap: 6px; align-items: flex-start; margin-bottom: 3px; }
.reasons li.ok::before { content: '✓'; color: var(--green); font-weight: 700; }
.reasons li.warn::before { content: '!'; color: var(--brick); font-weight: 800; width: 10px; text-align: center; }

/* Chips & badges */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 15px; font-size: .88rem; font-weight: 500; cursor: pointer; transition: all .15s; user-select: none; }
.chip:hover { border-color: var(--ink-2); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: var(--sand); color: var(--ink-2); white-space: nowrap; }
.badge-new, .badge-open { background: var(--brick-soft); color: var(--brick-dark); }
.badge-contacted, .badge-scheduled, .badge-planning, .badge-answered { background: var(--blue-soft); color: var(--blue); }
.badge-won, .badge-completed, .badge-in_progress, .badge-closed { background: var(--green-soft); color: var(--green); }
.badge-lost, .badge-on_hold { background: #eee; color: #666; }
.badge-staff { background: var(--ink); color: #fff; }

/* Live section mock */
.live-mock { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.cam { position: relative; border-radius: var(--radius); overflow: hidden; background: #111; aspect-ratio: 16 / 10; }
.cam canvas, .cam iframe, .cam video, .cam img { width: 100%; height: 100%; display: block; border: 0; object-fit: cover; }
.cam-hud { position: absolute; inset: 0; pointer-events: none; padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; font-size: .78rem; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.cam-hud .row { display: flex; justify-content: space-between; align-items: center; }
.cam-live { display: inline-flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .45); padding: 4px 10px; border-radius: 999px; }
.mini-feed { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 18px; }
.mini-feed .item { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .9rem; }
.mini-feed .item:last-child { border: 0; }
.mini-feed .item small { color: #a7a29a; }
@media (max-width: 860px) { .live-mock { grid-template-columns: 1fr; } }

/* Services */
.service { padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.service .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--brick-soft); color: var(--brick); display: grid; place-items: center; margin-bottom: 18px; }
.service .ic svg { width: 26px; height: 26px; }
.service p { color: var(--muted); font-size: .94rem; margin: 0; }
.service-feature { grid-column: span 2; grid-row: span 2; background: var(--ink); color: #ddd8cf; border: 0; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; }
.service-feature h3 { color: #fff; font-size: 1.8rem; }
.service-feature .ic { background: rgba(255, 255, 255, .1); color: var(--gold); }
.service-feature ul { padding-left: 18px; margin: 0 0 24px; }
.service-feature li { margin-bottom: 6px; }
@media (max-width: 960px) { .service-feature { grid-column: span 2; grid-row: auto; } }
@media (max-width: 640px) { .service-feature { grid-column: auto; } }

/* Portfolio */
.work { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--sand); }
.work svg, .work img { width: 100%; height: 100%; object-fit: cover; }
.work-info { position: absolute; inset: auto 0 0 0; padding: 60px 20px 18px; background: linear-gradient(transparent, rgba(15, 15, 15, .85)); color: #fff; }
.work-info h3 { margin: 0 0 2px; font-size: 1.15rem; color: #fff; }
.work-info p { margin: 0; font-size: .82rem; opacity: .85; }

/* Areas */
.areas { display: flex; flex-wrap: wrap; gap: 10px; }
.area { padding: 10px 18px; background: #fff; border-radius: 999px; border: 1px solid var(--line); font-weight: 500; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--brick); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--brick) 0%, var(--brick-dark) 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { opacity: .9; }
.cta-band .card { color: var(--ink); }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* Forms */
.field { margin-bottom: 14px; }
.field label, .label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.input, select.input, textarea.input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: .95rem; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: 0; border-color: var(--brick); box-shadow: 0 0 0 4px rgba(180, 83, 44, .12); }
textarea.input { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-msg { font-size: .88rem; margin-top: 10px; }
.form-msg.err { color: var(--red); }
.form-msg.ok { color: var(--green); }
.hp { position: absolute; left: -9999px; }
.check { display: flex; gap: 8px; align-items: center; font-size: .9rem; cursor: pointer; }

/* Footer */
.site-footer { background: #121417; color: #b9b4ab; padding: 64px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--font); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.site-footer a { text-decoration: none; color: #b9b4ab; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer .brand-name { color: #fff; }
.footer-bottom { border-top: 1px solid #2a2d31; margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Page header */
.page-head { padding: 54px 0 34px; }
.page-head h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { text-decoration: none; }

/* Filters bar */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 30px; }
.filters select { width: auto; min-width: 170px; }

/* Wizard */
.wizard { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: start; }
.wiz-side { position: sticky; top: 100px; }
.wiz-steps { list-style: none; padding: 0; margin: 0 0 22px; }
.wiz-steps li { display: flex; gap: 12px; align-items: center; padding: 10px 0; color: var(--muted); font-weight: 500; cursor: default; }
.wiz-steps li .n { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: .82rem; font-weight: 700; background: #fff; flex-shrink: 0; }
.wiz-steps li.done { color: var(--ink-2); cursor: pointer; }
.wiz-steps li.done .n { background: var(--green); border-color: var(--green); color: #fff; }
.wiz-steps li.cur { color: var(--ink); font-weight: 700; }
.wiz-steps li.cur .n { background: var(--brick); border-color: var(--brick); color: #fff; }
.wiz-summary { font-size: .85rem; }
.wiz-summary .row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.wiz-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-sm); min-height: 440px; display: flex; flex-direction: column; }
.wiz-panel h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.wiz-nav { margin-top: auto; padding-top: 28px; display: flex; justify-content: space-between; gap: 12px; }
.wiz-progress { height: 4px; background: var(--sand); border-radius: 4px; margin-bottom: 26px; overflow: hidden; }
.wiz-progress span { display: block; height: 100%; background: var(--brick); transition: width .3s; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.opt { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; cursor: pointer; background: #fff; transition: all .15s; text-align: left; position: relative; }
.opt:hover { border-color: var(--ink-2); }
.opt.on { border-color: var(--brick); box-shadow: 0 0 0 3px rgba(180, 83, 44, .15); }
.opt.on::after { content: '✓'; position: absolute; top: 10px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--brick); color: #fff; font-size: .75rem; display: grid; place-items: center; font-weight: 700; }
.opt .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--sand); display: grid; place-items: center; margin-bottom: 12px; color: var(--brick); }
.opt .ic svg { width: 22px; height: 22px; }
.opt strong { display: block; margin-bottom: 3px; }
.opt small { color: var(--muted); font-size: .82rem; line-height: 1.4; display: block; }
.opt-style { padding: 0; overflow: hidden; }
.opt-style .thumb { aspect-ratio: 4 / 3; background: var(--sand); }
.opt-style .thumb svg { width: 100%; height: 100%; }
.opt-style .txt { padding: 12px 14px 14px; }
.counters { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.counter { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.counter .lbl strong { display: block; }
.counter .lbl small { color: var(--muted); font-size: .8rem; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.stepper button:hover { border-color: var(--ink); }
.stepper output { width: 34px; text-align: center; font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.land-input { display: flex; gap: 10px; max-width: 460px; }
.land-input .input { font-size: 1.3rem; font-weight: 600; }
.land-input select { width: 150px; flex-shrink: 0; }
.hint { font-size: .84rem; color: var(--muted); margin-top: 8px; }
.range { width: 100%; accent-color: var(--brick); }
.budget-val { font-family: var(--display); font-size: 2rem; font-weight: 600; }
@media (max-width: 900px) { .wizard { grid-template-columns: 1fr; } .wiz-side { position: static; } .wiz-steps { display: flex; overflow-x: auto; gap: 6px; margin-bottom: 10px; } .wiz-steps li { flex-direction: column; font-size: .7rem; gap: 4px; min-width: 64px; text-align: center; } .wiz-summary { display: none; } }

.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.summary-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.summary-chips .badge { font-size: .8rem; padding: 5px 12px; background: #fff; border: 1px solid var(--line); }
.alt-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 46px; }
.alt-cta .card { padding: 30px; }
.alt-cta .card.dark { background: var(--ink); color: #ddd; border: 0; }
.alt-cta .card.dark h3 { color: #fff; }
@media (max-width: 760px) { .alt-cta { grid-template-columns: 1fr; } }

/* Design detail */
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.detail-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); box-shadow: var(--shadow); }
.detail-media svg, .detail-media img { width: 100%; height: 100%; object-fit: cover; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.spec-table td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec-table td:last-child { text-align: right; font-weight: 600; }
.sticky-card { position: sticky; top: 96px; }
.currency-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--sand); }
.currency-switch button { border: 0; background: none; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; cursor: pointer; }
.currency-switch button.on { background: #fff; box-shadow: var(--shadow-sm); }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } .sticky-card { position: static; } }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-bg { position: absolute; inset: 0; background: rgba(20, 20, 20, .55); backdrop-filter: blur(3px); }
.modal-box { position: relative; background: #fff; border-radius: var(--radius-lg); width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 30px; box-shadow: var(--shadow-lg); animation: pop .2s ease-out; }
.modal-box.wide { width: min(860px, 100%); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--sand); cursor: pointer; font-size: 1.2rem; }
@keyframes pop { from { transform: scale(.97); opacity: 0; } }

/* Toast */
.toast-wrap { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: .9rem; box-shadow: var(--shadow-lg); animation: pop .2s; }
.toast.err { background: var(--red); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(0, 0, 0, .92); display: none; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* ---------- Portal & admin shared ---------- */
.app-body { background: #f6f3ee; }
.app-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.app-side { background: var(--ink); color: #c9c4bb; padding: 22px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.app-side .brand { margin: 0 6px 30px; }
.app-side .brand-name { color: #fff; font-size: 1.1rem; white-space: nowrap; }
.app-nav { display: flex; flex-direction: column; gap: 2px; }
.app-nav button, .app-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; font-weight: 500; font-size: .92rem; text-decoration: none; }
.app-nav button:hover, .app-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.app-nav button.on { background: rgba(255, 255, 255, .1); color: #fff; }
.app-nav svg { width: 18px; height: 18px; opacity: .8; }
.app-nav .count { margin-left: auto; background: var(--brick); color: #fff; border-radius: 999px; font-size: .7rem; padding: 1px 7px; font-weight: 700; }
.app-side .me { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
.app-side .me strong { color: #fff; display: block; }
.app-main { padding: 28px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.app-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.app-top h1 { font-size: 1.8rem; margin: 0; }
.app-mobile-bar { display: none; }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-side { position: fixed; z-index: 120; left: 0; width: 260px; transform: translateX(-100%); transition: transform .25s; }
  .app-shell.nav-open .app-side { transform: none; box-shadow: var(--shadow-lg); }
  .app-mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 100; }
  .app-mobile-bar .brand-name { color: #fff; font-size: 1.05rem; }
  .app-mobile-bar button { background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; }
}

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.stat small { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.stat strong { display: block; font-family: var(--display); font-size: 2.2rem; line-height: 1.1; margin-top: 4px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fcfaf7; white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid #f0ebe3; vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: #fcfaf6; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.panel h2, .panel h3 { font-family: var(--font); font-size: 1.02rem; font-weight: 700; margin-bottom: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.panel-head h2, .panel-head h3 { margin: 0; }

/* Project view */
.proj-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.ring { --p: 0; width: 96px; height: 96px; border-radius: 50%; background: conic-gradient(var(--brick) calc(var(--p) * 1%), var(--sand) 0); display: grid; place-items: center; flex-shrink: 0; }
.ring::before { content: attr(data-label); width: 76px; height: 76px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 1.5rem; font-weight: 600; }
.stage-track { display: flex; gap: 4px; margin: 18px 0 8px; }
.stage-track span { flex: 1; height: 8px; border-radius: 4px; background: var(--sand-2); }
.stage-track span.done { background: var(--green); }
.stage-track span.cur { background: var(--brick); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .55; } }
.stage-labels { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); gap: 10px; }
.proj-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .proj-grid { grid-template-columns: 1fr; } }
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 24px; }
.tl-item::before { content: ''; position: absolute; left: -26px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--green); }
.tl-item:first-child::before { border-color: var(--brick); }
.tl-item h4 { font-family: var(--font); font-size: 1rem; font-weight: 700; margin: 0 0 2px; }
.tl-meta { font-size: .78rem; color: var(--muted); margin-bottom: 6px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tl-item p { font-size: .92rem; color: var(--ink-2); margin: 0 0 8px; white-space: pre-line; }
.tl-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.tl-photos img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
.thread { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.thread-head { padding: 12px 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; cursor: pointer; background: #fcfaf7; }
.thread-head strong { font-size: .93rem; }
.thread-body { padding: 14px; display: none; }
.thread.open .thread-body { display: block; }
.msg { margin-bottom: 12px; max-width: 92%; }
.msg .bubble { background: var(--sand); padding: 10px 14px; border-radius: 14px 14px 14px 4px; font-size: .9rem; white-space: pre-line; }
.msg.staff .bubble { background: var(--blue-soft); }
.msg.mine { margin-left: auto; }
.msg.mine .bubble { background: var(--ink); color: #fff; border-radius: 14px 14px 4px 14px; }
.msg small { display: block; font-size: .72rem; color: var(--muted); margin: 3px 4px 0; }
.msg.mine small { text-align: right; }
.reply-row { display: flex; gap: 8px; }
.reply-row textarea { min-height: 44px; height: 44px; }

/* Login */
.auth-wrap { min-height: calc(100vh - 74px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: var(--ink); position: relative; overflow: hidden; }
.auth-art svg { width: 100%; height: 100%; object-fit: cover; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-form form { width: min(400px, 100%); }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-art { display: none; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .float-card { animation: none; } html { scroll-behavior: auto; } }
