/* Little Cloud Software — marketing site.
   Palette is built from the two brand colours. Navy carries text and structure;
   cyan is decorative only — it measures 2.2:1 on white and can never be trusted
   with type. Typography matches the printed proposal and rate sheet so the site
   and the documents read as one company. */

:root {
  --navy:      #0F315F;
  --navy-deep: #0A2444;
  --cyan:      #42C6ED;
  --cyan-wash: #E8F5FC;

  --ground:  #F4F7FA;   /* pale cool ground — the mark's navy reads on it */
  --surface: #FFFFFF;
  --sunk:    #EDF2F7;

  --ink:   #0E1723;
  --slate: #55677A;
  --rule:  #DCE4EC;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", Menlo, ui-monospace, monospace;

  --wrap: 1080px;
  --pad: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--navy); text-decoration-color: var(--cyan); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }

/* ---- Type ------------------------------------------------------------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.18; }
h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--navy); margin: 0 0 12px;
}

.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--slate); max-width: 60ch; }

/* ---- Header ----------------------------------------------------------- */

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand img { height: 30px; width: auto; display: block; }
.brand span {
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.005em; white-space: nowrap;
}
.brand span b { color: var(--navy); font-weight: 600; }

.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a { font-size: 15px; text-decoration: none; color: var(--slate); }
.site-nav a:hover { color: var(--navy); }

/* ---- Buttons ---------------------------------------------------------- */

.btn {
  display: inline-block; font-size: 15.5px; font-weight: 600;
  padding: 12px 22px; border-radius: 4px; text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--rule); }
.btn-ghost:hover { border-color: var(--navy); background: var(--sunk); }

/* ---- Hero ------------------------------------------------------------- */

.hero {
  background: linear-gradient(180deg, var(--cyan-wash) 0%, var(--ground) 55%, var(--surface) 100%);
  border-bottom: 1px solid var(--rule);
  padding: clamp(44px, 8vw, 88px) 0 clamp(48px, 8vw, 92px);
  text-align: center;
}
.hero-mark {
  display: block; width: clamp(150px, 26vw, 230px); height: auto;
  margin: 0 auto clamp(22px, 4vw, 34px);
  animation: rise .9s cubic-bezier(.22,.9,.3,1) both;
}
.hero h1 { max-width: 17ch; margin: 0 auto; }
.hero .lead { margin: 20px auto 0; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

@keyframes rise { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-mark { animation: none; } }

/* ---- Sections --------------------------------------------------------- */

section { padding: clamp(48px, 8vw, 86px) 0; }
/* The header is sticky, so an anchor jump would otherwise park the heading
   underneath it. */
section[id] { scroll-margin-top: 84px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
section.tint { background: var(--ground); border-block: 1px solid var(--rule); }
.section-head { max-width: 62ch; margin-bottom: clamp(26px, 4vw, 40px); }
.section-head .lead { margin-top: 12px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 6px; padding: 26px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.card p { color: var(--slate); font-size: 15.5px; }
.card .ico { width: 34px; height: 34px; color: var(--navy); }

/* Numbered approach list — the sequence is real: discovery precedes build
   precedes operate, so the numbers carry information. */
.steps { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); }
.step { display: flex; flex-direction: column; gap: 8px; }
.step .n {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em;
  color: var(--navy); padding-bottom: 8px; border-bottom: 2px solid var(--cyan);
  width: fit-content; margin-bottom: 4px;
}
.step p { color: var(--slate); font-size: 15.5px; }

/* ---- Work ------------------------------------------------------------- */

.case {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 6px;
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.case .kind {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--slate);
}
.case p { color: var(--slate); font-size: 15.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.chip {
  font-size: 12.5px; padding: 4px 10px; border-radius: 3px;
  background: var(--cyan-wash); color: var(--navy); border: 1px solid #CDE9F7;
}

/* ---- Engagements ------------------------------------------------------ */

.tiers { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.tier {
  background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--rule);
  border-radius: 5px; padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
.tier.lead-tier { border-top-color: var(--cyan); }
.tier .flag {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--navy);
}
.tier p { color: var(--slate); font-size: 15.5px; }

/* ---- Contact ---------------------------------------------------------- */

.contact-box { display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: flex-start; }
.contact-item { display: flex; flex-direction: column; gap: 3px; }
.contact-item .k {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--slate);
}
.contact-item a, .contact-item span { font-size: 18px; color: var(--ink); text-decoration: none; }
.contact-item a:hover { color: var(--navy); text-decoration: underline; }

/* ---- Footer ----------------------------------------------------------- */

.site-foot { background: var(--navy); color: #C9D6E6; padding: 40px 0 32px; font-size: 14.5px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; }
.site-foot img { height: 26px; width: auto; }
.site-foot a { color: #fff; text-decoration-color: var(--cyan); }
.site-foot .legal { color: #93A9C4; }
.site-foot .ver { font-family: var(--font-mono); font-size: 11px; color: #6E88A8; margin-left: auto; }

@media (max-width: 640px) {
  /* Two-row header rather than hiding the nav. This is a one-page site built on
     anchors — dropping the nav on phones removes the only way to reach a
     section without scrolling the whole page. A scrollable strip keeps every
     link reachable and needs no JavaScript. */
  .site-head .wrap { height: auto; flex-wrap: wrap; gap: 0; padding-block: 10px; }
  .brand { margin-right: 0; }
  .brand img { height: 26px; }
  .brand span { font-size: 17px; }

  .site-nav {
    width: 100%;
    gap: 18px;
    padding: 9px 0 3px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; font-size: 14.5px; }

  section[id] { scroll-margin-top: 108px; }   /* the header is taller here */

  .site-foot .ver { margin-left: 0; }
}
