/* Prism Advisory
   Palette comes from the logo: ink rings on white, with the spectrum as accent.
   Each service owns one band of the spectrum. */

:root {
  --ink: #0b0d12;
  --ink-soft: #161a23;
  --paper: #f6f6f3;
  --white: #ffffff;
  --text: #12151c;
  --muted: #5a6170;
  --line: #dfe0dc;
  --on-ink: #f3f4f6;
  --on-ink-muted: #a3a9b6;

  --indigo: #4a55d6;
  --teal: #0fa3a3;
  --green: #3da33b;
  --amber: #e2a012;
  --red: #e23d28;
  --spectrum: linear-gradient(90deg, var(--indigo), var(--teal), var(--green), var(--amber), var(--red));

  --font-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 92px;
  --radius: 10px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }

p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 6px;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.spectrum-rule { height: 4px; background: var(--spectrum); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }

.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #2a2f3c; }

.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: #dfe2ea; }

.btn-ghost { border-color: rgba(255, 255, 255, .35); color: var(--on-ink); }
.btn-ghost:hover { border-color: var(--white); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { width: 68px; height: 68px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3125rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

@media (max-width: 560px) {
  :root { --header-h: 80px; }
  .brand img { width: 58px; height: 58px; }
  .brand-name { font-size: 1.1875rem; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a:not(.btn) {
  padding: 10px 0;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  transition: color .15s;
}
.site-nav a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px; height: 2px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform .2s, background-color .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  /* On short screens (a phone held sideways) the open menu scrolls instead of running off the bottom. */
  .site-nav {
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-nav a:not(.btn) {
    padding: 14px 0;
    font-size: 1.0625rem;
    color: var(--text);
    border-bottom: 1px solid var(--line);
  }
  .site-nav .btn { margin-top: 16px; min-height: 48px; }
}

/* Hero */

.hero {
  background: var(--ink);
  color: var(--on-ink);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(56px, 8vw, 104px);
}

.hero .eyebrow { color: var(--on-ink-muted); }

.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.6rem, 6.4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-lede {
  margin-top: 24px;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--on-ink-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.prism { width: 100%; height: auto; overflow: visible; }

.beam {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 1;
}

.prism-body {
  fill: rgba(255, 255, 255, .05);
  stroke: rgba(255, 255, 255, .8);
  stroke-width: 2;
  stroke-linejoin: round;
}

.ray { text-decoration: none; }
.ray path {
  fill: none;
  stroke: var(--c);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 1;
}
.ray circle { fill: var(--c); }
.ray text {
  fill: var(--on-ink);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  dominant-baseline: middle;
  transition: fill .15s;
}
a.ray:hover text,
a.ray:focus-visible text { fill: var(--c); }

/* Extra pieces used by the diagrams on the inner pages */
.beam { stroke-linejoin: round; }
.outline-line { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 2; }
.led { fill: var(--green); }
.caption {
  fill: var(--on-ink);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
}
.ray:focus-visible { outline: none; }
.ray:focus-visible text { text-decoration: underline; }

/* The diagram waits for .is-ready (set once the intro curtain lifts) so it
   never plays unseen. Without JavaScript it is simply shown, not animated. */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.is-ready) .prism :is(.beam, .ray path) { stroke-dashoffset: 1; }
  .js:not(.is-ready) .prism :is(.prism-fan, .ray circle, .ray text, .led, .caption) { opacity: 0; }

  .is-ready .beam { animation: draw .6s ease-out both; }
  .is-ready .prism-fan { animation: fade .3s ease-out .55s both; }
  .is-ready .ray path { animation: draw .5s ease-out both; animation-delay: calc(var(--d, .7s) + var(--i) * .09s); }
  .is-ready .ray circle,
  .is-ready .ray text { animation: fade .4s ease-out both; animation-delay: calc(var(--d, .7s) + .4s + var(--i) * .09s); }
  .is-ready .led { animation: fade .4s ease-out both; animation-delay: calc(.6s + var(--i) * .12s); }
  .is-ready .caption { animation: fade .4s ease-out both; }
}

@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { max-width: 600px; }
  .ray text,
  .caption { font-size: 24px; }
}

/* On wide screens the diagram runs out into the right-hand margin. */
@media (min-width: 1280px) {
  .prism { width: 118%; max-width: none; }
}

/* Sections */

.section { padding-block: clamp(64px, 9vw, 120px); }

.section-head { max-width: 40rem; }
.section-head h2 { margin-top: 14px; }
.section-lede {
  margin-top: 18px;
  font-size: 1.125rem;
  color: var(--muted);
}

/* Services */

.service-list { margin-top: clamp(36px, 5vw, 64px); }

.service {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px clamp(24px, 4vw, 56px);
  align-items: start;
  padding: 36px 0 36px 28px;
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }

.service::before {
  content: "";
  position: absolute;
  left: 0; top: 36px; bottom: 36px;
  width: 4px;
  border-radius: 2px;
  background: var(--hue);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
}
.service-icon svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: var(--hue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-body h3 { font-size: 1.5rem; }
.service-body p { margin-top: 10px; color: var(--muted); max-width: 32rem; }

.service-scope {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9688rem;
}
.service-scope li {
  position: relative;
  padding: 9px 0 9px 22px;
  border-bottom: 1px dashed var(--line);
}
.service-scope li:last-child { border-bottom: 0; }
.service-scope li::before {
  content: "";
  position: absolute;
  left: 2px; top: 1.15em;
  width: 8px; height: 2px;
  background: var(--hue);
}

@media (max-width: 900px) {
  .service { grid-template-columns: 56px minmax(0, 1fr); }
  .service-scope { grid-column: 2; margin-top: 8px; }
}
@media (max-width: 560px) {
  .service { grid-template-columns: 1fr; padding-left: 22px; }
  .service-scope { grid-column: 1; }
}

/* Approach */

.approach {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.approach-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.principles {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.principles li { padding: 14px 0; border-top: 1px solid var(--line); }
.principles strong { color: var(--text); font-weight: 600; }

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.step:first-child { border-top: 0; padding-top: 0; }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  padding-top: 4px;
}
.step h3 { font-size: 1.375rem; }
.step p { margin-top: 8px; color: var(--muted); }

@media (max-width: 900px) {
  .approach-inner { grid-template-columns: 1fr; }
}

/* Contact */

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.contact-copy h2 { margin-top: 14px; }

.contact-details { margin: 36px 0 0; }
.contact-details > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.contact-details dt {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.contact-details dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.contact-details address { font-style: normal; }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.field-wide { grid-column: 1 / -1; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
}
.optional { color: var(--muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #c4c7cf;
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 132px; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 1px;
  border-color: var(--indigo);
}
.field [aria-invalid="true"] { border-color: var(--red); }

.check {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.check input {
  width: 26px; height: 26px;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.check label { padding-block: 2px; font-size: 0.9375rem; cursor: pointer; }
.check input[aria-invalid="true"] { outline: 2px solid var(--red); outline-offset: 2px; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.form-note { font-size: 0.875rem; color: var(--muted); }
.form-status { font-size: 0.9375rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: #b3261a; }

@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .contact-form { grid-template-columns: 1fr; }
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: var(--on-ink);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding-block: 48px 36px;
}

.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand img { border-radius: 50%; background: var(--white); }
.footer-name { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; line-height: 1.3; }
.footer-tag {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
}

.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-nav a {
  padding: 8px 0;
  color: var(--on-ink-muted);
  text-decoration: none;
  transition: color .15s;
}
.footer-nav a:hover { color: var(--white); }

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 0.875rem;
  color: var(--on-ink-muted);
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* Shared pieces for the inner pages */

.site-nav a[aria-current="page"]:not(.btn) { color: var(--text); font-weight: 600; }

.text-link {
  display: inline-block;
  margin-top: 6px;
  padding-block: 8px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--hue, var(--line));
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.text-link:hover { text-decoration-color: currentColor; }

.page-hero {
  background: var(--ink);
  color: var(--on-ink);
}
.page-hero { overflow: hidden; }
.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(56px, 8vw, 104px);
}
@media (max-width: 900px) {
  .page-hero-inner { grid-template-columns: 1fr; }
}
.page-hero .eyebrow { color: var(--on-ink-muted); }
.page-hero h1 {
  margin-top: 18px;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.page-hero p:not(.eyebrow) {
  margin-top: 22px;
  max-width: 40rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--on-ink-muted);
}

.after-head { margin-top: clamp(64px, 8vw, 104px); }
.after-head + .card-grid { margin-top: 32px; }

.section-alt {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(32px, 5vw, 56px);
}

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--hue, var(--ink));
  border-radius: var(--radius);
}
.section-alt .card { background: var(--paper); }
.card .eyebrow { font-size: 0.8125rem; }
.card h3 { margin-top: 10px; font-size: 1.625rem; }
.card > p:not(.eyebrow) { margin-top: 12px; color: var(--muted); }
.card .service-scope { margin-top: 20px; }

a.card {
  text-decoration: none;
  transition: border-color .18s, transform .18s;
}
a.card:hover { border-color: var(--ink); border-top-color: var(--hue, var(--ink)); transform: translateY(-2px); }
.card-more { margin-top: auto; padding-top: 20px; font-weight: 600; }

.fine-print {
  margin-top: 28px;
  max-width: 46rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.spec-list { margin: 0; }
.spec-list > div {
  padding: 20px 0 20px 22px;
  border-top: 1px solid var(--line);
  position: relative;
}
.spec-list > div:first-child { border-top: 0; padding-top: 0; }
.spec-list > div::before {
  content: "";
  position: absolute;
  left: 0; top: 20px; bottom: 20px;
  width: 3px;
  border-radius: 2px;
  background: var(--hue, var(--ink));
}
.spec-list > div:first-child::before { top: 0; }
.spec-list dt { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; }
.spec-list dd { margin: 6px 0 0; color: var(--muted); }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.tag-list li {
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9375rem;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}
.steps-row li { padding-top: 18px; border-top: 2px solid var(--ink); }
.steps-row .step-num { display: block; padding: 0; }
.steps-row h3 { margin-top: 10px; }
.steps-row p { margin-top: 8px; color: var(--muted); font-size: 1rem; }

.cta-band { background: var(--ink); color: var(--on-ink); }
.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding-block: clamp(48px, 7vw, 80px);
}
.cta-band h2 { max-width: 20ch; }
.cta-band p { margin-top: 12px; max-width: 34rem; color: var(--on-ink-muted); }

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 621px) and (max-width: 900px) {
  /* An odd card left on its own row fills the row. */
  .card-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .steps-row { grid-template-columns: 1fr; }
}

/* News */

.news-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: clamp(28px, 4vw, 48px);
}
.news-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.news-filters button {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid #c4c7cf;
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.news-filters button:hover { border-color: var(--ink); }
.news-filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.news-updated { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }

.news-list { margin-top: 24px; border-bottom: 1px solid var(--line); }
.news-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 6px 32px;
  padding: 26px 0 26px 20px;
  border-top: 1px solid var(--line);
  position: relative;
}
.news-item::before {
  content: "";
  position: absolute;
  left: 0; top: 26px; bottom: 26px;
  width: 3px;
  border-radius: 2px;
  background: var(--hue);
}
.news-item[data-category="ai"] { --hue: var(--green); }
.news-item[data-category="security"] { --hue: var(--red); }
.news-item[data-category="computing"] { --hue: var(--indigo); }
.news-item[data-category="tech"] { --hue: var(--teal); }
.news-item[data-category="rpa"] { --hue: var(--amber); }
.news-meta { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); padding-top: 4px; }
.news-meta span { display: block; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); }
.news-item h3 { font-size: 1.25rem; }
.news-item h3 a { text-decoration: none; }
.news-item h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.news-item p { margin-top: 8px; color: var(--muted); max-width: 46rem; }
.news-source { margin-top: 10px; font-size: 0.875rem; font-weight: 500; }
.news-empty { padding: 32px 0; color: var(--muted); }
.news-more { margin-top: 28px; }

@media (max-width: 640px) {
  .news-item { grid-template-columns: 1fr; }
  .news-meta span { display: inline; margin: 0 0 0 10px; }
}

/* Scroll reveal (only when JS is running) */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease-out, transform .5s ease-out;
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Smooth scrolling (Lenis). These rules only apply once the library has loaded. */

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Intro curtain: shown on the first page of a visit (class set by js/boot.js),
   lifted when main.js adds .is-ready. */

.show-loader:not(.is-ready) { overflow: hidden; }
.show-loader body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink) url("../assets/logo-320.webp") center calc(50% - 28px) / 128px no-repeat;
  transition: transform .85s cubic-bezier(.65, 0, .35, 1);
}
.show-loader body::after {
  content: "";
  position: fixed;
  z-index: 201;
  left: 50%;
  top: calc(50% + 72px);
  width: 160px;
  height: 3px;
  margin-left: -80px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, .2);
  background-image: var(--spectrum);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  animation: loader-fill 1.28s cubic-bezier(.65, 0, .35, 1) .12s forwards;
  transition: opacity .3s;
}
.show-loader.is-ready body::before { transform: translateY(-105%); }
.show-loader.is-ready body::after { opacity: 0; }
@keyframes loader-fill { to { background-size: 100% 100%; } }

