/* ============================================================
   ETECHNOINDIA — Design System v2
   "Department Directory" — a flat, poster/signage-inspired look:
   alternating navy/ivory sections, thick hairline borders, hard
   offset shadows instead of blur/glow, warm marigold + rust accents.
   ============================================================ */

/* ============================================================
   ETECHNOINDIA — Design System v3
   Modern corporate: deep trust-blue with a warm orange accent,
   soft shadows, clean 1px borders, refined for a business audience.
   ============================================================ */

:root{
  --navy:#0A3D66;
  --navy-2:#0F4E80;
  --navy-3:#15628F;
  --ivory:#F6F9FC;
  --ivory-2:#EAF0F7;
  --ivory-3:#DCE6F0;
  --marigold:#F7941D;
  --rust:#D64545;
  --forest:#1E7A46;

  /* mapped onto the old token names so every page's inline <style>
     blocks (login/legal/preview cards) inherit the new look for free */
  --bg:var(--navy);
  --bg-elev:var(--navy-2);
  --panel:var(--navy-2);
  --panel-strong:var(--navy-3);
  --border:rgba(246,249,252,0.18);
  --border-soft:rgba(246,249,252,0.1);
  --ink:var(--ivory);
  --ink-soft:rgba(246,249,252,0.75);
  --ink-mute:rgba(246,249,252,0.5);
  --indigo:var(--marigold);
  --cyan:var(--rust);
  --violet:var(--forest);
  --grad-primary:linear-gradient(120deg, var(--marigold) 0%, #FBB040 100%);
  --grad-violet:linear-gradient(120deg, var(--navy-3) 0%, var(--navy) 100%);
  --radius-lg:14px;
  --radius-md:10px;
  --radius-sm:6px;
  --shadow-glow:0 10px 28px rgba(10,42,74,0.28);
  --hard-shadow:0 10px 28px rgba(10,42,74,0.28);
  --maxw:1240px;
}
[data-theme="light"]{
  --bg:var(--ivory);
  --bg-elev:var(--ivory-2);
  --panel:#FFFFFF;
  --panel-strong:var(--ivory-2);
  --border:rgba(10,61,102,0.12);
  --border-soft:rgba(10,61,102,0.07);
  --ink:#0F2A44;
  --ink-soft:rgba(15,42,68,0.68);
  --ink-mute:rgba(15,42,68,0.46);
  --shadow-glow:0 10px 28px rgba(10,42,74,0.08);
  --hard-shadow:0 10px 28px rgba(10,42,74,0.08);
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--ink);
  font-family:'Inter',system-ui,sans-serif;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  transition:background .35s ease, color .35s ease;
}
h1,h2,h3,h4{font-family:'Plus Jakarta Sans',sans-serif; font-weight:600; line-height:1.1; letter-spacing:-0.01em;}
.mono{font-family:'IBM Plex Mono',monospace;}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
button{font-family:inherit; cursor:pointer;}
ul{list-style:none;}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 24px;}
section{position:relative; padding:100px 0;}
@media(max-width:768px){ section{padding:60px 0;} }

/* subtle drafting-paper dot grid instead of a glow mesh */
.mesh{
  position:fixed; inset:0; z-index:-2; pointer-events:none;
  background-image:radial-gradient(rgba(242,169,59,0.35) 1px, transparent 1px);
  background-size:26px 26px;
  opacity:.12;
}
[data-theme="light"] .mesh{ background-image:radial-gradient(rgba(27,35,64,0.35) 1px, transparent 1px); opacity:.1; }

/* ============ NAV ============ */
.nav{position:fixed; top:0; left:0; right:0; z-index:100; padding:0; background:var(--bg); border-bottom:1px solid var(--border);}
.nav-inner{
  max-width:var(--maxw); margin:0 auto; display:flex; align-items:center; justify-content:space-between;
  background:transparent; border:none;
  padding:14px 24px; border-radius:0;
}
.brand{display:flex; align-items:center; gap:10px; font-family:'Plus Jakarta Sans',sans-serif; font-weight:700; font-size:1.1rem;}
.brand-mark{width:30px; height:30px; border-radius:6px; background:var(--marigold); color:var(--navy); display:flex; align-items:center; justify-content:center; font-size:.85rem; font-weight:700; border:1px solid var(--border);}
.nav-links{display:flex; align-items:center; gap:26px; font-size:.9rem; color:var(--ink-soft); font-weight:500;}
.nav-links a{transition:color .2s; position:relative;}
.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(--rust);}
.nav-cta{display:flex; align-items:center; gap:10px;}
.btn{display:inline-flex; align-items:center; gap:8px; justify-content:center; padding:11px 22px; border-radius:8px; font-size:.9rem; font-weight:600; border:1px solid var(--border); white-space:nowrap; transition:transform .15s ease, box-shadow .15s ease;}
.btn-primary{background:var(--marigold); color:var(--navy); box-shadow:0 10px 28px rgba(10,42,74,0.16);}
.btn-primary:hover{transform:translate(-2px,-2px); box-shadow:0 10px 28px rgba(10,42,74,0.16);}
.btn-ghost{background:var(--bg); border:1px solid var(--border); color:var(--ink);}
.btn-ghost:hover{background:var(--panel);}
.burger{display:none; width:36px; height:36px; border-radius:8px; border:1px solid var(--border); background:var(--bg); align-items:center; justify-content:center;}
.mobile-panel{display:none; position:fixed; inset:70px 16px auto 16px; z-index:99; background:var(--bg); border:1px solid var(--border); border-radius:12px; padding:16px; flex-direction:column; gap:2px; box-shadow:0 10px 28px rgba(10,42,74,0.10);}
.mobile-panel a{padding:12px 10px; border-radius:8px; font-size:.95rem; color:var(--ink-soft); font-weight:500;}
.mobile-panel a:hover{background:var(--panel); color:var(--ink);}
.mobile-panel.open{display:flex;}
@media(max-width:900px){ .nav-links{display:none;} .burger{display:flex;} .nav-cta .btn-ghost{display:none;} }

