@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   ITFO — Design System
   Six brand colors from itfo.ca; each solution category owns
   one, applied via html[data-theme="…"].
   ============================================================ */
:root {
  --yellow: #FFCC29;
  --pink:   #F9317C;
  --coral:  #FF7221;
  --sky:    #40BAD2;
  --purple: #553EA3;
  --aqua:   #03CEA4;

  --ink:      #101014;
  --ink-soft: #43474F;
  --paper:    #FFFFFF;
  --cloud:    #F7F6F3;

  --font-family: 'Poppins', sans-serif;
  --radius-card: 20px;
  --radius-pill: 300px;
  --header-height: 84px;

  /* default theme = brand yellow */
  --theme:      var(--yellow);
  --theme-deep: #93750A;
  --theme-soft: #FFF6D9;

  --band-gradient: linear-gradient(90deg, var(--pink), var(--coral), var(--yellow), var(--aqua), var(--sky), var(--purple));
}
html[data-theme="pink"]   { --theme: var(--pink);   --theme-deep: #C01059; --theme-soft: #FEEDF4; }
html[data-theme="coral"]  { --theme: var(--coral);  --theme-deep: #CC4E07; --theme-soft: #FFF0E7; }
html[data-theme="sky"]    { --theme: var(--sky);    --theme-deep: #1B7D93; --theme-soft: #E9F6F9; }
html[data-theme="purple"] { --theme: var(--purple); --theme-deep: #3D2B78; --theme-soft: #F0EDF9; }
html[data-theme="aqua"]   { --theme: var(--aqua);   --theme-deep: #027A62; --theme-soft: #E4FAF4; }
html[data-theme="yellow"] { --theme: var(--yellow); --theme-deep: #93750A; --theme-soft: #FFF6D9; }

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-family); font-weight: 400; color: var(--ink); background: var(--paper); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, textarea { font-family: var(--font-family); border: none; outline: none; background: none; }

/* ===== Typography ===== */
h1 { font-size: clamp(2.75rem, 6vw, 5rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-size: clamp(1rem, 1.6vw, 1.3rem); font-weight: 600; line-height: 1.4; }
p  { font-size: clamp(0.975rem, 1.15vw, 1.075rem); line-height: 1.8; }

/* ===== Layout ===== */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 3.5rem); }
.section { padding: clamp(4.5rem, 8vw, 8rem) 0; }

/* ============================================================
   Header — white, fixed, quiet
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(16,16,20,0.07);
  padding: 1.1rem 0;
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled { padding: 0.75rem 0; box-shadow: 0 8px 32px rgba(16,16,20,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 44px; width: auto; transition: height 0.3s ease; }
.site-header.scrolled .logo img { height: 38px; }

/* ===== Desktop Nav ===== */
.nav-links { display: flex; gap: 0.5rem; align-items: center; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: inline-block;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.nav-links > li > a:hover { background: rgba(16,16,20,0.05); }
.nav-links > li.active > a { background: rgba(16,16,20,0.06); }

/* Connect With Us = pill CTA (always the last item) */
.nav-links > li:last-child > a {
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1.5rem;
  margin-left: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-links > li:last-child > a:hover { background: var(--ink); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(16,16,20,0.25); }

/* Solutions mega-panel */
.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 24px;
  z-index: 11;
}
.has-dropdown:hover .dropdown { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--paper);
  border: 1px solid rgba(16,16,20,0.06);
  border-radius: var(--radius-card);
  padding: 2.25rem 2.25rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, 225px);
  gap: 0.5rem 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 24px 64px rgba(16,16,20,0.16);
  z-index: 10;
  overflow: hidden;
}
.dropdown::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--band-gradient);
}
.dropdown-group { display: flex; flex-direction: column; gap: 0.1rem; }
.dropdown-group:nth-child(3) { grid-column: 3; grid-row: 1; }
.dropdown-group:nth-child(4) { grid-column: 3; grid-row: 2; padding-top: 1.25rem; }
.dropdown-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.45rem;
  padding-top: 0.65rem;
}
.dropdown-group:first-child .dropdown-group-label { padding-top: 0; }
/* category color coding */
.dropdown-group:nth-child(1) .dropdown-group-label { color: var(--pink); }
.dropdown-group:nth-child(2) .dropdown-group-label:nth-of-type(1) { color: var(--coral); }
.dropdown-group:nth-child(2) .dropdown-group-label:nth-of-type(2) { color: var(--aqua); }
.dropdown-group:nth-child(3) .dropdown-group-label { color: var(--sky); }
.dropdown-group:nth-child(4) .dropdown-group-label { color: var(--purple); }
.dropdown a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.28rem 0;
  transition: color 0.2s ease, transform 0.2s ease;
}
.dropdown a:hover { color: var(--ink); transform: translateX(3px); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; padding: 5px; }
.hamburger span { display: block; width: 28px; height: 2px; background: var(--ink); transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease; }
.hamburger.active span { background: var(--paper); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 6.5rem 2rem 3rem;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}
.mobile-nav-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-nav-overlay > a { color: var(--paper); font-size: 1.5rem; font-weight: 600; padding: 0.55rem 0; }
.mobile-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 1.3rem;
  margin-bottom: 0.2rem;
}
.mobile-group-label:nth-of-type(1) { color: var(--pink); }
.mobile-group-label:nth-of-type(2) { color: var(--coral); }
.mobile-group-label:nth-of-type(3) { color: var(--aqua); }
.mobile-group-label:nth-of-type(4) { color: var(--sky); }
.mobile-group-label:nth-of-type(5) { color: var(--purple); }
.mobile-nav-overlay .mobile-sub-link { color: rgba(255,255,255,0.72); font-size: 1rem; padding: 0.28rem 0; display: block; }
.mobile-nav-overlay .mobile-sub-link:hover { color: var(--paper); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(16,16,20,0.22); }
.btn-dark  { background: var(--ink); color: var(--paper); }
.btn-white { background: var(--paper); color: var(--ink); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid rgba(255,255,255,0.85);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); box-shadow: none; }

