/* ------------------------------------------------------------------
   INEWBIT TECH PTE LTD — company site stylesheet
   Design language: a precision lab instrument with modern AI-brand
   energy. Cool paper, petrol ink, one amber accent ("heat"), aurora
   glows. Typography: Space Grotesk (display), IBM Plex Sans (body),
   IBM Plex Mono (instrument readouts only).
------------------------------------------------------------------ */

/* ---------- fonts (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-var.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-var.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-var.woff2") format("woff2");
}

/* ---------- tokens ---------- */
:root {
  --bg: #f3f6f4;
  --surface: #ffffff;
  --ink: #0e2b33;
  --ink-hover: #17404c;
  --muted: #47626b;
  --line: #d3deda;
  --line-strong: #a9bdb8;
  --heat: #e2762d;
  --heat-deep: #b45014;
  --teal: #1b6a63;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
  --container: 1120px;
  --radius-panel: 18px;
  --radius-btn: 10px;
  --shadow-panel: 0 1px 2px rgba(14, 43, 51, 0.05),
    0 14px 34px rgba(14, 43, 51, 0.08);
  --shadow-panel-hover: 0 2px 4px rgba(14, 43, 51, 0.06),
    0 20px 44px rgba(14, 43, 51, 0.13);
}

/* ---------- reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.012em;
}
p {
  margin: 0;
}
a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--heat-deep);
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--heat-deep);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: var(--ink-hover);
  color: #fff;
  box-shadow: 0 10px 24px rgba(14, 43, 51, 0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}
/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 246, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover {
  color: var(--ink);
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover {
  color: var(--heat-deep);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn);
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.nav-toggle .bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 2.5px auto;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 104px;
}
.aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora .a1 {
  width: 540px;
  height: 540px;
  left: -140px;
  top: -180px;
  background: radial-gradient(circle, rgba(27, 106, 99, 0.34), transparent 65%);
}
.aurora .a2 {
  width: 480px;
  height: 480px;
  right: -90px;
  top: 30px;
  background: radial-gradient(circle, rgba(226, 118, 45, 0.26), transparent 65%);
  animation-delay: -8s;
}
.aurora .a3 {
  width: 640px;
  height: 640px;
  left: 28%;
  bottom: -340px;
  background: radial-gradient(circle, rgba(14, 43, 51, 0.13), transparent 60%);
  animation-delay: -16s;
}
@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(46px, 34px, 0) scale(1.08);
  }
}
.hero-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.9rem, 6.6vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-inline: auto;
}
.hero .lede {
  margin: 30px auto 0;
  font-size: 1.16rem;
  color: var(--muted);
  max-width: 60ch;
}
/* hero instrument panel */
.hero-visual svg {
  width: 100%;
  height: auto;
}
.hero-visual {
  margin-top: 72px;
  width: min(920px, 94%);
}
svg text.lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--muted);
  letter-spacing: 0.04em;
}
svg text.big {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  fill: var(--ink);
}
.hero-visual .lbl {
  font-size: 13px;
}
.hero-visual .big {
  font-size: 30px;
}
.rig-compact .lbl {
  font-size: 11px;
}
.rig-compact .big {
  font-size: 22px;
}
.rig-compact {
  display: none;
}

/* ---------- sections ---------- */
.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}
.section-head {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 24px;
}
.section-head h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
}
.section-head .lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
  justify-self: end;
}

/* ---------- services ---------- */
.svc-row {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 72px;
  align-items: center;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}
.svc-row:first-child {
  border-top: 0;
}
.svc-copy h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
}
.svc-copy .svc-body {
  margin-top: 16px;
  color: var(--muted);
  max-width: 56ch;
}
.svc-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  max-width: 52ch;
}
.svc-list li {
  position: relative;
  padding-left: 18px;
  margin-top: 8px;
  font-size: 0.97rem;
}
.svc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--heat-deep);
  border-radius: 1px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 11px;
  white-space: nowrap;
}
.svc-fig {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 26px;
  box-shadow: var(--shadow-panel);
  transition: transform 0.35s ease, box-shadow 0.35s ease,
    border-color 0.35s ease;
}
.svc-row:hover .svc-fig {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-panel-hover);
}
.svc-fig svg {
  width: 100%;
  height: auto;
}
.svc-fig .funnel {
  transition: fill 0.35s ease;
}
.svc-row:hover .svc-fig .funnel {
  fill: #fbdcc0;
}
.svc-fig .overlay-pulse {
  transition: opacity 0.35s ease;
}
.svc-row:hover .svc-fig .overlay-pulse {
  opacity: 0.3;
}
.svc-fig .chip-dark {
  transition: fill 0.35s ease;
}
.svc-row:hover .svc-fig .chip-dark {
  fill: var(--ink-hover);
}
.svc-row.alt .svc-fig {
  order: -1;
}

