/*
  NOBIR HOSSEN 2026 REDESIGN
  Premium editorial system: pure white, precise orange, calm motion.
  This layer intentionally preserves the existing HTML and functionality.
*/

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --card: #ffffff;
  --primary: #ff6a00;
  --primary-2: #ff6a00;
  --primary-rgb: 255, 106, 0;
  --primary-soft: rgba(255, 106, 0, 0.07);
  --ink: #111111;
  --gray: #5f6368;
  --muted: #7b8088;
  --line: #ececec;
  --line-strong: #dedede;
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1240px;
  --font-display: 'Outfit', 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ui: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 8px 24px rgba(17, 17, 17, 0.045);
  --shadow: 0 20px 55px rgba(17, 17, 17, 0.075);
  --shadow-lg: 0 36px 90px rgba(17, 17, 17, 0.11);
}

.dark {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --card: #ffffff;
  --ink: #111111;
  --gray: #5f6368;
  --muted: #7b8088;
  --line: #ececec;
  --line-strong: #dedede;
}

html { background: #ffffff; }
body { background: #ffffff; color: var(--ink); }
section { background: #ffffff !important; }
p { color: var(--gray); }

.display,
.h-section {
  text-wrap: balance;
}

.grad-ink,
.dark .grad-ink,
.grad-orange {
  background: none;
  color: var(--ink);
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
}

.eyebrow {
  letter-spacing: 0.1em;
  color: var(--primary);
}

.badge {
  background: #ffffff;
  border-color: rgba(255, 106, 0, 0.24);
  color: var(--primary);
  box-shadow: 0 8px 28px rgba(255, 106, 0, 0.08);
}

.badge .dot {
  box-shadow: 0 0 0 5px rgba(255, 106, 0, 0.1);
  animation: premiumPulse 2.8s ease-in-out infinite;
}

@keyframes premiumPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.18); opacity: 1; }
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  backdrop-filter: blur(20px) saturate(140%);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 36px rgba(17, 17, 17, 0.045);
}

.brand-mark {
  background: var(--primary);
  border-radius: 11px;
  box-shadow: 0 9px 24px rgba(255, 106, 0, 0.24);
}

.brand-name,
.scrolled .brand-name,
.nav-links a,
.scrolled .nav-links a,
.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active { color: var(--primary); }
.nav-links a::after { height: 1px; }
.nav-toggle,
.scrolled .nav-toggle { color: var(--ink); }

.btn { border-radius: 12px; }
.btn-primary {
  background: var(--primary);
  box-shadow: 0 10px 26px rgba(255, 106, 0, 0.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(255, 106, 0, 0.29);
}
.btn-ghost {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.035);
  backdrop-filter: none;
}

/* Hero: a white editorial canvas with restrained animated orange light. */
.hero,
.page-hero {
  background: #ffffff !important;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero {
  min-height: min(900px, 100svh);
  display: flex;
  align-items: center;
  padding-top: clamp(130px, 15vh, 180px);
}

.page-hero {
  padding-top: clamp(135px, 15vw, 180px);
  padding-bottom: clamp(65px, 8vw, 96px);
}

.hero-mesh {
  inset: -18%;
  filter: blur(72px);
  opacity: 1;
  background-image:
    radial-gradient(circle at 20% 38%, rgba(255, 106, 0, 0.14) 0, rgba(255, 106, 0, 0.04) 24%, transparent 48%),
    radial-gradient(circle at 78% 32%, rgba(255, 132, 38, 0.18) 0, rgba(255, 106, 0, 0.045) 25%, transparent 49%),
    radial-gradient(circle at 66% 84%, rgba(255, 106, 0, 0.1) 0, transparent 40%);
  animation: orangeDrift 15s ease-in-out infinite alternate;
}

@keyframes orangeDrift {
  0% { transform: translate3d(-1%, -1%, 0) scale(1); }
  50% { transform: translate3d(2%, 1%, 0) scale(1.035); }
  100% { transform: translate3d(-1%, 2%, 0) scale(1.06); }
}

.hero-grid-lines { display: none; }
.hero .lead,
.page-hero .lead { color: var(--gray); }
.crumbs,
.crumbs a { color: var(--muted); }

.hero-2col { gap: clamp(42px, 7vw, 88px); }
.hero h1 { max-width: 760px; }
.hero h1::after {
  content: '';
  display: block;
  width: 76px;
  height: 5px;
  margin-top: 24px;
  border-radius: 99px;
  background: var(--primary);
}

.trust-row {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(17, 17, 17, 0.08);
  color: var(--gray);
  box-shadow: 0 12px 34px rgba(17, 17, 17, 0.05);
}
.avatars span {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.08);
}

