/* Calnetic visual layer: the original site's charcoal, orange arcs, and bold
   sans headlines, applied over the compiled Tailwind utilities. */
:root {
  --font-plex-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-plex-serif: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --canvas: #f5f5f5;
  --canvas-2: #efefef;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --muted: #5c5f66;
  --border: #e5e5e5;
  --charcoal: #3f3f3f;
  --charcoal-deep: #2c2c2c;
  --slate: #666666;
  --radius-card: 1.25rem;
  --arcs: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 356 425' fill='none'%3E%3Cpath d='M16 425V380a129 129 0 0 1 258 0v45' stroke='%23fe5b2a' stroke-opacity='.55' stroke-width='32'/%3E%3Cpath d='M193 425V132a116 116 0 0 1 232 0v293' stroke='%23fe5b2a' stroke-width='32'/%3E%3C/svg%3E");
}

body {
  font-family: var(--font-plex-sans);
  color: var(--ink);
  text-rendering: optimizeLegibility;
}

/* Headlines: Inter Tight, heavy and tight, like the original site. */
.font-serif {
  font-family: var(--font-plex-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
}
h1.font-serif,
h2.font-serif {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-wrap: balance;
}
h3.font-serif { letter-spacing: -0.02em; text-wrap: balance; }
blockquote.font-serif { font-weight: 500; letter-spacing: -0.01em; }

main > :is(header, section):first-child h1 {
  font-size: clamp(2.5rem, 4.6vw + 0.5rem, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.034em;
}

/* Eyebrow labels read in orange with a short rule. */
p.font-sans.text-\[0\.68rem\].uppercase {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}
p.font-sans.text-\[0\.68rem\].uppercase.text-muted { color: var(--orange); }
a.mb-5.inline-block.uppercase { display: table; }
p.font-sans.text-\[0\.68rem\].uppercase::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

/* Navigation in sentence case, as on the original. */
.nav-link {
  text-transform: none;
  font-size: 0.925rem;
  letter-spacing: 0;
  font-weight: 500;
}
.site-header .header-contact { padding: 0.7rem 1.4rem; }
body[data-home] .site-header.is-solid { background: rgb(255 255 255 / 0.95); }

/* Buttons */
.group\/btn {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.3s, transform 0.3s var(--ease-expo), translate 0.55s var(--ease-expo);
}
.group\/btn.bg-orange:hover {
  box-shadow: 0 12px 28px -12px rgb(254 91 42 / 0.65);
  transform: translateY(-1px);
}
.group\/btn svg { transition: transform 0.3s var(--ease-expo); }
.group\/btn:hover svg { transform: translateX(3px); }

/* Cards */
article.overflow-hidden.border,
figure.border,
.rounded-2xl.border.border-border {
  border-radius: var(--radius-card);
}
article.overflow-hidden.border {
  border-color: var(--border);
  transition: box-shadow 0.45s var(--ease-smooth), transform 0.45s var(--ease-smooth), border-color 0.3s;
}
article.overflow-hidden.border img { transition: transform 1.1s var(--ease-smooth); }
a.group:hover article.overflow-hidden.border {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.04), 0 28px 50px -30px rgb(0 0 0 / 0.4);
}
a.group:hover article.overflow-hidden.border img { transform: scale(1.045); }
article span.text-orange.uppercase {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
article span.text-orange.uppercase::after {
  content: "\2192";
  font-size: 0.9rem;
  letter-spacing: 0;
  transition: transform 0.3s var(--ease-expo);
}
a.group:hover article span.text-orange.uppercase::after { transform: translateX(4px); }
.shadow-card { box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 16px 36px -26px rgb(0 0 0 / 0.35); }

/* Photo heroes: neutral charcoal wash, header-aligned copy, and the orange arcs. */
main > :is(header, section).isolate.bg-ink:first-child {
  background: var(--charcoal);
}
main > :is(header, section).isolate.bg-ink:first-child > .pointer-events-none.absolute.inset-0 { display: none; }
main > :is(header, section).isolate.bg-ink:first-child > .absolute.inset-0.overflow-hidden {
  z-index: -1;
  filter: grayscale(1) brightness(0.9) contrast(1.02);
}
main > :is(header, section).isolate.bg-ink:first-child:not(.home-hero)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(38 38 38 / 0.92) 0%, rgb(48 48 48 / 0.74) 38%, rgb(58 58 58 / 0.42) 70%, rgb(58 58 58 / 0.3) 100%),
    linear-gradient(0deg, rgb(38 38 38 / 0.45) 0%, transparent 45%);
}
main > :is(header, section).isolate.bg-ink:first-child:not(.home-hero)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: 78%;
  aspect-ratio: 356 / 425;
  pointer-events: none;
  background: var(--arcs) right bottom / contain no-repeat;
}
main > :is(header, section).isolate.bg-ink:first-child > .relative { z-index: 1; }
main > header.isolate.bg-ink:first-child > .max-w-6xl { max-width: 88rem; }
main > header.isolate.bg-ink:first-child > div.relative.flex {
  min-height: min(40rem, 72vh);
}
main > header.isolate.bg-ink:first-child .text-white\/75 { color: rgb(255 255 255 / 0.82); }
@media (max-width: 767px) {
  main > :is(header, section).isolate.bg-ink:first-child:not(.home-hero)::after { height: 50%; opacity: 0.55; }
}

