/* Validated4n6 — shared stylesheet
   Brand colors come from the logo: navy #092E49, cyan #00AEEF. */

:root {
  --navy: #092e49;
  --navy-900: #061f32;
  --navy-700: #12456b;
  --cyan: #00aeef;
  --cyan-700: #0079a8;
  --ink: #142433;
  --muted: #536576;
  --line: #dde4ea;
  --surface: #ffffff;
  --surface-alt: #f4f7fa;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(9, 46, 73, .06), 0 6px 20px rgba(9, 46, 73, .06);
  --max: 1160px;
  --prose: 720px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-700); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-alt); border: 1px solid var(--line); border-radius: 4px; padding: .1em .35em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #eaf2f8;
  border-bottom: 1px solid #d3e1ec;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); }
.brand img { height: 56px; width: auto; }
.brand span { font-family: "Michroma", var(--font); font-size: 1.35rem; font-weight: 400; letter-spacing: .02em; white-space: nowrap; }
.brand span b { color: var(--cyan); font-weight: inherit; }
.nav-toggle { display: none; background: none; border: 1px solid #c3d4e2; border-radius: 8px; padding: .45rem .6rem; cursor: pointer; color: var(--navy); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; }
.site-nav a {
  display: block; padding: .5rem .8rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem;
}
.site-nav a:hover { background: #dbe8f2; color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--navy); background: #d3ebf8; }
.site-nav .nav-cta { background: var(--navy); color: #fff; margin-left: .4rem; }
.site-nav .nav-cta:hover { background: var(--navy-700); color: #fff; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #eaf2f8; border-bottom: 1px solid #d3e1ec; box-shadow: var(--shadow); }
  .site-header .container { height: 72px; }
  .brand img { height: 46px; }
  .brand span { font-size: 1.05rem; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: .75rem 16px 1rem; }
  .site-nav .nav-cta { margin: .4rem 0 0; text-align: center; }
  .container { padding: 0 16px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.35rem; border-radius: 8px; border: 1px solid transparent;
  font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--cyan); color: var(--navy-900); }
.btn-primary:hover { background: #33c1f3; color: var(--navy-900); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-700); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-700); margin-bottom: .75rem; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.lead { font-size: 1.2rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(700px 380px at 82% 18%, rgba(0, 174, 239, .22), transparent 65%),
    radial-gradient(600px 320px at 8% 100%, rgba(0, 174, 239, .10), transparent 70%),
    linear-gradient(160deg, #04182a 0%, var(--navy-900) 45%, var(--navy) 100%);
  color: #dce8f1; padding: 96px 0 104px; position: relative; overflow: hidden; isolation: isolate;
}
.hero::before, .page-head::before { /* circuit traces + fine dot grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    url("/assets/img/hero-circuit.svg"),
    radial-gradient(rgba(0, 174, 239, .22) 1px, transparent 1.2px);
  background-size: 240px 240px, 22px 22px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 75% 90% at 75% 40%, #000 25%, transparent 80%);
          mask-image: radial-gradient(ellipse 75% 90% at 75% 40%, #000 25%, transparent 80%);
}
.hero::after, .page-head::after { /* slow scanning data pulse */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(0, 174, 239, .0) 10%, rgba(0, 174, 239, .55) 50%, rgba(0, 174, 239, 0) 90%, transparent);
  box-shadow: 0 0 18px 2px rgba(0, 174, 239, .25);
  animation: hero-scan 9s linear 1 both;
}
@keyframes hero-scan { from { top: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } to { top: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero::after, .page-head::after { display: none; } }
.hero-card { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero .lead { color: #b9cddc; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-card {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px; padding: 28px;
}
.hero-card img { width: 180px; margin: 0 auto 18px; }
.hero-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; font-size: .95rem; }
.hero-card li { display: flex; gap: .6rem; align-items: flex-start; color: #dce8f1; }
.hero-card li svg { flex: none; margin-top: 4px; color: var(--cyan); }

@media (max-width: 860px) {
  .hero { padding: 64px 0 72px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 64px 0; }
}

/* ---------- Page header (inner pages) ---------- */
.page-head {
  background:
    radial-gradient(600px 260px at 85% 20%, rgba(0, 174, 239, .20), transparent 65%),
    linear-gradient(160deg, #04182a 0%, var(--navy-900) 45%, var(--navy) 100%);
  color: #c4d5e2; padding: 64px 0 56px; position: relative; overflow: hidden; isolation: isolate;
}
.page-head::after { animation-duration: 6s; }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head p { max-width: 680px; font-size: 1.12rem; margin: 0; }
.page-head .eyebrow { color: var(--cyan); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card p { color: var(--muted); margin-bottom: 0; }
.card .icon, .icon-badge {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: #e7f6fd; color: var(--cyan-700); margin-bottom: 18px;
}
a.card { text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
a.card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.card .more { margin-top: auto; padding-top: 18px; font-weight: 650; color: var(--cyan-700); font-size: .95rem; }

/* Post list */
.post-card .meta { font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan-700); background: #e7f6fd; border-radius: 999px; padding: .2rem .6rem; margin-bottom: .9rem; align-self: flex-start; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature blockquote { margin: 0; padding: 28px 32px; border-left: 4px solid var(--cyan); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); font-size: 1.25rem; font-weight: 600; color: var(--navy); line-height: 1.45; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 32px; } }

/* Author strip */
.author { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center; }
.author img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; object-position: center 20%; width: 100%; }
@media (max-width: 760px) { .author { grid-template-columns: 1fr; gap: 28px; } .author img { max-width: 240px; } }

.creds { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.creds li { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: #fff; }
.creds strong { display: block; color: var(--navy); font-size: .98rem; line-height: 1.35; }
.creds span { font-size: .85rem; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--navy); color: #c4d5e2; border-radius: 14px; padding: 48px; display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { margin: 0; }

/* ---------- Tools ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 32px; }
.filter-bar button { font: inherit; font-size: .9rem; font-weight: 600; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.filter-bar button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tool-card h3 { margin-bottom: .35em; }
.tool-card .platforms { font-size: .82rem; color: var(--muted); margin-top: .9rem; }
.tool-card .more::after { content: " \2197"; }

/* ---------- Article ---------- */
.article-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); background: var(--surface-alt); }
.article-head .container, .prose-wrap { max-width: calc(var(--prose) + 48px); }
.article-head .meta { color: var(--muted); font-size: .95rem; display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.article-head .meta img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: center 15%; }
.breadcrumb { font-size: .88rem; margin-bottom: 1.25rem; }
.breadcrumb a { text-decoration: none; font-weight: 600; }
.prose { padding: 48px 0 24px; font-size: 1.08rem; }
.prose h2 { margin-top: 2.2em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.8em; }
.prose .lead { font-size: inherit; color: inherit; } /* articles: one consistent body size */
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--cyan-700); }
.prose strong { color: var(--navy); }
.prose blockquote { margin: 1.8em 0; padding: 1rem 1.4rem; border-left: 4px solid var(--cyan); background: var(--surface-alt); font-size: inherit; font-weight: 600; color: var(--navy); }
.callout { border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 0 8px 8px 0; background: var(--surface-alt); padding: 1.2rem 1.4rem; margin: 1.6em 0; }
.callout > :last-child { margin-bottom: 0; }
.checklist { list-style: none !important; padding-left: 0 !important; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.1rem; height: 1.1rem; border: 2px solid var(--navy); border-radius: 4px; }
.post-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 32px 0 64px; }
.author-box { display: flex; gap: 18px; align-items: center; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center 15%; }
.author-box p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form label { font-weight: 600; font-size: .92rem; color: var(--navy); display: grid; gap: 6px; }
.form input, .form textarea, .form select {
  font: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1px solid #c9d4dd; border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 174, 239, .2); }
.hidden { display: none; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon-badge { margin: 0; flex: none; }
.contact-list small { display: block; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb4c4; padding: 64px 0 32px; margin-top: 0; font-size: .95rem; }
.site-footer a { color: #d5e3ee; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-grid img { width: 200px; margin-bottom: 14px; }
.footer-grid h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
.disclaimer { font-size: .82rem; color: #7f96a8; max-width: 440px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- About: stats, timeline, photos ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.stats div { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: #fff; }
.stats b { display: block; font-size: 1.7rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stats span { font-size: .82rem; color: var(--muted); line-height: 1.3; display: block; margin-top: 4px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.timeline, .talks { list-style: none; margin: 24px 0 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li, .talks li { position: relative; padding: 0 0 24px 24px; }
.timeline li::before, .talks li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--cyan); }
.timeline .when, .talks .when { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan-700); }
.timeline strong, .talks strong { color: var(--navy); display: block; margin: 2px 0 4px; line-height: 1.35; }
.timeline p, .talks p { margin: 0; color: var(--muted); font-size: .95rem; }
.talks { margin-top: 0; }

.photo-wide { margin: 0; }
.photo-wide img { width: 100%; border-radius: 14px; box-shadow: var(--shadow); max-height: 640px; object-fit: cover; object-position: center 30%; }
figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-grid figure { margin: 0; }
.photo-grid figure:first-child { grid-column: 1 / -1; }
.photo-grid img { width: 100%; border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; }
.photo-grid figure:not(:first-child) img { aspect-ratio: 3/4; object-position: center 30%; }

.plain { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 14px; }
.plain li { line-height: 1.45; }
.plain strong { color: var(--navy); }
.plain span { font-size: .9rem; color: var(--muted); }

/* Founder pull-quote (homepage) */
.press-note { margin-top: 20px; padding-left: 16px; border-left: 3px solid var(--cyan); font-size: 1.1rem; font-weight: 600; color: var(--navy); }
.press-note span { display: block; margin-top: 4px; font-size: .9rem; font-weight: 500; color: var(--muted); }
