/* Innovative Encompass website
   All colors and fonts come from brand-tokens.css; tints are mixes of those tokens. */

:root {
  --ink: var(--ie-charcoal);
  --ink-soft: color-mix(in srgb, var(--ie-charcoal) 74%, var(--ie-white));
  --ink-faint: color-mix(in srgb, var(--ie-charcoal) 55%, var(--ie-white));
  --line: color-mix(in srgb, var(--ie-charcoal) 12%, var(--ie-white));
  --red-wash: color-mix(in srgb, var(--ie-brand-red) 7%, var(--ie-white));
  --on-dark: var(--ie-white);
  --on-dark-soft: color-mix(in srgb, var(--ie-white) 72%, var(--ie-charcoal));
  --dark-line: color-mix(in srgb, var(--ie-white) 14%, var(--ie-charcoal));
  --dark-card: color-mix(in srgb, var(--ie-white) 5%, var(--ie-charcoal));

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px color-mix(in srgb, var(--ie-charcoal) 8%, transparent),
            0 12px 32px -12px color-mix(in srgb, var(--ie-charcoal) 22%, transparent);
  --container: 1180px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--ie-font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ie-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ie-tagline-red); }
a:hover { color: var(--ie-brand-red); }

h1, h2, h3, h4 {
  font-family: var(--ie-font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--ie-tagline-red); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.sr-only {
  position: absolute; 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: 16px; top: -60px; z-index: 100;
  background: var(--ie-charcoal); color: var(--ie-white);
  padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--ie-white); }

/* Eyebrow + tagline */
.eyebrow {
  font-family: var(--ie-font-light);
  font-weight: 500;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--ie-tagline-red);
  margin-bottom: .9rem;
  display: flex; align-items: center; gap: .7rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 4px; border-radius: 2px;
  background: var(--ie-gradient-innov);
}
.tagline { color: var(--ink); letter-spacing: var(--ie-tagline-letter-spacing); font-weight: 400; font-size: .9rem; }
.tagline .inno { color: var(--ie-tagline-red); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--ie-font-heading);
  font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn-primary {
  background: var(--ie-brand-red); color: var(--ie-white);
  box-shadow: 0 8px 22px -10px var(--ie-brand-red);
}
.btn-primary:hover {
  background: var(--ie-tagline-red); color: var(--ie-white);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px var(--ie-highlight-red);
}
.btn-ghost { border-color: var(--ie-charcoal); color: var(--ie-charcoal); background: transparent; }
.btn-ghost:hover { background: var(--ie-charcoal); color: var(--ie-white); }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.profile-download { margin-top: 1.4rem; }
.profile-download .icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ie-white) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px var(--ie-charcoal); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { width: 170px; }
.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; position: relative;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--ie-gradient-innov); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.site-nav a:not(.btn):hover::after, .site-nav a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(60% 70% at 85% 40%, var(--red-wash), transparent 70%),
    var(--ie-white);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; perspective: 1000px; }
.hero h1 .underline {
  background-image: var(--ie-gradient-innov);
  background-size: 100% .14em; background-repeat: no-repeat; background-position: 0 92%;
  padding-bottom: .04em;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.hero-points {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; color: var(--ink-soft); font-size: .95rem;
}
.hero-points li { display: flex; align-items: center; gap: .5rem; }
.hero-points li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  border: 2px solid var(--ie-brand-red);
}

.hero-visual {
  position: relative; aspect-ratio: 1; max-width: 460px; justify-self: center; width: 100%;
  cursor: pointer; transition: transform .3s ease;
  will-change: transform;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 12%; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--ie-brand-red) 22%, transparent) 0%, transparent 72%);
  animation: pulse-glow 4.5s ease-in-out infinite;
}
.hero-icon {
  position: absolute; inset: 14%; width: 72%; height: 72%;
  object-fit: contain; mix-blend-mode: multiply;
  animation: float 7s ease-in-out infinite;
  transition: animation-duration .25s ease;
}
.orbit {
  position: absolute; border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--ie-brand-red) 30%, var(--ie-white));
}
.orbit-1 { inset: 4%; animation: spin 60s linear infinite; transition: animation-duration .25s ease; }
.orbit-2 { inset: 18%; border-style: solid; border-color: var(--line); animation: spin-reverse 90s linear infinite; transition: animation-duration .25s ease; }
.chip {
  position: absolute;
  background: var(--ie-white); color: var(--ink);
  font-family: var(--ie-font-heading); font-weight: 600; font-size: .85rem;
  padding: .45rem .9rem; border-radius: 999px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: flex; align-items: center; gap: .45rem;
  transition: transform .2s ease;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ie-brand-red); }
