/* ==========================================================================
   timingpulley.biz — company.css
   About Us, Our History, Certificates, Gallery, We Export (Phase 3).
   Built on the inner-page kit in industry.css (page header, sections, icards,
   steps, FAQ split) + components.css (.product-card, .chip). Tokens only.
   ========================================================================== */

/* ---------- Shared bits ---------- */
.co-intro { display: grid; grid-template-columns: 1fr; gap: 32px 64px; align-items: center; }
@media (min-width: 1200px) { .co-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.co-intro__copy h2, .co-intro__copy .sec-title { font-size: var(--fs-h2); text-wrap: balance; }
.co-intro__copy > p:not(.eyebrow) { margin-top: 16px; max-width: 60ch; }
.co-intro__copy > .ind-intro__lead { margin-top: 18px; }
.icard-grid--4 { list-style: none; }
@media (min-width: 992px) { .icard-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 992px) { .ind-steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.co-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.co-chips .chip { font-weight: 600; }
.icard .co-go { margin-top: auto; padding-top: 6px; font-size: 14px; }
.co-link { color: inherit; }
.co-link::after { content: ""; position: absolute; inset: 0; }
.icard:has(.co-link) { position: relative; }
.icard:has(.co-link:focus-visible) { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.co-link:focus-visible { outline: none; }

/* ---------- About: numbers band ---------- */
.co-stats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; border-top: 1px solid var(--c-line-dark); }
@media (min-width: 992px) { .co-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.co-stats li { padding: 24px 0 8px; }
.co-stats__num { font-family: var(--ff-head); font-weight: 700; font-size: clamp(36px, 20px + 2.2vw, 56px); line-height: 1; letter-spacing: -.02em; color: #fff; }
.co-stats__num .plus { color: var(--c-accent); }
.co-stats__label { margin-top: 10px; font-size: 14px; color: var(--c-on-dark); }

/* ---------- About: what we make ---------- */
.co-cat__list { list-style: none; margin-top: 4px; }
.co-cat__list a { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--c-line); font-size: 14px; font-weight: 600; color: var(--c-ink); }
.co-cat__list a:hover { color: var(--c-primary); }
.co-cat__list .ico { width: 16px; height: 16px; color: var(--c-primary); transition: transform var(--t-fast) var(--ease); }
.co-cat__list a:hover .ico { transform: translateX(3px); }
.icard--dark .icard__parts { margin-top: 4px; }

/* ---------- About: clients ---------- */
.co-clients__label { margin: 40px 0 12px; }
.co-clients { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 768px) { .co-clients { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
.co-clients li { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 6px; border: 1px solid var(--c-line); background: #fff; }
.co-clients img { width: 100%; height: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter var(--t-fast), opacity var(--t-fast); }
.co-clients li:hover img { filter: none; opacity: 1; }

/* ---------- History: intro panel ---------- */
.hx-years { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: clamp(320px, 30vw, 440px); padding: clamp(28px, 3vw, 40px); background-color: var(--c-primary-deep); background-image: var(--grid-dark); background-size: var(--grid-size) var(--grid-size); color: var(--c-on-dark); }
.hx-years .mono-label { color: var(--c-accent); }
.hx-years__num { position: relative; z-index: 1; font-family: var(--ff-head); font-weight: 700; font-size: clamp(120px, 60px + 9vw, 200px); line-height: .8; letter-spacing: -.05em; color: #fff; }
.hx-years__num .plus { color: var(--c-accent); }
.hx-years__text { position: relative; z-index: 1; max-width: 20ch; font-family: var(--ff-head); font-weight: 600; font-size: 20px; line-height: 1.35; color: #fff; }
.hx-years__art { position: absolute; right: -60px; top: -40px; width: 320px; height: 320px; opacity: .35; }

/* ---------- History: chapters (stacked by default, pinned horizontal track via animations.js) ---------- */
.hx { position: relative; overflow: hidden; }
.hx__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 20px + 2vw, 44px); }
.hx__meter { display: none; align-items: center; gap: 16px; }
.hx__count { font-family: var(--ff-head); font-weight: 600; font-size: 14px; color: var(--c-on-dark-muted); font-variant-numeric: tabular-nums; }
.hx__count b { font-size: 28px; color: #fff; }
.hx__bar { width: 220px; height: 3px; background: var(--c-line-dark); overflow: hidden; }
.hx__bar span { display: block; height: 100%; background: var(--c-accent); transform: scaleX(0); transform-origin: left; }
.hx__track { list-style: none; position: relative; display: grid; gap: 16px; max-width: var(--container-max); margin: 0 auto; padding-inline: 16px; }
@media (min-width: 768px) { .hx__track { padding-inline: 24px; } }
@media (min-width: 1200px) { .hx__track { padding-inline: 32px; } }
.hx-ch { position: relative; display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 2.5vw, 36px); border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); transition: border-color .35s var(--ease), background-color .35s var(--ease); }
.hx-ch__kicker { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent); }
.hx-ch__year { font-family: var(--ff-head); font-weight: 700; font-size: clamp(64px, 40px + 4vw, 120px); line-height: .9; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .45); transition: color .4s var(--ease), -webkit-text-stroke-color .4s var(--ease); }
.hx-ch__year--word { font-size: clamp(48px, 30px + 3.2vw, 84px); }
.hx-ch__title { display: flex; align-items: center; gap: 14px; font-family: var(--ff-head); font-weight: 600; font-size: 22px; line-height: 1.25; color: #fff; }
.hx-ch__title .icard__icon { flex: 0 0 auto; background: rgba(245, 165, 36, .14); border: 1px solid rgba(245, 165, 36, .35); color: var(--c-accent); }
.hx-ch p:not(.hx-ch__kicker):not(.hx-ch__title) { font-size: 16px; line-height: 1.6; color: var(--c-on-dark); }
.hx-ch:first-child .hx-ch__year, .hx-ch.is-current .hx-ch__year { color: #fff; -webkit-text-stroke-color: transparent; }
.hx-ch.is-current { border-color: rgba(245, 165, 36, .55); background: rgba(245, 165, 36, .06); }
/* stacked mode: a line down the left joins the chapters */
@media (max-width: 991.98px) {
  .hx__track { padding-left: 40px; }
  .hx__track::before { content: ""; position: absolute; left: 24px; top: 8px; bottom: 8px; width: 2px; background: rgba(245, 165, 36, .45); }
  .hx-ch::before { content: ""; position: absolute; left: -22px; top: 36px; width: 12px; height: 12px; border-radius: var(--r-round); background: var(--c-accent); }
}
@media (min-width: 992px) { .hx__track { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hx__track > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* pinned horizontal mode (animations.js adds .is-hscroll) */
.hx.is-hscroll { min-height: calc(100vh - 68px); display: flex; flex-direction: column; justify-content: center; padding-block: clamp(40px, 6vh, 72px); }
.hx.is-hscroll .hx__meter { display: flex; }
.hx.is-hscroll .hx__track { --track-pad: max(32px, calc((100vw - var(--container-max)) / 2 + 32px)); display: flex; width: max-content; max-width: none; margin: 0; gap: 24px; padding: 34px 32px 0 var(--track-pad); }
.hx.is-hscroll .hx__track::before, .hx.is-hscroll .hx__track::after { content: ""; position: absolute; top: 0; left: var(--track-pad); height: 3px; }
.hx.is-hscroll .hx__track::before { right: 32px; background: var(--c-line-dark); }
.hx.is-hscroll .hx__track::after { width: calc((100% - var(--track-pad) - 32px) * var(--p, 0)); background: var(--c-accent); }
.hx.is-hscroll .hx-ch { flex: 0 0 auto; width: clamp(400px, 34vw, 520px); min-height: min(440px, 56vh); }
.hx.is-hscroll .hx-ch:first-child:not(.is-current) .hx-ch__year { color: transparent; -webkit-text-stroke-color: rgba(255, 255, 255, .45); }

/* ---------- Certificates ---------- */
.certs { display: flex; flex-direction: column; gap: 24px; }
.certcard { display: grid; grid-template-columns: 1fr; border: 1px solid var(--c-line); background: #fff; }
@media (min-width: 992px) {
  .certcard { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .certcard--flip .certcard__visual { order: 2; }
}
.certcard__visual { display: grid; place-items: center; min-height: clamp(340px, 30vw, 460px); padding: 40px; background-color: var(--c-surface); background-image: var(--grid-light); background-size: var(--grid-size) var(--grid-size); }
.certcard--flip .certcard__visual { background-color: var(--c-primary-deep); background-image: var(--grid-dark); }
.cert-doc { --tone: var(--c-primary); width: min(280px, 76%); aspect-ratio: 1 / 1.414; padding: 12px; background: #fff; box-shadow: 0 30px 60px -24px rgba(20, 18, 26, .45); transform: rotate(-2deg); transition: transform .5s var(--ease); }
.certcard--flip .cert-doc { --tone: var(--c-accent); transform: rotate(2deg); }
@media (hover: hover) { .certcard:hover .cert-doc { transform: rotate(0) scale(1.02); } }
.cert-doc__frame { height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 20px; border: 1.5px solid var(--tone); outline: 1px solid var(--tone); outline-offset: -7px; }
.cert-doc__seal { width: 72px; height: 72px; display: grid; place-items: center; border: 2px dashed var(--tone); border-radius: var(--r-round); text-align: center; font-family: var(--ff-head); font-weight: 700; font-size: 20px; line-height: 1; color: var(--tone); }
.cert-doc__seal small { display: block; font-size: 11px; }
.cert-doc__std { margin-top: 8px; font-family: var(--ff-head); font-weight: 700; font-size: clamp(14px, 3.6vw, 20px); white-space: nowrap; color: var(--c-ink); }
.cert-doc__line { display: block; height: 5px; background: var(--c-line); }
.cert-doc__foot { margin-top: auto; display: flex; justify-content: space-between; width: 100%; }
.cert-doc__foot span { width: 34%; height: 5px; background: var(--c-line); }
.certcard__body { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 48px); }
.certcard__body .mono-label { color: var(--c-primary); }
.certcard__std { font-family: var(--ff-head); font-weight: 700; font-size: clamp(30px, 16px + 2vw, 44px); line-height: 1; letter-spacing: -.02em; color: var(--c-ink); }
.certcard__body > p:not(.mono-label):not(.certcard__std) { max-width: 52ch; }
.certcard__dl { margin-top: 4px; }
.certcard__dl div { display: grid; grid-template-columns: 1fr; gap: 2px 16px; padding: 12px 0; border-top: 1px solid var(--c-line); }
@media (min-width: 480px) { .certcard__dl div { grid-template-columns: 150px minmax(0, 1fr); } }
.certcard__dl dt { padding-top: 2px; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.certcard__dl dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--c-ink); }
.cert-checks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cert-checks li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--c-primary-50); font-size: 13px; font-weight: 600; color: var(--c-ink); }
.cert-checks .ico { width: 16px; height: 16px; color: var(--c-primary); stroke-width: 2.4; }

/* ---------- Gallery: coming soon ---------- */
.soon-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.soon-grid li { aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px; border: 1.5px dashed var(--c-field); background: var(--c-surface); text-align: center; }
.soon-grid__name { font-family: var(--ff-head); font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--c-ink); }

/* ---------- Export: statement ---------- */
.xp-statement { text-wrap: balance; }
.xp-statement span { color: var(--c-primary); }
.xp-lead { display: grid; grid-template-columns: 1fr; gap: 24px 64px; align-items: end; margin-top: 32px; }
@media (min-width: 992px) { .xp-lead { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.xp-lead .ind-intro__lead { font-size: clamp(18px, 15px + .5vw, 21px); }
.xp-lead .ind-hero__ctas { margin-top: 0; }
.xp-figs { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-top: clamp(40px, 30px + 2vw, 56px); border-top: 2px solid var(--c-ink); }
@media (min-width: 992px) { .xp-figs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.xp-figs li { padding: 22px 0 8px; }
.xp-figs__num { font-family: var(--ff-head); font-weight: 700; font-size: clamp(44px, 20px + 3vw, 72px); line-height: 1; letter-spacing: -.03em; color: var(--c-ink); }
.xp-figs__label { margin-top: 10px; font-size: 15px; font-weight: 600; }

/* ---------- Export: world map ---------- */
.xp-map-sec { padding-bottom: 0; }
.xp-map { position: relative; overflow: hidden; }
.xp-map svg { display: block; width: 100%; height: auto; }
.xp-map__dots { stroke: rgba(255, 255, 255, .22); stroke-width: 5; stroke-linecap: round; fill: none; }
.xp-map__trail { fill: none; stroke: rgba(245, 165, 36, .35); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1 7; }
.xp-map__arc { fill: none; stroke: var(--c-accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.xp-map__halo { fill: rgba(245, 165, 36, .18); transform-box: fill-box; transform-origin: center; }
.xp-map__dot { fill: var(--c-accent); }
.xp-map__label { fill: #fff; font-family: var(--ff-head); font-weight: 600; font-size: 18px; }
.xp-map__home { fill: #fff; }
.xp-map__home-halo { fill: rgba(255, 255, 255, .12); }
.xp-map__home-label { fill: var(--c-accent); font-family: var(--ff-mono); font-size: 14px; letter-spacing: 2px; }
/* motion: arcs draw out one by one when the map scrolls into view (main.js [data-inview]); halos pulse */
@media (prefers-reduced-motion: no-preference) {
  .js-inview .xp-map__arc { stroke-dashoffset: 1; }
  .xp-map.is-inview .xp-map__arc { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease) calc(var(--i) * .25s); }
  .js-inview .xp-map__dot, .js-inview .xp-map__halo, .js-inview .xp-map__label { opacity: 0; }
  .xp-map.is-inview .xp-map__dot, .xp-map.is-inview .xp-map__label { opacity: 1; transition: opacity .5s calc(var(--i) * .25s + 1.1s); }
  .xp-map.is-inview .xp-map__halo { opacity: 1; animation: xp-pulse 2.4s ease-out calc(var(--i) * .25s + 1.2s) 1; }
}
@keyframes xp-pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
/* phones: crop and enlarge the map around India; the market strip lists every market */
@media (max-width: 767.98px) {
  .xp-map svg { width: 170%; max-width: none; margin-left: -62%; }
  .xp-map__label, .xp-map__home-label { display: none; } /* too small at this scale; the market strip names them */
}
.xp-markets { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; border-top: 1px solid var(--c-line-dark); }
@media (min-width: 992px) { .xp-markets { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.xp-markets li { padding: 22px 16px 26px; border-left: 1px solid var(--c-line-dark); }
.xp-markets li:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
@media (min-width: 992px) { .xp-markets li:nth-child(2n + 1) { border-left: 1px solid var(--c-line-dark); padding-left: 16px; } .xp-markets li:first-child { border-left: 0; padding-left: 0; } }
.xp-markets .mono-label { color: var(--c-accent); }
.xp-markets__name { margin-top: 6px; font-family: var(--ff-head); font-weight: 600; font-size: 18px; color: #fff; }

/* ---------- Export: countries, steps, cities ---------- */
.xp-regions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; border-top: 2px solid var(--c-ink); }
@media (min-width: 768px) { .xp-regions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .xp-regions { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.xp-regions > div { padding: 22px 18px 0; border-left: 1px solid var(--c-line); }
.xp-regions .mono-label { color: var(--c-primary); }
.xp-regions ul { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--c-ink); }
.xp-steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 32px 28px; }
@media (min-width: 576px) { .xp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .xp-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.xp-steps__n { display: block; font-family: var(--ff-head); font-weight: 700; font-size: clamp(64px, 40px + 3vw, 88px); line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--c-primary); }
.xp-steps__rule { display: block; height: 3px; margin: 18px 0; background: var(--c-primary-line); }
.xp-steps li:first-child .xp-steps__rule { background: var(--c-accent); }
.xp-steps__title { font-family: var(--ff-head); font-weight: 600; font-size: 19px; color: var(--c-ink); }
.xp-steps p:not(.xp-steps__title) { margin-top: 8px; font-size: 15px; }
.xp-cities .chip { gap: 8px; font-weight: 600; }
.xp-cities .chip::before { content: ""; width: 6px; height: 6px; border-radius: var(--r-round); background: var(--c-primary); }
.xp-cities .chip--home::before { background: var(--c-accent); }
.ind-sec--dark .product-card { border-color: rgba(255, 255, 255, .14); }
.ind-sec--dark .link-arrow { color: var(--c-accent); }

/* ---------- Shape tiers (2026-10-28, user): see tokens.css ---------- */
.cert-checks li { border-radius: var(--r-sm); }
.co-clients li, .hx-ch, .soon-grid li { border-radius: var(--r-md); }
.hx-years, .certcard { overflow: hidden; border-radius: var(--r-lg); }

/* ---------- Gallery (2026-10-29): uniform 4:3 photo grid with captions ---------- */
.gal-grid { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 576px) { .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .gal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.gal-item { margin: 0; height: 100%; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-white); }
.gal-item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--c-surface); }
.gal-item figcaption { padding: 12px 16px 14px; font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--c-ink); }
.gal-note { max-width: 64ch; margin-top: 24px; font-size: 14px; color: var(--c-muted); }

/* ---------- Type (2026-10-29, rework): labels in Inter; monospace only for data values ---------- */
.hx-ch__kicker, .certcard__dl dt, .xp-map__home-label { font-family: var(--ff-body); font-size: 13px; font-weight: 600; letter-spacing: .01em; text-transform: none; }
