/* KILIROBBS Consulting: site styles
   Layout: 12-column grid inside a 1200px container; dark "systems" bands alternate with white/surface sections. */
:root {
  /* Brand palette (from brief) */
  --primary: #0B5FFF;
  --primary-hover: #0848C2;
  --primary-soft: #E7EEFF;
  --secondary: #0A1E3F; /* logo navy */
  --accent: #F59E0B;
  --bg: #FFFFFF;
  --surface: #F3F4F6;
  /* Derived neutrals (blue-biased greys) */
  --text: #0A1E3F;
  --muted: #4B5563;
  --line: #E2E5EB;
  --on-dark: #FFFFFF;
  --on-dark-muted: #C5CCD8;
  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem);
  --step-4: clamp(2.25rem, 1.6rem + 3vw, 4rem);
  /* Space, shape */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 8vw, 104px);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(10, 30, 63, .06), 0 8px 24px rgba(10, 30, 63, .06);
  --focus: 0 0 0 3px var(--bg), 0 0 0 6px var(--primary);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: var(--step-0); line-height: 1.6; color: var(--text); background: var(--bg); }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; color: inherit; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: var(--step-3); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.dark :focus-visible { box-shadow: 0 0 0 3px var(--secondary), 0 0 0 6px var(--accent); }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--secondary); color: var(--on-dark); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--on-dark); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.section { padding-block: var(--section); }