/* ============ PAGE HERO (interior pages) ============ */
.page-hero{padding:160px 0 70px;}
.breadcrumb{font-family:'IBM Plex Mono'; font-size:.76rem; color:var(--ink-mute); margin-bottom:20px; text-transform:uppercase; letter-spacing:.04em;}
.breadcrumb a{color:var(--ink-soft);}
.breadcrumb a:hover{color:var(--rust);}
.eyebrow{display:inline-flex; align-items:center; gap:8px; font-family:'IBM Plex Mono'; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color:var(--navy); background:var(--marigold); border:1px solid var(--border); padding:6px 14px; border-radius:100px; margin-bottom:22px; font-weight:600;}
.eyebrow .dot{width:6px; height:6px; border-radius:50%; background:var(--navy);}
.page-hero h1{font-size:clamp(2.1rem,4.6vw,3.6rem); max-width:20ch;}
.page-hero h1 .grad{color:var(--marigold); font-weight:700;}
.page-hero p{font-size:clamp(1rem,1.4vw,1.15rem); color:var(--ink-soft); max-width:58ch; margin-top:20px;}

/* Section headers */
.section-head{max-width:640px; margin-bottom:50px;}
.section-head.center{margin-left:auto; margin-right:auto; text-align:center;}
.section-head .kicker{font-family:'IBM Plex Mono'; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color:var(--forest); font-weight:600;}
.section-head.cyan .kicker{color:var(--rust);}
.section-head h2{font-size:clamp(1.8rem,3.2vw,2.5rem); margin-top:12px;}
.section-head p{color:var(--ink-soft); margin-top:14px; font-size:1.02rem;}

/* ============ CARDS (shared) ============ */
.card{background:var(--panel); border:1px solid var(--border); border-radius:var(--radius-lg); padding:28px; box-shadow:0 10px 28px rgba(10,42,74,0.10); transition:transform .2s ease, box-shadow .2s ease;}
[data-theme="light"] .card{box-shadow:0 10px 28px rgba(10,42,74,0.08);}
.card:hover{transform:translate(-3px,-3px); box-shadow:0 10px 28px rgba(10,42,74,0.10);}
[data-theme="light"] .card:hover{box-shadow:0 10px 28px rgba(10,42,74,0.08);}
.card .icon{width:44px; height:44px; border-radius:10px; background:var(--marigold); display:flex; align-items:center; justify-content:center; margin-bottom:18px; border:1px solid var(--border);}
.card .icon svg{width:22px; height:22px; stroke:var(--navy);}
.card h3{font-size:1.15rem; margin-bottom:10px;}
.card p{color:var(--ink-soft); font-size:.93rem; margin-bottom:16px;}
.card .tags{display:flex; flex-wrap:wrap; gap:6px;}
.card .tags span{font-size:.72rem; font-family:'IBM Plex Mono'; color:var(--ink-soft); border:1.5px solid var(--border); padding:4px 9px; border-radius:100px;}

/* ============ TIMELINE ============ */
.timeline{position:relative; padding-left:34px; border-left:1px solid var(--border);}
.timeline-item{position:relative; padding-bottom:40px;}
.timeline-item:last-child{padding-bottom:0;}
.timeline-item::before{content:''; position:absolute; left:-42px; top:2px; width:16px; height:16px; border-radius:50%; background:var(--marigold); border:1px solid var(--border);}
.timeline-item .yr{font-family:'IBM Plex Mono'; color:var(--rust); font-size:.8rem; font-weight:600; text-transform:uppercase;}
.timeline-item h4{margin:8px 0 8px; font-size:1.1rem;}
.timeline-item p{color:var(--ink-soft); font-size:.92rem; max-width:60ch;}

/* ============ GRIDS ============ */
.grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:18px;}
.grid-4{display:grid; grid-template-columns:repeat(4,1fr); gap:18px;}
.grid-2{display:grid; grid-template-columns:1fr 1fr; gap:18px;}
@media(max-width:980px){ .grid-3, .grid-4{grid-template-columns:repeat(2,1fr);} }
@media(max-width:640px){ .grid-3, .grid-4, .grid-2{grid-template-columns:1fr;} }

.value-card{background:var(--panel); border:1px solid var(--border); border-radius:var(--radius-md); padding:24px; box-shadow:0 10px 28px rgba(10,42,74,0.10);}
[data-theme="light"] .value-card{box-shadow:0 10px 28px rgba(10,42,74,0.08);}
.value-card .num{font-family:'Plus Jakarta Sans'; font-weight:700; font-size:1.4rem; color:var(--rust);}
.value-card h4{margin:10px 0 8px; font-size:1.05rem;}
.value-card p{color:var(--ink-soft); font-size:.9rem;}

.team-card{background:var(--panel); border:1px solid var(--border); border-radius:var(--radius-md); padding:22px; text-align:center; box-shadow:0 10px 28px rgba(10,42,74,0.10);}
[data-theme="light"] .team-card{box-shadow:0 10px 28px rgba(10,42,74,0.08);}
.team-card .av{width:60px; height:60px; border-radius:50%; background:var(--forest); border:1px solid var(--border); margin:0 auto 14px;}
.team-card strong{display:block; font-size:.98rem;}
.team-card span{color:var(--ink-mute); font-size:.82rem;}

