/* KiC Solutions Inc. Layout: light editorial grid, one dark contact panel per page, brand red used sparingly. */
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("assets/fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #171B1E;
  --ink-soft: #2A3034;
  --red: #C31924;
  --red-dark: #A3131D;
  --paper: #FFFFFF;
  --mist: #F4F5F6;
  --line: #DCE0E2;
  --muted: #5B6267;
  --on-dark-muted: #BCC2C6;
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --gutter: max(16px, 5vw);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--paper); padding: 10px 14px; }
.skip-link:focus { top: 12px; }

.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.eyebrow::before { content: ""; width: 32px; height: 3px; background: currentColor; flex: none; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border: 0; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .18s ease, color .18s ease; }
.button-primary { background: var(--red); color: var(--paper); }
.button-primary:hover { background: var(--red-dark); }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: var(--ink-soft); }
.button-light { background: var(--paper); color: var(--ink); }
.button-light:hover { background: var(--mist); }
.text-link { font-weight: 600; font-size: 16px; text-decoration: none; border-bottom: 2px solid var(--line); padding-block: 4px; }
.text-link:hover { border-color: var(--red); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 36px; min-height: 80px; }
.brand { display: block; width: 150px; flex: none; }
.brand img { width: 100%; }
.desktop-nav { margin-left: auto; display: flex; gap: 32px; font-size: 16px; font-weight: 600; }
.desktop-nav a { text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.desktop-nav a:hover { border-color: var(--red); }
.header-cta { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.menu-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; place-content: center; gap: 6px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .2s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; padding-block: 8px 24px; }
.mobile-nav a:not(.button) { text-decoration: none; font-weight: 600; padding-block: 12px; border-bottom: 1px solid var(--line); }
.mobile-nav .button { margin-top: 16px; }

/* Hero (home) */
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.hero-copy, .page-hero-copy { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.hero h1 { font-size: clamp(46px, 6.2vw, 84px); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
.hero h1 span { color: var(--red); }
.hero-lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--muted); max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 6px; }
.hero-photo, .page-hero-photo { margin: 0; position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.hero-photo::after, .page-hero-photo::after { content: ""; position: absolute; left: -14px; bottom: -14px; width: 34%; height: 34%; border-left: 6px solid var(--red); border-bottom: 6px solid var(--red); pointer-events: none; }
.sectors { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; padding-block: 22px; border-top: 1px solid var(--line); }
.sectors-label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.sectors ul { display: flex; flex-wrap: wrap; gap: 8px 32px; list-style: none; font-weight: 600; font-size: 16px; }
.sectors-area { margin-left: auto; font-size: 15px; color: var(--muted); }

/* Sections */
main > section:not(.hero):not(.page-hero) { padding-block: clamp(64px, 8vw, 104px); }
.band-mist { background: var(--mist); }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 64px; margin-bottom: 44px; }
.section-heading > div { display: flex; flex-direction: column; gap: 18px; }
.section-heading h2, .approach-copy h2 { font-size: clamp(32px, 3.6vw, 46px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.section-heading > p { max-width: 26em; color: var(--muted); font-size: 17px; }

/* Service cards (home) */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-aside { margin-top: 16px; display: flex; align-items: center; gap: 20px 28px; flex-wrap: wrap; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .18s ease; }
.service-aside:hover { border-color: var(--ink); }
.service-aside svg { width: 30px; height: 30px; fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.service-aside-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 320px; min-width: 0; }
.service-aside-label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.service-aside-title { font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.service-aside-desc { font-size: 16px; color: var(--muted); }
.service-aside .card-link { margin-top: 0; padding-top: 0; border-top: 0; gap: 12px; }
.service-aside:hover .card-link::after { transform: translateX(4px); }
.service-card { background: var(--paper); border: 1px solid var(--line); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; text-decoration: none; color: var(--ink); transition: border-color .18s ease, box-shadow .18s ease; }
.service-card:hover { border-color: var(--ink); box-shadow: 0 10px 28px rgba(23, 27, 30, 0.08); }
.service-card svg, .related-card svg { width: 34px; height: 34px; fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.service-card svg { margin-bottom: 8px; }
.service-card h3 { font-size: 21px; font-weight: 700; line-height: 1.25; }
.service-card p { font-size: 16px; color: var(--muted); margin-bottom: 8px; }
.card-link { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.card-link::after { content: "\2192"; color: var(--red); font-size: 20px; line-height: 1; transition: transform .18s ease; }
.service-card:hover .card-link::after { transform: translateX(4px); }

/* Who we help */
.who-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.who-list { list-style: none; border-top: 2px solid var(--ink); }
.who-list > li { padding-block: 28px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.who-list h3 { font-size: clamp(22px, 2.2vw, 26px); font-weight: 800; letter-spacing: -0.01em; }
.who-list > li > p { color: var(--muted); max-width: 36em; }
.who-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 4px; }
.who-links a { font-size: 15px; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--line); padding-block: 2px; }
.who-links a:hover { border-color: var(--red); }
.who-photo { margin: 0; }
.who-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Experience */
.experience-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.experience-list li { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--red); padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.experience-place { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.experience-list h3 { font-size: 22px; font-weight: 800; line-height: 1.2; }
.experience-list li > p:last-child { color: var(--muted); font-size: 16px; }
.hero-proof { font-size: 16px; font-weight: 600; color: var(--ink); border-left: 4px solid var(--red); padding-left: 14px; max-width: 34em; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 32px; border-top: 2px solid var(--ink); }
.stats > div { padding: 22px 24px 24px 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dt { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 3.4vw, 44px); line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.stats dd { margin: 0; font-size: 15px; color: var(--muted); }
.platforms { margin-top: 28px; font-size: 16px; color: var(--ink); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.platforms span { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); align-self: center; }

/* Approach */
.approach-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.approach-copy { display: flex; flex-direction: column; gap: 20px; }
.approach-copy > p:not(.eyebrow) { color: var(--muted); max-width: 34em; }
.steps { list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 20px; row-gap: 6px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.steps li:first-child { border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--red); line-height: 1.2; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 21px; font-weight: 700; }
.steps p { color: var(--muted); font-size: 16px; }

/* Service pages */
.page-hero { border-bottom: 1px solid var(--line); }
.page-hero-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(40px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(38px, 4.6vw, 62px); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; }
.page-hero-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.page-hero-plain .container { display: flex; flex-direction: column; gap: 20px; padding-block: clamp(40px, 6vw, 72px); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.updated { font-size: 15px; color: var(--muted); }
.area-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); border-top: 2px solid var(--ink); }
.area-list li { padding-block: 24px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.area-list h3, .engagement-list h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.area-list p, .engagement-list p { color: var(--muted); font-size: 17px; }
.engagement-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.engagement-list li { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--red); padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.related-title { font-size: 24px; font-weight: 800; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.related-card { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border: 1px solid var(--line); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 19px; transition: border-color .18s ease; }
.related-card::after { content: "\2192"; margin-left: auto; color: var(--red); font-size: 20px; }
.related-card:hover { border-color: var(--ink); }
main > section.related { padding-block: clamp(48px, 6vw, 72px) 0 !important; }

/* Privacy */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: 24px; font-weight: 800; margin-top: 20px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); }
.prose a { color: var(--red); }

/* Contact panel */
main > section.contact { padding-block: clamp(56px, 7vw, 88px) !important; }
.contact-panel { background: var(--ink); color: var(--paper); border-top: 5px solid var(--red); padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.contact-panel > div { display: flex; flex-direction: column; gap: 16px; max-width: 40em; min-width: 0; }
.contact-panel .eyebrow { color: var(--paper); }
.contact-panel .eyebrow::before { background: var(--red); }
.contact-panel h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.contact-panel p:last-child { color: var(--on-dark-muted); }
.contact-panel a:not(.button) { color: var(--paper); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--mist); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: 40px; padding-block: 56px 40px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.footer-brand .brand { width: 140px; }
.footer-brand p { color: var(--muted); font-size: 16px; max-width: 24em; }
.footer-heading { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--red); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 20px 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* Contact dialog */
.contact-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-top: 6px solid var(--red); background: var(--paper); color: var(--ink); overflow: auto; }
.contact-dialog::backdrop { background: rgba(23, 27, 30, 0.7); }
.dialog-body { padding: clamp(24px, 5vw, 40px); }
.dialog-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--ink); }
.dialog-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.contact-dialog h2 { font-size: 28px; font-weight: 800; line-height: 1.15; padding-right: 40px; }
#contact-form { display: flex; flex-direction: column; gap: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 15px; font-weight: 700; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1.5px solid #B4BABE; padding: 11px 14px; min-height: 48px; border-radius: 0; width: 100%; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(195, 25, 36, 0.25); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form-note { font-size: 14px; color: var(--muted); max-width: 22em; }
.form-note a { color: var(--ink); }
.form-error { background: #FCEBEC; color: #8A1219; border-left: 4px solid var(--red); padding: 12px 14px; font-size: 15px; }
.dialog-success { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding-block: 8px; }
.dialog-success p { color: var(--muted); }
#contact-form button[type="submit"][disabled] { opacity: .65; cursor: progress; }

/* Contact page */
.contact-page .form-wrap { max-width: 680px; border-top: 4px solid var(--red); border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(24px, 5vw, 40px); }
.hero-lead a { color: var(--ink); }

/* Simple pages (thanks, 404) */
.simple-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-block: clamp(40px, 8vw, 100px); }
.simple-page h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }

/* Responsive */
@media (max-width: 1080px) {
  .engagement-list { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .experience-list { grid-template-columns: minmax(0, 1fr); }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: grid; }
  .header-inner { min-height: 68px; }
  .brand { width: 124px; }
  .hero-layout, .page-hero-layout, .approach-layout, .who-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-photo, .page-hero-photo { margin-left: 14px; }
  .who-photo img { aspect-ratio: 3 / 2; }
  .sectors-area { margin-left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .eyebrow { font-size: 12px; letter-spacing: 0.1em; gap: 10px; }
  .eyebrow::before { width: 22px; }
  .service-grid, .area-list, .related-grid, .field-row, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-panel .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
