/* ==========================================================================
   ic-pages.css: shared styles for all new pages (built after 17/11/2026).
   Loaded only on pages with the custom field ict_new_page = 1
   (see inc/ict-new-pages.php). Page HTML is managed in wp-admin.

   RULE: h1-h6 and p typography (font family, size, line-height, weight,
   margins) comes ONLY from the home page styles in icommune.css.
   Do not add font/size/line-height/margin rules for h1-h6 or p here.
   Colour-only overrides (e.g. white text on dark sections) are allowed.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ic-font: var(--font-primary);
  --ic-heading: #024430; --ic-green: #01924f; --ic-green-text: #018045; --ic-leaf: #61af4f;
  --ic-mint: #a8dd9c; --ic-teal: #135c58; --ic-ink: #012a1e;
  --ic-body: #242d30; --ic-muted: #5b6669; --ic-white: #ffffff;
  --ic-on-dark: rgba(255,255,255,.88); --ic-on-dark-muted: rgba(255,255,255,.7);
  --ic-tint: #eef6f1; --ic-tint-2: #f7faf8; --ic-line: #dde7e1; --ic-pill-line: #cfe4d6; --ic-control-line: #7a8a82;
  --ic-fs-lead: var(--body-large-font-size); --ic-fs-body: var(--body-font-size);
  --ic-fs-sm: .9375rem; --ic-fs-xs: .875rem; --ic-fs-2xs: .8125rem; --ic-fs-3xs: .75rem;
  --ic-fs-spec: clamp(1.375rem, 2.4vw, 1.75rem);
  --ic-r-sm: 8px; --ic-r: 10px; --ic-r-l: 16px; --ic-r-pill: 999px;
  --ic-max: 1200px; --ic-gutter: 20px; --ic-section-pad: clamp(44px, 6vw, 72px); --ic-text-max: 68ch; --ic-sticky-top: 140px;
  --ic-shadow-card: 0 18px 40px -28px rgba(1,42,30,.35); --ic-shadow-frame: 0 24px 60px -24px rgba(1,42,30,.35);
}
@media (min-width: 769px)  { :root { --ic-sticky-top: 120px; } }
@media (min-width: 1441px) { :root { --ic-sticky-top: 180px; } }

/* ---------- Base (no h1-h6 / p typography: inherited from the home page) ---------- */
.ic-page { color: var(--ic-body); -webkit-font-smoothing: antialiased; }
.ic-page *, .ic-page *::before, .ic-page *::after { box-sizing: border-box; }
.ic-page :where(ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ic-page img { max-width: 100%; height: auto; display: block; }
.ic-page :where(h1, h2, h3, h4, h5, h6) { color: var(--ic-heading); }
.ic-page :where(section[id], [id].ic-anchor) { scroll-margin-top: calc(var(--ic-sticky-top) + 16px); }
.ic-reset { list-style: none; padding: 0; margin: 0; }
.ic-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.ic-container { width: min(100% - (var(--ic-gutter) * 2), var(--ic-max)); margin-inline: auto; }
.ic-section { padding-block: var(--ic-section-pad); border-top: 1px solid var(--ic-line); }
.ic-section--flush { border-top: 0; }
.ic-section > * + * { margin-top: 32px; }
.ic-section > .ic-section-head + * { margin-top: 0; }
.ic-section > * + .ic-challenges { margin-top: 20px; }

.ic-layout { display: grid; gap: 0; }
.ic-layout > *, .ic-content { min-width: 0; }
@media (min-width: 1080px) { .ic-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; } }

.ic-section-head { margin-bottom: 32px; max-width: var(--ic-text-max); }
.ic-eyebrow { color: var(--ic-green-text); }

.ic-text { max-width: var(--ic-text-max); }
.ic-text > * + * { margin-top: 14px; }
.ic-text strong { color: var(--ic-heading); font-weight: 700; }
.ic-text a { color: var(--ic-heading); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Portfolio pages: text and section heads run the full width of their column */
.ic-page--portfolio :is(.ic-text, .ic-section-head) { max-width: none; }

/* Alternating tinted sections, full width without horizontal scroll */
.ic-section--tint { background: var(--ic-tint); box-shadow: 0 0 0 100vmax var(--ic-tint); clip-path: inset(0 -100vmax); }

.ic-grid { display: grid; gap: 16px; }
.ic-grid > * { min-width: 0; }
@media (min-width: 640px) { .ic-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Buttons, pills ---------- */
.ic-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border: 0; border-radius: var(--ic-r-sm); background: var(--ic-heading); color: var(--ic-white); font: inherit; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s ease; }
.ic-btn:hover { background: var(--ic-green-text); color: var(--ic-white); }
.ic-btn--sm { min-height: 44px; padding: 8px 16px; font-size: var(--ic-fs-xs); }

.ic-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ic-pill { display: inline-block; padding: 2px 10px; border-radius: var(--ic-r-pill); font-size: var(--ic-fs-2xs); font-weight: 700; line-height: 22px; color: var(--ic-heading); background: var(--ic-tint); border: 1px solid var(--ic-pill-line); }
.ic-pill--dot { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 14px; font-size: var(--ic-fs-body); line-height: 24px; }
.ic-pill--dot::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--ic-leaf); }

/* ---------- Hero ---------- */
.ic-hero { padding-block: clamp(28px, 4vw, 44px) clamp(48px, 7vw, 88px); color: var(--ic-white); background: radial-gradient(120% 90% at 85% 10%, var(--ic-teal) 0%, var(--ic-ink) 60%); }
.ic-hero h1, .ic-hero p { color: var(--ic-white); }
.ic-hero__grid { display: grid; gap: 44px; align-items: center; }
.ic-hero__grid > * { min-width: 0; }
@media (min-width: 980px) { .ic-hero__grid { grid-template-columns: 1fr 1.05fr; gap: 64px; } }
.ic-hero__copy > * + * { margin-top: 16px; }
.ic-hero .ic-pill { color: var(--ic-white); background: rgba(97,175,79,.18); border-color: rgba(168,221,156,.35); }

/* Grid hero: dark green with a faint 1px grid and a teal glow top right */
.ic-hero--grid {
  --ic-hero-base: #10291e; --ic-hero-glow: #27534f; --ic-hero-rule: rgba(255,255,255,.16);
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(90% 120% at 100% 0%, var(--ic-hero-glow) 0%, var(--ic-hero-base) 62%);
  background-color: var(--ic-hero-base);
}
.ic-hero--grid .ic-hero__copy > * + * { margin-top: 24px; }
.ic-hero--grid .ic-hero__copy > .ic-hero__stats { margin-top: 32px; }