/* ============ FOUNDER ============ */
.founder{display:grid; grid-template-columns:.8fr 1.2fr; gap:44px; align-items:center; background:var(--panel); border:1px solid var(--border); border-radius:var(--radius-lg); padding:40px; box-shadow:0 10px 28px rgba(10,42,74,0.10);}
[data-theme="light"] .founder{box-shadow:0 10px 28px rgba(10,42,74,0.08);}
.founder-portrait{aspect-ratio:1/1; border-radius:var(--radius-md); background:var(--marigold); border:1px solid var(--border); position:relative; overflow:hidden;}
.founder-quote{font-family:'Plus Jakarta Sans'; font-weight:600; font-size:clamp(1.1rem,2vw,1.4rem); line-height:1.4;}
.founder-name{margin-top:20px; font-weight:600;}
.founder-role{color:var(--ink-mute); font-size:.85rem; margin-top:2px;}
@media(max-width:768px){ .founder{grid-template-columns:1fr;} }

/* ============ SERVICE DETAIL ============ */
.service-detail{background:var(--panel); border:1px solid var(--border); border-radius:var(--radius-lg); padding:36px; box-shadow:0 10px 28px rgba(10,42,74,0.10); margin-bottom:22px;}
[data-theme="light"] .service-detail{box-shadow:0 10px 28px rgba(10,42,74,0.08);}
.service-detail-top{display:flex; align-items:flex-start; gap:20px; flex-wrap:wrap; justify-content:space-between;}
.service-detail h3{font-size:1.5rem; margin:14px 0 10px;}
.service-detail > p{color:var(--ink-soft); max-width:70ch; margin-bottom:22px;}
.service-cols{display:grid; grid-template-columns:1fr 1fr 1fr; gap:22px;}
.service-cols h5{font-family:'IBM Plex Mono'; font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; color:var(--rust); margin-bottom:10px; font-weight:600;}
.service-cols li{color:var(--ink-soft); font-size:.9rem; padding:5px 0 5px 18px; position:relative;}
.service-cols li::before{content:'—'; position:absolute; left:0; color:var(--ink-mute);}
.case-note{margin-top:18px; padding:14px 16px; border-left:3px solid var(--marigold); background:rgba(242,169,59,0.08); border-radius:0 8px 8px 0; font-size:.88rem; color:var(--ink-soft);}
.service-detail-cta{margin-top:22px;}
@media(max-width:900px){ .service-cols{grid-template-columns:1fr;} }

/* ============ ENGAGEMENT MODELS ============ */
.plan-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.plan-card{background:var(--panel); border:1px solid var(--border); border-radius:var(--radius-lg); padding:30px; box-shadow:0 10px 28px rgba(10,42,74,0.10);}
[data-theme="light"] .plan-card{box-shadow:0 10px 28px rgba(10,42,74,0.08);}
.plan-card.featured{border-color:var(--marigold); box-shadow:0 10px 28px rgba(10,61,102,0.14); position:relative;}
.plan-card .tag{font-family:'IBM Plex Mono'; font-size:.7rem; text-transform:uppercase; letter-spacing:.06em; color:var(--forest); font-weight:600;}
.plan-card h3{margin:12px 0 10px; font-size:1.3rem;}
.plan-card p{color:var(--ink-soft); font-size:.9rem; margin-bottom:18px;}
.plan-card ul li{padding:7px 0; font-size:.88rem; color:var(--ink-soft); border-top:1px solid var(--border-soft);}
.plan-card ul li:first-child{border-top:none;}
@media(max-width:900px){ .plan-grid{grid-template-columns:1fr;} }

/* ============ FAQ ============ */
.faq{max-width:800px;}
.faq details{background:var(--panel); border:1px solid var(--border); border-radius:var(--radius-md); padding:18px 20px; margin-bottom:12px; box-shadow:0 10px 28px rgba(10,42,74,0.10);}
[data-theme="light"] .faq details{box-shadow:0 10px 28px rgba(10,42,74,0.08);}
.faq summary{cursor:pointer; font-weight:600; font-size:.98rem; list-style:none; display:flex; justify-content:space-between; align-items:center;}
.faq summary::-webkit-details-marker{display:none;}
.faq summary::after{content:'+'; font-size:1.3rem; color:var(--rust); font-weight:700;}
.faq details[open] summary::after{content:'–';}
.faq p{color:var(--ink-soft); font-size:.9rem; margin-top:14px;}

/* ============ CONTACT ============ */
.contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:36px;}
.contact-form{background:var(--panel); border:1px solid var(--border); border-radius:var(--radius-lg); padding:34px; box-shadow:0 10px 28px rgba(10,42,74,0.10);}
[data-theme="light"] .contact-form{box-shadow:0 10px 28px rgba(10,42,74,0.08);}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px;}
.field{display:flex; flex-direction:column; gap:8px; margin-bottom:16px;}
.field label{font-size:.82rem; color:var(--ink-soft);}
.field input, .field select, .field textarea{
  background:var(--bg); border:2px solid var(--border); border-radius:8px; padding:11px 13px;
  color:var(--ink); font-family:inherit; font-size:.92rem;
}
.field input:focus, .field select:focus, .field textarea:focus{outline:none; border-color:var(--rust);}
.field textarea{resize:vertical; min-height:110px;}
.contact-info{display:flex; flex-direction:column; gap:14px;}
.info-card{background:var(--panel); border:1px solid var(--border); border-radius:var(--radius-md); padding:20px; box-shadow:0 10px 28px rgba(10,42,74,0.10); display:flex; gap:16px; align-items:flex-start;}
[data-theme="light"] .info-card{box-shadow:0 10px 28px rgba(10,42,74,0.08);}
.info-card .icn{width:40px; height:40px; border-radius:9px; background:var(--marigold); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; flex-shrink:0;}
.info-card .icn svg{width:20px; height:20px; stroke:var(--navy);}
.info-card strong{display:block; margin-bottom:4px; font-size:.95rem;}
.info-card span, .info-card a{color:var(--ink-soft); font-size:.88rem; display:block;}
.map-embed{border-radius:var(--radius-md); overflow:hidden; border:1px solid var(--border); margin-top:8px;}
.map-embed iframe{width:100%; height:220px; border:0; filter:grayscale(0.4) contrast(1.05);}
.form-note{font-size:.8rem; color:var(--ink-mute); margin-top:14px;}
@media(max-width:900px){ .contact-grid{grid-template-columns:1fr;} .form-row{grid-template-columns:1fr;} }

