/* CREO DIGITAL | Global CSS, full replacement for prior global  */

/* ═══════════════════════════════════════════════════════════════════
   CREO / 2026 — GLOBAL INTEGRATION STYLES · revision 1.0
   Applies ONLY to the nine CREO sections and their T123 wrappers.
   Do not remove each section's own  / .
   Source: original CREO 01 V7, 02, 03, 04, 05 ABOUT, 06, 07, 08 V2, 09 V2.
   Global theme state: html[data-creo-theme="dark" | "light"]
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --creo-bg-dark:#101010;
  --creo-bg-light:#ffffff;
  --creo-ink-dark:#f3f0e9;
  --creo-ink-light:#171713;
  --creo-orange:#ff4e00;
  --creo-orange-hot:#ff6500;
  --creo-scroll-duration:.44s;
}

/* Page canvas: no white Tilda gaps between HTML sections. */
html[data-creo-theme="dark"],html[data-creo-theme="dark"] body,
html[data-creo-theme="dark"] #allrecords,html[data-creo-theme="dark"] .t-records{
  background-color:#101010!important;
  color:#f3f0e9;
}
html[data-creo-theme="light"],html[data-creo-theme="light"] body,
html[data-creo-theme="light"] #allrecords,html[data-creo-theme="light"] .t-records{
  background-color:#ffffff!important;
  color:#171713;
}
html[data-creo-theme] {scroll-padding-top:82px;scroll-behavior:smooth;}
html[data-creo-theme] body{margin:0;overflow-x:clip;}
@supports not (overflow:clip){html[data-creo-theme] body{overflow-x:hidden;}}

/* T123 parent records can carry an opaque background or block padding.
   :has is supported by current Safari/Chrome/Firefox. Unsupported browsers
   simply keep the original block-level layout. */
@supports selector(.t-rec:has(#creo26-hero)) {
  html[data-creo-theme] .t-rec:has(:is(
    #creo26-hero,#creo-works,#creo-services,#creo-reports,
    #creo-about,#creo-approach,#creo-why,#creo-faq,#creo-contacts
  )){background:transparent!important;margin-block:0!important;padding-block:0!important;}
}

/* Dark is the opening design. Use the section's existing CSS variables and
   native dark class names, NOT a blanket "filter:invert" or CSS transform. */
html[data-creo-theme="dark"] #creo26-hero{
  --c26-paper:#101010;
  --c26-ink:#f3f0e9;
  --c26-muted:#bcb5a9;
  --c26-edge:rgba(243,240,233,.20);
  --c26-panel:#101010;
  background:#101010!important;
  color:#f3f0e9;
}
html[data-creo-theme="dark"] #creo26-hero .c26-header{
  background:#101010!important;
  color:#f3f0e9;
}
html[data-creo-theme="dark"] #creo26-hero .c26-menu{
  background:#101010!important;
}
/* Keep the actual animated orange studio art; remove unrelated full-screen
   background lighting in dark mode. */
html[data-creo-theme="dark"] #creo26-hero .c26-spot{background:none!important;}
html[data-creo-theme="dark"] #creo26-hero .c26-grid{background-image:none!important;}

html[data-creo-theme="dark"] #creo-works{
  --w-bg:#101010;--w-paper:#1b1a18;--w-fg:#f3f0e9;
  --w-muted:#aaa49c;--w-line:rgba(255,255,255,.19);
  --w-surf:#201d1a;background-color:#101010!important;color:#f3f0e9;
}
html[data-creo-theme="dark"] #creo-services{
  --s3-paper:#101010;--s3-ink:#f3f0e9;--s3-muted:#aba59c;
  --s3-line:rgba(255,255,255,.18);--s3-card:#1d1c1b;
  --s3-shadow:rgba(0,0,0,.24);background-color:#101010!important;
  color:#f3f0e9;
}
html[data-creo-theme="dark"] #creo-reports{
  --r-bg:#101010;--r-ink:#f3f0e9;--r-muted:#aaa39a;
  --r-outline:rgba(243,240,233,.16);--r-pane:#1b1a18;
  --r-panel:#1a1917;--r-shadow:rgba(0,0,0,.38);
  background-color:#101010!important;color:#f3f0e9;
}
/* Block 05: About us, NOT old Before/After comparison. */
html[data-creo-theme="dark"] #creo-about{
  --ca-paper:#101010;--ca-paper-2:#141414;
  --ca-ink:#f4efe7;--ca-ink-soft:#d7cec2;--ca-muted:#9b948b;
  --ca-line:rgba(255,255,255,.08);--ca-card:rgba(255,255,255,.04);
  --ca-card-border:rgba(255,255,255,.09);
  background:#101010!important;color:#f4efe7;
}
/* No full-section gradient; the animated orange glass sculpture remains. */
html[data-creo-theme="dark"] #creo-about .creo-about__bg{background:none!important;}
html[data-creo-theme="dark"] #creo-about .creo-about__noise{display:none!important;}