/* Hero stats */
.ic-hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 16px; margin-top: 28px; }
.ic-hero__stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.ic-hero__stat dt { font-size: var(--ic-fs-2xs); color: var(--ic-on-dark-muted); line-height: 18px; }
.ic-hero__stat dd { font-size: var(--ic-fs-spec); font-weight: 800; line-height: 1.15; color: var(--ic-white); }
@media (max-width: 479px) { .ic-hero__stats { grid-template-columns: 1fr; gap: 12px; } }
.ic-hero__stats--ruled { gap: 0; align-items: stretch; border-top: 1px solid var(--ic-hero-rule, rgba(255,255,255,.16)); border-bottom: 1px solid var(--ic-hero-rule, rgba(255,255,255,.16)); }
.ic-hero__stats--ruled .ic-hero__stat { gap: 6px; padding: 22px 24px; }
.ic-hero__stats--ruled .ic-hero__stat:first-child { padding-left: 0; }
.ic-hero__stats--ruled .ic-hero__stat + .ic-hero__stat { border-left: 1px solid var(--ic-hero-rule, rgba(255,255,255,.16)); }
.ic-hero__stats--ruled dd { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.ic-hero__stats--ruled dt { font-size: var(--ic-fs-sm); line-height: 22px; }
@media (max-width: 479px) {
  .ic-hero__stats--ruled { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .ic-hero__stats--ruled .ic-hero__stat { padding: 16px 12px; }
  .ic-hero__stats--ruled .ic-hero__stat:first-child { padding-left: 0; }
  .ic-hero__stats--ruled dt { font-size: var(--ic-fs-2xs); line-height: 18px; }
}

/* Breadcrumb */
.ic-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; padding: 0; margin: 0 0 20px; font-size: var(--ic-fs-xs); line-height: 20px; }
.ic-breadcrumb li { color: var(--ic-on-dark-muted); }
.ic-breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--ic-on-dark-muted); }
.ic-breadcrumb a { color: var(--ic-on-dark-muted); text-decoration: none; }
.ic-breadcrumb a:hover { color: var(--ic-white); text-decoration: underline; }
.ic-breadcrumb [aria-current="page"] { color: rgba(255,255,255,.85); font-weight: 500; }
.ic-breadcrumb--line ol { flex-wrap: nowrap; overflow: hidden; }
.ic-breadcrumb--line li { flex: 0 0 auto; white-space: nowrap; }
.ic-breadcrumb--line li:nth-child(3) { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ic-hero--grid .ic-breadcrumb ol { font-size: var(--ic-fs-body); line-height: 24px; margin-bottom: 24px; }

/* Browser frame with an address field and the project photo (16:10) */
.ic-frame { border: 1px solid var(--ic-line); border-radius: var(--ic-r-l); overflow: hidden; background: var(--ic-white); box-shadow: var(--ic-shadow-frame); }
.ic-frame__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--ic-tint-2); border-bottom: 1px solid var(--ic-line); }
.ic-frame__bar::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ic-leaf); box-shadow: 14px 0 0 var(--ic-line), 28px 0 0 var(--ic-line); margin-right: 32px; }
.ic-frame__url { font-size: var(--ic-fs-3xs); color: var(--ic-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ic-frame--browser { border: 0; box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); }
.ic-frame--browser .ic-frame__bar { gap: 12px; padding: 12px 16px; background: #eff1f0; border-bottom: 1px solid var(--ic-line); }
.ic-frame--browser .ic-frame__bar::before { flex: 0 0 auto; background: #c6ccc9; box-shadow: 14px 0 0 #c6ccc9, 28px 0 0 #c6ccc9; margin-right: 30px; }
.ic-frame--browser .ic-frame__url { flex: 1 1 auto; min-width: 0; padding: 6px 14px; border-radius: var(--ic-r-sm); background: var(--ic-white); border: 1px solid var(--ic-line); font-size: var(--ic-fs-xs); color: var(--ic-body); }
.ic-frame__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }

/* ---------- Project details sidebar ----------
   Phone and tablet: a facts card above the content (two columns), no page nav.
   1080 and up: left column beside the content, facts stacked, page nav and button below. */
.ic-side { padding-top: var(--ic-section-pad); }
.ic-side__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; padding: 6px 20px; background: var(--ic-tint-2); border: 1px solid var(--ic-line); border-radius: var(--ic-r-l); }
.ic-side__facts > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-block: 12px; border-top: 1px solid var(--ic-line); }
.ic-side__facts > div:nth-child(-n+2) { border-top: 0; }
.ic-side__facts dt { font-size: var(--ic-fs-3xs); font-weight: 700; line-height: 1.4; color: var(--ic-muted); }
.ic-side__facts dd { font-size: var(--ic-fs-sm); font-weight: 700; line-height: 1.4; color: var(--ic-heading); overflow-wrap: anywhere; }
.ic-side__facts dd a { color: var(--ic-heading); text-decoration: underline; text-underline-offset: 3px; }
.ic-side__facts .ic-side__wide { grid-column: 1 / -1; }
.ic-side__facts .ic-tags { gap: 6px; margin-top: 4px; }
.ic-side__nav, .ic-side__cta { display: none; }
.ic-side__nav > p { color: var(--ic-muted); }
@media (min-width: 1080px) {
  .ic-side__facts { grid-template-columns: 1fr; padding: 4px 18px; }
  .ic-side__facts > div:nth-child(2) { border-top: 1px solid var(--ic-line); }
  .ic-side__nav { display: block; margin-top: 28px; }
  .ic-side__nav ol { list-style: none; padding: 0; margin: 8px 0 0; border-left: 1px solid var(--ic-line); counter-reset: ic-sn; }
  .ic-side__nav li { counter-increment: ic-sn; }
  .ic-side__nav a { display: flex; align-items: center; gap: 8px; padding: 6px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: var(--ic-fs-xs); font-weight: 700; line-height: 24px; color: var(--ic-muted); text-decoration: none; }
  .ic-side__nav a::before { content: counter(ic-sn, decimal-leading-zero); font-size: 11px; color: var(--ic-muted); }
  .ic-side__nav a:hover { color: var(--ic-heading); border-left-color: var(--ic-green-text); background: var(--ic-tint-2); }
  .ic-side__cta { display: flex; margin-top: 24px; }
}

/* ---------- Challenges (numbered list) ---------- */
.ic-challenges { list-style: none; padding: 0; margin: 0; counter-reset: ic-ch; }
.ic-challenges li { counter-increment: ic-ch; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding-block: 20px; border-top: 1px solid var(--ic-line); }
.ic-challenges li::before { content: counter(ic-ch, decimal-leading-zero); grid-row: span 2; font-size: var(--h3-font-size); font-weight: 800; line-height: 1.4; color: var(--ic-green-text); }

/* ---------- Content boxes and solution cards ----------
   Each box: H3 = what we built or changed, one line on how, then the result.
   Two columns from 640 (an odd last box spans the row). */
.ic-box { border: 1px solid var(--ic-line); border-radius: var(--ic-r-l); background: var(--ic-white); padding: 24px 28px; }
@media (max-width: 639px) { .ic-box { padding: 18px 20px; } }
.ic-solutions { counter-reset: ic-sol; }
.ic-solutions > li { counter-increment: ic-sol; display: flex; flex-direction: column; box-shadow: var(--ic-shadow-card); }
.ic-solutions > li::before { content: counter(ic-sol, decimal-leading-zero); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px; border-radius: 50%; font-size: var(--ic-fs-2xs); font-weight: 800; color: var(--ic-heading); background: var(--ic-tint); border: 1px solid var(--ic-pill-line); }
.ic-solutions > li > p:not(.ic-box__result) { padding-bottom: 16px; }
@media (min-width: 640px) { .ic-solutions > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.ic-box__result { display: flex; align-items: flex-start; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--ic-line); color: var(--ic-heading); }
.ic-box__result::before {
  content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; background: var(--ic-green-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Photo gallery ----------
   Add or remove <li> items freely; the grid reflows. One column on phones, two from 640.
   Add .ic-gallery__item--wide to an item to span both columns. */
.ic-gallery { list-style: none; padding: 0; display: grid; gap: 20px; }
@media (min-width: 640px) { .ic-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ic-gallery__item--wide { grid-column: 1 / -1; } }
.ic-gallery__item { height: 100%; display: flex; flex-direction: column; overflow: hidden; background: var(--ic-white); border: 1px solid var(--ic-line); border-radius: var(--ic-r-l); box-shadow: var(--ic-shadow-card); transition: border-color .15s ease, box-shadow .15s ease; }
.ic-gallery__item:hover { border-color: var(--ic-pill-line); box-shadow: var(--ic-shadow-frame); }
.ic-gallery__link { display: block; }
.ic-gallery__link:focus-visible { outline-offset: -3px; }
.ic-gallery__item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; background: var(--ic-tint); }
.ic-gallery__item--wide img { aspect-ratio: 2 / 1; }
.ic-gallery__item figcaption { padding: 12px 16px; font-size: var(--ic-fs-2xs); line-height: 20px; color: var(--ic-muted); border-top: 1px solid var(--ic-line); }
.ic-gallery__item figcaption strong { color: var(--ic-heading); }

/* ---------- Contact band ---------- */
.ic-contact { background: var(--ic-ink); color: var(--ic-on-dark); }
.ic-contact h2, .ic-contact h3 { color: var(--ic-white); }
.ic-contact .ic-eyebrow { color: var(--ic-mint); }
.ic-contact address { font-style: normal; }
.ic-contact a:not(.ic-btn) { color: var(--ic-mint); }
.ic-contact__grid { display: grid; gap: 32px; }
.ic-contact__grid > * { min-width: 0; }
@media (min-width: 920px) { .ic-contact__grid { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; } }
.ic-contact__sub { color: var(--ic-white); max-width: 46ch; }
.ic-next { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; counter-reset: ic-nx; }
.ic-next li { counter-increment: ic-nx; display: flex; gap: 12px; align-items: baseline; font-size: var(--ic-fs-sm); color: var(--ic-on-dark); }
.ic-next li::before { content: counter(ic-nx); flex: 0 0 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: var(--ic-fs-3xs); font-weight: 800; color: var(--ic-ink); background: var(--ic-mint); }
.ic-channels { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.ic-channels a { display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; }
.ic-channels__icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(168,221,156,.35); background: rgba(255,255,255,.04); color: var(--ic-mint); }
.ic-channels__icon svg { width: 22px; height: 22px; }
.ic-channels small { display: block; font-size: var(--ic-fs-sm); color: var(--ic-on-dark-muted); }
.ic-channels strong { display: block; font-size: var(--ic-fs-lead); color: var(--ic-white); }
.ic-channels a:hover strong { text-decoration: underline; }
.ic-offices { display: grid; gap: 20px; margin-top: 28px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); }
@media (min-width: 520px) { .ic-offices { grid-template-columns: 1fr 1fr; } }
.ic-offices address { margin-top: 6px; font-size: var(--ic-fs-sm); color: var(--ic-on-dark-muted); }