/* ============ CTA BAND ============ */
.ctaband{background:var(--marigold); border:1px solid var(--border); border-radius:var(--radius-lg); padding:60px 46px; display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap; color:var(--navy); box-shadow:0 10px 28px rgba(10,42,74,0.10);}
[data-theme="light"] .ctaband{box-shadow:0 10px 28px rgba(10,42,74,0.08);}
.ctaband h2{font-size:clamp(1.6rem,3vw,2.3rem); max-width:20ch;}
.ctaband p{opacity:.85; margin-top:10px; max-width:44ch;}
.ctaband .actions{display:flex; gap:12px; flex-wrap:wrap;}
.ctaband .btn-white{background:var(--navy); color:var(--ivory); padding:14px 26px; border-radius:8px; font-weight:600; font-size:.95rem; border:2px solid var(--navy);}
.ctaband .btn-outline{border:2px solid var(--navy); color:var(--navy); padding:14px 26px; border-radius:8px; font-weight:600; font-size:.95rem;}
@media(max-width:560px){ .ctaband{flex-direction:column; align-items:flex-start;} }

/* ============ FOOTER ============ */
footer{padding:70px 0 36px; border-top:1px solid var(--border); margin-top:60px; background:var(--navy); color:var(--ivory);}
footer .ink-soft-override, footer p, footer a, footer span{color:rgba(251,246,236,0.72);}
footer .brand{color:var(--ivory);}
.foot-grid{display:grid; grid-template-columns:1.1fr 1fr 1fr 1fr 1fr; gap:32px; margin-bottom:50px;}
.foot-brand p{color:rgba(251,246,236,0.68); font-size:.9rem; margin-top:14px; max-width:32ch;}
.foot-col h5{font-family:'IBM Plex Mono'; font-size:.75rem; letter-spacing:.06em; text-transform:uppercase; color:var(--marigold); margin-bottom:16px; font-weight:600;}
.foot-col a{display:block; color:rgba(251,246,236,0.72); font-size:.9rem; padding:6px 0; transition:color .2s;}
.foot-col a:hover{color:var(--ivory);}
.foot-bottom{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; padding-top:26px; border-top:1px solid rgba(251,246,236,0.18); font-size:.82rem; color:rgba(251,246,236,0.55);}
.foot-bottom a{color:rgba(251,246,236,0.75);}
.foot-social{display:flex; gap:10px;}
.foot-social a{width:36px; height:36px; border-radius:50%; background:transparent; border:2px solid rgba(251,246,236,0.35); display:flex; align-items:center; justify-content:center; color:var(--ivory);}
@media(max-width:1000px){ .foot-grid{grid-template-columns:1fr 1fr 1fr;} }
@media(max-width:640px){ .foot-grid{grid-template-columns:1fr 1fr;} }
@media(max-width:420px){ .foot-grid{grid-template-columns:1fr;} }

.float-wa{position:fixed; bottom:26px; right:26px; z-index:90; width:56px; height:56px; border-radius:50%; background:#25D366; border:2px solid var(--navy); display:flex; align-items:center; justify-content:center; box-shadow:0 10px 28px rgba(10,42,74,0.10);}
.float-wa svg{width:26px; height:26px; fill:#fff;}

@media (prefers-reduced-motion: reduce){ *{animation-duration:0.01ms !important; transition-duration:0.01ms !important;} }
.reveal{opacity:0; transform:translateY(16px); transition:opacity .5s ease, transform .5s ease;}
.reveal.in{opacity:1; transform:translateY(0);}

/* ============ HOME: HERO ============ */
.hero{padding:170px 0 90px;}
.hero h1{font-size:clamp(2.4rem, 5.2vw, 4.4rem); max-width:16ch; font-weight:600;}
.hero h1 .grad{color:var(--marigold); font-weight:700;}
.hero p{font-size:clamp(1.05rem,1.6vw,1.2rem); color:var(--ink-soft); max-width:52ch; margin-top:24px;}
.hero-actions{display:flex; gap:14px; margin-top:36px; flex-wrap:wrap;}
.hero-actions .btn{padding:14px 26px; font-size:.98rem;}
.hero-stats{display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:70px;}
.hero-stats div{background:var(--panel); border:1px solid var(--border); border-radius:var(--radius-md); padding:22px 18px; box-shadow:0 10px 28px rgba(10,42,74,0.10);}
[data-theme="light"] .hero-stats div{box-shadow:0 10px 28px rgba(10,42,74,0.08);}
.hero-stats .num{font-family:'Plus Jakarta Sans'; font-size:clamp(1.5rem,2.6vw,2rem); font-weight:700; color:var(--rust);}
.hero-stats .lbl{font-size:.78rem; color:var(--ink-mute); margin-top:6px;}
@media(max-width:768px){ .hero-stats{grid-template-columns:repeat(2,1fr);} }

/* ============ HOME: LOGO STRIP ============ */
.logostrip{padding:36px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border);}
.logostrip .label{font-family:'IBM Plex Mono'; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-mute); text-align:center; margin-bottom:24px; font-weight:600;}
.logostrip .row{display:flex; justify-content:center; gap:44px; flex-wrap:wrap; opacity:.75;}
.logostrip .row span{font-family:'Plus Jakarta Sans'; font-weight:600; color:var(--ink-soft); font-size:1rem;}

