/* =========================================================
   Logic Wise Solutions, LLC — shared stylesheet
   Brand: compiler-trained engineering for the MS Office Suite
   ========================================================= */

:root {
  color-scheme: light;

  /* Ink / surfaces */
  --paper:        #f8f9fb;
  --paper-2:      #eef1f5;
  --surface:      #ffffff;
  --ink:          #10192b;
  --ink-soft:     #45566b;
  --ink-muted:    #7b889b;
  --hairline:     #dde3ec;
  --hairline-2:   #e7ebf1;

  /* Brand */
  --navy:         #0f1b2d;
  --navy-2:       #16283f;
  --navy-3:       #1e3455;
  --blue:         #2a5ea8;
  --blue-bright:  #3987e5;
  --amber:        #d97b29;
  --amber-bright: #eb8a3a;
  --green:        #0ca30c;

  /* Type */
  --font-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.06), 0 1px 1px rgba(15, 27, 45, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 27, 45, 0.10);
  --shadow-lg: 0 20px 48px rgba(15, 27, 45, 0.16);

  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* -------------------- Skip link -------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* -------------------- Header / Nav -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 27, 45, 0.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-bright), var(--amber-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: #0b1220;
  flex: none;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .name { font-size: 15px; }
.brand-text .sub {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9db1cf;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: #cdd8e8;
  font-size: 14.5px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-links a.active { background: rgba(57,135,229,0.18); color: #9fc4f5; }

.nav-cta {
  background: var(--amber-bright) !important;
  color: #241300 !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: #f39a4f !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  color: #fff;
  padding: 8px 10px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy);
    padding: 8px 16px 16px;
    gap: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; }
}

/* -------------------- Hero -------------------- */
.hero {
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(57,135,229,0.28), transparent 60%),
    radial-gradient(700px 380px at 8% 0%, rgba(235,138,58,0.18), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 76px 0 64px;
}

.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9fc4f5;
  background: rgba(57,135,229,0.14);
  border: 1px solid rgba(57,135,229,0.35);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  max-width: 18ch;
}

.hero .lede {
  font-size: 18px;
  color: #c7d3e5;
  max-width: 62ch;
  margin: 0 0 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 56px 0 46px;
}
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 14px; letter-spacing: -0.01em; }
.page-hero .lede { font-size: 16.5px; color: #c7d3e5; max-width: 68ch; margin: 0; }

.hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-flex .hero-text { flex: 1 1 420px; max-width: 640px; }
.hero-photo-frame {
  flex: 0 0 auto;
  width: 200px;
  height: 200px;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow-lg);
  background: var(--navy-2);
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) {
  .hero-photo-frame { width: 140px; height: 140px; border-radius: 16px; }
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--amber-bright);
  color: #241300;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #f39a4f; box-shadow: var(--shadow-md); }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--hairline);
}
.btn-outline:hover { background: var(--paper-2); }

.btn-dark {
  background: var(--navy);
  color: #fff;
}
.btn-dark:hover { background: var(--navy-3); }

/* -------------------- Sections -------------------- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
section.alt { background: var(--paper-2); }
section.dark { background: var(--navy); color: #fff; }

.section-head { max-width: 68ch; margin: 0 0 40px; }
.section-head .kicker {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}
.section-head h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--ink-soft); font-size: 16.5px; margin: 0; }
section.dark .section-head p { color: #c7d3e5; }
section.dark .section-head .kicker { color: #9fc4f5; }

/* -------------------- Stat tiles -------------------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 44px;
}
.stat-tile {
  background: rgba(255,255,255,0.03);
  padding: 26px 22px;
  text-align: left;
}
.stat-tile .value {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  color: #fff;
  font-variant-numeric: proportional-nums;
  letter-spacing: -0.01em;
}
.stat-tile .label {
  font-size: 13.5px;
  color: #9fb0c9;
  margin-top: 6px;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

/* Light-surface variant */
.stat-row.on-light {
  background: var(--hairline);
  border-color: var(--hairline);
}
.stat-row.on-light .stat-tile { background: var(--surface); }
.stat-row.on-light .stat-tile .value { color: var(--navy); }
.stat-row.on-light .stat-tile .label { color: var(--ink-muted); }

/* -------------------- Cards -------------------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--blue);
  font-size: 16px;
  margin-bottom: 4px;
}

.card h3 { margin: 0; font-size: 18.5px; letter-spacing: -0.005em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.card .proof {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--hairline);
  font-size: 13.5px;
  color: var(--blue);
  font-weight: 600;
}

.card-link {
  text-decoration: none;
  color: var(--blue);
  font-weight: 600;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.card-link:hover { text-decoration: underline; }

/* -------------------- Case study cards -------------------- */
.case {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.case + .case { margin-top: 20px; }
.case-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.case-head h3 { margin: 0; font-size: 20px; }
.case-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
}
.case p { color: var(--ink-soft); margin: 0 0 14px; font-size: 15.5px; }
.case-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.metric-chip {
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.metric-chip strong { color: var(--blue); }

/* -------------------- Timeline -------------------- */
.timeline { position: relative; margin-top: 8px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--hairline);
}
.tl-item { position: relative; padding: 0 0 34px 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--blue);
}
.tl-item.milestone::before { border-color: var(--amber); background: var(--amber); }
.tl-years {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.tl-item h4 { margin: 0 0 4px; font-size: 17px; }
.tl-item .role { color: var(--ink-muted); font-size: 13.5px; margin-bottom: 8px; }
.tl-item p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.tl-item ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 14.5px; }
.tl-item li { margin-bottom: 4px; }

/* -------------------- Misc content -------------------- */
.prose { max-width: 74ch; }
.prose p { color: var(--ink-soft); font-size: 16.5px; margin: 0 0 18px; }
.prose h3 { margin: 34px 0 12px; font-size: 20px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217,123,41,0.10);
  color: var(--amber);
  border: 1px solid rgba(217,123,41,0.30);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.panel h4 { margin: 0 0 14px; font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-muted); }
.panel dl { margin: 0; }
.panel dt { font-weight: 700; font-size: 14.5px; color: var(--navy); margin-top: 14px; }
.panel dt:first-child { margin-top: 0; }
.panel dd { margin: 2px 0 0; font-size: 14.5px; color: var(--ink-soft); }

/* -------------------- CTA band -------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h3 { margin: 0 0 8px; font-size: 24px; }
.cta-band p { margin: 0; color: #c7d3e5; max-width: 52ch; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--navy);
  color: #9fb0c9;
  padding: 52px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h5 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #9fb0c9; text-decoration: none; font-size: 14.5px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 13px;
  color: #7488a3;
}

/* -------------------- Contact page -------------------- */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.contact-card .icon-big {
  width: 60px; height: 60px;
  border-radius: 16px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--blue-bright), var(--amber-bright));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; color: #0b1220; font-size: 22px;
}
.contact-card .avatar-photo {
  width: 108px; height: 108px;
  border-radius: 18px;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 3px solid var(--hairline);
  box-shadow: var(--shadow-md);
}
.contact-card .avatar-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contact-card h2 { margin: 0 0 10px; font-size: 24px; }
.contact-card p { color: var(--ink-soft); margin: 0 0 26px; font-size: 16px; }
.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
}
.contact-email:hover { border-color: var(--blue); color: var(--blue); }
.contact-note { font-size: 13.5px; color: var(--ink-muted); }