/* ============================================================
   Homepage — the color journey
   ============================================================ */
.band {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 3rem) 0 4.5rem;
  text-align: center;
}
.band--yellow { background: var(--yellow); }
.band--pink   { background: var(--pink); }
.band--coral  { background: var(--coral); }
.band--sky    { background: var(--sky); }
.band--purple { background: var(--purple); }
.band--aqua   { background: var(--aqua); }
.band--ink    { background: var(--ink); min-height: 78vh; }
.band--ink .band-kicker { color: var(--yellow); }
.band--ink::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--band-gradient);
}
.band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 82% 12%, rgba(255,255,255,0.16), transparent 70%),
    radial-gradient(700px 420px at 12% 88%, rgba(255,255,255,0.10), transparent 70%);
  pointer-events: none;
}
.band .container { position: relative; z-index: 1; max-width: 1120px; }

.band-kicker {
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 1.25rem;
}
.band-title {
  color: var(--paper);
  font-size: clamp(3rem, 8vw, 6.75rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.band-tagline {
  color: rgba(255,255,255,0.92);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.45;
  max-width: 760px;
  margin: 1.5rem auto 0;
}
.band-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2.75rem;
}

/* "How we do it" expander */
.btn-how { display: inline-flex; align-items: center; gap: 0.6rem; }
.btn-how .chev { transition: transform 0.3s ease; font-size: 0.8em; }
.btn-how[aria-expanded="true"] .chev { transform: rotate(180deg); }
.band-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease, margin-top 0.45s ease;
  margin-top: 0;
}
.band-panel.open { max-height: 900px; opacity: 1; margin-top: 2.5rem; }
.band-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  text-align: left;
}
.band-card {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.5rem 1.35rem;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.band-card:hover { background: rgba(255,255,255,0.26); transform: translateY(-4px); }
.band-card h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: 0; }
.band-card p { font-size: 0.875rem; line-height: 1.55; color: rgba(255,255,255,0.85); flex: 1; }
.band-card .card-arrow { font-size: 1.05rem; margin-top: 0.4rem; transition: transform 0.25s ease; }
.band-card:hover .card-arrow { transform: translateX(5px); }