/* ============ HOME: DEPARTMENT DIRECTORY (signature element) ============ */
.directory{padding:130px 0;}
.directory-head{text-align:center; max-width:640px; margin:0 auto 56px;}
.directory-head .kicker{font-family:'IBM Plex Mono'; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color:var(--forest); font-weight:600;}
.directory-head h2{font-size:clamp(1.9rem,3.4vw,2.7rem); margin-top:14px;}
.directory-head p{color:var(--ink-soft); margin-top:16px; font-size:1.05rem;}

.directory-board{
  max-width:820px; margin:0 auto; background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius-lg); overflow:hidden; box-shadow:0 10px 28px rgba(10,42,74,0.10);
}
[data-theme="light"] .directory-board{box-shadow:0 10px 28px rgba(10,42,74,0.08);}
.db-top{
  background:var(--navy); color:var(--ivory); padding:16px 26px; display:flex; justify-content:space-between;
  align-items:center; font-family:'IBM Plex Mono'; font-size:.75rem; letter-spacing:.06em; text-transform:uppercase; font-weight:600;
}
.db-top span{color:rgba(251,246,236,0.55); font-weight:500;}
.directory-row{
  display:grid; grid-template-columns:50px 1fr auto 30px; align-items:center; gap:16px;
  padding:20px 26px; border-top:2px solid var(--border); cursor:pointer; transition:background .2s ease;
}
.directory-row:hover, .directory-row:focus-visible{background:rgba(242,169,59,0.1);}
.directory-row .db-num{font-family:'Plus Jakarta Sans'; font-weight:700; font-size:1.3rem; color:var(--rust);}
.directory-row .db-name{font-weight:600; font-size:1.02rem;}
.directory-row .db-loc{font-family:'IBM Plex Mono'; font-size:.72rem; color:var(--ink-mute); text-transform:uppercase; letter-spacing:.04em; text-align:right;}
.directory-row .db-arrow{font-size:1.1rem; color:var(--ink-mute); transition:transform .2s ease;}
.directory-row:hover .db-arrow{transform:translateX(4px); color:var(--rust);}
@media(max-width:600px){
  .directory-row{grid-template-columns:36px 1fr 20px;}
  .directory-row .db-loc{display:none;}
}

.directory-detail{
  margin-top:36px; max-width:820px; margin-left:auto; margin-right:auto;
  background:var(--navy); color:var(--ivory); border:1px solid var(--border); border-radius:var(--radius-md);
  padding:22px 26px; text-align:center; min-height:74px; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:6px;
}
.directory-detail strong{font-family:'Plus Jakarta Sans'; font-size:1.05rem;}
.directory-detail span{color:rgba(251,246,236,0.72); font-size:.92rem; max-width:56ch;}

/* ============ HOME: SERVICES BENTO ============ */
.bento{display:grid; grid-template-columns:repeat(3,1fr); gap:18px;}
@media(max-width:980px){ .bento{grid-template-columns:repeat(2,1fr);} }
@media(max-width:640px){ .bento{grid-template-columns:1fr;} }

/* ============ HOME: PROCESS ============ */
.process-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-top:50px;}
.process-step{padding:22px 20px; border-left:1px solid var(--border);}
.process-step .idx{font-family:'IBM Plex Mono'; color:var(--rust); font-size:.85rem; font-weight:600;}
.process-step h4{margin:14px 0 8px; font-size:1.05rem;}
.process-step p{color:var(--ink-soft); font-size:.9rem;}
@media(max-width:900px){ .process-grid{grid-template-columns:repeat(2,1fr);} }
@media(max-width:560px){ .process-grid{grid-template-columns:1fr;} }

/* ============ HOME: TESTIMONIALS ============ */
.testi-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px;}
.testi-card{background:var(--panel); border:1px solid var(--border); border-radius:var(--radius-lg); padding:26px; box-shadow:0 10px 28px rgba(10,42,74,0.10);}
[data-theme="light"] .testi-card{box-shadow:0 10px 28px rgba(10,42,74,0.08);}
.stars{color:var(--marigold); font-size:.95rem; margin-bottom:14px; letter-spacing:2px;}
.testi-card p{font-size:.95rem; color:var(--ink-soft); margin-bottom:20px; font-style:italic;}
.testi-who{display:flex; align-items:center; gap:10px;}
.testi-who .av{width:36px; height:36px; border-radius:50%; background:var(--forest); border:1px solid var(--border); flex-shrink:0;}
.testi-who strong{font-size:.9rem; display:block;}
.testi-who span{font-size:.78rem; color:var(--ink-mute);}
@media(max-width:900px){ .testi-grid{grid-template-columns:1fr;} }

/* ============ QUOTE POPUP: sticky mobile CTA + modal ============ */
.mobile-sticky-cta{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: none;
  transform: translateY(0);
  transition: transform 0.3s ease;
  border-top: 1px solid var(--border);
  background: var(--navy);
}
.mobile-sticky-cta.is-hidden{ transform: translateY(100%); }
.mobile-sticky-cta button{
  display: block; width: 100%; border: none; padding: 15px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; font-weight: 600;
  color: var(--navy); background: var(--marigold); cursor: pointer;
}
@media (max-width: 768px){ .mobile-sticky-cta{ display: block; } }