/* Form */
.ic-form { display: grid; gap: 12px; grid-template-columns: 1fr; padding: clamp(20px, 4vw, 32px); background: var(--ic-white); border-radius: var(--ic-r-l); color: var(--ic-body); }
@media (min-width: 561px) { .ic-form { grid-template-columns: 1fr 1fr; } .ic-form .ic-full { grid-column: 1 / -1; } }
.ic-field { display: grid; gap: 6px; }
.ic-label { font-size: var(--ic-fs-xs); font-weight: 700; color: var(--ic-heading); }
.ic-input { width: 100%; min-height: 48px; font: inherit; font-size: var(--ic-fs-sm); color: var(--ic-body); background: var(--ic-tint-2); border: 1px solid var(--ic-control-line); border-radius: var(--ic-r-sm); padding: 12px 14px; }
textarea.ic-input { min-height: 120px; resize: vertical; }
.ic-hint { color: var(--ic-muted); }
.ic-req { color: var(--ic-heading); }
.ic-check { display: flex; align-items: center; gap: 12px; font-size: var(--ic-fs-sm); font-weight: 700; color: var(--ic-heading); }
.ic-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--ic-heading); border: 1px solid var(--ic-control-line); }
.ic-check a { color: var(--ic-heading); text-decoration: underline; text-underline-offset: 3px; }
.ic-contact .ic-form a { color: var(--ic-heading); }
.ic-form .ic-btn { width: 100%; }
/* [ict_contact_form]: honeypot, Turnstile spacing and inline status (colour only) */
.ic-form .ic-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ic-form .ic-sitewide-turnstile-wrapper { margin-bottom: 12px; }
.ic-form .ic-btn:disabled { opacity: .6; cursor: progress; }
.ic-form__status:empty { display: none; }
.ic-form__status.is-ok { color: var(--ic-green-text); }
.ic-form__status.is-error { color: #b42318; }

/* ---------- Related work tiles ----------
   Full-width 2 x 2 checkerboard: light, dark / hub, light.
   Phone: one column. 900 and up: two columns; tile text lines up with the page container. */
.ic-tiles { display: grid; border-top: 1px solid #002a1e; }
@media (min-width: 900px) { .ic-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ic-tile { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 300px; padding: clamp(32px, 4vw, 52px) var(--ic-gutter); background: var(--ic-tint-2); color: var(--ic-body); transition: background-color .2s ease; }
.ic-tile + .ic-tile { border-top: 1px solid var(--ic-line); }
@media (min-width: 900px) {
  .ic-tile { min-height: 340px; padding-inline: 48px; }
  .ic-tile + .ic-tile { border-top: 0; }
  .ic-tile:nth-child(odd) { padding-left: max(var(--ic-gutter), calc(100% - (var(--ic-max) / 2))); }
  .ic-tile:nth-child(even) { padding-right: max(var(--ic-gutter), calc(100% - (var(--ic-max) / 2))); }
}
.ic-tile__kicker { color: var(--ic-muted); }
.ic-tile__kicker span::before { content: "·"; margin: 0 8px; }
.ic-tile__link { color: inherit; text-decoration: none; }
.ic-tile__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ic-tile__link:focus-visible { outline: none; }
.ic-tile:has(.ic-tile__link:focus-visible) { outline: 3px solid var(--ic-green-text); outline-offset: -6px; }
.ic-tile:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ic-tile__proof { color: var(--ic-muted); }
.ic-tile__proof strong { font-size: var(--ic-fs-lead); font-weight: 800; color: var(--ic-green-text); }
.ic-tile__more { display: inline-flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 20px; font-weight: 700; color: var(--ic-heading); }
.ic-tile__more::after { content: ""; width: 24px; height: 2px; background: currentColor; transition: width .2s ease; }
.ic-tile:hover .ic-tile__more::after { width: 56px; }
.ic-tile:hover { background: var(--ic-white); }
/* Dark tile: same colour as the contact band (--ic-ink) so the two read as one surface */
.ic-tile--dark { background: var(--ic-ink); color: var(--ic-on-dark); }
.ic-tile--dark:hover { background: #06352a; }
/* Hub tile: grid pattern, underlined title */
.ic-tile--hub {
  color: var(--ic-on-dark);
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 28px 28px,
    #1f4634;
}
.ic-tile--hub:hover { background-color: #234d3a; }
.ic-tile--hub .ic-tile__link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.ic-tile--hub .ic-tile__text { color: var(--ic-mint); }
.ic-tile--hub .ic-tile__more { color: var(--ic-mint); }
.ic-tile--hub .ic-tile__more::after { width: 48px; }
.ic-tile--hub:hover .ic-tile__more::after { width: 80px; }
/* Shared dark styling (dark and hub tiles) */
:is(.ic-tile--dark, .ic-tile--hub) .ic-tile__kicker { color: var(--ic-on-dark-muted); }
:is(.ic-tile--dark, .ic-tile--hub) h3 { color: var(--ic-white); }
.ic-tile--dark .ic-tile__proof { color: var(--ic-on-dark-muted); }
.ic-tile--dark .ic-tile__proof strong { color: var(--ic-mint); }
.ic-tile--dark .ic-tile__more { color: var(--ic-white); }
.ic-tile:is(.ic-tile--dark, .ic-tile--hub):has(.ic-tile__link:focus-visible) { outline-color: var(--ic-mint); }

/* ==========================================================================
   Product pages (first: I-Matrimony, page 24073). From the product page
   design v1.2. h1-h6 / p typography removed (home page styles apply).
   Decorative UI fragments (.ic-ui, .ic-arch2, .ic-trust__label) use
   <div>/<span>, not <p>, so their small design sizes apply.
   ========================================================================== */
.ic-page--product { --ic-section-pad: clamp(56px, 7vw, 96px); }
.ic-page--product .ic-section { border-top: 0; }
.ic-section > h3 + * { margin-top: 16px; }

/* Shared layout helpers from the earlier builds */
.ic-cols3 { display: grid; gap: 28px; }
.ic-cols3 > * { border-top: 3px solid var(--ic-green); padding-top: 16px; min-width: 0; }
@media (min-width: 760px) { .ic-cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.ic-split { display: grid; gap: 32px; }
.ic-split > * { min-width: 0; }
@media (min-width: 860px) { .ic-split { grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; } .ic-split--center { align-items: center; } }
.ic-stack { display: grid; gap: 16px; min-width: 0; }
.ic-avatar { position: relative; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: var(--ic-fs-xs); font-weight: 800; line-height: 1; letter-spacing: .02em; color: var(--ic-mint); background: var(--ic-heading); border: 2px solid var(--ic-white); box-shadow: 0 0 0 1px var(--ic-pill-line); }

/* Two-tone headings: colour only (mint on dark) */
.ic-accent { color: var(--ic-green); }
:is(.ic-hero, .ic-band--dark, .ic-path--dark) .ic-accent { color: var(--ic-mint); }

/* Section heads: centered, or split (heading left, intro right from 980) */
.ic-section-head--center { margin-inline: auto; text-align: center; }
.ic-intro-center { max-width: 60ch; margin: -16px auto 40px; text-align: center; color: var(--ic-muted); }
.ic-head-split { display: grid; gap: 12px; margin-bottom: 40px; }
.ic-head-split .ic-section-head { margin-bottom: 0; }
.ic-head-split__intro { max-width: 52ch; color: var(--ic-muted); }
@media (min-width: 980px) { .ic-head-split { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: end; } }
.ic-center { text-align: center; }

/* Hero: two CTAs, helper line */
.ic-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .ic-hero__ctas .ic-btn { width: 100%; } }
.ic-hero .ic-hero__helper { color: var(--ic-on-dark-muted); }
.ic-btn--on-dark { background: var(--ic-mint); color: var(--ic-ink); }
.ic-btn--on-dark:hover { background: var(--ic-white); color: var(--ic-ink); }
.ic-btn--ghost-dark { background: transparent; color: var(--ic-white); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.ic-btn--ghost-dark:hover { background: rgba(255,255,255,.08); color: var(--ic-white); box-shadow: inset 0 0 0 1px var(--ic-white); }
.ic-btn--outline { background: transparent; color: var(--ic-heading); box-shadow: inset 0 0 0 1px var(--ic-heading); }
.ic-btn--outline:hover { background: var(--ic-heading); color: var(--ic-white); }
.ic-btn svg, .ic-link-ext svg { width: 16px; height: 16px; flex: 0 0 auto; }
.ic-hero .white-breadcrumb .ic-custom-breadcrumb { margin-bottom: 24px; }

/* Hero visual: main screen, admin screen lower left, floating card upper right (from 640) */
.ic-frame-stack { position: relative; }
.ic-frame-stack__overlay, .ic-float { display: none; }
@media (min-width: 640px) {
  .ic-frame-stack { padding: 32px 28px 40px 40px; }
  .ic-frame-stack__overlay { display: block; position: absolute; left: 0; bottom: 0; width: 46%; border: 1px solid var(--ic-line); border-radius: var(--ic-r); overflow: hidden; background: var(--ic-white); box-shadow: 0 24px 50px -20px rgba(0,0,0,.65); }
  .ic-frame-stack__overlay img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
  .ic-frame-stack > .ic-float { display: block; position: absolute; top: 0; right: 0; z-index: 2; width: 240px; }
}

/* External text link */
.ic-link-ext { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--ic-heading); text-decoration: underline; text-underline-offset: 4px; }
.ic-link-ext:hover { color: var(--ic-green-text); }

/* Note bar: one plain sentence under a block */
.ic-notebar { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--ic-r-l); background: var(--ic-tint); border: 1px solid var(--ic-pill-line); color: var(--ic-heading); }
.ic-notebar::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--ic-green); }
.ic-section--tint .ic-notebar { background: var(--ic-white); }

/* Problem cards: numbered, three across from 760 */
.ic-problems { display: grid; gap: 16px; counter-reset: ic-pb; }
@media (min-width: 760px) { .ic-problems { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ic-problem { counter-increment: ic-pb; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 28px 24px; background: var(--ic-white); border: 1px solid var(--ic-line); border-radius: 20px; }
.ic-problem::before { content: counter(ic-pb, decimal-leading-zero); width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 50%; font-size: var(--ic-fs-2xs); font-weight: 800; color: var(--ic-heading); background: var(--ic-tint); border: 1px solid var(--ic-pill-line); }

/* Answer: illustration beside the definition and the three fixes */
.ic-answer { display: grid; gap: 40px; }
.ic-answer > * { min-width: 0; }
.ic-answer__visual { order: 2; }
@media (min-width: 980px) { .ic-answer { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; } .ic-answer__visual { order: 0; } }
.ic-answer .ic-section-head { margin-bottom: 20px; }
.ic-fixes { display: grid; gap: 20px; margin-top: 28px; margin-bottom: 24px; }
.ic-fixes > li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; }
.ic-fixes > li > :not(.ic-fixes__icon) { grid-column: 2; }
.ic-fixes__icon { grid-column: 1; grid-row: 1 / span 3; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--ic-green-text); background: var(--ic-white); border: 1px solid var(--ic-pill-line); }
.ic-fixes__icon svg, .ic-bento__icon svg { width: 20px; height: 20px; }
.ic-fixes__tag { color: var(--ic-green-text); }
.ic-origin { padding-top: 16px; border-top: 1px solid var(--ic-pill-line); color: var(--ic-muted); }
.ic-origin a { color: var(--ic-heading); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Product-screen illustrations (decorative, aria-hidden). Use <div>/<span> inside, never <p>. */
.ic-ui { position: relative; padding: 16px; font-size: 12px; line-height: 16px; color: var(--ic-body); background: var(--ic-white); border: 1px solid var(--ic-line); border-radius: 14px; box-shadow: var(--ic-shadow-frame); }
.ic-ui > * + * { margin-top: 10px; }
.ic-ui--lg { padding: 20px; border-radius: 20px; }
.ic-ui__title { font-size: 12px; font-weight: 800; line-height: 16px; color: var(--ic-heading); }
.ic-ui__label { font-size: 11px; font-weight: 700; line-height: 14px; color: var(--ic-muted); }
.ic-ui__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ic-ui__row--between { flex-wrap: nowrap; justify-content: space-between; }
.ic-ui__row--between > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ic-ui__chip { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: var(--ic-r-pill); font-size: 11px; font-weight: 700; line-height: 18px; white-space: nowrap; color: var(--ic-heading); background: var(--ic-tint); border: 1px solid var(--ic-pill-line); }
.ic-ui__chip--ok { color: var(--ic-white); background: var(--ic-green-text); border-color: var(--ic-green-text); }
.ic-ui__chip--muted { color: var(--ic-muted); background: var(--ic-white); border-color: var(--ic-line); }
.ic-ui__btn { display: inline-flex; justify-content: center; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; line-height: 16px; white-space: nowrap; color: var(--ic-white); background: var(--ic-heading); }
.ic-ui__btn--ghost { color: var(--ic-heading); background: var(--ic-white); box-shadow: inset 0 0 0 1px var(--ic-pill-line); }
.ic-ui__btn--block { display: flex; }
.ic-ui__item { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--ic-line); border-radius: 10px; background: var(--ic-white); }
.ic-ui__avatar { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--ic-tint); border: 1px solid var(--ic-pill-line); }
.ic-ui__lines { flex: 1 1 auto; min-width: 0; display: grid; gap: 5px; }
.ic-ui__meta { font-size: 11px; line-height: 14px; color: var(--ic-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-ui__bar { display: block; height: 7px; width: 70%; border-radius: 4px; background: var(--ic-line); }
.ic-ui__bar--name { height: 8px; width: 55%; background: rgba(2,68,48,.28); }
.ic-ui__bar--short { width: 40%; }
.ic-ui__seg { display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--ic-tint); }
.ic-ui__seg span { flex: 1 1 0; padding: 4px 6px; border-radius: 6px; text-align: center; font-size: 11px; font-weight: 700; color: var(--ic-muted); }
.ic-ui__seg .is-on { color: var(--ic-heading); background: var(--ic-white); box-shadow: 0 1px 2px rgba(1,42,30,.18); }
.ic-ui__slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ic-ui__slots span { aspect-ratio: 1; border-radius: 6px; border: 1px dashed var(--ic-pill-line); background: var(--ic-tint-2); }
.ic-ui__slots .is-on { border-style: solid; background: var(--ic-tint); }
.ic-ui__plan { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--ic-line); border-radius: 8px; font-weight: 700; color: var(--ic-heading); }
.ic-ui__plan.is-on { border-color: var(--ic-green-text); box-shadow: inset 0 0 0 1px var(--ic-green-text); }
.ic-ui__plans > * + * { margin-top: 6px; }
.ic-ui__split { display: grid; gap: 12px; }
@media (min-width: 480px) { .ic-ui__split { grid-template-columns: 132px minmax(0, 1fr); } }
.ic-ui__filters { display: grid; gap: 8px; align-content: start; padding: 10px; border-radius: 10px; background: var(--ic-tint-2); border: 1px solid var(--ic-line); }
.ic-ui__filters span { display: grid; gap: 4px; font-size: 11px; font-weight: 700; color: var(--ic-muted); }
.ic-ui__filters span::after { content: ""; height: 14px; border-radius: 4px; background: var(--ic-white); border: 1px solid var(--ic-line); }
.ic-ui__results { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); }
.ic-ui__card { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--ic-line); border-radius: 10px; }
.ic-ui__card .ic-ui__avatar { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 8px; flex: none; }
.ic-ui__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ic-ui__kpi { padding: 10px; border: 1px solid var(--ic-line); border-radius: 10px; }
.ic-ui__kpi::after { content: ""; display: block; height: 14px; width: 60%; margin-top: 8px; border-radius: 4px; background: rgba(2,68,48,.28); }

