/* cloudcut.team — colors and type from Cloudcut Brand & Color Guide v1.0 (Nov 2026).
   Sky Blue #6284FF, Midnight Navy #13254A, Signal Yellow #FFE500, Ink #0B1220, Deep Blue #3A5BD9, Mist #E9EEFF.
   League Spartan (headlines), Inter (body), JetBrains Mono (labels).
   One theme only (William, 2026-11-13, docs/decisions.md B6): the brand guide's look, Navy on Sky Blue and white.
   There is no dark variant and no theme switch, so the page looks the same whatever the visitor's system setting
   is. Do not add dark-mode media queries here.
   @date Last edited 2026-11-14 */
:root {
  --sky: #6284FF; --navy: #13254A; --yellow: #FFE500; --ink: #0B1220; --deep: #3A5BD9; --mist: #E9EEFF; --paper: #FFFFFF;
  --line: #C9D3F5;

  --bg: var(--paper);
  --bg-alt: var(--mist);
  --text: var(--navy);
  --muted: #3D4B6B;
  --link: var(--deep);
  --rule: var(--line);
  --card: var(--paper);
  --hero-bg: var(--sky);
  --hero-text: var(--ink);       /* Ink on Sky Blue 5.6:1 (brand guide: long text on blue uses Ink) */
  --hero-line: var(--navy);
  --btn-ink-bg: var(--navy); --btn-ink-text: #fff;
  --field: #fff;
  --focus: var(--deep);

  --display: "League Spartan", Futura, "Century Gothic", sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: light;           /* form controls and scrollbars stay light in a dark-mode browser too */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); font-weight: 700; letter-spacing: -.01em; margin-bottom: 14px; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--navy); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
.kicker { display: block; font: 500 .78rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--link); margin-bottom: 12px; }
.fine { font-size: .85rem; color: var(--muted); }
.note { color: var(--muted); margin-top: 26px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 6px; border: 2px solid transparent; font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn-wide { width: 100%; }
.btn-ink { background: var(--btn-ink-bg); color: var(--btn-ink-text); }
.btn-ink:hover { filter: brightness(1.15); }
.btn-ghost { border-color: var(--hero-text); color: var(--hero-text); }
.btn-ghost:hover { background: color-mix(in srgb, var(--hero-text) 10%, transparent); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { filter: brightness(.95); }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.08); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.top-row { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand .mark { width: 44px; height: auto; }
.wordmark { font: 700 1.3rem/1 var(--display); letter-spacing: .02em; padding-top: 3px; }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
@media (min-width: 900px) { .nav { display: flex; } .top-actions { margin-left: 8px; } }

/* ---------- hero (brand: Navy on Sky Blue is the signature) */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-text); padding: 56px 0 64px; }
.hero .sky { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--hero-line); opacity: .55; pointer-events: none; }
/* Contrails: an svg laid exactly under the monogram image (same box, same viewBox), so its two lines begin behind
   the jet's wing tips. overflow: visible lets them run past the image; .hero clips them at its edge. Same colour and
   strength as the cloud outlines in .sky. The copy sits above them (z-index) where they pass under the text column. */
.hero-mark { position: relative; display: inline-block; }
.hero-mark .trails { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: var(--hero-line); opacity: .55; pointer-events: none; }
.hero-mark img { position: relative; display: block; }
.hero-copy { position: relative; z-index: 1; }
.hero-grid { position: relative; display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 88px 0 96px; } .hero-grid { grid-template-columns: 1.35fr .65fr; } }
.hero .kicker { color: var(--hero-text); opacity: .9; }
.hero h1 { color: var(--navy); font-size: clamp(2.3rem, 7vw, 4.3rem); font-weight: 800; letter-spacing: -.015em; max-width: 15ch; margin-bottom: 20px; }
.lede { font-size: 1.15rem; line-height: 1.55; max-width: 56ch; color: var(--hero-text); }
:root .hero .lede { font-weight: 500; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 28px; }
.proof { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.proof li { font: 500 .78rem/1 var(--mono); letter-spacing: .04em; padding: 8px 10px; border-radius: 4px;
  background: color-mix(in srgb, var(--hero-text) 10%, transparent); border: 1px solid color-mix(in srgb, var(--hero-text) 35%, transparent); }
.hero-art { display: none; justify-self: center; }
.hero-art .hero-mark { width: min(320px, 100%); }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 10px 24px rgba(11,18,32,.18)); }
@media (min-width: 900px) { .hero-art { display: block; } }