.chip-a { top: 8%; left: 0; }
.chip-b { top: 30%; right: -2%; }
.chip-c { bottom: 24%; left: -4%; }
.chip-d { bottom: 4%; right: 10%; }

/* Hover/focus: whole graphic livens up — faster spin/float, chips lift slightly */
.hero-visual:hover .hero-icon,
.hero-visual:focus-within .hero-icon { animation-duration: 2.6s; }
.hero-visual:hover .orbit-1,
.hero-visual:focus-within .orbit-1 { animation-duration: 14s; }
.hero-visual:hover .orbit-2,
.hero-visual:focus-within .orbit-2 { animation-duration: 22s; }
.hero-visual:hover .chip,
.hero-visual:focus-within .chip { transform: translateY(-3px); }

@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }
@keyframes pulse-glow { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.08); } }

/* Strip */
.strip { background: var(--ie-charcoal); color: var(--on-dark); position: relative; }
.strip::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--ie-gradient-innov);
}
.strip-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem;
  padding: 1.6rem 0; font-family: var(--ie-font-heading); font-weight: 600; font-size: 1.1rem;
}
.strip p { margin: 0; }
.strip p:first-child { color: var(--on-dark-soft); font-weight: 400; }

/* Sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-grey { background: var(--ie-light-grey); }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-lead { font-size: 1.1rem; color: var(--ink-soft); }
.subhead { margin: 4rem 0 1.5rem; font-size: 1.35rem; }

.grid { display: grid; gap: 1.25rem; }

.card {
  background: var(--ie-white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }

/* Services */
.services-grid { grid-template-columns: repeat(4, 1fr); }
.creative-grid { grid-template-columns: repeat(3, 1fr); }
.group-label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  font-size: .85rem; text-transform: uppercase; letter-spacing: .14em;
  margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line);
}
.group-label span { font-family: var(--ie-font-body); font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--ink-faint); }
.services-grid + .group-label { margin-top: 3rem; }
.service-dark { background: var(--ie-charcoal); border-color: var(--ie-charcoal); color: var(--on-dark); }
.service.service-dark p { color: var(--on-dark-soft); }
.service.service-dark .deliverables { color: var(--on-dark-soft); border-top-color: var(--dark-line); }
.service-dark .icon { background: color-mix(in srgb, var(--ie-brand-red) 45%, var(--ie-charcoal)); stroke: var(--ie-white); }
.service-cta {
  display: flex; flex-direction: column; justify-content: center; text-decoration: none;
  background: var(--red-wash); border: 2px dashed color-mix(in srgb, var(--ie-brand-red) 35%, var(--ie-white));
  color: var(--ink);
}
.service-cta p { color: var(--ink-soft); font-size: .96rem; }
.service-cta span { font-family: var(--ie-font-heading); font-weight: 700; color: var(--ie-brand-red); }
.service-cta:hover { color: var(--ink); }
.service { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.service::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--ie-gradient-innov); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.service:hover::after { transform: scaleX(1); }
.service p { color: var(--ink-soft); font-size: .96rem; }
.service .deliverables {
  margin-top: auto; margin-bottom: 0; padding-top: .8rem; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--ink-faint); font-weight: 500;
}
.icon {
  width: 44px; height: 44px; padding: 10px; margin-bottom: 1.1rem;
  border-radius: 12px; background: var(--red-wash);
  fill: none; stroke: var(--ie-brand-red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Dark section */
.section-dark { background: var(--ie-charcoal); color: var(--on-dark); }
.section-dark .section-lead { color: var(--on-dark-soft); }
.section-dark .eyebrow { color: var(--on-dark); }

.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; position: relative;
}
.steps::before {
  content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px;
  background: var(--ie-gradient-innov); opacity: .9;
}
.step { position: relative; }
.step-num {
  position: relative; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ie-charcoal); border: 2px solid var(--ie-brand-red); color: var(--on-dark);
  font-family: var(--ie-font-heading); font-weight: 700; margin-bottom: 1.1rem;
}
.step:hover .step-num { background: var(--ie-brand-red); }
.step h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.step p { color: var(--on-dark-soft); font-size: .92rem; margin: 0; }

