/* ============================================================================
   Havik ProtoLabs Pvt. Ltd. — site stylesheet
   Visual system follows the Atomlab "Startup" layout that havik.in runs on:
   light ground, centred headings with a spaced eyebrow, soft-shadow cards,
   gradient line icons (Linea), dotted patterns, Roboto throughout.
   ============================================================================ */

/* ------------------------------------------------------------------ tokens */
:root {
  --primary:        #0B88EE;   /* bright brand blue (buttons, links, accent word) */
  --primary-deep:   #0F75BC;   /* logo blue, hover */
  --primary-dark:   #0A5A93;
  --grad-a:         #8A5CF5;   /* gradient icon start (purple) */
  --grad-b:         #12A3F7;   /* gradient icon end   (sky)    */

  --ink:            #454545;   /* headings */
  --ink-2:          #2B3036;
  --text:           #6B7683;   /* body — 4.6:1 on white */
  --text-soft:      #8A94A0;
  --logo-grey:      #6D6E71;

  --bg:             #FFFFFF;
  --bg-tint:        #ECF3F7;   /* Atomlab band colour */
  --bg-soft:        #F5F9FC;
  --line:           #E6ECF1;
  --line-2:         #D5DEE6;
  --dark:           #1B2129;
  --dark-2:         #232B35;
  --on-dark:        #B8C2CC;
  --on-dark-dim:    #8794A1;

  --up:             #3CC98E;
  --down:           #E3746B;

  --font:           Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:           "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;

  --container:      1170px;
  --gutter:         15px;
  --radius:         5px;
  --shadow:         0 0 30px rgba(0, 0, 0, 0.05);
  --shadow-hover:   0 0 41px rgba(0, 0, 0, 0.10);
  --ease:           cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* ------------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 400; line-height: 1.25; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--primary-dark); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
