/* Illuma Energy — Website UI kit styles.
   Loads brand tokens from the design-system root (fonts resolve relative
   to that CSS file). Page is authored at a 1920px canvas and scaled to the
   viewport width by scaler.js. */

* { box-sizing: border-box; }

html { overflow-x: hidden; }

html, body {
  margin: 0;
  padding: 0;
  background: #211F21;
  font-family: var(--font-primary);
  color: var(--color-black);
  -webkit-font-smoothing: antialiased;
}

/* ---- 1920 canvas scaler ---- */
#stage {
  width: 1920px;
  transform-origin: top left;
  background: var(--color-white);
  position: relative;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---- containers ---- */
.ill-main { width: 1400px; margin-inline: auto; }
.ill-narrow { width: 1192px; margin-inline: auto; }

/* ---- full-bleed project grid (matches homepage Recent Projects) ---- */
.ill-proj-fullgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  border-top: 1px solid rgba(33,31,33,0.10);
  border-left: 1px solid rgba(33,31,33,0.10);
}
/* each card provides right+bottom only → single shared divider lines */
.ill-proj-fullgrid > a {
  border: none !important;
  border-right: 1px solid rgba(33,31,33,0.10) !important;
  border-bottom: 1px solid rgba(33,31,33,0.10) !important;
}
@media (max-width: 1279px) {
  .ill-proj-fullgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .ill-proj-fullgrid { grid-template-columns: 1fr; }
}

/* ---- section label pill ---- */
.ill-label {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 9px;
  background: var(--color-border-lilac-10);
  border: 1px solid var(--color-border-lilac);
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  line-height: 22.4px;
  color: var(--color-black);
  white-space: nowrap;
}

/* ---- headings ---- */
.ill-h1 { font-size: 80px; line-height: 1; letter-spacing: -0.02em; font-weight: 400; margin: 0; }
.ill-h2 { font-size: 48px; line-height: 1; letter-spacing: -0.02em; font-weight: 400; margin: 0; color: var(--color-black); }
.ill-h3 { font-size: 30.9px; line-height: 35.2px; font-weight: 500; margin: 0; color: var(--color-black); }
.ill-stat { font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 400; margin: 0; }
.ill-body { font-size: 16px; line-height: 1.4; font-weight: 400; }
.ill-body-lg { font-size: 18px; line-height: 1.4; font-weight: 400; }
.ill-small { font-size: 14px; line-height: 1.4; font-weight: 400; }

/* ---- article content (SEO-friendly heading system + reusable blocks) ---- */
.ill-article-content { display: flex; flex-direction: column; gap: 28px; max-width: 760px; }
.ill-article-content > * { margin: 0; }
.ill-article-content .ill-article-lede {
  font-size: 22px; line-height: 1.5; font-weight: 400; color: var(--color-black); text-wrap: pretty;
}
.ill-article-content h1 {
  font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 400; color: var(--color-black);
}
.ill-article-content h2 {
  font-size: 32px; line-height: 1.18; letter-spacing: -0.02em; font-weight: 400; color: var(--color-black);
  margin-top: 24px;
}
.ill-article-content h3 {
  font-size: 24px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 500; color: var(--color-black);
  margin-top: 12px;
}
.ill-article-content h4 {
  font-size: 20px; line-height: 1.35; letter-spacing: -0.01em; font-weight: 500; color: var(--color-black);
  margin-top: 8px;
}
.ill-article-content p { font-size: 16px; line-height: 1.7; color: var(--color-black-70); text-wrap: pretty; }

/* article image layouts */
.ill-article-figure { margin: 16px 0; display: flex; flex-direction: column; gap: 14px; }
.ill-article-figure img,
.ill-article-duo img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--color-surface-muted);
}
.ill-article-figcaption {
  font-family: var(--font-secondary); font-size: 13px; line-height: 1.5;
  color: var(--color-black-70); letter-spacing: 0.01em;
}
.ill-article-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.ill-article-duo figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }

/* ---- buttons ---- */
.ill-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 24px;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  border: 1px solid transparent;
  transition: filter var(--duration-fast) var(--ease-standard),
              background var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard);
  white-space: nowrap;
}
.ill-btn .ill-arrow { transition: transform var(--duration-fast) var(--ease-standard); }
.ill-btn:hover .ill-arrow { transform: translate(3px, -3px); }

.ill-btn--berry { background: var(--color-primary); color: var(--color-primary-soft); }
.ill-btn--berry:hover { filter: brightness(1.12); }
.ill-btn--pink { background: var(--color-primary-soft); color: var(--color-primary); }
.ill-btn--pink:hover { filter: brightness(0.97); }
.ill-btn--dark { background: var(--color-black); color: var(--color-white); }
.ill-btn--dark:hover { filter: brightness(1.4); }
.ill-btn--white { background: var(--color-white); color: var(--color-black); }
.ill-btn--ghost { background: transparent; border-color: var(--color-black-15); color: var(--color-black); }

/* text link with underline */
.ill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-primary);
}
.ill-link .ill-arrow { transition: transform var(--duration-fast) var(--ease-standard); }
.ill-link:hover .ill-arrow { transform: translate(3px, -3px); }

/* ---- header / floating nav ---- */
/* #ill-chrome is a fixed, viewport-pinned layer the header is relocated into
   (see boot.js) so it stays put while scrolling. It is scaled to match #stage. */
#ill-chrome {
  position: fixed;
  top: 0;
  left: 0;
  width: 1920px;
  height: 0;
  transform-origin: top left;
  z-index: 50;
  pointer-events: none;
}
#ill-chrome .ill-header { pointer-events: auto; }
.ill-header {
  position: absolute;
  top: 32px; left: 60px; right: 60px;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
}
.ill-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 60px;
  background: var(--color-white);
  border-radius: 4px;
  padding: 0 28px 0 20px;
}
.ill-nav__logo { height: 24.8px; width: auto; }
.ill-nav__items { display: flex; align-items: center; gap: 32px; }
.ill-nav__link {
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  display: inline-flex; align-items: center; gap: 5px;
  position: relative;
  padding: 8px 0;
}
.ill-nav__link:hover { opacity: 0.65; }
.ill-nav__chev { width: 10px; height: 6px; }

/* projects dropdown */
.ill-drop { position: relative; }
.ill-drop__menu {
  position: absolute;
  top: 46px; left: -16px;
  min-width: 220px;
  background: var(--color-white);
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(33,31,33,0.16);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--duration-fast) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard),
              visibility var(--duration-fast);
}
.ill-drop:hover .ill-drop__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ill-drop__item {
  display: block;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--color-primary);
  border-radius: 3px;
}
.ill-drop__item:hover { background: var(--color-surface-pink); }

.ill-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 22px;
  background: var(--color-primary);
  border-radius: 4px;
  color: var(--color-primary-soft);
  font-weight: 500;
  font-size: 16px;
}
.ill-contact-btn:hover { filter: brightness(1.12); }