.section--surface { background: var(--surface); }
.dark { background: var(--secondary); color: var(--on-dark); }
.dark p { color: var(--on-dark-muted); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.eyebrow { font-size: var(--step--1); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.dark .eyebrow { color: var(--accent); }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 62ch; }
.dark .lede { color: var(--on-dark-muted); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 62ch; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head p { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: var(--radius-sm); font: 600 1rem/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); color: #fff; }
.btn--secondary { background: transparent; color: var(--secondary); border-color: var(--secondary); }
.btn--secondary:hover { background: var(--secondary); color: #fff; }
.dark .btn--secondary { color: #fff; border-color: rgba(255,255,255,.7); }
.dark .btn--secondary:hover { background: #fff; color: var(--secondary); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.text-link:hover { text-decoration: underline; }
.text-link::after { content: "→"; transition: transform .15s; }
.text-link:hover::after { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 54px; width: auto; }
.brand--footer img { height: 56px; }
@media (max-width: 400px) { .brand img { height: 46px; } }
.header-cta { min-height: 44px; padding: 10px 18px; font-size: .95rem; }
@media (max-width: 400px) { .header-cta { padding: 8px 12px; font-size: .875rem; } }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--secondary) 0%, rgba(10,30,63,.88) 40%, rgba(10,30,63,.2) 100%); }
.hero .container { position: relative; z-index: 1; padding-block: clamp(72px, 10vw, 136px); }
.hero-copy { grid-column: 1 / span 8; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { color: #fff; }
.hero h1 .accent-line { color: var(--accent); display: block; }
.hero .lede { color: var(--on-dark-muted); font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); }
@media (max-width: 760px) { .hero-copy { grid-column: 1 / -1; } .hero::after { background: linear-gradient(180deg, rgba(10,30,63,.92), rgba(10,30,63,.8)); } }

.page-hero { padding-block: clamp(56px, 8vw, 96px); background: var(--secondary); color: #fff; position: relative; overflow: hidden; }
.page-hero .hero-art { opacity: .35; }
.page-hero .container { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; }
.page-hero p { color: var(--on-dark-muted); max-width: 62ch; font-size: var(--step-1); }
.page-hero .eyebrow { color: var(--accent); }

/* Intro */
.about-photo-sm { grid-column: 1 / span 2; }
.about-photo-sm img { width: 100%; max-width: 160px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.intro-copy { grid-column: 3 / span 6; display: flex; flex-direction: column; gap: 20px; }
.intro-copy p.big { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.75rem); line-height: 1.45; font-weight: 500; color: var(--text); letter-spacing: -0.01em; }
.proof { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 0; border-top: 2px solid var(--secondary); }
.proof li { list-style: none; padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-weight: 550; }
.proof li::before { content: ""; width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(245,158,11,.2); }
.proof { padding: 0; margin: 0; }
@media (max-width: 860px) { .about-photo-sm, .intro-copy, .proof { grid-column: 1 / -1; } .about-photo-sm img { max-width: 112px; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 28px); }
@media (max-width: 900px) { .cards { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 640px) and (max-width: 900px) { .cards--2up { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); border-color: #CDD3DD; transform: translateY(-2px); }
.card-media { aspect-ratio: 4 / 3; background: var(--secondary); max-width: 100%; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex: 1; }
.card-body p { color: var(--muted); }
.card-body .text-link { margin-top: auto; padding-top: 8px; }
.tag { align-self: flex-start; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: #0846C0; }
.tag--accent { background: #FEF3C7; color: #7A4A00; }

/* Closing CTA */
.cta-band { background: var(--primary); color: #fff; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(48px, 6vw, 72px); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #E3EBFF; margin-top: 8px; font-size: var(--step-1); }
.cta-band .btn--primary { background: #fff; color: var(--primary); }
.cta-band .btn--primary:hover { background: var(--secondary); color: #fff; }
.cta-band .btn--secondary { color: #fff; border-color: rgba(255,255,255,.8); }
.cta-band .btn--secondary:hover { background: #fff; color: var(--primary); border-color: #fff; }
.cta-band :focus-visible { box-shadow: 0 0 0 3px var(--primary), 0 0 0 6px #fff; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.contact-aside { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 24px; }
.contact-main { grid-column: 6 / span 7; min-width: 0; }
@media (max-width: 860px) { .contact-aside, .contact-main { grid-column: 1 / -1; } }
.panel { background: var(--surface); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.panel p { color: var(--muted); }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.copy-row code { font-family: inherit; font-weight: 600; color: var(--secondary); user-select: all; word-break: break-all; }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: .875rem; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--secondary); cursor: pointer; font-weight: 600; }
.btn-small:hover { border-color: var(--secondary); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); } }
label, legend { font-weight: 600; font-size: .95rem; color: var(--secondary); }
.req { color: #B42318; }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--text); background: var(--bg); border: 1px solid #9CA3AF; border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px; width: 100%; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,95,255,.25); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #B42318; }
.error { color: #B42318; font-size: .875rem; min-height: 1.2em; }
.hint { color: var(--muted); font-size: .875rem; }
.segmented { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; grid-column: 1 / -1; }
.segmented-options { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented label { font-weight: 550; padding: 10px 16px; border: 1px solid #9CA3AF; border-radius: 999px; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.segmented input:checked + label { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.segmented input:focus-visible + label { box-shadow: var(--focus); }
.form-status { grid-column: 1 / -1; border-radius: var(--radius); padding: 20px; background: var(--primary-soft); color: var(--secondary); display: flex; flex-direction: column; gap: 10px; }
.form-status[hidden] { display: none; }
.form-status pre { white-space: pre-wrap; font: inherit; font-size: .9rem; background: var(--bg); border-radius: var(--radius-sm); padding: 12px; margin: 0; max-height: 220px; overflow: auto; }

.section-ctas { margin-top: clamp(32px, 4vw, 48px); }
/* Footer */
.footer-simple { display: flex; flex-direction: column; gap: 16px; }
.footer-simple > img { height: 56px; width: auto; align-self: flex-start; }
.contact-aside h3 { font-size: var(--step-1); }
.site-footer { background: var(--secondary); color: var(--on-dark-muted); padding-block: 56px 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: var(--on-dark-muted); }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { box-shadow: 0 0 0 3px var(--secondary), 0 0 0 6px var(--accent); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .875rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
section[id] { scroll-margin-top: 76px; }

/* Services: four cards, 2x2 */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 28px); }
@media (max-width: 760px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } }
.svc-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 32px); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.svc-card p { color: var(--muted); }
.svc-card h3 { font-size: var(--step-2); }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.price-line strong { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); font-weight: 800; letter-spacing: -0.02em; color: var(--secondary); font-variant-numeric: tabular-nums; line-height: 1.1; }
.price-line span { font-size: var(--step--1); font-weight: 600; color: var(--muted); }
.price-line--quote strong { font-size: var(--step-1); font-weight: 700; }
.svc-card .text-link, .work-card .text-link { margin-top: auto; padding-top: 4px; align-self: flex-start; }

/* Selected work: five cards that wrap */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(20px, 2.5vw, 28px); }
.work-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.work-card p { color: var(--muted); }
.work-card .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag--illus { background: #FEF3C7; color: #7A4A00; }

/* Detail panels (Learn more targets) */
.details-head { margin-top: clamp(40px, 5vw, 64px); margin-bottom: 16px; font-size: var(--step--1); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--secondary); }
.detail { border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.detail:last-of-type { border-bottom: 1px solid var(--line); }
.detail > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 18px 4px; }
.detail > summary::-webkit-details-marker { display: none; }
.detail > summary h3 { font-size: var(--step-1); }
.detail > summary .sum-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 600; font-size: var(--step--1); }
.detail > summary .sum-meta::after { content: "+"; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); font-size: 1.2rem; color: var(--secondary); transition: transform .2s; }
.detail[open] > summary .sum-meta::after { content: "−"; }
.detail > summary:hover h3 { color: var(--primary); }
.detail-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 56px); padding: 4px 4px 32px; }
.detail-body .lead { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.detail-body .more { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (max-width: 860px) { .detail-body .lead, .detail-body .more { grid-column: 1 / -1; } }
.detail-body p { color: var(--muted); }
.detail-body h4 { margin: 0 0 6px; font-size: var(--step--1); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { position: relative; padding-left: 22px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.facts { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; align-self: flex-start; }
.facts div { display: flex; flex-direction: column; padding: 12px 18px; min-width: 0; }
.facts div + div { border-left: 1px solid var(--line); }
.facts strong { font-size: var(--step-1); font-weight: 800; color: var(--secondary); font-variant-numeric: tabular-nums; line-height: 1.2; }
.facts span { font-size: .8rem; font-weight: 600; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--muted); }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 700; }
.steps li:last-child::before { background: var(--accent); color: var(--secondary); }
.illus-note { font-size: var(--step--1); font-weight: 600; color: #7A4A00; background: #FFFBEB; border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 0 6px 6px 0; }
.note { font-size: var(--step--1); }
.intro-big { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.75rem); line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; max-width: 52ch; color: var(--text); }
#intro { padding-block: clamp(48px, 6vw, 80px); }
.detail-body .lead .btn { align-self: flex-start; }

/* Image cards (restored look) */
.card-media { aspect-ratio: 16 / 10; }
.svc-card, .work-card { padding: 0; gap: 0; }
.svc-card .card-body, .work-card .card-body { gap: 14px; }
.svc-grid .card-body { padding: clamp(24px, 3vw, 32px); }
.work-card .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.intro-copy--wide { grid-column: 1 / span 7; }
@media (max-width: 860px) { .intro-copy--wide { grid-column: 1 / -1; } }

/* About */
.about-photo { grid-column: 1 / span 4; }
.about-photo img { border-radius: 50%; width: 100%; max-width: 300px; aspect-ratio: 1; object-fit: cover; }
.about-copy { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 20px; align-self: center; }
@media (max-width: 860px) { .about-photo, .about-copy { grid-column: 1 / -1; } .about-photo img { max-width: 180px; } }

/* Process timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
.timeline li { position: relative; padding: 52px 20px 0 0; counter-increment: step; }
.timeline li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; font-size: .95rem; z-index: 1; }
.timeline li::after { content: ""; position: absolute; top: 17px; left: 36px; right: 0; height: 2px; background: rgba(255,255,255,.18); }
.timeline li:last-child::after { display: none; }
.timeline li:last-child::before { background: var(--accent); color: var(--secondary); }
.timeline h3 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline p { color: var(--on-dark-muted); font-size: .95rem; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .timeline li { padding: 0 0 28px 56px; }
  .timeline li::after { top: 36px; left: 17px; right: auto; bottom: 0; width: 2px; height: auto; }
}
.dark .section-head p { color: var(--on-dark-muted); }
.about-photo img { box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--line); }
