/*
Theme Name: CC Digital Co.
Theme URI: https://ccdigitalco.com
Author: WebVue
Author URI: https://webvue.com.lb
Description: Brand and digital site for CC Digital Co. Dark editorial layout, fully responsive, with a contact form that emails info@ccdigitalco.com and stores every submission in the WordPress admin. Activating the theme automatically creates the Home, About, Services, Industries and Contact pages and the primary menu.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ccdigitalco
Tags: one-column, custom-menu, translation-ready, full-width-template
*/

/* ---------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------- */
:root {
  --ink: #0a0a0b;
  --panel: #131316;
  --panel-alt: #141416;
  --panel-hover: #1c1c1f;
  --light: #f5f5f7;
  --soft: #c7c7cc;
  --muted: #98989d;
  --dim: #5c5c60;
  --on-light: #1d1d1f;
  --on-light-2: #48484a;
  --on-light-3: #7a7a7a;
  --accent: #1e09ff;
  --accent-soft: #7a6bff;
  --hair-light: rgba(245, 245, 247, 0.1);
  --hair-light-08: rgba(245, 245, 247, 0.08);
  --hair-dark: rgba(29, 29, 31, 0.12);
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 5vw, 40px);
  --nav-h: 68px;
}

/* ---------------------------------------------------------------
   2. Reset / base
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--light);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.5px; margin: 0; text-wrap: pretty; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent-soft); text-decoration: none; transition: color .25s ease, border-color .25s ease; }
a:hover, a:focus-visible { color: var(--light); }
button { font: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 100000; width: auto; height: auto;
  clip: auto; background: var(--accent); color: #fff; padding: 12px 20px; border-radius: 9999px;
}

/* ---------------------------------------------------------------
   3. Layout helpers
   --------------------------------------------------------------- */
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; }
.wrap--md { max-width: 1280px; }
.wrap--sm { max-width: 1200px; }
.section { padding: clamp(64px, 11vw, 140px) var(--gutter); position: relative; }
.section--dark { background: var(--ink); }
.section--panel { background: var(--panel); }
.section--light { background: var(--light); color: var(--on-light); }
.section--center { text-align: center; }
.section--hero {
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: clip;
  padding-top: clamp(132px, 22vw, 180px);
  padding-bottom: clamp(64px, 11vw, 120px);
}
.section--hero.is-tall { min-height: 100svh; }

.eyebrow {
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 20px;
}
.section--light .eyebrow { color: var(--accent); }

.display {
  font-size: clamp(38px, 7vw, 92px);
  line-height: 1.04;
  letter-spacing: -0.5px;
  max-width: 20ch;
}
.h2 { font-size: clamp(28px, 4.4vw, 48px); line-height: 1.1; letter-spacing: -1px; }
.h2--big { font-size: clamp(32px, 6vw, 64px); letter-spacing: -1.5px; }
.h3 { font-size: clamp(19px, 2.4vw, 23px); letter-spacing: -0.3px; }
.lead { font-size: clamp(17px, 2vw, 19px); line-height: 1.5; color: var(--muted); max-width: 60ch; }
.section--light .lead { color: var(--on-light-2); }
.body-sm { font-size: 15px; line-height: 1.55; color: var(--muted); }
.section--light .body-sm { color: var(--on-light-2); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 15px 32px;
  border: none;
  border-radius: 9999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s ease, background .25s ease, box-shadow .25s ease;
}
.btn:hover, .btn:focus-visible { color: #fff; background: #2a17ff; box-shadow: 0 10px 30px rgba(30, 9, 255, .3); }
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 18px 38px; font-size: 16px; min-height: 56px; }
.btn[disabled] { background: rgba(245, 245, 247, .1); color: var(--dim); cursor: not-allowed; box-shadow: none; }
.link-underline {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--light);
  border-bottom: 1px solid rgba(245, 245, 247, .4);
  padding-bottom: 3px;
}
.link-underline:hover { border-color: var(--light); }
.section--light .link-underline { color: var(--on-light); border-color: rgba(29, 29, 31, .4); }
.section--light .link-underline:hover { color: var(--accent); border-color: var(--accent); }