/* ---- diagonal slash motif over images ---- */
.ill-imgblock { position: relative; overflow: hidden; }
.ill-imgblock > img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-medium) var(--ease-premium); }
.ill-slash {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ---- community section (centered mosaic collage) ---- */
.ill-community-section { background: #fff; overflow: hidden; padding: 0 0 120px; }
.ill-comm-inner {
  max-width: 1192px;
  margin-inline: auto;
  padding: 60px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 72px;
}
.ill-comm-head { display: flex; flex-direction: column; align-items: center; gap: 15.4px; }
.ill-comm-h2 {
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
  color: var(--color-black);
  text-align: center;
  max-width: 1000px;
  text-wrap: balance;
}

/* collage: a single proportional mosaic (desktop ref 1440 x 448). Scales as one unit. */
.ill-comm-collage {
  position: relative;
  flex: none;
  width: min(1440px, calc(100vw - 48px));
  aspect-ratio: 1440 / 448;
}
.ill-comm-card {
  position: absolute;
  overflow: hidden;
  border-radius: 4px;
}
.ill-comm-card > img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* positions as % of the 1440 x 448 frame */
.ill-comm-c1 { left: 15.556%; top: 0;       width: 20.278%; height: 49.107%; }
.ill-comm-c2 { left: 36.389%; top: 0;       width: 20.278%; height: 65.179%; }
.ill-comm-c3 { left: 36.389%; top: 66.964%; width: 20.278%; height: 33.036%; }
.ill-comm-c4 { left: 57.222%; top: 50.893%; width: 24.722%; height: 49.107%; }
.ill-comm-c5 { left: 82.5%;   top: 50.893%; width: 17.5%;   height: 49.107%; }
.ill-comm-c6 { left: 0;       top: 50.893%; width: 35.833%; height: 49.107%; }

/* framed wind card: gradient backing image with the photo inset inside it */
.ill-comm-frame { background: var(--color-surface-deep); }
.ill-comm-card > img.ill-comm-frame-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ill-comm-card > img.ill-comm-frame-inner {
  position: absolute;
  left: 5.14%; top: 9.32%;
  width: 89.73%; height: 81.08%;
  object-fit: cover;
  display: block;
}

/* paragraph that lives inside the collage (desktop) */
.ill-comm-collage-para {
  position: absolute;
  left: 59.444%;
  top: 0;
  width: 20.278%;
  margin: 0;
  color: var(--color-black);
}
.ill-comm-para-below { display: none; }

/* ---- careers recruitment CTA band ---- */
.ill-careers-section { background: #fff; padding: 0; }
.ill-careers-cta {
  background: var(--color-accent-navy);
  color: #fff;
  padding: 56px 64px 44px;
  display: flex;
  flex-direction: column;
}
.ill-careers-cta__logo {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  text-decoration: none;
  color: #fff;
}
.ill-careers-cta__mark { height: 38px; width: 38px; }
.ill-careers-cta__logo-img { height: 25px; width: auto; display: block; }
.ill-careers-cta__wordmark { display: flex; flex-direction: column; line-height: 1.04; }
.ill-careers-cta__word {
  font-family: var(--font-primary);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
}
.ill-careers-cta__word--light { font-weight: 400; color: rgba(255, 255, 255, 0.82); }
.ill-careers-cta__h {
  margin: 16px 0 0;
  font-family: var(--font-primary);
  font-size: 36px;
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: #fff;
  text-wrap: balance;
}
.ill-careers-cta__divider {
  margin-top: 52px;
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.18);
}
.ill-careers-cta__link {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}
.ill-careers-cta__arrow { width: 16px; height: 16px; color: #fff; opacity: 0.85; transition: transform var(--duration-fast) var(--ease-standard); }
.ill-careers-cta__link:hover .ill-careers-cta__arrow { transform: translate(2px, 2px); }
.ill-careers-cta__link span { transition: opacity var(--duration-fast) var(--ease-standard); }
.ill-careers-cta__link:hover span { opacity: 0.78; }

/* ---- interactive spotlight CTA ---- */
.ill-cta {
  position: relative;
  width: calc(100% + 16px);
  margin-left: -8px;
  margin-right: -8px;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  --beam-clip: polygon(0% 100%, 40% 0%, 100% 0%, 100% 55%);
}
.ill-cta-bg {
  position: absolute;
  top: 0; bottom: 0; left: -4px; right: -4px;
  z-index: 1;
  background: url("../../assets/gradient-bg/gradient-03.png") center / cover no-repeat;
}
.ill-cta-beam {
  position: absolute;
  top: 0; bottom: 0; left: -4px; right: -4px;
  z-index: 2;
  background: linear-gradient(150deg, #FBF6F8 0%, #FFFFFF 55%);
  clip-path: var(--beam-clip);
}
.ill-cta-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 32px;
  padding: 96px 24px;
  pointer-events: none;
}
.ill-cta-content > * { max-width: 1000px; }
.cta-content--light { z-index: 3; }
.cta-content--dark { z-index: 4; clip-path: var(--beam-clip); }
.ill-cta-content .ill-btn { pointer-events: auto; }
.ill-cta-h2 {
  margin: 0;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 200;
  max-width: 900px;
  text-wrap: balance;
}
.ill-cta-support { margin: 0; font-size: 18px; line-height: 1.45; max-width: 560px; }
.cta-content--light .ill-cta-h2 { color: #fff; }
.cta-content--light .ill-cta-support { color: rgba(255, 255, 255, 0.82); }
.cta-content--dark .ill-cta-h2 { color: var(--color-black); }
.cta-content--dark .ill-cta-support { color: var(--color-black-70); }

/* mobile / tablet: no cursor tracking — a slow, calm ambient sweep */
@media (max-width: 1279px) {
  .ill-cta-beam,
  .cta-content--dark {
    animation: ill-beam-sweep 12s ease-in-out infinite alternate;
  }
}
@keyframes ill-beam-sweep {
  0%   { clip-path: polygon(0% 100%, 30% 0%, 100% 0%, 100% 42%); }
  100% { clip-path: polygon(0% 100%, 44% 0%, 100% 0%, 100% 56%); }
}
@media (prefers-reduced-motion: reduce) {
  .ill-cta-beam,
  .cta-content--dark { animation: none; }
}

/* ---- footer ---- */
.ill-footer { background: #000; color: var(--color-surface-pink); padding: 80px 0 24px; }
.ill-footer__col-title {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 14px;
  line-height: 15.55px;
  color: var(--color-surface-pink);
  margin: 0 0 16px;
}
.ill-footer__link { display: block; font-size: 15px; line-height: 1.7; color: var(--color-surface-pink); opacity: 0.85; }
.ill-footer__link:hover { opacity: 1; }

/* ---- FAQ ---- */
.ill-faq-item { border-top: 1px solid var(--color-black-15); }
.ill-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  text-align: left;
  font-size: 20px;
  line-height: 1.3;
  color: var(--color-black);
}
.ill-faq-a {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height var(--duration-medium) var(--ease-premium), opacity var(--duration-medium) var(--ease-premium), padding var(--duration-medium) var(--ease-premium);
}
.ill-faq-a > p { margin: 0; max-width: 720px; }
.ill-faq-item.open .ill-faq-a { max-height: 280px; opacity: 1; padding-bottom: 28px; }
.ill-faq-plus { flex: none; width: 22px; height: 22px; position: relative; }
.ill-faq-plus::before, .ill-faq-plus::after { content: ""; position: absolute; background: var(--color-primary); transition: transform var(--duration-fast) var(--ease-standard); }
.ill-faq-plus::before { left: 0; top: 10px; width: 22px; height: 2px; }
.ill-faq-plus::after { left: 10px; top: 0; width: 2px; height: 22px; }
.ill-faq-item.open .ill-faq-plus::after { transform: scaleY(0); }

/* ---- form inputs ---- */
.ill-field { display: flex; flex-direction: column; gap: 8px; }
.ill-field label { font-size: 14px; color: var(--color-black); }
.ill-input, .ill-textarea {
  border: none;
  border-bottom: 1px solid var(--color-black-40);
  background: transparent;
  padding: 10px 0;
  font-family: var(--font-primary);
  font-size: 18px;
  color: var(--color-black);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-standard);
}
.ill-input::placeholder, .ill-textarea::placeholder { color: var(--color-black-40); }
.ill-input:focus, .ill-textarea:focus { border-color: var(--color-primary); }
.ill-textarea { resize: none; }

/* Contact page form fields — clearer underline affordance (scoped to contact pane only) */
.ill-contact-pane .ill-input,
.ill-contact-pane .ill-textarea {
  border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
}
.ill-contact-pane .ill-input:hover,
.ill-contact-pane .ill-textarea:hover {
  border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 38%, transparent);
}
.ill-contact-pane .ill-input:focus,
.ill-contact-pane .ill-textarea:focus {
  border-bottom: 1px solid var(--color-primary);
}

/* ---- motion ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-premium), transform .9s var(--ease-premium); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .ill-imgblock > img { transition: none; }
}

/* ============================================================
   RESPONSIVE LAYER
   Desktop (>=1280px): unchanged — boot.js scales the 1920 canvas.
   Tablet  (768–1279px) and Mobile (<=767px) reflow fluidly below.
   Overrides use !important only to beat the inline layout styles
   authored on the artboard; they are scoped to these breakpoints,
   so the desktop artboard is never affected.
   ============================================================ */

/* ---- hamburger (hidden until mobile) ---- */
.ill-nav__burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex: none;
}
.ill-nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  transition: transform var(--duration-fast) var(--ease-standard),
              opacity var(--duration-fast) var(--ease-standard);
}
.ill-nav__mobile { display: none; }
.ill-nav__mobile {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(33,31,33,0.16);
  padding: 8px;
  flex-direction: column;
  /* Sits above all page content inside #ill-chrome (z-index 50 context) */
  z-index: 10;
  /* Explicit — inherited from .ill-header but stated clearly for the
     overflow region that falls below .ill-header's own 56 px bounds */
  pointer-events: auto;
}
.ill-nav__mobile a {
  padding: 15px 16px;
  font-size: 16px;
  line-height: 1;
  color: var(--color-primary);
  border-radius: 3px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ill-nav__mobile a:hover { background: var(--color-surface-pink); }
.ill-nav__mobile-sub {
  padding-left: 36px !important;
  font-size: 13px !important;
  min-height: 36px !important;
  color: var(--color-primary) !important;
  opacity: 0.72;
}
.ill-nav__mobile-sub:hover { opacity: 1; background: var(--color-surface-pink) !important; }

.ill-nav__mobile .ill-nav__mobile-cta {
  margin-top: 4px;
  background: var(--color-primary);
  color: var(--color-primary-soft);
  font-weight: 500;
  justify-content: center;
  outline: none;
  transition: filter var(--duration-fast) var(--ease-standard);
}
.ill-nav__mobile .ill-nav__mobile-cta:hover { filter: brightness(1.12); background: var(--color-primary); }
.ill-nav__mobile .ill-nav__mobile-cta:focus-visible { outline: 2px solid var(--color-primary-soft); outline-offset: 2px; }

/* ============================ TABLET ============================ */
@media (max-width: 1279px) {
  /* stage becomes a normal fluid document (boot.js drops the transform) */
  #stage { width: 100% !important; transform: none !important; }

  /* fluid containers */
  .ill-main, .ill-narrow { width: 100% !important; max-width: 100%; padding-inline: 40px; }

  /* header — keep horizontal nav, slightly tighter */
  .ill-header { left: 32px; right: 32px; }
  .ill-nav { gap: 20px; padding: 0 18px 0 14px; }
  .ill-nav__items { gap: 18px; }
  .ill-nav__link { font-size: 13px; }
  .ill-contact-btn { height: 52px; padding: 0 20px; font-size: 14px; }

  /* type scale */
  .ill-h1 { font-size: 56px; }
  .ill-h2 { font-size: 38px; }
  .ill-cta-h2 { font-size: 46px !important; }

  /* About split — reduce image width */
  .ill-about-row { gap: 48px !important; align-items: center; }
  .ill-about-img { width: 50% !important; height: auto !important; aspect-ratio: 3 / 2; }
  .ill-about-text { width: 50% !important; }

  /* card grids — 2 across */
  .ill-services-row { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .ill-service-card { width: auto !important; height: auto !important; min-height: 240px; }
  .ill-insights-row { flex-wrap: wrap !important; gap: 16px !important; }
  .ill-insight-card { flex: 1 1 calc(50% - 8px) !important; min-width: calc(50% - 8px); min-height: 520px !important; }

  /* community — below 1280 the in-collage paragraph moves out to its own block */
  .ill-comm-collage-para { display: none; }
  .ill-comm-para-below {
    display: block;
    max-width: 343px;
    margin: 0;
    text-align: center;
    color: var(--color-black);
  }
  .ill-comm-inner { gap: 56px; }

  /* careers CTA — tighter band */
  .ill-careers-cta { padding: 48px 48px 40px; }
  .ill-careers-cta__h { font-size: 30px; margin-top: 16px; }
  .ill-careers-cta__divider { margin-top: 44px; }

  /* FAQ — narrower 2-col */
  .ill-faq-grid { grid-template-columns: 1fr 1fr !important; gap: 56px !important; }

  /* footer — tighten link groups */
  .ill-footer__groups { gap: 48px !important; flex-wrap: wrap; }
  .ill-footer__top { gap: 56px; }

  /* ---- shared page-section layouts ---- */
  .ill-r-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .ill-r-split { gap: 56px !important; }
  .ill-r-textblock { grid-template-columns: 1fr 1fr !important; gap: 48px !important; }
  .ill-r-textblock > * { max-width: 100% !important; }
  .ill-mapimg { width: 100% !important; }
  .ill-contact-split { grid-template-columns: 1fr 1fr !important; min-height: 0 !important; height: auto !important; }
  .ill-contact-pane { padding: 100px 56px !important; }
  .ill-article-hero { height: 700px !important; }
  .ill-gallery-track { padding-left: 40px !important; padding-right: 40px !important; }
}

/* ============================ MOBILE ============================ */
@media (max-width: 767px) {
  .ill-main, .ill-narrow { padding-inline: 20px; }

  /* ---- header / hamburger ---- */
  .ill-header { left: 16px; right: 16px; top: 16px; }
  .ill-nav { width: 100%; position: relative; justify-content: space-between; gap: 0; padding: 0 12px 0 16px; height: 56px; }
  .ill-nav__items { display: none; }
  .ill-contact-btn { display: none; }
  .ill-nav__burger { display: flex; }
  .ill-nav__mobile.open { display: flex; }

  /* ---- type ---- */
  .ill-h1 { font-size: 36px; line-height: 1.05; }
  .ill-h2 { font-size: 30px; }
  .ill-h3 { font-size: 26px; }
  .ill-cta-h2 { font-size: 34px !important; }
  .ill-body-lg { font-size: 16px; }
  .ill-faq-q { font-size: 17px; }

  /* ---- buttons: full-width tap targets ---- */
  .ill-hero .ill-btn { width: 100% !important; justify-content: center; }

  /* ---- hero ---- */
  .ill-hero > div:last-child { padding: 96px 20px !important; gap: 24px !important; }

  /* ---- About: stack image over text, stats single column ---- */
  .ill-about-row { flex-direction: column !important; gap: 32px !important; align-items: stretch; }
  .ill-about-img { width: 100% !important; height: auto !important; aspect-ratio: 3 / 2; }
  .ill-about-text { width: 100% !important; }
  .ill-stats-grid { grid-template-columns: 1fr 1fr !important; gap: 28px 24px !important; }

  /* ---- card grids: single column ---- */
  .ill-services-row { grid-template-columns: 1fr !important; gap: 8px !important; }
  .ill-service-card { width: auto !important; min-height: 0 !important; padding: 36px 24px !important; }
  .ill-insights-row { flex-wrap: wrap !important; }
  .ill-insight-card { flex: 1 1 100% !important; min-width: 100%; min-height: 0 !important; }

  /* ---- community: mobile mosaic (ref 720 x 224, centered & cropped) ---- */
  .ill-comm-inner { padding: 60px 16px 0; gap: 60px; }
  .ill-comm-h2 { font-size: 36px; max-width: 100%; }
  .ill-comm-collage { width: 720px; }
  /* couple card lifts to the top-right; far-right slot is empty on mobile */
  .ill-comm-c5 { left: 57.222%; top: 0; width: 24.722%; height: 49.107%; }
  .ill-comm-para-below { max-width: 343px; }

  /* careers CTA — mobile band */
  .ill-careers-cta { padding: 32px 24px 28px; }
  .ill-careers-cta__mark { height: 32px; width: 32px; }
  .ill-careers-cta__logo-img { height: 21px; }
  .ill-careers-cta__word { font-size: 17px; }
  .ill-careers-cta__h { font-size: 30px; margin-top: 16px; }
  .ill-careers-cta__divider { margin-top: 36px; }

  /* ---- FAQ: stack ---- */
  .ill-faq-grid { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* ---- team carousel: fluid cards ---- */
  .ill-team-card-wrap { width: 78vw !important; max-width: 320px; }

  /* ---- CTA ---- */
  .ill-cta { min-height: 420px !important; }
  .ill-cta-content { padding: 64px 16px !important; gap: 28px !important; }

  /* ---- footer: stack everything ---- */
  .ill-footer { padding-top: 56px; }
  .ill-footer__top { flex-direction: column !important; gap: 48px !important; }
  .ill-footer__intro { width: 100% !important; }
  .ill-footer__groups { gap: 32px 40px !important; flex-wrap: wrap; }
  .ill-footer__groups > div { min-width: 130px; }
  .ill-footer__bottom { flex-direction: column !important; gap: 10px !important; align-items: flex-start !important; }

  /* ---- trim oversized vertical paddings on stacked sections ---- */
  section.reveal { padding-top: 72px !important; padding-bottom: 72px !important; }

  /* ---- shared page-section layouts (stack to single column) ---- */
  .ill-r-3, .ill-r-2, .ill-r-split, .ill-r-textblock, .ill-statstrip { grid-template-columns: 1fr !important; }
  .ill-r-split, .ill-r-textblock { gap: 32px !important; }
  .ill-r-textblock > * { max-width: 100% !important; }
  .ill-mapimg { width: 100% !important; height: auto !important; aspect-ratio: 540 / 420; }

  /* about-page sub-nav: horizontal scroll */
  .ill-subnav { gap: 20px !important; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .ill-subnav::-webkit-scrollbar { display: none; }
  .ill-subnav > a { flex: none; white-space: nowrap; }

  /* contact page */
  .ill-contact-split { grid-template-columns: 1fr !important; min-height: 0 !important; height: auto !important; }
  .ill-contact-img { min-height: 280px !important; order: -1; }
  .ill-contact-pane { padding: 56px 20px !important; }
  .ill-contact-h1 { font-size: 34px !important; }
  .ill-contact-fields { grid-template-columns: 1fr !important; }

  /* careers job cards */
  .ill-jobcard { grid-template-columns: 1fr !important; gap: 20px !important; padding: 32px 24px !important; }

  /* article page */
  .ill-article-hero { height: 70vh !important; min-height: 460px; }
  .ill-article-hero-inner { bottom: 40px !important; }
  .ill-quote { padding: 28px 24px !important; }
  .ill-quote p { font-size: 22px !important; }

  /* article content: scale headings down to avoid awkward wrapping */
  .ill-article-content { gap: 24px; }
  .ill-article-content h1 { font-size: 32px; line-height: 1.12; }
  .ill-article-content h2 { font-size: 26px; margin-top: 16px; }
  .ill-article-content h3 { font-size: 21px; }
  .ill-article-content h4 { font-size: 18px; }
  .ill-article-content .ill-article-lede { font-size: 19px; }
  .ill-article-duo { grid-template-columns: 1fr; gap: 20px; }

  /* legal pages — sidebar becomes static flow on mobile */
  .ill-legal-toc { position: static !important; top: auto !important; }

  /* molong stat strip + gallery */
  .ill-statstrip > div { padding-left: 20px !important; }
  .ill-gallery-track { padding-left: 20px !important; padding-right: 20px !important; }
  .ill-gallery-item { height: 300px !important; width: 72vw !important; max-width: 320px; }
}