/* How it works: four steps, illustration on top, arrows between from 1080 */
.ic-flow4 { display: grid; gap: 32px; counter-reset: ic-f4; }
@media (min-width: 640px)  { .ic-flow4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .ic-flow4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; } }
.ic-flow4 > li { counter-increment: ic-f4; position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ic-flow4 .ic-ui { margin-bottom: 10px; box-shadow: var(--ic-shadow-card); }
@media (min-width: 640px) { .ic-flow4 .ic-ui { height: 200px; overflow: hidden; } }
.ic-flow4 .ic-ui__slots span { aspect-ratio: 4 / 3; }
.ic-flow4__meta { display: flex; align-items: center; gap: 10px; }
.ic-flow4__meta::before { content: counter(ic-f4); flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: var(--ic-fs-2xs); font-weight: 800; color: var(--ic-white); background: var(--ic-heading); }
.ic-role { padding: 1px 10px; border-radius: var(--ic-r-pill); font-size: var(--ic-fs-3xs); font-weight: 700; line-height: 20px; color: var(--ic-heading); background: var(--ic-tint); border: 1px solid var(--ic-pill-line); }
@media (min-width: 1080px) { .ic-flow4 > li:not(:last-child)::after { content: "\2192"; position: absolute; top: 76px; right: -30px; width: 20px; text-align: center; font-size: 18px; font-weight: 800; color: var(--ic-green); } }
.ic-flow4 + .ic-notebar { margin-top: 40px; }

/* ICP cards: body plus a full-width footer link */
.ic-icps { display: grid; gap: 20px; }
@media (min-width: 980px) { .ic-icps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ic-icp { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--ic-white); border: 1px solid var(--ic-line); border-radius: 20px; box-shadow: var(--ic-shadow-card); }
.ic-icp__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px 24px; }
.ic-icp__tag { color: var(--ic-green-text); }
.ic-icp__audience { color: var(--ic-muted); }
.ic-icp__pairs { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--ic-line); }
.ic-icp__pairs dt { font-size: var(--ic-fs-3xs); font-weight: 700; line-height: 1.4; color: var(--ic-muted); }
.ic-icp__pairs dd { margin-top: 2px; font-size: var(--ic-fs-sm); }
@media (min-width: 640px) and (max-width: 979px) { .ic-icp__pairs { grid-template-columns: 1fr 1fr; gap: 20px; } }
.ic-icp__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 24px; font-weight: 700; color: var(--ic-heading); text-decoration: none; background: var(--ic-tint-2); border-top: 1px solid var(--ic-line); transition: background-color .15s ease; }
.ic-icp__foot:hover { background: var(--ic-tint); }
.ic-icp__foot--dark { color: var(--ic-white); background: var(--ic-heading); border-top-color: var(--ic-heading); }
.ic-icp__foot--dark:hover { color: var(--ic-white); background: var(--ic-green-text); }
.ic-icp__foot svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* Features: bento grid. Wide = 2 of 3 columns */
.ic-bento { display: grid; gap: 16px; }
@media (min-width: 640px) { .ic-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ic-bento__item--wide { grid-column: 1 / -1; } }
@media (min-width: 980px) { .ic-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ic-bento__item--wide { grid-column: span 2; } }
@media (min-width: 640px) and (max-width: 979px) { .ic-bento__item--span-md { grid-column: 1 / -1; } }
.ic-bento__item { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 24px; border-radius: 20px; background: var(--ic-tint-2); border: 1px solid var(--ic-line); }
.ic-bento__item .ic-ui { margin-bottom: 10px; box-shadow: var(--ic-shadow-card); }
.ic-bento__icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 6px; border-radius: 12px; color: var(--ic-green-text); background: var(--ic-white); border: 1px solid var(--ic-pill-line); }
.ic-bento__why strong { color: var(--ic-heading); }
.ic-bento__item .ic-bento__tag { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--ic-pill-line); color: var(--ic-green-text); }