html[data-creo-theme="dark"] #creo-approach{
  --p-paper:#101010;--p-ink:#f4efe7;--p-muted:#aaa39b;
  --p-line:rgba(255,255,255,.16);background-color:#101010!important;color:#f4efe7;
}
html[data-creo-theme="dark"] #creo-why{
  --w-paper:#101010;--w-ink:#f3f0e9;--w-secondary:#aba49c;
  --w-line:rgba(255,255,255,.19);background-color:#101010!important;color:#f3f0e9;
}
html[data-creo-theme="dark"] #creo-faq.creo8{
  --paper:#101010;--paper2:#151515;--ink:#f3efe8;
  --ink2:#cfc7bc;--muted:#938a80;--line:rgba(255,255,255,.10);
  --soft:rgba(255,255,255,.04);--card:rgba(255,255,255,.03);
  --shadow:0 20px 70px rgba(0,0,0,.28);
  background-color:#101010!important;color:#f3efe8;
}
html[data-creo-theme="dark"] #creo-faq .creo8-bg{background:none!important;}
html[data-creo-theme="dark"] #creo-faq .creo8-noise{display:none!important;}
html[data-creo-theme="dark"] #creo-contacts{
  --c9-paper:#101010;
  background-color:#101010!important;
}

/* Main backgrounds in light mode retain cream; final block is white by design.
   These explicit light rules also cleanly reverse a dark first paint. */
html[data-creo-theme="light"] #creo26-hero,
html[data-creo-theme="light"] #creo-works,
html[data-creo-theme="light"] #creo-services,
html[data-creo-theme="light"] #creo-reports,
html[data-creo-theme="light"] #creo-about,
html[data-creo-theme="light"] #creo-approach,
html[data-creo-theme="light"] #creo-why,
html[data-creo-theme="light"] #creo-faq{background-color:#ffffff!important;}
html[data-creo-theme="light"] #creo-contacts{background-color:#ffffff!important;}
/* The user-facing light theme is TRUE WHITE; creamy cards remain for depth. */
html[data-creo-theme="light"] #creo26-hero{--c26-paper:#ffffff;--c26-panel:#ffffff;}
html[data-creo-theme="light"] #creo26-hero .c26-header{background:#ffffff!important;}
html[data-creo-theme="light"] #creo-works{--w-bg:#ffffff;}
html[data-creo-theme="light"] #creo-services{--s3-paper:#ffffff;}
html[data-creo-theme="light"] #creo-reports{--r-bg:#ffffff;}
html[data-creo-theme="light"] #creo-about{--ca-paper:#ffffff;}
html[data-creo-theme="light"] #creo-approach{--p-paper:#ffffff;}
html[data-creo-theme="light"] #creo-why{--w-paper:#ffffff;}
html[data-creo-theme="light"] #creo-faq{--paper:#ffffff;}
html[data-creo-theme="light"] #creo-contacts{--c9-paper:#ffffff;}

/* Don't override independent scroll animations or interactive transforms. */
html[data-creo-theme] :is(#creo26-hero,#creo-works,#creo-services,
#creo-reports,#creo-about,#creo-approach,#creo-why,#creo-faq,#creo-contacts){
  transition-property:background-color,color,border-color;
  transition-duration:var(--creo-scroll-duration);
  transition-timing-function:cubic-bezier(.22,1,.36,1);
  scroll-margin-top:82px;
}
html[data-creo-theme] :is(#creo26-hero,#creo-works,#creo-services,
#creo-reports,#creo-about,#creo-approach,#creo-why,#creo-faq,#creo-contacts) :is(a,button,input,textarea):focus-visible{
  outline:2px solid #ff6500!important;outline-offset:3px;
}
html[data-creo-theme] :is(#creo26-hero,#creo-works,#creo-services,
#creo-reports,#creo-about,#creo-approach,#creo-why,#creo-faq,#creo-contacts) :is(button,a){
  -webkit-tap-highlight-color:transparent;
}

/* All platform-independent arrows/sparkles are inline SVG icons created by
   the companion JS; color follows the surrounding text, never iOS emoji. */