.section-dark .subhead { color: var(--on-dark); }
.models-grid { grid-template-columns: repeat(4, 1fr); }
.model {
  background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column;
}
.model p { color: var(--on-dark-soft); font-size: .94rem; }
.model span {
  margin-top: auto; font-size: .85rem; font-weight: 600; color: var(--on-dark);
  padding-top: .8rem; border-top: 1px solid var(--dark-line);
}
.promises {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 2rem;
}
.promises li { display: flex; gap: .75rem; color: var(--on-dark-soft); }
.promises li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: .25rem; border-radius: 50%;
  background: var(--ie-brand-red)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

/* Stack */
.stack { display: grid; gap: .25rem; background: var(--ie-white); border-radius: var(--radius); padding: .75rem 1.75rem; border: 1px solid var(--line); }
.stack-row {
  display: grid; grid-template-columns: 170px 1fr; gap: 1rem; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.stack-row:last-child { border-bottom: 0; }
.stack-row h3 { font-size: .95rem; margin: 0; color: var(--ink-soft); font-weight: 600; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li {
  font-size: .88rem; font-weight: 500; padding: .35rem .8rem; border-radius: 999px;
  background: var(--ie-light-grey); color: var(--ink); border: 1px solid var(--line);
}
.tags .tag-core { background: var(--ie-brand-red); color: var(--ie-white); border-color: var(--ie-brand-red); }
.tags-sm li { font-size: .78rem; padding: .25rem .65rem; }

.industries-grid { grid-template-columns: repeat(4, 1fr); }
.industry {
  background: var(--ie-white); border-radius: var(--radius); padding: 1.4rem 1.5rem;
  border-left: 4px solid var(--ie-brand-red);
}
.industry p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* Work */
.work-grid { grid-template-columns: repeat(3, 1fr); }
.work { display: flex; flex-direction: column; }
.work p { color: var(--ink-soft); font-size: .96rem; }
.work .tags { margin-top: auto; }
.work-tag { font-size: .78rem !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ie-tagline-red) !important; margin-bottom: .6rem; }
.work-client { font-size: .88rem !important; color: var(--ink-faint) !important; font-weight: 500; margin-top: -.2rem; }
.work-feature {
  grid-column: span 2;
  background: var(--ie-charcoal); color: var(--on-dark); border-color: var(--ie-charcoal);
  position: relative; overflow: hidden; padding: 2.4rem;
}
.work-feature::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  border: 28px solid var(--ie-brand-red); opacity: .35;
}
.work-feature h3 { font-size: 1.7rem; max-width: 16em; position: relative; }
.work-feature p { color: var(--on-dark-soft); font-size: 1.05rem; max-width: 36em; position: relative; }
.work-feature .work-tag { color: var(--on-dark) !important; }
.work-feature .work-client { color: var(--on-dark-soft) !important; }
.work-feature .tags li { background: var(--dark-card); color: var(--on-dark); border-color: var(--dark-line); }

.lab {
  margin-top: 2rem; padding: 2rem 2.2rem; border-radius: var(--radius);
  border: 2px dashed color-mix(in srgb, var(--ie-brand-red) 35%, var(--ie-white));
  background: var(--red-wash);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.lab h3 { font-size: 1.35rem; }
.lab p:last-child { margin: 0; color: var(--ink-soft); max-width: 52em; }
.lab .btn { flex: none; }

/* About */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: start; }
.about-copy > p { color: var(--ink-soft); }
.values { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.values li { font-size: .93rem; color: var(--ink-soft); }
.values strong { display: block; color: var(--ink); font-family: var(--ie-font-heading); margin-bottom: .2rem; }
.values strong::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  border: 2.5px solid var(--ie-brand-red); margin-right: .5rem; vertical-align: 1px;
}
.why {
  background: var(--ie-white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.why::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--ie-gradient-innov);
}
.why ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.why li { font-size: .95rem; color: var(--ink-soft); padding-left: 1.6rem; position: relative; }
.why li::before {
  content: ""; position: absolute; left: 0; top: .45rem; width: 10px; height: 10px; border-radius: 3px;
  background: var(--ie-gradient-innov);
}
.why strong { color: var(--ink); }