/* Reveal on scroll */
/* Hidden only when JS is available to reveal them again. */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------------------------------------------------------------
   4. Blob field
   --------------------------------------------------------------- */
.blob-field { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blob-field > i {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 38%, var(--accent) 0%, rgba(30, 9, 255, 0) 70%);
  filter: blur(44px);
  mix-blend-mode: screen;
  animation: ccdDrift 20s ease-in-out infinite;
}
.blob-field > i:nth-child(1) { left: 4%;  top: 8%;    width: 58%; height: 58%; opacity: .85; }
.blob-field > i:nth-child(2) { right: 2%; top: 6%;    width: 46%; height: 46%; opacity: .7;  animation-duration: 17s; animation-delay: -5s; }
.blob-field > i:nth-child(3) { right: 6%; bottom: 4%; width: 50%; height: 50%; opacity: .62; animation-duration: 25s; animation-delay: -9s; }
.blob-field > i:nth-child(4) { left: 26%; bottom: 8%; width: 30%; height: 30%; opacity: .5;  animation-duration: 14s; animation-delay: -2s; }
/* Cap the blobs in px so they stay soft circles instead of smearing into a
   hard-edged horizontal band on ultra-wide monitors. */
.blob-field > i { max-width: 720px; max-height: 720px; }
.blob-field--top-right { left: 25%; }
.blob-field--top-left { right: 25%; }
.blob-field--bottom { top: 40%; }
@keyframes ccdDrift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(5%, -7%) scale(1.06); }
  66%  { transform: translate(-6%, 5%) scale(.95); }
  100% { transform: translate(0, 0) scale(1); }
}
.section > .wrap, .section > .contact-grid { position: relative; z-index: 1; }
@media (max-width: 640px) {
  .blob-field > i { filter: blur(34px); }
}

/* ---------------------------------------------------------------
   4b. Preloader + page transition (all transform-based)
   --------------------------------------------------------------- */
.ccd-preloader {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
}
.ccd-preloader.is-done { display: none; }

/* Panels that slide away to reveal the page. */
.ccd-preloader__panels { position: absolute; inset: 0; display: flex; }
.ccd-preloader__panels > i {
  flex: 1;
  background: var(--ink);
  transform: translateY(0);
  will-change: transform;
}
.ccd-preloader.is-out .ccd-preloader__panels > i {
  transition: transform .9s cubic-bezier(.76, 0, .24, 1);
  transform: translateY(-101%);
}
.ccd-preloader.is-out .ccd-preloader__panels > i:nth-child(2) { transition-delay: .07s; }
.ccd-preloader.is-out .ccd-preloader__panels > i:nth-child(3) { transition-delay: .14s; }
.ccd-preloader.is-out .ccd-preloader__panels > i:nth-child(4) { transition-delay: .21s; }

.ccd-preloader__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(26px, 5vw, 40px);
  padding: 24px;
  transition: opacity .45s ease, transform .55s cubic-bezier(.76, 0, .24, 1);
}
.ccd-preloader.is-out .ccd-preloader__inner { opacity: 0; transform: translateY(-18px); }

