/* ==========================================================================
   ITology 2.0 — Design tokens, reset and typography
   ========================================================================== */

:root {
  /* Core palette */
  --it-ink: #04080F;
  --it-navy: #06101F;
  --it-navy-2: #0A1830;
  --it-navy-3: #102445;
  --it-charcoal: #0E1626;
  --it-slate: #46566E;
  --it-muted: #6B7A90;
  --it-line: #E3E9F2;
  --it-line-dark: rgba(148, 180, 220, .16);
  --it-surface: #F4F7FC;
  --it-surface-2: #EAF0F8;
  --it-white: #FFFFFF;
  --it-blue: #2563EB;
  --it-blue-bright: #3B82F6;
  --it-cyan: #22D3EE;
  --it-cyan-soft: #67E8F9;
  --it-violet: #7C3AED;
  --it-amber: #F59E0B;
  --it-green: #10B981;

  /* Gradients */
  --it-grad: linear-gradient(115deg, #2563EB 0%, #3B82F6 42%, #22D3EE 100%);
  --it-grad-soft: linear-gradient(135deg, rgba(37,99,235,.14), rgba(34,211,238,.08));
  --it-grad-dark: linear-gradient(150deg, #0A1830 0%, #06101F 55%, #04080F 100%);
  --it-glow: radial-gradient(circle at 50% 50%, rgba(34,211,238,.26), transparent 62%);

  /* Type */
  --it-font-display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --it-font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Geometry */
  --it-radius-xs: 8px;
  --it-radius-sm: 12px;
  --it-radius: 18px;
  --it-radius-lg: 26px;
  --it-radius-xl: 34px;
  --it-container: 1280px;
  --it-gutter: clamp(18px, 4vw, 40px);
  --it-header: 78px;

  /* Elevation */
  --it-shadow-sm: 0 8px 24px -12px rgba(4, 12, 28, .22);
  --it-shadow: 0 28px 70px -30px rgba(4, 12, 28, .34);
  --it-shadow-lg: 0 50px 120px -40px rgba(4, 12, 28, .55);

  /* Motion */
  --it-ease: cubic-bezier(.22, .61, .36, 1);
  --it-ease-out: cubic-bezier(.16, 1, .3, 1);
  --it-dur: .55s;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--it-header) + 20px); }
body {
  margin: 0;
  font-family: var(--it-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--it-charcoal);
  background: var(--it-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.it-nav-open { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--it-blue); text-decoration: none; transition: color .2s var(--it-ease); }
a:hover { color: var(--it-cyan); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }

/* Typography ------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--it-font-display);
  color: var(--it-navy);
  line-height: 1.08;
  margin: 0 0 .55em;
  font-weight: 600;
  letter-spacing: -.035em;
}
h1 { font-size: clamp(2.7rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
h4 { font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
p { margin: 0 0 1.15em; }
strong { font-weight: 600; }
small { font-size: .82em; }
::selection { background: rgba(34,211,238,.32); color: var(--it-navy); }

.it-display { font-family: var(--it-font-display); }
.it-gradient-text {
  background: var(--it-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.it-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--it-blue);
  margin: 0 0 18px;
}
.it-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}
.it-eyebrow--light { color: var(--it-cyan); }

.it-lead {
  font-size: clamp(1.02rem, 1.3vw, 1.16rem);
  line-height: 1.7;
  color: var(--it-slate);
  max-width: 64ch;
}
.it-dark .it-lead, .it-section--dark .it-lead { color: #A9BBD4; }

/* Accessibility ---------------------------------------------------------- */
:focus-visible { outline: 2px solid var(--it-cyan); outline-offset: 3px; border-radius: 4px; }
.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 {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  background: #fff;
  color: var(--it-navy);
  padding: 14px 22px;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* Layout primitives ------------------------------------------------------ */
.it-container {
  width: min(100% - (var(--it-gutter) * 2), var(--it-container));
  margin-inline: auto;
}
.it-container--wide { width: min(100% - 24px, 1480px); }
.it-section { padding: clamp(64px, 8.5vw, 120px) 0; position: relative; }
.it-section--tight { padding: clamp(44px, 5vw, 70px) 0; }
.it-section--light { background: var(--it-surface); }
.it-section--soft { background: linear-gradient(180deg, #F8FAFE 0%, #EEF3FA 100%); }
.it-section--dark { background: var(--it-grad-dark); color: #B9C8DC; }
.it-section--dark h1, .it-section--dark h2, .it-section--dark h3, .it-section--dark h4 { color: #fff; }
.it-section--ink { background: var(--it-ink); color: #A9BBD4; }
.it-section--ink h1, .it-section--ink h2, .it-section--ink h3, .it-section--ink h4 { color: #fff; }
.it-center { text-align: center; }
.it-center .it-lead { margin-inline: auto; }
.it-center .it-eyebrow { justify-content: center; }
.it-grid { display: grid; gap: 24px; }

.it-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  margin-bottom: clamp(34px, 4vw, 56px);
}
.it-section-head h2 { margin-bottom: 12px; }
.it-section-head .it-lead { margin-bottom: 0; }
.it-section-head__actions { display: flex; gap: 12px; flex-wrap: wrap; padding-bottom: 6px; }
@media (max-width: 820px) {
  .it-section-head { grid-template-columns: 1fr; align-items: start; }
}

/* Reveal animations ------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--it-ease-out), transform .8s var(--it-ease-out);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal--left { transform: translateX(-34px); }
.reveal--right { transform: translateX(34px); }
.reveal--scale { transform: scale(.94); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* Subtle animated background utilities ----------------------------------- */
.it-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 170, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 255, .055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}
.it-noise::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' sludge='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.it-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: .55;
}

/* WordPress core alignment ---------------------------------------------- */
.alignwide { margin-left: calc(50% - min(46vw, 640px)); margin-right: calc(50% - min(46vw, 640px)); }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; max-width: 100vw; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--it-muted); text-align: center; padding-top: 8px; }
.sticky { display: block; }
.bypostauthor { display: block; }