/* Screen showcase: tabs left (from 980), one framed screen right.
   Without JavaScript (ic-pages.js) every screen shows, stacked. */
.ic-showcase { display: grid; gap: 24px; }
.ic-showcase > * { min-width: 0; }
@media (min-width: 980px) { .ic-showcase { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; } }
.ic-showcase__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.ic-showcase__tabs::-webkit-scrollbar { display: none; }
.ic-showcase:not(.is-ready) .ic-showcase__tabs { display: none; }
@media (min-width: 980px) { .ic-showcase__tabs { flex-direction: column; overflow: visible; } }
.ic-showcase__tab { flex: 0 0 auto; display: grid; gap: 2px; padding: 10px 14px; text-align: left; font: inherit; color: var(--ic-muted); background: transparent; border: 1px solid transparent; border-radius: 12px; cursor: pointer; }
.ic-showcase__tab:hover { background: rgba(255,255,255,.6); }
.ic-showcase__who { font-size: var(--ic-fs-3xs); font-weight: 700; line-height: 18px; color: var(--ic-green-text); }
.ic-showcase__name { font-size: var(--ic-fs-sm); font-weight: 700; line-height: 20px; color: var(--ic-heading); white-space: nowrap; }
.ic-showcase__desc { display: none; font-size: var(--ic-fs-2xs); line-height: 20px; }
.ic-showcase__tab[aria-selected="true"] { background: var(--ic-white); border-color: var(--ic-line); box-shadow: var(--ic-shadow-card), inset 3px 0 0 var(--ic-green-text); }
@media (min-width: 980px) {
  .ic-showcase__tab { padding: 14px 18px; }
  .ic-showcase__name { white-space: normal; }
  .ic-showcase__desc { display: block; }
  .ic-showcase.is-ready .ic-showcase__panel figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.ic-showcase__panel[hidden] { display: none; }
.ic-showcase__panel + .ic-showcase__panel { margin-top: 24px; }
.ic-showcase.is-ready .ic-showcase__panel + .ic-showcase__panel { margin-top: 0; }
.ic-showcase__panel figcaption { margin-top: 12px; font-size: var(--ic-fs-2xs); line-height: 20px; color: var(--ic-muted); }
.ic-showcase__panel figcaption strong { color: var(--ic-heading); }

/* Dark band (technology): full width, same grid pattern as the hero */
.ic-band--dark {
  color: var(--ic-on-dark);
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(80% 90% at 0% 0%, #27534f 0%, #10291e 60%);
  background-color: #10291e;
}
.ic-band--dark :is(h2, h3) { color: var(--ic-white); }
.ic-band--dark .ic-eyebrow { color: var(--ic-mint); }
.ic-band--dark .ic-head-split__intro { color: var(--ic-on-dark-muted); }
.ic-band--dark a:not(.ic-btn) { color: var(--ic-mint); }
.ic-band--dark :focus-visible { outline-color: var(--ic-mint); }
.ic-band--dark .ic-cols3 > * { border-top-color: var(--ic-mint); }
.ic-band--dark .ic-cols3 strong { color: var(--ic-white); }
.ic-band--dark .ic-cols3 > div, .ic-decisions > li { display: grid; gap: 8px; align-content: start; }
.ic-stackline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ic-stackline__label { margin-right: 6px; font-size: var(--ic-fs-xs); font-weight: 700; color: var(--ic-on-dark-muted); }
.ic-chip-dark { padding: 3px 12px; border-radius: var(--ic-r-pill); font-size: var(--ic-fs-xs); font-weight: 700; line-height: 22px; color: var(--ic-white); background: rgba(255,255,255,.04); border: 1px solid rgba(168,221,156,.35); }

/* Architecture diagram: users -> application -> outside services (left to right from 980) */
.ic-arch2 { display: grid; gap: 12px; padding: 24px; border-radius: 20px; background: rgba(1,42,30,.5); border: 1px solid rgba(255,255,255,.14); }
@media (min-width: 980px) { .ic-arch2 { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1.5fr) 88px minmax(0, 1fr); align-items: center; gap: 0; padding: 32px; } }
.ic-arch2__col { display: grid; gap: 8px; min-width: 0; }
.ic-arch2__title { margin-bottom: 2px; font-size: var(--ic-fs-3xs); font-weight: 700; line-height: 18px; color: var(--ic-on-dark-muted); }
.ic-arch2__node { padding: 10px 12px; border-radius: 10px; font-size: var(--ic-fs-2xs); line-height: 18px; color: var(--ic-on-dark); background: rgba(255,255,255,.04); border: 1px solid rgba(168,221,156,.3); }
.ic-arch2__node strong { display: block; font-size: var(--ic-fs-xs); color: var(--ic-white); }
.ic-arch2__node--pay { border-color: var(--ic-mint); background: rgba(168,221,156,.14); }
.ic-arch2__core { padding: 18px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(168,221,156,.6); box-shadow: 0 0 0 6px rgba(168,221,156,.06); }
.ic-arch2__core-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-weight: 800; color: var(--ic-white); }
.ic-arch2__core-title span { font-size: var(--ic-fs-3xs); font-weight: 700; color: var(--ic-mint); }
.ic-arch2__mods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.ic-arch2__mods .ic-arch2__node { padding: 8px 10px; text-align: center; }
.ic-arch2__db { margin-top: 10px; text-align: center; border-style: dashed; }
.ic-arch2__ext { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ic-arch2__ext .ic-arch2__node { padding: 8px 10px; text-align: center; }
.ic-arch2__link { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: var(--ic-fs-3xs); font-weight: 700; line-height: 16px; color: var(--ic-mint); text-align: center; }
.ic-arch2__arrow { font-size: 20px; line-height: 1; }
@media (max-width: 979px) { .ic-arch2__arrow { display: inline-block; transform: rotate(90deg); } }
@media (min-width: 980px) { .ic-arch2__link { flex-direction: column; } }
.ic-arch2 figcaption { grid-column: 1 / -1; margin-top: 16px; font-size: var(--ic-fs-2xs); line-height: 20px; color: var(--ic-on-dark-muted); }

/* Engineering decisions on the dark band: 2 columns from 640, 4 from 1080 */
.ic-decisions { display: grid; gap: 16px; }
@media (min-width: 640px)  { .ic-decisions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .ic-decisions { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ic-decisions > li { min-width: 0; padding: 22px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); }

/* Founder note: a large quote, styled apart from client testimonials */
.ic-note { padding: clamp(28px, 4vw, 44px); border-radius: 20px; background: var(--ic-tint); }
.ic-note::before { content: "\201C"; display: block; height: 40px; font-family: Georgia, "Times New Roman", serif; font-size: 72px; font-weight: 700; line-height: 1; color: var(--ic-green); }
.ic-note blockquote p { color: var(--ic-heading); }
.ic-note figcaption { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--ic-pill-line); font-size: var(--ic-fs-xs); line-height: 22px; }
.ic-note__name { display: block; font-weight: 700; color: var(--ic-body); }
.ic-note__role { display: block; color: var(--ic-muted); }

/* Building blocks: checked list, two columns from 640 */
.ic-blocks { display: grid; gap: 10px; }
@media (min-width: 640px) { .ic-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ic-blocks li { display: flex; gap: 10px; font-size: var(--ic-fs-sm); font-weight: 700; color: var(--ic-heading); }

/* Ways to use it: three path cards; the custom-build path is dark */
.ic-paths { display: grid; gap: 20px; }
@media (min-width: 980px) { .ic-paths { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ic-path { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 32px 28px 28px; border-radius: 20px; background: var(--ic-white); border: 1px solid var(--ic-line); box-shadow: var(--ic-shadow-card); }
.ic-path__label { align-self: flex-start; }
.ic-path__for { color: var(--ic-muted); }
.ic-path__list { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--ic-line); }
.ic-path__list li { display: flex; gap: 10px; font-size: var(--ic-fs-sm); }
.ic-path__cta { margin-top: auto; padding-top: 10px; }
.ic-path__cta .ic-btn { width: 100%; }
.ic-path--dark { color: var(--ic-on-dark); border-color: transparent; background: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 28px 28px, #10291e; }
.ic-path--dark h3 { color: var(--ic-white); }
.ic-path--dark .ic-path__for { color: var(--ic-on-dark-muted); }
.ic-path--dark .ic-path__list { border-top-color: rgba(255,255,255,.16); }
.ic-path--dark .ic-path__list li::before { background: var(--ic-mint); }
.ic-path--dark .ic-pill { color: var(--ic-white); background: rgba(97,175,79,.18); border-color: rgba(168,221,156,.35); }
.ic-path--dark :focus-visible { outline-color: var(--ic-mint); }

/* Shared check icon (same mask as .ic-box__result) */
.ic-blocks li::before, .ic-path__list li::before {
  content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; background: var(--ic-green-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* FAQ: heading left (sticky from 980), questions right as <details> */
.ic-faq { display: grid; gap: 32px; }
.ic-faq > * { min-width: 0; }
@media (min-width: 980px) { .ic-faq { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } .ic-faq__head { position: sticky; top: calc(var(--ic-sticky-top) + 96px); } }
.ic-faq__head > p { color: var(--ic-muted); }
.ic-faq__head a { color: var(--ic-heading); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ic-faq__list { border-top: 1px solid var(--ic-line); }
.ic-faq__item { border-bottom: 1px solid var(--ic-line); }
.ic-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; }
.ic-faq__item summary::-webkit-details-marker { display: none; }
.ic-faq__item summary::after { content: "+"; flex: 0 0 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-size: 20px; font-weight: 500; line-height: 1; color: var(--ic-green-text); border: 1px solid var(--ic-pill-line); }
.ic-faq__item[open] summary::after { content: "\2212"; }
.ic-faq__item > p { padding: 0 48px 20px 0; }
.ic-faq__item a { color: var(--ic-heading); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Company trust facts (fact sheet). Never ratings or reviews. */
.ic-trust { padding: 20px 24px; border: 1px solid var(--ic-line); border-radius: 20px; background: var(--ic-white); }
.ic-trust__label { font-size: var(--ic-fs-xs); font-weight: 700; line-height: 22px; color: var(--ic-heading); }
.ic-trust__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin-top: 14px; }
.ic-trust__facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; min-width: 0; }
.ic-trust__facts dd { font-size: var(--ic-fs-spec); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; color: var(--ic-heading); }
.ic-trust__facts dt { font-size: var(--ic-fs-xs); line-height: 20px; color: var(--ic-muted); }
@media (min-width: 640px) and (max-width: 859px) { .ic-trust__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ==========================================================================
   Work hub (/work/, page 24081). From the work hub design v1.3.
   Cards, filters and Load More are rendered by [ict_work_grid] (inc/ict-work.php);
   behaviour lives in ic-pages.js. h1-h6 / p typography removed (home page styles apply);
   small UI text lines (status, context, counts, notes) are <div>s.
   ========================================================================== */
.ic-page--hub { --ic-section-pad: clamp(56px, 7vw, 96px); }
.ic-page--hub .ic-section { border-top: 0; }

/* Client quote (portfolio feedback): dotted box with a quote badge. Colour-only rules for p. */
.ic-quote { position: relative; background: var(--ic-tint); border: 2px dotted var(--ic-green); border-radius: var(--ic-r-l); padding: clamp(28px, 4vw, 36px) clamp(20px, 4vw, 32px) clamp(20px, 4vw, 32px); }
.ic-quote::before { content: "\201C"; position: absolute; top: -20px; left: 24px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; padding-top: 10px; font-family: Georgia, "Times New Roman", serif; font-size: 40px; font-weight: 700; line-height: 1; color: var(--ic-mint); background: var(--ic-heading); }
.ic-section--tint .ic-quote { background: var(--ic-white); }
.ic-quote blockquote { margin: 0; }
.ic-quote blockquote p { color: var(--ic-heading); }
.ic-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ic-pill-line); font-size: var(--ic-fs-xs); line-height: 24px; }
.ic-quote__who { min-width: 0; }
.ic-quote__name { display: block; font-weight: 700; color: var(--ic-body); }
.ic-quote__role { display: block; color: var(--ic-muted); }
.ic-stars { display: inline-flex; gap: 2px; color: var(--ic-green); }
.ic-stars svg { width: 15px; height: 15px; fill: currentColor; }

/* Hero: copy left, browse-by-type index right; extra bottom room for the console */
.ic-hero--hub { padding-bottom: clamp(120px, 13vw, 176px); }
.ic-hub-hero { display: grid; gap: 40px; align-items: end; }
.ic-hub-hero > * { min-width: 0; }
@media (min-width: 980px) { .ic-hub-hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; } }
.ic-hub-hero__copy > * + * { margin-top: 24px; }
.ic-hub-hero__copy > .ic-hero__stats { margin-top: 32px; }
.ic-proofrow { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: var(--ic-fs-sm); line-height: 22px; color: var(--ic-on-dark); }
.ic-proofrow li { display: flex; align-items: center; gap: 10px; }
.ic-proofrow .ic-stars { color: var(--ic-mint); }
.ic-proofrow__mark { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--ic-ink); background: var(--ic-mint); }

/* Browse-by-type index (each row filters the grid; without JS it jumps to #work) */
.ic-index { border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid rgba(168,221,156,.28); }
.ic-index__title { padding: 18px 24px 10px; font-size: var(--ic-fs-xs); font-weight: 700; line-height: 20px; color: var(--ic-on-dark-muted); }
.ic-index__row { display: grid; grid-template-columns: minmax(0, 1fr) auto 32px; align-items: center; column-gap: 16px; padding: 16px 24px; color: var(--ic-white); text-decoration: none; border-top: 1px solid rgba(255,255,255,.1); transition: background-color .15s ease; }
.ic-index__row:hover { color: var(--ic-white); background: rgba(255,255,255,.05); }
.ic-index__name { display: block; font-size: 1.125rem; font-weight: 800; line-height: 1.3; }
.ic-index__desc { display: block; font-size: var(--ic-fs-xs); line-height: 20px; color: var(--ic-on-dark-muted); }
.ic-index__count { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--ic-mint); }
.ic-index__arrow { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(168,221,156,.35); color: var(--ic-mint); transition: transform .2s ease; }
.ic-index__arrow svg { width: 16px; height: 16px; }
.ic-index__row:hover .ic-index__arrow { transform: translateY(2px); }
.ic-index__popular { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 14px 24px 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: var(--ic-fs-xs); color: var(--ic-on-dark-muted); }
.ic-index__popular a { color: var(--ic-mint); font-weight: 700; text-underline-offset: 3px; }

/* Work section: console card overlaps the hero edge */
.ic-work { position: relative; padding-bottom: var(--ic-section-pad); }
.ic-work__console { position: relative; z-index: 5; margin-top: calc(-1 * clamp(80px, 9vw, 120px)); padding: clamp(20px, 3vw, 28px); background: var(--ic-white); border: 1px solid var(--ic-line); border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(1,42,30,.45); }
.ic-work__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.ic-work__status { font-size: var(--ic-fs-sm); color: var(--ic-muted); }
.ic-work__status strong { color: var(--ic-heading); }
.ic-work__controls { display: none; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--ic-line); }
.ic-work.is-ready .ic-work__controls { display: grid; }
@media (min-width: 980px) { .ic-work.is-ready .ic-work__controls { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; } }