.creo-ui-vector{
  display:inline-block!important;
  width:1em!important;height:1em!important;min-width:1em!important;
  vertical-align:-.14em!important;
  fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;
  flex-shrink:0;pointer-events:none;
}
.creo-ui-vector[data-creo-icon="spark"]{stroke-width:1.7;}
.creo-ui-vector[data-creo-icon="check"]{stroke-width:2.4;}
/* Fallback for symbols created later by CSS or third-party components. */
html[data-creo-theme] :is(#creo26-hero,#creo-works,#creo-services,
#creo-reports,#creo-about,#creo-approach,#creo-why,#creo-faq,#creo-contacts) .creo-text-symbol{
  font-family:Arial,Helvetica,sans-serif!important;
  font-variant-emoji:text;
}

@media(max-width:767px){
  html[data-creo-theme]{scroll-padding-top:72px;}
  html[data-creo-theme] :is(#creo26-hero,#creo-works,#creo-services,
  #creo-reports,#creo-about,#creo-approach,#creo-why,#creo-faq,#creo-contacts){scroll-margin-top:72px;}
}
@media(prefers-reduced-motion:reduce){
  html[data-creo-theme]{scroll-behavior:auto!important;}
  html[data-creo-theme] :is(#creo26-hero,#creo-works,#creo-services,#creo-reports,
  #creo-about,#creo-approach,#creo-why,#creo-faq,#creo-contacts){transition-duration:0ms!important;}
}

/* One acid-orange family across the two hand-authored sections. */
html[data-creo-theme] #creo-about{--ca-acid:#ff4e00;--ca-acid-2:#ff7800;}
html[data-creo-theme] #creo-faq{--orange:#ff4e00;--orange2:#ff7800;}

/* ======================================================================
   CREO DIGITAL / MOTION LAYER 2.0 — loaded AFTER existing integration CSS
   Preserves hero, 9 sections, theme engine and their own animations.
   ====================================================================== */

/* 01 — Selection and reusable brand accents */
html[data-creo-theme] ::selection{background:#ff4e00;color:#101010;text-shadow:none}
html[data-creo-theme] ::-moz-selection{background:#ff4e00;color:#101010;text-shadow:none}
html[data-creo-theme] .creo-accent,
html[data-creo-theme] [data-creo-accent]{color:var(--creo-orange)!important}
html[data-creo-theme] .creo-marker{
  background:linear-gradient(transparent 62%,rgba(255,78,0,.34) 62%,rgba(255,78,0,.34) 89%,transparent 89%);
  -webkit-box-decoration-break:clone;box-decoration-break:clone;padding-inline:.045em;
}
html[data-creo-theme] .creo-outline-type{
  color:transparent!important;-webkit-text-stroke:1px currentColor;
  -webkit-text-stroke-color:var(--creo-orange);
}

/* 03 — Kinetic typography opt-in: no transform on existing headings */
html[data-creo-theme] .creo-kinetic-type{
  transition:letter-spacing .55s cubic-bezier(.22,1,.36,1),text-shadow .55s ease;
  text-shadow:var(--creo-kin-x,0px) var(--creo-kin-y,0px) 27px rgba(255,78,0,.13);
}
@media(hover:hover) and (pointer:fine){
  html[data-creo-theme] .creo-kinetic-type:hover{letter-spacing:.008em}
}

/* 04 — Word reveal. Only applied to plain-text headings by motion JS. */
html[data-creo-theme] .creo-words-ready .creo-word{
  display:inline-block;vertical-align:baseline;opacity:0;
  clip-path:inset(0 0 105% 0);transform:translate3d(0,.48em,0);
  transition:opacity .78s ease,transform .78s cubic-bezier(.22,1,.36,1),clip-path .78s cubic-bezier(.22,1,.36,1);
  transition-delay:calc(var(--creo-word-i,0) * 65ms);
}
html[data-creo-theme] .creo-words-ready.creo-in-view .creo-word{
  opacity:1;transform:translate3d(0,0,0);clip-path:inset(0 0 0 0);
}

/* 06 — Magnetic CTAs: individual translate doesn't overwrite transform. */
html[data-creo-theme] .creo-magnetic{
  translate:var(--creo-mx,0px) var(--creo-my,0px);
  transition:translate .5s cubic-bezier(.22,1,.36,1);
  will-change:translate;
}
html[data-creo-theme] .creo-magnetic.creo-magnetic-moving{
  transition-duration:.10s;
}

/* 12 — Words activate while scrolling; conservative targets, no DOM split. */
html[data-creo-theme] .creo-reading-progress{
  --creo-read-stop:0%;
  --creo-read-active:#f3f0e9;
  --creo-read-muted:rgba(243,240,233,.24);
  background-image:linear-gradient(90deg,
    var(--creo-read-active) 0%,
    var(--creo-read-active) var(--creo-read-stop),
    var(--creo-read-muted) var(--creo-read-stop),
    var(--creo-read-muted) 100%);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;
}
html[data-creo-theme="light"] .creo-reading-progress{
  --creo-read-active:#171713;--creo-read-muted:rgba(23,23,19,.25);
}
html[data-creo-theme="dark"] .creo-reading-progress{
  --creo-read-active:#f3f0e9;--creo-read-muted:rgba(243,240,233,.3);
}

/* 13 — Services narrative: highlight existing cards if recognizable.
   To opt a particular card in, add data-creo-story-step to that card. */
html[data-creo-theme] #creo-services .creo-story-step{
  transition:outline-color .4s ease,background-color .4s ease;
  outline:1px solid transparent;outline-offset:0;
}
html[data-creo-theme] #creo-services .creo-story-step.creo-story-active{
  outline-color:rgba(255,78,0,.48);
}
html[data-creo-theme] #creo-services .creo-story-step.creo-story-active:is(:hover,:focus-within){
  outline-color:var(--creo-orange);
}

/* 17 — Polished compact header. No new fixed positioning or padding changes. */
html[data-creo-theme] #creo26-hero .c26-header{
  transition:background-color .38s ease,box-shadow .38s ease,border-color .38s ease!important;
}
html.creo-is-scrolled[data-creo-theme="dark"] #creo26-hero .c26-header{
  background:rgba(16,16,16,.88)!important;
  box-shadow:0 9px 35px rgba(0,0,0,.18);
  -webkit-backdrop-filter:blur(16px) saturate(1.2);
  backdrop-filter:blur(16px) saturate(1.2);
}
html.creo-is-scrolled[data-creo-theme="light"] #creo26-hero .c26-header{
  background:rgba(255,255,255,.89)!important;
  box-shadow:0 8px 30px rgba(20,20,20,.075);
  -webkit-backdrop-filter:blur(16px) saturate(1.1);
  backdrop-filter:blur(16px) saturate(1.1);
}
html[data-creo-theme] #creo26-hero .c26-menu a.creo-nav-link{
  background-image:linear-gradient(var(--creo-orange),var(--creo-orange));
  background-repeat:no-repeat;background-size:0 1.5px;background-position:left calc(100% - 2px);
  transition:background-size .42s cubic-bezier(.22,1,.36,1);
}
html[data-creo-theme] #creo26-hero .c26-menu a.creo-nav-link:hover,
html[data-creo-theme] #creo26-hero .c26-menu a.creo-nav-link:focus-visible{
  background-size:100% 1.5px;
}
/* Minimal top-edge scroll indicator, created by JS. */
.creo-scroll-meter{
  position:fixed;z-index:2147482000;pointer-events:none;left:0;top:0;height:2px;
  width:var(--creo-scroll-progress,0%);background:#ff4e00;
  box-shadow:0 0 13px rgba(255,78,0,.35);
}