.aimnpopmodal{
  display: none; position: fixed; z-index: 200; inset: 0;
  background: rgba(15,18,32,0.68); padding: 20px; overflow-y: auto;
}
.aimnpopmodal.is-open{ display: flex; align-items: center; justify-content: center; }
.aimnpopmodal-content{
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg);
  max-width: 480px; width: 100%; padding: 34px 28px; position: relative;
  box-shadow: 0 10px 28px rgba(10,42,74,0.10);
}
.aimnpopmodal .close{
  position: absolute; top: 14px; right: 18px; font-size: 26px; line-height: 1;
  cursor: pointer; color: var(--ink-mute);
}
.aimnpopmodal .close:hover{ color: var(--ink); }
.aimnpopmodal .row{ margin-bottom: 14px; }
.aimnpopmodal label{ display:block; font-size:.82rem; color:var(--ink-soft); margin-bottom:6px; }
.aimnpopmodal .input,
.aimnpopmodal .textareaa{
  width: 100%; padding: 11px 13px; border: 2px solid var(--border); border-radius: 8px;
  font-size: 14px; box-sizing: border-box; background: var(--bg); color: var(--ink); font-family: inherit;
}
.aimnpopmodal .input:focus, .aimnpopmodal .textareaa:focus{ outline:none; border-color: var(--marigold); }
.aimnpopmodal button.input{
  background: var(--marigold); color: var(--navy); border: 1px solid var(--border);
  font-weight: 700; cursor: pointer; padding: 13px; border-radius: 8px;
}

.quote-toast{
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 300;
  padding: 14px 22px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #fff;
  border: 1px solid var(--border); box-shadow: 0 10px 28px rgba(10,42,74,0.10);
  opacity: 0; transition: opacity 0.3s ease;
}
.quote-toast.show{ opacity: 1; }
.quote-toast.success{ background: var(--forest); }
.quote-toast.error{ background: var(--rust); }

/* ============ SIDE STICKY ICON PANEL (desktop/tablet) ============ */
.side-sticky{
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 90;
  display: flex; flex-direction: column; gap: 10px;
}
.side-sticky a, .side-sticky button{
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--panel); border: 1px solid var(--border); color: var(--ink);
  box-shadow: 0 10px 28px rgba(10,42,74,0.10); cursor: pointer; transition: transform .15s ease;
}
.side-sticky a:hover, .side-sticky button:hover{ transform: translateX(-3px); background: var(--marigold); color: var(--navy); }
.side-sticky svg{ width: 20px; height: 20px; }
@media (max-width: 768px){ .side-sticky{ display: none; } }

/* ============ BACK TO TOP BUTTON ============ */
.back-to-top{
  position: fixed; right: 26px; bottom: 96px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--navy); color: var(--ivory); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(10,42,74,0.10); cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}