/* ---------- sections */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-mist { background: var(--bg-alt); }
.section-lede { max-width: 64ch; color: var(--muted); font-size: 1.08rem; }

.services { display: grid; gap: 16px; margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.svc { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.svc h3 { margin-bottom: 4px; }
.svc p { color: var(--muted); margin: 0; }
.svc .for { margin-top: auto; padding-top: 10px; font-size: .9rem; color: var(--text); font-weight: 600; }
.svc-id { font: 500 .72rem/1 var(--mono); letter-spacing: .1em; color: var(--link); }

.steps { list-style: none; counter-reset: s; margin: 32px 0 0; padding: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps li { counter-increment: s; background: var(--card); border-radius: 8px; padding: 22px; border: 1px solid var(--rule); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 800 2.4rem/1 var(--display); color: var(--sky); margin-bottom: 10px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }
.pricing-note { margin-top: 28px; padding: 22px; border-left: 4px solid var(--yellow); background: var(--card); border-radius: 0 8px 8px 0; max-width: 760px; }
.pricing-note h3 { margin-bottom: 8px; }
.pricing-note p { margin: 0; color: var(--muted); }

/* portfolio */
.portfolio { display: grid; gap: 16px; margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.case { border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: var(--card); display: flex; flex-direction: column; }
.case .thumb { aspect-ratio: 16 / 9; background: var(--bg-alt); display: grid; place-items: center; overflow: hidden; }
.case .thumb img { width: 100%; height: 100%; object-fit: cover; }
.case .thumb svg { width: 40%; color: var(--muted); opacity: .5; }
.case .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.case .meta { font: 500 .72rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
.case p { margin: 0; color: var(--muted); }
.case .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.case .tags span { font: 500 .72rem/1 var(--mono); padding: 5px 7px; border-radius: 4px; background: var(--bg-alt); color: var(--muted); }
.case.is-placeholder { border-style: dashed; }
.case.is-placeholder .thumb { background: repeating-linear-gradient(-45deg, var(--bg-alt) 0 12px, transparent 12px 24px); }

/* testimonials */
.quotes { display: grid; gap: 16px; margin-top: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.quote { margin: 0; background: var(--card); border-radius: 8px; padding: 22px; border: 1px solid var(--rule); }
.quote blockquote { margin: 0 0 12px; font-size: 1.1rem; }
.quote figcaption { color: var(--muted); font-size: .9rem; }
.coming-soon { grid-column: 1 / -1; margin: 0; padding: 22px; border: 1px dashed var(--rule); border-radius: 8px; color: var(--muted); }

/* team */
.team { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 900px) { .team { grid-template-columns: 1fr 1fr; } }
.person { display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: start; background: var(--card);
  border: 1px solid var(--rule); border-radius: 8px; padding: 22px; }
@media (min-width: 560px) { .person { grid-template-columns: 112px 1fr; gap: 22px; } }
.person img, .placeholder-avatar { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 3px solid var(--sky); }
.placeholder-avatar { display: grid; place-items: center; font: 700 2.4rem/1 var(--display); color: var(--sky); border-style: dashed; }
.person .role { font: 500 .78rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--link); margin: 6px 0 12px; }
.person p { color: var(--muted); }
.person p:last-child { margin-bottom: 0; }
.person-future { background: var(--bg-alt); }

/* pay (brand: White on Navy, yellow buttons on navy) */
.section-navy { background: var(--navy); color: #fff; }
.section-navy .fine { color: #C9D3F5; }
.section-navy a:not(.btn) { color: #B7C6FF; }
.kicker-yellow { color: var(--yellow); }
.pay-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .pay-grid { grid-template-columns: 1.3fr .7fr; } }
.pay-grid p { max-width: 60ch; }
.pay-card { display: grid; gap: 12px; padding: 24px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); }

/* contact */
.contact-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.contact-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 24px 0; }
.contact-list dt { font: 500 .78rem/1.9 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 0; }
.contact-form { display: grid; gap: 16px; background: var(--bg-alt); padding: 24px; border-radius: 10px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--text); background: var(--field);
  border: 1.5px solid var(--rule); border-radius: 6px; padding: 12px; min-height: 48px; }
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: #B3261E; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.6em; font-weight: 600; }
.form-status.ok { color: #1F7A4D; }
.form-status.err { color: #B3261E; }
.contact-form .btn { justify-self: start; }

/* footer */
.foot { background: var(--navy); color: #fff; padding: 40px 0; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.foot-lockup { width: 150px; }
.foot-text p { margin: 0 0 6px; }
.foot .fine { color: #C9D3F5; }
.foot a { color: #B7C6FF; }

/* simple pages */
.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 20px; }
.page .wrap > * { max-width: 70ch; }
.page h2 { font-size: 1.5rem; margin: 28px 0 10px; }

/* mobile: keep the outline clouds out from under the text */
@media (max-width: 899px) { .hero .sky > g:first-child { display: none; } }

/* ---------- GitHub / LinkedIn links (site.js fills every [data-social] from CC_CONFIG; empty addresses show nothing) */
.social { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; }
.social[hidden] { display: none; }   /* display:flex above would otherwise un-hide the empty container */
.social-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.social-link svg { width: 18px; height: 18px; flex: none; }
.foot .social { margin-top: 10px; }

/* ---------- the "kept for" table on the privacy page (shown when visit statistics are on) */
.retention { border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
.retention th, .retention td { text-align: left; vertical-align: top; padding: 8px 16px 8px 0; border-bottom: 1px solid var(--rule); }
.retention th { font: 500 .78rem/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- the "See or delete your data" box on the privacy page (/assets/mydata.js) */
.mydata { margin: 16px 0; padding: 16px; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg-alt); }
.mydata-id { margin: 0; }
.mydata-id code, .mydata-status { overflow-wrap: anywhere; }
.mydata code { font: 500 .88rem/1.4 var(--mono); }
.mydata-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.mydata .btn-line { border-color: var(--navy); color: var(--navy); background: var(--paper); }
.mydata .btn-line:hover { background: var(--mist); }
.mydata .btn[disabled] { opacity: .5; cursor: default; }
.mydata-status { min-height: 1.5em; margin: 12px 0 0; }
.mydata-status:empty { min-height: 0; margin: 0; }
/* "Show my data" opens the panel below it; the arrow turns when it is open. */
.mydata-toggle::before { content: "\25B8"; display: inline-block; transition: transform .15s ease; }
.mydata-toggle[aria-expanded="true"]::before { transform: rotate(90deg); }
#mydata-out { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--rule); }
.mydata-section h3 { margin: 18px 0 6px; font-size: 1rem; font-family: var(--body); }
.mydata-section ul { margin: 0; padding-left: 1.2em; max-height: 320px; overflow: auto; overflow-wrap: anywhere; }

/* The live chat bubble's styles are in /assets/chat.css, which is only on the site when the bubble is switched on
   (tools/build.sh, CHAT_BUBBLE=1). Superseded 2026-11-14: a block here used to recolour the web-messenger widget
   through its CSS variables ("html .wmc"); the bubble now ships with this site and carries its own colours. */