/* ---------- process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
  margin-top: 48px;
  list-style: none;
  padding: 0;
}
.step {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}
.step .step-num {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--heat-deep);
  font-size: 0.85rem;
}
.step h3 {
  font-size: 1.08rem;
  margin-top: 10px;
}
.step p {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- quality ---------- */
.measure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.measure {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}
.measure h3 {
  font-size: 1.08rem;
}
.measure p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- company ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: start;
}
.about-grid .lede {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 60ch;
}
.about-grid .lede + p {
  margin-top: 16px;
}
.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.fact-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.fact-list .fact-key {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--heat-deep);
  flex: 0 0 118px;
}
.fact-list .fact-val {
  font-size: 0.98rem;
}

/* ---------- footer ---------- */
.site-footer {
  background: #0b222a;
  color: #d9e4e1;
  padding: 64px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.footer-brand:hover {
  color: #fff;
}
.footer-tagline {
  margin-top: 14px;
  font-size: 0.92rem;
  max-width: 44ch;
  color: #b9cbc7;
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-nav a {
  color: #d9e4e1;
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(217, 228, 225, 0.22);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: #9fb4bb;
}

/* ---------- reveal on scroll (JS-gated) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .svc-row {
    gap: 44px;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 36px;
  }
}
@media (max-width: 920px) {
  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
  }
  .site-nav.nav-open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .site-nav a {
    display: block;
    padding: 12px 4px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle {
    display: inline-flex;
  }
  .hero {
    padding-top: 48px;
  }
  .hero-visual {
    margin-top: 48px;
  }
  .section-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .section-head .lede {
    justify-self: start;
  }
  .svc-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .svc-row.alt .svc-fig {
    order: 0;
  }
  .measure-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}
@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }
  .section {
    padding: 64px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .rig-wide {
    display: none;
  }
  .rig-compact {
    display: block;
    width: min(420px, 100%);
    margin-inline: auto;
  }
  .hero-visual {
    margin-top: 56px;
  }
}

/* ---------- motion ---------- */
/* hero entrance: single orchestrated load sequence */
.hero h1,
.hero .lede {
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero .lede {
  animation-delay: 0.12s;
}
.hero-visual {
  opacity: 0;
  animation: scaleIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* distillation flow: cards settle, channel draws, signal travels */
.hero-visual .card-left,
.hero-visual .card-right {
  opacity: 0;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: both;
}
.hero-visual .card-left {
  animation-name: cardInL;
  animation-delay: 0.5s;
}
.hero-visual .card-right {
  animation-name: cardInR;
  animation-delay: 0.66s;
}
@keyframes cardInL {
  from {
    opacity: 0;
    transform: translateX(-26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes cardInR {
  from {
    opacity: 0;
    transform: translateX(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero-visual .channel-line {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawChannel 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}
@keyframes drawChannel {
  to {
    stroke-dashoffset: 0;
  }
}
.hero-visual .flow {
  stroke: var(--heat);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 5 9;
  animation: flowIn 0.6s ease 1.5s both, flowDash 1.1s linear 1.5s infinite;
}
@keyframes flowIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.6;
  }
}
@keyframes flowDash {
  to {
    stroke-dashoffset: -28;
  }
}
.hero-visual .dot-flow,
.hero-visual .dot-c {
  opacity: 0;
  animation: dotTravel 2.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  animation-fill-mode: both;
}
.hero-visual .dot-flow {
  --travel: 192px;
}
.hero-visual .dot-c {
  --travel: 34px;
}
.hero-visual .d1 {
  animation-delay: 1.62s;
}
.hero-visual .d2 {
  animation-delay: 1.78s;
}
.hero-visual .d3 {
  animation-delay: 1.94s;
}
@keyframes dotTravel {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  78% {
    opacity: 1;
  }
  100% {
    transform: translateX(var(--travel));
    opacity: 0;
  }
}
.hero-visual .arrow-head {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.7);
  animation: arrowIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 1.68s forwards;
}
@keyframes arrowIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.hero-visual .keep-bar {
  transform: scaleX(0);
  transform-box: fill-box;
  transform-origin: left center;
  animation: keepGrow 1s cubic-bezier(0.16, 1, 0.3, 1) 1.92s forwards;
}
@keyframes keepGrow {
  to {
    transform: scaleX(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .aurora span {
    animation: none;
  }
  .hero h1,
  .hero .lede,
  .hero-visual {
    opacity: 1;
    animation: none;
  }
  .hero-visual .card-left,
  .hero-visual .card-right,
  .hero-visual .channel-line,
  .hero-visual .flow,
  .hero-visual .dot-flow,
  .hero-visual .dot-c,
  .hero-visual .arrow-head,
  .hero-visual .keep-bar {
    animation: none;
  }
  .hero-visual .card-left,
  .hero-visual .card-right {
    opacity: 1;
    transform: none;
  }
  .hero-visual .channel-line {
    stroke-dashoffset: 0;
  }
  .hero-visual .dot-flow,
  .hero-visual .dot-c {
    opacity: 1;
  }
  .hero-visual .arrow-head,
  .hero-visual .keep-bar {
    opacity: 1;
    transform: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