/* Headline reveal: main.js wraps each word; words rise from behind a clip edge. */

@media (prefers-reduced-motion: no-preference) {
  .js:not(.is-ready) :is(.hero, .page-hero) h1:not(.words) { opacity: 0; }

  .words .w {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: .14em;
    margin-bottom: -.14em;
  }
  .words .w > span {
    display: inline-block;
    opacity: 0;
    transform: translateY(115%);
    transition: transform 1s cubic-bezier(.16, 1, .3, 1), opacity .4s ease-out;
    transition-delay: calc(var(--i) * var(--stagger, 70ms));
  }
  .words.is-in .w > span { opacity: 1; transform: none; }
  h1.words { --stagger: 120ms; }
}

/* Hover interactions, for devices with a real pointer only. */

.btn::after {
  content: "";
  flex: none;
  width: 1.05em;
  height: 1.05em;
  margin-left: .5em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.news-more::after { display: none; }

.card-more::after,
.text-link::after {
  content: "\2192";
  display: inline-block;
  margin-left: .4em;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}

.service-icon { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.news-item::before { transition: transform .3s ease-out; transform-origin: left; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn:hover::after { transform: translateX(5px); }
  a.card:hover .card-more::after,
  .text-link:hover::after { transform: translateX(6px); }

  .js .card.reveal.is-visible { transition: transform .4s cubic-bezier(.34, 1.4, .64, 1), opacity .5s ease-out, border-color .18s; }
  .js .card.reveal.is-visible:hover,
  .card:hover { transform: translateY(-6px); }

  .service:hover .service-icon { transform: scale(1.1) rotate(-6deg); }
  .news-item:hover::before { transform: scaleX(2); }
  .hero-figure { will-change: transform; }
}