/* Logo revealed by a sweeping mask, with a blue light bar riding the edge. */
.ccd-preloader__logo {
  position: relative;
  height: clamp(52px, 13vw, 92px);
  display: block;
}
.ccd-preloader__logo img {
  height: 100%;
  width: auto;
  display: block;
  -webkit-mask-image: linear-gradient(90deg, #000 0 var(--sweep, 0%), transparent var(--sweep, 0%) 100%);
  mask-image: linear-gradient(90deg, #000 0 var(--sweep, 0%), transparent var(--sweep, 0%) 100%);
}
.ccd-preloader__logo::after {
  content: "";
  position: absolute;
  top: -8%;
  bottom: -8%;
  left: var(--sweep, 0%);
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 22px 6px rgba(30, 9, 255, .75);
  opacity: 0;
  transition: opacity .3s ease;
}
.ccd-preloader.is-sweeping .ccd-preloader__logo::after { opacity: 1; }

.ccd-preloader__meter { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ccd-preloader__pct {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ccd-preloader__track {
  width: min(220px, 56vw);
  height: 1px;
  background: rgba(245, 245, 247, .14);
  overflow: hidden;
}
.ccd-preloader__bar { height: 100%; width: 0; background: var(--accent); }

/* First paint of the page underneath the preloader. */
html.ccd-booting #main, html.ccd-booting .site-footer { opacity: 0; }
.ccd-revealing #main, .ccd-revealing .site-footer {
  animation: ccdPageIn 1.1s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes ccdPageIn {
  from { opacity: 0; transform: scale(1.035); }
  to   { opacity: 1; transform: none; }
}

/* Route transition: the same panel language, driven bottom-up. */
.ccd-curtain {
  position: fixed;
  inset: 0;
  z-index: 999998;
  display: flex;
  pointer-events: none;
  visibility: hidden;
}
.ccd-curtain.is-active { visibility: visible; }
.ccd-curtain > i {
  flex: 1;
  background: var(--ink);
  transform: translateY(101%);
  will-change: transform;
}
.ccd-curtain > i:nth-child(2) { background: #0d0d1f; }
.ccd-curtain > i:nth-child(3) { background: #10102b; }
.ccd-curtain > i:nth-child(4) { background: var(--accent); }
.ccd-curtain.is-covering > i {
  transition: transform .62s cubic-bezier(.76, 0, .24, 1);
  transform: translateY(0);
}
.ccd-curtain.is-covering > i:nth-child(2) { transition-delay: .05s; }
.ccd-curtain.is-covering > i:nth-child(3) { transition-delay: .1s; }
.ccd-curtain.is-covering > i:nth-child(4) { transition-delay: .15s; }
.ccd-curtain.is-lifting > i {
  transition: transform .8s cubic-bezier(.76, 0, .24, 1);
  transform: translateY(-101%);
}
.ccd-curtain.is-lifting > i:nth-child(2) { transition-delay: .06s; }
.ccd-curtain.is-lifting > i:nth-child(3) { transition-delay: .12s; }
.ccd-curtain.is-lifting > i:nth-child(4) { transition-delay: .18s; }

/* The logo rides the transition, revealed by the same sweep as the preloader. */
@property --sweep {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 0%;
}
.ccd-curtain-mark {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  pointer-events: none;
  visibility: hidden;
}
.ccd-curtain-mark.is-active { visibility: visible; }
.ccd-curtain-mark__logo {
  position: relative;
  display: block;
  height: clamp(40px, 9vw, 68px);
  --sweep: 0%;
  opacity: 0;
  transform: translateY(16px) scale(.97);
  transition: opacity .35s ease, transform .5s cubic-bezier(.16, 1, .3, 1);
}
.ccd-curtain-mark__logo img {
  height: 100%;
  width: auto;
  display: block;
  -webkit-mask-image: linear-gradient(90deg, #000 0 var(--sweep), transparent var(--sweep) 100%);
  mask-image: linear-gradient(90deg, #000 0 var(--sweep), transparent var(--sweep) 100%);
}
/* Light bar riding the reveal edge. */
.ccd-curtain-mark__logo::after {
  content: "";
  position: absolute;
  top: -14%;
  bottom: -14%;
  left: var(--sweep);
  width: 2px;
  background: #fff;
  box-shadow: 0 0 20px 5px rgba(255, 255, 255, .6);
  opacity: 0;
  transition: opacity .25s ease;
}

/* Covering: logo sweeps in. */
.ccd-curtain-mark.is-on .ccd-curtain-mark__logo {
  opacity: 1;
  transform: none;
  transition-delay: .2s;
  animation: ccdMarkIn .62s cubic-bezier(.22, .61, .36, 1) .2s both;
}
.ccd-curtain-mark.is-on .ccd-curtain-mark__logo::after {
  opacity: 1;
  animation: ccdMarkBar .62s cubic-bezier(.22, .61, .36, 1) .2s both;
}
@keyframes ccdMarkIn { from { --sweep: 0%; } to { --sweep: 100%; } }
@keyframes ccdMarkBar {
  0%   { opacity: 0; }
  18%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; }
}

/* Arriving: the logo is already fully revealed, carried over from the last page. */
.ccd-curtain-mark.is-held .ccd-curtain-mark__logo {
  --sweep: 100%;
  opacity: 1;
  transform: none;
  transition: none;
  animation: none;
}
.ccd-curtain-mark.is-held .ccd-curtain-mark__logo::after { opacity: 0; }

/* Lifting: logo drifts up and out with the panels. */
.ccd-curtain-mark.is-off .ccd-curtain-mark__logo {
  --sweep: 100%;
  opacity: 0;
  transform: translateY(-22px) scale(.98);
  transition: opacity .4s ease, transform .55s cubic-bezier(.76, 0, .24, 1);
}
.ccd-curtain-mark.is-off .ccd-curtain-mark__logo::after { opacity: 0; }

.ccd-leaving #main, .ccd-leaving .site-footer {
  transition: transform .6s cubic-bezier(.6, 0, .4, 1), opacity .6s ease;
  transform: scale(.97) translateY(-10px);
  opacity: .35;
}

@media (prefers-reduced-motion: reduce) {
  .ccd-curtain, .ccd-curtain-mark { display: none; }
  html.ccd-booting #main, html.ccd-booting .site-footer,
  .ccd-leaving #main, .ccd-leaving .site-footer { opacity: 1; transform: none; }
  .ccd-revealing #main, .ccd-revealing .site-footer { animation: none; }
}

/* ---------------------------------------------------------------
   5. Navigation
   --------------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
}
.site-nav.is-scrolled {
  background: rgba(10, 10, 11, .78);
  border-bottom-color: var(--hair-light);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.brand-word {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--light);
  white-space: nowrap;
}
.brand-word span { color: var(--accent-soft); }

.nav-right { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.nav-menu { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.nav-menu a:hover { color: var(--light); border-bottom-color: rgba(245, 245, 247, .4); }
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu .current-menu-ancestor > a {
  color: var(--light); font-weight: 600; border-bottom-color: var(--light);
}
.nav-cta { font-size: 13px; padding: 12px 22px; min-height: 42px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; margin: 0 auto; background: var(--light); transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(9, 9, 10, .99);
  backdrop-filter: saturate(180%) blur(30px);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
}
.mobile-panel.is-open { display: flex; }
.mobile-panel__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 112px 24px 40px;
  min-height: 100%;
}
.mobile-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mobile-menu li { opacity: 0; animation: ccdMenuIn .55s var(--ease) forwards; }
.mobile-menu li:nth-child(1) { animation-delay: .05s; }
.mobile-menu li:nth-child(2) { animation-delay: .1s; }
.mobile-menu li:nth-child(3) { animation-delay: .15s; }
.mobile-menu li:nth-child(4) { animation-delay: .2s; }
.mobile-menu li:nth-child(5) { animation-delay: .25s; }
.mobile-menu li:nth-child(6) { animation-delay: .3s; }
.mobile-menu a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hair-light);
  font-family: var(--font-display);
  font-size: clamp(32px, 10vw, 52px);
  font-weight: 600;
  letter-spacing: -1.2px;
  color: var(--muted);
}
.mobile-menu li:last-child a { border-bottom: none; }
.mobile-menu .current-menu-item > a, .mobile-menu .current_page_item > a { color: var(--light); }
.mobile-menu a::before {
  content: attr(data-num);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--dim);
  min-width: 24px;
}
.mobile-menu .current-menu-item > a::before, .mobile-menu .current_page_item > a::before { color: var(--accent); }
.mobile-foot { display: flex; flex-direction: column; gap: 24px; opacity: 0; animation: ccdMenuIn .55s var(--ease) .35s forwards; }
.mobile-foot .btn { width: 100%; }
.mobile-foot__row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding-top: 18px; border-top: 1px solid var(--hair-light);
}
.mobile-foot__row a { font-size: 14px; color: var(--muted); }
.mobile-foot__social { display: flex; gap: 20px; }
@keyframes ccdMenuIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
body.menu-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav-right { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------------------------------------------------------------
   6. Home
   --------------------------------------------------------------- */
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: clamp(32px, 5vw, 48px); }
.hero-lead { margin-top: clamp(24px, 4vw, 32px); max-width: 560px; }

.marquee-band {
  background: var(--panel-alt);
  border-top: 1px solid var(--hair-light-08);
  border-bottom: 1px solid var(--hair-light-08);
  padding: 24px 0;
  overflow: hidden;
}
.marquee { display: flex; width: max-content; animation: ccdMarquee 28s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee__set { display: flex; align-items: center; gap: 32px; padding-right: 32px; }
.marquee__set span {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.6vw, 22px);
  font-weight: 600;
  color: var(--light);
  white-space: nowrap;
}
.marquee__set i { color: var(--accent-soft); font-style: normal; }
@keyframes ccdMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 7vw, 72px);
}
.section-head .h2 { max-width: 22ch; }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1px;
  background: var(--hair-light-08);
}
.tile {
  background: var(--panel);
  padding: clamp(28px, 4vw, 40px) clamp(22px, 3vw, 32px);
  transition: background .3s ease, transform .3s ease;
}
.tile:hover { background: var(--panel-hover); transform: translateY(-4px); }
.tile__num { font-family: var(--font-display); font-size: 14px; color: var(--dim); margin-bottom: 20px; }
.tile h3 { margin-bottom: 10px; }

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: clamp(28px, 4vw, 40px);
}
.step { border-top: 1px solid rgba(245, 245, 247, .16); padding-top: 22px; }
.step__label { font-family: var(--font-display); font-size: 15px; color: var(--accent-soft); margin-bottom: 14px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 14px; line-height: 1.5; color: var(--muted); }

.client-strip {
  overflow: hidden;
  border-top: 1px solid var(--hair-dark);
  border-bottom: 1px solid var(--hair-dark);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.client-track { display: flex; width: max-content; animation: ccdMarquee 48s linear infinite; }
.client-track:hover { animation-play-state: paused; }
.client-cell {
  flex: 0 0 auto;
  width: clamp(112px, 22vw, 180px);
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
  border-right: 1px solid var(--hair-dark);
}
.client-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.client-cell:hover img { transform: scale(1.06); }

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: clip;
  text-align: center;
  padding: clamp(80px, 15vw, 180px) var(--gutter);
  border-top: 1px solid var(--hair-light-08);
}
.cta-band .wrap { max-width: 800px; }
.cta-band p { margin: 20px auto clamp(28px, 5vw, 40px); color: var(--muted); font-size: clamp(16px, 2vw, 18px); }
/* Ring keeps the pill readable if it ever overlaps its own accent colour. */
.cta-band .btn { box-shadow: 0 0 0 1px rgba(245, 245, 247, .22), 0 14px 40px rgba(5, 5, 20, .55); }
.cta-band .btn:hover { box-shadow: 0 0 0 1px rgba(245, 245, 247, .38), 0 16px 44px rgba(30, 9, 255, .35); }

/* One contained, centred glow. Sized in px and aspect-locked so it reads as a
   soft halo behind the headline at any viewport width. */
.cta-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(760px, 96%);
  aspect-ratio: 1;
  transform: translate(-50%, -62%);
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%,
    rgba(30, 9, 255, .22) 0%,
    rgba(30, 9, 255, .13) 26%,
    rgba(30, 9, 255, .05) 44%,
    rgba(30, 9, 255, 0) 60%);
  animation: ccdHalo 14s ease-in-out infinite;
}
@keyframes ccdHalo {
  0%, 100% { transform: translate(-50%, -62%) scale(1); opacity: .9; }
  50%      { transform: translate(-50%, -62%) scale(1.07); opacity: 1; }
}
@media (max-width: 640px) {
  .cta-glow { width: min(460px, 130%); }
}