/* Hero band specifics */
.band--hero { min-height: 100vh; }
.band--hero .band-title { font-size: clamp(3.25rem, 9vw, 7.5rem); }
.scroll-cue {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--paper);
  opacity: 0.85;
  animation: cue-bounce 2.2s ease-in-out infinite;
  cursor: pointer;
}
.scroll-cue svg { width: 34px; height: 34px; }
@keyframes cue-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(10px); }
}

/* CTA band (shorter) */
.band--cta { min-height: 72vh; }

/* ============================================================
   Client logo marquee
   ============================================================ */
.logo-strip { background: var(--paper); padding: clamp(4rem, 6vw, 5.5rem) 0; }
.logo-strip-label {
  text-align: center;
  color: rgba(16,16,20,0.45);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 2.75rem;
}
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(3.5rem, 7vw, 6.5rem);
  width: max-content;
  animation: marquee 30s linear infinite;
}
.logo-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: clamp(34px, 4.5vw, 48px);
  width: auto;
  filter: brightness(0);
  opacity: 0.5;
  transition: opacity 0.25s ease;
}
.marquee-track img:hover { opacity: 0.85; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Proof stats under the logo marquee */
.proof-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1000px;
  margin: clamp(3rem, 5vw, 4rem) auto 0;
  text-align: center;
}
.proof-stats .stat-value { font-size: clamp(2.5rem, 4.5vw, 4rem); }
.proof-stats .case-stat:nth-child(1) .stat-value { color: var(--pink); }
.proof-stats .case-stat:nth-child(2) .stat-value { color: var(--sky); }
.proof-stats .case-stat:nth-child(3) .stat-value { color: var(--purple); }
.proof-stats .stat-caption { color: var(--ink-soft); max-width: 26ch; margin-left: auto; margin-right: auto; }
@media (max-width: 768px) {
  .proof-stats { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   Interior pages — themed hero + editorial body
   ============================================================ */
.page-hero {
  position: relative;
  background: var(--theme);
  padding: calc(var(--header-height) + clamp(4rem, 8vh, 7rem)) 0 clamp(4rem, 8vh, 6.5rem);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 480px at 85% 15%, rgba(255,255,255,0.16), transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.75rem;
}
.page-hero h1 { color: var(--paper); max-width: 900px; }
.page-hero h1 em {
  display: block;
  font-style: normal;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}
.page-hero .hero-lede {
  color: rgba(255,255,255,0.92);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 500;
  max-width: 680px;
  margin-top: 1.5rem;
}

/* Editorial body */
.editorial { background: var(--paper); }
.editorial .lead {
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  max-width: 820px;
}
.ed-section { max-width: 780px; margin-top: clamp(3rem, 5vw, 4.5rem); }
.ed-num {
  display: block;
  color: var(--theme-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.ed-num::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 26px; height: 3px;
  background: var(--theme);
  border-radius: 2px;
  margin-right: 0.7rem;
}
.ed-section h3 { margin-bottom: 1rem; }
/* Act titles are h2 for a correct outline (h1 > h2) but keep the h3 visual scale. */
.ed-section .ed-title {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.ed-section p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.ed-section p:last-child { margin-bottom: 0; }

/* Case-study band */
.case-band { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.case-band::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--band-gradient);
}
.case-label {
  color: var(--theme);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.25rem;
}
.case-band h2 { color: var(--paper); max-width: 760px; margin-bottom: 1.5rem; }
.case-band p { color: rgba(255,255,255,0.72); max-width: 720px; margin-bottom: 1.1rem; }
.case-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.case-stat .stat-value {
  font-size: clamp(3rem, 6vw, 4.75rem);
  font-weight: 700;
  line-height: 1;
  color: var(--theme);
  letter-spacing: -0.03em;
}
.case-stat .stat-caption { color: rgba(255,255,255,0.65); font-size: 0.95rem; margin-top: 0.6rem; }

/* "How to use" cards */
.use-section { background: var(--theme-soft); }
.use-section h2 { margin-bottom: 1rem; }
.use-section > .container > p { color: var(--ink-soft); max-width: 760px; }
.use-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.75rem;
}
.use-card {
  background: var(--paper);
  border-radius: var(--radius-card);
  padding: 2rem;
  border-top: 5px solid var(--theme);
  box-shadow: 0 2px 24px rgba(16,16,20,0.05);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.use-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(16,16,20,0.1); }
.use-label {
  color: var(--theme-deep);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.use-card p { color: var(--ink-soft); font-size: 0.95rem; }
.use-more {
  margin-top: 2rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-style: italic;
}

/* Product mockup frame (placeholder until real screenshot lands) */
.product-frame {
  margin: clamp(3rem, 5vw, 4.5rem) 0 0;
  max-width: 980px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(16,16,20,0.18);
  border: 1px solid rgba(16,16,20,0.08);
}
.product-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ECEAE6;
  padding: 0.7rem 1rem;
}
.product-frame-bar span { width: 10px; height: 10px; border-radius: 50%; }
.product-frame-bar span:nth-child(1) { background: var(--pink); }
.product-frame-bar span:nth-child(2) { background: var(--yellow); }
.product-frame-bar span:nth-child(3) { background: var(--aqua); }
.product-frame img { width: 100%; height: auto; display: block; }
.product-frame-caption {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  padding: 0.8rem 1.25rem;
}

/* ============================================================
   Shared / legacy components — restyled to the new system.
   (Existing page markup keeps working; theme comes from
   html[data-theme] set by js/main.js from the URL.)
   ============================================================ */

/* Themed page hero (colored, no image) */
.hero-page {
  position: relative;
  overflow: hidden;
  background: var(--theme);
  padding: calc(var(--header-height) + clamp(4rem, 8vh, 7rem)) 0 clamp(4rem, 8vh, 6rem);
  display: flex;
  align-items: center;
}
.hero-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 480px at 85% 15%, rgba(255,255,255,0.16), transparent 70%);
  pointer-events: none;
}
.hero-page .container { position: relative; z-index: 1; }
.hero-page h1 { color: var(--paper); }
.hero-page h1 em { font-style: normal; font-weight: 500; color: rgba(255,255,255,0.9); }
.hero-page .hero-sub { color: rgba(255,255,255,0.92); font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 500; margin-top: 1.25rem; max-width: 700px; }
.hero-page .page-label {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
  opacity: 1;
}