/* Project type: segmented radio group */
.ic-seg { border: 0; margin: 0; padding: 0; min-width: 0; }
.ic-seg__opts { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--ic-tint); overflow-x: auto; scrollbar-width: none; }
.ic-seg__opts::-webkit-scrollbar { display: none; }
.ic-seg__opt { position: relative; flex: 0 0 auto; }
.ic-seg__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ic-seg__opt span { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 9px; font-size: var(--ic-fs-xs); font-weight: 700; color: var(--ic-muted); white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.ic-seg__opt input:hover + span { color: var(--ic-heading); }
.ic-seg__opt input:checked + span { color: var(--ic-heading); background: var(--ic-white); box-shadow: 0 1px 3px rgba(1,42,30,.2); }
.ic-seg__opt input:focus-visible + span { outline: 3px solid var(--ic-green-text); outline-offset: 2px; }
.ic-seg__opt input:disabled { cursor: not-allowed; }
.ic-seg__opt input:disabled + span { opacity: .45; }
@media (max-width: 639px) {
  .ic-seg__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .ic-seg__opt span { justify-content: space-between; }
}
.ic-seg__count { min-width: 24px; padding: 0 7px; border-radius: var(--ic-r-pill); font-size: var(--ic-fs-3xs); line-height: 20px; text-align: center; color: var(--ic-heading); background: rgba(2,68,48,.08); }
.ic-seg__opt input:checked + span .ic-seg__count { color: var(--ic-white); background: var(--ic-heading); }

/* Filter dropdowns (980 and up) and bottom sheet (below 980): one set of markup */
.ic-filters { min-width: 0; }
.ic-filters__open { display: none; }
.ic-filters__groups, .ic-filters__backdrop { display: none; }
.ic-fgroup { position: relative; }
.ic-fgroup__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px 8px 16px; font: inherit; font-size: var(--ic-fs-xs); font-weight: 700; color: var(--ic-heading); background: var(--ic-white); border: 1px solid var(--ic-control-line); border-radius: 10px; cursor: pointer; }
.ic-fgroup__btn:hover { background: var(--ic-tint-2); }
.ic-fgroup__btn[aria-expanded="true"], .ic-fgroup.has-value .ic-fgroup__btn { border-color: var(--ic-heading); box-shadow: inset 0 0 0 1px var(--ic-heading); }
.ic-fgroup__btn svg { width: 16px; height: 16px; transition: transform .15s ease; }
.ic-fgroup__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.ic-badge { min-width: 20px; padding: 0 6px; border-radius: var(--ic-r-pill); font-size: var(--ic-fs-3xs); line-height: 20px; text-align: center; color: var(--ic-white); background: var(--ic-heading); }
.ic-badge[hidden] { display: none; }
.ic-fgroup__pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; width: 320px; max-height: min(440px, 62vh); overflow: auto; padding: 8px; background: var(--ic-white); border: 1px solid var(--ic-line); border-radius: 14px; box-shadow: 0 24px 50px -20px rgba(1,42,30,.4); }
.ic-fgroup__pop[hidden] { display: none; }
.ic-fset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ic-fset legend { padding: 10px 10px 4px; font-size: var(--ic-fs-3xs); font-weight: 700; line-height: 18px; color: var(--ic-muted); }
.ic-fset .ic-fset { margin-top: 4px; }
.ic-opt { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 10px; border-radius: 8px; font-size: var(--ic-fs-sm); line-height: 20px; color: var(--ic-body); cursor: pointer; }
.ic-opt:hover { background: var(--ic-tint-2); }
.ic-opt input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--ic-heading); cursor: pointer; }
.ic-opt__label { flex: 1 1 auto; min-width: 0; }
.ic-opt__count { font-size: var(--ic-fs-2xs); font-weight: 700; color: var(--ic-muted); }
.ic-opt.is-empty { opacity: .5; cursor: not-allowed; }
.ic-opt.is-empty input { cursor: not-allowed; }
.ic-fsheet__head, .ic-fsheet__foot { display: none; }