.back-to-top.show{ opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top svg{ width: 20px; height: 20px; }
@media (max-width: 768px){ .back-to-top{ bottom: 84px; right: 16px; } }

/* ============ NEWS TICKER ============ */
.news-ticker{
  background: var(--navy); color: var(--ivory); border-bottom: 1px solid var(--border);
  padding: 9px 0; overflow: hidden; white-space: nowrap; position: relative;
}
.news-ticker .ticker-track{ display: inline-block; padding-left: 100%; animation: ticker-scroll 32s linear infinite; }
.news-ticker .ticker-track span{ margin-right: 60px; font-size: .85rem; }
.news-ticker .ticker-track a{ color: var(--marigold); font-weight: 600; margin-left: 6px; }
@keyframes ticker-scroll{ 0%{ transform: translateX(0); } 100%{ transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce){ .news-ticker .ticker-track{ animation: none; } }

/* ============ VISIT COUNTER WIDGET ============ */
.visit-counter{
  display: inline-flex; align-items: center; gap: 10px; background: var(--panel);
  border: 1px solid var(--border); border-radius: 100px; padding: 8px 18px 8px 8px;
  box-shadow: 0 10px 28px rgba(10,42,74,0.10);
}
.visit-counter .vc-dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 3px rgba(47,111,94,0.25); }
.visit-counter .vc-num{ font-family: 'IBM Plex Mono'; font-weight: 600; color: var(--marigold); }
.visit-counter .vc-label{ font-size: .8rem; color: var(--ink-mute); }

/* ============ EMAIL OTP WIDGET (reusable across all forms) ============ */
.otp-widget{margin:-8px 0 16px;}
.otp-send-btn{font-size:.8rem !important; padding:8px 14px !important;}
.otp-row{display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; align-items:center;}
.otp-row input.otp-input{
  max-width:160px; letter-spacing:.2em; font-family:'IBM Plex Mono'; text-align:center;
  background:var(--bg); border:1px solid var(--border); border-radius:8px; padding:10px 12px; color:var(--ink);
}
.otp-row .otp-verify-btn{font-size:.8rem !important; padding:8px 14px !important;}
.otp-status{font-size:.8rem; font-weight:600;}
.otp-verified-badge{
  display:inline-flex; align-items:center; gap:6px; font-size:.82rem; font-weight:600;
  color:var(--forest); background:rgba(30,122,70,0.12); border:1px solid var(--forest);
  padding:6px 12px; border-radius:100px;
}

/* ============ FOOTER VISITOR COUNTER ============ */
.footer-visit-counter{
  display:inline-flex; align-items:center; gap:8px; font-family:'IBM Plex Mono'; font-size:.78rem;
  color:rgba(246,249,252,0.65); margin-top:10px;
}
.footer-visit-counter .fvc-dot{width:6px; height:6px; border-radius:50%; background:var(--marigold);}
.footer-visit-counter .visit-count-value{color:var(--marigold); font-weight:600;}

/* ============ WORLD CLOCK BAR (site-wide, above footer) ============ */
.world-clock-bar{
  background: var(--navy-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.wcb-inner{ display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.wcb-label{ font-size: .78rem; color: var(--ink-mute); font-family: 'IBM Plex Mono'; white-space: nowrap; }
.wcb-items{ display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.wcb-item{
  display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 14px 6px 10px;
}
.wcb-flag{ font-size: 1.1rem; line-height: 1; }
.wcb-city{ font-size: .76rem; font-weight: 600; color: var(--ink-soft); }
.wcb-time{ font-family: 'IBM Plex Mono'; font-size: .82rem; font-weight: 600; color: var(--marigold); }
.wcb-date{ font-size: .68rem; color: var(--ink-mute); }
@media (max-width: 640px){
  .wcb-inner{ flex-direction: column; gap: 10px; }
  .wcb-items{ gap: 8px; }
  .wcb-item{ padding: 5px 10px; }
}

/* ============ GROWTH POPUP (marketing lead form) ============ */
.left-sticky-tab{
  position: fixed; left: 0; top: 50%; transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl; z-index: 90;
  background: var(--marigold); color: var(--navy); border: none;
  border-radius: 0 10px 10px 0; padding: 18px 10px; cursor: pointer;
  font-family: 'Plus Jakarta Sans'; font-weight: 700; font-size: .82rem; letter-spacing: .03em;
  box-shadow: 3px 0 14px rgba(0,0,0,0.25); display: flex; align-items: center; gap: 8px;
  transition: padding .15s ease;
}
.left-sticky-tab:hover{ padding-left: 14px; }
@media (max-width: 768px){ .left-sticky-tab{ display: none; } }

.growth-modal{
  display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(10,20,35,0.72);
  align-items: center; justify-content: center; padding: 20px;
}
.growth-modal.show{ display: flex; }
.growth-modal-content{
  background: var(--panel); border: 2px solid var(--marigold); border-radius: var(--radius-lg);
  max-width: 920px; width: 100%; max-height: 92vh; overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1fr; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
@media (max-width: 760px){ .growth-modal-content{ grid-template-columns: 1fr; } }
.growth-modal-close{
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 32px; height: 32px;
  border: 2px solid var(--ink); background: var(--panel); color: var(--ink); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.1rem;
}
.growth-illustration{
  background: var(--bg-elev); padding: 40px 30px; display: flex; align-items: center; justify-content: center;
}
.growth-panel{ width: 100%; max-width: 260px; }
.growth-bars{ display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-bottom: 18px; }
.growth-bars div{ flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--marigold), var(--rust)); }
.growth-badge{
  width: 64px; height: 64px; border-radius: 50%; background: var(--marigold); display: flex;
  align-items: center; justify-content: center; margin: 0 auto 14px; box-shadow: 0 8px 24px rgba(247,148,29,0.35);
}
.growth-badge svg{ width: 30px; height: 30px; stroke: var(--navy); }
.growth-dots{ display: flex; justify-content: center; gap: 8px; }
.growth-dots span{ width: 8px; height: 8px; border-radius: 50%; background: var(--forest); }
.growth-dots span:nth-child(2){ background: var(--rust); }
.growth-dots span:nth-child(3){ background: var(--marigold); }
.growth-form-side{ padding: 40px 34px; }
.growth-form-side h3{ font-size: 1.5rem; margin-bottom: 22px; line-height: 1.25; }
.growth-form-side .field{ margin-bottom: 14px; }

/* ============ OUR WORK — SAMPLE DESIGN CAROUSEL ============ */
.work-carousel-wrap{ position: relative; overflow: hidden; margin-bottom: 8px; }
.work-carousel-track{
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 14px; -webkit-overflow-scrolling: touch;
}
.work-carousel-track::-webkit-scrollbar{ height: 6px; }
.work-carousel-track::-webkit-scrollbar-thumb{ background: var(--border); border-radius: 10px; }
.work-card{
  position: relative; flex: 0 0 300px; scroll-snap-align: start; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border); cursor: pointer; background: var(--panel);
}
.work-mockup{ height: 210px; position: relative; }
.work-mockup .chrome{ height: 24px; background: rgba(0,0,0,0.18); display: flex; align-items: center; gap: 5px; padding: 0 10px; }
.work-mockup .chrome span{ width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.4); }
.work-mockup .body{ height: calc(100% - 24px); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.work-mockup .bar{ border-radius: 4px; background: rgba(255,255,255,0.35); }
.work-card-overlay{
  position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,42,74,0) 0%, rgba(10,42,74,0.94) 78%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
  opacity: 0; transition: opacity .25s ease; color: #fff;
}
.work-card:hover .work-card-overlay{ opacity: 1; }
.work-card:hover .work-mockup{ filter: brightness(0.7); }
.work-mockup{ transition: filter .25s ease; }
.work-card-overlay h4{ font-size: 1rem; margin-bottom: 4px; }
.work-card-overlay p{ font-size: .8rem; color: rgba(255,255,255,0.82); }
.work-carousel-arrows{ display: flex; gap: 10px; justify-content: flex-end; margin-bottom: 14px; }
.work-carousel-arrows button{
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--panel);
  color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.work-carousel-arrows button:hover{ background: var(--marigold); color: var(--navy); border-color: var(--marigold); }

/* ============ TESTIMONIAL CAROUSEL ============ */
.testi-carousel{ position: relative; max-width: 720px; margin: 0 auto; }
.testi-carousel-viewport{ overflow: hidden; border-radius: var(--radius-lg); }
.testi-carousel-track{ display: flex; transition: transform .45s ease; }
.testi-slide{ flex: 0 0 100%; padding: 4px; }
.testi-carousel-arrows{ display: flex; justify-content: space-between; position: absolute; top: 50%; left: -50px; right: -50px; transform: translateY(-50%); pointer-events: none; }
.testi-carousel-arrows button{
  pointer-events: auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--panel); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glow);
}
.testi-carousel-arrows button:hover{ background: var(--marigold); color: var(--navy); border-color: var(--marigold); }
@media (max-width: 820px){ .testi-carousel-arrows{ left: 4px; right: 4px; } }
.testi-carousel-dots{ display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.testi-carousel-dots button{
  width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; padding: 0;
}
.testi-carousel-dots button.active{ background: var(--marigold); width: 22px; border-radius: 5px; }
.testi-card{ height: 100%; }

/* ============ FOOTER NEWSLETTER SIGNUP ============ */
.foot-newsletter{ margin-top: 14px; }
.foot-newsletter-form{ display: flex; gap: 8px; margin-top: 8px; }
.foot-newsletter-form input[type="email"]{
  flex: 1; min-width: 0; background: rgba(246,249,252,0.08); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 12px; color: var(--ink); font-size: .82rem; font-family: inherit;
}
.foot-newsletter-form button{
  background: var(--marigold); color: var(--navy); border: none; border-radius: 8px;
  padding: 9px 16px; font-weight: 700; font-size: .82rem; cursor: pointer; white-space: nowrap;
}
.foot-newsletter-status{ font-size: .76rem; margin-top: 6px; min-height: 1em; }

/* ============ MEGA MENU (desktop dropdown) ============ */
.nav-dropdown{ position: relative; }
.nav-dropdown-trigger{
  display: flex; align-items: center; gap: 5px; background: none; border: none;
  font: inherit; color: inherit; cursor: pointer; padding: 0; text-decoration: none;
}
.nav-dropdown-trigger .chev{ width: 12px; height: 12px; transition: transform .18s ease; }
.nav-dropdown.open .nav-dropdown-trigger .chev,
.nav-dropdown:hover .nav-dropdown-trigger .chev{ transform: rotate(180deg); }

.nav-mega-panel{
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: 560px; max-width: 90vw; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
  z-index: 120;
}
.nav-dropdown.open .nav-mega-panel,
.nav-dropdown:hover .nav-mega-panel,
.nav-dropdown:focus-within .nav-mega-panel{ opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
/* Small buffer so moving the mouse from trigger to panel doesn't lose hover */
.nav-dropdown::after{ content:''; position:absolute; top:100%; left:0; right:0; height:18px; }

.nav-mega-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.nav-mega-item{
  display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 10px;
  text-decoration: none; color: var(--ink);
}
.nav-mega-item:hover{ background: var(--bg-elev); }
.nav-mega-icon{
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px; background: var(--marigold);
  display: flex; align-items: center; justify-content: center;
}
.nav-mega-icon svg{ width: 18px; height: 18px; }
.nav-mega-item strong{ display: block; font-size: .85rem; margin-bottom: 2px; }
.nav-mega-item span{ display: block; font-size: .76rem; color: var(--ink-mute); line-height: 1.35; }
.nav-mega-cta{
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border);
}
.nav-mega-cta span{ font-size: .82rem; color: var(--ink-soft); }

@media (max-width: 1080px){
  .nav-dropdown{ display: none; } /* mega menu is desktop-only; mobile uses the accordion below */
}

/* ============ MOBILE NAV ACCORDION ============ */
.mobile-accordion-trigger{
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; font: inherit; color: inherit; cursor: pointer;
  padding: 12px 0; text-align: left;
}
.mobile-accordion-trigger .chev{ width: 14px; height: 14px; transition: transform .18s ease; flex-shrink: 0; }
.mobile-accordion.open .mobile-accordion-trigger .chev{ transform: rotate(180deg); }
.mobile-accordion-panel{
  max-height: 0; overflow: hidden; transition: max-height .25s ease;
  display: flex; flex-direction: column; padding-left: 12px;
}
.mobile-accordion.open .mobile-accordion-panel{ max-height: 400px; }
.mobile-accordion-panel a{ padding: 9px 0 !important; font-size: .92rem; opacity: .88; }
.mobile-accordion-viewall{ color: var(--marigold) !important; font-weight: 600; opacity: 1 !important; }

/* ============ GLOBAL SEARCH ============ */
.search-trigger-btn{
  background: none; border: 1px solid var(--border); border-radius: 8px; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer;
}
.search-trigger-btn:hover{ border-color: var(--marigold); color: var(--marigold); }
.search-trigger-btn svg{ width: 17px; height: 17px; }

.search-modal{
  display: none; position: fixed; inset: 0; z-index: 1100; background: rgba(10,20,35,0.78);
  align-items: flex-start; justify-content: center; padding: 8vh 20px 20px;
}
.search-modal.show{ display: flex; }
.search-modal-panel{
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  width: 100%; max-width: 640px; max-height: 78vh; display: flex; flex-direction: column;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5); overflow: hidden;
}
.search-input-row{
  display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.search-input-row svg{ width: 18px; height: 18px; color: var(--ink-mute); flex-shrink: 0; }
.search-input-row input{
  flex: 1; background: none; border: none; outline: none; font-size: 1rem; color: var(--ink); font-family: inherit;
}
.search-input-row .search-close-btn{
  background: none; border: none; color: var(--ink-mute); cursor: pointer; font-size: 1.3rem; line-height: 1; padding: 4px;
}
.search-results{ overflow-y: auto; padding: 10px; }
.search-hint{ padding: 24px 18px; color: var(--ink-mute); font-size: .88rem; text-align: center; }
.search-group-label{
  font-family: 'IBM Plex Mono'; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-mute); padding: 10px 10px 4px;
}
.search-result-item{
  display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink);
}
.search-result-item:hover, .search-result-item.active-result{ background: var(--bg-elev); }
.search-result-item strong{ display: block; font-size: .9rem; margin-bottom: 2px; }
.search-result-item span{ display: block; font-size: .78rem; color: var(--ink-mute); }
@media (max-width: 640px){
  .search-modal{ padding: 0; }
  .search-modal-panel{ max-width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; }
}