/* ---------------------------------------------------------------
   7. About
   --------------------------------------------------------------- */
.split { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px); }
.split__label { flex: 1 1 180px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.split__body { flex: 2 1 380px; }
.split__body .pull {
  font-family: var(--font-display);
  font-size: clamp(21px, 3.2vw, 28px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.3px;
  color: var(--on-light);
  margin-bottom: 24px;
}
.split__body .prose { font-size: clamp(16px, 2vw, 18px); line-height: 1.65; color: var(--on-light-2); }

.people-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(16px, 2.4vw, 24px);
}
.person figure { margin: 0 0 14px; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 5; }
.person img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6) contrast(1.1); transition: filter .5s ease, transform .5s ease; }
.person:hover img { filter: none; transform: scale(1.04); }
.person h3 { font-size: 17px; color: var(--on-light); margin-bottom: 4px; }
.person p { font-size: 14px; line-height: 1.45; color: var(--on-light-3); }
@media (max-width: 1080px) { .people-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  { .people-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------
   8. Services
   --------------------------------------------------------------- */
.svc-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 48px);
  align-items: flex-start;
}
.svc-row__num {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1;
  color: rgba(245, 245, 247, .15);
}
.section--light .svc-row__num { color: rgba(29, 29, 31, .12); }
.svc-row__main { flex: 2 1 300px; }
.svc-row__main h2 { font-size: clamp(24px, 4.4vw, 32px); margin-bottom: 14px; }
.svc-row__main p { font-size: clamp(16px, 2vw, 17px); line-height: 1.55; color: var(--muted); max-width: 48ch; }
.section--light .svc-row__main p { color: var(--on-light-2); }
.list-hair { flex: 1 1 220px; display: flex; flex-direction: column; gap: 11px; list-style: none; margin: 0; padding: 0; }
.list-hair li { font-size: 14px; color: var(--soft); padding-bottom: 10px; border-bottom: 1px solid var(--hair-light); }
.list-hair li:last-child { border-bottom: none; padding-bottom: 0; }
.section--light .list-hair li { color: var(--on-light-2); border-bottom-color: rgba(29, 29, 31, .1); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 18px;
  padding: clamp(24px, 3.6vw, 32px);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(30, 9, 255, .35); box-shadow: 0 16px 40px rgba(29, 29, 31, .08); }