code { font-family: var(--mono); font-size: 0.92em; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--primary); color: #fff; padding: 12px 20px; font-size: 14px; }
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ------------------------------------------------------------------ layout */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }
.row { display: grid; gap: 30px; }
.row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 60px; }
.row--split-wide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 60px; }
@media (max-width: 991px) {
  .row--3, .row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row--split, .row--split-wide { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}
@media (max-width: 640px) {
  .row--2, .row--3, .row--4 { grid-template-columns: minmax(0, 1fr); }
}

.section { padding-block: clamp(64px, 8vw, 110px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--tint { background: var(--bg-tint); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .eyebrow { color: var(--on-dark-dim); }

/* -------------------------------------------------------------- typography */
.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--logo-grey);
  margin-bottom: 18px;
}
.eyebrow--blue { color: var(--primary); }
.title {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.title em, .display em { font-style: normal; color: var(--primary); font-weight: 400; }
.display {
  font-size: clamp(34px, 3.9vw, 54px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.display em { font-weight: 500; }
.lede { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.7; color: var(--text); }
.text-center { text-align: center; }
.mw-70 { max-width: 70ch; margin-inline: auto; }
.mw-60 { max-width: 60ch; }
.sec-head { text-align: center; margin-bottom: clamp(44px, 5vw, 70px); }
.sec-head .lede { margin-top: 18px; max-width: 64ch; margin-inline: auto; }
.sec-head--left { text-align: left; }
.sec-head--left .lede { margin-inline: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 30px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; letter-spacing: 0.0625em; line-height: 1;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(11, 136, 238, 0.28); }
.btn--primary:hover { background: var(--primary-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(11, 136, 238, 0.34); }
.btn--outline { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover { background: var(--bg-tint); color: var(--primary-deep); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn--sm { height: 42px; padding: 0 22px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--primary);
}
.link-more svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.link-more:hover svg { transform: translateX(4px); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(160%) blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner { display: flex; align-items: center; min-height: 84px; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__name b { font-size: 18px; font-weight: 900; letter-spacing: 0.06em; color: var(--ink-2); }
.brand__name span { font-size: 9px; font-weight: 700; letter-spacing: 0.3em; color: var(--logo-grey); margin-top: 3px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 34px; }
.nav__item { position: relative; }
.nav__link, .nav__toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 0; background: none; border: 0;
  font-size: 14px; font-weight: 400; color: var(--ink);
  transition: color 0.2s var(--ease);
}
.nav__link:hover, .nav__toggle:hover, .nav__link[aria-current="page"], .nav__toggle[aria-expanded="true"] { color: var(--primary); }
.nav__caret { width: 9px; height: 9px; transition: transform 0.2s var(--ease); }
.nav__toggle[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }
.nav__panel {
  position: absolute; top: calc(100% + 8px); left: -24px; min-width: 260px;
  background: #fff; border-radius: var(--radius); padding: 14px 0;
  box-shadow: 0 20px 50px rgba(20, 30, 40, 0.14);
}
/* invisible bridge over the 8px gap so the pointer can travel from the toggle to the panel */
.nav__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__panel[hidden] { display: none; }
.nav__panel a { display: block; padding: 10px 26px; font-size: 14px; color: var(--ink); }
.nav__panel a:hover { color: var(--primary); background: var(--bg-soft); }
.nav__panel a small { display: block; font-size: 12px; color: var(--text-soft); margin-top: 1px; }
.nav__cta { margin-left: 6px; }
.nav__cta-mobile { display: none; }

.nav-burger {
  display: none; width: 46px; height: 46px; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 0;
  place-items: center;
}
.nav-burger span { display: block; width: 20px; height: 2px; margin: 3px auto; background: var(--ink); border-radius: 1px; }

@media (max-width: 1080px) {
  .site-header__inner { min-height: 70px; }
  .nav-burger { display: grid; }
  .nav__cta { display: none; }
  .nav__cta-mobile { display: block; margin-top: 18px; }
  .nav__cta-mobile .btn { width: 100%; }
  .nav {
    position: fixed; inset: 70px 0 auto; margin: 0; background: #fff;
    box-shadow: 0 20px 40px rgba(20, 30, 40, 0.12); max-height: calc(100vh - 70px); overflow-y: auto;
    padding: 10px var(--gutter) 26px;
  }
  .nav[hidden] { display: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link, .nav__toggle { width: 100%; min-height: 52px; padding: 0; }
  .nav__toggle { justify-content: space-between; }
  .nav__panel { position: static; box-shadow: none; padding: 0 0 10px; min-width: 0; background: var(--bg-soft); border-radius: 0; }
  .nav__panel a { padding: 10px 16px; }
}

/* -------------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 7vw, 110px) clamp(56px, 7vw, 100px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: 40px; align-items: center; }
.hero__copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 26px; }
.hero__copy .lede { max-width: 52ch; }
.hero__visual { position: relative; z-index: 1; }
.hero .display { margin-top: -6px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 14px 30px; padding-top: 22px; border-top: 1px solid var(--line); margin-top: 8px; }
.hero__fact { display: flex; flex-direction: column; gap: 2px; }
.hero__fact b { font-size: 18px; font-weight: 500; color: var(--ink); }
.hero__fact span { font-size: 13px; color: var(--text-soft); }

/* Atomlab decorations */
.deco-dots {
  position: absolute; pointer-events: none;
  background-image: radial-gradient(var(--line-2) 1.6px, transparent 1.6px);
  background-size: 18px 18px;
  opacity: 0.9;
}
.deco-blob {
  position: absolute; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #E4F1FB, #D3E8F8);
}
.deco-block { position: absolute; pointer-events: none; background: var(--bg-tint); border-radius: 0 0 0 120px; }
.hero .deco-dots--a { width: 170px; height: 230px; left: 41%; top: 30px; opacity: 0.7; }
.hero .deco-dots--b { width: 240px; height: 150px; left: 44%; bottom: -10px; opacity: 0.7; }
.hero .deco-block { right: -80px; top: 0; width: 46vw; max-width: 720px; height: 78%; opacity: 0.8; }
.hero .deco-blob { right: -140px; top: 22%; width: 340px; height: 340px; opacity: 0.9; }
@media (max-width: 991px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero .deco-dots--a { display: none; }
  .hero .deco-dots--b { left: 6%; bottom: 0; }
  .hero .deco-block { width: 70vw; height: 60%; }
  .hero .deco-blob { width: 240px; height: 240px; right: -120px; }
}

/* mockups (pure SVG) */
.mockup { width: 100%; filter: drop-shadow(0 30px 50px rgba(20, 60, 100, 0.18)); }
.mockup--phone { max-width: 290px; }
.mockup--tilt { transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); }

/* -------------------------------------------------------------- stack strip */
.stackbar { border-block: 1px solid var(--line); background: #fff; }
.stackbar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; padding-block: 22px; }
.stackbar__label { font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--text-soft); }
.stackbar__list { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; font-weight: 500; color: var(--ink); }

/* ------------------------------------------------------------ icon boxes */
.gicon { width: 72px; height: 72px; }
.gicon [stroke-width] { stroke-width: 2.4; }
.gicon--sm [stroke-width] { stroke-width: 2.6; }
.gicon--sm { width: 48px; height: 48px; }
.gicon--xs { width: 32px; height: 32px; }
.icon-blue { color: var(--primary); }

.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(32px, 3.4vw, 48px) clamp(26px, 2.8vw, 40px);
  display: flex; flex-direction: column; gap: 18px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.card--center { text-align: center; align-items: center; }
.card--flat { box-shadow: none; border: 1px solid var(--line); }
.card--flat:hover { box-shadow: var(--shadow-hover); border-color: transparent; }
.card__title { font-size: 22px; font-weight: 400; color: var(--ink); }
.card__title--sm { font-size: 18px; font-weight: 500; }
.card__text { font-size: 14.5px; line-height: 1.8; color: var(--text); }
a.card { color: var(--text); }
a.card h3, a.card h2 { color: var(--ink); }
a.card p { color: var(--text); }
a.card:hover h3, a.card:hover h2 { color: var(--primary); }
.card .link-more { margin-top: auto; padding-top: 8px; }
.card--stagger:nth-child(even) { margin-top: 36px; }
@media (max-width: 991px) { .card--stagger:nth-child(even) { margin-top: 0; } }
.card--dark { background: var(--dark-2); }
.card--dark .card__title { color: #fff; }
.card--dark .card__text { color: var(--on-dark); }

.icon-line { display: flex; gap: 22px; align-items: flex-start; }
.icon-line .gicon--sm { flex: none; margin-top: 2px; }
.icon-line h3 { font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.icon-line p { font-size: 14.5px; line-height: 1.75; }

.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink); line-height: 1.6; }
.check-list svg { width: 20px; height: 20px; flex: none; color: var(--primary); margin-top: 3px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 3px; background: var(--bg-tint); color: var(--ink); font-size: 12.5px; font-weight: 500; }
.chip--outline { background: #fff; border: 1px solid var(--line-2); }
.chip--dark { background: rgba(255,255,255,0.08); color: var(--on-dark); }

/* ---------------------------------------------------------------- counters */
.counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.counter { text-align: center; }
.counter__num { display: block; font-size: clamp(38px, 4vw, 54px); font-weight: 300; color: var(--ink); line-height: 1; }
.counter__num em { font-style: normal; color: var(--primary); }
.counter__label { display: block; margin-top: 12px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-soft); }
@media (max-width: 767px) { .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; counter-reset: step; position: relative; }
.step { position: relative; padding-top: 26px; }
.step::before {
  content: ""; position: absolute; left: 0; right: -30px; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary) 0, var(--primary) 34px, var(--line) 34px);
}
.step:last-child::before { right: 0; }
.step__num { font-size: 13px; font-weight: 700; letter-spacing: 3px; color: var(--primary); }
.step h3 { font-size: 19px; font-weight: 500; margin: 12px 0 10px; }
.step p { font-size: 14.5px; line-height: 1.75; }
@media (max-width: 991px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .step::before { right: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------- feature */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 70px; align-items: center; }
.feature--rev > :first-child { order: 2; }
.feature__copy { display: flex; flex-direction: column; gap: 22px; }
.feature__copy .title { font-size: clamp(28px, 3vw, 38px); }
@media (max-width: 991px) { .feature { grid-template-columns: minmax(0, 1fr); gap: 40px; } .feature--rev > :first-child { order: 0; } }

/* ------------------------------------------------------------ marquee band */
.marquee { position: relative; overflow: hidden; background: var(--bg-tint); padding-block: clamp(64px, 8vw, 110px); text-align: center; }
.marquee__ghost {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: clamp(90px, 16vw, 230px); font-weight: 900; letter-spacing: 0.02em; white-space: nowrap;
  color: #fff; opacity: 0.9; pointer-events: none; user-select: none; line-height: 1;
}
.marquee__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 26px; }

/* --------------------------------------------------------------- CTA band */
.cta { background: linear-gradient(120deg, var(--primary-deep), var(--primary)); color: #fff; padding-block: clamp(52px, 6vw, 80px); }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 30px 50px; }
.cta__copy { flex: 1 1 400px; }
.cta h2 { color: #fff; font-size: clamp(26px, 2.8vw, 36px); font-weight: 300; }
.cta p { margin-top: 10px; color: #DDEEFB; font-size: 16px; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); font-size: 14px; }
.site-footer__cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-block: clamp(50px, 6vw, 80px) clamp(40px, 5vw, 60px); }
.site-footer__about p { margin-top: 20px; max-width: 34ch; line-height: 1.8; }
.site-footer h2 { font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--text-soft); margin-bottom: 20px; }
.site-footer__links { display: flex; flex-direction: column; gap: 10px; }
.site-footer__links a { color: var(--text); }
.site-footer__links a:hover { color: var(--primary); }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer address a { display: block; color: var(--text); }
.site-footer address a:hover { color: var(--primary); }
.site-footer address strong { display: block; color: var(--ink); font-weight: 700; margin-top: 6px; }
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-soft); }
.site-footer__legal p { margin-right: auto; }
.site-footer__legal a { color: var(--text-soft); }
.site-footer__legal a:hover { color: var(--primary); }
.social { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--ink); }
.social svg { width: 15px; height: 15px; }
.social:hover { border-color: var(--primary); color: var(--primary); }
@media (max-width: 991px) { .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .site-footer__cols { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ page header */
.page-head { position: relative; overflow: hidden; background: var(--bg-tint); padding-block: clamp(48px, 6vw, 90px); }
.page-head .deco-dots { width: 240px; height: 240px; right: 6%; top: 20px; }
.page-head .deco-blob { width: 320px; height: 320px; right: -120px; bottom: -160px; opacity: 0.7; }
.page-head__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 50px; align-items: end; }
.page-head__copy { display: flex; flex-direction: column; gap: 20px; max-width: 64ch; }
.page-head h1 { font-size: clamp(34px, 4.2vw, 54px); font-weight: 300; line-height: 1.12; letter-spacing: -0.015em; }
.page-head h1 em { font-style: normal; font-weight: 400; color: var(--primary); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--text-soft); }
.crumbs a { color: var(--text-soft); }
.crumbs a:hover { color: var(--primary); }
.crumbs [aria-current] { color: var(--ink); }
.spec { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 28px; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; font-size: 14px; }
.spec div + div { border-top: 1px solid var(--line); }
.spec dt { font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 11px; color: var(--text-soft); padding-top: 2px; }
.spec dd { color: var(--ink); text-align: right; }
@media (max-width: 991px) { .page-head__inner { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------- diagram */
.diagram { overflow-x: auto; padding-bottom: 6px; }
.diagram svg { min-width: 860px; width: 100%; height: auto; display: block; }
.diagram--free svg { min-width: 0; }

/* ------------------------------------------------------------------- faq */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 50px; }
.faq details { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 17px; font-weight: 500; color: var(--ink); padding-block: 8px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 300; color: var(--primary); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-top: 6px; font-size: 14.5px; line-height: 1.8; }
@media (max-width: 767px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------- product */
.product-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
@media (max-width: 991px) { .product-strip { grid-template-columns: minmax(0, 1fr); } }
.product { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.product:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.product__visual { background: var(--dark); padding: 22px; }
.product__visual--tint { background: var(--bg-tint); }
.product__body { padding: 26px 30px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product__kicker { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--primary); }
.product__title { font-size: 20px; font-weight: 500; }
.product__text { font-size: 14px; line-height: 1.75; }
.product .chips { margin-top: auto; padding-top: 10px; }

/* ------------------------------------------------------------- utilities */
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; } .mt-4 { margin-top: 44px; } .mt-6 { margin-top: 64px; }
.mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 30px; }
.gap-2 { gap: 20px; } .gap-3 { gap: 30px; }
.flex { display: flex; } .col { flex-direction: column; } .center { align-items: center; justify-content: center; }
.small { font-size: 13px; color: var(--text-soft); }
.placeholder-note { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: #FFF4D6; color: #8A6100; padding: 4px 8px; border-radius: 3px; }

/* ============================================================================
   Motion — ported from Atomlab (Agency demo)
   · tm-animation.move-up  → .reveal / .is-in   (waypoint at 100% → IntersectionObserver)
   · tm-animation-queue    → stagger via --i     (100 ms per item)
   · headroom header       → .is-stuck / .is-hidden (compact 70px, shadow, slide down)
   · Slider Revolution hero timeline → .hero-in keyframes with the demo's delays
   · marqueBackground()    → CSS keyframes, 100 px/s
   · tm_counter            → data-count count-up on reveal
   · #page-scroll-up       → .to-top, shows on scroll-up past 200 px
   Everything is gated on html.js so nothing is hidden without JavaScript, and
   prefers-reduced-motion shows the resting state immediately.
   ============================================================================ */

@keyframes moveVertical { to { transform: translateY(0); opacity: 1; } }
@keyframes headerSlideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes heroFromRight { from { transform: translateX(60%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes heroScaleIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes heroMaskIn { from { clip-path: inset(0 100% 0 0); opacity: 1; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes heroUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes marqueeLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* reveal on scroll */
html.js .reveal { opacity: 0; transform: translateY(110px); will-change: transform, opacity; }
html.js .reveal.is-in { animation: moveVertical 0.65s ease forwards; animation-delay: calc(var(--i, 0) * 100ms); }

/* header: headroom behaviour */
.site-header { transition: box-shadow 0.3s var(--ease), transform 0.4s var(--ease); }
.site-header.is-stuck { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); animation: headerSlideDown 0.6s ease; }
.site-header.is-stuck .site-header__inner { min-height: 70px; }
.site-header.is-hidden { transform: translateY(-100%); animation: none; box-shadow: none; }

/* hero entrance — Slider Revolution timeline from the Agency demo:
   device image 10ms/1500ms from the right · bg shape 700ms scale .9→1 · eyebrow 700ms mask ·
   title 1500ms mask · buttons 2400/2600ms rise 50px. Delays trimmed ~35% so the page feels quick. */
html.js .hero:not(.hero--in) .hero__visual,
html.js .hero:not(.hero--in) .deco-blob,
html.js .hero:not(.hero--in) .hero__copy > * { opacity: 0; }
.hero--in .hero__visual { animation: heroFromRight 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both; }
.hero--in .deco-blob   { animation: heroScaleIn 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.45s both; }
.hero--in .eyebrow     { animation: heroMaskIn 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.45s both; }
.hero--in .display     { animation: heroMaskIn 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.9s both; }
.hero--in .lede        { animation: heroUp 0.8s cubic-bezier(0.65, 0, 0.35, 1) 1.3s both; }
.hero--in .btn-row     { animation: heroUp 0.8s cubic-bezier(0.65, 0, 0.35, 1) 1.6s both; }
.hero--in .hero__facts { animation: heroUp 0.8s cubic-bezier(0.65, 0, 0.35, 1) 1.85s both; }

/* marquee band: continuous drift, 100 px/s like marqueBackground() */
.marquee__ghost { display: flex; gap: 0.6em; white-space: nowrap; left: 0; transform: translateY(-50%); animation: marqueeLeft 40s linear infinite; }
.marquee__ghost span { flex: none; }
.marquee:hover .marquee__ghost { animation-play-state: paused; }

/* box icon style-5 (Agency "welcome" row): 100px white disc, blue on hover */
.disc-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px; text-align: center; }
.disc { display: flex; flex-direction: column; align-items: center; gap: 22px; color: var(--ink); }
.disc__icon { width: 100px; height: 100px; border-radius: 50%; background: #fff; box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06); display: grid; place-items: center; color: var(--primary); transition: all 0.35s var(--ease); }
.disc__icon svg { width: 40px; height: 40px; }
.disc:hover .disc__icon { background: var(--primary); color: #fff; box-shadow: 0 2px 47px rgba(0, 0, 0, 0.13); transform: translateY(-6px); }
.disc h3 { font-size: 17px; font-weight: 500; }
@media (max-width: 991px) { .disc-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .disc-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* card hover to Atomlab's 10px */
.card:hover, .product:hover { transform: translateY(-10px); }

/* scroll to top */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(11, 136, 238, 0.35); display: grid; place-items: center; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top svg { width: 18px; height: 18px; }

@media print { html.js .reveal { opacity: 1; transform: none; animation: none; } }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; animation: none; }
  html.js .hero:not(.hero--in) .hero__visual, html.js .hero:not(.hero--in) .deco-blob, html.js .hero:not(.hero--in) .hero__copy > * { opacity: 1; }
  .hero--in * { animation: none !important; }
  .marquee__ghost { animation: none; }
  .site-header.is-stuck { animation: none; }
}

/* ============================================================================
   Batch 2 components — industries, portfolio, about, careers, contact, legal
   ============================================================================ */

/* portfolio grid with Atomlab-style hover overlay */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
@media (max-width: 991px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .work-grid { grid-template-columns: minmax(0, 1fr); } }
.work { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; color: inherit; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.work[hidden] { display: none; }
.work:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); color: inherit; }
.work__visual { aspect-ratio: 4 / 3; background: var(--dark); display: grid; place-items: center; padding: 26px; overflow: hidden; }
.work__visual svg { width: 100%; height: 100%; }
.work__visual--tint { background: var(--bg-tint); }
.work__visual--blue { background: linear-gradient(135deg, #1F5FA6, #0B88EE); }
.work__body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 6px; }
.work__kicker { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--primary); }
.work__title { font-size: 19px; font-weight: 500; color: var(--ink); }
.work__text { font-size: 14px; line-height: 1.7; color: var(--text); }
.work__overlay { position: absolute; inset: 0; background: rgba(11, 136, 238, 0.92); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; opacity: 0; transform: translateY(12px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.work:hover .work__overlay, .work:focus-visible .work__overlay { opacity: 1; transform: translateY(0); }
.work__overlay strong { font-size: 20px; font-weight: 500; }
.work__overlay span { font-size: 13px; opacity: 0.9; margin-top: 6px; }
.work__overlay .link-more { color: #fff; margin-top: 18px; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 44px; }
.filter { min-height: 42px; padding: 0 20px; border-radius: 21px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; transition: all 0.25s var(--ease); }
.filter:hover { border-color: var(--primary); color: var(--primary); }
.filter[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* case study */
.case-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.case-meta div { border-top: 2px solid var(--line-2); padding-top: 14px; }
.case-meta dt { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-soft); }
.case-meta dd { margin-top: 6px; font-size: 15px; color: var(--ink); }
@media (max-width: 767px) { .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prose-block { max-width: 70ch; }
.prose-block h2 { font-size: 26px; font-weight: 400; margin: 44px 0 14px; }
.prose-block h2:first-child { margin-top: 0; }
.prose-block p { margin-bottom: 16px; font-size: 16px; line-height: 1.8; }
.prose-block ul { margin: 0 0 16px 20px; list-style: disc; }
.prose-block li { margin-bottom: 6px; line-height: 1.7; }

/* timeline (tm-timeline) */
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--line-2); }
.timeline li { position: relative; padding-top: 34px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--primary); box-sizing: border-box; }
.timeline b { display: block; font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--primary); }
.timeline h3 { font-size: 18px; font-weight: 500; margin: 8px 0 6px; }
.timeline p { font-size: 14px; line-height: 1.7; }
@media (max-width: 991px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } .timeline::before { display: none; } }
@media (max-width: 560px) { .timeline { grid-template-columns: minmax(0, 1fr); } }

/* team */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.team--6, .team--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 50px; }
.team--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.team--5 .member { grid-column: span 2; }
.team--5 .member:nth-child(4) { grid-column: 2 / span 2; }
@media (max-width: 991px) { .team, .team--6, .team--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .team--5 .member, .team--5 .member:nth-child(4) { grid-column: auto; } }
@media (max-width: 560px) { .team { grid-template-columns: minmax(0, 1fr); } }
.member { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.member__photo { width: 160px; height: 160px; border-radius: 50%; background: linear-gradient(135deg, #DCEEFB, #F5F9FC); display: grid; place-items: center; font-size: 44px; font-weight: 300; color: var(--primary-deep); box-shadow: var(--shadow); overflow: hidden; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 20px; font-weight: 500; }
.member__role { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); }
.member__meta { font-size: 13px; color: var(--text); margin-top: -6px; }
.member p { font-size: 14px; line-height: 1.7; max-width: 30ch; }

/* values */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
@media (max-width: 991px) { .values { grid-template-columns: minmax(0, 1fr); } }

/* careers */
.role { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 30px; align-items: center; background: #fff; transition: box-shadow 0.3s var(--ease); }
.role:hover { box-shadow: var(--shadow-hover); }
.role h3 { font-size: 20px; font-weight: 500; }
.role__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; font-size: 13px; color: var(--text-soft); }
.role p { margin-top: 10px; font-size: 14.5px; line-height: 1.7; }
@media (max-width: 640px) { .role { grid-template-columns: minmax(0, 1fr); } }

/* contact form */
.contact-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 50px; align-items: start; }
@media (max-width: 991px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }
.form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 640px) { .field-pair { grid-template-columns: minmax(0, 1fr); } }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(11, 136, 238, 0.12); }
.form textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236B7683' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 40px; }
.form ::placeholder { color: #9AA5B1; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.6; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); flex: none; }
.form__status { padding: 14px 16px; border-radius: var(--radius); background: var(--bg-tint); font-size: 14px; color: var(--ink); }
.form__status[hidden] { display: none; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.contact-cards { display: flex; flex-direction: column; gap: 24px; }
.map { position: relative; aspect-ratio: 5 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-tint); box-shadow: var(--shadow); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map__open { position: absolute; right: 12px; bottom: 12px; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 3px; box-shadow: var(--shadow); font-size: 12px; font-weight: 700; text-decoration: none; letter-spacing: .3px; }
.map__open:hover { color: var(--primary); }
.hours { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.hours span { display: flex; justify-content: space-between; gap: 12px; color: var(--ink); }
.hours span b { font-weight: 500; color: var(--text); }
.hours .closed { color: var(--text-soft); }

/* legal */
.legal { max-width: 78ch; }
.legal h2 { font-size: 22px; font-weight: 500; margin: 40px 0 12px; }
.legal h3 { font-size: 17px; font-weight: 500; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.8; }
.legal p { margin-bottom: 14px; }
.legal ul { list-style: disc; margin: 0 0 14px 22px; }
.legal li { margin-bottom: 6px; }
.legal .notice { background: #FFF4D6; border-left: 4px solid #E0A82E; padding: 14px 18px; border-radius: 3px; font-size: 14px; margin-bottom: 30px; }
.legal .table-wrap { overflow-x: auto; margin-bottom: 20px; }
.legal table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-weight: 700; color: var(--ink); }

/* 404 */
.nf { text-align: center; padding-block: clamp(80px, 12vw, 160px); }
.nf__code { font-size: clamp(90px, 16vw, 180px); font-weight: 900; line-height: 1; color: var(--bg-tint); letter-spacing: -0.03em; }
.nf h1 { margin-top: -0.4em; font-size: clamp(28px, 3.6vw, 44px); font-weight: 300; }

/* industry page */
.pain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
@media (max-width: 767px) { .pain { grid-template-columns: minmax(0, 1fr); } }
.pain li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; align-items: start; }
.pain li b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-tint); color: var(--primary); font-size: 13px; font-weight: 700; }
.pain li h3 { font-size: 17px; font-weight: 500; margin-bottom: 4px; }
.pain li p { font-size: 14.5px; line-height: 1.7; }

.note-block { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.6; color: var(--text); }
.note-block .mono { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); font-weight: 700; }
.page-head--plain { background: #fff; }

.form__status.is-error { background: #FFF4F2; color: #B8463D; }