/* Image hero (who-we-are) — theme-tinted overlay */
.hero-interior { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 4rem;
  background: linear-gradient(to right, var(--theme) 0%, color-mix(in srgb, var(--theme) 72%, transparent) 55%, color-mix(in srgb, var(--theme) 25%, transparent) 100%);
}
.hero-overlay h1 { color: var(--paper); max-width: 820px; }
.hero-overlay h1 em { font-style: normal; font-weight: 500; color: rgba(255,255,255,0.92); }
.hero-overlay .hero-sub { color: rgba(255,255,255,0.92); font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 500; margin-top: 1.25rem; max-width: 620px; }

/* About / Careers / Contact content sections */
.about-content, .careers-content, .contact-content { background: var(--theme-soft); }
.about-text-block, .careers-text { max-width: 800px; }
.about-text-block h2, .careers-text h2 { margin-bottom: 1.5rem; }
.about-text-block p, .careers-text p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.careers-openings { background: var(--ink); }
.careers-openings h2 { color: var(--paper); margin-bottom: 1rem; }
.careers-openings p { color: rgba(255,255,255,0.7); }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.contact-card {
  background: var(--paper);
  border-radius: var(--radius-card);
  border-top: 5px solid var(--theme);
  padding: 2.1rem 2rem;
  box-shadow: 0 2px 24px rgba(16,16,20,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(16,16,20,0.1); }
.contact-card-label {
  color: var(--theme-deep);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.75rem;
}
.contact-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.contact-card a { color: var(--theme-deep); font-weight: 500; font-size: 0.95rem; word-break: break-all; }
.contact-card a:hover { text-decoration: underline; }
.contact-info-bar { background: var(--ink); padding: 3rem 0; }
.contact-info-bar p { color: rgba(255,255,255,0.65); font-size: 0.95rem; margin-bottom: 0.35rem; }

/* Solution page (legacy layout) — open editorial, no boxes */
.solution-body { background: var(--paper); }
.solution-intro { max-width: 820px; }
.solution-intro p {
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
.solution-intro p:last-child { margin-bottom: 0; }
.solution-sections { counter-reset: solution-counter; display: flex; flex-direction: column; gap: clamp(2.75rem, 5vw, 4.25rem); }
.solution-section {
  counter-increment: solution-counter;
  max-width: 780px;
}
.solution-section::before {
  content: counter(solution-counter, decimal-leading-zero);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--theme-deep);
  line-height: 1;
  padding-left: 38px;
  background: linear-gradient(var(--theme), var(--theme)) no-repeat left center / 26px 3px;
  margin-bottom: 0.9rem;
}
.solution-section h3 { margin-bottom: 1rem; }
.solution-section p { color: var(--ink-soft); margin-bottom: 1rem; }
.solution-section p:last-child { margin-bottom: 0; }

.solution-accent { background: var(--theme-soft); position: relative; overflow: hidden; }
.solution-accent .container { position: relative; z-index: 1; }
.solution-accent h2 { margin-bottom: 1.5rem; }
.solution-accent p { color: var(--ink-soft); margin-bottom: 1rem; max-width: 800px; }
.solution-dark { background: var(--ink); }
.solution-dark h2 { color: var(--paper); margin-bottom: 1.5rem; }
.solution-dark p { color: rgba(255,255,255,0.72); margin-bottom: 1rem; }

/* Stats — open, no boxes */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin: 2.5rem 0; max-width: 900px; }
.stat-box { border-top: 3px solid var(--theme); padding-top: 1.25rem; }
.stat-box .stat-num { font-size: clamp(2.5rem, 4.5vw, 3.75rem); font-weight: 700; color: var(--theme-deep); line-height: 1; margin-bottom: 0.6rem; letter-spacing: -0.03em; }
.stat-box .stat-desc { color: var(--ink-soft); font-size: 0.925rem; }
.stat-source { font-size: 0.75rem; color: rgba(16,16,20,0.45); margin-top: 1.25rem; }