/* Contact */
.contact { background: linear-gradient(180deg, var(--ie-white), var(--red-wash)); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact-copy > p { color: var(--ink-soft); font-size: 1.1rem; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: grid; gap: .1rem; font-weight: 500; }
.contact-list span { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); }
.contact-list a { word-break: break-all; }
.map-embed { margin-top: 1.6rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-embed iframe { display: block; width: 100%; height: 260px; border: 0; }
.map-directions { display: block; padding: .7rem 1rem; background: var(--ie-white); font-size: .85rem; font-weight: 600; }
.contact-form {
  background: var(--ie-white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
  border: 1px solid var(--line); display: grid; gap: 1.1rem;
}
.field { display: grid; gap: .35rem; }
.field label { font-size: .88rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: .75rem .9rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--ie-white);
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ie-brand-red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ie-brand-red) 14%, transparent);
}
.field.invalid input, .field.invalid textarea { border-color: var(--ie-tagline-red); }
.form-note { margin: 0; font-size: .85rem; color: var(--ink-faint); text-align: center; }
.form-note.error { color: var(--ie-tagline-red); }

/* Footer */
.site-footer { background: var(--ie-charcoal); color: var(--on-dark-soft); padding: 3rem 0; position: relative; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--ie-gradient-innov);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-inner img { width: 190px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer nav a { color: var(--on-dark-soft); text-decoration: none; font-size: .95rem; }
.site-footer nav a:hover { color: var(--on-dark); }
.copyright { margin: 0; font-size: .88rem; }

/* Service pages and hub */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  background: radial-gradient(60% 80% at 90% 30%, var(--red-wash), transparent 70%), var(--ie-white);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 22ch; }
.page-hero .lead { margin-bottom: 1.6rem; }
.breadcrumb { font-size: .88rem; color: var(--ink-faint); margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--ie-brand-red); }
.prose-wide > p, .prose-wide > h2, .prose-wide > .faq { max-width: 860px; }
.prose-wide > p { font-size: 1.08rem; color: var(--ink-soft); }
.deliver-grid { grid-template-columns: repeat(2, 1fr); }
.deliver-grid .card h3 { font-size: 1.1rem; }
.deliver-grid .card p { color: var(--ink-soft); margin: 0; }
.industries-line { margin-top: 1.8rem; color: var(--ink-soft); }
.two-up { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: start; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.checks li { position: relative; padding-left: 1.6rem; color: var(--ink-soft); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45rem; width: 10px; height: 10px; border-radius: 3px;
  background: var(--ie-gradient-innov);
}
.models-list { background: var(--ie-white); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.models-list dl { margin: 0; display: grid; gap: .2rem; }
.models-list dt { font-family: var(--ie-font-heading); font-weight: 700; margin-top: .8rem; }
.models-list dd { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.faq { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary {
  cursor: pointer; font-family: var(--ie-font-heading); font-weight: 600; font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ie-brand-red); font-weight: 700; }
.faq[open] summary::after { content: "−"; }
.faq p { margin: .7rem 0 0; color: var(--ink-soft); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.related {
  display: block; padding: 1.2rem 1.4rem; border-radius: var(--radius); background: var(--ie-white);
  border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  font-family: var(--ie-font-heading); font-weight: 600;
}
.related span { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ie-tagline-red); margin-bottom: .3rem; }
.related:hover { border-color: var(--ie-brand-red); color: var(--ink); }
.cta-band { background: var(--ie-charcoal); color: var(--on-dark); position: relative; }
.cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--ie-gradient-innov); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: .4rem; }
.cta-inner p { margin: 0; color: var(--on-dark-soft); }
.hub-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 3rem; }
.service-link { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.service-link p { color: var(--ink-soft); font-size: .96rem; }
.service-link span { margin-top: auto; font-family: var(--ie-font-heading); font-weight: 700; color: var(--ie-brand-red); }
.service-link:hover { color: var(--ink); }
a.card.service { text-decoration: none; color: var(--ink); }
a.card.service:hover { color: var(--ink); }
.section-dark .card.service p, a.card.service-dark p { color: var(--on-dark-soft); }
a.card.service-dark, a.card.service-dark:hover { color: var(--on-dark); }

/* Form extras */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.optional { font-weight: 400; color: var(--ink-faint); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note.success { color: var(--ie-brand-red); font-weight: 600; }
.form-note a { color: inherit; }
button:disabled { opacity: .7; cursor: wait; }

/* Footer link that opens cookie settings */
.link-button {
  background: none; border: 0; padding: 0; font: inherit; font-size: .95rem; cursor: pointer;
  color: var(--on-dark-soft);
}
.link-button:hover { color: var(--on-dark); }

/* Cookie consent banner */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 720px; margin-inline: auto;
  background: var(--ie-white); color: var(--ink);
  border: 1px solid var(--line); border-top: 4px solid var(--ie-brand-red); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.1rem 1.25rem;
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 320px; font-size: .92rem; color: var(--ink-soft); }
.consent-actions { display: flex; gap: .6rem; }

/* Simple content pages (privacy, thank you) */
.page-plain { padding: clamp(3rem, 7vw, 5rem) 0; }
.page-plain .container { max-width: 820px; }
.page-plain h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-plain h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.page-plain p, .page-plain li { color: var(--ink-soft); }
.page-plain ul { padding-left: 1.2rem; }
.page-plain .updated { font-size: .9rem; color: var(--ink-faint); }

/* Reveal on scroll (enabled by JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .services-grid, .industries-grid, .models-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .steps::before { display: none; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .brand img { width: 160px; } /* brand minimum on screen */
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--ie-white); cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--ie-charcoal);
    border-radius: 2px; position: relative; transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle-bar::before { position: absolute; top: -6px; }
  .nav-toggle-bar::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ie-white); border-bottom: 1px solid var(--line);
    padding: .5rem 16px 1.25rem; box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 1rem; }

  .hero-inner, .about, .contact-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 300px; order: -1; }
  .promises { grid-template-columns: 1fr; }
  .creative-grid { grid-template-columns: 1fr; }
  .two-up { grid-template-columns: 1fr; gap: 2rem; }
  .hub-grid, .related-grid { grid-template-columns: 1fr 1fr; }
  .lab { flex-direction: column; align-items: flex-start; }
}