.card h3 { font-size: 19px; color: var(--on-light); margin-bottom: 10px; }
.card > p { font-size: 15px; line-height: 1.55; color: var(--on-light-2); margin-bottom: 18px; }

/* ---------------------------------------------------------------
   9. Industries
   --------------------------------------------------------------- */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1px;
  background: var(--hair-light-08);
}
.ind-card { background: var(--panel); padding: clamp(30px, 4.4vw, 44px) clamp(24px, 3.4vw, 36px); transition: background .3s ease; }
.ind-card:hover { background: var(--panel-hover); }
.ind-card__num { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--accent-soft); margin-bottom: 24px; }
.ind-card h2 { font-size: clamp(20px, 2.6vw, 23px); letter-spacing: -0.3px; margin-bottom: 10px; }
.ind-card p { font-size: 16px; line-height: 1.55; color: var(--muted); }

/* ---------------------------------------------------------------
   10. Contact
   --------------------------------------------------------------- */
.contact-grid {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(36px, 6vw, 80px);
  align-items: flex-start;
}
.contact-info { flex: 1 1 360px; min-width: 0; }
.contact-info .lead { max-width: 44ch; margin-bottom: clamp(36px, 6vw, 56px); }
.contact-facts {
  display: flex; flex-direction: column; gap: 24px;
  padding-top: 26px; border-top: 1px solid var(--hair-light); max-width: 440px;
}
.contact-facts dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.contact-facts dd { margin: 0; font-size: clamp(16px, 2vw, 17px); color: var(--light); }
.contact-facts dd a { color: var(--light); border-bottom: 1px solid rgba(245, 245, 247, .3); padding-bottom: 2px; word-break: break-word; }
.contact-facts dd small { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.contact-social { display: flex; gap: 20px; padding-top: 4px; }
.contact-social a { font-size: 14px; color: var(--muted); }

.form-card {
  flex: 1 1 380px;
  min-width: 0;
  background: rgba(20, 20, 22, .7);
  border: 1px solid var(--hair-light);
  border-radius: 24px;
  padding: clamp(24px, 5vw, 48px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.ccd-form { display: flex; flex-direction: column; gap: 20px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  background: rgba(245, 245, 247, .05);
  border: 1px solid rgba(245, 245, 247, .15);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--font-text);
  font-size: 16px;
  color: var(--light);
  transition: border-color .2s ease, background .2s ease;
  -webkit-appearance: none;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-soft); background: rgba(245, 245, 247, .07); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ff5a6a; }
.ccd-form .btn { margin-top: 4px; width: 100%; }
.ccd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--dim); }
.form-error { font-size: 14px; color: #ff8b96; }
.form-success { display: none; flex-direction: column; align-items: center; text-align: center; padding: 48px 12px; animation: ccdPop .5s var(--ease) both; }
.form-success.is-on { display: flex; }
.form-success__mark {
  width: 64px; height: 64px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.form-success h3 { font-size: 24px; margin-bottom: 10px; }
.form-success p { font-size: 15px; color: var(--muted); }
.is-hidden { display: none !important; }
@keyframes ccdPop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------
   11. Footer
   --------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--hair-light);
  padding: clamp(56px, 11vw, 120px) var(--gutter) 32px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 48px);
  padding-bottom: clamp(36px, 7vw, 80px);
  border-bottom: 1px solid var(--hair-light-08);
}
.footer-brand { flex: 2 1 260px; }
.footer-brand p { font-size: clamp(16px, 2vw, 17px); line-height: 1.47; color: var(--muted); max-width: 34ch; margin: 18px 0 20px; }
.footer-brand > a { color: var(--light); font-size: 15px; border-bottom: 1px solid rgba(245, 245, 247, .3); padding-bottom: 2px; }
.footer-col { flex: 1 1 140px; }
.footer-col h2 { font-family: var(--font-text); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col span { font-size: 15px; color: var(--soft); }
.footer-col a:hover { color: var(--light); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 24px;
}
.footer-bottom p { font-size: 13px; color: var(--dim); }
.footer-bottom p a { color: var(--muted); border-bottom: 1px solid rgba(245, 245, 247, .2); }
.to-top {
  background: rgba(245, 245, 247, .06);
  border: 1px solid rgba(245, 245, 247, .14);
  color: var(--light);
  font-size: 13px; font-weight: 600;
  padding: 12px 20px; min-height: 44px;
  border-radius: 9999px; cursor: pointer;
  transition: background .25s ease, transform .15s ease;
}
.to-top:hover { background: rgba(245, 245, 247, .12); }

/* ---------------------------------------------------------------
   12. Generic page / 404
   --------------------------------------------------------------- */
.page-body { padding-top: clamp(120px, 20vw, 170px); }
.entry-content { max-width: 72ch; }
.entry-content > * + * { margin-top: 20px; }
.entry-content h2 { font-size: clamp(24px, 3.4vw, 34px); margin-top: 40px; }
.entry-content h3 { font-size: clamp(19px, 2.6vw, 24px); margin-top: 32px; }
.entry-content ul, .entry-content ol { padding-left: 22px; color: var(--muted); }
.entry-content li + li { margin-top: 8px; }
.entry-content img { border-radius: 16px; }
.entry-content blockquote {
  margin: 28px 0; padding-left: 22px; border-left: 2px solid var(--accent);
  font-size: clamp(18px, 2.4vw, 22px); color: var(--light);
}
.entry-content p, .entry-content li { color: var(--muted); }
.entry-content code, .entry-content pre { background: var(--panel); border-radius: 8px; }
.entry-content pre { padding: 18px; overflow-x: auto; }
.wp-caption, .gallery-caption { color: var(--dim); font-size: 13px; }
.alignleft { float: left; margin: 0 24px 20px 0; }
.alignright { float: right; margin: 0 0 20px 24px; }
.aligncenter { margin-inline: auto; }
@media (max-width: 700px) {
  .alignleft, .alignright { float: none; margin: 0 0 20px; }
}

/* ---------------------------------------------------------------
   13. Small-screen refinements
   --------------------------------------------------------------- */
@media (max-width: 900px) {
  .section-head { align-items: flex-start; }
  .svc-row__num { font-size: clamp(36px, 11vw, 56px); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .display { max-width: none; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { gap: 16px; }
  .section--hero { min-height: auto; padding-top: 124px; }
  .tile { padding: 26px 20px; }
  .marquee__set { gap: 22px; padding-right: 22px; }
  .footer-top { gap: 30px; }
  .footer-col { flex: 1 1 44%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .to-top { width: 100%; }
  .contact-facts { max-width: none; }
  .form-card { border-radius: 18px; }
}
@media (max-width: 380px) {
  .brand-word { display: none; }
}