@media (min-width: 980px) {
  .ic-work.is-ready .ic-filters__groups { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  .ic-fsheet__body { display: contents; }
  .ic-fgroup__pop > .ic-fset > legend.ic-fset__top { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 979px) {
  .ic-work.is-ready .ic-filters__open { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 16px; font: inherit; font-size: var(--ic-fs-sm); font-weight: 700; color: var(--ic-heading); background: var(--ic-white); border: 1px solid var(--ic-control-line); border-radius: 10px; cursor: pointer; }
  .ic-filters__open svg { width: 18px; height: 18px; }
  .ic-filters__groups.is-open { display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100001; max-height: 88vh; background: var(--ic-white); border-radius: 20px 20px 0 0; box-shadow: 0 -20px 60px rgba(0,0,0,.35); }
  .ic-filters__backdrop.is-open { display: block; position: fixed; inset: 0; z-index: 100000; background: rgba(1,42,30,.6); }
  .ic-fsheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 12px 20px; border-bottom: 1px solid var(--ic-line); }
  .ic-fsheet__title { font-size: var(--ic-fs-lead); font-weight: 800; color: var(--ic-heading); }
  .ic-fsheet__close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--ic-heading); background: var(--ic-tint-2); cursor: pointer; }
  .ic-fsheet__close svg { width: 20px; height: 20px; }
  .ic-fsheet__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 8px; }
  .ic-fsheet__foot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ic-line); }
  .ic-fgroup__btn { display: none; }
  /* !important: bootstrap.min.css (sitewide) sets [hidden] { display: none !important }; in the sheet every group shows */
  .ic-fgroup__pop[hidden] { display: block !important; }
  .ic-fgroup__pop { display: block; position: static; width: auto; max-height: none; overflow: visible; padding: 0 0 8px; border: 0; border-radius: 0; box-shadow: none; }
  .ic-fgroup + .ic-fgroup { border-top: 1px solid var(--ic-line); }
  .ic-fgroup__pop > .ic-fset > legend { padding: 18px 0 6px; font-size: var(--ic-fs-body); color: var(--ic-heading); }
  .ic-opt { padding-inline: 4px; }
  .ic-noscroll, .ic-noscroll body { overflow: hidden; }
  /* The sheet lives inside the console (z-index 5); lift it above the theme's sticky header, mobile drawer (99999) and bottom bar while open */
  .ic-noscroll .ic-work__console { z-index: 100000; }
}