/* Closing call to action: a charcoal panel instead of a flat grey strip. */
section.cta-band {
  border-top: 0;
  background: var(--surface);
  padding: 0 1.25rem 5rem;
}
.cta-band > div {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-items: flex-start;
  border-radius: 1.75rem;
  background: linear-gradient(110deg, var(--charcoal-deep) 0%, #454545 55%, #5e5e5e 100%);
  padding: 3.25rem 1.75rem;
  color: #fff;
}
.cta-band > div::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 1.5rem;
  bottom: -1px;
  width: 11rem;
  height: 88%;
  background: var(--arcs) right bottom / contain no-repeat;
  opacity: 0.9;
}
.cta-band h2 { color: #fff; font-size: clamp(2rem, 3vw + 0.5rem, 3rem); }
.cta-band p { color: rgb(255 255 255 / 0.74); }
@media (min-width: 640px) {
  .cta-band { padding-inline: 2rem; }
  .cta-band > div { padding: 4rem 3.5rem; }
}
@media (max-width: 767px) {
  .cta-band > div::after { width: 7rem; height: 45%; opacity: 0.5; }
}
@media (min-width: 768px) {
  .cta-band > div { align-items: center; }
  .cta-band > div > a { margin-right: 11rem; }
}
@media (min-width: 1024px) {
  .cta-band { padding-inline: 2.5rem; padding-bottom: 6rem; }
  .cta-band > div { max-width: 83rem; padding: 4.5rem 4.5rem; }
}

/* Footer: dark, like the original. */
footer.site-footer {
  background: var(--charcoal-deep);
  border-top: 0;
  color: rgb(255 255 255 / 0.9);
}
.site-footer > svg { opacity: 0; }
.site-footer .text-muted { color: rgb(255 255 255 / 0.62); }
.site-footer a.text-muted:hover { color: var(--orange); }
.site-footer .border-border,
.site-footer > .border-t { border-color: rgb(255 255 255 / 0.1); }
.site-footer::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -5rem;
  z-index: -1;
  width: 18rem;
  height: 22rem;
  background: var(--arcs) right bottom / contain no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

/* FAQ disclosure rows */
details.rounded-2xl { border-radius: 1rem; }

/* ---------- Homepage ---------- */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(40 40 40 / 0.6) 0%, rgb(50 50 50 / 0.25) 40%, transparent 60%);
}
.home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 100%;
}
.home-hero-inner {
  display: flex;
  min-height: min(58rem, 100svh);
  flex-direction: column;
  justify-content: space-between;
  gap: 4rem;
  padding-top: 9.5rem;
  padding-bottom: 2.5rem;
}
.home-hero-copy { max-width: 50rem; margin-block: auto; }
.home-hero-lede {
  max-width: 38rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgb(255 255 255 / 0.82);
}
.home-hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  padding-top: 2rem;
}
.home-hero-stats { display: flex; gap: 3.5rem; }
.home-hero-stats dt {
  font-family: var(--font-plex-serif);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.home-hero-stats dd {
  margin-top: 0.6rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.62);
}
.home-social { display: flex; align-items: center; gap: 1.25rem; }
.home-social p {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.home-social-rule { width: 5rem; height: 1px; background: rgb(255 255 255 / 0.5); }
.home-social svg { width: 1.15rem; height: 1.15rem; }

.home-services { border-top: 0; }

.home-voices-photo {
  display: flex;
  min-height: clamp(20rem, 32vw, 28rem);
  align-items: center;
  background: var(--charcoal);
}
.home-voices-photo img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
}
.home-voices-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(38 38 38 / 0.7) 0%, rgb(38 38 38 / 0.25) 55%, transparent 80%);
}
@media (max-width: 767px) {
  .home-voices-photo::before { background: linear-gradient(0deg, rgb(38 38 38 / 0.8), rgb(38 38 38 / 0.45)); }
  .home-insights ol a.flex { flex-direction: column; gap: 0.5rem; }
  .home-insights ol a.flex > p { width: auto; padding-top: 0; }
}
.home-voices-photo h2 { max-width: 12ch; font-size: clamp(2.5rem, 4.6vw + 0.5rem, 4.5rem); }
.home-voices-grid { display: grid; }
.voice {
  display: flex;
  min-height: 19rem;
  flex-direction: column;
  padding: 2.75rem clamp(1.5rem, 3vw, 3rem) 2.5rem;
  color: #fff;
}
.voice-orange { background: var(--orange-hover); }
.voice-charcoal { background: var(--charcoal); }
.voice-slate { background: var(--slate); }
.voice-mark {
  font-family: var(--font-plex-serif);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 0.7;
  height: 2.25rem;
  color: rgb(255 255 255 / 0.4);
}
.voice blockquote {
  max-width: 30rem;
  font-family: var(--font-plex-serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.voice figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: auto;
  padding-top: 2.5rem;
}
.voice-name { font-size: 1.05rem; font-weight: 700; }
.voice-role {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.75);
}
@media (min-width: 768px) {
  .home-voices-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.home-clients-head { max-width: 46rem; margin-inline: auto; }
.home-clients .logo-marquee { margin-top: 3.5rem; }

.home-industries { background: #f4f4f4 url("/original/2024/07/3.png") center / cover no-repeat; }
.home-industries::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.55), rgb(255 255 255 / 0.2));
}
.ind-grid { display: grid; gap: 1rem; }
.ind-tile a {
  position: relative;
  isolation: isolate;
  display: block;
  height: 19rem;
  overflow: hidden;
  border-radius: var(--radius-card);
  color: #fff;
  background: var(--orange);
}
.ind-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-smooth);
}
.ind-tile a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(254 91 42 / 0.8) 0%, rgb(232 68 26 / 0.66) 100%);
  transition: opacity 0.5s var(--ease-smooth);
}
.ind-tile a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgb(30 30 30 / 0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth);
}
.ind-body {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem;
}
.ind-name {
  font-family: var(--font-plex-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.ind-text {
  display: none;
  max-width: 22rem;
  margin-top: auto;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgb(255 255 255 / 0.9);
}
.ind-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  border-radius: 999px;
  background: #fff;
  padding: 0.7rem 1.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background-color 0.3s, color 0.3s;
}
.ind-cta::after { content: "\2192"; letter-spacing: 0; transition: transform 0.3s var(--ease-expo); }
@media (hover: hover) {
  .ind-text { display: block; opacity: 0; transform: translateY(0.75rem); transition: opacity 0.4s, transform 0.5s var(--ease-expo); }
  .ind-text + .ind-cta { margin-top: 1.25rem; }
  .ind-tile a:hover::before { opacity: 0.18; }
  .ind-tile a:hover::after { opacity: 1; }
  .ind-tile a:hover img { transform: scale(1.05); }
  .ind-tile a:hover .ind-text { opacity: 1; transform: none; }
  .ind-tile a:hover .ind-cta { background: var(--orange); color: #fff; }
  .ind-tile a:hover .ind-cta::after { transform: translateX(3px); }
}
@media (min-width: 640px) {
  .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ind-tile:last-child { grid-column: 1 / -1; }
  .ind-tile:last-child a { height: 13rem; }
}
@media (min-width: 1024px) {
  .ind-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ind-tile a { height: 21rem; }
  .ind-tile:last-child a { height: 13rem; }
}

.home-mission { background: var(--charcoal); }
.home-mission-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.home-mission::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(40 40 40 / 0.7) 0%, rgb(40 40 40 / 0.35) 55%, transparent 80%);
}
.home-mission-copy { max-width: 46rem; }
.home-mission-copy h2 { font-size: clamp(2.5rem, 4.6vw + 0.5rem, 4.5rem); }
.home-mission-copy .space-y-5 { color: rgb(255 255 255 / 0.85); }

.platform-grid {
  gap: 0.75rem;
  border: 0;
  background: transparent;
}
.platform-grid > li {
  border-radius: 1rem;
  background: var(--canvas);
  padding-block: 1.75rem;
  transition: background-color 0.3s, box-shadow 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}
.platform-grid > li > span:first-child { height: 2.75rem; }
.platform-grid img.h-8 { height: 2.5rem; }
.platform-grid img.h-5 { height: 1.6rem; }
.platform-grid > li:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.04), 0 20px 40px -28px rgb(0 0 0 / 0.4);
}

/* Blog posts */
.post-page h1 {
  font-family: var(--font-plex-serif);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}
.post-body h4 {
  font-family: var(--font-plex-serif);
  letter-spacing: -0.015em;
}
.post-figure img { border-radius: 1rem; }
