:root {
  --site-ink: #eef2fa;
  --site-copy: #b9c4d6;
  --site-accent: #b4ccfa;
  --site-edge: #344057;
  --site-night: #0d1423;
  --site-panel: #151f32;
  --site-type: Inter, "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.site-navigation .logo-img { width:46px; height:auto; filter:none; }
.site-navigation .logo-btn small { text-transform:uppercase; font-size:9px; letter-spacing:.14em; }
#about, #contact {
  color-scheme:dark;
  color:var(--site-ink);
  font-family:var(--site-type);
}
#about {
  --text-main:var(--site-ink);
  --text-muted:var(--site-copy);
  --accent-blue:var(--site-accent);
  --font-sans:var(--site-type);
  background:linear-gradient(180deg,#050507,var(--site-night) 18%,var(--site-night));
  min-height:auto;
}
#about .page-container, #contact .contact-layout {
  width:min(90%,1320px);
  margin-inline:auto;
  padding-inline:0 !important;
  padding-block:clamp(64px,7vw,104px);
}
#about .founders-title, #contact h2 {
  font:550 clamp(38px,5vw,72px)/1.05 var(--site-type);
  letter-spacing:-.05em;
}
#about .founder-photo-wrap { border-radius:14px; border-color:var(--site-edge); }
#about .founder-bio strong { color:var(--site-ink); }
#about .linkedin-badge { color:var(--site-copy); }
#about .manifesto-section { background:var(--site-panel); border-color:var(--site-edge); border-radius:20px; }
#about .manifesto-quote { font-family:var(--site-type); }
#about .manifesto-btn-primary, #contact button { background:var(--site-accent); color:#14213b; border-radius:10px; }
#about .manifesto-btn-primary:hover, #contact button:hover { background:#d2e2ff; }
#about .manifesto-btn-secondary { border-color:var(--site-edge); }
#contact { background:linear-gradient(var(--site-night),#090c13); }
#contact .contact-layout { min-height:auto; border-top:1px solid var(--site-edge); }
#contact .contact-intro p { color:var(--site-copy); }
#contact .email a { color:var(--site-accent); }
#contact em { color:var(--site-accent); }
#contact :is(input,textarea) { background:var(--site-panel); color:var(--site-ink); border:1px solid var(--site-edge); border-radius:10px; }
#contact ::placeholder { color:#a1aec3; opacity:1; }
#contact :focus-visible { outline-color:var(--site-accent); }