/* Selected filters as removable chips, plus clear all */
.ic-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.ic-chips[hidden] { display: none; }
.ic-chips__list { display: contents; }
.ic-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 10px 6px 14px; border-radius: var(--ic-r-pill); font: inherit; font-size: var(--ic-fs-2xs); font-weight: 700; color: var(--ic-heading); background: var(--ic-tint); border: 1px solid var(--ic-pill-line); cursor: pointer; }
.ic-chip:hover { background: var(--ic-white); border-color: var(--ic-heading); }
.ic-chip svg { width: 16px; height: 16px; }
.ic-linkbtn { min-height: 44px; padding: 6px 8px; font: inherit; font-size: var(--ic-fs-2xs); font-weight: 700; color: var(--ic-heading); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Context line: one selected filter with a related page */
.ic-work__context { margin-top: 16px; padding: 12px 16px; border-radius: 12px; font-size: var(--ic-fs-sm); color: var(--ic-body); background: var(--ic-tint-2); border: 1px dashed var(--ic-pill-line); }
.ic-work__context[hidden] { display: none; }
.ic-work__context a { color: var(--ic-heading); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Card grid: 1 column, 2 from 640, 3 from 980 */
.ic-work__grid { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 640px) { .ic-work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .ic-work__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.ic-work__item { min-width: 0; }
.ic-work__item[hidden] { display: none; }

/* Portfolio card: one stretched link (the title) */
.ic-wcard { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--ic-white); border: 1px solid var(--ic-line); border-radius: 20px; box-shadow: var(--ic-shadow-card); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; container-type: inline-size; }
.ic-wcard:hover { transform: translateY(-4px); border-color: var(--ic-pill-line); box-shadow: 0 30px 60px -30px rgba(1,42,30,.45); }
.ic-wcard:has(.ic-wcard__link:focus-visible) { outline: 3px solid var(--ic-green-text); outline-offset: 3px; }
.ic-wcard__media { position: relative; padding: 20px 20px 0; overflow: hidden; }
.ic-wcard--case .ic-wcard__media { background: radial-gradient(120% 120% at 100% 0%, #27534f 0%, #10291e 65%); }
.ic-wcard--product .ic-wcard__media { background: radial-gradient(120% 120% at 0% 0%, #2a7a6d 0%, var(--ic-teal) 60%); }
.ic-wcard--project .ic-wcard__media { background: linear-gradient(160deg, var(--ic-tint) 0%, #dcece2 100%); }
.ic-wcard__shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 10px 10px 0 0; overflow: hidden; background: var(--ic-white); box-shadow: 0 -10px 30px -12px rgba(0,0,0,.35); transform-origin: 50% 100%; transition: transform .3s ease; }
.ic-page .ic-wcard__shot-img { display: block; width: 100%; height: calc(100% - 26px); object-fit: cover; object-position: top center; background: var(--ic-white); }
.ic-wcard:hover .ic-wcard__shot { transform: scale(1.03); }
.ic-wcard__bar { display: flex; align-items: center; gap: 10px; height: 26px; padding: 0 10px; background: #eff1f0; border-bottom: 1px solid var(--ic-line); }
.ic-wcard__bar::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-right: 22px; border-radius: 50%; background: #c6ccc9; box-shadow: 10px 0 0 #c6ccc9, 20px 0 0 #c6ccc9; }
.ic-wcard__screen { position: relative; display: grid; place-items: center; height: calc(100% - 26px); background: linear-gradient(rgba(2,68,48,.05) 1px, transparent 1px) 0 0 / 20px 20px, linear-gradient(90deg, rgba(2,68,48,.05) 1px, transparent 1px) 0 0 / 20px 20px, var(--ic-tint-2); }
.ic-wcard__mono { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: rgba(2,68,48,.16); }
.ic-wcard__lines { position: absolute; left: 12%; right: 40%; bottom: 14%; display: grid; gap: 6px; }
.ic-wcard__lines::before, .ic-wcard__lines::after { content: ""; height: 6px; border-radius: 3px; background: rgba(2,68,48,.12); }
.ic-wcard__lines::after { width: 60%; }
.ic-wcard__body { position: relative; isolation: isolate; display: flex; flex: 1 1 auto; flex-direction: column; padding: 0 24px 24px; }
.ic-wcard__body::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(238,246,241,0) 0%, var(--ic-tint) 100%); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.ic-wcard:hover .ic-wcard__body::before, .ic-wcard:has(.ic-wcard__link:focus-visible) .ic-wcard__body::before { opacity: 1; }
.ic-wcard__meta { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding-block: 20px; border-bottom: 1px solid var(--ic-line); }
.ic-page .ic-wcard__logo { flex: 0 1 auto; width: auto; max-width: 60%; height: 28px; object-fit: contain; object-position: left center; }
.ic-wcard__industry { flex: 0 1 auto; font-size: var(--ic-fs-2xs); line-height: 18px; text-align: right; color: var(--ic-muted); }
.ic-wcard__link { color: inherit; text-decoration: none; }
.ic-wcard__link:hover { color: inherit; }
.ic-wcard__link::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.ic-wcard__link:focus-visible { outline: none; }
.ic-wcard__bottom { margin-top: auto; padding-top: 24px; }
.ic-wcard__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ic-wtag { padding: 3px 12px; border-radius: var(--ic-r-pill); font-size: var(--ic-fs-2xs); font-weight: 700; line-height: 20px; color: var(--ic-muted); background: var(--ic-white); border: 1px solid var(--ic-line); }
.ic-wtag--service { color: var(--ic-heading); background: var(--ic-tint); border-color: var(--ic-pill-line); }
.ic-wcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--ic-line); }
.ic-wcard__proof { display: flex; flex-direction: column-reverse; gap: 2px; min-width: 0; }
.ic-wcard__proof dd { margin: 0; font-size: 1.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; white-space: nowrap; color: var(--ic-heading); }
.ic-wcard__proof dt { font-size: var(--ic-fs-2xs); line-height: 18px; color: var(--ic-muted); }
/* CTA: 48px icon circle; grows into a labelled pill on hover/focus (hover devices, cards 370px+) */
.ic-wcard__cta { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 48px; margin-left: auto; border-radius: var(--ic-r-pill); font-size: var(--ic-fs-xs); font-weight: 700; line-height: 1; white-space: nowrap; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, padding .3s ease; }
.ic-wcard__cta-text { display: inline-block; max-width: 0; overflow: hidden; opacity: 0; transition: max-width .3s ease, opacity .2s ease; }
.ic-wcard__cta-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; transition: transform .25s ease; }
.ic-wcard__cta-icon svg { width: 20px; height: 20px; }
@media (hover: hover) {
  @container (min-width: 370px) {
    .ic-wcard:is(:hover, :has(.ic-wcard__link:focus-visible)) .ic-wcard__cta { padding-left: 20px; }
    .ic-wcard:is(:hover, :has(.ic-wcard__link:focus-visible)) .ic-wcard__cta-text { max-width: 160px; opacity: 1; }
  }
  .ic-wcard:hover .ic-wcard__cta-icon { transform: translateX(2px); }
}
.ic-wcard--case .ic-wcard__cta { color: var(--ic-white); background: var(--ic-heading); }
.ic-wcard--case:hover .ic-wcard__cta { background: var(--ic-green-text); }
.ic-wcard--product .ic-wcard__cta { color: var(--ic-ink); background: var(--ic-mint); }
.ic-wcard--product:hover .ic-wcard__cta { background: #95d487; }
.ic-wcard--project .ic-wcard__cta { color: var(--ic-heading); background: var(--ic-white); box-shadow: inset 0 0 0 1px var(--ic-pill-line); }
.ic-wcard--project:hover .ic-wcard__cta { color: var(--ic-white); background: var(--ic-heading); box-shadow: none; }

/* Empty state */
.ic-work__empty { margin-top: 40px; padding: clamp(32px, 5vw, 56px) 24px; text-align: center; border: 1px dashed var(--ic-pill-line); border-radius: 20px; background: var(--ic-tint-2); }
.ic-work__empty[hidden] { display: none; }
.ic-work__empty-icon { width: 56px; height: 56px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; color: var(--ic-green-text); background: var(--ic-white); border: 1px solid var(--ic-pill-line); }
.ic-work__empty-icon svg { width: 24px; height: 24px; }
.ic-work__empty-text { max-width: 52ch; margin: 8px auto 0; color: var(--ic-muted); }
.ic-work__empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* Load more: progress, button, count. A real link (?page=N), so it also works without JS. */
.ic-work__more { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 48px; }
.ic-work__more[hidden] { display: none; }
.ic-progress { width: min(280px, 100%); height: 4px; border-radius: 4px; overflow: hidden; background: var(--ic-line); }
.ic-progress span { display: block; width: var(--ic-progress, 0%); height: 100%; border-radius: inherit; background: var(--ic-green); transition: width .3s ease; }
.ic-work__more-text { font-size: var(--ic-fs-2xs); color: var(--ic-muted); }

/* Clients band: logo wall + big number + verified highlights */
.ic-clients__grid { display: grid; gap: 40px; }
.ic-clients__grid > * { min-width: 0; }
@media (min-width: 980px) { .ic-clients__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center; } }
.ic-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border-radius: 16px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); }
@media (min-width: 640px) { .ic-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ic-logo { min-height: 92px; } }
.ic-logo { display: grid; place-items: center; min-height: 68px; padding: 16px 12px; background: #10291e; transition: background-color .2s ease; }
.ic-logo:hover { background: #163728; }
.ic-page .ic-logo img { width: auto; max-width: 88%; height: 28px; object-fit: contain; opacity: .82; transition: opacity .2s ease; }
.ic-page .ic-logo img.is-stacked { height: 38px; }
.ic-logo:hover img { opacity: 1; }
.ic-clients__note { margin-top: 12px; font-size: var(--ic-fs-3xs); color: var(--ic-on-dark-muted); }
.ic-clients__big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; }
.ic-clients__big strong { font-size: clamp(3.5rem, 8vw, 5.5rem); font-weight: 800; line-height: .95; letter-spacing: -0.04em; color: var(--ic-white); }
.ic-clients__big span { max-width: 20ch; font-size: var(--ic-fs-lead); line-height: 26px; color: var(--ic-on-dark); }
.ic-highlights { display: grid; margin-top: 28px; }
@media (min-width: 640px) { .ic-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
.ic-highlights li { border-top: 1px solid rgba(255,255,255,.14); }
.ic-band--dark .ic-highlights a { position: relative; display: grid; gap: 4px; padding: 18px 52px 18px 0; color: var(--ic-on-dark); text-decoration: none; }
.ic-highlights strong { font-size: 1.625rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; color: var(--ic-mint); }
.ic-highlights__text { font-size: var(--ic-fs-sm); line-height: 22px; }
.ic-highlights__arrow { position: absolute; top: 20px; right: 0; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(168,221,156,.35); border-radius: 50%; color: var(--ic-mint); transition: background-color .2s ease, color .2s ease; }
.ic-highlights__arrow svg { width: 16px; height: 16px; }
.ic-highlights a:hover .ic-highlights__arrow { color: var(--ic-ink); background: var(--ic-mint); }
.ic-highlights a:hover .ic-highlights__text { text-decoration: underline; text-underline-offset: 3px; }
.ic-band--dark .ic-intro-center { color: var(--ic-on-dark); }

/* Testimonial cards (text now; video mode when a recorded testimonial exists) */
.ic-vts { display: grid; gap: 20px; }
@media (min-width: 980px) { .ic-vts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ic-vt { position: relative; display: flex; flex-direction: column; gap: 24px; height: 100%; padding: 28px; overflow: hidden; border-radius: 20px; color: var(--ic-on-dark); background: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 28px 28px, radial-gradient(120% 100% at 100% 0%, #27534f 0%, #10291e 60%); background-color: #10291e; }
@media (min-width: 980px) { .ic-vt { min-height: 360px; } }
.ic-vt__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ic-vt__brand { font-size: var(--ic-fs-sm); font-weight: 800; color: var(--ic-white); }
.ic-vt__src { padding: 1px 10px; border-radius: var(--ic-r-pill); font-size: var(--ic-fs-3xs); font-weight: 700; line-height: 20px; color: var(--ic-mint); border: 1px solid rgba(168,221,156,.35); white-space: nowrap; }
.ic-vt blockquote { margin-top: auto; }
.ic-vt blockquote::before { content: "\201C"; display: block; height: 36px; font-family: Georgia, "Times New Roman", serif; font-size: 64px; font-weight: 700; line-height: 1; color: var(--ic-mint); }
.ic-vt blockquote p { color: var(--ic-white); }
.ic-vt figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); }
.ic-vt .ic-avatar { color: var(--ic-ink); background: var(--ic-mint); border-color: #10291e; box-shadow: none; }
.ic-vt__who { min-width: 0; }
.ic-vt__name { display: block; font-size: var(--ic-fs-sm); font-weight: 700; color: var(--ic-white); }
.ic-vt__role { display: block; font-size: var(--ic-fs-2xs); line-height: 20px; color: var(--ic-on-dark-muted); }
.ic-vt .ic-stars { margin-top: 4px; color: var(--ic-mint); }
.ic-vt--video { padding: 0; min-height: 440px; }
.ic-vt__media { position: absolute; inset: 0; }
.ic-vt__media img { width: 100%; height: 100%; object-fit: cover; }
.ic-vt__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,41,30,0) 30%, rgba(16,41,30,.92) 78%); pointer-events: none; }
.ic-vt__play { position: absolute; top: 20px; right: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px 6px 8px; border: 0; border-radius: var(--ic-r-pill); font: inherit; font-size: var(--ic-fs-xs); font-weight: 700; color: var(--ic-ink); background: var(--ic-mint); cursor: pointer; }
.ic-vt__play span[aria-hidden] { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--ic-mint); background: var(--ic-ink); }
.ic-vt__play svg { width: 14px; height: 14px; fill: currentColor; }
.ic-vt--video .ic-vt__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 20px; margin-top: auto; padding: 28px; }
.ic-vt iframe { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; border: 0; }
.ic-vts + .ic-center { margin-top: 40px; }

/* Centered FAQ */
.ic-faq--center { max-width: 880px; margin-inline: auto; }

/* ---------- Focus and motion ---------- */
.ic-page :focus-visible { outline: 3px solid var(--ic-green-text); outline-offset: 3px; }
.ic-page :is(.ic-hero, .ic-contact, .ic-vt) :focus-visible { outline-color: var(--ic-mint); }
.ic-form :focus-visible { outline-color: var(--ic-green-text); }
@media (prefers-reduced-motion: reduce) { .ic-page *, .ic-page *::before, .ic-page *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