/* Callout quote — editorial pull-quote, no box */
.callout-box { max-width: 760px; margin: 2.5rem 0; }
.callout-box::before {
  content: '\201C';
  display: block;
  font-size: 5rem;
  font-weight: 700;
  line-height: 0.6;
  color: var(--theme);
  margin-bottom: 0.9rem;
}
.callout-box p {
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  font-weight: 600;
  font-style: normal;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.callout-box cite {
  display: block;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--theme-deep);
  margin-top: 1.1rem;
}

/* Keyphrase — clean bold ink; the leading verb carries the color */
.hl {
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--ink);
}
.hl em { font-style: normal; color: var(--theme-deep); }

/* Outcomes — keyphrase + supporting line, two columns */
.outcome-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3.5rem;
  margin-top: 2.5rem;
  max-width: 1000px;
}
.outcome-list .hl { font-size: clamp(1.3rem, 2vw, 1.65rem); }
.outcome-list li p {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 42ch;
}

/* Service index — numbered rows with hairline dividers */
.service-index { counter-reset: svc; margin-top: 2.75rem; max-width: 940px; }
.service-index li {
  counter-increment: svc;
  display: flex;
  align-items: baseline;
  gap: 1.75rem;
  flex-wrap: wrap;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(16,16,20,0.12);
}
.service-index li:first-child { border-top: 1px solid rgba(16,16,20,0.12); }
.service-index li::before {
  content: counter(svc, decimal-leading-zero);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--theme-deep);
  width: 2.2rem;
  flex-shrink: 0;
}
.service-index .hl { font-size: clamp(1.25rem, 2vw, 1.65rem); flex: 0 0 auto; min-width: min(320px, 100%); }
.service-index li p { flex: 1; min-width: 260px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.65; }


/* CTA band (legacy + new) */
.cta-band {
  background: var(--theme);
  text-align: center;
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 420px at 80% 20%, rgba(255,255,255,0.15), transparent 70%);
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--paper); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.9); font-weight: 500; margin-bottom: 2.25rem; max-width: 640px; margin-left: auto; margin-right: auto; }