.hero-dash-wrap::before {
  content: '';
  position: absolute;
  inset: 10% -8% -8% 5%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 106, 0, 0.16);
  filter: blur(58px);
  animation: orangeDrift 11s ease-in-out infinite alternate-reverse;
}

.dash {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 106, 0, 0.16);
  box-shadow: 0 38px 95px rgba(17, 17, 17, 0.12), 0 18px 55px rgba(255, 106, 0, 0.13);
}
.dash-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--line);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.055);
}
.dash-card:hover {
  border-color: rgba(255, 106, 0, 0.34);
  box-shadow: 0 16px 38px rgba(255, 106, 0, 0.1);
}
.dc-val { color: var(--ink); }
.bar { background: rgba(17, 17, 17, 0.06); }
.bar i { background: var(--primary); }
.spark path.area { opacity: 0.09; }

.metrics {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric + .metric { border-left-color: var(--line); }
.metric .num { color: var(--ink); }

.card,
.proof-card,
.book,
.quote-card,
.post,
.doc-card,
.eco,
.faq-item,
.info-item,
.stat-card {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.card:hover,
.proof-card:hover,
.book:hover,
.post:hover,
.doc-card:hover,
.eco:hover {
  border-color: rgba(255, 106, 0, 0.28);
  box-shadow: var(--shadow);
}

.card-ico {
  background: var(--primary-soft);
  border-color: rgba(255, 106, 0, 0.14);
  color: var(--primary);
}

.stack-card,
.stack-card.human-layer {
  background: #ffffff !important;
  border-color: var(--line) !important;
  box-shadow: var(--shadow-sm);
}
.stack-card h3,
.stack-card p,
.stack-card.human-layer h3,
.stack-card.human-layer p { color: var(--ink); }
.stack-card p,
.stack-card.human-layer p { color: var(--gray); }
.stack-card .card-ico[style] { background: var(--primary-soft) !important; border-color: rgba(255,106,0,.15) !important; color: var(--primary) !important; }

.tabs {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.tab { color: var(--gray); }
.tab.active { background: var(--ink); color: #ffffff; }
.panel.active,
.db {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.post-cover {
  background: linear-gradient(145deg, #ffffff 0%, rgba(255, 106, 0, 0.08) 100%);
  border-bottom: 1px solid var(--line);
}
.post-cover .k { color: var(--primary); opacity: 0.9; }
.post-body h3 { color: var(--ink); }

.insights-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 30px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}
.insights-search { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 12px; color: var(--muted); }
.insights-search svg { width: 18px; height: 18px; }
.insights-search input,
.insights-toolbar select { border: 0; outline: 0; background: #ffffff; color: var(--ink); font: 500 .9rem var(--font-body); }
.insights-search input { width: 100%; padding: 11px 0; }
.insights-toolbar select { min-width: 170px; padding: 11px 14px; border-left: 1px solid var(--line); }
.post[hidden] { display: none; }

.article {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(28px, 5vw, 64px);
}
.article h2 { scroll-margin-top: 110px; }

.cta-band {
  background: #ffffff !important;
  border: 1px solid rgba(255, 106, 0, 0.22);
  box-shadow: 0 24px 68px rgba(255, 106, 0, 0.1);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  right: -180px;
  top: -210px;
  border-radius: 50%;
  background: rgba(255, 106, 0, 0.12);
  filter: blur(20px);
  pointer-events: none;
}
.cta-band h2 { color: var(--ink); }
.cta-band p { color: var(--gray); }
.cta-band input,
.cta-band textarea,
.cta-band select { background: #ffffff !important; color: var(--ink) !important; border-color: var(--line-strong) !important; }
.cta-band input::placeholder { color: var(--muted); }

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.site-footer .brand-name,
.site-footer .brand-name[style],
.foot-grid h4 { color: var(--ink) !important; }
.site-footer p,
.foot-links a,
.foot-bottom { color: var(--gray); }
.foot-links a:hover { color: var(--primary); }
.foot-bottom { border-top-color: var(--line); }
.foot-social a {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.045);
}

/* Dynamic work CMS */
.live-portfolio { border-top: 1px solid var(--line); }
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0; }
.portfolio-filter {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--gray);
  font: 600 0.84rem var(--font-ui);
}
.portfolio-filter:hover,
.portfolio-filter.is-active { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.portfolio-live-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.portfolio-live-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.portfolio-live-card:hover { transform: translateY(-6px); border-color: rgba(255,106,0,.28); box-shadow: var(--shadow); }
.portfolio-card-trigger { display: block; width: 100%; padding: 0; text-align: left; color: inherit; background: transparent; }
.portfolio-live-cover { display: grid; place-items: center; aspect-ratio: 16 / 9; background: linear-gradient(145deg, #fff, rgba(255,106,0,.08)); overflow: hidden; color: var(--primary); }
.portfolio-live-cover img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-live-cover svg { width: 42px; height: 42px; }
.portfolio-live-body { display: flex; flex-direction: column; padding: 24px; }
.portfolio-live-meta { color: var(--primary); font: 700 .72rem var(--font-ui); text-transform: uppercase; letter-spacing: .07em; }
.portfolio-live-body strong { margin-top: 10px; color: var(--ink); font: 700 1.28rem var(--font-display); }
.portfolio-live-body > span:not(.portfolio-live-meta):not(.portfolio-live-tags):not(.portfolio-live-action) { margin-top: 10px; color: var(--gray); font-size: .93rem; }
.portfolio-live-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.portfolio-live-tags em { padding: 5px 9px; background: #fafafa; border: 1px solid var(--line); border-radius: 999px; color: var(--gray); font: 600 .72rem var(--font-ui); font-style: normal; }
.portfolio-live-action { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--primary); font: 700 .86rem var(--font-ui); }

.work-viewer {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 17, 17, 0.76);
  backdrop-filter: blur(12px);
}
.work-viewer[hidden] { display: none; }
.work-viewer-backdrop { position: absolute; inset: 0; background: transparent; }
.work-viewer-panel { position: relative; width: min(1120px, 100%); max-height: 92vh; overflow: auto; background: #ffffff; border-radius: 24px; box-shadow: 0 40px 100px rgba(0,0,0,.28); }
.work-viewer-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.work-viewer-title { font: 700 1rem var(--font-display); }
.work-viewer-close { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.work-viewer-content { padding: clamp(20px, 4vw, 42px); }
.work-viewer-content iframe,
.work-viewer-content video { width: 100%; min-height: min(68vh, 720px); border: 0; border-radius: 16px; background: #f5f5f5; }
.work-story { color: var(--gray); line-height: 1.8; margin: 8px 0 28px; }
.work-video { aspect-ratio: 16 / 9; margin-bottom: 26px; }
.work-video iframe { width: 100%; height: 100%; min-height: 0; }
.work-file-link { display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px; margin: 0 0 24px; border: 1px solid rgba(255,106,0,.25); border-radius: 12px; color: var(--primary); font-weight: 700; }
.work-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.work-gallery img { width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.work-gallery figure { margin: 0; }
.work-gallery figcaption { margin-top: 7px; color: var(--muted); font-size: .78rem; }
.modal-open { overflow: hidden; }

@media (max-width: 980px) {
  .nav-links {
    background: rgba(255, 255, 255, 0.98);
    border-left-color: var(--line);
    box-shadow: -20px 0 60px rgba(17,17,17,.1);
  }
  .nav-links a { color: var(--ink); }
  .hero { min-height: auto; }
  .portfolio-live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 118px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .insights-toolbar { align-items: stretch; flex-direction: column; }
  .insights-toolbar select { width: 100%; border-left: 0; border-top: 1px solid var(--line); }
  .trust-row { border-radius: 18px; align-items: flex-start; }
  .portfolio-live-grid { grid-template-columns: 1fr; }
  .work-gallery { grid-template-columns: 1fr; }
  .work-viewer { padding: 10px; }
  .work-viewer-panel { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mesh,
  .hero-dash-wrap::before,
  .badge .dot { animation: none !important; }
}

/* Mobile navigation viewport fix. Keeps the complete drawer inside every phone screen. */
@media (max-width: 980px) {
  html,
  body { width: 100%; max-width: 100%; overflow-x: clip; }
  .site-header .nav { width: 100%; max-width: 100%; padding: 13px 20px; box-sizing: border-box; }
  .site-header .brand { position: relative; z-index: 1002; }
  .site-header .nav-toggle { position: relative; z-index: 1003; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 12px; background: #ffffff; border: 1px solid var(--line); box-shadow: 0 7px 22px rgba(17,17,17,.07); }
  .site-header .nav-toggle::before { display: none; }
  .site-header .nav-links {
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    width: min(88vw, 370px);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 92px 28px 32px;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
    transform: translate3d(101%,0,0);
    background: rgba(255,255,255,.985);
    border-left: 1px solid var(--line);
    box-shadow: -24px 0 70px rgba(17,17,17,.13);
  }
  .site-header .nav-links.open { transform: translate3d(0,0,0); }
  .site-header .nav-links li { width: 100%; border-bottom: 1px solid var(--line); }
  .site-header .nav-links a { display: block; width: 100%; padding: 15px 2px; color: var(--ink); font-size: 1rem; }
  .site-header .nav-links a::after { bottom: -1px; }
}