/* 18 — Browser-native same-origin page transitions where supported. */
@media(prefers-reduced-motion:no-preference){
  @view-transition{navigation:auto}
  ::view-transition-old(root){animation-duration:.24s;animation-timing-function:ease-in}
  ::view-transition-new(root){animation-duration:.34s;animation-timing-function:ease-out}
}

/* 20 — Theme easing for native surfaces, without overriding hover transforms. */
html[data-creo-theme] :is(#creo-works,#creo-services,#creo-reports,#creo-about,#creo-approach,#creo-why,#creo-faq,#creo-contacts)
:is(.s3-card,.r4-card,.creo-about__card,.creo8-card,[data-creo-theme-surface]){
  transition-property:background-color,color,border-color,box-shadow;
  transition-duration:.44s;transition-timing-function:cubic-bezier(.22,1,.36,1);
}

@media(max-width:767px), (hover:none), (pointer:coarse){
  html[data-creo-theme] .creo-magnetic{translate:0 0!important;will-change:auto}
  html[data-creo-theme] .creo-kinetic-type{text-shadow:none!important}
  html.creo-is-scrolled[data-creo-theme] #creo26-hero .c26-header{
    -webkit-backdrop-filter:none;backdrop-filter:none;
  }
}
@media(prefers-reduced-motion:reduce){
  html[data-creo-theme] .creo-words-ready .creo-word,
  html[data-creo-theme] .creo-words-ready.creo-in-view .creo-word{
    opacity:1!important;clip-path:none!important;transform:none!important;
    transition:none!important;
  }
  html[data-creo-theme] .creo-magnetic{translate:0 0!important;transition:none!important;will-change:auto}
  html[data-creo-theme] .creo-kinetic-type{text-shadow:none!important;transition:none!important}
  html[data-creo-theme] .creo-reading-progress{
    background:none!important;-webkit-text-fill-color:currentColor!important;
  }
  html[data-creo-theme] #creo26-hero .c26-header{transition:none!important}
  .creo-scroll-meter{box-shadow:none}
}