.site-nav-actions { display:flex; align-items:center; justify-self:end; gap:6px; }
.site-theme-toggle {
  display:grid; place-items:center; width:44px; height:44px; padding:0;
  border:0; border-radius:12px; background:transparent; color:#d2dff6; cursor:pointer;
}
.site-theme-toggle:hover { background:#889fc725; }
.site-theme-toggle:focus-visible { outline:2px solid currentColor; outline-offset:-3px; }
.site-theme-toggle svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.theme-moon, [data-site-theme="light"] .theme-sun { display:none; }
[data-site-theme="light"] .theme-moon { display:block; }

html[data-site-theme="light"] {
  color-scheme:light;
  --site-ink:#172941; --site-copy:#455870; --site-accent:#305986;
  --site-edge:#c6d3e1; --site-night:#f3f6fa; --site-panel:#fff;
  --bg-primary:var(--site-night); --bg-midnight:var(--site-night);
  --bg-deep-navy:#e7eef6; --bg-card:#fff; --bg-card-hover:#f8fbff;
  --text-primary:var(--site-ink); --text-secondary:var(--site-copy); --text-muted:#50647b;
  --border-card:var(--site-edge); --border-subtle:#d4dfeb; --border-card-hover:#99b1cf;
  --accent-glacier:var(--site-accent); --accent-cyan:#205f83;
}
[data-site-theme="light"] :is(.site-navigation .header,.site-navigation .mobile-menu-sheet) {
  background:rgba(247,250,254,.95); border-color:var(--site-edge); box-shadow:0 8px 26px #20395812;
}
[data-site-theme="light"] .site-navigation :is(.logo-btn,.logo-btn small,.nav-link,.mobile-nav-link,.site-theme-toggle) { color:var(--site-ink); }
[data-site-theme="light"] .site-navigation .burger-bar { background:var(--site-ink); }
[data-site-theme="light"] .site-navigation .active::before { background:#386598; }
[data-site-theme="light"] :is(.video-hero-viewport,.video-hero-viewport .bg,.solutions-showcase,.radhabrij-content-wrapper,#about,#contact) { background:var(--site-night); color:var(--site-ink); color-scheme:light; }
[data-site-theme="light"] .bg-video { filter:grayscale(1) invert(1); mix-blend-mode:multiply; opacity:.32; }
[data-site-theme="light"] .bg-recolor-overlay { background:radial-gradient(ellipse at center,#f3f6fabd,transparent 70%); }
[data-site-theme="light"] .hero-bottom-fade { background:linear-gradient(to top,var(--site-night),transparent 34%); }
[data-site-theme="light"] .video-hero-viewport .headline-line-2 { background-image:linear-gradient(105deg,#284365,#456c97); }
[data-site-theme="light"] :is(.video-hero-viewport .subhead,.expertise-strip,.hero-eyebrow,.solution-intro,.solution-label,.solution-panel details,.solution-panel > p,.solution-panel details p,.clients-strip-heading,.lockup-sub) { color:var(--site-copy); }
[data-site-theme="light"] :is(.scroll-down-hint,.lockup-title,.solution-panel a) { color:var(--site-accent); }
[data-site-theme="light"] .solutions-showcase h2 span { -webkit-text-fill-color:var(--site-accent); }
[data-site-theme="light"] .solution-panel { background:white; border-color:var(--site-edge); box-shadow:0 8px 24px #2439510a; }
[data-site-theme="light"] .solution-panel a { border-color:var(--site-edge); }
[data-site-theme="light"] .video-hero-viewport .cta-btn { background:white; color:var(--site-ink); border-color:var(--site-edge); }
[data-site-theme="light"] :is(.video-hero-viewport .cta-primary,#contact button,#about .manifesto-btn-primary) { background:#274c77; color:white; }
[data-site-theme="light"] :is(.video-hero-viewport .cta-primary,#contact button,#about .manifesto-btn-primary):hover { background:#1d395b; color:white; }
[data-site-theme="light"] #contact ::placeholder { color:#617187; }
[data-site-theme="light"] :is(.workflow-explorer,.workflow-step-card,.toolbar,.hero-pill-item,.crm-cta-wrapper,.erp-cta-wrapper,.site-footer,.capability-icon-wrap) { background:var(--site-panel); }
[data-site-theme="light"] :is(.crm-hero,.erp-hero) h1 .gradient-line { -webkit-text-fill-color:var(--site-accent); filter:none; }
[data-site-theme="light"] :is(.btn-secondary:hover,.toolbar-btn:hover,.workflow-tab-btn.active) { color:var(--site-ink); background:#dce7f5; }

/* Reverse the white lettering while retaining the Iyve mark's red hue. */
[data-site-theme="light"] :is(.logo-radhabrij, .logo-iyve) {
  filter: invert(1) hue-rotate(180deg) brightness(.8);
}

#about .about-intro {
  display:grid; grid-template-columns:1.1fr 1fr; align-items:end;
  gap:clamp(32px,6vw,96px); padding-bottom:clamp(32px,5vw,72px);
  border-bottom:1px solid var(--site-edge);
}
#about .about-label {
  margin:0 0 18px; font-size:13px; font-weight:600; letter-spacing:.04em; color:var(--site-accent);
}
#about .founders-title { max-width:16ch; margin:0; text-wrap:balance; }
#about .about-story { max-width:53ch; font-size:clamp(16px,1.3vw,19px); line-height:1.65; color:var(--site-copy); }
#about .about-story p { margin:0; }
#about .about-story p + p { margin-top:14px; }
#about .about-team-title { margin:clamp(32px,4vw,60px) 0 24px; font-size:clamp(26px,3vw,42px); letter-spacing:-.045em; font-weight:550; }
@media (max-width:760px) {
  #about .about-intro { grid-template-columns:1fr; gap:22px; }
}

@media (max-width: 640px) {
  .video-hero-viewport { height:auto; min-height:0; }
  .page-hero {
    height:auto; min-height:100svh; gap:20px;
    padding:16px 18px max(16px,env(safe-area-inset-bottom));
  }
  .video-hero-viewport .hero { margin-block:auto; }
  .video-hero-viewport .headline { font-size:clamp(32px,9vw,54px); }
  .video-hero-viewport .cta-wrap { justify-content:center; }
  .video-hero-viewport .cta-btn, .solution-panel summary { min-height:44px; }
  .expertise-strip { margin-bottom:0; }
  #about .founder-card {
    display:grid; grid-template-columns:clamp(82px,24vw,130px) minmax(0,1fr);
    align-items:start; gap:16px;
  }
  #about .founders-grid { gap:24px; }
  #about .founder-info { padding:0; }
  #about .founder-name { font-size:21px; }
  #about .founder-bio p { font-size:15px; line-height:1.5; }
  #about .manifesto-actions { display:grid; gap:10px; }
  #contact form { grid-template-columns:minmax(0,1fr); }
  #contact form button { width:100%; min-height:48px; }

  :is(.crm-hero,.erp-hero) { grid-template-columns:minmax(0,1fr); }
  #device .toolbar { flex-wrap:wrap; justify-content:center; gap:6px 12px; border-radius:18px; }
  #device .toolbar-actions { justify-content:center; flex-wrap:wrap; }
  .toolbar-btn,.workflow-tab-btn { min-height:44px; }
  .workflow-nav { flex-wrap:wrap; }
  #device.expanded { height:100dvh; padding:12px; }
  #device.expanded :is(.crm-device-scene,.erp-device-scene) { min-height:0; }
  #device.expanded :is(.crm-device-chassis,.erp-device-chassis) { max-height:100%; }
}

/* Let each section settle into place over the first part of its entry. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    :is(.clients-container, .about-intro, .founder-card, .manifesto-section,
        .contact-intro, .contact-layout form, .section-header, .capability-card,
        .workflow-explorer, .crm-cta-wrapper, .erp-cta-wrapper) {
      animation: section-arrival 1s linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 48%;
    }
  }

  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) {
    animation-duration: 220ms;
    animation-timing-function: ease-out;
  }
}

@keyframes section-arrival {
  from { opacity: .68; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.hero-attribution { margin:16px 0 0; font-size:14px; line-height:1.5; color:var(--site-copy); }
.hero-attribution strong { color:var(--site-ink); font-weight:600; }