/* Legacy logo carousel (interior pages) */
.logo-section { background: var(--paper); padding: clamp(4.5rem, 7vw, 7rem) 0; }
.logo-section-label {
  text-align: center;
  color: rgba(16,16,20,0.45);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 2.75rem;
}
.logo-carousel { position: relative; height: clamp(70px, 10vw, 120px); display: flex; align-items: center; justify-content: center; }
.logo-carousel-item {
  position: absolute;
  opacity: 0;
  transition: opacity 1.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.logo-carousel-item.active { opacity: 1; }
.logo-carousel-item img { max-height: clamp(50px, 7vw, 90px); max-width: 340px; width: auto; height: auto; object-fit: contain; filter: brightness(0); opacity: 0.55; }

/* ============================================================
   Articles
   ============================================================ */
.articles-section { background: var(--paper); }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.article-card {
  border: 1px solid rgba(16,16,20,0.08);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(16,16,20,0.1); }
.article-card-img { aspect-ratio: 16/9; background-size: cover; background-position: center; background-color: var(--theme-soft); overflow: hidden; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.article-card:hover .article-card-img img { transform: scale(1.04); }
.article-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.article-card-tag { color: var(--theme-deep); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.article-card h3 { font-size: clamp(0.975rem, 1.2vw, 1.1rem); font-weight: 600; line-height: 1.4; flex: 1; }
.article-card .read-time { color: rgba(16,16,20,0.4); font-size: 0.8rem; margin-top: auto; }

.article-single { background: var(--paper); }
.article-content { max-width: 780px; }
.article-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.article-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; }
.article-content p { color: var(--ink-soft); margin-bottom: 1.25rem; }
.article-cta { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(16,16,20,0.1); }

/* ============================================================
   Privacy / prose
   ============================================================ */
.prose-section { background: var(--paper); }
.prose-content { max-width: 780px; }
.prose-content h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; font-size: 1.35rem; font-weight: 600; }
.prose-content p { color: var(--ink-soft); margin-bottom: 1.1rem; font-size: 0.975rem; }
.prose-content ul { margin: 0.75rem 0 1.1rem 1.5rem; }
.prose-content ul li { list-style: disc; color: var(--ink-soft); font-size: 0.975rem; margin-bottom: 0.4rem; }

/* ============================================================
   Footer — ink, with the six-color signature line
   ============================================================ */
.site-footer { position: relative; background: var(--ink); padding: clamp(4rem, 6vw, 6rem) 0 2rem; color: var(--paper); }
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--band-gradient);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); margin-bottom: 3rem; }
.footer-brand img { height: 46px; margin-bottom: 1.25rem; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.875rem; line-height: 1.6; margin-bottom: 0.4rem; }
.footer-brand a { color: rgba(255,255,255,0.85); }
.footer-brand a:hover { color: var(--paper); }
.footer-col h4 { color: var(--paper); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1rem; }
.footer-col a { display: block; color: rgba(255,255,255,0.55); font-size: 0.875rem; padding: 0.2rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p, .footer-bottom a { color: rgba(255,255,255,0.38); font-size: 0.8rem; }
.footer-bottom a:hover { color: rgba(255,255,255,0.75); }

/* ============================================================
   Cookie consent banner (injected by js/main.js)
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 2rem));
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-card);
  box-shadow: 0 20px 60px rgba(16,16,20,0.4);
  padding: 1.4rem 1.6rem;
  z-index: 2000;
  overflow: hidden;
}
.cookie-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--band-gradient);
}
.cookie-banner p { font-size: 0.875rem; line-height: 1.6; margin-bottom: 1rem; }
.cookie-banner a { color: var(--paper); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cookie-banner .btn { padding: 0.55rem 1.5rem; font-size: 0.875rem; }
.cookie-banner .btn-decline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.cookie-banner .btn-decline:hover { background: rgba(255,255,255,0.1); box-shadow: none; }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .scroll-cue { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .dropdown { grid-template-columns: repeat(2, 210px); }
  .dropdown-group:nth-child(3) { grid-column: auto; grid-row: auto; }
  .dropdown-group:nth-child(4) { grid-column: auto; grid-row: auto; padding-top: 0.65rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Meghan: with the smaller mobile titles the 78vh bands left too much empty colour,
     especially with "How we do it" collapsed. Match the interior .cta-band rhythm (4.5rem). */
  .band:not(.band--hero) { min-height: 0; padding: 4.5rem 0; }
  .band--hero { min-height: 92vh; padding-top: calc(var(--header-height) + 2.5rem); }
  .band-cards { grid-template-columns: 1fr; }
  .band-actions .btn { width: 100%; max-width: 340px; }

  .hero-interior { min-height: 72vh; }
  .stats-row { grid-template-columns: 1fr; gap: 1.75rem; }
  .outcome-list { grid-template-columns: 1fr; gap: 1.75rem; }
  .service-index .hl { min-width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .use-cards { grid-template-columns: 1fr; }
  .case-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Homepage v2 — "How we do it" panel content
   (mirrors the original itfo.ca expandable band structure)
   ============================================================ */
.band-panel-inner { max-width: 900px; margin: 0 auto; text-align: left; }
.panel-title {
  color: var(--paper);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
.panel-text { color: rgba(255,255,255,0.9); font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.7; max-width: 720px; }
.panel-label {
  color: rgba(255,255,255,0.8);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 2rem 0 1rem;
}
div.band-card { cursor: default; }
div.band-card:hover { transform: none; background: rgba(255,255,255,0.15); }
.band-panel .band-actions { justify-content: flex-start; margin-top: 2rem; }

/* Mobile nav: top-level "Solutions" heading above the category groups */
.mobile-nav-heading { display: block; color: var(--paper); font-size: 1.5rem; font-weight: 600; padding: 0.55rem 0 0; margin-top: 0.4rem; }

/* Proof strip refinements (Nov 2026 review) */
.logo-strip-label { font-size: 1rem; letter-spacing: 0.22em; }
.marquee-track img { height: clamp(51px, 6.75vw, 72px); }
.proof-label { text-align: center; color: rgba(16,16,20,0.6); font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; margin-top: clamp(3rem, 5vw, 4rem); }
.logo-strip .proof-stats { margin-top: 1.5rem; }
.logo-strip .proof-stats .stat-caption { color: var(--ink-soft); font-size: 1rem; }
/* Mobile nav: fallback colour so a group label can never vanish on the dark overlay */
.mobile-group-label { color: rgba(255,255,255,0.6); }

/* Client logos removed from this site (clients permit them on the Creative site only) */
.logo-strip .proof-label { margin-top: 0; }

/* ============================================================
   Reviewer fixes (Nov 2026): orphan-free headings; designed article covers
   ============================================================ */
h1, h2, h3, .band-title, .panel-title, .hl { text-wrap: balance; }
p, .band-tagline, .hero-sub, .hero-lede, .stat-caption { text-wrap: pretty; }

.article-cover { position: relative; display: flex; align-items: center; padding: 1.5rem; overflow: hidden; color: var(--paper); }
.article-cover svg { position: absolute; right: -10%; top: 50%; transform: translateY(-50%); height: 125%; width: auto; opacity: 0.9; transition: transform 0.4s ease; }
.article-card:hover .article-cover svg { transform: translateY(-50%) rotate(15deg); }
.article-cover-text { position: relative; z-index: 1; display: flex; flex-direction: column; max-width: 62%; }
.article-cover-kicker { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; }
.article-cover-title { font-size: clamp(1.25rem, 1.9vw, 1.6rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; margin-top: 0.35rem; }

/* ============================================================
   Reviewer fixes (Nov 2026, Meghan): Who We Are banner + mobile title overflow
   ============================================================ */
/* The banner fills the fold on every screen. The illustration is portrait, so it is
   cropped (cover) rather than inset -- Meghan asked for fold height with the headline at
   the same size as every other page hero (global h1), and never a tiled repeat. */
.hero-interior { min-height: 100vh; }
.hero-bg { background-size: cover; background-position: center; background-repeat: no-repeat; }

@media (max-width: 768px) {
  /* phones are portrait too — cover works there, as Meghan confirmed */
  .hero-interior { min-height: 72vh; }
  .hero-bg { background-size: cover; background-position: center; }
  .hero-overlay h1, .hero-overlay .hero-sub { max-width: 100%; }
  /* long single words ("Communications", "organizational") must never run off screen */
  h1, .band-title, .panel-title { overflow-wrap: anywhere; hyphens: auto; }
  h1 { font-size: clamp(2.25rem, 9vw, 5rem); }
  .band-title { font-size: clamp(2rem, 9vw, 4rem); }
  .band--hero .band-title { font-size: clamp(2.5rem, 11vw, 7.5rem); }
}