/* Ask-AI rail: floating shortcuts that open a pre-filled prompt about us in an AI assistant */
.ai-rail {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; gap: .55rem;
}
.ai-rail__btn {
  display: flex; align-items: center; gap: .5rem;
  background: var(--ie-white); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem .95rem .45rem .5rem; box-shadow: var(--shadow);
  font-family: var(--ie-font-heading); font-weight: 600; font-size: .78rem;
  white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.ai-rail__btn img { width: 20px; height: 20px; flex-shrink: 0; pointer-events: none; border-radius: 4px; }
.ai-rail__btn:hover, .ai-rail__btn:focus-visible {
  border-color: var(--ie-brand-red); box-shadow: 0 10px 22px -12px var(--ie-brand-red);
  transform: translateX(-3px); outline: none;
}

@media (max-width: 1080px) {
  .ai-rail__btn span { display: none; }
  .ai-rail__btn { padding: .45rem; border-radius: 50%; }
}
@media (max-width: 700px) {
  .ai-rail { right: 8px; gap: .35rem; }
  .ai-rail__btn { padding: .32rem; opacity: .92; }
  .ai-rail__btn img { width: 15px; height: 15px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .services-grid, .creative-grid, .industries-grid, .models-grid, .work-grid, .values { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .deliver-grid, .hub-grid, .related-grid { grid-template-columns: 1fr; }
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1; }
  .work-feature { grid-column: auto; padding: 1.75rem; }
  .work-feature h3 { font-size: 1.35rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stack { padding: .5rem 1.1rem; }
  .stack-row { grid-template-columns: 1fr; gap: .6rem; }
  .hero-visual { max-width: 280px; }
  .chip { font-size: .75rem; padding: .35rem .7rem; }
  .strip-inner { font-size: 1rem; }
  .contact-form, .why { padding: 1.4rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.all-services { margin: 2.5rem 0 0; text-align: center; }


/* Floating WhatsApp chat button (bottom-left, so it never overlaps the Ask-AI rail on the right) */
.wa-chat {
  position: fixed; left: 18px; bottom: 18px; z-index: 80;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--ie-brand-red); color: var(--ie-white);
  border-radius: 999px; padding: .6rem .95rem .6rem .6rem;
  box-shadow: var(--shadow); text-decoration: none;
  font-family: var(--ie-font-heading); font-weight: 600; font-size: .85rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.wa-chat:hover, .wa-chat:focus-visible { transform: translateY(-2px); color: var(--ie-white); box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.wa-chat svg { display: block; }
@media (max-width: 640px) {
  .wa-chat { padding: .65rem; bottom: 14px; left: 14px; }
  .wa-chat span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media print { .wa-chat { display: none; } }
